Basic hashtable support for UST
[lttng-tools.git] / ltt-sessiond / session.h
index bbbbffc4554d3aaa6e0dd5abf56da6d1aa6c738c..41883c60959029dc3f466e14b4e792fcfa627faa 100644 (file)
@@ -56,10 +56,10 @@ struct ltt_session_list {
  * 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
@@ -71,7 +71,7 @@ struct ltt_session {
 
 /* 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);
@@ -80,5 +80,6 @@ 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);
 
 #endif /* _LTT_SESSION_H */
This page took 0.025057 seconds and 4 git commands to generate.