summaryrefslogtreecommitdiff
path: root/epan/tvbuff.h
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2005-08-10 13:56:34 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2005-08-10 13:56:34 +0000
commitb4441e6748170f63f19a3d0467d301f5852f161c (patch)
treeafe8f4108828e267390a6158e9312e1644a2818f /epan/tvbuff.h
parentec3ab9ec3e56a8d2c4f037a8714eba007c0dfcf3 (diff)
downloadwireshark-b4441e6748170f63f19a3d0467d301f5852f161c.tar.gz
rename ep_tvb_fake_unicode() to tvb_get_ephemeral_faked_unicode() and update the README file.
svn path=/trunk/; revision=15271
Diffstat (limited to 'epan/tvbuff.h')
-rw-r--r--epan/tvbuff.h19
1 files changed, 11 insertions, 8 deletions
diff --git a/epan/tvbuff.h b/epan/tvbuff.h
index 859c40365a..d76f9b2395 100644
--- a/epan/tvbuff.h
+++ b/epan/tvbuff.h
@@ -390,16 +390,19 @@ extern guint tvb_strsize(tvbuff_t *tvb, gint offset);
extern gint tvb_strnlen(tvbuff_t*, gint offset, guint maxlength);
/** Convert a string from Unicode to ASCII. At the moment we fake it by
- * assuming all characters are ASCII )-: The caller must free the
- * result returned. The len parameter is the number of guint16's to
- * convert from Unicode. */
+ * assuming all characters are ASCII )-: The len parameter is the number
+ * of guint16's to convert from Unicode.
+ *
+ * tvb_fake_unicode() returns a buffer allocated by g_malloc() and must
+ * be g_free() by the caller.
+ * tvb_get_ephemeral_faked_unicode() returns a buffer that does not need
+ * to be explicitely freed. Instead this buffer is
+ * automatically freed when ethereal starts dissecting
+ * the next packet.
+ */
extern char *tvb_fake_unicode(tvbuff_t *tvb, int offset, int len,
gboolean little_endian);
-/* 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 char *ep_tvb_fake_unicode(tvbuff_t *tvb, int offset, int len,
+extern char *tvb_get_ephemeral_faked_unicode(tvbuff_t *tvb, int offset, int len,
gboolean little_endian);
/**