#define LTTNG_CLEAR_HANDLE_H
#include <lttng/lttng-error.h>
+#include <lttng/lttng-export.h>
#ifdef __cplusplus
extern "C" {
* 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.
* the clear operation itself succeeded; it indicates that the _wait_
* operation completed successfully.
*/
-extern enum lttng_clear_handle_status
- lttng_clear_handle_wait_for_completion(
- struct lttng_clear_handle *handle, int timeout_ms);
+LTTNG_EXPORT extern enum lttng_clear_handle_status
+lttng_clear_handle_wait_for_completion(struct lttng_clear_handle *handle, int timeout_ms);
/*
* Get the result of a session clear operation.
* 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_clear_handle_get_result(
- const struct lttng_clear_handle *handle,
- enum lttng_error_code *result);
+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 */