\doxysection{signal.\+h}
\label{signal_8h_source}\index{include/osmocom/core/signal.h@{include/osmocom/core/signal.h}}
\textbf{ Go to the documentation of this file.}
\begin{DoxyCode}{0}
\DoxyCodeLine{1 \textcolor{preprocessor}{\#pragma once}}
\DoxyCodeLine{2 }
\DoxyCodeLine{3 \textcolor{preprocessor}{\#include <stdint.h>}}
\DoxyCodeLine{4 }
\DoxyCodeLine{12 \textcolor{preprocessor}{\#define OSMO\_SIGNAL\_SS\_APPS             0}}
\DoxyCodeLine{13 \textcolor{preprocessor}{\#define OSMO\_SIGNAL\_SS\_RESERVED         2147483648u}}
\DoxyCodeLine{14 }
\DoxyCodeLine{16 \textcolor{keyword}{enum} \{}
\DoxyCodeLine{17         SS\_L\_GLOBAL          = OSMO\_SIGNAL\_SS\_RESERVED,}
\DoxyCodeLine{18         SS\_L\_INPUT,}
\DoxyCodeLine{19         SS\_L\_NS,}
\DoxyCodeLine{20         SS\_L\_VTY,}
\DoxyCodeLine{21 \};}
\DoxyCodeLine{22 }
\DoxyCodeLine{23 \textcolor{comment}{/* application-\/defined signal types. */}}
\DoxyCodeLine{24 \textcolor{preprocessor}{\#define OSMO\_SIGNAL\_T\_APPS              0}}
\DoxyCodeLine{25 \textcolor{preprocessor}{\#define OSMO\_SIGNAL\_T\_RESERVED          2147483648u}}
\DoxyCodeLine{26 }
\DoxyCodeLine{28 \textcolor{keyword}{enum} \{}
\DoxyCodeLine{29         S\_L\_GLOBAL\_SHUTDOWN  = OSMO\_SIGNAL\_T\_RESERVED,}
\DoxyCodeLine{30 \};}
\DoxyCodeLine{31 }
\DoxyCodeLine{33 \textcolor{keyword}{typedef} \textcolor{keywordtype}{int} osmo\_signal\_cbfn(\textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} subsys, \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} signal, \textcolor{keywordtype}{void} *handler\_data, \textcolor{keywordtype}{void} *signal\_data);}
\DoxyCodeLine{34 }
\DoxyCodeLine{35 }
\DoxyCodeLine{36 \textcolor{comment}{/* Management */}}
\DoxyCodeLine{37 \textcolor{keywordtype}{void} *osmo\_signal\_talloc\_ctx\_init(\textcolor{keywordtype}{void} *root\_ctx);}
\DoxyCodeLine{38 \textcolor{keywordtype}{int} osmo\_signal\_register\_handler(\textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} subsys, osmo\_signal\_cbfn *cbfn, \textcolor{keywordtype}{void} *data);}
\DoxyCodeLine{39 \textcolor{keywordtype}{void} osmo\_signal\_unregister\_handler(\textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} subsys, osmo\_signal\_cbfn *cbfn, \textcolor{keywordtype}{void} *data);}
\DoxyCodeLine{40 }
\DoxyCodeLine{41 \textcolor{comment}{/* Dispatch */}}
\DoxyCodeLine{42 \textcolor{keywordtype}{void} osmo\_signal\_dispatch(\textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} subsys, \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} signal, \textcolor{keywordtype}{void} *signal\_data);}
\DoxyCodeLine{43 }

\end{DoxyCode}
