routing: set media.role property on multiplex streams
[profile/ivi/pulseaudio-module-murphy-ivi.git] / murphy / utils.h
1 /*
2  * module-murphy-ivi -- PulseAudio module for providing audio routing support
3  * Copyright (c) 2012, Intel Corporation.
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms and conditions of the GNU Lesser General Public License,
7  * version 2.1, as published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE.
12  * See the GNU Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with this program; if not, write to the
16  * Free Software Foundation, Inc., 51 Franklin St - Fifth Floor, Boston,
17  * MA 02110-1301 USA.
18  *
19  */
20 #ifndef foomurphyiviutilsfoo
21 #define foomurphyiviutilsfoo
22
23 #include <stdbool.h>
24 #include <pulsecore/core.h>
25
26 struct pa_null_sink;
27
28 struct pa_null_sink *pa_utils_create_null_sink(struct userdata *,const char *);
29 void pa_utils_destroy_null_sink(struct userdata *);
30 pa_sink *pa_utils_get_null_sink(struct userdata *);
31
32
33 char *pa_utils_get_card_name(pa_card *);
34 char *pa_utils_get_sink_name(pa_sink *);
35 char *pa_utils_get_source_name(pa_source *);
36 char *pa_utils_get_sink_input_name(pa_sink_input *);
37 char *pa_utils_get_sink_input_name_from_data(pa_sink_input_new_data *);
38
39 void  pa_utils_set_stream_routing_properties(pa_proplist *, int, pa_sink *);
40 void  pa_utils_set_stream_routing_method_property(pa_proplist *, pa_bool_t);
41 pa_bool_t pa_utils_stream_has_default_route(pa_proplist *);
42 int   pa_utils_get_stream_class(pa_proplist *);
43
44
45 const char *pa_utils_file_path(const char *, char *, size_t);
46
47 uint32_t pa_utils_new_stamp(void);
48 uint32_t pa_utils_get_stamp(void);
49
50 #endif
51
52 /*
53  * Local Variables:
54  * c-basic-offset: 4
55  * indent-tabs-mode: nil
56  * End:
57  *
58  */