add capture_comment to the capture_options structure
authormartink <martink@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 27 Jul 2013 16:13:29 +0000 (16:13 +0000)
committermartink <martink@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 27 Jul 2013 16:13:29 +0000 (16:13 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@50943 f5534014-38df-0310-8fa8-9805f1628bb7

capture_opts.c
capture_opts.h

index eea7b3afb2d4e331a495b62c4ee59e2b7de89e40..51b8be74ccd08a36081a77fd3bd121bbf9e704b0 100644 (file)
@@ -112,6 +112,7 @@ capture_opts_init(capture_options *capture_opts)
   capture_opts->autostop_filesize               = 1024;             /* 1 MB */
   capture_opts->has_autostop_duration           = FALSE;
   capture_opts->autostop_duration               = 60;               /* 1 min */
+  capture_opts->capture_comment                 = NULL;
 
   capture_opts->output_to_pipe                  = FALSE;
   capture_opts->capture_child                   = FALSE;
index 4cd77c63c5c9a350af199cdbdc26abb3ebe1c4fc..df8c622794e5f8ee17e92896b858f50123b694cd 100644 (file)
@@ -200,6 +200,9 @@ typedef struct capture_options_tag {
                                          is specified */
     gint32 autostop_duration;       /**< Maximum capture duration */
 
+    gchar *capture_comment;         /** capture comment to write to the
+                                        output file */
     /* internally used (don't touch from outside) */
     gboolean output_to_pipe;        /**< save_file is a pipe (named or stdout) */
        gboolean capture_child;         /**< hidden option: Wireshark child mode */