summaryrefslogtreecommitdiff
path: root/epan/tvbuff.h
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2005-07-24 01:56:01 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2005-07-24 01:56:01 +0000
commit0d385f730fd973a7e5087f457507dd2b445de58c (patch)
tree98495a546c84437fd3f1ce424194ae59e23b7739 /epan/tvbuff.h
parent37636903bccb02c0d2e5841a209112e057a9449c (diff)
downloadwireshark-0d385f730fd973a7e5087f457507dd2b445de58c.tar.gz
add
ep_tvb_get_string that acts the same as tvb_get_string but the buffer returned need not be freed. svn path=/trunk/; revision=15024
Diffstat (limited to 'epan/tvbuff.h')
-rw-r--r--epan/tvbuff.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/epan/tvbuff.h b/epan/tvbuff.h
index 2a038926d2..82c76a569d 100644
--- a/epan/tvbuff.h
+++ b/epan/tvbuff.h
@@ -410,6 +410,11 @@ extern gchar *tvb_format_stringzpad(tvbuff_t *tvb, gint offset, gint size);
* Throws an exception if the tvbuff ends before the string does.
*/
extern guint8 *tvb_get_string(tvbuff_t *tvb, gint offset, gint length);
+/* Same as above but the buffer returned from this function does not have to
+ * be freed. It will be automatically freed after the packet is dissected.
+ * Buffers allocated by this function are NOT persistent.
+ */
+extern guint8 *ep_tvb_get_string(tvbuff_t *tvb, gint offset, gint length);
/**
* Given a tvbuff and an offset, with the offset assumed to refer to