Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/event.c

    r9bf51e64 rffa2c8ef  
    3939#include <libc.h>
    4040#include <event.h>
     41#include <kernel/ipc/event_types.h>
    4142
    42 /** Subscribe event notifications.
     43/** Subscribe for event notifications.
    4344 *
    44  * @param evno    Event type to subscribe.
    45  * @param imethod Use this interface and method for notifying me.
     45 * @param evno   Event number.
     46 * @param method Use this method for notifying me.
    4647 *
    4748 * @return Value returned by the kernel.
    48  *
    4949 */
    50 int event_subscribe(event_type_t evno, sysarg_t imethod)
     50int event_subscribe(event_type_t e, sysarg_t method)
    5151{
    52         return __SYSCALL2(SYS_EVENT_SUBSCRIBE, (sysarg_t) evno,
    53             (sysarg_t) imethod);
    54 }
    55 
    56 int event_task_subscribe(event_task_type_t evno, sysarg_t imethod)
    57 {
    58         return __SYSCALL2(SYS_EVENT_SUBSCRIBE, (sysarg_t) evno,
    59             (sysarg_t) imethod);
    60 }
    61 
    62 /** Unmask event notifications.
    63  *
    64  * @param evno Event type to unmask.
    65  *
    66  * @return Value returned by the kernel.
    67  *
    68  */
    69 int event_unmask(event_type_t evno)
    70 {
    71         return __SYSCALL1(SYS_EVENT_UNMASK, (sysarg_t) evno);
    72 }
    73 
    74 int event_task_unmask(event_task_type_t evno)
    75 {
    76         return __SYSCALL1(SYS_EVENT_UNMASK, (sysarg_t) evno);
     52        return __SYSCALL2(SYS_EVENT_SUBSCRIBE, (sysarg_t) e, (sysarg_t) method);
    7753}
    7854
Note: See TracChangeset for help on using the changeset viewer.