summaryrefslogtreecommitdiffstats
path: root/src/inputstream.h
blob: 0353799e8419777395bdf053f2da5b2bd8c0f980 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef fooinputstreamhfoo
#define fooinputstreamhfoo

#include <inttypes.h>

#include "sink.h"
#include "sample.h"
#include "memblockq.h"

struct input_stream {
    char *name;
    uint32_t index;

    struct sink *sink;
    struct sample_spec spec;
    
    struct memblockq *memblockq;
};

struct input_stream* input_stream_new(struct sink *s, struct sample_spec *spec, const char *name);
void input_stream_free(struct input_stream* i);

void input_stream_notify(struct input_stream *i);

#endif