Libevent Code Doxygen document
Public Member Functions | Public Attributes | List of all members
evbuffer_cb_entry Struct Reference

#include <evbuffer-internal.h>

Collaboration diagram for evbuffer_cb_entry:
Collaboration graph
[legend]

Public Member Functions

 LIST_ENTRY (evbuffer_cb_entry) next
 

Public Attributes

union {
   evbuffer_cb_func   cb_func
 
   evbuffer_cb   cb_obsolete
 
cb
 
void * cbarg
 
ev_uint32_t flags
 

Detailed Description

A single evbuffer callback for an evbuffer. This function will be invoked when bytes are added to or removed from the evbuffer.

Member Function Documentation

◆ LIST_ENTRY()

evbuffer_cb_entry::LIST_ENTRY ( evbuffer_cb_entry  )

Structures to implement a doubly-linked queue of callbacks

Member Data Documentation

◆ 

union { ... } evbuffer_cb_entry::cb

The callback function to invoke when this callback is called. If EVBUFFER_CB_OBSOLETE is set in flags, the cb_obsolete field is valid; otherwise, cb_func is valid.

◆ cbarg

void* evbuffer_cb_entry::cbarg

Argument to pass to cb.

◆ flags

ev_uint32_t evbuffer_cb_entry::flags

Currently set flags on this callback.


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