diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-03-04 17:16:23 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-03-04 17:24:43 +0100 |
commit | 08a60265a27d6ec7cc11f95820e8160fafaf5c5d (patch) | |
tree | b670e173b09f12327ec461cab22a8addb9cf9e24 /src/fastd.h | |
parent | 195be08c47edeaf28bf7c2371ccb4178bbeaae83 (diff) | |
download | fastd-08a60265a27d6ec7cc11f95820e8160fafaf5c5d.tar fastd-08a60265a27d6ec7cc11f95820e8160fafaf5c5d.zip |
Load peer dirs in the last step of the configuration
Loading the peer dirs directly led to peers being discovered in a different
order after reconfigure.
Diffstat (limited to 'src/fastd.h')
-rw-r--r-- | src/fastd.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fastd.h b/src/fastd.h index fb7ca25..f8d51dd 100644 --- a/src/fastd.h +++ b/src/fastd.h @@ -316,7 +316,7 @@ void fastd_resolve_peer(fastd_context_t *ctx, fastd_peer_t *peer); int fastd_vsnprintf(const fastd_context_t *ctx, char *buffer, size_t size, const char *format, va_list ap); void fastd_logf(const fastd_context_t *ctx, int level, const char *format, ...); -void fastd_read_peer_dir(fastd_context_t *ctx, fastd_config_t *conf, const char *dir); +void fastd_add_peer_dir(fastd_context_t *ctx, fastd_config_t *conf, const char *dir); bool fastd_read_config(fastd_context_t *ctx, fastd_config_t *conf, const char *filename, bool peer_config, int depth); bool fastd_config_protocol(fastd_context_t *ctx, fastd_config_t *conf, const char *name); @@ -328,7 +328,7 @@ void fastd_config_peer_group_push(fastd_context_t *ctx, fastd_config_t *conf, co void fastd_config_peer_group_pop(fastd_context_t *ctx, fastd_config_t *conf); void fastd_config_release(fastd_context_t *ctx, fastd_config_t *conf); void fastd_configure(fastd_context_t *ctx, fastd_config_t *conf, int argc, char *const argv[]); -void fastd_reconfigure(fastd_context_t *ctx, fastd_config_t *conf); +void fastd_config_load_peer_dirs(fastd_context_t *ctx, fastd_config_t *conf); void fastd_cap_init(fastd_context_t *ctx); void fastd_cap_drop(fastd_context_t *ctx); |