diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2017-04-15 23:30:30 +0200 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2017-04-25 06:19:39 +0000 |
commit | 77751c94f17e2c110ae9e88b1780e279d610b96b (patch) | |
tree | cd3a06ccf7944b3e131234ac86ae7b26ced8ea6b /extcap_parser.h | |
parent | cd55bd29258b8e0ffae9ea9471059b457ebb59ae (diff) | |
download | wireshark-77751c94f17e2c110ae9e88b1780e279d610b96b.tar.gz wireshark-77751c94f17e2c110ae9e88b1780e279d610b96b.tar.bz2 wireshark-77751c94f17e2c110ae9e88b1780e279d610b96b.zip |
Qt: Add interface toolbar support
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 <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'extcap_parser.h')
-rw-r--r-- | extcap_parser.h | 9 |
1 files changed, 6 insertions, 3 deletions
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); |