]> git.cameronkatri.com Git - cgit.git/blob - cmd.h
cache.c: fix header order
[cgit.git] / cmd.h
1 #ifndef CMD_H
2 #define CMD_H
3
4 typedef void (*cgit_cmd_fn)(void);
5 typedef void (*cgit_cmd_pre_fn)(void);
6
7 struct cgit_cmd {
8 const char *name;
9 cgit_cmd_fn fn;
10 cgit_cmd_pre_fn pre;
11 unsigned int want_repo:1,
12 want_layout:1,
13 want_vpath:1,
14 is_clone:1;
15 };
16
17 extern struct cgit_cmd *cgit_get_cmd(void);
18
19 #endif /* CMD_H */