summary refs log tree commit diff
path: root/www/git.causal.agency/cgit/cmd.h
diff options
context:
space:
mode:
Diffstat (limited to 'www/git.causal.agency/cgit/cmd.h')
-rw-r--r--www/git.causal.agency/cgit/cmd.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/www/git.causal.agency/cgit/cmd.h b/www/git.causal.agency/cgit/cmd.h
new file mode 100644
index 00000000..6249b1d8
--- /dev/null
+++ b/www/git.causal.agency/cgit/cmd.h
@@ -0,0 +1,16 @@
+#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,
+		is_clone:1;
+};
+
+extern struct cgit_cmd *cgit_get_cmd(void);
+
+#endif /* CMD_H */