aboutsummaryrefslogtreecommitdiffstats
path: root/epan/tvbuff.h
diff options
context:
space:
mode:
authorStephen Fisher <steve@stephen-fisher.com>2009-03-27 19:40:23 +0000
committerStephen Fisher <steve@stephen-fisher.com>2009-03-27 19:40:23 +0000
commit1a71ec7c4583fe4676c977372243dcaf50dc3500 (patch)
treee6c335b0fc0486bf145073b21406e4aa07771503 /epan/tvbuff.h
parent411f9c9cf1032fe3686a203449e797ffa2841491 (diff)
Introduce two new functions:
tvb_get_seasonal_string(); tvb_get_seasonal_stringz(); .. which work the same as the ephemeral versions of the functions, but use se_alloc() instead of ep_alloc(). svn path=/trunk/; revision=27868
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 7ddf58db72..84c4c9cbe6 100644
--- a/epan/tvbuff.h
+++ b/epan/tvbuff.h
@@ -460,9 +460,14 @@ extern gchar *tvb_format_stringzpad(tvbuff_t *tvb, gint offset, gint size);
* tvb_get_ephemeral_string() returns a string that does not need to be freed,
* instead it will automatically be freed once the next
* packet is dissected.
+ *
+ * tvb_get_seasonal_string() returns a string that does not need to be freed,
+ * instead it will automatically be freed when a new capture
+ * or file is opened.
*/
extern guint8 *tvb_get_string(tvbuff_t *tvb, gint offset, gint length);
extern guint8 *tvb_get_ephemeral_string(tvbuff_t *tvb, gint offset, gint length);
+extern guint8 *tvb_get_seasonal_string(tvbuff_t *tvb, gint offset, gint length);
/**
@@ -480,9 +485,14 @@ extern guint8 *tvb_get_ephemeral_string(tvbuff_t *tvb, gint offset, gint length)
* tvb_get_ephemeral_stringz() returns a string that does not need to be freed,
* instead it will automatically be freed once the next
* packet is dissected.
+ *
+ * tvb_get_seasonal_stringz() returns a string that does not need to be freed,
+ * instead it will automatically be freed when a new capture
+ * or file is opened.
*/
extern guint8 *tvb_get_stringz(tvbuff_t *tvb, gint offset, gint *lengthp);
extern guint8 *tvb_get_ephemeral_stringz(tvbuff_t *tvb, gint offset, gint *lengthp);
+extern guint8 *tvb_get_seasonal_stringz(tvbuff_t *tvb, gint offset, gint *lengthp);
/** Looks for a stringz (NUL-terminated string) in tvbuff and copies
* no more than bufsize number of bytes, including terminating NUL, to buffer.