From 9e1f0604b5d081197d1b2d5adbc8499074e6717e Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Wed, 29 Jun 2011 18:46:10 +0200 Subject: add msgb_set_talloc_ctx() to set the talloc context for msgb allocations --- src/msgb.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/msgb.c b/src/msgb.c index d2c167aa..f9841ed1 100644 --- a/src/msgb.c +++ b/src/msgb.c @@ -98,3 +98,8 @@ uint16_t msgb_length(const struct msgb *msg) { return msg->len; } + +void msgb_set_talloc_ctx(void *ctx) +{ + tall_msgb_ctx = ctx; +} -- cgit v1.2.3