X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fagent.h;h=6564b88c84f6e260d1f875074d6bb313fa4b73aa;hb=16f35901a971a06c37859ea0d9f1c4fb3ad463a3;hp=3dbf7179aa8547e28a3c7d5351896a5ced24b17b;hpb=fefd409b002735b415c5f653cdb2587be454f145;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/agent.h b/src/bin/lttng-sessiond/agent.h index 3dbf7179a..6564b88c8 100644 --- a/src/bin/lttng-sessiond/agent.h +++ b/src/bin/lttng-sessiond/agent.h @@ -24,6 +24,10 @@ #include #include +/* Agent protocol version that is verified during the agent registration. */ +#define AGENT_MAJOR_VERSION 1 +#define AGENT_MINOR_VERSION 0 + /* * Hash table that contains the agent app created upon registration indexed by * socket. @@ -43,6 +47,8 @@ struct agent_register_msg { /* This maps to a lttng_domain_type. */ uint32_t domain; uint32_t pid; + uint32_t major_version; + uint32_t minor_version; }; /* @@ -147,6 +153,7 @@ int agent_enable_event(struct agent_event *event, int agent_disable_event(struct agent_event *event, enum lttng_domain_type domain); void agent_update(struct agent *agt, int sock); -int agent_list_events(struct lttng_event **events); +int agent_list_events(struct lttng_event **events, + enum lttng_domain_type domain); #endif /* LTTNG_SESSIOND_AGENT_H */