Skip to main content

Name

config_fetch_domain_routes — Override the routes setting

Synopsis

#include "hooks/auto/routes.h"

| int **core_config_fetch_domain_routes** ( | closure, |   | |   | valueptr, |   | |   | from, |   | |   | domain); |   |

void * <var class="pdparam">closure</var>; ec_config_value ** <var class="pdparam">valueptr</var>; ec_config_header ** <var class="pdparam">from</var>; const char * <var class="pdparam">domain</var>;

Description

Use this hook to override the routes setting for a given domain.

Parameters

closure

The closure function.

valueptr

The value of routes that is returned to the operating system. For a description of this structure see ec_config_value.

from

Scope instances in the configuration. For a description of this structure see ec_config_header. This parameter is optional.

domain

The domain name. This parameter is optional.

Return Values

When this hook returns non-zero, no further hook providers are called, and the value that the hook provider returned is returned to the caller of the hook.

Threading

This hook will be invoked in any thread.

Was this page helpful?