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 318 of file compat_libevent.c.

Field Documentation

◆ cb

void(* cb) (mainloop_event_t *, void *)

Definition at line 320 of file compat_libevent.c.

◆ ev

struct event* ev

Definition at line 319 of file compat_libevent.c.

◆ userdata

void* userdata

Definition at line 321 of file compat_libevent.c.

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