#ifndef LTTNG_SESSIOND_AGENT_H
#define LTTNG_SESSIOND_AGENT_H
-#define _GNU_SOURCE
#include <inttypes.h>
#include <common/hashtable/hashtable.h>
#include <lttng/lttng.h>
/* Agent protocol version that is verified during the agent registration. */
-#define AGENT_MAJOR_VERSION 1
+#define AGENT_MAJOR_VERSION 2
#define AGENT_MINOR_VERSION 0
/*
const char *name;
int loglevel_value;
enum lttng_loglevel_type loglevel_type;
+ char *filter_expression;
};
/*
struct agent_event *agent_find_event(const char *name,
enum lttng_loglevel_type loglevel_type, int loglevel_value,
- struct agent *agt);
-struct agent_event *agent_find_event_by_name(const char *name,
- struct agent *agt);
+ char *filter_expression, struct agent *agt);
+void agent_find_events_by_name(const char *name, struct agent *agt,
+ struct lttng_ht_iter* iter);
+void agent_event_next_duplicate(const char *name,
+ struct agent *agt, struct lttng_ht_iter* iter);
void agent_delete_event(struct agent_event *event, struct agent *agt);
void agent_destroy_event(struct agent_event *event);