refactor: session: provide an iterator over consumer data channel keys
[lttng-tools.git] / src / bin / lttng-sessiond / ust-consumer.hpp
1 /*
2 * Copyright (C) 2011 EfficiOS Inc.
3 *
4 * SPDX-License-Identifier: GPL-2.0-only
5 *
6 */
7
8 #ifndef _UST_CONSUMER_H
9 #define _UST_CONSUMER_H
10
11 #include "consumer.hpp"
12 #include "ust-app.hpp"
13
14 #include <common/trace-chunk.hpp>
15
16 #include <stdint.h>
17
18 namespace lttng {
19 namespace sessiond {
20 namespace ust {
21 class registry_session;
22 } /* namespace ust */
23 } /* namespace sessiond */
24 } /* namespace lttng */
25
26 int ust_consumer_ask_channel(struct ust_app_session *ua_sess,
27 struct ust_app_channel *ua_chan,
28 struct consumer_output *consumer,
29 struct consumer_socket *socket,
30 lttng::sessiond::ust::registry_session *registry,
31 struct lttng_trace_chunk *trace_chunk);
32
33 int ust_consumer_get_channel(struct consumer_socket *socket, struct ust_app_channel *ua_chan);
34
35 int ust_consumer_destroy_channel(struct consumer_socket *socket, struct ust_app_channel *ua_chan);
36
37 int ust_consumer_send_stream_to_ust(struct ust_app *app,
38 struct ust_app_channel *channel,
39 struct ust_app_stream *stream);
40
41 int ust_consumer_send_channel_to_ust(struct ust_app *app,
42 struct ust_app_session *ua_sess,
43 struct ust_app_channel *channel);
44
45 #ifdef HAVE_LIBLTTNG_UST_CTL
46 int ust_consumer_metadata_request(struct consumer_socket *sock);
47 #else
48 static inline int ust_consumer_metadata_request(struct consumer_socket *sock
49 __attribute__((unused)))
50 {
51 return -ENOSYS;
52 }
53 #endif /* HAVE_LIBLTTNG_UST_CTL */
54
55 #endif /* _UST_CONSUMER_H */
This page took 0.030556 seconds and 4 git commands to generate.