diff options
Diffstat (limited to 'epan/tvbuff.c')
-rw-r--r-- | epan/tvbuff.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/epan/tvbuff.c b/epan/tvbuff.c index b99e467891..be666e834b 100644 --- a/epan/tvbuff.c +++ b/epan/tvbuff.c @@ -142,6 +142,15 @@ tvb_free_chain(tvbuff_t *tvb) } } +tvbuff_t * +tvb_new_chain(tvbuff_t *parent, tvbuff_t *backing) +{ + tvbuff_t *tvb = tvb_new_proxy(backing); + + tvb_add_to_chain(parent, tvb); + return tvb; +} + void tvb_add_to_chain(tvbuff_t *parent, tvbuff_t *child) { |