From 0809d79ef805fe21cb4bc4b55c78439b625b5b3d Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Fri, 30 Apr 2010 14:36:25 +0200 Subject: define 'struct openbsc_msgb_cb' and accessor macro OBSC_MSGB_CB() --- openbsc/include/openbsc/gsm_data.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'openbsc/include/openbsc/gsm_data.h') diff --git a/openbsc/include/openbsc/gsm_data.h b/openbsc/include/openbsc/gsm_data.h index 47f194f87..70f5cdea1 100644 --- a/openbsc/include/openbsc/gsm_data.h +++ b/openbsc/include/openbsc/gsm_data.h @@ -79,6 +79,13 @@ enum bts_gprs_mode { BTS_GPRS_EGPRS = 2, }; +/* the data structure stored in msgb->cb for openbsc apps */ +struct openbsc_msgb_cb { + unsigned char *gmmh; + u_int32_t tlli; +}; +#define OBSC_MSGB_CB(__msgb) ((struct openbsc_msgb_cb *)&((__msgb)->cb[0])) + struct msgb; typedef int gsm_cbfn(unsigned int hooknum, unsigned int event, -- cgit v1.2.3