introduce generic callback function and hook enum
diff --git a/include/openbsc/gsm_data.h b/include/openbsc/gsm_data.h
index 65646f5..2173c51 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.