Add create session feature
[lttng-tools.git] / liblttsessiondcomm / liblttsessiondcomm.h
index 84385ce71d077de12bdccfa95f4d787d931afb30..56414063c6bacd70b79e50ae697774d61420129a 100644 (file)
@@ -74,6 +74,8 @@ enum lttcomm_return_code {
        LTTCOMM_START_FAIL,             /* Start tracing fail */
        LTTCOMM_LIST_FAIL,              /* Listing apps fail */
        LTTCOMM_NO_APPS,                /* No traceable application */
+       LTTCOMM_NO_SESS,                /* No sessions available */
+       LTTCOMM_FATAL,                  /* Session daemon had a fatal error */
        LTTCOMM_NR,                             /* Last element */
 };
 
@@ -83,7 +85,7 @@ enum lttcomm_return_code {
 struct lttcomm_session_msg {
        /* Common data to almost all command */
        enum lttcomm_command_type cmd_type;
-       uuid_t session_id;
+       char session_id[37];
        char trace_name[NAME_MAX];
        char session_name[NAME_MAX];
        pid_t pid;
@@ -114,25 +116,19 @@ struct lttcomm_session_msg {
 };
 
 /*
- * Data structure for the lttng client response
+ * Data structure for the lttng client response.
+ *
+ * This data structure is the control struct use in
+ * the header of the transmission. NEVER put variable
+ * size data in here.
  */
 struct lttcomm_lttng_msg {
        enum lttcomm_command_type cmd_type;
        enum lttcomm_return_code ret_code;
-       uuid_t session_id;
+       char session_id[37];
        pid_t pid;
        char trace_name[NAME_MAX];
-       /* This flag indicates how many packet are in
-        * the transmission. Ex: If list apps is requested,
-        * and there is 4 pids registered, num_pckt will be 4
-        */
-       unsigned int num_pckt;
-       union {
-               /* UST_LIST_APPS */
-               struct {
-                       pid_t pid;
-               } list_apps;
-       } u;
+       unsigned int size_payload;
 };
 
 extern int lttcomm_create_unix_sock(const char *pathname);
This page took 0.024148 seconds and 4 git commands to generate.