Libevhtp  0.3.7
Public Member Functions | Data Fields
evhtp_callback_s Struct Reference

structure containing a single callback and configuration More...

#include <evhtp.h>

Public Member Functions

 TAILQ_ENTRY (evhtp_callback_s) next
 

Data Fields

evhtp_callback_type type
 
evhtp_callback_cb cb
 
unsigned int hash
 
void * cbarg
 
evhtp_hooks_thooks
 
union {
   char *   path
 
   char *   glob
 
   regex_t *   regex
 
val
 

Detailed Description

structure containing a single callback and configuration

The definition structure which is used within the evhtp_callbacks_t structure. This holds information about what should execute for either a single or regex path.

For example, if you registered a callback to be executed on a request for "/herp/derp", your defined callback will be executed.

Optionally you can set callback-specific hooks just like per-connection hooks using the same rules.

Definition at line 326 of file evhtp.h.

Member Function Documentation

TAILQ_ENTRY ( evhtp_callback_s  )

Field Documentation

the actual callback function

Definition at line 328 of file evhtp.h.

void* cbarg

user-defind arguments passed to the cb

Definition at line 330 of file evhtp.h.

char* glob

Definition at line 335 of file evhtp.h.

unsigned int hash

the full hash generated integer

Definition at line 329 of file evhtp.h.

evhtp_hooks_t* hooks

per-callback hooks

Definition at line 331 of file evhtp.h.

char* path

Definition at line 334 of file evhtp.h.

regex_t* regex

Definition at line 337 of file evhtp.h.

the type of callback (regex|path)

Definition at line 327 of file evhtp.h.

union { ... } val

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