Cleanup relayd live comment
[lttng-tools.git] / src / bin / lttng-relayd / ctf-trace.h
CommitLineData
d3e2ba59
JD
1/*
2 * Copyright (C) 2013 - Julien Desfossez <jdesfossez@efficios.com>
3 * David Goulet <dgoulet@efficios.com>
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License, version 2 only, as
7 * published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 * more details.
13 *
14 * You should have received a copy of the GNU General Public License along with
15 * this program; if not, write to the Free Software Foundation, Inc., 51
16 * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 */
18
19#ifndef _CTF_TRACE_H
20#define _CTF_TRACE_H
21
22#include <inttypes.h>
23
24#include <common/hashtable/hashtable.h>
25
26#include "lttng-relayd.h"
27
28struct ctf_trace {
29 int refcount;
30 uint64_t id;
31 uint64_t metadata_received;
32 uint64_t metadata_sent;
33 struct relay_stream *metadata_stream;
157df586 34 struct relay_viewer_stream *viewer_metadata_stream;
d3e2ba59
JD
35};
36
37void ctf_trace_assign(struct lttng_ht *ht, struct relay_stream *stream);
38struct ctf_trace *ctf_trace_create(void);
39void ctf_trace_try_destroy(struct ctf_trace *obj);
40
41#endif /* _CTF_TRACE_H */
This page took 0.02432 seconds and 4 git commands to generate.