Fix: liblttng-ctl comm: lttng_channel is not packed
[lttng-tools.git] / src / common / sessiond-comm / sessiond-comm.h
index b9ab05bcb26e3e34b7c765dd93094ad8846541c7..0d3e374b3d30ac30fea6394eb8b272158abec3c9 100644 (file)
@@ -311,9 +311,7 @@ struct lttcomm_session_msg {
                } LTTNG_PACKED disable;
                /* Create channel */
                struct {
-                       struct lttng_channel chan LTTNG_PACKED;
-                       /* struct lttng_channel_extended is already packed. */
-                       struct lttng_channel_extended extended;
+                       uint32_t length;
                } LTTNG_PACKED channel;
                /* Context */
                struct {
@@ -453,6 +451,14 @@ struct lttcomm_event_command_header {
        uint32_t nb_events;
 } LTTNG_PACKED;
 
+/*
+ * Listing command header.
+ */
+struct lttcomm_list_command_header {
+       /* Number of elements */
+       uint32_t count;
+} LTTNG_PACKED;
+
 /*
  * Event extended info header. This is the structure preceding each
  * extended info data.
This page took 0.02456 seconds and 4 git commands to generate.