This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.
pablo at gnumonks.org pablo at gnumonks.orgFrom: Pablo Neira Ayuso <pablo at gnumonks.org> The first range (from 0 to 63) of signal subsystems can be used by client applications while the second range (from 64 to 255) is reserved for libraries. This is useful to support signals defined in libraries that may be used by different client applications. --- include/osmocom/core/signal.h | 23 +++++++++++++++++++++++ 1 files changed, 23 insertions(+), 0 deletions(-) diff --git a/include/osmocom/core/signal.h b/include/osmocom/core/signal.h index 535fd18..77490da 100644 --- a/include/osmocom/core/signal.h +++ b/include/osmocom/core/signal.h @@ -1,6 +1,29 @@ #ifndef OSMO_SIGNAL_H #define OSMO_SIGNAL_H +#include <stdint.h> + +/* subsystem signaling numbers: we split the numberspace for applications and + * libraries: from 0 to 64 for applications, from 64 to 255 for libraries. */ +#define OSMO_SIGNAL_SS_APPS 0 +#define OSMO_SIGNAL_SS_RESERVED 64 +#define OSMO_SIGNAL_SS_MAX 255 + +/* signal subsystems. */ +enum { + SS_GLOBAL = OSMO_SIGNAL_SS_RESERVED, + SS_INPUT, +}; + +/* application-defined signal types. */ +#define OSMO_SIGNAL_T_APPS 0 +#define OSMO_SIGNAL_T_RESERVED 64 + +/* signal types. */ +enum { + S_GLOBAL_SHUTDOWN = OSMO_SIGNAL_T_RESERVED, +}; + typedef int osmo_signal_cbfn(unsigned int subsys, unsigned int signal, void *handler_data, void *signal_data); -- 1.7.2.5