aboutsummaryrefslogtreecommitdiff
path: root/toys.h
diff options
context:
space:
mode:
Diffstat (limited to 'toys.h')
-rw-r--r--toys.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/toys.h b/toys.h
index 0eb1ee1f..686d7527 100644
--- a/toys.h
+++ b/toys.h
@@ -41,6 +41,12 @@
#include "toys/e2fs.h"
#include "toys/toylist.h"
+// Get list of function prototypes for all enabled command_main() functions.
+
+#define NEWTOY(name, opts, flags) void name##_main(void);
+#define OLDTOY(name, oldname, opts, flags)
+#include "generated/newtoys.h"
+
// These live in main.c
struct toy_list *toy_find(char *name);