summaryrefslogtreecommitdiff
path: root/ui-shared_70.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui-shared_70.c')
-rw-r--r--ui-shared_70.c40
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)
+{
+
+
+
+}