aboutsummaryrefslogtreecommitdiffstats
path: root/epan/tvbuff.h
diff options
context:
space:
mode:
authorLuis Ontanon <luis.ontanon@gmail.com>2005-07-26 18:32:12 +0000
committerLuis Ontanon <luis.ontanon@gmail.com>2005-07-26 18:32:12 +0000
commitc5688891a15aad52c20feed8cf401e0e51f5cbf7 (patch)
tree340a32503d93c49eb5e3db35d7a7caa9f99afa07 /epan/tvbuff.h
parentda94bcb0e7d0fcd2dca65cfc39ccf685f0cf01cd (diff)
downloadwireshark-c5688891a15aad52c20feed8cf401e0e51f5cbf7.tar.gz
wireshark-c5688891a15aad52c20feed8cf401e0e51f5cbf7.tar.bz2
wireshark-c5688891a15aad52c20feed8cf401e0e51f5cbf7.zip
new functions:
ep_tvb_memdup() ep_alloc0() ep_strsplit() add all of the ep_ allocators to libethereal.def svn path=/trunk/; revision=15100
Diffstat (limited to 'epan/tvbuff.h')
-rw-r--r--epan/tvbuff.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/epan/tvbuff.h b/epan/tvbuff.h
index 82c76a569d..064391d191 100644
--- a/epan/tvbuff.h
+++ b/epan/tvbuff.h
@@ -332,6 +332,12 @@ extern guint8* tvb_memcpy(tvbuff_t*, guint8* target, gint offset, gint length);
* tvb_memdup(). Calls tvb_memcpy() */
extern guint8* tvb_memdup(tvbuff_t*, 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_memdup(tvbuff_t *tvb, gint offset, gint length);
+
/** WARNING! This function is possibly expensive, temporarily allocating
* another copy of the packet data. Furthermore, it's dangerous because once
* this pointer is given to the user, there's no guarantee that the user will