X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=include%2Flttng%2Frotation.h;h=dbc0183da7e856a26df927c454df439b2e5f3a37;hp=0b4b2ad2f5eb8f92c01e60f9a484e8d23c3b19fd;hb=dd73d57bb95fae31161ca0781108d166082a06f5;hpb=b867041c62b48e89c9f00430cde4c33f13a2da09 diff --git a/include/lttng/rotation.h b/include/lttng/rotation.h index 0b4b2ad2f..dbc0183da 100644 --- a/include/lttng/rotation.h +++ b/include/lttng/rotation.h @@ -20,6 +20,7 @@ #define LTTNG_ROTATION_H #include +#include #ifdef __cplusplus extern "C" { @@ -162,16 +163,14 @@ extern enum lttng_rotation_status lttng_rotation_handle_get_state( * Get the location of the rotation's resulting archive. * * The rotation must be completed in order for this call to succeed. - * The path returned is owned by the rotation handle. + * The location returned remains owned by the rotation handle. * - * Note that path will not be set in case of error, or if the session - * rotation has expired. - * - * FIXME: Return an lttng_location object instead of a path. + * Note that location will not be set in case of error, or if the session + * rotation handle has expired. */ -extern enum lttng_rotation_status lttng_rotation_handle_get_completed_archive_location( +extern enum lttng_rotation_status lttng_rotation_handle_get_archive_location( struct lttng_rotation_handle *rotation_handle, - const char **path); + const struct lttng_trace_archive_location **location); /* * Destroy an lttng_rotate_session handle.