summaryrefslogtreecommitdiff
path: root/minecctl/server.h
blob: a0c0a7676340b0ce5c1c442f9f6a8c52cecfaa38 (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
#ifndef fooserverhfoo
#define fooserverhfoo

#include <stdbool.h>

#include "config-parser.h"

struct server {
	bool file_read;
	char *name;
	struct server_config scfg;
	struct list_head list;
};

void server_read_config(struct cfg *cfg, struct server *server);

struct server *server_get_default(struct cfg *cfg);

bool server_set_default(struct cfg *cfg, const char *name);

void server_load_all_known(struct cfg *cfg);

void server_free_all(struct cfg *cfg);

void server_free(struct server *server);

struct server *server_new();

#endif