14#include "compile_time.h"
23 PFD_TYPE_PARTITION = 0x1,
25 PFD_TYPE_STICKERDB = 0x2,
31 PFD_TYPE_TIMER_MPD_CONNECT = 0x10,
33 PFD_TYPE_TIMER_SCROBBLE = 0x20,
35 PFD_TYPE_TIMER_JUKEBOX = 0x40
42 struct pollfd
fds[POLL_FDS_MAX];
bool event_eventfd_read(int fd)
Definition event.c:87
const char * lookup_pfd_revents(short revent)
Definition event.c:131
void event_fd_close(int fd)
Definition event.c:102
int event_eventfd_create(void)
Definition event.c:57
bool event_eventfd_write(int fd)
Definition event.c:72
pfd_type
Definition event.h:21
const char * lookup_pfd_type(enum pfd_type type)
Definition event.c:113
void event_pfd_init(struct mympd_pfds *pfds)
Definition event.c:25
bool event_pfd_add_fd(struct mympd_pfds *pfds, int fd, enum pfd_type type, struct t_partition_state *partition_state)
Definition event.c:37
struct t_partition_state * partition_states[POLL_FDS_MAX]
pointer to partition_state
Definition event.h:45
enum pfd_type fd_types[POLL_FDS_MAX]
fd types
Definition event.h:43
struct pollfd fds[POLL_FDS_MAX]
fds
Definition event.h:42
nfds_t len
number of mpd connection fds
Definition event.h:44
Definition mympd_state.h:114