Hide lttng_event_copy symbol
[lttng-tools.git] / src / bin / lttng-sessiond / ust-consumer.h
CommitLineData
48842b30
DG
1/*
2 * Copyright (C) 2011 - David Goulet <david.goulet@polymtl.ca>
3 *
d14d33bf
AM
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License, version 2 only,
6 * as published by the Free Software Foundation.
48842b30 7 *
d14d33bf
AM
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
48842b30 12 *
d14d33bf
AM
13 * You should have received a copy of the GNU General Public License along
14 * with this program; if not, write to the Free Software Foundation, Inc.,
15 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
48842b30
DG
16 */
17
18#ifndef _UST_CONSUMER_H
19#define _UST_CONSUMER_H
20
00e2e675 21#include "consumer.h"
48842b30 22#include "ust-app.h"
e098433c 23#include <stdint.h>
48842b30 24
ffe60014 25int ust_consumer_ask_channel(struct ust_app_session *ua_sess,
e098433c
JG
26 struct ust_app_channel *ua_chan,
27 struct consumer_output *consumer,
28 struct consumer_socket *socket,
29 struct ust_registry_session *registry,
30 uint64_t trace_archive_id);
ffe60014
DG
31
32int ust_consumer_get_channel(struct consumer_socket *socket,
33 struct ust_app_channel *ua_chan);
34
35int ust_consumer_destroy_channel(struct consumer_socket *socket,
36 struct ust_app_channel *ua_chan);
37
38int ust_consumer_send_stream_to_ust(struct ust_app *app,
39 struct ust_app_channel *channel, struct ust_app_stream *stream);
40
41int ust_consumer_send_channel_to_ust(struct ust_app *app,
42 struct ust_app_session *ua_sess, struct ust_app_channel *channel);
ee69440b
DG
43
44#if HAVE_LIBLTTNG_UST_CTL
331744e3 45int ust_consumer_metadata_request(struct consumer_socket *sock);
ee69440b
DG
46#else
47static inline
48int ust_consumer_metadata_request(struct consumer_socket *sock)
49{
50 return -ENOSYS;
51}
52#endif /* HAVE_LIBLTTNG_UST_CTL */
48842b30
DG
53
54#endif /* _UST_CONSUMER_H */
This page took 0.049811 seconds and 4 git commands to generate.