-int create_session(char *name, uuid_t *session_id);
-int destroy_session(uuid_t *uuid);
-void get_lttng_session(struct lttng_session *lt);
-struct ltt_session *find_session_by_uuid(uuid_t session_id);
-struct ltt_session *find_session_by_name(char *name);
-unsigned int get_session_count(void);
+int session_create(char *name, char *path);
+int session_destroy(struct ltt_session *session);
+
+void session_lock(struct ltt_session *session);
+void session_lock_list(void);
+void session_unlock(struct ltt_session *session);
+void session_unlock_list(void);
+
+struct ltt_session *session_find_by_name(char *name);
+struct ltt_session_list *session_get_list(void);
+unsigned long session_ust_count(struct ltt_session *session);