Rev 2541 | Rev 2618 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2541 | Rev 2588 | ||
---|---|---|---|
Line 50... | Line 50... | ||
50 | 50 | ||
51 | typedef void (* ipc_async_callback_t)(void *private, int retval, |
51 | typedef void (* ipc_async_callback_t)(void *private, int retval, |
52 | ipc_call_t *data); |
52 | ipc_call_t *data); |
53 | 53 | ||
54 | #define ipc_call_sync_2(phoneid, method, arg1, arg2, res1, res2) \ |
54 | #define ipc_call_sync_2(phoneid, method, arg1, arg2, res1, res2) \ |
55 | ipc_call_sync_3((phoneid), (method), (arg1), (arg2), 0, (res1), (res2), \ |
55 | ipc_call_sync_3((phoneid), (method), (arg1), (arg2), 0, (res1), \ |
56 | 0) |
56 | (res2), 0) |
57 | extern int ipc_call_sync_3(int phoneid, ipcarg_t method, ipcarg_t arg1, |
57 | extern int ipc_call_sync_3(int phoneid, ipcarg_t method, ipcarg_t arg1, |
58 | ipcarg_t arg2, ipcarg_t arg3, ipcarg_t *result1, ipcarg_t *result2, |
58 | ipcarg_t arg2, ipcarg_t arg3, ipcarg_t *result1, ipcarg_t *result2, |
59 | ipcarg_t *result3); |
59 | ipcarg_t *result3); |
60 | 60 | ||
61 | extern int ipc_call_sync(int phoneid, ipcarg_t method, ipcarg_t arg1, |
61 | extern int ipc_call_sync(int phoneid, ipcarg_t method, ipcarg_t arg1, |
Line 67... | Line 67... | ||
67 | { |
67 | { |
68 | return ipc_wait_for_call_timeout(data, SYNCH_NO_TIMEOUT); |
68 | return ipc_wait_for_call_timeout(data, SYNCH_NO_TIMEOUT); |
69 | } |
69 | } |
70 | extern ipc_callid_t ipc_trywait_for_call(ipc_call_t *data); |
70 | extern ipc_callid_t ipc_trywait_for_call(ipc_call_t *data); |
71 | 71 | ||
- | 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) |
|
72 | extern ipcarg_t ipc_answer_fast(ipc_callid_t callid, ipcarg_t retval, |
76 | extern ipcarg_t ipc_answer_fast(ipc_callid_t callid, ipcarg_t retval, |
73 | ipcarg_t arg1, ipcarg_t arg2); |
77 | ipcarg_t arg1, ipcarg_t arg2); |
74 | extern ipcarg_t ipc_answer(ipc_callid_t callid, ipc_call_t *call); |
78 | extern ipcarg_t ipc_answer(ipc_callid_t callid, ipc_call_t *call); |
75 | 79 | ||
76 | #define ipc_call_async(phoneid, method, arg1, private, callback, can_preempt) \ |
80 | #define ipc_call_async(phoneid, method, arg1, private, callback, can_preempt) \ |