Revision 176b8de8 src/PeerSampler/peersampler.c

View differences:

src/PeerSampler/peersampler.c
6 6
#include "net_helper.h"
7 7
#include "peersampler.h"
8 8
#include "peersampler_iface.h"
9
#include "config.h"
9
#include "grapes_config.h"
10 10

  
11 11
extern struct peersampler_iface ncast;
12 12
extern struct peersampler_iface ncastplus;
......
32 32
  if (!tc) return NULL;
33 33

  
34 34
  tc->ps = &ncastplus;
35
  cfg_tags = config_parse(config);
36
  proto = config_value_str(cfg_tags, "protocol");
35
  cfg_tags = grapes_config_parse(config);
36
  proto = grapes_config_value_str(cfg_tags, "protocol");
37 37
  if (proto) {
38 38
    if (strcmp(proto, "newscast") == 0) {
39 39
      tc->ps = &ncast;

Also available in: Unified diff