evrpc_add_hook

adds a processing hook to either an rpc base or rpc pool

If a hook returns TERMINATE, the processing is aborted. On CONTINUE, the request is immediately processed after the hook returns. If the hook returns PAUSE, request processing stops until evrpc_resume_request() has been called.

The add functions return handles that can be used for removing hooks.

@param vbase a pointer to either evrpc_base or struct evrpc_pool @param hook_type either INPUT or OUTPUT @param cb the callback to call when the hook is activated @param cb_arg an additional argument for the callback @return a handle to the hook so it can be removed later @see evrpc_remove_hook()

extern (C) nothrow
void*
evrpc_add_hook
(
void* vbase
,,
ExternC!(int function
(
void*
,,,
void*
)
)
cb
,
void* cb_arg
)

Meta