libosmocore
0.6.3
Osmocom core library
Main Page
Modules
Data Structures
Files
File List
Globals
signal.h
Go to the documentation of this file.
1
#ifndef OSMO_SIGNAL_H
2
#define OSMO_SIGNAL_H
3
4
#include <stdint.h>
5
11
/* subsystem signaling numbers: we split the numberspace for applications and
12
* libraries: from 0 to UINT_MAX/2 for applications, from UINT_MAX/2 to
13
* UINT_MAX for libraries. */
14
#define OSMO_SIGNAL_SS_APPS 0
15
#define OSMO_SIGNAL_SS_RESERVED 2147483648u
16
18
enum
{
19
SS_L_GLOBAL = OSMO_SIGNAL_SS_RESERVED,
20
SS_L_INPUT,
21
SS_L_NS,
22
};
23
24
/* application-defined signal types. */
25
#define OSMO_SIGNAL_T_APPS 0
26
#define OSMO_SIGNAL_T_RESERVED 2147483648u
27
29
enum
{
30
S_L_GLOBAL_SHUTDOWN = OSMO_SIGNAL_T_RESERVED,
31
};
32
34
typedef
int
osmo_signal_cbfn
(
unsigned
int
subsys,
unsigned
int
signal,
void
*handler_data,
void
*signal_data);
35
36
37
/* Management */
38
int
osmo_signal_register_handler
(
unsigned
int
subsys,
osmo_signal_cbfn
*cbfn,
void
*
data
);
39
void
osmo_signal_unregister_handler
(
unsigned
int
subsys,
osmo_signal_cbfn
*cbfn,
void
*
data
);
40
41
/* Dispatch */
42
void
osmo_signal_dispatch
(
unsigned
int
subsys,
unsigned
int
signal,
void
*signal_data);
43
46
#endif
/* OSMO_SIGNAL_H */
include
osmocom
core
signal.h
Generated on Fri Aug 23 2013 20:51:42 for libosmocore by
1.8.1.2