summaryrefslogtreecommitdiffstats
path: root/include/osmocore/signal.h
blob: 02d83d2e9b9398c5524e678f0124e591b8eeea2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef OSMOCORE_SIGNAL_H
#define OSMOCORE_SIGNAL_H

typedef int signal_cbfn(unsigned int subsys, unsigned int signal,
			void *handler_data, void *signal_data);


/* Management */
int register_signal_handler(unsigned int subsys, signal_cbfn *cbfn, void *data);
void unregister_signal_handler(unsigned int subsys, signal_cbfn *cbfn, void *data);

/* Dispatch */
void dispatch_signal(unsigned int subsys, unsigned int signal, void *signal_data);

#endif /* OSMOCORE_SIGNAL_H */