Typedefs
ValvulaHandlers: Handler functions used by the librar, server and plugins

Typedefs

typedef void(* ValvulaAsyncQueueForeach )(ValvulaAsyncQueue *queue, axlPointer item_stored, int position, axlPointer user_data)
 Handler definition used by valvula_async_queue_foreach to implement a foreach operation over all items inside the provided queue, blocking its access during its process. More...
 
typedef axl_bool(* ValvulaIoAddToFdGroup )(int fds, ValvulaConnection *connection, axlPointer fd_group)
 IO handler definition to perform the "add to" the fd set operation. More...
 
typedef void(* ValvulaIoClearFdGroup )(axlPointer fd_set)
 IO handler definition to allow defining the method to be invoked while clearing a fd set. More...
 
typedef axlPointer(* ValvulaIoCreateFdGroup )(ValvulaCtx *ctx, ValvulaIoWaitingFor wait_to)
 IO handler definition to allow defining the method to be invoked while createing a new fd set. More...
 
typedef void(* ValvulaIoDestroyFdGroup )(axlPointer fd_set)
 IO handler definition to allow defining the method to be invoked while destroying a fd set. More...
 
typedef void(* ValvulaIoDispatch )(axlPointer fd_group, ValvulaIoDispatchFunc dispatch_func, int changed, axlPointer user_data)
 Handler definition for the automatic dispatch implementation for the particular I/O mechanism selected. More...
 
typedef void(* ValvulaIoDispatchFunc )(int fds, ValvulaIoWaitingFor wait_to, ValvulaConnection *connection, axlPointer user_data)
 User space handler to implement automatic dispatch for I/O waiting mechanism implemented at valvula io module. More...
 
typedef axl_bool(* ValvulaIoHaveDispatch )(axlPointer fd_group)
 Handler definition to allow implementing the have dispatch function at the valvula io module. More...
 
typedef axl_bool(* ValvulaIoIsSetFdGroup )(int fds, axlPointer fd_group, axlPointer user_data)
 IO handler definition to perform the "is set" the fd set operation. More...
 
typedef int(* ValvulaIoWaitOnFdGroup )(axlPointer fd_group, int max_fds, ValvulaIoWaitingFor wait_to)
 IO handler definition to allow defining the method to be used while performing a IO blocking wait, by default implemented by the IO "select" call. More...
 
typedef void(* ValvulaLogHandler )(ValvulaCtx *ctx, ValvulaDebugLevel level, const char *file, int line, const char *message, axlPointer user_data)
 Log handler prototype that is called every time a log is produced by the valvula engine. More...
 
typedef ValvulaState(* ValvulaProcessRequest )(ValvulaCtx *ctx, ValvulaConnection *connection, ValvulaRequest *request, axlPointer request_data, char **message)
 Handler definition for those set of functions that are able to process an incoming request and reports what action should be reported by Valvala to the gateway software (i.e. More...
 
typedef void(* ValvulaReportFinalState )(ValvulaCtx *ctx, ValvulaConnection *connection, ValvulaRequest *request, ValvulaState state, const char *message, axlPointer user_data)
 Set of handlers that valvula library uses to notify final state for a particular request. More...
 
typedef axl_bool(* ValvulaThreadAsyncEvent )(ValvulaCtx *ctx, axlPointer user_data, axlPointer user_data2)
 Handler used by async event handlers activated via valvula_thread_pool_new_event, which causes the handler definition to be called at the provided milliseconds period. More...
 
typedef void(* ValvulaThreadCleanup )(ValvulaCtx *ctx)
 Set of functions defined at valvula_thread_pool_set_cleanup_func that are called every time a thread from the thread pool is stopped. More...
 
typedef axl_bool(* ValvulaThreadCreateFunc )(ValvulaThread *thread_def, ValvulaThreadFunc func, axlPointer user_data, va_list args)
 Handler used by Valvula library to create a new thread. More...
 
typedef axl_bool(* ValvulaThreadDestroyFunc )(ValvulaThread *thread_def, axl_bool free_data)
 Handler used by Valvula Library to release a thread's resources. More...
 

Detailed Description