Use wmem_memdup() instead of wmem_alloc() followed by memcpy().
[metze/wireshark/wip.git] / extcap_parser.h
index 9e1e51b38829ddf08c3b4654ae2651b2109309a1..a730d200bc484cdd927e9b469122426aad20b02f 100644 (file)
@@ -67,7 +67,9 @@ typedef enum {
     EXTCAP_PARAM_NAME,
     EXTCAP_PARAM_ENABLED,
     EXTCAP_PARAM_FILE_MUSTEXIST,
-    EXTCAP_PARAM_PARENT
+    EXTCAP_PARAM_FILE_EXTENSION,
+    EXTCAP_PARAM_PARENT,
+    EXTCAP_PARAM_REQUIRED
 } extcap_param_type;
 
 /* Values for a given sentence; values are all stored as a call
@@ -104,8 +106,12 @@ typedef struct _extcap_arg {
     gchar *call;
     gchar *display;
     gchar *tooltip;
+
+    gchar * fileextension;
     gboolean fileexists;
 
+    gboolean is_required;
+
     extcap_arg_type arg_type;
 
     extcap_complex *range_start;