diff options
author | Michael Mann <mmann78@netscape.net> | 2016-11-17 21:45:28 -0500 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2016-11-22 16:47:47 +0000 |
commit | fb9a356e46c5adbc74e9d117463c0fb2b4778afe (patch) | |
tree | 810603de442ebb9454352263247654e30120db36 /epan/prefs.h | |
parent | ba67963fd4ef287124cd9bf8f35a22d8a5663a11 (diff) |
Add prefs_get_uint_value and prefs_get_range_value
This allows dissectors to not need to know about the internal preference structure.
Change-Id: I1ae67248cd0b0132aefc225ea0a9befaf9afdde2
Reviewed-on: https://code.wireshark.org/review/18864
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/prefs.h')
-rw-r--r-- | epan/prefs.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/epan/prefs.h b/epan/prefs.h index 220de860ea..912037431a 100644 --- a/epan/prefs.h +++ b/epan/prefs.h @@ -623,6 +623,17 @@ WS_DLL_PUBLIC prefs_set_pref_e prefs_set_pref(char *prefarg); gboolean prefs_get_preference_obsolete(pref_t *pref); prefs_set_pref_e prefs_set_preference_obsolete(pref_t *pref); +/* + * Get current preference uint value. This allows the preference structure + * to remain hidden from those that doesn't really need it + */ +WS_DLL_PUBLIC guint prefs_get_uint_value(const char *module_name, const char* pref_name); + +/* + * Get the current range_copy()ed range preference value (so it needs to be freed). This allows the + * preference structure to remain hidden from those that doesn't really need it. + */ +WS_DLL_PUBLIC range_t* prefs_get_range_value(const char *module_name, const char* pref_name); /* * Returns TRUE if the given device is hidden |