OpenMPI 0.1.1

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- Data Structures
- Class Hierarchy
- Data Fields

Public Member Functions | Data Fields
evbuffer_cb_entry Struct Reference

A single evbuffer callback for an evbuffer. More...

`#include <evbuffer-internal.h>`

## Public Member Functions
| TAILQ_ENTRY (evbuffer_cb_entry) next
| Structures to implement a doubly-linked queue of callbacks.

## Data Fields
union {
evbuffer_cb_func cb_func
evbuffer_cb cb_obsolete
} | cb
| The callback function to invoke when this callback is called. More...
void * | cbarg
| Argument to pass to cb. More...
ev_uint32_t | flags
| Currently set flags on this callback. More...

## Detailed Description

A single evbuffer callback for an evbuffer.

This function will be invoked when bytes are added to or removed from the evbuffer.

## Field 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.

Referenced by evbuffer_add_cb(), evbuffer_remove_cb(), and evbuffer_setcb().

void* evbuffer_cb_entry::cbarg

Argument to pass to cb.

Referenced by evbuffer_add_cb(), and evbuffer_remove_cb().

ev_uint32_t evbuffer_cb_entry::flags

Currently set flags on this callback.

Referenced by evbuffer_add_cb(), evbuffer_cb_clear_flags(), evbuffer_cb_set_flags(), and evbuffer_setcb().

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

- opal/mca/event/libevent2013/libevent/evbuffer-internal.h