ec_control_register_command2
Last updated March 2020
Name
ec_control_register_command2 — Register a command handler with the system
Synopsis
#include "control.h"
| void **ec_control_register_command2** (
| prefix, | |
| | closure, | |
| | func)
; | |
const char * <var class="pdparam">prefix</var>
;
void * <var class="pdparam">closure</var>
;
ec_control_function2 <var class="pdparam">func</var>
;
Description
Register a command handler with the system.
The command stays registered with the system, even across configuration generations.
Once registered, it cannot be removed, but may be replaced with another command registered at the same prefix.
- prefix
-
The command name.
- closure
-
A void pointer to the closure.
- func
-
A void pointer to the command action.
This function returns void.
It is legal to call this function in any thread.
See Also
Was this page helpful?