* the other cases.
*/
lttng_uuid sessiond_uuid;
+ /*
+ * Contains the creation time on the session daemon's end for 2.11+
+ * peers. Otherwise, this contains the session creation time on the
+ * relay daemon's end.
+ */
LTTNG_OPTIONAL(time_t) creation_time;
/* Must _not_ be empty for 2.4+ peers. */
char session_name[LTTNG_NAME_MAX];
struct urcu_ref ref;
- pthread_mutex_t lock;
+ mutable pthread_mutex_t lock;
/* major/minor version used for this session. */
uint32_t major;
int session_close(struct relay_session *session);
int session_abort(struct relay_session *session);
+bool session_has_ongoing_rotation(const struct relay_session *session);
+
void print_sessions(void);
#endif /* _SESSION_H */