aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/core/msgb.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-07-18 16:59:27 +0200
committerHarald Welte <laforge@gnumonks.org>2011-07-18 17:00:08 +0200
commitc5a0ded53fe359ff4436db72e6aca5ab35927891 (patch)
treeb77cb9e83a5026f0b61a7ed05e3894166cbee951 /include/osmocom/core/msgb.h
parent2ade3a02221147fef29d90e9bdb6b4f7759ca358 (diff)
mkae the new 'void *dst' member part of a union with the trx pointer
this ensures struct msgb is the same size as before, which will ensure binary compatibility
Diffstat (limited to 'include/osmocom/core/msgb.h')
-rw-r--r--include/osmocom/core/msgb.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/osmocom/core/msgb.h b/include/osmocom/core/msgb.h
index 08dfaac6..915c4a04 100644
--- a/include/osmocom/core/msgb.h
+++ b/include/osmocom/core/msgb.h
@@ -29,12 +29,13 @@
struct msgb {
struct llist_head list;
- /* routing information. */
- void *dst;
/* Part of which TRX logical channel we were received / transmitted */
/* FIXME: move them into the control buffer */
- struct gsm_bts_trx *trx;
+ union {
+ void *dst;
+ struct gsm_bts_trx *trx;
+ };
struct gsm_lchan *lchan;
/* the Layer1 header (if any) */