diff options
author | Jakub Zawadzki <darkjames-ws@darkjames.pl> | 2013-07-23 17:23:51 +0000 |
---|---|---|
committer | Jakub Zawadzki <darkjames-ws@darkjames.pl> | 2013-07-23 17:23:51 +0000 |
commit | 761b763eaea8802313c0ad414c68509e29c901e8 (patch) | |
tree | 5c9a112ad750794d0c03af75125ed3b22c6ab346 /epan/tvbuff_real.c | |
parent | 3808dfc909b3e776de9dd36024cf6956f0e124ad (diff) |
Move tvb_new_child_real_data() to tvbuff_real.c with some cleanup
svn path=/trunk/; revision=50843
Diffstat (limited to 'epan/tvbuff_real.c')
-rw-r--r-- | epan/tvbuff_real.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/epan/tvbuff_real.c b/epan/tvbuff_real.c index c1014eddbf..e6b94463eb 100644 --- a/epan/tvbuff_real.c +++ b/epan/tvbuff_real.c @@ -118,3 +118,13 @@ tvb_set_child_real_data_tvbuff(tvbuff_t *parent, tvbuff_t *child) DISSECTOR_ASSERT(child->ops == &tvb_real_ops); tvb_add_to_chain(parent, child); } + +tvbuff_t * +tvb_new_child_real_data(tvbuff_t *parent, const guint8* data, const guint length, const gint reported_length) +{ + tvbuff_t *tvb = tvb_new_real_data(data, length, reported_length); + + tvb_set_child_real_data_tvbuff(parent, tvb); + + return tvb; +} |