X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fagent.hpp;h=2ad42c3f4a6a639e5b8824b414944414c16e0b49;hp=388543f6627877f6f5c1a5547ce1db2ed42f28a2;hb=HEAD;hpb=28f23191dcbf047429d51950a337a57d7a3f866a diff --git a/src/bin/lttng-sessiond/agent.hpp b/src/bin/lttng-sessiond/agent.hpp index 388543f66..f9d3cb656 100644 --- a/src/bin/lttng-sessiond/agent.hpp +++ b/src/bin/lttng-sessiond/agent.hpp @@ -14,6 +14,7 @@ #include #include +#include /* Agent protocol version that is verified during the agent registration. */ #define AGENT_MAJOR_VERSION 2 @@ -104,7 +105,7 @@ struct agent_event { struct lttng_event_exclusion *exclusion; }; -#define AGENT_EVENT_IS_ENABLED(agent_event) (!!agent_event->enabled_count) +#define AGENT_EVENT_IS_ENABLED(agent_event) (!!(agent_event)->enabled_count) /* * Agent object containing events enabled/disabled for a given domain in a @@ -134,9 +135,9 @@ struct agent { }; /* Allocate agent apps hash table */ -int agent_app_ht_alloc(void); +int agent_app_ht_alloc(); /* Clean-up agent apps hash table */ -void agent_app_ht_clean(void); +void agent_app_ht_clean(); /* Initialize an already allocated agent domain. */ int agent_init(struct agent *agt); @@ -187,7 +188,7 @@ struct agent_event *agent_find_event_by_trigger(const struct lttng_trigger *trig /* Global event notifier per-domain agents. */ struct agent *agent_find_by_event_notifier_domain(enum lttng_domain_type domain_type); -void agent_by_event_notifier_domain_ht_destroy(void); -int agent_by_event_notifier_domain_ht_create(void); +void agent_by_event_notifier_domain_ht_destroy(); +int agent_by_event_notifier_domain_ht_create(); #endif /* LTTNG_SESSIOND_AGENT_H */