libonion
|
Information about a handler for onion. A tree structure of handlers is what really serves the data. More...
#include <types.h>
Public Member Functions | |
onion_connection_status | onion_handler_handle (onion_handler *handler, onion_request *request, onion_response *response) |
Tryes to handle the petition with that handler. | |
onion_handler * | onion_handler_new (onion_handler_handler handler, void *priv_data, 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 used by this handler. | |
void | onion_handler_add (onion_handler *base, onion_handler *new_handler) |
Adds a handler to the list of handlers of this level. | |
void * | onion_handler_get_private_data (onion_handler *handler) |
Returns the private data part of a handler. |
Data Fields | |
onion_handler_handler | handler |
onion_handler_private_data_free | priv_data_free |
callback that should return an onion_connection_status, and maybe process the request. | |
void * | priv_data |
When freeing some memory, how to remove the private memory. | |
struct onion_handler_t * | next |
Private data as needed by the handler. |
Information about a handler for onion. A tree structure of handlers is what really serves the data.
onion_handler_handler onion_handler_t::handler |
Referenced by onion_handler_handle(), and onion_handler_new().
struct onion_handler_t* onion_handler_t::next |
Private data as needed by the handler.
Referenced by onion_handler_add(), onion_handler_free(), and onion_handler_handle().
void* onion_handler_t::priv_data |
When freeing some memory, how to remove the private memory.
Referenced by onion_handler_free(), onion_handler_get_private_data(), onion_handler_handle(), and onion_handler_new().
onion_handler_private_data_free onion_handler_t::priv_data_free |
callback that should return an onion_connection_status, and maybe process the request.
Referenced by onion_handler_free(), onion_handler_new(), and onion_root_url().