command_handler_t is only used within OpenOCD.
 
Symbols
loading...
Files
loading...

command_handler_t

The type signature for command handling functions. They are usually registered as part of command_registration, providing a high-level means for executing a command. If the command fails, it *MUST* return a value != ERROR_OK (many commands break this rule, patches welcome!) This is *especially* important for commands such as writing to flash or verifying memory. The reason is that those commands can be used by programs to determine if the operation succeeded or not. If the operation failed, then a program can try an alternative approach. Returning ERROR_COMMAND_SYNTAX_ERROR will have the effect of printing out the syntax of the command.

Syntax

typedef __COMMAND_HANDLER((*command_handler_t;

References

LocationText
command.h:195
typedef __COMMAND_HANDLER((*command_handler_t));
command.h:199
command_handler_t handler;
command.h:236
command_handler_t handler;