lib: compile liblttng-ctl as C++
[lttng-tools.git] / include / lttng / destruction-handle.h
index d21954136d5915826fad1e93aef77f08d833353d..6fa4339ac921cb776864e1dd9fdf9a763012f494 100644 (file)
@@ -1,18 +1,8 @@
 /*
- * Copyright (C) 2019 Jérémie Galarneau <jeremie.galarneau@efficios.com>
+ * Copyright (C) 2019 Jérémie Galarneau <jeremie.galarneau@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_DESTRUCTION_HANDLE_H
@@ -20,6 +10,7 @@
 
 #include <lttng/rotation.h>
 #include <lttng/lttng-error.h>
+#include <lttng/lttng-export.h>
 
 #ifdef __cplusplus
 extern "C" {
@@ -53,7 +44,7 @@ enum lttng_destruction_handle_status {
  * Destroy an lttng_destruction_session handle.
  * The handle should be discarded after this call.
  */
-extern void lttng_destruction_handle_destroy(
+LTTNG_EXPORT extern void lttng_destruction_handle_destroy(
                struct lttng_destruction_handle *handle);
 
 /*
@@ -70,7 +61,7 @@ extern void lttng_destruction_handle_destroy(
  * the destruction operation itself succeeded; it indicates that the _wait_
  * operation completed successfully.
  */
-extern enum lttng_destruction_handle_status
+LTTNG_EXPORT extern enum lttng_destruction_handle_status
 lttng_destruction_handle_wait_for_completion(
                struct lttng_destruction_handle *handle, int timeout_ms);
 
@@ -89,7 +80,7 @@ lttng_destruction_handle_wait_for_completion(
  * was not waited-on using the handle or if the arguments of the function are
  * invalid (e.g. NULL).
  */
-extern enum lttng_destruction_handle_status
+LTTNG_EXPORT extern enum lttng_destruction_handle_status
 lttng_destruction_handle_get_result(
                const struct lttng_destruction_handle *handle,
                enum lttng_error_code *result);
@@ -117,7 +108,7 @@ lttng_destruction_handle_get_result(
  * Note that if no rotation was performed, rotation_state will be set to
  * LTTNG_ROTATION_STATE_NO_ROTATION.
  */
-extern enum lttng_destruction_handle_status
+LTTNG_EXPORT extern enum lttng_destruction_handle_status
 lttng_destruction_handle_get_rotation_state(
                const struct lttng_destruction_handle *handle,
                enum lttng_rotation_state *rotation_state);
@@ -141,7 +132,7 @@ lttng_destruction_handle_get_rotation_state(
  * of the session's destruction, or if the arguments of the function are
  * invalid (e.g. NULL).
  */
-extern enum lttng_destruction_handle_status
+LTTNG_EXPORT extern enum lttng_destruction_handle_status
 lttng_destruction_handle_get_archive_location(
                const struct lttng_destruction_handle *handle,
                const struct lttng_trace_archive_location **location);
This page took 0.024942 seconds and 4 git commands to generate.