aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'cgit/cmd.h')
-rw-r--r--cgit/cmd.h19+19 −0
1 files changed, 19 insertions, 0 deletions
diff --git a/cgit/cmd.h b/cgit/cmd.h
new file mode 100644
--- /dev/null
+++ b/cgit/cmd.h
@@ -0,0 +1,19 @@
+/* SPDX-FileCopyrightText: cgit Development Team <cgit@lists.zx2c4.com>
+ * SPDX-License-Identifier: GPL-2.0-only
+ */
+
+#ifndef CMD_H
+#define CMD_H
+
+typedef void (*cgit_cmd_fn)(void);
+
+struct cgit_cmd {
+ const char *name;
+ cgit_cmd_fn fn;
+ unsigned int want_repo:1,
+ want_vpath:1;
+};
+
+extern struct cgit_cmd *cgit_get_cmd(void);
+
+#endif /* CMD_H */