summaryrefslogtreecommitdiffabout
path: root/cgit.h
Unidiff
Diffstat (limited to 'cgit.h') (more/less context) (ignore whitespace changes)
-rw-r--r--cgit.h4
1 files changed, 3 insertions, 1 deletions
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;
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_head; 59extern char *cgit_query_head;
59extern char *cgit_query_sha1; 60extern char *cgit_query_sha1;
60extern char *cgit_query_sha2; 61extern char *cgit_query_sha2;
61extern int cgit_query_ofs; 62extern int cgit_query_ofs;
62 63
63extern int htmlfd; 64extern int htmlfd;
64 65
65extern void cgit_global_config_cb(const char *name, const char *value); 66extern 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
71extern char *fmt(const char *format,...); 72extern char *fmt(const char *format,...);
72 73
73extern void html(const char *txt); 74extern void html(const char *txt);
74extern void htmlf(const char *format,...); 75extern void htmlf(const char *format,...);
75extern void html_txt(char *txt); 76extern void html_txt(char *txt);
76extern void html_ntxt(int len, char *txt); 77extern void html_ntxt(int len, char *txt);
77extern void html_attr(char *txt); 78extern void html_attr(char *txt);
79extern void html_hidden(char *name, char *value);
78extern void html_link_open(char *url, char *title, char *class); 80extern void html_link_open(char *url, char *title, char *class);
79extern void html_link_close(void); 81extern void html_link_close(void);
80extern void html_filemode(unsigned short mode); 82extern void html_filemode(unsigned short mode);
81 83
82extern int cgit_read_config(const char *filename, configfn fn); 84extern int cgit_read_config(const char *filename, configfn fn);
83extern int cgit_parse_query(char *txt, configfn fn); 85extern int cgit_parse_query(char *txt, configfn fn);
84extern struct commitinfo *cgit_parse_commit(struct commit *commit); 86extern struct commitinfo *cgit_parse_commit(struct commit *commit);
85 87
@@ -93,17 +95,17 @@ extern int cache_expired(struct cacheitem *item);
93extern char *cgit_repourl(const char *reponame); 95extern char *cgit_repourl(const char *reponame);
94extern char *cgit_pageurl(const char *reponame, const char *pagename, 96extern char *cgit_pageurl(const char *reponame, const char *pagename,
95 const char *query); 97 const char *query);
96 98
97extern void cgit_print_error(char *msg); 99extern void cgit_print_error(char *msg);
98extern void cgit_print_date(unsigned long secs); 100extern void cgit_print_date(unsigned long secs);
99extern void cgit_print_docstart(char *title, struct cacheitem *item); 101extern void cgit_print_docstart(char *title, struct cacheitem *item);
100extern void cgit_print_docend(); 102extern void cgit_print_docend();
101extern void cgit_print_pageheader(char *title); 103extern void cgit_print_pageheader(char *title, int show_search);
102 104
103extern void cgit_print_repolist(struct cacheitem *item); 105extern void cgit_print_repolist(struct cacheitem *item);
104extern void cgit_print_summary(); 106extern void cgit_print_summary();
105extern void cgit_print_log(const char *tip, int ofs, int cnt); 107extern void cgit_print_log(const char *tip, int ofs, int cnt);
106extern void cgit_print_view(const char *hex); 108extern void cgit_print_view(const char *hex);
107extern void cgit_print_tree(const char *hex); 109extern void cgit_print_tree(const char *hex);
108extern void cgit_print_commit(const char *hex); 110extern void cgit_print_commit(const char *hex);
109extern void cgit_print_diff(const char *old_hex, const char *new_hex); 111extern void cgit_print_diff(const char *old_hex, const char *new_hex);