1
0
cgitsb/cmd.h
Dan McGee 35d33014fb Add is_clone flag to available commands
This will be used to make these operations configurable via a config
option.

Signed-off-by: Dan McGee <dpmcgee@gmail.com>
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
2011-02-19 14:57:48 +01:00

18 Zeilen
301 B
C

#ifndef CMD_H
#define CMD_H
typedef void (*cgit_cmd_fn)(struct cgit_context *ctx);
struct cgit_cmd {
const char *name;
cgit_cmd_fn fn;
unsigned int want_repo:1,
want_layout:1,
want_vpath:1,
is_clone:1;
};
extern struct cgit_cmd *cgit_get_cmd(struct cgit_context *ctx);
#endif /* CMD_H */