summaryrefslogtreecommitdiff
path: root/extcap_parser.h
diff options
context:
space:
mode:
authorRoland Knall <roland.knall@br-automation.com>2015-12-29 14:57:53 +0100
committerAnders Broman <a.broman58@gmail.com>2015-12-30 08:11:57 +0000
commit0d47113ddc53714ecd6d3c1b58b694321649d89e (patch)
tree1fb4c3b5fe3092d6442aaf924b37b2e165c1c223 /extcap_parser.h
parent0921c8214ef225fe2b84c5ace0113ea1e931c70c (diff)
downloadwireshark-0d47113ddc53714ecd6d3c1b58b694321649d89e.tar.gz
extcap: Add file extension check
The file-open dialog can now be set with file extensions, allowing the exclusion of unwanted file types. The syntax is the same as for the Qt QFileDialog, e.g.: "Wireshark (*.pcap *.pcapng)" Also, the mustexist option is now considered correctly Change-Id: I9d4efbb5089ce1af640b2a894de07ed79520271e Reviewed-on: https://code.wireshark.org/review/12913 Reviewed-by: Roland Knall <rknall@gmail.com> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'extcap_parser.h')
-rw-r--r--extcap_parser.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/extcap_parser.h b/extcap_parser.h
index de7be00498..a730d200bc 100644
--- a/extcap_parser.h
+++ b/extcap_parser.h
@@ -67,6 +67,7 @@ typedef enum {
EXTCAP_PARAM_NAME,
EXTCAP_PARAM_ENABLED,
EXTCAP_PARAM_FILE_MUSTEXIST,
+ EXTCAP_PARAM_FILE_EXTENSION,
EXTCAP_PARAM_PARENT,
EXTCAP_PARAM_REQUIRED
} extcap_param_type;
@@ -105,6 +106,8 @@ typedef struct _extcap_arg {
gchar *call;
gchar *display;
gchar *tooltip;
+
+ gchar * fileextension;
gboolean fileexists;
gboolean is_required;