libonion
|
Functions | |
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. | |
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. |
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.