aboutsummaryrefslogtreecommitdiffstats
path: root/epan/tvbuff.h
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2009-04-01 16:22:51 +0000
committerAnders Broman <anders.broman@ericsson.com>2009-04-01 16:22:51 +0000
commit4ba5d2f92ba094653a66433a568b1dbfa6b9ee7c (patch)
tree4b281a28431f744ae6696fb2349b0eb26202792a /epan/tvbuff.h
parent87c4184e91e1ed1cb2ee518345d9f047cf8c4645 (diff)
Add to new functions from the optimization patch:
tvb_child_uncompress() tvb_new_child_real_data() svn path=/trunk/; revision=27924
Diffstat (limited to 'epan/tvbuff.h')
-rw-r--r--epan/tvbuff.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/epan/tvbuff.h b/epan/tvbuff.h
index 84c4c9cbe6..91e704a148 100644
--- a/epan/tvbuff.h
+++ b/epan/tvbuff.h
@@ -208,6 +208,9 @@ extern void tvb_set_free_cb(tvbuff_t*, tvbuff_free_cb_t);
* the tvbuff routines knowledgable of this fact. */
extern void tvb_set_child_real_data_tvbuff(tvbuff_t* parent, tvbuff_t* child);
+extern tvbuff_t* tvb_new_child_real_data(tvbuff_t* parent, const guint8* data, guint length,
+ gint reported_length);
+
/**Sets parameters for TVBUFF_REAL_DATA. Can throw ReportedBoundsError. */
extern void tvb_set_real_data(tvbuff_t*, const guint8* data, guint length,
gint reported_length);
@@ -635,6 +638,13 @@ extern gint tvb_find_tvb(tvbuff_t *haystack_tvb, tvbuff_t *needle_tvb,
*/
extern tvbuff_t* tvb_uncompress(tvbuff_t *tvb, int offset, int comprlen);
+/**
+ * Uncompresses a zlib compressed packet inside a tvbuff at offset with
+ * length comprlen. Returns an uncompressed tvbuffer attached to tvb if uncompression
+ * succeeded or NULL if uncompression failed.
+ */
+extern tvbuff_t* tvb_child_uncompress(tvbuff_t *parent, tvbuff_t *tvb, int offset, int comprlen);
+
/************** END OF ACCESSORS ****************/
#endif /* __TVBUFF_H__ */