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.h | |
parent | cd55bd29258b8e0ffae9ea9471059b457ebb59ae (diff) | |
download | wireshark-77751c94f17e2c110ae9e88b1780e279d610b96b.tar.gz |
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.h')
-rw-r--r-- | extcap.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -43,13 +43,15 @@ #define EXTCAP_PIPE_PREFIX "wireshark_extcap" #define EXTCAP_ARGUMENT_CONFIG "--extcap-config" -#define EXTCAP_ARGUMENT_LIST_INTERFACES "--extcap-interfaces" +#define EXTCAP_ARGUMENT_LIST_INTERFACES "--extcap-interfaces" #define EXTCAP_ARGUMENT_INTERFACE "--extcap-interface" #define EXTCAP_ARGUMENT_LIST_DLTS "--extcap-dlts" #define EXTCAP_ARGUMENT_RUN_CAPTURE "--capture" #define EXTCAP_ARGUMENT_CAPTURE_FILTER "--extcap-capture-filter" #define EXTCAP_ARGUMENT_RUN_PIPE "--fifo" +#define EXTCAP_ARGUMENT_CONTROL_IN "--extcap-control-in" +#define EXTCAP_ARGUMENT_CONTROL_OUT "--extcap-control-out" typedef struct _extcap_info { gchar * basename; @@ -117,6 +119,9 @@ extcap_free_if_configuration(GList *list, gboolean free_args); gboolean extcap_has_configuration(const char * ifname, gboolean is_required); +gboolean +extcap_has_toolbar(const char *ifname); + #ifdef WIN32 HANDLE extcap_get_win32_handle(); |