pre_ec_can_relay_to

March 26, 2020

Name

pre_ec_can_relay_to

Synopsis

#include "hooks/core/pre_ec_can_relay_to.h"

| void **pre_ec_can_relay_to** ( | closure, |   |
|   | domain, |   |
|   | rv, |   |
|   | cont); |   |

void * <var class="pdparam">closure</var>;
const char * <var class="pdparam">domain</var>;
int * <var class="pdparam">rv</var>;
int * <var class="pdparam">cont</var>;

| int **has_core_pre_ec_can_relay_to_hook** ( | ); |   |

| void **register_core_pre_ec_can_relay_to_hook_first** ( | hook, |   |
|   | closure); |   |

ec_hook_core_pre_ec_can_relay_to_func_t <var class="pdparam">hook</var>;
void *<var class="pdparam">closure</var>;

| void **register_core_pre_ec_can_relay_to_hook_last** ( | hook, |   |
|   | closure); |   |

ec_hook_core_pre_ec_can_relay_to_func_t <var class="pdparam">hook</var>;
void *<var class="pdparam">closure</var>;

| void **call_core_pre_ec_can_relay_to_hook** ( | domain, |   |
|   | rv, |   |
|   | cont); |   |

const char * <var class="pdparam">domain</var>;
int * <var class="pdparam">rv</var>;
int * <var class="pdparam">cont</var>;

Description

This provides an override mechanism to the conventional domain-based relaying in Momentum. The default action is to return config_get_domain_relay(NULL, domain) . Functions registered at this point can optionally set the return value *rv and set *cont = VALIDATE_DONE to avoid calling out to the configuration subsystem.