There's no reason for session to be not constant.
Change-Id: I55d63e142853f78ba643600b5c1869866ee1bb5e
Signed-off-by: Olivier Dion <odion@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
return mi_lttng_writer_open_element(writer, config_element_sessions);
}
-int mi_lttng_session(struct mi_writer *writer, struct lttng_session *session, int is_open)
+int mi_lttng_session(struct mi_writer *writer, const struct lttng_session *session, int is_open)
{
int ret;
* Returns zero if the element's value could be written.
* Negative values indicate an error.
*/
-int mi_lttng_session(struct mi_writer *writer, struct lttng_session *session, int is_open);
+int mi_lttng_session(struct mi_writer *writer, const struct lttng_session *session, int is_open);
/*
* Machine interface: open a domains element.