diff options
author | Harald Welte <laforge@gnumonks.org> | 2010-04-30 14:36:25 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2010-04-30 14:36:25 +0200 |
commit | 0809d79ef805fe21cb4bc4b55c78439b625b5b3d (patch) | |
tree | 0aea3812d3fb7fd074d73f2730695237298e1946 | |
parent | e562502e8d35356f3183a39ff6aad200d11a77bb (diff) |
define 'struct openbsc_msgb_cb' and accessor macro OBSC_MSGB_CB()
-rw-r--r-- | openbsc/include/openbsc/gsm_data.h | 7 |
1 files changed, 7 insertions, 0 deletions
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, |