* session for both LTTng and UST.
*/
struct ltt_session {
- char *name;
- char *path;
+ char name[NAME_MAX];
+ char path[PATH_MAX];
struct ltt_kernel_session *kernel_session;
- struct ltt_ust_session_list ust_session_list;
+ struct ltt_ust_session *ust_session;
/*
* Protect any read/write on this session data structure. This lock must be
* acquired *before* using any public functions declared below. Use
/* Prototypes */
int session_create(char *name, char *path);
-int session_destroy(char *name);
+int session_destroy(struct ltt_session *session);
void session_lock(struct ltt_session *session);
void session_lock_list(void);