Port: Remove _GNU_SOURCE, defined in config.h
[lttng-tools.git] / src / common / sessiond-comm / agent.h
index 55df5ed9f4561c69a62bcdbe693d94b538bbfe8b..f3564550b746b47d4c00954545f86a4df7f70e20 100644 (file)
@@ -18,7 +18,6 @@
 #ifndef AGENT_COMM
 #define AGENT_COMM
 
-#define _GNU_SOURCE
 #include <stdint.h>
 
 #include <lttng/lttng.h>
@@ -37,8 +36,11 @@ enum lttcomm_agent_command {
  * Return codes from the agent.
  */
 enum lttcomm_agent_ret_code {
+       /* Success, assumed to be the first entry */
        AGENT_RET_CODE_SUCCESS      = 1,
+       /* Invalid command */
        AGENT_RET_CODE_INVALID      = 2,
+       /* Unknown logger name */
        AGENT_RET_CODE_UNKNOWN_NAME = 3,
        AGENT_RET_CODE_NR,
 };
@@ -56,7 +58,7 @@ struct lttcomm_agent_hdr {
  * Enable event command payload.
  */
 struct lttcomm_agent_enable {
-       uint32_t loglevel;
+       uint32_t loglevel_value;
        uint32_t loglevel_type;
        char name[LTTNG_SYMBOL_NAME_LEN];
 } LTTNG_PACKED;
This page took 0.024735 seconds and 5 git commands to generate.