diff options
Diffstat (limited to 'src/user/app/shell/builtins.h')
-rw-r--r-- | src/user/app/shell/builtins.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/user/app/shell/builtins.h b/src/user/app/shell/builtins.h index bb52cef..aa2cd8c 100644 --- a/src/user/app/shell/builtins.h +++ b/src/user/app/shell/builtins.h @@ -2,6 +2,9 @@ #include <camellia/syscalls.h> #include <stdbool.h> -void cmd_cat_ls(const char *args, bool ls); -void cmd_hexdump(const char *args); -void cmd_touch(const char *args); +struct builtin { + const char *name; + void (*fn)(int argc, const char **argv); +}; + +extern struct builtin builtins[]; |