Ignore:
File:
1 edited

Legend:

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

    rffa2c8ef r9bf51e64  
    3939#include <libc.h>
    4040#include <event.h>
    41 #include <kernel/ipc/event_types.h>
    4241
    43 /** Subscribe for event notifications.
     42/** Subscribe event notifications.
    4443 *
    45  * @param evno   Event number.
    46  * @param method Use this method for notifying me.
     44 * @param evno    Event type to subscribe.
     45 * @param imethod Use this interface and method for notifying me.
    4746 *
    4847 * @return Value returned by the kernel.
     48 *
    4949 */
    50 int event_subscribe(event_type_t e, sysarg_t method)
     50int event_subscribe(event_type_t evno, sysarg_t imethod)
    5151{
    52         return __SYSCALL2(SYS_EVENT_SUBSCRIBE, (sysarg_t) e, (sysarg_t) method);
     52        return __SYSCALL2(SYS_EVENT_SUBSCRIBE, (sysarg_t) evno,
     53            (sysarg_t) imethod);
     54}
     55
     56int 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 */
     69int event_unmask(event_type_t evno)
     70{
     71        return __SYSCALL1(SYS_EVENT_UNMASK, (sysarg_t) evno);
     72}
     73
     74int event_task_unmask(event_task_type_t evno)
     75{
     76        return __SYSCALL1(SYS_EVENT_UNMASK, (sysarg_t) evno);
    5377}
    5478
Note: See TracChangeset for help on using the changeset viewer.