From 97a1a50e200a6c50e0014dde7e8ec932c30190a1 Mon Sep 17 00:00:00 2001 From: Roland Knall Date: Thu, 28 Jan 2016 10:41:38 +0100 Subject: extcap: Cleanup complex types and add save option Cleanup handling of complex data types and use only glib defined datatypes while handling argument values. Add a save parameter, which (additionally) can set, that a parameter is not saved in a configuration file. Passwords are by default not saved, which may be overwritten using this parameter Change-Id: I67eff0f3286170f082d532e806a39511c40df647 Reviewed-on: https://code.wireshark.org/review/13573 Petri-Dish: Roland Knall Tested-by: Petri Dish Buildbot Reviewed-by: Dario Lombardo Reviewed-by: Roland Knall --- extcap.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'extcap.h') diff --git a/extcap.h b/extcap.h index 74fc0b3b6d..02c230014f 100644 --- a/extcap.h +++ b/extcap.h @@ -37,6 +37,10 @@ #ifdef HAVE_EXTCAP +/* As boolean flags will be allowed any form of yes, true or any number != 0 (or starting with 0) + * The regex will be matched case-insensitive, so only the lower-case is defined here. */ +#define EXTCAP_BOOLEAN_REGEX "^.*([yt1-9])" + /* Prefix for the pipe interfaces */ #define EXTCAP_PIPE_PREFIX "wireshark_extcap" -- cgit v1.2.3