diff options
author | June McEnroe <june@causal.agency> | 2020-12-27 18:45:04 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-12-27 18:45:04 -0500 |
commit | 6169012d588458b9dbbbea56528d5e3669596c80 (patch) | |
tree | fc28a97fede3b74ae2cb2e778ffd4c0ae59c637b /cmd.h | |
download | src-6169012d588458b9dbbbea56528d5e3669596c80.tar.gz src-6169012d588458b9dbbbea56528d5e3669596c80.zip |
Squashed 'www/git.causal.agency/cgit/' content from commit 02221fd3
git-subtree-dir: www/git.causal.agency/cgit git-subtree-split: 02221fd3fe523a3293d64e3359036e3a71d6fd7e
Diffstat (limited to '')
-rw-r--r-- | cmd.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/cmd.h b/cmd.h new file mode 100644 index 00000000..6249b1d8 --- /dev/null +++ b/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 */ |