diff libcommon/cmdtab.h @ 14:b7ee2e85686b

command dispatch and scripting factored out into libcommon
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 14 Mar 2021 07:34:35 +0000
parents simtool/dispatch.c@ddd767f6e15b
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/libcommon/cmdtab.h	Sun Mar 14 07:34:35 2021 +0000
@@ -0,0 +1,7 @@
+struct cmdtab {
+	char *cmd;
+	int minargs;
+	int maxargs;
+	int allow_redir;
+	int (*func)();
+};