Changeset 936351c1 in mainline for libipc/include/ipc.h
- Timestamp:
- 2006-03-14T23:48:33Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d73942c
- Parents:
- 4f34b6a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libipc/include/ipc.h
r4f34b6a r936351c1 33 33 #include <libc.h> 34 34 35 typedef sysarg_t ipc_data_t[IPC_CALL_LEN]; 35 typedef sysarg_t ipcarg_t; 36 typedef ipcarg_t ipc_data_t[IPC_CALL_LEN]; 36 37 typedef sysarg_t ipc_callid_t; 37 38 38 typedef void (* ipc_async_callback_t)(ipc_data_t *data); 39 typedef void (* ipc_async_callback_t)(void *private, 40 int retval, 41 ipc_data_t *data); 39 42 40 43 #define ipc_call_sync_2(phoneid, method, arg1, arg2, res1, res2) ipc_call_sync_3((phoneid), (method), (arg1), (arg2), 0, (res1), (res2), 0) 41 extern int ipc_call_sync_3(int phoneid, sysarg_t method, sysarg_t arg1,42 sysarg_t arg2, sysarg_t arg3,43 sysarg_t *result1, sysarg_t *result2,44 sysarg_t *result3);44 extern int ipc_call_sync_3(int phoneid, ipcarg_t method, ipcarg_t arg1, 45 ipcarg_t arg2, ipcarg_t arg3, 46 ipcarg_t *result1, ipcarg_t *result2, 47 ipcarg_t *result3); 45 48 46 49 47 extern int ipc_call_sync(int phoneid, sysarg_t method, sysarg_t arg1,48 sysarg_t *result);50 extern int ipc_call_sync(int phoneid, ipcarg_t method, ipcarg_t arg1, 51 ipcarg_t *result); 49 52 extern int ipc_wait_for_call(ipc_data_t *data, int flags); 50 extern void ipc_answer(ipc_callid_t callid, sysarg_t retval, sysarg_t arg1,51 sysarg_t arg2);53 extern void ipc_answer(ipc_callid_t callid, ipcarg_t retval, ipcarg_t arg1, 54 ipcarg_t arg2); 52 55 53 #define ipc_call_async(phoneid,method,arg1, callback) (ipc_call_async_2(phoneid, method, arg1, 0, callback))54 void ipc_call_async_2(int phoneid, sysarg_t method, sysarg_t arg1,55 sysarg_t arg2,56 #define ipc_call_async(phoneid,method,arg1,private, callback) (ipc_call_async_2(phoneid, method, arg1, 0, private, callback)) 57 void ipc_call_async_2(int phoneid, ipcarg_t method, ipcarg_t arg1, 58 ipcarg_t arg2, void *private, 56 59 ipc_async_callback_t callback); 57 60
Note:
See TracChangeset
for help on using the changeset viewer.