-rw-r--r-- | cgit.h | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -63,13 +63,13 @@ struct cacheitem { char *name; struct stat st; int ttl; int fd; }; -struct repoinfo { +struct cgit_repo { char *url; char *name; char *path; char *desc; char *owner; char *defbranch; @@ -79,16 +79,16 @@ struct repoinfo { char *clone_url; int snapshots; int enable_log_filecount; int enable_log_linecount; }; -struct repolist { +struct cgit_repolist { int length; int count; - struct repoinfo *repos; + struct cgit_repo *repos; }; struct commitinfo { struct commit *commit; char *author; char *author_email; @@ -174,26 +174,26 @@ struct cgit_config { int summary_tags; }; struct cgit_context { struct cgit_query qry; struct cgit_config cfg; + struct cgit_repo *repo; }; extern const char *cgit_version; -extern struct repolist cgit_repolist; -extern struct repoinfo *cgit_repo; +extern struct cgit_repolist cgit_repolist; extern struct cgit_context ctx; extern int cgit_cmd; extern int htmlfd; extern void cgit_prepare_context(struct cgit_context *ctx); extern int cgit_get_cmd_index(const char *cmd); -extern struct repoinfo *cgit_get_repoinfo(const char *url); +extern struct cgit_repo *cgit_get_repoinfo(const char *url); extern void cgit_global_config_cb(const char *name, const char *value); extern void cgit_repo_config_cb(const char *name, const char *value); extern void cgit_querystring_cb(const char *name, const char *value); extern int chk_zero(int result, char *msg); extern int chk_positive(int result, char *msg); |