Changes in uspace/lib/c/generic/event.c [8820544:9d58539] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/event.c
r8820544 r9d58539 38 38 39 39 #include <libc.h> 40 #include < ipc/event.h>40 #include <event.h> 41 41 42 /** Subscribe toevent notifications.42 /** Subscribe event notifications. 43 43 * 44 44 * @param evno Event type to subscribe. … … 48 48 * 49 49 */ 50 int ipc_event_subscribe(event_type_t evno, sysarg_t imethod)50 int event_subscribe(event_type_t evno, sysarg_t imethod) 51 51 { 52 return __SYSCALL2(SYS_ IPC_EVENT_SUBSCRIBE, (sysarg_t) evno,52 return __SYSCALL2(SYS_EVENT_SUBSCRIBE, (sysarg_t) evno, 53 53 (sysarg_t) imethod); 54 54 } 55 55 56 /** Subscribe to task event notifications. 57 * 58 * @param evno Event type to subscribe. 59 * @param imethod Use this interface and method for notifying me. 60 * 61 * @return Value returned by the kernel. 62 * 63 */ 64 int ipc_event_task_subscribe(event_task_type_t evno, sysarg_t imethod) 56 int event_task_subscribe(event_task_type_t evno, sysarg_t imethod) 65 57 { 66 return __SYSCALL2(SYS_ IPC_EVENT_SUBSCRIBE, (sysarg_t) evno,58 return __SYSCALL2(SYS_EVENT_SUBSCRIBE, (sysarg_t) evno, 67 59 (sysarg_t) imethod); 68 }69 70 /** Unsubscribe from event notifications.71 *72 * @param evno Event type to unsubscribe.73 *74 * @return Value returned by the kernel.75 *76 */77 int ipc_event_unsubscribe(event_type_t evno)78 {79 return __SYSCALL1(SYS_IPC_EVENT_UNSUBSCRIBE, (sysarg_t) evno);80 }81 82 /** Unsubscribe from task event notifications.83 *84 * @param evno Event type to unsubscribe.85 *86 * @return Value returned by the kernel.87 *88 */89 int ipc_event_task_unsubscribe(event_task_type_t evno)90 {91 return __SYSCALL1(SYS_IPC_EVENT_UNSUBSCRIBE, (sysarg_t) evno);92 60 } 93 61 … … 99 67 * 100 68 */ 101 int ipc_event_unmask(event_type_t evno)69 int event_unmask(event_type_t evno) 102 70 { 103 return __SYSCALL1(SYS_ IPC_EVENT_UNMASK, (sysarg_t) evno);71 return __SYSCALL1(SYS_EVENT_UNMASK, (sysarg_t) evno); 104 72 } 105 73 106 /** Unmask task event notifications. 107 * 108 * @param evno Event type to unmask. 109 * 110 * @return Value returned by the kernel. 111 * 112 */ 113 int ipc_event_task_unmask(event_task_type_t evno) 74 int event_task_unmask(event_task_type_t evno) 114 75 { 115 return __SYSCALL1(SYS_ IPC_EVENT_UNMASK, (sysarg_t) evno);76 return __SYSCALL1(SYS_EVENT_UNMASK, (sysarg_t) evno); 116 77 } 117 78
Note:
See TracChangeset
for help on using the changeset viewer.