Git init
[framework/multimedia/pulseaudio.git] / src / pulse / ext-policy.h
1 #ifndef foopulseextpolicyhfoo
2 #define foopulseextpolicyhfoo
3
4 /***
5   This file is part of PulseAudio.
6
7   PulseAudio is free software; you can redistribute it and/or modify
8   it under the terms of the GNU Lesser General Public License as published
9   by the Free Software Foundation; either version 2.1 of the License,
10   or (at your option) any later version.
11
12   PulseAudio is distributed in the hope that it will be useful, but
13   WITHOUT ANY WARRANTY; without even the implied warranty of
14   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15   General Public License for more details.
16
17   You should have received a copy of the GNU Lesser General Public License
18   along with PulseAudio; if not, write to the Free Software
19   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
20   USA.
21 ***/
22
23 #include <pulse/context.h>
24 #include <pulse/version.h>
25
26 /** \file
27  *
28  * Routines for controlling module-policy
29  */
30
31 PA_C_DECL_BEGIN
32
33 /** Callback prototype for pa_ext_policy_test(). \since 0.9.21 */
34 typedef void (*pa_ext_policy_test_cb_t)(
35         pa_context *c,
36         uint32_t version,
37         void *userdata);
38
39 /** Test if this extension module is available in the server. \since 0.9.21 */
40 pa_operation *pa_ext_policy_test(
41         pa_context *c,
42         pa_ext_policy_test_cb_t cb,
43         void *userdata);
44
45 /** Enable the mono mode. \since 0.9.21 */
46 pa_operation *pa_ext_policy_set_mono (
47         pa_context *c,
48         int enable,
49         pa_context_success_cb_t cb,
50         void *userdata);
51
52 PA_C_DECL_END
53
54 #endif