aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wmem/wmem_user_cb.c
AgeCommit message (Collapse)AuthorFilesLines
2017-03-05wmem: Ensure callbacks are initialized and not accidentally unregisteredMichael Mann1-1/+1
Start the "callback register ID" at 1, so that zeroed out callback IDs are not found during unregister. Change-Id: I1d7d70f53d89c40e07d1637e1e195dd027855ed3 Reviewed-on: https://code.wireshark.org/review/20385 Reviewed-by: Michael Mann <mmann78@netscape.net> Petri-Dish: Michael Mann <mmann78@netscape.net> Reviewed-by: Evan Huus <eapache@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
2014-03-04Remove all $Id$ from top of fileAlexis La Goutte1-2/+0
(Using sed : sed -i '/^ \* \$Id\$/,+1 d') Fix manually some typo (in export_object_dicom.c and crc16-plain.c) Change-Id: I4c1ae68d1c4afeace8cb195b53c715cf9e1227a8 Reviewed-on: https://code.wireshark.org/review/497 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2013-09-01Send all alloc and free calls within wmem through wmem_alloc and wmem_free withEvan Huus1-3/+3
a NULL allocator. This gives us a single, central place to handle out-of-memory errors (by, for example, throwing an exception) for basically all of epan. The only remaining glib memory that is directly allocated is for the hash tables used by the simple and strict allocators. svn path=/trunk/; revision=51627
2013-06-16More callback tweaks, to permit unregistering a callback from the same placeEvan Huus1-3/+29
it was originally registered. svn path=/trunk/; revision=49969
2013-06-16Rework the user callback code a bit to make it saner to use with the auto-resetEvan Huus1-8/+7
trees. svn path=/trunk/; revision=49966
2013-05-08Round two of wmem cleanup callbacks. While the emem tree behaviour will requireEvan Huus1-0/+93
recurring callbacks, I suspect most other potential uses will be once-only, so make that possible, and improve the documentation on the remaining issues. Also separate out the code into its own files and the testing into its own test case. svn path=/trunk/; revision=49209