Add C++ support to API header files
authorDavid Goulet <dgoulet@efficios.com>
Mon, 27 Aug 2012 16:49:35 +0000 (12:49 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Mon, 27 Aug 2012 16:49:35 +0000 (12:49 -0400)
Signed-off-by: David Goulet <dgoulet@efficios.com>
include/lttng/lttng-error.h
include/lttng/lttng.h

index 0e1730a33c895fb4b3c32c5be2199cca0775117c..3c28d160337bd3fd0f6de29cc0b1b8bb2b3b949c 100644 (file)
 #ifndef LTTNG_ERROR_H
 #define LTTNG_ERROR_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 enum lttng_error_code {
        LTTNG_OK                         = 10,  /* Ok */
        LTTNG_ERR_UNK                    = 11,  /* Unknown Error */
@@ -131,4 +135,8 @@ enum lttng_error_code {
        LTTNG_ERR_NR,                           /* Last element */
 };
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* LTTNG_ERROR_H */
index dd5d936c5faaed64910f4220e04025b691606028..a9aee7233e7307735982c951b937ed5c2012d38e 100644 (file)
 /* Error codes that can be returned by API calls */
 #include <lttng/lttng-error.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
  * Event symbol length. Copied from LTTng kernel ABI.
  */
@@ -576,4 +580,8 @@ extern int lttng_disable_consumer(struct lttng_handle *handle);
  */
 extern int lttng_health_check(enum lttng_health_component c);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* LTTNG_H */
This page took 0.025618 seconds and 4 git commands to generate.