/uspace/trunk/libipc/include/ipc.h |
---|
34,8 → 34,11 |
#include <types.h> |
typedef sysarg_t ipcarg_t; |
typedef sysarg_t ipc_data_t[IPC_CALL_LEN]; |
typedef struct { |
sysarg_t args[IPC_CALL_LEN]; |
sysarg_t phoneid; |
} ipc_data_t ; |
typedef struct { |
unsigned long long taskid; |
ipc_data_t data; |
}ipc_call_t; |
65,5 → 68,6 |
int ipc_connect_to_me(int phoneid, int arg1, int arg2, |
unsigned long long *taskid); |
int ipc_connect_me_to(int phoneid, int arg1, int arg2); |
int ipc_hangup(int phoneid); |
#endif |
/uspace/trunk/libipc/include/ns.h |
---|
31,5 → 31,6 |
#define NS_PING 1024 |
#define NS_PING_SVC 1025 |
#define NS_HANGUP 1026 |
#endif |
/uspace/trunk/libipc/generic/ipc.c |
---|
252,3 → 252,8 |
return __SYSCALL3(SYS_IPC_CONNECT_ME_TO, phoneid, arg1, arg2); |
} |
/* Hang up specified phone */ |
int ipc_hangup(int phoneid) |
{ |
return __SYSCALL1(SYS_IPC_HANGUP, phoneid); |
} |