Revision 176b8de8 src/PeerSampler/cloudcast.c

View differences:

src/PeerSampler/cloudcast.c
24 24
#include "../Cache/topocache.h"
25 25
#include "../Cache/cloudcast_proto.h"
26 26
#include "../Cache/proto.h"
27
#include "config.h"
27
#include "grapes_config.h"
28 28
#include "grapes_msg_types.h"
29 29

  
30 30
#define DEFAULT_CACHE_SIZE 20
......
121 121
  if (!con) return NULL;
122 122
  con->local_node = myID;
123 123

  
124
  cfg_tags = config_parse(config);
125
  res = config_value_int(cfg_tags, "cache_size", &(con->cache_size));
124
  cfg_tags = grapes_config_parse(config);
125
  res = grapes_config_value_int(cfg_tags, "cache_size", &(con->cache_size));
126 126
  if (!res) {
127 127
    con->cache_size = DEFAULT_CACHE_SIZE;
128 128
  }
129
  res = config_value_int(cfg_tags, "sent_entries", &(con->sent_entries));
129
  res = grapes_config_value_int(cfg_tags, "sent_entries", &(con->sent_entries));
130 130
  if (!res) {
131 131
    con->sent_entries = DEFAULT_PARTIAL_VIEW_SIZE;
132 132
  }
133
  res = config_value_int(cfg_tags, "max_silence", &(con->max_silence));
133
  res = grapes_config_value_int(cfg_tags, "max_silence", &(con->max_silence));
134 134
  if (!res) {
135 135
    con->max_silence = 0;
136 136
  }
137 137

  
138
  res = config_value_double(cfg_tags, "cloud_respawn_prob", &(con->cloud_respawn_prob));
138
  res = grapes_config_value_double(cfg_tags, "cloud_respawn_prob", &(con->cloud_respawn_prob));
139 139
  if (!res) {
140 140
    con->max_silence = 0;
141 141
  }

Also available in: Unified diff