summaryrefslogtreecommitdiff
path: root/src/hello.c
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-21 19:27:20 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-25 10:29:05 -0800
commita93b404161dc42f8dee805c8f95bc4974aded9cb (patch)
tree5dcb1dc0658288fd0385f77bc46a221fbdc06c6f /src/hello.c
parentd89c6310146d9e5fd1a4ab364f09c0f841da5c73 (diff)
downloadopenocd+libswd-a93b404161dc42f8dee805c8f95bc4974aded9cb.tar.gz
openocd+libswd-a93b404161dc42f8dee805c8f95bc4974aded9cb.tar.bz2
openocd+libswd-a93b404161dc42f8dee805c8f95bc4974aded9cb.tar.xz
openocd+libswd-a93b404161dc42f8dee805c8f95bc4974aded9cb.zip
improve command handling examples
Removes hello and foo commands from top-level registration. Instead, the dummy interface driver and faux flash driver have been augmented to register these commands as sub-commands.
Diffstat (limited to 'src/hello.c')
-rw-r--r--src/hello.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hello.c b/src/hello.c
index 9a1bf925..2e5c9289 100644
--- a/src/hello.c
+++ b/src/hello.c
@@ -101,7 +101,7 @@ COMMAND_HANDLER(handle_hello_command)
return retval;
}
-static const struct command_registration hello_command_handlers[] = {
+const struct command_registration hello_command_handlers[] = {
{
.name = "hello",
.handler = &handle_hello_command,