aboutsummaryrefslogtreecommitdiffstats
path: root/capture.h
diff options
context:
space:
mode:
Diffstat (limited to 'capture.h')
-rw-r--r--capture.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/capture.h b/capture.h
index a09829d58e..d4cc76986b 100644
--- a/capture.h
+++ b/capture.h
@@ -33,6 +33,10 @@
#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 */