--- /dev/null
+#ifndef _LTT_TRACKER_H
+#define _LTT_TRACKER_H
+
+/*
+ * Copyright (C) 2018 - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License, version 2 only,
+ * as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+#include <lttng/session.h>
+#include <urcu/rculfhash.h>
+#include <urcu/list.h>
+
+enum lttng_tracker_list_state {
+ LTTNG_TRACK_ALL,
+ LTTNG_TRACK_NONE,
+ LTTNG_TRACK_LIST,
+};
+
+/* Tracker ID */
+struct lttng_tracker_list_node {
+ struct lttng_tracker_id id;
+
+ struct cds_list_head list_node;
+ struct cds_lfht_node ht_node;
+ struct rcu_head rcu_head;
+};
+
+struct lttng_tracker_list {
+ struct cds_list_head list_head;
+ /* Hash table for O(1) removal lookup. */
+ struct cds_lfht *ht;
+ enum lttng_tracker_list_state state;
+};
+
+struct lttng_tracker_list *lttng_tracker_list_create(void);
+void lttng_tracker_list_destroy(struct lttng_tracker_list *tracker_list);
+
+int lttng_tracker_list_add(struct lttng_tracker_list *tracker_list,
+ const struct lttng_tracker_id *id);
+int lttng_tracker_list_remove(struct lttng_tracker_list *tracker_list,
+ const struct lttng_tracker_id *id);
+
+int lttng_tracker_id_lookup_string(enum lttng_tracker_type tracker_type,
+ const struct lttng_tracker_id *id,
+ int *result);
+ssize_t lttng_tracker_id_get_list(struct lttng_tracker_list *tracker_list,
+ struct lttng_tracker_id **_ids);
+int lttng_tracker_id_set_list(struct lttng_tracker_list *tracker_list,
+ struct lttng_tracker_id *_ids,
+ size_t count);
+
+#endif /* _LTT_TRACKER_H */