Functions
ValvulaCtx: libValvula context object, the object used to store/represent a single libValvula instance.

Functions

void valvula_ctx_free (ValvulaCtx *ctx)
 Releases the memory allocated by the provided ValvulaCtx. More...
 
void valvula_ctx_free2 (ValvulaCtx *ctx, const char *who)
 Releases the memory allocated by the provided ValvulaCtx. More...
 
axlPointer valvula_ctx_get_data (ValvulaCtx *ctx, const char *key)
 Allows to retreive data stored on the given context (valvula_ctx_set_data) using the provided index key. More...
 
void valvula_ctx_ref (ValvulaCtx *ctx)
 Allows to increase reference count to the ValvulaCtx instance. More...
 
void valvula_ctx_ref2 (ValvulaCtx *ctx, const char *who)
 Allows to increase reference count to the ValvulaCtx instance. More...
 
int valvula_ctx_ref_count (ValvulaCtx *ctx)
 Allows to get current reference counting state from provided valvula context. More...
 
ValvulaRequestRegistryvalvula_ctx_register_request_handler (ValvulaCtx *ctx, const char *identifier, ValvulaProcessRequest process_handler, int priority, int port, axlPointer user_data)
 Allows to register a new process handler with the provided priority under the given port. More...
 
void valvula_ctx_set_data (ValvulaCtx *ctx, const char *key, axlPointer value)
 Allows to store arbitrary data associated to the provided context, which can later retrieved using a particular key. More...
 
void valvula_ctx_set_data_full (ValvulaCtx *ctx, const char *key, axlPointer value, axlDestroyFunc key_destroy, axlDestroyFunc value_destroy)
 Allows to store arbitrary data associated to the provided context, which can later retrieved using a particular key. More...
 
void valvula_ctx_set_default_reply_state (ValvulaCtx *ctx, ValvulaState state)
 Allows to set default reply state to be used in the case no handler is configured or no handler is found for a given port. More...
 
void valvula_ctx_set_final_state_handler (ValvulaCtx *ctx, ValvulaReportFinalState handler, axlPointer user_data)
 Allows to register a handler that will be called with the final. More...
 
void valvula_ctx_set_request_line_limit (ValvulaCtx *ctx, int line_limit)
 Allows to change and limit request line limit for every request received. More...
 
void valvula_ctx_unref (ValvulaCtx **ctx)
 Decrease reference count and nullify caller's pointer in the case the count reaches 0. More...
 
void valvula_ctx_unref2 (ValvulaCtx **ctx, const char *who)
 Decrease reference count and nullify caller's pointer in the case the count reaches 0. More...
 

Detailed Description