summaryrefslogtreecommitdiff
path: root/servers.h
blob: 694e8a24a4d4aa8b77374bc565280e997a2acd6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef SERVERS_H
#define SERVERS_H

#include <glib.h>

struct server {
	gchar *host;
	guint16 http_port;
	guint16 command_port;
};

extern GSList *servers;

gboolean server_add(const gchar *host, const guint16 http_port,
		const guint16 command_port);
gboolean server_remove(struct server *server);
void servers_init();
void servers_free();

#endif