lib: compile liblttng-ctl as C++
[lttng-tools.git] / include / lttng / clear-handle.h
index ea9edd456cc7f47849afb41d81560eec1c7e05fe..e07e6c47f502a4991599d5a75887de4713d3d676 100644 (file)
@@ -1,25 +1,16 @@
 /*
- * Copyright (C) 2019 Jérémie Galarneau <jeremie.galarneau@efficios.com>
- * Copyright (C) 2019 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+ * Copyright (C) 2019 Jérémie Galarneau <jeremie.galarneau@efficios.com>
+ * Copyright (C) 2019 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
  *
- * This library is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License, version 2.1 only,
- * as published by the Free Software Foundation.
+ * SPDX-License-Identifier: LGPL-2.1-only
  *
- * This library 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 Lesser General Public License
- * for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this library; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
 #ifndef LTTNG_CLEAR_HANDLE_H
 #define LTTNG_CLEAR_HANDLE_H
 
 #include <lttng/lttng-error.h>
+#include <lttng/lttng-export.h>
 
 #ifdef __cplusplus
 extern "C" {
@@ -46,7 +37,7 @@ enum lttng_clear_handle_status {
  * Destroy an lttng_clear_handle.
  * The handle should be discarded after this call.
  */
-extern void lttng_clear_handle_destroy(struct lttng_clear_handle *handle);
+LTTNG_EXPORT extern void lttng_clear_handle_destroy(struct lttng_clear_handle *handle);
 
 /*
  * Wait for a session clear operation to complete.
@@ -62,7 +53,7 @@ extern void lttng_clear_handle_destroy(struct lttng_clear_handle *handle);
  * the clear operation itself succeeded; it indicates that the _wait_
  * operation completed successfully.
  */
-extern enum lttng_clear_handle_status
+LTTNG_EXPORT extern enum lttng_clear_handle_status
        lttng_clear_handle_wait_for_completion(
                struct lttng_clear_handle *handle, int timeout_ms);
 
@@ -81,9 +72,12 @@ extern enum lttng_clear_handle_status
  * was not waited-on using the handle or if the arguments of the function are
  * invalid (e.g. NULL).
  */
-extern enum lttng_clear_handle_status
+LTTNG_EXPORT extern enum lttng_clear_handle_status
        lttng_clear_handle_get_result(
                const struct lttng_clear_handle *handle,
                enum lttng_error_code *result);
+#ifdef __cplusplus
+}
+#endif
 
 #endif /* LTTNG_CLEAR_HANDLE_H */
This page took 0.023341 seconds and 4 git commands to generate.