xref: /haiku/headers/private/kernel/event_queue.h (revision e1c4049fed1047bdb957b0529e1921e97ef94770)
1 /*
2  * Copyright 2015, Hamish Morrison, hamishm53@gmail.com.
3  * All rights reserved. Distributed under the terms of the MIT License.
4  */
5 
6 #ifndef _KERNEL_EVENT_QUEUE_H
7 #define _KERNEL_EVENT_QUEUE_H
8 
9 #include <OS.h>
10 #include <event_queue_defs.h>
11 
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17 
18 extern int		_user_event_queue_create(int openFlags);
19 extern status_t	_user_event_queue_select(int queue,	event_wait_info* userInfos,
20 					int numInfos);
21 extern ssize_t	_user_event_queue_wait(int queue, event_wait_info* infos,
22 					int numInfos, uint32 flags, bigtime_t timeout);
23 
24 
25 #ifdef __cplusplus
26 }
27 #endif
28 
29 #endif
30