Signed-off-by: David Goulet <dgoulet@efficios.com>
#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 */
LTTNG_ERR_NR, /* Last element */
};
+#ifdef __cplusplus
+}
+#endif
+
#endif /* LTTNG_ERROR_H */
/* 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.
*/
*/
extern int lttng_health_check(enum lttng_health_component c);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* LTTNG_H */