Libevent Code Doxygen document
Classes | Macros | Functions
event_struct.h File Reference
#include <event2/event-config.h>
#include <event2/util.h>
#include <event2/keyvalq_struct.h>
Include dependency graph for event_struct.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  event_callback
 
struct  event
 

Macros

#define EVLIST_TIMEOUT   0x01
 
#define EVLIST_INSERTED   0x02
 
#define EVLIST_SIGNAL   0x04
 
#define EVLIST_ACTIVE   0x08
 
#define EVLIST_INTERNAL   0x10
 
#define EVLIST_ACTIVE_LATER   0x20
 
#define EVLIST_FINALIZING   0x40
 
#define EVLIST_INIT   0x80
 
#define EVLIST_ALL   0xff
 
#define EVENT_DEFINED_TQENTRY_
 
#define TAILQ_ENTRY(type)
 
#define EVENT_DEFINED_TQHEAD_
 
#define TAILQ_HEAD(name, type)
 
#define EVENT_DEFINED_LISTENTRY_
 
#define LIST_ENTRY(type)
 
#define EVENT_DEFINED_LISTHEAD_
 
#define LIST_HEAD(name, type)
 

Functions

 TAILQ_HEAD (event_list, event)
 
 LIST_HEAD (event_dlist, event)
 

Detailed Description

Structures used by event.h. Using these structures directly WILL harm forward compatibility: be careful.

No field declared in this file should be used directly in user code. Except for historical reasons, these fields would not be exposed at all.

Macro Definition Documentation

◆ LIST_ENTRY

#define LIST_ENTRY (   type)
Value:
struct { \
struct type *le_next; /* next element */ \
struct type **le_prev; /* address of previous next element */ \
}

◆ LIST_HEAD

#define LIST_HEAD (   name,
  type 
)
Value:
struct name { \
struct type *lh_first; /* first element */ \
}

◆ TAILQ_ENTRY

#define TAILQ_ENTRY (   type)
Value:
struct { \
struct type *tqe_next; /* next element */ \
struct type **tqe_prev; /* address of previous next element */ \
}

◆ TAILQ_HEAD

#define TAILQ_HEAD (   name,
  type 
)
Value:
struct name { \
struct type *tqh_first; \
struct type **tqh_last; \
}