diff options
author | Stephen Fisher <steve@stephen-fisher.com> | 2009-03-27 19:40:23 +0000 |
---|---|---|
committer | Stephen Fisher <steve@stephen-fisher.com> | 2009-03-27 19:40:23 +0000 |
commit | 1a71ec7c4583fe4676c977372243dcaf50dc3500 (patch) | |
tree | e6c335b0fc0486bf145073b21406e4aa07771503 /epan/tvbuff.h | |
parent | 411f9c9cf1032fe3686a203449e797ffa2841491 (diff) | |
download | wireshark-1a71ec7c4583fe4676c977372243dcaf50dc3500.tar.gz wireshark-1a71ec7c4583fe4676c977372243dcaf50dc3500.tar.bz2 wireshark-1a71ec7c4583fe4676c977372243dcaf50dc3500.zip |
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.h | 10 |
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. |