libosmocore/include/osmocom
Holger Hans Peter Freyther 61f28880d5 select: Externalize fd_set filling and dispatch
To integrate with an external event loop (in this case glib) we
need to allow an application to get a filled out fd_set and then
dispatch it. osmo_fds and maxfds are static and I decided to keep
it that way and instead create two routines to fill the fdset and
then one to dispatch the result.

The public header file does not include sys/select.h and we can
compile the library without select, so I didn't want to require
having to include this file, and used void * for the parameter.

Mark the routines as inline to avoid a call from the select
function. I have confirmed that inlining has an effect on x86
using Debian's gcc-4.9.2-10 compiler
2016-03-31 16:56:51 +02:00
..
codec include: Switch to #pragma once pattern 2014-06-16 10:17:27 +02:00
core select: Externalize fd_set filling and dispatch 2016-03-31 16:56:51 +02:00
crypt include: Switch to #pragma once pattern 2014-06-16 10:17:27 +02:00
ctrl vty: add ctrl section for Control interface bind address 2016-02-25 11:02:35 +01:00
gprs Add helper function to convert numerical BSSGP PDU type to string 2016-03-11 22:29:39 +07:00
gsm Export names for gsm_chan_t and gsm48_chan_mode 2016-03-30 21:50:44 +02:00
sim sim: make osim_reader_ops public 2016-03-19 21:18:40 +01:00
vty vty: add ctrl section for Control interface bind address 2016-02-25 11:02:35 +01:00