diff options
author | Roland Knall <roland.knall@br-automation.com> | 2018-03-02 15:41:00 +0100 |
---|---|---|
committer | Roland Knall <rknall@gmail.com> | 2018-04-05 09:31:23 +0000 |
commit | 6124ee2a1c06ccc96c3e9aa62c136f34085bfa61 (patch) | |
tree | a54fe1c4247e3f4519f71940d74c6a3f665d8a07 /extcap_parser.h | |
parent | c2422d78281e10beb6ce4ebda1d61c9d0ca63a09 (diff) |
extcap: Reload values on request
Allow certaing elements to be reloaded upon request. The way
this works is, certain elements can be configured to be reloadable.
By doing so, the extcap is asked once more just for the values
list of this item, together with all already set options, and
reloads the available options depending on the response.
Only supported for selector. Radio and Multiselect will need
additional patches, also moving those parts outside of extcap_argument.cpp
might make sense before hand.
Change-Id: I2e9e3d109b334bf878835a7cc9354f468bc22dee
Reviewed-on: https://code.wireshark.org/review/26223
Petri-Dish: Roland Knall <rknall@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Roland Knall <rknall@gmail.com>
Diffstat (limited to 'extcap_parser.h')
-rw-r--r-- | extcap_parser.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/extcap_parser.h b/extcap_parser.h index 924318144c..9800b897cf 100644 --- a/extcap_parser.h +++ b/extcap_parser.h @@ -64,6 +64,7 @@ typedef enum { EXTCAP_PARAM_FILE_EXTENSION, EXTCAP_PARAM_PARENT, EXTCAP_PARAM_REQUIRED, + EXTCAP_PARAM_RELOAD, EXTCAP_PARAM_SAVE, EXTCAP_PARAM_VALIDATION, EXTCAP_PARAM_VERSION, @@ -108,6 +109,8 @@ typedef struct _extcap_arg { gboolean is_required; gboolean save; + gboolean reload; + gchar * regexp; extcap_arg_type arg_type; @@ -187,6 +190,9 @@ void extcap_free_arg_list(GList *a); /* Parse all sentences for args and values */ GList * extcap_parse_args(gchar *output); +/* Parse all sentences for values */ +GList * extcap_parse_values(gchar *output); + /* Parse all sentences for interfaces */ GList * extcap_parse_interfaces(gchar *output, GList **control_items); |