X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=liblttsessiondcomm%2Fliblttsessiondcomm.h;h=5cac0b7982ecef86c52dde2ca69b9ef280ee9e55;hp=e51b813175203516a5f73b309bf7949246279a97;hb=6abb15de23fcd1413963aef20f9f2c243f1bf749;hpb=6e3805e2dada2ff26fe733e5e1588ea76ad606ed diff --git a/liblttsessiondcomm/liblttsessiondcomm.h b/liblttsessiondcomm/liblttsessiondcomm.h index e51b81317..5cac0b798 100644 --- a/liblttsessiondcomm/liblttsessiondcomm.h +++ b/liblttsessiondcomm/liblttsessiondcomm.h @@ -45,7 +45,7 @@ */ #define LTTCOMM_ERR_INDEX(code) (code - LTTCOMM_OK) -enum lttcomm_command_type { +enum lttcomm_sessiond_command { LTTNG_CREATE_SESSION, LTTNG_DESTROY_SESSION, LTTNG_FORCE_SUBBUF_SWITCH, @@ -113,7 +113,7 @@ enum lttcomm_kconsumerd_fd_state { */ struct lttcomm_session_msg { /* Common data to almost all command */ - enum lttcomm_command_type cmd_type; + enum lttcomm_sessiond_command cmd_type; uuid_t session_id; char trace_name[NAME_MAX]; char session_name[NAME_MAX]; @@ -151,13 +151,13 @@ struct lttcomm_session_msg { * the header of the transmission. NEVER put variable * size data in here. */ -struct lttcomm_lttng_msg { - enum lttcomm_command_type cmd_type; +struct lttcomm_lttng_header { + enum lttcomm_sessiond_command cmd_type; enum lttcomm_return_code ret_code; uuid_t session_id; pid_t pid; char trace_name[NAME_MAX]; - unsigned int size_payload; + unsigned int payload_size; }; /*