Port: Remove _GNU_SOURCE, defined in config.h
[lttng-tools.git] / src / common / sessiond-comm / agent.h
index 93ef7ac093e2fe241b44d31c5a6a4640ca35911c..f3564550b746b47d4c00954545f86a4df7f70e20 100644 (file)
 #ifndef AGENT_COMM
 #define AGENT_COMM
 
-#define _GNU_SOURCE
 #include <stdint.h>
 
 #include <lttng/lttng.h>
 
 /*
- * Command value pass in the header.
+ * Command value passed in the header.
  */
 enum lttcomm_agent_command {
        AGENT_CMD_LIST       = 1,
@@ -34,12 +33,16 @@ enum lttcomm_agent_command {
 };
 
 /*
- * Return code from the Java agent.
+ * 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,
 };
 
 /*
@@ -55,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;
@@ -68,7 +71,7 @@ struct lttcomm_agent_disable {
 } LTTNG_PACKED;
 
 /*
- * Generic reply coming from the Java Agent.
+ * Generic reply coming from the agent.
  */
 struct lttcomm_agent_generic_reply {
        uint32_t ret_code;
@@ -83,7 +86,7 @@ struct lttcomm_agent_list_reply_hdr {
 } LTTNG_PACKED;
 
 /*
- * List command reply payload coming from the Java Agent.
+ * List command reply payload coming from the agent.
  */
 struct lttcomm_agent_list_reply {
        uint32_t nb_event;
This page took 0.026303 seconds and 5 git commands to generate.