From fac8356610fadf488ff92c5a22e5177bb33a2511 Mon Sep 17 00:00:00 2001 From: Hadriel Kaplan Date: Mon, 29 Dec 2014 00:21:15 -0500 Subject: Make all Lua code use wmem not emem Changed all remaining code in wslua that was using emem, to use wmem or simpler methods. Bug: 9927 Change-Id: I3d19a770e0fd77d996bdb6b61a76a722cc2bcd55 Reviewed-on: https://code.wireshark.org/review/6109 Petri-Dish: Michael Mann Reviewed-by: Hadriel Kaplan Petri-Dish: Hadriel Kaplan Tested-by: Petri Dish Buildbot Reviewed-by: Michael Mann --- epan/tvbuff.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'epan/tvbuff.h') diff --git a/epan/tvbuff.h b/epan/tvbuff.h index 66fd060d13..a478e42058 100644 --- a/epan/tvbuff.h +++ b/epan/tvbuff.h @@ -853,6 +853,12 @@ WS_DLL_PUBLIC gchar *tvb_bytes_to_ep_str_punct(tvbuff_t *tvb, const gint offset, WS_DLL_PUBLIC gchar *tvb_bytes_to_ep_str(tvbuff_t *tvb, const gint offset, const gint len); +/** + * Same as above, but using wmem memory management + */ +WS_DLL_PUBLIC gchar *tvb_bytes_to_wmem_str(wmem_allocator_t *allocator, tvbuff_t *tvb, + const gint offset, const gint len); + /** * Given a tvbuff, an offset into the tvbuff, and a length that starts * at that offset (which may be -1 for "all the way to the end of the -- cgit v1.2.3