config_get_domain_relay
Name
config_get_domain_relay
Synopsis
#include "hooks/core/config_get_domain_relay.h"
| int **config_get_domain_relay** (
| closure, | |
| | cs, | |
| | domain, | |
| | retval)
; | |
void * <var class="pdparam">closure</var>
;
generic_module_infrastructure * <var class="pdparam">cs</var>
;
const char * <var class="pdparam">domain</var>
;
int * <var class="pdparam">retval</var>
;
| int **has_core_config_get_domain_relay_hook** (
| )
; | |
| void **register_core_config_get_domain_relay_hook_first** (
| hook, | |
| | closure)
; | |
ec_hook_core_config_get_domain_relay_func_t <var class="pdparam">hook</var>
;
void *<var class="pdparam">closure</var>
;
| void **register_core_config_get_domain_relay_hook_last** (
| hook, | |
| | closure)
; | |
ec_hook_core_config_get_domain_relay_func_t <var class="pdparam">hook</var>
;
void *<var class="pdparam">closure</var>
;
| int **call_core_config_get_domain_relay_hook** (
| cs, | |
| | domain, | |
| | retval)
; | |
generic_module_infrastructure * <var class="pdparam">cs</var>
;
const char * <var class="pdparam">domain</var>
;
int * <var class="pdparam">retval</var>
;
Description
This hook is called to determine whether a given domain should be relayed for. The default action is to check the relay_hosts list, but it can be overridden by registering a custom function at this hook. If the hook returns non-zero, then the value of retval will be set to the relay status for the domain.