diff options
author | Conor Curran <conor.curran@canonical.com> | 2011-02-04 16:17:31 +0000 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2011-02-04 16:17:31 +0000 |
commit | 025fb0a3df226ab127ee435c341882addfafcbba (patch) | |
tree | e7da7aca3e7428e37acf7183ddee3f837d8874d8 /src/active-sink.h | |
parent | 7ba3797b9006f0a7e048787ee6de91fd05e60d2b (diff) | |
download | ayatana-indicator-sound-025fb0a3df226ab127ee435c341882addfafcbba.tar.gz ayatana-indicator-sound-025fb0a3df226ab127ee435c341882addfafcbba.tar.bz2 ayatana-indicator-sound-025fb0a3df226ab127ee435c341882addfafcbba.zip |
almost in place
Diffstat (limited to 'src/active-sink.h')
-rw-r--r-- | src/active-sink.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/active-sink.h b/src/active-sink.h index 827b8a7..3b21d94 100644 --- a/src/active-sink.h +++ b/src/active-sink.h @@ -22,8 +22,10 @@ #include <glib.h> #include <glib-object.h> -#include <libdbusmenu-glib/menuitem.h> + #include "common-defs.h" +#include "sound-service-dbus.h" + #include <pulse/pulseaudio.h> G_BEGIN_DECLS @@ -46,7 +48,7 @@ struct _ActiveSinkClass { GObjectClass parent_class; }; -typedef struct { +/*typedef struct { gchar* name; gint index; pa_cvolume volume; @@ -54,17 +56,20 @@ typedef struct { gboolean mute; pa_volume_t base_volume; } sink_details; +*/ GType active_sink_get_type (void) G_GNUC_CONST; -void active_sink_update_details (ActiveSink* sink, sink_details* details); +void active_sink_populate (ActiveSink* sink, const pa_sink_info* update); gboolean active_sink_is_populated (ActiveSink* sink); gboolean active_sink_is_muted (ActiveSink* self); gint active_sink_get_index (ActiveSink* self); SoundState active_sink_get_state (ActiveSink* self); + void active_sink_update_volume (ActiveSink* self, gdouble vol_percent); void active_sink_update_mute (ActiveSink* self, gboolean muted); +ActiveSink* active_sink_new (SoundServiceDbus* service); G_END_DECLS |