X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=include%2Flttng%2Frotation.h;h=0b4b2ad2f5eb8f92c01e60f9a484e8d23c3b19fd;hp=00d68d7e5c5015a71982f1fe3d5690eca205f135;hb=4f23c58345539eee2e44ae370c31dd6202de2d58;hpb=b0cd9aea98fd7f0d3c901263a2d83dd8a2ca7bd2 diff --git a/include/lttng/rotation.h b/include/lttng/rotation.h index 00d68d7e5..0b4b2ad2f 100644 --- a/include/lttng/rotation.h +++ b/include/lttng/rotation.h @@ -29,15 +29,19 @@ extern "C" { * Return codes for lttng_rotation_handle_get_state() */ enum lttng_rotation_state { + /* + * Session has not been rotated. + */ + LTTNG_ROTATION_STATE_NO_ROTATION = 0, /* * Rotation is ongoing, but has not been completed yet. */ - LTTNG_ROTATION_STATE_ONGOING = 0, + LTTNG_ROTATION_STATE_ONGOING = 1, /* * Rotation has been completed and the resulting chunk * can now safely be read. */ - LTTNG_ROTATION_STATE_COMPLETED = 1, + LTTNG_ROTATION_STATE_COMPLETED = 2, /* * The rotation has expired. * @@ -48,11 +52,11 @@ enum lttng_rotation_state { * Note that this state does not guarantee the the rotation was * completed successfully. */ - LTTNG_ROTATION_STATE_EXPIRED = 2, + LTTNG_ROTATION_STATE_EXPIRED = 3, /* * The rotation could not be completed due to an error. */ - LTTNG_ROTATION_STATE_ERROR = 3, + LTTNG_ROTATION_STATE_ERROR = 4, }; enum lttng_rotation_status {