Statistics
| Branch: | Revision:

streamers / input.h @ f14985ba

History | View | Annotate | Download (632 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

    
13
struct input_desc;
14
struct chunk;
15

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

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

    
25
#endif        /* INPUT_H */