Fix: don't ask data pending if session was not started
[lttng-tools.git] / src / bin / lttng-sessiond / session.h
index 0fd2fb16a4dc416c73784611300085651ce857fc..9113faf8a2dede01570ea9d715498f667326b95b 100644 (file)
@@ -18,6 +18,7 @@
 #ifndef _LTT_SESSION_H
 #define _LTT_SESSION_H
 
+#include <limits.h>
 #include <urcu/list.h>
 
 #include <common/hashtable/hashtable.h>
@@ -59,6 +60,7 @@ struct ltt_session_list {
  */
 struct ltt_session {
        char name[NAME_MAX];
+       char hostname[HOST_NAME_MAX]; /* Local hostname. */
        struct ltt_kernel_session *kernel_session;
        struct ltt_ust_session *ust_session;
        /*
@@ -99,6 +101,10 @@ struct ltt_session {
         * snapshot purposes.
         */
        unsigned int snapshot_mode;
+       /*
+        * Timer set when the session is created for live reading.
+        */
+       int live_timer;
 };
 
 /* Prototypes */
@@ -110,7 +116,7 @@ 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 *session_find_by_name(const char *name);
 struct ltt_session_list *session_get_list(void);
 
 int session_access_ok(struct ltt_session *session, uid_t uid, gid_t gid);
This page took 0.025057 seconds and 4 git commands to generate.