8#ifndef CARDSIGHT_SHELL_H
9#define CARDSIGHT_SHELL_H
17 int (*
fn)(
int argc,
char **argv);
30#define SHELL_CMD(name, help, fn) \
31 static const struct shell_cmd __shell_cmd_##name \
32 __attribute__((used, section(".shell_cmd"))) = { #name, help, fn }
int shell_exec(char *line)
Run a command line.
One command registered in the .shell_cmd linker section.
Definition shell.h:14
int(* fn)(int argc, char **argv)
Definition shell.h:17
const char * name
Definition shell.h:15
const char * help
Definition shell.h:16