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.
This commit is contained in:
Zachary T Welch
2009-11-21 19:27:20 -08:00
parent d89c631014
commit a93b404161
5 changed files with 62 additions and 5 deletions

View File

@@ -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,