aboutsummaryrefslogtreecommitdiffstats
path: root/include/openbsc/gsm_data.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2009-02-01 13:32:45 +0000
committerHarald Welte <laforge@gnumonks.org>2009-02-01 13:32:45 +0000
commit8e1e3eece8f00a82079c879a21da94429f2ff1a0 (patch)
treee6b57ba716c65de5e67ad27a2fe55f28d86c5fe1 /include/openbsc/gsm_data.h
parent043d04a99ad9b87d43ba6c78b8ad5ace900aee27 (diff)
introduce generic callback function and hook enum
Diffstat (limited to 'include/openbsc/gsm_data.h')
-rw-r--r--include/openbsc/gsm_data.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/openbsc/gsm_data.h b/include/openbsc/gsm_data.h
index 65646f573..2173c51c5 100644
--- a/include/openbsc/gsm_data.h
+++ b/include/openbsc/gsm_data.h
@@ -14,6 +14,16 @@
#define HARDCODED_ARFCN 123
+enum gsm_hooks {
+ GSM_HOOK_NM_SWLOAD,
+};
+
+struct msgb;
+typedef int gsm_cbfn(unsigned int hooknum,
+ unsigned int event,
+ struct msgb *msg,
+ void *data, void *param);
+
/*
* Use the channel. As side effect the lchannel recycle timer
* will be started.