epan/dissectors/packet-xml.c try to decrypt data, but the data doesn't look correct yet
[metze/wireshark/wip.git] / capchild / capture_sync.h
index 3cdac27956b7172711b57a34bab47c9fd983681f..41c566de1a7cd21db7fb640334f2c4bdb24bca05 100644 (file)
@@ -5,19 +5,7 @@
  * By Gerald Combs <gerald@wireshark.org>
  * Copyright 1998 Gerald Combs
  *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * SPDX-License-Identifier: GPL-2.0-or-later
  */
 
 
@@ -36,6 +24,8 @@
 extern "C" {
 #endif /* __cplusplus */
 
+struct _info_data;
+
 /**
  * Start a new capture session.
  *  Create a capture child which is doing the real capture work.
@@ -46,11 +36,12 @@ extern "C" {
  *
  *  @param capture_opts the options
  *  @param cap_session a handle for the capture session
+ *  @param cap_data a struct with capture info data
  *  @param update_cb update screen
  *  @return             TRUE if a capture could be started, FALSE if not
  */
 extern gboolean
-sync_pipe_start(capture_options *capture_opts, capture_session *cap_session, void(*update_cb)(void));
+sync_pipe_start(capture_options *capture_opts, capture_session *cap_session, struct _info_data* cap_data, void(*update_cb)(void));
 
 /** User wants to stop capturing, gracefully close the capture child */
 extern void
@@ -60,9 +51,27 @@ sync_pipe_stop(capture_session *cap_session);
 extern void
 sync_pipe_kill(ws_process_id fork_child);
 
-/** Set wireless channel using dumpcap */
+/**
+ * Set wireless channel using dumpcap
+ *  On success, *data points to a buffer containing the dumpcap output,
+ *  *primary_msg and *secondary_msg are NULL, and 0 is returned.  *data
+ *  must be freed with g_free().
+ *
+ *  On failure, *data is NULL, *primary_msg points to an error message,
+ *  *secondary_msg either points to an additional error message or is
+ *  NULL, and -1 or errno value is returned; *primary_msg, and
+ *  *secondary_msg if not NULL must be freed with g_free().
+ *
+ *  @param iface (monitor) network interface name
+ *  @param freq channel control frequency string (in MHz)
+ *  @param type channel type string (or NULL if not used)
+ *  @param center_freq1 VHT channel center frequency (or NULL if not used)
+ *  @param center_freq2 VHT channel center frequency 2 (or NULL if not used)
+ *  @return 0 on success
+ */
 extern int
 sync_interface_set_80211_chan(const gchar *iface, const char *freq, const gchar *type,
+                              const gchar *center_freq1, const gchar *center_freq2,
                               gchar **data, gchar **primary_msg,
                               gchar **secondary_msg, void (*update_cb)(void));
 
@@ -112,13 +121,13 @@ capture_input_new_packets(capture_session *cap_session, int to_read);
  * Capture child told us how many dropped packets it counted.
  */
 extern void
-capture_input_drops(capture_session *cap_session, guint32 dropped);
+capture_input_drops(capture_session *cap_session, guint32 dropped, char* interface_name);
 
 /**
  * Capture child told us that an error has occurred while starting the capture.
  */
 extern void
-capture_input_error_message(capture_session *cap_session, char *error_message,
+capture_input_error_message(capture_session *cap_session, char *error_msg,
                             char *secondary_error_msg);
 
 /**