#ifndef LTTNG_ROTATE_H
#define LTTNG_ROTATE_H
+#include <stdint.h>
+
#ifdef __cplusplus
extern "C" {
#endif
int lttng_rotate_session_attr_set_session_name(
struct lttng_rotate_session_attr *attr, const char *session_name);
+/*
+ * Set the timer to periodically rotate the session.
+ */
+void lttng_rotate_session_attr_set_timer(
+ struct lttng_rotate_session_attr *attr, uint64_t timer);
+
+/*
+ * Set the size to rotate the session.
+ */
+void lttng_rotate_session_attr_set_size(
+ struct lttng_rotate_session_attr *attr, uint64_t size);
+
/*
* lttng rotate session handle functions.
*/
extern int lttng_rotate_session_pending(
struct lttng_rotate_session_handle *rotate_handle);
+/*
+ * Configure a session to rotate periodically or based on the size written.
+ */
+extern int lttng_rotate_setup(struct lttng_rotate_session_attr *attr);
+
#ifdef __cplusplus
}
#endif