From bc2d48b8cd1c613fbad0feea71dd7739ae09513c Mon Sep 17 00:00:00 2001 From: KatolaZ Date: Thu, 26 Jul 2018 15:02:48 +0100 Subject: first commit on cgit_70 -- repolist, summary --- ui-shared_70.c | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 ui-shared_70.c (limited to 'ui-shared_70.c') diff --git a/ui-shared_70.c b/ui-shared_70.c new file mode 100644 index 0000000..54ea099 --- /dev/null +++ b/ui-shared_70.c @@ -0,0 +1,40 @@ +/* +* +* Gopher-related functions +* +*/ + +#include + +void cgit_gopher_selector(char type, char *str, char *sel, char *host, int port){ + + printf("%c%s\t%s\t%s\t%d\r\n", + type, str, sel, host, port); +} + + +void cgit_gopher_info(char *msg, char *host, int port){ + cgit_gopher_selector('i', msg, "", host, port); +} + +void cgit_gopher_menu(char *descr, char *sel, char *host, int port){ + + cgit_gopher_selector('1', descr, sel, host, port); +} + +void cgit_gopher_textfile(char *descr, char *sel, char *host, int port){ + + cgit_gopher_selector('0', descr, sel, host, port); +} + +void cgit_gopher_error(char *msg, char *host, int port){ + cgit_gopher_selector('3', msg, "Err", host, port); +} + +void cgit_tree_link_gopher(const char *name, const char *title, const char *class, + const char *head, const char *rev, const char *path) +{ + + + +} -- cgit v1.2.3