ec_control_register_command2 — Register a command handler with the system
void **ec_control_register_command2** ( | prefix, | |
| | closure, | |
| | func
); | |
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.
The command name.
A void pointer to the closure.
A void pointer to the command action.
This function returns void.
It is legal to call this function in any thread.