aboutsummaryrefslogtreecommitdiff
path: root/src/sound-service.xml
blob: da3ac188ac168034c1778819fc7b22cfd5c63fad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
<node name="/com/canonical/indicators/sound">
  <interface name="com.canonical.indicators.sound">
    <method name = "GetSinkMute">
        <annotation name="org.freedesktop.DBus.GLib.CSymbol" value="sound_service_dbus_get_sink_mute"/>
        <arg type='b' name='mute_input' direction="out"/>
    </method>

    <method name = "BlacklistMediaPlayer">
        <annotation name="org.freedesktop.DBus.GLib.CSymbol" value="sound_service_dbus_blacklist_media_player"/>
        <arg type='s' name='player_desktop_name' direction="in"/>
    </method>

    <method name = "GetSinkAvailability">
        <annotation name="org.freedesktop.DBus.GLib.CSymbol" value="sound_service_dbus_get_sink_availability"/>
        <arg type='b' name='availability_input' direction="out"/>
    </method>

<!-- Will need to hook up another signal which monitors for volume change 
Our respective UI element should listen to this and therefore will be updated with accurate setting-->
<!-- Triggered when a sink is muted but the input has been sent to that sink -->
    <signal name="SinkInputWhileMuted">
      <arg name="block_value" type="b" direction="out"/>
    </signal>
    
    <signal name="SinkMuteUpdate">
      <arg name="mute_value" type="b" direction="out"/>
    </signal>

    <signal name="SinkAvailableUpdate">
      <arg name="available_value" type="b" direction="out"/>
    </signal>

  </interface>
</node>