|
diff --git a/cgit.h b/cgit.h index 362b435..e114a50 100644 --- a/ cgit.h+++ b/ cgit.h |
|
@@ -50,16 +50,17 @@ extern char *cgit_repo_desc; |
50 | extern char *cgit_repo_owner; |
50 | extern char *cgit_repo_owner; |
51 | |
51 | |
52 | extern int cgit_query_has_symref; |
52 | extern int cgit_query_has_symref; |
53 | extern int cgit_query_has_sha1; |
53 | extern int cgit_query_has_sha1; |
54 | |
54 | |
55 | extern char *cgit_querystring; |
55 | extern char *cgit_querystring; |
56 | extern char *cgit_query_repo; |
56 | extern char *cgit_query_repo; |
57 | extern char *cgit_query_page; |
57 | extern char *cgit_query_page; |
| |
58 | extern char *cgit_query_search; |
58 | extern char *cgit_query_head; |
59 | extern char *cgit_query_head; |
59 | extern char *cgit_query_sha1; |
60 | extern char *cgit_query_sha1; |
60 | extern char *cgit_query_sha2; |
61 | extern char *cgit_query_sha2; |
61 | extern int cgit_query_ofs; |
62 | extern int cgit_query_ofs; |
62 | |
63 | |
63 | extern int htmlfd; |
64 | extern int htmlfd; |
64 | |
65 | |
65 | extern void cgit_global_config_cb(const char *name, const char *value); |
66 | extern void cgit_global_config_cb(const char *name, const char *value); |
@@ -70,16 +71,17 @@ extern void *cgit_free_commitinfo(struct commitinfo *info); |
70 | |
71 | |
71 | extern char *fmt(const char *format,...); |
72 | extern char *fmt(const char *format,...); |
72 | |
73 | |
73 | extern void html(const char *txt); |
74 | extern void html(const char *txt); |
74 | extern void htmlf(const char *format,...); |
75 | extern void htmlf(const char *format,...); |
75 | extern void html_txt(char *txt); |
76 | extern void html_txt(char *txt); |
76 | extern void html_ntxt(int len, char *txt); |
77 | extern void html_ntxt(int len, char *txt); |
77 | extern void html_attr(char *txt); |
78 | extern void html_attr(char *txt); |
| |
79 | extern void html_hidden(char *name, char *value); |
78 | extern void html_link_open(char *url, char *title, char *class); |
80 | extern void html_link_open(char *url, char *title, char *class); |
79 | extern void html_link_close(void); |
81 | extern void html_link_close(void); |
80 | extern void html_filemode(unsigned short mode); |
82 | extern void html_filemode(unsigned short mode); |
81 | |
83 | |
82 | extern int cgit_read_config(const char *filename, configfn fn); |
84 | extern int cgit_read_config(const char *filename, configfn fn); |
83 | extern int cgit_parse_query(char *txt, configfn fn); |
85 | extern int cgit_parse_query(char *txt, configfn fn); |
84 | extern struct commitinfo *cgit_parse_commit(struct commit *commit); |
86 | extern struct commitinfo *cgit_parse_commit(struct commit *commit); |
85 | |
87 | |
@@ -93,17 +95,17 @@ extern int cache_expired(struct cacheitem *item); |
93 | extern char *cgit_repourl(const char *reponame); |
95 | extern char *cgit_repourl(const char *reponame); |
94 | extern char *cgit_pageurl(const char *reponame, const char *pagename, |
96 | extern char *cgit_pageurl(const char *reponame, const char *pagename, |
95 | const char *query); |
97 | const char *query); |
96 | |
98 | |
97 | extern void cgit_print_error(char *msg); |
99 | extern void cgit_print_error(char *msg); |
98 | extern void cgit_print_date(unsigned long secs); |
100 | extern void cgit_print_date(unsigned long secs); |
99 | extern void cgit_print_docstart(char *title, struct cacheitem *item); |
101 | extern void cgit_print_docstart(char *title, struct cacheitem *item); |
100 | extern void cgit_print_docend(); |
102 | extern void cgit_print_docend(); |
101 | extern void cgit_print_pageheader(char *title); |
103 | extern void cgit_print_pageheader(char *title, int show_search); |
102 | |
104 | |
103 | extern void cgit_print_repolist(struct cacheitem *item); |
105 | extern void cgit_print_repolist(struct cacheitem *item); |
104 | extern void cgit_print_summary(); |
106 | extern void cgit_print_summary(); |
105 | extern void cgit_print_log(const char *tip, int ofs, int cnt); |
107 | extern void cgit_print_log(const char *tip, int ofs, int cnt); |
106 | extern void cgit_print_view(const char *hex); |
108 | extern void cgit_print_view(const char *hex); |
107 | extern void cgit_print_tree(const char *hex); |
109 | extern void cgit_print_tree(const char *hex); |
108 | extern void cgit_print_commit(const char *hex); |
110 | extern void cgit_print_commit(const char *hex); |
109 | extern void cgit_print_diff(const char *old_hex, const char *new_hex); |
111 | extern void cgit_print_diff(const char *old_hex, const char *new_hex); |
|