ble_gatt_client
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
mainloop_data Struct Reference

mainloop file descriptor event data structure More...

Data Fields

int fd
 socket or file descriptor, incl. standard i/o More...
 
uint32_t events
 epoll event More...
 
mainloop_event_func callback
 call back function(int fd, uint32_t events, void *user_data); More...
 
mainloop_destroy_func destroy
 data management call back function(void *user_data); More...
 
void * user_data
 pointer to a user specific data structure More...
 

Detailed Description

mainloop file descriptor event data structure

Definition at line 59 of file mainloop.c.

Field Documentation

mainloop_event_func mainloop_data::callback

call back function(int fd, uint32_t events, void *user_data);

Definition at line 65 of file mainloop.c.

Referenced by mainloop_add_fd(), and mainloop_run().

mainloop_destroy_func mainloop_data::destroy

data management call back function(void *user_data);

Definition at line 67 of file mainloop.c.

Referenced by mainloop_add_fd(), mainloop_remove_fd(), and mainloop_run().

uint32_t mainloop_data::events

epoll event

See also
EPOLL_EVENTS_DOC

Definition at line 63 of file mainloop.c.

Referenced by mainloop_add_fd(), and mainloop_modify_fd().

int mainloop_data::fd

socket or file descriptor, incl. standard i/o

Definition at line 61 of file mainloop.c.

Referenced by mainloop_add_fd(), mainloop_modify_fd(), mainloop_remove_fd(), and mainloop_run().

void* mainloop_data::user_data

pointer to a user specific data structure

Definition at line 69 of file mainloop.c.

Referenced by mainloop_add_fd(), mainloop_remove_fd(), and mainloop_run().


The documentation for this struct was generated from the following file: