/uspace/trunk/libipc/include/ipc.h |
---|
54,7 → 54,7 |
extern int ipc_call_sync(int phoneid, ipcarg_t method, ipcarg_t arg1, |
ipcarg_t *result); |
extern int ipc_wait_for_call(ipc_call_t *data, int flags); |
extern ipc_callid_t ipc_wait_for_call(ipc_call_t *data, int flags); |
extern void ipc_answer(ipc_callid_t callid, ipcarg_t retval, ipcarg_t arg1, |
ipcarg_t arg2); |
62,5 → 62,7 |
void ipc_call_async_2(int phoneid, ipcarg_t method, ipcarg_t arg1, |
ipcarg_t arg2, void *private, |
ipc_async_callback_t callback); |
int ipc_connect_to_me(int phoneid, int arg1, int arg2, |
unsigned long long *taskid); |
#endif |
/uspace/trunk/libipc/include/ns.h |
---|
29,6 → 29,7 |
#ifndef __LIBIPC__NS_H__ |
#define __LIBIPC__NS_H__ |
#include <kernel/ipc/ns.h> |
#define NS_PING 1024 |
#define NS_PING_SVC 1025 |
#endif |
/uspace/trunk/libipc/generic/ipc.c |
---|
117,6 → 117,7 |
call = malloc(sizeof(*call)); |
if (!call) { |
callback(private, ENOMEM, NULL); |
return; |
} |
callid = __SYSCALL4(SYS_IPC_CALL_ASYNC_FAST, phoneid, method, arg1, arg2); |
221,7 → 222,7 |
* @return Callid or 0 if nothing available and started with |
* IPC_WAIT_NONBLOCKING |
*/ |
int ipc_wait_for_call(ipc_call_t *call, int flags) |
ipc_callid_t ipc_wait_for_call(ipc_call_t *call, int flags) |
{ |
ipc_callid_t callid; |
236,3 → 237,11 |
return callid; |
} |
/** Ask destination to do a callback connection */ |
int ipc_connect_to_me(int phoneid, int arg1, int arg2, |
unsigned long long *taskid) |
{ |
return __SYSCALL4(SYS_IPC_CONNECT_TO_ME, phoneid, arg1, arg2, |
(sysarg_t) taskid); |
} |