projects
/
petitboot
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Use a list for device->boot_options
[petitboot]
/
discover
/
waiter.h
1
#ifndef _WAITER_H
2
#define _WAITER_H
3
4
#include <poll.h>
5
6
struct waiter;
7
8
enum events {
9
WAIT_IN = POLLIN,
10
WAIT_OUT = POLLOUT,
11
};
12
13
typedef int (*waiter_cb)(void *);
14
15
struct waiter *waiter_register(int fd, int events,
16
waiter_cb callback, void *arg);
17
18
void waiter_remove(struct waiter *waiter);
19
20
int waiter_poll(void);
21
#endif /* _WAITER_H */
22
23