X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Fopenocd.c;h=d67ebd59b176273a1be992ef3b6e3a38da08120e;hb=151347585a48ef746d8ffbfed7ba9bd621737b0c;hp=2a74a46b741b0c2ad762f175d47371f2336a5024;hpb=cfc4d5c6b7b6f8f82dc5bbf3ee661c179814666e;p=openocd.git diff --git a/src/openocd.c b/src/openocd.c index 2a74a46b74..d67ebd59b1 100644 --- a/src/openocd.c +++ b/src/openocd.c @@ -177,6 +177,9 @@ COMMAND_HANDLER(handle_init_command) command_context_t *global_cmd_ctx; +/// src/hello.c gives a simple example for writing new command modules +int hello_register_commands(struct command_context_s *cmd_ctx); + /* NB! this fn can be invoked outside this file for non PC hosted builds */ command_context_t *setup_command_handler(void) { @@ -188,6 +191,7 @@ command_context_t *setup_command_handler(void) COMMAND_EXEC, "show OpenOCD version"); /* register subsystem commands */ + hello_register_commands(cmd_ctx); server_register_commands(cmd_ctx); telnet_register_commands(cmd_ctx); gdb_register_commands(cmd_ctx);