aboutsummaryrefslogtreecommitdiffstats
path: root/extcap_parser.h
diff options
context:
space:
mode:
authorTomasz Moń <desowin@gmail.com>2014-09-19 19:34:07 +0200
committerPascal Quantin <pascal.quantin@gmail.com>2014-10-06 09:51:56 +0000
commit9c1225f73511b59dd74273545fac401d711cea36 (patch)
tree03b12e1443a273cd91e83a66a24f8092a87ce880 /extcap_parser.h
parent07844512004aacc0a9ecc01ade01081f59a24c64 (diff)
Modify multicheck to accept parent parameter.
This makes it possible for multicheck to become a tree-like structure. Example: arg {number=4}{call=--devices}{display=Devices}{tooltip=Device selector}{type=multicheck} value {arg=4}{value=dev1}{display=Parent Device}{enabled=t}{default=t} value {arg=4}{value=dev2}{display=Child Device}{parent=dev1}{enabled=t} value {arg=4}{value=dev3}{display=Another Parent Device}{enabled=t} value {arg=4}{value=dev4}{display=Non-clickable Child Device}{parent=dev3} value {arg=4}{value=dev5}{display=Non-clickable Child of Child}{parent=dev4} Change-Id: I59dd7208ca0ec90cccfc49ae049559cdc6c69a4b Reviewed-on: https://code.wireshark.org/review/4192 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> Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'extcap_parser.h')
-rw-r--r--extcap_parser.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/extcap_parser.h b/extcap_parser.h
index 0058597535..4076dec670 100644
--- a/extcap_parser.h
+++ b/extcap_parser.h
@@ -67,7 +67,8 @@ typedef enum {
EXTCAP_PARAM_TOOLTIP,
EXTCAP_PARAM_NAME,
EXTCAP_PARAM_ENABLED,
- EXTCAP_PARAM_FILE_MUSTEXIST
+ EXTCAP_PARAM_FILE_MUSTEXIST,
+ EXTCAP_PARAM_PARENT
} extcap_param_type;
/* Values for a given sentence; values are all stored as a call
@@ -80,6 +81,7 @@ typedef struct _extcap_value {
gchar *display;
gboolean enabled;
gboolean is_default;
+ gchar *parent;
} extcap_value;
/* Complex-ish struct for storing complex values */