sessiond: Split ust_registry_session into per-type classes
[lttng-tools.git] / src / bin / lttng-sessiond / ust-consumer.hpp
CommitLineData
48842b30 1/*
21cf9b6b 2 * Copyright (C) 2011 EfficiOS Inc.
48842b30 3 *
ab5be9fa 4 * SPDX-License-Identifier: GPL-2.0-only
48842b30 5 *
48842b30
DG
6 */
7
8#ifndef _UST_CONSUMER_H
9#define _UST_CONSUMER_H
10
c9e313bc
SM
11#include "consumer.hpp"
12#include "ust-app.hpp"
e098433c 13#include <stdint.h>
c9e313bc 14#include <common/trace-chunk.hpp>
48842b30 15
ffe60014 16int ust_consumer_ask_channel(struct ust_app_session *ua_sess,
e098433c
JG
17 struct ust_app_channel *ua_chan,
18 struct consumer_output *consumer,
19 struct consumer_socket *socket,
aeeb48c6 20 ust_registry_session *registry,
d2956687 21 struct lttng_trace_chunk *trace_chunk);
ffe60014
DG
22
23int ust_consumer_get_channel(struct consumer_socket *socket,
24 struct ust_app_channel *ua_chan);
25
26int ust_consumer_destroy_channel(struct consumer_socket *socket,
27 struct ust_app_channel *ua_chan);
28
29int ust_consumer_send_stream_to_ust(struct ust_app *app,
30 struct ust_app_channel *channel, struct ust_app_stream *stream);
31
32int ust_consumer_send_channel_to_ust(struct ust_app *app,
33 struct ust_app_session *ua_sess, struct ust_app_channel *channel);
ee69440b 34
ce7fc42f 35#ifdef HAVE_LIBLTTNG_UST_CTL
331744e3 36int ust_consumer_metadata_request(struct consumer_socket *sock);
ee69440b
DG
37#else
38static inline
f46376a1
MJ
39int ust_consumer_metadata_request(
40 struct consumer_socket *sock __attribute__((unused)))
ee69440b
DG
41{
42 return -ENOSYS;
43}
44#endif /* HAVE_LIBLTTNG_UST_CTL */
48842b30
DG
45
46#endif /* _UST_CONSUMER_H */
This page took 0.077316 seconds and 4 git commands to generate.