Skip to main content

control_allow_writable_config

Last updated March 2020

Name

control_allow_writable_config

Synopsis

#include "hooks/core/control_allow_writable_config.h"

| int **control_allow_writable_config** ( | closure, |   | |   | cc, |   | |   | response); |   |

void * <var class="pdparam">closure</var>; command_construct * <var class="pdparam">cc</var>; string * <var class="pdparam">response</var>;

| int **has_core_control_allow_writable_config_hook** ( | ); |   |

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

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

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

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

| int **call_core_control_allow_writable_config_hook** ( | cc, |   | |   | response); |   |

command_construct * <var class="pdparam">cc</var>; string * <var class="pdparam">response</var>;

Description

Given cc, hooks registered here can disable "writability" or "run-time reconfiguration" of the command in question. response is provided for output handed back to the console client.

Was this page helpful?