NewMadeleine

Documentation

« back to PM2 home.
nm_poll_set.h File Reference

abstraction layer for polling sets, inspired by epoll More...

#include <unistd.h>
#include <fcntl.h>
#include <poll.h>
#include <errno.h>
#include <assert.h>
#include <nm_public.h>
Include dependency graph for nm_poll_set.h:

Go to the source code of this file.

Data Structures

struct  nm_poll_handle_s
 a handle for shared polling More...
 

Macros

#define NM_POLL_HANDLE_NULL   ((struct nm_poll_handle_s){ .fd = -1, .events = 0, .p_callback = NULL, .p_callback_data = NULL })
 

Typedefs

typedef void(* nm_poll_set_callback_t) (struct nm_poll_handle_s *p_poll_handle, short revents)
 callback for shared polling
 

Detailed Description

abstraction layer for polling sets, inspired by epoll

Definition in file nm_poll_set.h.

Macro Definition Documentation

◆ NM_POLL_HANDLE_NULL

#define NM_POLL_HANDLE_NULL   ((struct nm_poll_handle_s){ .fd = -1, .events = 0, .p_callback = NULL, .p_callback_data = NULL })

Definition at line 45 of file nm_poll_set.h.

Typedef Documentation

◆ nm_poll_set_callback_t

typedef void(* nm_poll_set_callback_t) (struct nm_poll_handle_s *p_poll_handle, short revents)

callback for shared polling

Definition at line 34 of file nm_poll_set.h.