summaryrefslogtreecommitdiff
path: root/src/user/app/shell/builtins.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/user/app/shell/builtins.h')
-rw-r--r--src/user/app/shell/builtins.h9
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[];