X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=include%2Flttng%2Fdestruction-handle.h;h=d14bc16a883b0ad743ecb9fdc5b0c4015d7d25cc;hb=f053d40c60b9dd38da27d88412dcac3a8404324c;hp=6757f213a0ffe88fbd4c7eab63377654a2cca018;hpb=ab5be9fa2eb5ba9600a82cd18fd3cfcbac69169a;p=lttng-tools.git diff --git a/include/lttng/destruction-handle.h b/include/lttng/destruction-handle.h index 6757f213a..d14bc16a8 100644 --- a/include/lttng/destruction-handle.h +++ b/include/lttng/destruction-handle.h @@ -8,8 +8,9 @@ #ifndef LTTNG_DESTRUCTION_HANDLE_H #define LTTNG_DESTRUCTION_HANDLE_H -#include #include +#include +#include #ifdef __cplusplus extern "C" { @@ -43,8 +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( - struct lttng_destruction_handle *handle); +LTTNG_EXPORT extern void lttng_destruction_handle_destroy(struct lttng_destruction_handle *handle); /* * Wait for the destruction of a session to complete. @@ -60,9 +60,9 @@ 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_destruction_handle_wait_for_completion( - struct lttng_destruction_handle *handle, int timeout_ms); +LTTNG_EXPORT extern enum lttng_destruction_handle_status +lttng_destruction_handle_wait_for_completion(struct lttng_destruction_handle *handle, + int timeout_ms); /* * Get the result of a session destruction operation. @@ -79,10 +79,9 @@ 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_destruction_handle_get_result( - const struct lttng_destruction_handle *handle, - enum lttng_error_code *result); +LTTNG_EXPORT extern enum lttng_destruction_handle_status +lttng_destruction_handle_get_result(const struct lttng_destruction_handle *handle, + enum lttng_error_code *result); /* * Get the status of the session rotation performed as part of the session's @@ -107,10 +106,9 @@ 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_destruction_handle_get_rotation_state( - const struct lttng_destruction_handle *handle, - enum lttng_rotation_state *rotation_state); +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); /* * Get the location of the archive resulting from the rotation performed during @@ -131,10 +129,9 @@ 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_destruction_handle_get_archive_location( - const struct lttng_destruction_handle *handle, - const struct lttng_trace_archive_location **location); +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); #ifdef __cplusplus }