Revision 176b8de8 src/ChunkIDSet/chunkids_ops.c

View differences:

src/ChunkIDSet/chunkids_ops.c
13 13
#include "chunkids_private.h"
14 14
#include "chunkids_iface.h"
15 15
#include "chunkidset.h"
16
#include "config.h"
16
#include "grapes_config.h"
17 17

  
18 18
#define DEFAULT_SIZE_INCREMENT 32
19 19

  
......
34 34
    return NULL;
35 35
  }
36 36
  p->n_elements = 0;
37
  cfg_tags = config_parse(config);
37
  cfg_tags = grapes_config_parse(config);
38 38
  if (!cfg_tags) {
39 39
    free(p);
40 40
    return NULL;
41 41
  }
42
  res = config_value_int(cfg_tags, "size", &p->size);
42
  res = grapes_config_value_int(cfg_tags, "size", &p->size);
43 43
  if (!res) {
44 44
    p->size = 0;
45 45
  }
......
54 54
  p->enc = &prio_encoding;
55 55
  p->ops = &list_ops;
56 56
  p->type = CIST_PRIORITY;
57
  type = config_value_str(cfg_tags, "type");
57
  type = grapes_config_value_str(cfg_tags, "type");
58 58
  if (type) {
59 59
    if (!memcmp(type, "priority", strlen(type) - 1)) {
60 60
      p->enc = &prio_encoding;

Also available in: Unified diff