Go to the source code of this file.
Detailed Description
- Author:
- Ivan Ristic <ivanr@webkreator.com>
Define Documentation
Typedef Documentation
Function Documentation
Creates a copy of the provided hook. The hook is allowed to be NULL, in which case this function simply returns a NULL.
- Parameters:
-
- Returns:
- A copy of the hook, or NULL (if the provided hook was NULL or, if it wasn't, if there was a memory allocation problem while constructing a copy).
Creates a new hook.
- Returns:
- New htp_hook_t structure on success, NULL on failure
Destroys an existing hook. It is all right to send a NULL to this method because it will simply return straight away.
- Parameters:
-
Registers a new callback with the hook.
- Parameters:
-
- Returns:
- 1 on success, -1 on memory allocation error
Runs all the callbacks associated with a given hook. Only stops if one of the callbacks returns an error (HOOK_ERROR).
- Parameters:
-
- Returns:
- HOOK_OK or HOOK_ERROR
Run callbacks until one of them accepts to service the hook.
- Parameters:
-
- Returns:
- HOOK_OK on success, HOOK_DECLINED if no callback wanted to run and HOOK_ERROR on error.