libosmocore
0.6.3
Osmocom core library
Main Page
Modules
Data Structures
Files
File List
Globals
select.h
Go to the documentation of this file.
1
#ifndef _BSC_SELECT_H
2
#define _BSC_SELECT_H
3
4
#include <osmocom/core/linuxlist.h>
5
15
#define BSC_FD_READ 0x0001
16
17
#define BSC_FD_WRITE 0x0002
18
19
#define BSC_FD_EXCEPT 0x0004
20
22
struct
osmo_fd
{
24
struct
llist_head
list
;
26
int
fd
;
29
unsigned
int
when
;
32
int (*
cb
)(
struct
osmo_fd
*
fd
,
unsigned
int
what);
34
void
*
data
;
36
unsigned
int
priv_nr
;
37
};
38
39
int
osmo_fd_register(
struct
osmo_fd
*
fd
);
40
void
osmo_fd_unregister(
struct
osmo_fd
*
fd
);
41
int
osmo_select_main(
int
polling);
42
45
#endif
/* _BSC_SELECT_H */
include
osmocom
core
select.h
Generated on Fri Aug 23 2013 20:51:42 for libosmocore by
1.8.1.2