bin: compile lttng-relayd as a C++
[lttng-tools.git] / src / common / index / index.h
index e6f79d7bd49ccd1d0de47ba50300828d6a507697..c7bc656823b9138fbd15827c273a8cec82e2a3bd 100644 (file)
@@ -1,20 +1,10 @@
 /*
- * Copyright (C) 2013 Julien Desfossez <jdesfossez@efficios.com>
- *                      David Goulet <dgoulet@efficios.com>
- *               2016 - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+ * Copyright (C) 2013 Julien Desfossez <jdesfossez@efficios.com>
+ * Copyright (C) 2013 David Goulet <dgoulet@efficios.com>
+ * Copyright (C) 2016 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
  *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License, version 2 only, as
- * published by the Free Software Foundation.
+ * SPDX-License-Identifier: GPL-2.0-only
  *
- * This program is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
- * more details.
- *
- * You should have received a copy of the GNU General Public License along with
- * this program; if not, write to the Free Software Foundation, Inc., 51
- * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
 #ifndef _INDEX_H
 #include <common/fs-handle.h>
 #include <common/trace-chunk.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 struct lttng_index_file {
        struct fs_handle *file;
        uint32_t major;
@@ -62,4 +56,8 @@ int lttng_index_file_read(const struct lttng_index_file *index_file,
 void lttng_index_file_get(struct lttng_index_file *index_file);
 void lttng_index_file_put(struct lttng_index_file *index_file);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _INDEX_H */
This page took 0.028204 seconds and 4 git commands to generate.