Revision fcc01ba5 src/Chunkiser/input-stream-dummy.c

View differences:

src/Chunkiser/input-stream-dummy.c
11 11

  
12 12
#include "chunkiser_iface.h"
13 13

  
14
struct input_stream {
14
struct chunkiser_ctx {
15 15
  char buff[80];
16 16
};
17 17

  
18
static struct input_stream *open(const char *fname, int *period, const char *config)
18
static struct chunkiser_ctx *open(const char *fname, int *period, const char *config)
19 19
{
20 20
  fprintf(stderr, "WARNING: This is a dummy chunkiser, only good for debugging! Do not expect anything good from it!\n");
21 21
  *period = 40000;
22
  return malloc(sizeof(struct input_stream));
22
  return malloc(sizeof(struct chunkiser_ctx));
23 23
}
24 24

  
25
static void close(struct input_stream *s)
25
static void close(struct chunkiser_ctx *s)
26 26
{
27 27
  free(s);
28 28
}
29 29

  
30
static uint8_t *chunkise(struct input_stream *s, int id, int *size, uint64_t *ts)
30
static uint8_t *chunkise(struct chunkiser_ctx *s, int id, int *size, uint64_t *ts)
31 31
{
32 32
  sprintf(s->buff, "Chunk %d", id);
33 33
  *ts = 40 * id * 1000;

Also available in: Unified diff