1 /*
2  * Copyright (C) 2014 Michal Ratajsky <michal.ratajsky@gmail.com>
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the licence, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #ifndef PULSE_SINK_SWITCH_H
19 #define PULSE_SINK_SWITCH_H
20 
21 #include <glib.h>
22 #include <glib-object.h>
23 
24 #include "pulse-types.h"
25 
26 G_BEGIN_DECLS
27 
28 #define PULSE_TYPE_SINK_SWITCH                  \
29         (pulse_sink_switch_get_type ())
30 #define PULSE_SINK_SWITCH(o)                    \
31         (G_TYPE_CHECK_INSTANCE_CAST ((o), PULSE_TYPE_SINK_SWITCH, PulseSinkSwitch))
32 #define PULSE_IS_SINK_SWITCH(o)                 \
33         (G_TYPE_CHECK_INSTANCE_TYPE ((o), PULSE_TYPE_SINK_SWITCH))
34 #define PULSE_SINK_SWITCH_CLASS(k)              \
35         (G_TYPE_CHECK_CLASS_CAST ((k), PULSE_TYPE_SINK_SWITCH, PulseSinkSwitchClass))
36 #define PULSE_IS_SINK_SWITCH_CLASS(k)           \
37         (G_TYPE_CHECK_CLASS_TYPE ((k), PULSE_TYPE_SINK_SWITCH))
38 #define PULSE_SINK_SWITCH_GET_CLASS(o)          \
39         (G_TYPE_INSTANCE_GET_CLASS ((o), PULSE_TYPE_SINK_SWITCH, PulseSinkSwitchClass))
40 
41 typedef struct _PulseSinkSwitchClass    PulseSinkSwitchClass;
42 typedef struct _PulseSinkSwitchPrivate  PulseSinkSwitchPrivate;
43 
44 struct _PulseSinkSwitch
45 {
46     PulsePortSwitch parent;
47 };
48 
49 struct _PulseSinkSwitchClass
50 {
51     PulsePortSwitchClass parent_class;
52 };
53 
54 GType            pulse_sink_switch_get_type (void) G_GNUC_CONST;
55 
56 PulsePortSwitch *pulse_sink_switch_new      (const gchar *name,
57                                              const gchar *label,
58                                              PulseSink   *sink);
59 
60 G_END_DECLS
61 
62 #endif /* PULSE_SINK_SWITCH_H */
63