Commit | Line | Data |
---|---|---|
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 DG |
22 | #include "ust-app.h" |
23 | ||
ffe60014 DG |
24 | int ust_consumer_ask_channel(struct ust_app_session *ua_sess, |
25 | struct ust_app_channel *ua_chan, struct consumer_output *consumer, | |
26 | struct consumer_socket *socket); | |
27 | ||
28 | int ust_consumer_get_channel(struct consumer_socket *socket, | |
29 | struct ust_app_channel *ua_chan); | |
30 | ||
31 | int ust_consumer_destroy_channel(struct consumer_socket *socket, | |
32 | struct ust_app_channel *ua_chan); | |
33 | ||
34 | int ust_consumer_send_stream_to_ust(struct ust_app *app, | |
35 | struct ust_app_channel *channel, struct ust_app_stream *stream); | |
36 | ||
37 | int ust_consumer_send_channel_to_ust(struct ust_app *app, | |
38 | struct ust_app_session *ua_sess, struct ust_app_channel *channel); | |
48842b30 | 39 | |
d88aee68 DG |
40 | int ust_consumer_push_metadata(struct consumer_socket *socket, |
41 | struct ust_app_session *ua_sess, char *metadata_str, | |
42 | size_t len, size_t target_offset); | |
43 | ||
44 | int ust_consumer_close_metadata(struct consumer_socket *socket, | |
45 | struct ust_app_channel *ua_chan); | |
46 | ||
47 | int ust_consumer_setup_metadata(struct consumer_socket *socket, | |
48 | struct ust_app_channel *ua_chan); | |
49 | ||
48842b30 | 50 | #endif /* _UST_CONSUMER_H */ |