summaryrefslogtreecommitdiff
path: root/src/cmd/shell/builtins.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/shell/builtins.h')
-rw-r--r--src/cmd/shell/builtins.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/cmd/shell/builtins.h b/src/cmd/shell/builtins.h
new file mode 100644
index 0000000..1e422bb
--- /dev/null
+++ b/src/cmd/shell/builtins.h
@@ -0,0 +1,10 @@
+#pragma once
+#include <camellia/syscalls.h>
+#include <stdbool.h>
+
+struct builtin {
+ const char *name;
+ void (*fn)(int argc, char **argv);
+};
+
+extern struct builtin builtins[];