module_get_hook_array_from_transaction

March 26, 2020

Name

module_get_hook_array_from_transaction — Get the hooks associated with the current transaction

Synopsis

#include "module-hooks.h"

| ec_ptr_array * **module_get_hook_array_from_transaction** ( | transaction, |   |
|   | head); |   |

ec_config_header * <var class="pdparam">transaction</var>;
struct __ec_hook_head * <var class="pdparam">head</var>;

Description

Get the hooks associated with the current transaction.

Parameters

transaction

For a description of this data type see ec_config_header.

head

The __ec_hook_head. Use module_get_hook_head to retrieve this struct.

Return Values

On success, this function returns an array of pointers to hooks. For more information about the ec_ptr_array data type see ec_ptr_array. On failure this function returns NULL.

Threading

It is legal to call this function in any thread.

See Also

module_get_hook_head, “__ec_hook_head”, ec_ptr_array_init and ec_config_fetch_globalconf