Revision 176b8de8 src/Chunkiser/input-stream-dumb.c

View differences:

src/Chunkiser/input-stream-dumb.c
15 15
#include <string.h>
16 16

  
17 17
#include "chunkiser_iface.h"
18
#include "config.h"
18
#include "grapes_config.h"
19 19

  
20 20
struct chunkiser_ctx {
21 21
  int loop;	//loop on input file infinitely
......
45 45

  
46 46
  *period = 0;
47 47
  res->chunk_size = DEFAULT_CHUNK_SIZE;
48
  cfg_tags = config_parse(config);
48
  cfg_tags = grapes_config_parse(config);
49 49
  if (cfg_tags) {
50 50
    const char *access_mode;
51 51

  
52
    config_value_int(cfg_tags, "loop", &res->loop);
53
    config_value_int(cfg_tags, "chunk_size", &res->chunk_size);
54
    access_mode = config_value_str(cfg_tags, "mode");
52
    grapes_config_value_int(cfg_tags, "loop", &res->loop);
53
    grapes_config_value_int(cfg_tags, "chunk_size", &res->chunk_size);
54
    access_mode = grapes_config_value_str(cfg_tags, "mode");
55 55
    if (access_mode && !strcmp(access_mode, "nonblock")) {
56 56
#ifndef _WIN32
57 57
      fcntl(res->fds[0], F_SETFL, O_NONBLOCK);

Also available in: Unified diff