Wireshark-dev: [Wireshark-dev] emem -> wmem conversion status and next steps

From: Pascal Quantin <pascal.quantin@xxxxxxxxx>
Date: Fri, 20 Sep 2013 23:55:30 +0200
Hi all,

the easy part of the conversion from emem to wmem memory should be almost complete now: dissectors and plugins use the new memory manager (with the exception of uat / initialization routines).

Next, I was thinking about converting our helper functions found in epan module and the various ep_ and se_ functions.
My idea was to update (and rename!) those functions with the following scheme:
tvb_get_ephemeral_string -> tvb_get_wmem_packet_string
tvb_get_seasonal_string -> tvb_get_wmem_file_string
and adding defines to maintain (temporarily?) backward compatibility:
#define tvb_get_ephemeral_string tvb_get_wmem_packet_string
#define tvb_get_seasonal_string tvb_get_wmem_file_string

Of course we will discover some misuse of ep/se memory (like for uat) that will require more thinking, but it would be one step forward.

Thoughts?

Regards,
Pascal.