X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fconf.h;h=b7d8cb2bdd87f239e7a98152e1746562044950cc;hb=3e8459f81c4e7e18d645cc2f4b7e24900ed33e04;hp=27561ef7a75f8f7c3a699b70db3fccddd19af59d;hpb=2c424175639d62ea806b79173dfe6f554cf3ceb9;p=meshlink diff --git a/src/conf.h b/src/conf.h index 27561ef7..b7d8cb2b 100644 --- a/src/conf.h +++ b/src/conf.h @@ -20,8 +20,9 @@ #ifndef __TINC_CONF_H__ #define __TINC_CONF_H__ -#include "splay_tree.h" #include "list.h" +#include "meshlink_internal.h" +#include "splay_tree.h" typedef struct config_t { char *variable; @@ -30,10 +31,6 @@ typedef struct config_t { int line; } config_t; -extern int pinginterval; -extern int pingtimeout; -extern int maxtimeout; - extern void init_configuration(struct splay_tree_t **); extern void exit_configuration(struct splay_tree_t **); extern config_t *new_config(void) __attribute__ ((__malloc__)); @@ -48,9 +45,9 @@ extern bool get_config_address(const config_t *, struct addrinfo **); extern config_t *parse_config_line(char *, const char *, int); extern bool read_config_file(struct splay_tree_t *, const char *); -extern void read_config_options(struct splay_tree_t *, const char *); -extern bool read_server_config(void); -extern bool read_host_config(struct splay_tree_t *, const char *); -extern bool append_config_file(const char *, const char *, const char *); + +extern bool read_server_config(struct meshlink_handle *mesh); +extern bool read_host_config(struct meshlink_handle *mesh, struct splay_tree_t *, const char *); +extern bool append_config_file(struct meshlink_handle *mesh, const char *, const char *, const char *); #endif /* __TINC_CONF_H__ */