libonion
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
path.h File Reference
#include <onion/types.h>

Functions

onion_handleronion_handler_path (const char *path, onion_handler *inside_level)
 Creates an path handler. If the path matches the regex, it reomves that from the regexp and goes to the inside_level.

Function Documentation

onion_handler* onion_handler_path ( const char *  path,
onion_handler inside_level 
)

Creates an path handler. If the path matches the regex, it reomves that from the regexp and goes to the inside_level.

If on the inside level nobody answers, it just returns NULL, so ->next can answer.

References onion_handler_path_data_t::inside, onion_handler_t::onion_handler_new(), onion_handler_path_delete(), onion_handler_path_handler(), onion_low_malloc(), and onion_handler_path_data_t::path.