libonion
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
handler.h File Reference
#include "request.h"
#include "types.h"

Functions

onion_connection_status onion_handler_handle (onion_handler *handler, onion_request *request, onion_response *response)
 checks that handler to handle the request
onion_handleronion_handler_new (onion_handler_handler handler, void *privdata, onion_handler_private_data_free priv_data_free)
 Creates an onion handler with that private datas.
int onion_handler_free (onion_handler *handler)
 Frees the memory of the handler.
void onion_handler_add (onion_handler *base, onion_handler *new_handler)
 Adds a handler to the list of handler of this level.
void * onion_handler_get_private_data (onion_handler *handler)
 Returns the private data part of the handler. Useful at handlers, to customize the private data externally.

Function Documentation

void onion_handler_add ( onion_handler base,
onion_handler new_handler 
)

Adds a handler to the list of handler of this level.

int onion_handler_free ( onion_handler handler)

Frees the memory of the handler.

void* onion_handler_get_private_data ( onion_handler handler)

Returns the private data part of the handler. Useful at handlers, to customize the private data externally.

onion_connection_status onion_handler_handle ( onion_handler handler,
onion_request request,
onion_response response 
)

checks that handler to handle the request

onion_handler* onion_handler_new ( onion_handler_handler  handler,
void *  privdata,
onion_handler_private_data_free  priv_data_free 
)

Creates an onion handler with that private datas.