summaryrefslogtreecommitdiffabout
path: root/cgit.h
Unidiff
Diffstat (limited to 'cgit.h') (more/less context) (ignore whitespace changes)
-rw-r--r--cgit.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/cgit.h b/cgit.h
index 249650e..eb8f08c 100644
--- a/cgit.h
+++ b/cgit.h
@@ -38,64 +38,66 @@ extern char *cgit_virtual_root;
38extern char *cgit_cache_root; 38extern char *cgit_cache_root;
39 39
40extern int cgit_nocache; 40extern int cgit_nocache;
41extern int cgit_max_lock_attempts; 41extern int cgit_max_lock_attempts;
42extern int cgit_cache_root_ttl; 42extern int cgit_cache_root_ttl;
43extern int cgit_cache_repo_ttl; 43extern int cgit_cache_repo_ttl;
44extern int cgit_cache_dynamic_ttl; 44extern int cgit_cache_dynamic_ttl;
45extern int cgit_cache_static_ttl; 45extern int cgit_cache_static_ttl;
46extern int cgit_cache_max_create_time; 46extern int cgit_cache_max_create_time;
47 47
48extern char *cgit_repo_name; 48extern char *cgit_repo_name;
49extern char *cgit_repo_desc; 49extern char *cgit_repo_desc;
50extern char *cgit_repo_owner; 50extern char *cgit_repo_owner;
51 51
52extern int cgit_query_has_symref; 52extern int cgit_query_has_symref;
53extern int cgit_query_has_sha1; 53extern int cgit_query_has_sha1;
54 54
55extern char *cgit_querystring; 55extern char *cgit_querystring;
56extern char *cgit_query_repo; 56extern char *cgit_query_repo;
57extern char *cgit_query_page; 57extern char *cgit_query_page;
58extern char *cgit_query_search; 58extern char *cgit_query_search;
59extern char *cgit_query_head; 59extern char *cgit_query_head;
60extern char *cgit_query_sha1; 60extern char *cgit_query_sha1;
61extern char *cgit_query_sha2; 61extern char *cgit_query_sha2;
62extern int cgit_query_ofs; 62extern int cgit_query_ofs;
63 63
64extern int htmlfd; 64extern int htmlfd;
65 65
66extern void cgit_global_config_cb(const char *name, const char *value); 66extern void cgit_global_config_cb(const char *name, const char *value);
67extern void cgit_repo_config_cb(const char *name, const char *value); 67extern void cgit_repo_config_cb(const char *name, const char *value);
68extern void cgit_querystring_cb(const char *name, const char *value); 68extern void cgit_querystring_cb(const char *name, const char *value);
69 69
70extern int hextoint(char c);
71
70extern void *cgit_free_commitinfo(struct commitinfo *info); 72extern void *cgit_free_commitinfo(struct commitinfo *info);
71 73
72extern char *fmt(const char *format,...); 74extern char *fmt(const char *format,...);
73 75
74extern void html(const char *txt); 76extern void html(const char *txt);
75extern void htmlf(const char *format,...); 77extern void htmlf(const char *format,...);
76extern void html_txt(char *txt); 78extern void html_txt(char *txt);
77extern void html_ntxt(int len, char *txt); 79extern void html_ntxt(int len, char *txt);
78extern void html_attr(char *txt); 80extern void html_attr(char *txt);
79extern void html_hidden(char *name, char *value); 81extern void html_hidden(char *name, char *value);
80extern void html_link_open(char *url, char *title, char *class); 82extern void html_link_open(char *url, char *title, char *class);
81extern void html_link_close(void); 83extern void html_link_close(void);
82extern void html_filemode(unsigned short mode); 84extern void html_filemode(unsigned short mode);
83 85
84extern int cgit_read_config(const char *filename, configfn fn); 86extern int cgit_read_config(const char *filename, configfn fn);
85extern int cgit_parse_query(char *txt, configfn fn); 87extern int cgit_parse_query(char *txt, configfn fn);
86extern struct commitinfo *cgit_parse_commit(struct commit *commit); 88extern struct commitinfo *cgit_parse_commit(struct commit *commit);
87 89
88extern void cache_prepare(struct cacheitem *item); 90extern void cache_prepare(struct cacheitem *item);
89extern int cache_lock(struct cacheitem *item); 91extern int cache_lock(struct cacheitem *item);
90extern int cache_unlock(struct cacheitem *item); 92extern int cache_unlock(struct cacheitem *item);
91extern int cache_cancel_lock(struct cacheitem *item); 93extern int cache_cancel_lock(struct cacheitem *item);
92extern int cache_exist(struct cacheitem *item); 94extern int cache_exist(struct cacheitem *item);
93extern int cache_expired(struct cacheitem *item); 95extern int cache_expired(struct cacheitem *item);
94 96
95extern char *cgit_repourl(const char *reponame); 97extern char *cgit_repourl(const char *reponame);
96extern char *cgit_pageurl(const char *reponame, const char *pagename, 98extern char *cgit_pageurl(const char *reponame, const char *pagename,
97 const char *query); 99 const char *query);
98 100
99extern void cgit_print_error(char *msg); 101extern void cgit_print_error(char *msg);
100extern void cgit_print_date(unsigned long secs); 102extern void cgit_print_date(unsigned long secs);
101extern void cgit_print_docstart(char *title, struct cacheitem *item); 103extern void cgit_print_docstart(char *title, struct cacheitem *item);