Subversion Repositories HelenOS

Rev

Rev 4173 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4173 Rev 4253
Line 36... Line 36...
36
/** @file
36
/** @file
37
 */
37
 */
38
 
38
 
39
#include <libc.h>
39
#include <libc.h>
40
#include <event.h>
40
#include <event.h>
41
#include <kernel/event/event_types.h>
41
#include <kernel/ipc/event_types.h>
42
#include <ipc/ipc.h>
42
#include <ipc/ipc.h>
43
 
43
 
44
/** Subscribe for event notifications.
44
/** Subscribe for event notifications.
45
 *
45
 *
46
 * @param e     Event number.
46
 * @param evno   Event number.
47
 * @param method    Use this method for notifying me.
47
 * @param method Use this method for notifying me.
48
 *
48
 *
49
 * @return      Value returned by the kernel.
49
 * @return Value returned by the kernel.
50
 */
50
 */
51
int event_subscribe(event_type_t e, ipcarg_t method)
51
int event_subscribe(event_type_t e, ipcarg_t method)
52
{
52
{
53
    return __SYSCALL2(SYS_EVENT_SUBSCRIBE, (sysarg_t) e, (sysarg_t) method);
53
    return __SYSCALL2(SYS_EVENT_SUBSCRIBE, (sysarg_t) e, (sysarg_t) method);
54
}
54
}