#ifndef fooserverhfoo #define fooserverhfoo #include struct server { bool file_read; char *name; char *filename; char *rcon_password; struct list_head rcon_addrs; struct list_head mc_addrs; struct list_head list; }; void read_server_config(struct cfg *cfg, struct server *server); struct server *get_default_server(struct cfg *cfg); bool set_default_server(struct cfg *cfg, const char *name); void get_servers(struct cfg *cfg); void server_free(struct server *server); struct server *server_new(); #endif