GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
Data Fields
gp_fd Struct Reference

An epoll file descriptor. More...

#include <gp_poll.h>

Collaboration diagram for gp_fd:
Collaboration graph
[legend]

Data Fields

gp_dlist_head lhead
 Linked list pointers.
 
enum gp_poll_event_ret(* event )(gp_fd *self)
 Epoll event handler.
 
uint32_t events
 Epoll events to watch.
 
uint32_t revents
 Events returned from epoll.
 
int fd
 A file descriptor.
 
void * priv
 

Detailed Description

An epoll file descriptor.

The user of this interface is supposed to set the event, events, fd and optionally priv pointer and pass the structure to the gp_poll_add() function.

Definition at line 70 of file gp_poll.h.

Field Documentation

◆ event

enum gp_poll_event_ret(* gp_fd::event) (gp_fd *self)

Epoll event handler.

This callback is called for events on the fd.

Definition at line 72 of file gp_poll.h.

◆ events

uint32_t gp_fd::events

Epoll events to watch.

See enum gp_poll_events.

Definition at line 84 of file gp_poll.h.

◆ priv

void* gp_fd::priv

User private pointer, not used by the library

Definition at line 94 of file gp_poll.h.

◆ revents

uint32_t gp_fd::revents

Events returned from epoll.

See enum gp_poll_events.

Definition at line 90 of file gp_poll.h.


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