2
* Copyright 2010 Canonical Ltd.
5
* Conor Curran <conor.curran@canonical.com>
6
* Cody Russell <crussell@canonical.com>
8
* This program is free software: you can redistribute it and/or modify it
9
* under the terms of the GNU General Public License version 3, as published
10
* by the Free Software Foundation.
12
* This program is distributed in the hope that it will be useful, but
13
* WITHOUT ANY WARRANTY; without even the implied warranties of
14
* MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
15
* PURPOSE. See the GNU General Public License for more details.
17
* You should have received a copy of the GNU General Public License along
18
* with this program. If not, see <http://www.gnu.org/licenses/>.
21
#ifndef __SOUND_SERVICE_DBUS_H__
22
#define __SOUND_SERVICE_DBUS_H__
25
#include <glib-object.h>
29
#define SOUND_SERVICE_DBUS_TYPE (sound_service_dbus_get_type ())
30
#define SOUND_SERVICE_DBUS(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), SOUND_SERVICE_DBUS_TYPE, SoundServiceDbus))
31
#define SOUND_SERVICE_DBUS_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), SOUND_SERVICE_DBUS_TYPE, SoundServiceDbusClass))
32
#define IS_SOUND_SERVICE_DBUS(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), SOUND_SERVICE_DBUS_TYPE))
33
#define IS_SOUND_SERVICE_DBUS_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), SOUND_SERVICE_DBUS_TYPE))
34
#define SOUND_SERVICE_DBUS_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), SOUND_SERVICE_DBUS_TYPE, SoundServiceDbusClass))
37
typedef struct _SoundServiceDbus SoundServiceDbus;
38
typedef struct _SoundServiceDbusClass SoundServiceDbusClass;
39
typedef struct _SoundData SoundData;
47
SoundServiceDbus *service;
50
struct _SoundServiceDbus {
54
struct _SoundServiceDbusClass {
55
GObjectClass parent_class;
56
/* Signals -> outward messages*/
57
void (* sink_input_while_muted) (SoundServiceDbus *self, gint sink_index, gboolean is_muted, gpointer sound_data);
60
GType sound_service_dbus_get_type (void) G_GNUC_CONST;
62
// Utility methods to get the messages across the into the static function space of sound-service-dbus
63
void sound_service_dbus_sink_input_while_muted (SoundServiceDbus* obj, gint sink_index, gboolean value);
65
//void sound_service_dbus_sink_volume_changed (SoundServiceDbus* obj, gint volume);