router: fix for bluetooth disappearing causing assert in combine
[profile/ivi/pulseaudio-module-murphy-ivi.git] / murphy / utils.h
1 #ifndef foomurphyiviutilsfoo
2 #define foomurphyiviutilsfoo
3
4 #include <stdbool.h>
5 #include <pulsecore/core.h>
6
7 struct pa_null_sink;
8
9 struct pa_null_sink *pa_utils_create_null_sink(struct userdata *,const char *);
10 void pa_utils_destroy_null_sink(struct userdata *);
11 pa_sink *pa_utils_get_null_sink(struct userdata *);
12
13
14 char *pa_utils_get_card_name(pa_card *);
15 char *pa_utils_get_sink_name(pa_sink *);
16 char *pa_utils_get_source_name(pa_source *);
17 char *pa_utils_get_sink_input_name(pa_sink_input *);
18 char *pa_utils_get_sink_input_name_from_data(pa_sink_input_new_data *);
19
20 void  pa_utils_set_stream_routing_properties(pa_proplist *, int, pa_sink *);
21 void  pa_utils_set_stream_routing_method_property(pa_proplist *, pa_bool_t);
22 pa_bool_t pa_utils_stream_has_default_route(pa_proplist *);
23
24
25 const char *pa_utils_file_path(const char *, char *, size_t);
26
27 uint32_t pa_utils_new_stamp(void);
28 uint32_t pa_utils_get_stamp(void);
29
30 #endif
31
32 /*
33  * Local Variables:
34  * c-basic-offset: 4
35  * indent-tabs-mode: nil
36  * End:
37  *
38  */