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