lttng: destroy: ensure a cmd_error_code is returned by the command
[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"
28f23191 13
c9e313bc 14#include <common/trace-chunk.hpp>
48842b30 15
28f23191
JG
16#include <stdint.h>
17
ffe60014 18int ust_consumer_ask_channel(struct ust_app_session *ua_sess,
28f23191
JG
19 struct ust_app_channel *ua_chan,
20 struct consumer_output *consumer,
21 struct consumer_socket *socket,
22 lttng::sessiond::ust::registry_session *registry,
23 struct lttng_trace_chunk *trace_chunk);
ffe60014 24
28f23191 25int ust_consumer_get_channel(struct consumer_socket *socket, struct ust_app_channel *ua_chan);
ffe60014 26
28f23191 27int ust_consumer_destroy_channel(struct consumer_socket *socket, struct ust_app_channel *ua_chan);
ffe60014
DG
28
29int ust_consumer_send_stream_to_ust(struct ust_app *app,
28f23191
JG
30 struct ust_app_channel *channel,
31 struct ust_app_stream *stream);
ffe60014
DG
32
33int ust_consumer_send_channel_to_ust(struct ust_app *app,
28f23191
JG
34 struct ust_app_session *ua_sess,
35 struct ust_app_channel *channel);
ee69440b 36
ce7fc42f 37#ifdef HAVE_LIBLTTNG_UST_CTL
331744e3 38int ust_consumer_metadata_request(struct consumer_socket *sock);
ee69440b 39#else
28f23191
JG
40static inline int ust_consumer_metadata_request(struct consumer_socket *sock
41 __attribute__((unused)))
ee69440b
DG
42{
43 return -ENOSYS;
44}
45#endif /* HAVE_LIBLTTNG_UST_CTL */
48842b30
DG
46
47#endif /* _UST_CONSUMER_H */
This page took 0.203765 seconds and 4 git commands to generate.