Introduce html.h
All html-functions can be quite easily separated from the rest of cgit, so lets do it; the only issue was html_filemode which uses some git-defined macros so the function is moved into ui-shared.c::cgit_print_filemode(). Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
15
cgit.h
15
cgit.h
@ -186,8 +186,6 @@ 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 cgit_repo *cgit_get_repoinfo(const char *url);
|
||||
@ -222,18 +220,6 @@ extern void cgit_diff_commit(struct commit *commit, filepair_fn fn);
|
||||
|
||||
extern char *fmt(const char *format,...);
|
||||
|
||||
extern void html(const char *txt);
|
||||
extern void htmlf(const char *format,...);
|
||||
extern void html_txt(char *txt);
|
||||
extern void html_ntxt(int len, char *txt);
|
||||
extern void html_attr(char *txt);
|
||||
extern void html_hidden(char *name, char *value);
|
||||
extern void html_option(char *value, char *text, char *selected_value);
|
||||
extern void html_link_open(char *url, char *title, char *class);
|
||||
extern void html_link_close(void);
|
||||
extern void html_filemode(unsigned short mode);
|
||||
extern int html_include(const char *filename);
|
||||
|
||||
extern int cgit_read_config(const char *filename, configfn fn);
|
||||
extern int cgit_parse_query(char *txt, configfn fn);
|
||||
extern struct commitinfo *cgit_parse_commit(struct commit *commit);
|
||||
@ -280,6 +266,7 @@ extern void cgit_print_pageheader(char *title, int show_search);
|
||||
extern void cgit_print_snapshot_start(const char *mimetype,
|
||||
const char *filename,
|
||||
struct cacheitem *item);
|
||||
extern void cgit_print_filemode(unsigned short mode);
|
||||
extern void cgit_print_branches(int maxcount);
|
||||
extern void cgit_print_tags(int maxcount);
|
||||
|
||||
|
Reference in New Issue
Block a user