Fix: implicit conversion from enumeration
[lttng-tools.git] / src / common / sessiond-comm / sessiond-comm.h
index bbc7ce5a8e403156e1bedc38ba574ffdccc390ea..bae083dd83018e002afa36e2b648f586fca9bac1 100644 (file)
@@ -138,6 +138,7 @@ enum lttcomm_return_code {
        LTTCOMM_CONSUMERD_FATAL,                    /* Fatal error. */
        LTTCOMM_CONSUMERD_RELAYD_FAIL,              /* Error on remote relayd */
        LTTCOMM_CONSUMERD_CHANNEL_FAIL,             /* Channel creation failed. */
+       LTTCOMM_CONSUMERD_CHAN_NOT_FOUND,           /* Channel not found. */
 
        /* MUST be last element */
        LTTCOMM_NR,                                             /* Last element */
@@ -233,7 +234,7 @@ struct lttcomm_session_msg {
                /* Event data */
                struct {
                        char channel_name[LTTNG_SYMBOL_NAME_LEN];
-                       struct lttng_event event;
+                       struct lttng_event event LTTNG_PACKED;
                        /* Length of following filter expression. */
                        uint32_t expression_len;
                        /* Length of following bytecode for filter. */
@@ -250,12 +251,12 @@ struct lttcomm_session_msg {
                } LTTNG_PACKED enable;
                /* Create channel */
                struct {
-                       struct lttng_channel chan;
+                       struct lttng_channel chan LTTNG_PACKED;
                } LTTNG_PACKED channel;
                /* Context */
                struct {
                        char channel_name[LTTNG_SYMBOL_NAME_LEN];
-                       struct lttng_event_context ctx;
+                       struct lttng_event_context ctx LTTNG_PACKED;
                } LTTNG_PACKED context;
                /* Use by register_consumer */
                struct {
@@ -272,18 +273,18 @@ struct lttcomm_session_msg {
                        uint32_t size;
                } LTTNG_PACKED uri;
                struct {
-                       struct lttng_snapshot_output output;
+                       struct lttng_snapshot_output output LTTNG_PACKED;
                } LTTNG_PACKED snapshot_output;
                struct {
                        uint32_t wait;
-                       struct lttng_snapshot_output output;
+                       struct lttng_snapshot_output output LTTNG_PACKED;
                } LTTNG_PACKED snapshot_record;
                struct {
                        uint32_t nb_uri;
                        unsigned int timer_interval;    /* usec */
                } LTTNG_PACKED session_live;
                struct {
-                       struct lttng_save_session_attr attr;
+                       struct lttng_save_session_attr attr; /* struct already packed */
                } LTTNG_PACKED save_session;
        } u;
 } LTTNG_PACKED;
This page took 0.023742 seconds and 4 git commands to generate.