summaryrefslogtreecommitdiff
path: root/PluginCommandInterfaceDbus/include/CommandInterface.xml
blob: f6f07a0e635ba0e4947e2850137649c36d511191 (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE node PUBLIC
  "-//freedesktop//DTD D-Bus Object Introspection 1.0//EN"
  "http://standards.freedesktop.org/dbus/1.0/introspect.dtd">

<node>
     <interface name="org.genivi.audiomanager.CommandInterface">

        <method name="Connect">
            <arg type="q" name="sourceID" direction="in"/>
            <arg type="q" name="sinkID" direction="in"/>
            <arg type="n" name="result" direction="out"/> <!-- method return code (am_Error_e) -->
            <arg type="q" name="mainConnectionID" direction="out"/>
        </method>

        <method name="Disconnect">
            <arg type="q" name="mainConnectionID" direction="in"/>
            <arg type="n" name="result" direction="out"/> <!-- method return code (am_Error_e) -->
        </method>

        <method name="SetVolume">
            <arg type="q" name="sinkID" direction="in"/>
            <arg type="n" name="volume" direction="in"/>
            <arg type="n" name="result" direction="out"/> <!-- method return code (am_Error_e) -->
        </method>

        <method name="VolumeStep">
            <arg type="q" name="sinkID" direction="in"/>
            <arg type="n" name="volumeStep" direction="in"/>
            <arg type="n" name="result" direction="out"/> <!-- method return code (am_Error_e) -->
        </method>

        <method name="SetSinkMuteState">
            <arg type="q" name="sinkID" direction="in"/>
            <arg type="n" name="muteState" direction="in"/>
            <arg type="n" name="result" direction="out"/> <!-- method return code (am_Error_e) -->
        </method>

        <method name="SetMainSinkSoundProperty">
            <arg type="q" name="sinkID" direction="in"/>
            <arg type="(nn)" name="soundProperty" direction="in"/>
            <arg type="n" name="result" direction="out"/> <!-- method return code (am_Error_e) -->
        </method>

        <method name="SetMainSourceSoundProperty">
            <arg type="q" name="sourceID" direction="in"/>
            <arg type="(nn)" name="soundProperty" direction="in"/>
            <arg type="n" name="result" direction="out"/> <!-- method return code (am_Error_e) -->
        </method>

        <method name="SetSystemProperty">
            <arg type="(nn)" name="property" direction="in"/>
            <arg type="n" name="result" direction="out"/> <!-- method return code (am_Error_e) -->
        </method>

        <method name="GetListMainConnections">
            <arg type="n" name="result" direction="out"/> <!-- method return code (am_Error_e) -->
            <arg type="a(qqqnn)" name="listConnections" direction="out"/> <!-- am_mainConnectionID_t mainConnectionID; am_sourceID_t sourceID; am_sinkID_t sinkID; am_timeSync_t delay; am_ConnectionState_e connectionState; -->
        </method>

        <method name="GetListMainSinks">
            <arg type="n" name="result" direction="out"/> <!-- method return code (am_Error_e) -->
            <arg type="a(qs(nn)nnq)" name="listMainSinks" direction="out"/> <!-- am_sinkID_t sinkID; std::string name; am_Availability_s availability; am_mainVolume_t volume; am_MuteState_e muteState; am_sinkClass_t sinkClassID; -->
        </method>

        <method name="GetListMainSources">
            <arg type="n" name="result" direction="out"/> <!-- method return code (am_Error_e) -->
            <arg type="a(qs(nn)q)" name="listMainSources" direction="out"/> <!-- am_sourceID_t sourceID; std::string name; am_Availability_s availability; am_sourceClass_t sourceClassID; -->
        </method>

        <method name="GetListMainSinkSoundProperties">
            <arg type="q" name="sinkID" direction="in"/> 
            <arg type="n" name="result" direction="out"/> <!-- method return code (am_Error_e) -->
            <arg type="a(nn)" name="listSoundProperties" direction="out"/> <!-- am_MainSoundPropertyType_e type; int16_t value; -->
        </method>

        <method name="GetListMainSourceSoundProperties">
            <arg type="q" name="sourceID" direction="in"/>
            <arg type="n" name="result" direction="out"/> <!-- method return code (am_Error_e) -->
            <arg type="a(nn)" name="listSourceProperties" direction="out"/> <!-- am_MainSoundPropertyType_e type; int16_t value; -->
        </method>

        <method name="GetListSourceClasses">
            <arg type="n" name="result" direction="out"/> <!-- method return code (am_Error_e) -->
            <arg type="a(qsa(nn))" name="listSourceClasses" direction="out"/> <!-- am_sourceClass_t SourceClassID; std::string name; std::vector<am_ClassProperty_s> listClassProperties; -->
        </method>

        <method name="GetListSinkClasses">
            <arg type="n" name="result" direction="out"/> <!-- method return code (am_Error_e) -->
            <arg type="a(qsa(nn))" name="listSinkClasses" direction="out"/> <!-- am_sourceClass_t SinkClassID; std::string name; std::vector<am_ClassProperty_s> listClassProperties; -->
        </method>

        <method name="GetListSystemProperties">
            <arg type="n" name="result" direction="out"/> <!-- method return code (am_Error_e) -->
            <arg type="a(nn)" name="listSystemProperties" direction="in"/> <!-- am_SystemProperty_e type; int16_t value; -->
        </method>

        <method name="GetTimingInformation">
            <arg type="q" name="mainConnectionID" direction="in"/>
            <arg type="n" name="result" direction="out"/> <!-- method return code (am_Error_e) -->
            <arg type="n" name="delay" direction="out"/>
        </method>

        <signal name="NumberOfMainConnectionsChanged">
        </signal>

	<signal name="SinkAdded">
            	<arg type="(qs(nn)nnq)" name="newSink" direction="out"/><!-- am_sinkID_t sinkID; std::string name; am_Availability_s availability; am_mainVolume_t volume; am_MuteState_e muteState; am_sinkClass_t sinkClassID; -->
        </signal>
		
	<signal name="SinkRemoved">
		<arg type="q" name="removedSinkID" direction="out"/>
        </signal>

	<signal name="SourceAdded">
            	<arg type="(qs(nn)q)" name="newSource" direction="out"/><!-- am_sourceID_t sourceID; std::string name; 	am_Availability_s availability; am_sourceClass_t sourceClassID; -->
        </signal>
		
	<signal name="SourceRemoved">
		<arg type="q" name="removedSourceID" direction="out"/>
        </signal>

        <signal name="NumberOfSinkClassesChanged">
        </signal>

        <signal name="NumberOfSourceClassesChanged">
        </signal>

        <signal name="MainConnectionStateChanged">
            <arg type="q" name="connectionID" direction="out"/>
            <arg type="n" name="connectionState" direction="out"/>
        </signal>

        <signal name="MainSinkSoundPropertyChanged">
            <arg type="q" name="sinkID" direction="out"/>
            <arg type="(nn)" name="SoundProperty" direction="out"/>
        </signal>

        <signal name="MainSourceSoundPropertyChanged">
            <arg type="q" name="sourceID" direction="out"/>
            <arg type="(nn)" name="SoundProperty" direction="out"/>
        </signal>

        <signal name="SinkAvailabilityChanged">
            <arg type="q" name="sinkID" direction="out"/>
            <arg type="(nn)" name="availability" direction="out"/>
        </signal>

        <signal name="SourceAvailabilityChanged">
            <arg type="q" name="sourceID" direction="out"/>
            <arg type="(nn)" name="availability" direction="out"/>
        </signal>

        <signal name="VolumeChanged">
            <arg type="q" name="sinkID" direction="out"/>
            <arg type="n" name="volume" direction="out"/>
        </signal>

        <signal name="SinkMuteStateChanged">
            <arg type="q" name="sinkID" direction="out"/>
            <arg type="n" name="muteState" direction="out"/>
        </signal>

            <signal name="SystemPropertyChanged">
            <arg type="(nn)" name="SystemProperty" direction="out"/>
        </signal>

        <signal name="TimingInformationChanged">
            <arg type="q" name="mainConnection" direction="out"/>
            <arg type="n" name="time" direction="out"/>
        </signal>

    </interface>
</node>