From 0e0d01d045b3ed903cd7394c628084e0bb2a1925 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Tue, 15 Jul 2014 19:28:12 -0700 Subject: [PATCH] Allow the interface monitor routines to be called from C++. Change-Id: I2ae60c1b015a432f5df36bd623f1a4c69b02bef1 Reviewed-on: https://code.wireshark.org/review/3081 Reviewed-by: Guy Harris --- caputils/iface_monitor.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/caputils/iface_monitor.h b/caputils/iface_monitor.h index d6269cf627..12de37c902 100644 --- a/caputils/iface_monitor.h +++ b/caputils/iface_monitor.h @@ -22,6 +22,10 @@ #ifndef IFACE_MONITOR_H #define IFACE_MONITOR_H +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + #ifdef HAVE_LIBPCAP /* @@ -72,4 +76,8 @@ iface_mon_event(void); #endif /* HAVE_LIBPCAP */ +#ifdef __cplusplus +} +#endif /* __cplusplus */ + #endif /* IFACE_MONITOR_H */