Changeset 20614d0 in mainline for uspace/lib/libc/include/ipc/ipc.h


Ignore:
Timestamp:
2007-11-03T14:59:41Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
828d215
Parents:
4d21cf8
Message:

Add ipc_answer_fast_[01] macros so that ipc_answer_fast() users don't have to
write zero arguments all the time.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/include/ipc/ipc.h

    r4d21cf8 r20614d0  
    5353
    5454#define ipc_call_sync_2(phoneid, method, arg1, arg2, res1, res2) \
    55         ipc_call_sync_3((phoneid), (method), (arg1), (arg2), 0, (res1), (res2), \
    56             0)
     55        ipc_call_sync_3((phoneid), (method), (arg1), (arg2), 0, (res1), \
     56            (res2), 0)
    5757extern int ipc_call_sync_3(int phoneid, ipcarg_t method, ipcarg_t arg1,
    5858    ipcarg_t arg2, ipcarg_t arg3, ipcarg_t *result1, ipcarg_t *result2,
     
    7070extern ipc_callid_t ipc_trywait_for_call(ipc_call_t *data);
    7171
     72#define ipc_answer_fast_0(callid, retval) \
     73        ipc_answer_fast((callid), (retval), 0, 0)
     74#define ipc_answer_fast_1(callid, retval, arg1) \
     75        ipc_answer_fast((callid), (retval), (arg1), 0)
    7276extern ipcarg_t ipc_answer_fast(ipc_callid_t callid, ipcarg_t retval,
    7377    ipcarg_t arg1, ipcarg_t arg2);
Note: See TracChangeset for help on using the changeset viewer.