From Harald Welte:
[obnox/wireshark/wip.git] / capture.h
index a9f1f08b49c05b2a7d48920197f9dce2cc8bef62..93ea812ba2ae77b3a1b267d1160186463789e7e0 100644 (file)
--- a/capture.h
+++ b/capture.h
 
 #include "capture_opts.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
 typedef enum {
     capture_cb_capture_prepared,
     capture_cb_capture_update_started,
@@ -123,4 +127,8 @@ extern gboolean capture_stats(if_stat_cache_t *sc, char *ifname, struct pcap_sta
  */
 void capture_stat_stop(if_stat_cache_t *sc);
 
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
 #endif /* capture.h */