Revision 46c24e94 streaming.c

View differences:

streaming.c
7 7
#include <stdlib.h>
8 8
#include <stdio.h>
9 9
#include <stdint.h>
10
#include <stdbool.h>
10 11

  
11 12
#include <net_helper.h>
12 13
#include <chunk.h> 
......
31 32
  chunkInit(myID);
32 33
}
33 34

  
34
int source_init(const char *fname, struct nodeID *myID)
35
int source_init(const char *fname, struct nodeID *myID, bool loop)
35 36
{
36
  input = input_open(fname);
37
  input = input_open(fname, loop ? INPUT_LOOP : 0);
37 38
  if (input == NULL) {
38 39
    return -1;
39 40
  }

Also available in: Unified diff