diff options
author | Mikael Kanstrup <mikael.kanstrup@gmail.com> | 2016-02-03 12:14:15 +0100 |
---|---|---|
committer | Roland Knall <rknall@gmail.com> | 2016-02-11 06:40:16 +0000 |
commit | 7a1eca1726609fcc75594c688756621c3329a509 (patch) | |
tree | b4ba0bf5c915a8eeb12fa764009312ef78a8852d /extcap.h | |
parent | fa56b68f4fc9b25eba4993a34eaa5807d9182d37 (diff) |
extcap: Convert settings to preference friendly key names
Preferences are only allowed to contain lowercase ASCII letters,
numbers, underscores or dot characters. Create a utility function
to convert an extcap setting to its equivalent preference key and
use it wherever conversion from setting to preference key is needed.
Bug: 12064
Change-Id: I39bbac7de5f0f905bd41c54257fa997a3b32442d
Reviewed-on: https://code.wireshark.org/review/13687
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Roland Knall <rknall@gmail.com>
Diffstat (limited to 'extcap.h')
-rw-r--r-- | extcap.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -87,6 +87,9 @@ extcap_get_if_configuration(const char * ifname); gboolean extcap_has_configuration(const char * ifname, gboolean is_required); +/* converts an extcap setting to its equivalent preference key */ +gchar * extcap_settings_key(const gchar * ifname, const gchar * setting); + #ifdef WIN32 HANDLE extcap_get_win32_handle(); |