blob: 6249b1d892432471546f569c328690251bd6cfc5 [file] [log] [blame]
Lars Hjemlie0e44782008-03-24 01:09:39 +01001#ifndef CMD_H
2#define CMD_H
3
Lukas Fleischerf60ffa12014-01-15 21:53:15 +01004typedef void (*cgit_cmd_fn)(void);
Lars Hjemlie0e44782008-03-24 01:09:39 +01005
6struct cgit_cmd {
7 const char *name;
8 cgit_cmd_fn fn;
9 unsigned int want_repo:1,
Dan McGee35d33012011-01-12 12:06:06 -060010 want_vpath:1,
11 is_clone:1;
Lars Hjemlie0e44782008-03-24 01:09:39 +010012};
13
Lukas Fleischerf60ffa12014-01-15 21:53:15 +010014extern struct cgit_cmd *cgit_get_cmd(void);
Lars Hjemlie0e44782008-03-24 01:09:39 +010015
16#endif /* CMD_H */