+/*
+ * Object used as input parameter to the rotate session API for immediate
+ * rotations.
+ * This is opaque to the public library.
+ */
+struct lttng_rotation_immediate_attr {
+ /* Session name to rotate. */
+ char session_name[LTTNG_NAME_MAX];
+ /* For the rotate pending request. */
+ uint64_t rotate_id;
+};
+
+/*
+ * Object returned by the rotate session API.
+ * This is opaque to the public library.
+ */
+struct lttng_rotation_handle {
+ char session_name[LTTNG_NAME_MAX];
+ /*
+ * ID of the rotate command.
+ * This matches the session->rotate_count, so the handle is valid until
+ * the next rotate command. After that, the rotation_get_state command
+ * returns the "expired" state.
+ */
+ uint64_t rotation_id;
+ /*
+ * Where the rotated (readable) trace has been stored when the
+ * rotation is completed.
+ */
+ struct {
+ bool is_set;
+ char path[LTTNG_PATH_MAX];
+ } archive_location;
+};
+