summaryrefslogtreecommitdiff
path: root/ui-shared.h
diff options
context:
space:
mode:
authorLars Hjemli <hjemli@gmail.com>2008-03-24 16:50:57 +0100
committerLars Hjemli <hjemli@gmail.com>2008-03-24 16:50:57 +0100
commita4d1ca1dc6ff8171694d9e2280b6075a1beced0c (patch)
tree8ccfdd78b7fe61a54bf09c11a130cfbfa8ed50c8 /ui-shared.h
parentc5984a9896b39748e61daf6e620483749654b102 (diff)
downloadcgit-a4d1ca1dc6ff8171694d9e2280b6075a1beced0c.tar.gz
cgit-a4d1ca1dc6ff8171694d9e2280b6075a1beced0c.tar.bz2
cgit-a4d1ca1dc6ff8171694d9e2280b6075a1beced0c.zip
Add ui-shared.h
This is finally a proper headerfile for the shared ui-functions which used to reside in cgit.h Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'ui-shared.h')
-rw-r--r--ui-shared.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/ui-shared.h b/ui-shared.h
new file mode 100644
index 0000000..94de884
--- /dev/null
+++ b/ui-shared.h
@@ -0,0 +1,36 @@
+#ifndef UI_SHARED_H
+#define UI_SHARED_H
+
+extern char *cgit_repourl(const char *reponame);
+extern char *cgit_fileurl(const char *reponame, const char *pagename,
+ const char *filename, const char *query);
+extern char *cgit_pageurl(const char *reponame, const char *pagename,
+ const char *query);
+
+extern void cgit_tree_link(char *name, char *title, char *class, char *head,
+ char *rev, char *path);
+extern void cgit_log_link(char *name, char *title, char *class, char *head,
+ char *rev, char *path, int ofs, char *grep,
+ char *pattern);
+extern void cgit_commit_link(char *name, char *title, char *class, char *head,
+ char *rev);
+extern void cgit_refs_link(char *name, char *title, char *class, char *head,
+ char *rev, char *path);
+extern void cgit_snapshot_link(char *name, char *title, char *class,
+ char *head, char *rev, char *archivename);
+extern void cgit_diff_link(char *name, char *title, char *class, char *head,
+ char *new_rev, char *old_rev, char *path);
+extern void cgit_object_link(struct object *obj);
+
+extern void cgit_print_error(char *msg);
+extern void cgit_print_date(time_t secs, char *format);
+extern void cgit_print_age(time_t t, time_t max_relative, char *format);
+extern void cgit_print_http_headers(struct cgit_context *ctx);
+extern void cgit_print_docstart(struct cgit_context *ctx);
+extern void cgit_print_docend();
+extern void cgit_print_pageheader(struct cgit_context *ctx);
+extern void cgit_print_filemode(unsigned short mode);
+extern void cgit_print_snapshot_links(const char *repo, const char *head,
+ const char *hex, int snapshots);
+
+#endif /* UI_SHARED_H */
tle='2017-03-12 13:42:28 +0100'>2017-03-12Fix handling of composite pks in peewee.René 'Necoro' Neumann3-2/+17 2017-03-12Misc fixesRené 'Necoro' Neumann1-3/+6 2017-03-11Upgrade to peewee-2.9 and drop our customizationsRené 'Necoro' Neumann3-120/+9 2017-03-11Remove useless requirements.txtRené 'Necoro' Neumann1-2/+0 2017-03-11A tag with a prefix implies the prefixes default tagRené 'Necoro' Neumann1-5/+13 2017-03-11Roll our own version of create_or_get, replacing the one broken/removed one f...René 'Necoro' Neumann1-0/+25 2017-03-11Minor fixesRené 'Necoro' Neumann1-3/+3 2017-03-11Remove peewee import to allow import on global levelRené 'Necoro' Neumann2-2/+6 2017-03-04Prefixes, Tags, and ImplicationsRené 'Necoro' Neumann2-12/+74 2017-03-04Allow to add implications for tagsRené 'Necoro' Neumann1-12/+30 2017-03-04FixesRené 'Necoro' Neumann1-8/+5 2017-03-04Fix Peewee Model.get() (cf. PR #1202)René 'Necoro' Neumann1-1/+25 2017-03-04Remove "builtin" and "pseudo" columns; use "virtual" insteadRené 'Necoro' Neumann3-10/+4 2017-02-27Inserting DocumentsRené 'Necoro' Neumann4-16/+91 2017-02-26Refined the EnumFieldRené 'Necoro' Neumann2-24/+34 2017-02-26Introduce enum fieldsRené 'Necoro' Neumann1-2/+31 2017-02-26Introduce the closureRené 'Necoro' Neumann2-3/+102 2017-02-26Some repr and str improvements on the modelRené 'Necoro' Neumann1-3/+25 2017-02-26Move logging to extra functionRené 'Necoro' Neumann1-5/+7 2017-02-26Include sqllite closure extension in build processRené 'Necoro' Neumann4-2/+1001 2017-02-26More tag handlingRené 'Necoro' Neumann2-3/+82 2017-02-25More prefix workRené 'Necoro' Neumann3-9/+96 2017-02-25Use Peewee instead of SQLAlchemyRené 'Necoro' Neumann5-121/+96 2016-08-16FixRené 'Necoro' Neumann1-1/+1 2016-08-16Use current setuputils flowRené 'Necoro' Neumann2-0/+17 2016-08-16Basic CLIRené 'Necoro' Neumann3-0/+33 2016-08-15Initial model and sqlalchemy setupRené 'Necoro' Neumann3-0/+104