Data Fields
mainloop_event_t Struct Reference

Data Fields

struct event * ev
void(* cb )(mainloop_event_t *, void *)
void * userdata

Detailed Description

Type used to represent events that run directly from the main loop, either because they are activated from elsewhere in the code, or because they have a simple timeout.

We use this type to avoid exposing Libevent's API throughout the rest of the codebase.

This type can't be used for all events: it doesn't handle events that are triggered by signals or by sockets.

Definition at line 310 of file compat_libevent.c.

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