Changeset 5d4e90f0 in mainline for uspace/lib/libc/include/async.h
- Timestamp:
- 2007-09-27T12:35:36Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bcf23cf
- Parents:
- 8c20b26
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/include/async.h
r8c20b26 r5d4e90f0 56 56 57 57 aid_t async_send_2(int phoneid, ipcarg_t method, ipcarg_t arg1, ipcarg_t arg2, 58 58 ipc_call_t *dataptr); 59 59 aid_t async_send_3(int phoneid, ipcarg_t method, ipcarg_t arg1, ipcarg_t arg2, 60 60 ipcarg_t arg3, ipc_call_t *dataptr); 61 61 void async_wait_for(aid_t amsgid, ipcarg_t *result); 62 62 int async_wait_timeout(aid_t amsgid, ipcarg_t *retval, suseconds_t timeout); … … 68 68 * @return Return code of message 69 69 */ 70 static inline ipcarg_t async_req_2(int phoneid, ipcarg_t method, ipcarg_t arg1, ipcarg_t arg2, ipcarg_t *r1, ipcarg_t *r2) 70 static inline ipcarg_t async_req_2(int phoneid, ipcarg_t method, ipcarg_t arg1, 71 ipcarg_t arg2, ipcarg_t *r1, ipcarg_t *r2) 71 72 { 72 73 ipc_call_t result; … … 81 82 return rc; 82 83 } 83 #define async_req(phoneid, method, arg1, r1) async_req_2(phoneid, method, arg1, 0, r1, 0) 84 #define async_req(phoneid, method, arg1, r1) \ 85 async_req_2(phoneid, method, arg1, 0, r1, 0) 84 86 85 87 static inline ipcarg_t async_req_3(int phoneid, ipcarg_t method, ipcarg_t arg1, 86 ipcarg_t arg2, ipcarg_t arg3, ipcarg_t *r1, 87 ipcarg_t *r2, ipcarg_t *r3) 88 ipcarg_t arg2, ipcarg_t arg3, ipcarg_t *r1, ipcarg_t *r2, ipcarg_t *r3) 88 89 { 89 90 ipc_call_t result; … … 114 115 /* Primitve functions for IPC communication */ 115 116 void async_msg_3(int phoneid, ipcarg_t method, ipcarg_t arg1, ipcarg_t arg2, 116 117 ipcarg_t arg3); 117 118 void async_msg_2(int phoneid, ipcarg_t method, ipcarg_t arg1, ipcarg_t arg2); 118 119 #define async_msg(ph, m, a1) async_msg_2(ph, m, a1, 0)
Note:
See TracChangeset
for help on using the changeset viewer.