diff options
author | Ken VanDine <ken.vandine@canonical.com> | 2011-02-18 13:20:43 -0500 |
---|---|---|
committer | Ken VanDine <ken.vandine@canonical.com> | 2011-02-18 13:20:43 -0500 |
commit | 088e938b68d4993f6c472cd4a9c7c7b5a52fbdb7 (patch) | |
tree | 40b0981ba8fa8cd5d414440b04742723afeb39f4 /src/active-sink.h | |
parent | b4b1c772dc57c3034cc80b785e4b472b8fe1b404 (diff) | |
parent | fec38bea8091cc778bdbb236ed4c854b9cdcb34d (diff) | |
download | ayatana-indicator-sound-088e938b68d4993f6c472cd4a9c7c7b5a52fbdb7.tar.gz ayatana-indicator-sound-088e938b68d4993f6c472cd4a9c7c7b5a52fbdb7.tar.bz2 ayatana-indicator-sound-088e938b68d4993f6c472cd4a9c7c7b5a52fbdb7.zip |
Import upstream version 0.6.0
Diffstat (limited to 'src/active-sink.h')
-rw-r--r-- | src/active-sink.h | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/src/active-sink.h b/src/active-sink.h index ab05ebc..57b3079 100644 --- a/src/active-sink.h +++ b/src/active-sink.h @@ -50,21 +50,34 @@ struct _ActiveSinkClass { GType active_sink_get_type (void) G_GNUC_CONST; +/** + * TODO + * Refactor this to become a device manager obj basically acting as wrapper for + * the communication between pulseaudio-mgr and the individual items. + * First steps collapse slider/volume related stuff into slider-menu-item. + */ + +// Sink related void active_sink_populate (ActiveSink* sink, const pa_sink_info* update); void active_sink_update (ActiveSink* sink, const pa_sink_info* update); - gboolean active_sink_is_populated (ActiveSink* sink); -void active_sink_determine_blocking_state (ActiveSink* self); - gint active_sink_get_index (ActiveSink* self); -SoundState active_sink_get_state (ActiveSink* self); - void active_sink_deactivate (ActiveSink* self); - void active_sink_update_mute (ActiveSink* self, gboolean mute_update); void active_sink_update_volume (ActiveSink* self, gdouble percent); void active_sink_ensure_sink_is_unmuted (ActiveSink* self); +// source and sinkinput/client related for VOIP functionality +void active_sink_update_voip_input_source (ActiveSink* sink, const pa_source_info* update); +void active_sink_activate_voip_item (ActiveSink* sink, gint sink_input_index, gint client_index); +gint active_sink_get_current_sink_input_index (ActiveSink* sink); +gboolean active_sink_is_voip_source_populated (ActiveSink* sink); +gint active_sink_get_source_index (ActiveSink* self); +void active_sink_determine_blocking_state (ActiveSink* self); +void active_sink_deactivate_voip_source (ActiveSink* self, gboolean visible); +void active_sink_deactivate_voip_client (ActiveSink* self); +SoundState active_sink_get_state (ActiveSink* self); + ActiveSink* active_sink_new (SoundServiceDbus* service); G_END_DECLS |