Statistics
| Branch: | Revision:

streamers / input.h @ 03de31e0

History | View | Annotate | Download (641 Bytes)

1
/*
2
 *  Copyright (c) 2010 Luca Abeni
3
 *  Copyright (c) 2010 Csaba Kiraly
4
 *
5
 *  This is free software; see gpl-3.0.txt
6
 */
7
#ifndef INPUT_H
8
#define INPUT_H
9

    
10
#define INPUT_LOOP 0x0001
11
#define INPUT_UDP 0x0002
12
#define INPUT_IPB 0x0004
13

    
14
struct input_desc;
15
struct chunk;
16

    
17
struct input_desc *input_open(const char *fname, int *fds, int fds_size);
18
void input_close(struct input_desc *s);
19

    
20
/*
21
 * c: chunk structure to be filled. If c->data = NULL after call, there is no new chunk
22
 * Returns: timeout requested till next call to the function, <0 in case of input error
23
 */
24
int input_get(struct input_desc *s, struct chunk *c);
25

    
26
#endif        /* INPUT_H */