Add extern C to the health-check header
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 6 Feb 2014 19:13:56 +0000 (14:13 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Fri, 7 Feb 2014 15:14:44 +0000 (10:14 -0500)
This makes it possible to include health.h in a C++ program.

Acked-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Signed-off-by: David Goulet <dgoulet@efficios.com>
include/lttng/health.h

index 996092869465f0a8ea17bfd0396d785d0274b1f5..9a7a7fc099f23b29a94ac32af356bc393eab6d7a 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 struct lttng_health;
 struct lttng_health_thread;
 
@@ -124,4 +128,8 @@ int lttng_health_thread_state(const struct lttng_health_thread *thread);
  */
 const char *lttng_health_thread_name(const struct lttng_health_thread *thread);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* LTTNG_HEALTH_H */
This page took 0.026527 seconds and 4 git commands to generate.