summaryrefslogtreecommitdiffstats
path: root/src/shared/libosmocore/include/osmocom/core/msgb.h
diff options
context:
space:
mode:
authorAndreas.Eversberg <jolly@eversberg.eu>2011-07-28 21:02:38 +0200
committerSylvain Munaut <tnt@246tNt.com>2011-07-28 21:02:38 +0200
commit7a9b3f45b278c5664bd8f76b692febb84dee6a71 (patch)
treef8fcee858a6008300d42d170739bdbd4ead740c8 /src/shared/libosmocore/include/osmocom/core/msgb.h
parent8d24b2f3953cf6c02ec3ec09a88d152d6993470a (diff)
parent430be849945688ae107b079db1e216329b1a1f06 (diff)
Merge commit '430be849945688ae107b079db1e216329b1a1f06'
Diffstat (limited to 'src/shared/libosmocore/include/osmocom/core/msgb.h')
-rw-r--r--src/shared/libosmocore/include/osmocom/core/msgb.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/shared/libosmocore/include/osmocom/core/msgb.h b/src/shared/libosmocore/include/osmocom/core/msgb.h
index 8665c2bf..915c4a04 100644
--- a/src/shared/libosmocore/include/osmocom/core/msgb.h
+++ b/src/shared/libosmocore/include/osmocom/core/msgb.h
@@ -29,9 +29,13 @@
struct msgb {
struct llist_head list;
+
/* 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) */
@@ -193,5 +197,7 @@ static inline struct msgb *msgb_alloc_headroom(int size, int headroom,
uint8_t *msgb_data(const struct msgb *msg);
uint16_t msgb_length(const struct msgb *msg);
+/* set the talloc context for msgb_alloc[_headroom] */
+void msgb_set_talloc_ctx(void *ctx);
#endif /* _MSGB_H */