From df387f268f8d30d0a21731406bf6031cd6ba9588 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 22 Mar 2015 00:57:16 +0100 Subject: Refactor poll API --- src/types.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/types.h') diff --git a/src/types.h b/src/types.h index f380541..2a854c2 100644 --- a/src/types.h +++ b/src/types.h @@ -75,12 +75,22 @@ typedef enum fastd_drop_caps { DROP_CAPS_EARLY, /**< The capabilities are dropped before executing the on-up command */ } fastd_drop_caps_t; +/** Types of file descriptors to poll on */ +typedef enum fastd_poll_type { + POLL_TYPE_UNSPEC = 0, + POLL_TYPE_ASYNC, + POLL_TYPE_STATUS, + POLL_TYPE_IFACE, + POLL_TYPE_SOCKET, +} fastd_poll_type_t; + /** A timestamp used as a timeout */ typedef int64_t fastd_timeout_t; typedef struct fastd_buffer fastd_buffer_t; +typedef struct fastd_poll_fd fastd_poll_fd_t; typedef union fastd_peer_address fastd_peer_address_t; typedef struct fastd_bind_address fastd_bind_address_t; -- cgit v1.2.3