events.h revision cd972587a4c0d14d764b3d0a43d75f5941db14cc
1#ifndef SYSDEPS_LINUX_GNU_EVENTS_H
2#define SYSDEPS_LINUX_GNU_EVENTS_H
3
4#include "forward.h"
5
6/* Declarations for event que functions.  */
7
8enum ecb_status {
9	ecb_cont, /* The iteration should continue.  */
10	ecb_yield, /* The iteration should stop, yielding this
11		    * event.  */
12	ecb_deque, /* Like ecb_stop, but the event should be removed
13		    * from the queue.  */
14};
15
16struct Event *each_qd_event(enum ecb_status (*cb)(struct Event *event,
17						  void *data), void *data);
18void delete_events_for(struct Process * proc);
19void enque_event(struct Event *event);
20
21#endif /* SYSDEPS_LINUX_GNU_EVENTS_H */
22