14#include "compile_time.h"
17#include <sys/eventfd.h>
24 PFD_TYPE_PARTITION = 0x1,
26 PFD_TYPE_STICKERDB = 0x2,
32 PFD_TYPE_TIMER_MPD_CONNECT = 0x10,
34 PFD_TYPE_TIMER_SCROBBLE = 0x20,
36 PFD_TYPE_TIMER_JUKEBOX = 0x40
43 struct pollfd
fds[POLL_FDS_MAX];
bool event_eventfd_read(int fd)
Definition event.c:100
const char * lookup_pfd_revents(short revent)
Definition event.c:161
void event_fd_close(int fd)
Definition event.c:132
int event_eventfd_create(void)
Definition event.c:56
bool event_eventfd_write(int fd)
Definition event.c:85
eventfd_t event_eventfd_read_number(int fd)
Definition event.c:117
pfd_type
Definition event.h:22
const char * lookup_pfd_type(enum pfd_type type)
Definition event.c:143
void event_pfd_init(struct mympd_pfds *pfds)
Definition event.c:24
bool event_pfd_add_fd(struct mympd_pfds *pfds, int fd, enum pfd_type type, struct t_partition_state *partition_state)
Definition event.c:36
int event_eventfd_create_simple(void)
Definition event.c:70
bool repopulate
Repopulate the pollfd struct.
Definition event.h:47
struct t_partition_state * partition_states[POLL_FDS_MAX]
pointer to partition_state
Definition event.h:46
enum pfd_type fd_types[POLL_FDS_MAX]
fd types
Definition event.h:44
struct pollfd fds[POLL_FDS_MAX]
fds
Definition event.h:43
nfds_t len
number of mpd connection fds
Definition event.h:45
Definition partition_state.h:27