diff options
author | KatolaZ <katolaz@freaknet.org> | 2018-07-26 15:02:48 +0100 |
---|---|---|
committer | KatolaZ <katolaz@freaknet.org> | 2018-07-26 15:02:48 +0100 |
commit | bc2d48b8cd1c613fbad0feea71dd7739ae09513c (patch) | |
tree | 8bafdd46c4a7d1d7ff1ab0a9907712a668ff4666 /ui-shared_70.c | |
parent | 5897d950ec1fa084091b06b11a7dca96dc3253a4 (diff) |
first commit on cgit_70 -- repolist, summary
Diffstat (limited to 'ui-shared_70.c')
-rw-r--r-- | ui-shared_70.c | 40 |
1 files changed, 40 insertions, 0 deletions
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 <stdio.h> + +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) +{ + + + +} |