From 77751c94f17e2c110ae9e88b1780e279d610b96b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Bj=C3=B8rlykke?= Date: Sat, 15 Apr 2017 23:30:30 +0200 Subject: Qt: Add interface toolbar support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit An extcap utility can provide configuration for controls to use in a GUI interface toolbar. This controls are bidirectional and can be used to control the extcap utility while capturing. This is useful in scenarios where configuration can be done based on findings in the capture process, setting temporary values or give other inputs without restarting current capture. Todo: - Add support for Windows Change-Id: Ie15fa67f92eb27d8b73df6bb36f66b9a7d81932d Reviewed-on: https://code.wireshark.org/review/19982 Petri-Dish: Stig Bjørlykke Tested-by: Petri Dish Buildbot Reviewed-by: Stig Bjørlykke --- extcap_parser.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'extcap_parser.h') diff --git a/extcap_parser.h b/extcap_parser.h index 1fd4d42071..3d4c8d0d7b 100644 --- a/extcap_parser.h +++ b/extcap_parser.h @@ -34,7 +34,8 @@ typedef enum { EXTCAP_SENTENCE_VALUE, EXTCAP_SENTENCE_EXTCAP, EXTCAP_SENTENCE_INTERFACE, - EXTCAP_SENTENCE_DLT + EXTCAP_SENTENCE_DLT, + EXTCAP_SENTENCE_CONTROL } extcap_sentence_type; typedef enum { @@ -78,7 +79,9 @@ typedef enum { EXTCAP_PARAM_SAVE, EXTCAP_PARAM_VALIDATION, EXTCAP_PARAM_VERSION, - EXTCAP_PARAM_HELP + EXTCAP_PARAM_HELP, + EXTCAP_PARAM_CONTROL, + EXTCAP_PARAM_ROLE } extcap_param_type; #define ENUM_KEY(s) GUINT_TO_POINTER((guint)s) @@ -197,7 +200,7 @@ void extcap_free_arg_list(GList *a); GList * extcap_parse_args(gchar *output); /* Parse all sentences for interfaces */ -GList * extcap_parse_interfaces(gchar *output); +GList * extcap_parse_interfaces(gchar *output, GList **control_items); /* Parse all sentences for DLTs */ GList * extcap_parse_dlts(gchar *output); -- cgit v1.2.3