commit | 9e1f0604b5d081197d1b2d5adbc8499074e6717e | [log] [tgz] |
---|---|---|
author | Harald Welte <laforge@gnumonks.org> | Wed Jun 29 18:46:10 2011 +0200 |
committer | Harald Welte <laforge@gnumonks.org> | Wed Jun 29 18:46:10 2011 +0200 |
tree | dbc3f3721822a9aa786f4d33a1bd0c38dad9ef85 | |
parent | 7721a77eafcfffbfcc2d8027dd4134bb9a9cc2b9 [diff] |
add msgb_set_talloc_ctx() to set the talloc context for msgb allocations
diff --git a/include/osmocom/core/msgb.h b/include/osmocom/core/msgb.h index 8665c2b..58976f7 100644 --- a/include/osmocom/core/msgb.h +++ b/include/osmocom/core/msgb.h
@@ -193,5 +193,7 @@ 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 */