Fix memory leak in capture_get_if_capabilities
[metze/wireshark/wip.git] / capchild / capture_sync.h
index ce107239ceb8f6c5f46b32c9464905ff50020510..3cdac27956b7172711b57a34bab47c9fd983681f 100644 (file)
 #ifndef __CAPTURE_SYNC_H__
 #define __CAPTURE_SYNC_H__
 
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
 /**
  * Start a new capture session.
  *  Create a capture child which is doing the real capture work.
@@ -69,7 +73,7 @@ sync_interface_list_open(gchar **data, gchar **primary_msg,
 
 /** Get interface capabilities using dumpcap */
 extern int
-sync_if_capabilities_open(const gchar *ifname, gboolean monitor_mode,
+sync_if_capabilities_open(const gchar *ifname, gboolean monitor_mode, const gchar* auth,
                           gchar **data, gchar **primary_msg,
                           gchar **secondary_msg, void (*update_cb)(void));
 
@@ -135,4 +139,8 @@ capture_input_closed(capture_session *cap_session, gchar *msg);
 /* set a callback to be called after fork with the pid of the forked child */
 extern void capture_sync_set_fetch_dumpcap_pid_cb(void(*cb)(ws_process_id pid));
 
-#endif /* capture_sync.h */
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+#endif /* __CAPTURE_SYNC_H__ */