Add UST namespace contexts
[lttng-tools.git] / src / bin / lttng-sessiond / ust-consumer.h
1 /*
2 * Copyright (C) 2011 - David Goulet <david.goulet@polymtl.ca>
3 *
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.
7 *
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.
12 *
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.
16 */
17
18 #ifndef _UST_CONSUMER_H
19 #define _UST_CONSUMER_H
20
21 #include "consumer.h"
22 #include "ust-app.h"
23 #include <stdint.h>
24 #include <common/trace-chunk.h>
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 struct ust_registry_session *registry,
31 struct lttng_trace_chunk *trace_chunk);
32
33 int ust_consumer_get_channel(struct consumer_socket *socket,
34 struct ust_app_channel *ua_chan);
35
36 int ust_consumer_destroy_channel(struct consumer_socket *socket,
37 struct ust_app_channel *ua_chan);
38
39 int ust_consumer_send_stream_to_ust(struct ust_app *app,
40 struct ust_app_channel *channel, struct ust_app_stream *stream);
41
42 int ust_consumer_send_channel_to_ust(struct ust_app *app,
43 struct ust_app_session *ua_sess, struct ust_app_channel *channel);
44
45 #if HAVE_LIBLTTNG_UST_CTL
46 int ust_consumer_metadata_request(struct consumer_socket *sock);
47 #else
48 static inline
49 int ust_consumer_metadata_request(struct consumer_socket *sock)
50 {
51 return -ENOSYS;
52 }
53 #endif /* HAVE_LIBLTTNG_UST_CTL */
54
55 #endif /* _UST_CONSUMER_H */
This page took 0.029808 seconds and 4 git commands to generate.