extcap: Convert settings to preference friendly key names
authorMikael Kanstrup <mikael.kanstrup@gmail.com>
Wed, 3 Feb 2016 11:14:15 +0000 (12:14 +0100)
committerRoland Knall <rknall@gmail.com>
Thu, 11 Feb 2016 06:40:16 +0000 (06:40 +0000)
commit7a1eca1726609fcc75594c688756621c3329a509
treeb4ba0bf5c915a8eeb12fa764009312ef78a8852d
parentfa56b68f4fc9b25eba4993a34eaa5807d9182d37
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>
extcap.c
extcap.h
ui/qt/extcap_argument.cpp
ui/qt/extcap_argument.h
ui/qt/extcap_options_dialog.cpp