diff options
author | João Valverde <joao.valverde@tecnico.ulisboa.pt> | 2017-07-18 19:47:58 +0100 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2017-08-04 05:55:08 +0000 |
commit | 733c19a0720035c1aa19d79f765d72b085d58bdd (patch) | |
tree | c9242cfe94df14569c8d0cd952e9ef010e3fcbfa /epan/range.h | |
parent | 936a8f1cf8c314993f7fca6f193764cb53652924 (diff) |
Optimize the "services" dictionary
Remove assignee and other miscellaneous information that changes more
frequently than service name and can be consulted directly in the IANA
registry.
Allow merging identical transports into a single line for convenience
and size/speed optimization (a backward-compatible change).
Remove obsolete make-services.pl.
Change-Id: I3ecbd1a6a68d87c084d77498a0eeb44b7afdab67
Reviewed-on: https://code.wireshark.org/review/22872
Petri-Dish: João Valverde <j@v6e.pt>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/range.h')
-rw-r--r-- | epan/range.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/epan/range.h b/epan/range.h index f090055240..791719ad59 100644 --- a/epan/range.h +++ b/epan/range.h @@ -137,6 +137,14 @@ WS_DLL_PUBLIC gboolean ranges_are_equal(range_t *a, range_t *b); */ WS_DLL_PUBLIC void range_foreach(range_t *range, void (*callback)(guint32 val)); +/** This function calls the provided callback function for each value in + * in the range. Takes an optional pointer argument. + * @param range the range + * @param callback the callback function + * @param ptr pointer passed to the callback + */ +WS_DLL_PUBLIC void range_foreach2(range_t *range, void (*callback2)(guint32 val, gpointer ptr), gpointer ptr); + /** * This function converts a range_t to a (wmem_alloc()-allocated) string. */ |