summaryrefslogtreecommitdiff
path: root/ui-shared_70.c
blob: 54ea099070263becf8f08d182c58cfacb8cb8f40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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)
{
	


}