sq FSCTL_PIPE_WAIT
[metze/wireshark/wip.git] / capture_session.h
index b828ea6ef72b9c1cd91669714db1450732888cf9..758e98eb98be776f343044ad15d8788a8198fdec 100644 (file)
 #ifndef __CAPTURE_SESSION_H__
 #define __CAPTURE_SESSION_H__
 
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+#ifdef HAVE_LIBPCAP
 /* Current state of capture engine. XXX - differentiate states */
 typedef enum {
     CAPTURE_STOPPED,        /**< stopped */
@@ -35,7 +40,7 @@ typedef enum {
 /*
  * State of a capture session.
  */
-typedef struct oh_shut_up_already {
+typedef struct {
     int fork_child;                 /**< If not -1, in parent, process ID of child */
     int fork_child_status;          /**< Child exit status */
 #ifdef _WIN32
@@ -53,5 +58,14 @@ typedef struct oh_shut_up_already {
 
 extern void
 capture_session_init(capture_session *cap_session, void *cf);
+#else
+
+typedef struct {} capture_session;
+
+#endif /* HAVE_LIBPCAP */
+
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
 
 #endif /* __CAPTURE_SESSION_H__ */