Revision 176b8de8 src/TopologyManager/tman.c

View differences:

src/TopologyManager/tman.c
16 16
#include "../Cache/blist_proto.h"
17 17
#include "../Cache/proto.h"
18 18
#include "grapes_msg_types.h"
19
#include "config.h"
19
#include "grapes_config.h"
20 20
#include "topman_iface.h"
21 21

  
22 22
#define TMAN_INIT_PEERS 10 // max # of neighbors in local cache (should be >= than the next)
......
70 70
	struct tag *cfg_tags;
71 71
	int res;
72 72

  
73
	cfg_tags = config_parse(config);
74
	res = config_value_int(cfg_tags, "cache_size", &init_cache_size);
73
	cfg_tags = grapes_config_parse(config);
74
	res = grapes_config_value_int(cfg_tags, "cache_size", &init_cache_size);
75 75
	if (!res) {
76 76
		init_cache_size = TMAN_INIT_PEERS;
77 77
	}
78 78
	cache_size = init_cache_size;
79
	res = config_value_int(cfg_tags, "max_preferred_peers", &max_preferred_peers);
79
	res = grapes_config_value_int(cfg_tags, "max_preferred_peers", &max_preferred_peers);
80 80
	if (!res) {
81 81
		max_preferred_peers = TMAN_MAX_PREFERRED_PEERS;
82 82
	}
83
	res = config_value_int(cfg_tags, "max_gossiping_peers", &max_gossiping_peers);
83
	res = grapes_config_value_int(cfg_tags, "max_gossiping_peers", &max_gossiping_peers);
84 84
	if (!res) {
85 85
		max_gossiping_peers = TMAN_MAX_GOSSIPING_PEERS;
86 86
	}
87
	res = config_value_int(cfg_tags, "period", &default_period);
87
	res = grapes_config_value_int(cfg_tags, "period", &default_period);
88 88
	if (!res) {
89 89
		default_period = TMAN_STD_PERIOD;
90 90
	}

Also available in: Unified diff