root/trunk/libffado/support/dbus/control-interface.xml

Revision 1742, 13.0 kB (checked in by arnonym, 11 years ago)

Extend the interface of the MatrixMixer?:

  • Have booleans indicating if names and/or connections are supported. These functions are pure virtual.
  • Allow names and connections to be read and written, the default implementations of these (not anymore pure) virtual functions do nothing and return false or nothing.
Line 
1 <?xml version="1.0" ?>
2 <node name="/org/ffado/Control/">
3
4   <interface name="org.ffado.Control.Element.Element">
5       <method name="getId">
6           <arg type="t" name="id" direction="out"/>
7       </method>
8       <method name="getName">
9           <arg type="s" name="name" direction="out"/>
10       </method>
11       <method name="getLabel">
12           <arg type="s" name="label" direction="out"/>
13       </method>
14       <method name="getDescription">
15           <arg type="s" name="description" direction="out"/>
16       </method>
17       <method name="canChangeValue">
18           <arg type="b" name="can_change" direction="out"/>
19       </method>
20       <method name="getVerboseLevel">
21           <arg type="i" name="level" direction="out"/>
22       </method>
23       <method name="setVerboseLevel">
24           <arg type="i" name="level" direction="in"/>
25       </method>
26   </interface>
27
28   <interface name="org.ffado.Control.Element.Container">
29       <method name="getNbElements">
30           <arg type="i" name="count" direction="out"/>
31       </method>
32       <method name="getElementName">
33           <arg type="i" name="id" direction="in"/>
34           <arg type="s" name="name" direction="out"/>
35       </method>
36       <signal name="Destroyed"></signal>
37       <signal name="Updated"></signal>
38       <signal name="PreUpdate"></signal>
39       <signal name="PostUpdate"></signal>
40   </interface>
41
42   <interface name="org.ffado.Control.Element.ConfigRomX">
43       <method name="getGUID">
44           <arg type="s" name="guid" direction="out"/>
45       </method>
46       <method name="getVendorName">
47           <arg type="s" name="vendorname" direction="out"/>
48       </method>
49       <method name="getModelName">
50           <arg type="s" name="modelname" direction="out"/>
51       </method>
52       <method name="getVendorId">
53           <arg type="i" name="vendorid" direction="out"/>
54       </method>
55       <method name="getModelId">
56           <arg type="i" name="modelid" direction="out"/>
57       </method>
58       <method name="getUnitVersion">
59           <arg type="i" name="unitversion" direction="out"/>
60       </method>
61   </interface>
62
63   <interface name="org.ffado.Control.Element.Continuous">
64       <method name="setValue">
65           <arg type="d" name="value" direction="in"/>
66           <arg type="d" name="value" direction="out"/>
67       </method>
68       <method name="getValue">
69           <arg type="d" name="value" direction="out"/>
70       </method>
71       <method name="getMinimum">
72           <arg type="d" name="value" direction="out"/>
73       </method>
74       <method name="getMaximum">
75           <arg type="d" name="value" direction="out"/>
76       </method>
77       <method name="setValueIdx">
78           <arg type="i" name="idx" direction="in"/>
79           <arg type="d" name="value" direction="in"/>
80           <arg type="d" name="value" direction="out"/>
81       </method>
82       <method name="getValueIdx">
83           <arg type="i" name="idx" direction="in"/>
84           <arg type="d" name="value" direction="out"/>
85       </method>
86   </interface>
87
88   <interface name="org.ffado.Control.Element.Discrete">
89       <method name="setValue">
90           <arg type="i" name="value" direction="in"/>
91           <arg type="i" name="value" direction="out"/>
92       </method>
93       <method name="getValue">
94           <arg type="i" name="value" direction="out"/>
95       </method>
96       <method name="setValueIdx">
97           <arg type="i" name="idx" direction="in"/>
98           <arg type="i" name="value" direction="in"/>
99           <arg type="i" name="value" direction="out"/>
100       </method>
101       <method name="getValueIdx">
102           <arg type="i" name="idx" direction="in"/>
103           <arg type="i" name="value" direction="out"/>
104       </method>
105   </interface>
106
107   <interface name="org.ffado.Control.Element.Text">
108       <method name="setValue">
109           <arg type="s" name="value" direction="in"/>
110           <arg type="s" name="value" direction="out"/>
111       </method>
112       <method name="getValue">
113           <arg type="s" name="value" direction="out"/>
114       </method>
115   </interface>
116
117   <interface name="org.ffado.Control.Element.Register">
118       <method name="setValue">
119           <arg type="t" name="address" direction="in"/>
120           <arg type="t" name="value" direction="in"/>
121           <arg type="t" name="value" direction="out"/>
122       </method>
123       <method name="getValue">
124           <arg type="t" name="address" direction="in"/>
125           <arg type="t" name="value" direction="out"/>
126       </method>
127   </interface>
128
129   <interface name="org.ffado.Control.Element.Enum">
130       <method name="select">
131           <arg type="i" name="idx" direction="in"/>
132           <arg type="i" name="success" direction="out"/>
133       </method>
134       <method name="selected">
135           <arg type="i" name="idx" direction="out"/>
136       </method>
137       <method name="count">
138           <arg type="i" name="count" direction="out"/>
139       </method>
140       <method name="getEnumLabel">
141           <arg type="i" name="idx" direction="in"/>
142           <arg type="s" name="label" direction="out"/>
143       </method>
144   </interface>
145
146   <interface name="org.ffado.Control.Element.AttributeEnum">
147       <method name="select">
148           <arg type="i" name="idx" direction="in"/>
149           <arg type="i" name="success" direction="out"/>
150       </method>
151       <method name="selected">
152           <arg type="i" name="idx" direction="out"/>
153       </method>
154       <method name="count">
155           <arg type="i" name="count" direction="out"/>
156       </method>
157       <method name="attributeCount">
158           <arg type="i" name="count" direction="out"/>
159       </method>
160       <method name="getEnumLabel">
161           <arg type="i" name="idx" direction="in"/>
162           <arg type="s" name="label" direction="out"/>
163       </method>
164       <method name="getAttributeValue">
165           <arg type="i" name="idx" direction="in"/>
166           <arg type="s" name="value" direction="out"/>
167       </method>
168       <method name="getAttributeName">
169           <arg type="i" name="idx" direction="in"/>
170           <arg type="s" name="name" direction="out"/>
171       </method>
172   </interface>
173
174   <interface name="org.ffado.Control.Element.MatrixMixer">
175       <method name="setValue">
176           <arg type="i" name="row" direction="in"/>
177           <arg type="i" name="col" direction="in"/>
178           <arg type="d" name="value" direction="in"/>
179           <arg type="d" name="value" direction="out"/>
180       </method>
181       <method name="getValue">
182           <arg type="i" name="row" direction="in"/>
183           <arg type="i" name="col" direction="in"/>
184           <arg type="d" name="value" direction="out"/>
185       </method>
186       <method name="canWrite">
187           <arg type="i" name="row" direction="in"/>
188           <arg type="i" name="col" direction="in"/>
189           <arg type="i" name="value" direction="out"/>
190       </method>
191       <method name="getRowCount">
192           <arg type="i" name="nbrows" direction="out"/>
193       </method>
194       <method name="getColCount">
195           <arg type="i" name="nbrows" direction="out"/>
196       </method>
197       <method name="hasNames">
198           <arg type="b" name="value" direction="out"/>
199       </method>
200       <method name="getRowName">
201           <arg type="i" name="row" direction="in"/>
202           <arg type="s" name="rowname" direction="out"/>
203       </method>
204       <method name="getColName">
205           <arg type="i" name="col" direction="in"/>
206           <arg type="s" name="colname" direction="out"/>
207       </method>
208       <method name="setRowName">
209           <arg type="i" name="row" direction="in"/>
210           <arg type="s" name="rowname" direction="in"/>
211           <arg type="b" name="value" direction="out"/>
212       </method>
213       <method name="setColName">
214           <arg type="i" name="col" direction="in"/>
215           <arg type="s" name="colname" direction="in"/>
216           <arg type="b" name="value" direction="out"/>
217       </method>
218       <method name="canConnect">
219           <arg type="b" name="value" direction="out"/>
220       </method>
221       <method name="availableConnectionsForRow">
222           <arg type="i" name="row" direction="in"/>
223           <arg type="as" name="value" direction="out"/>
224       </method>
225       <method name="availableConnectionsForCol">
226           <arg type="i" name="col" direction="in"/>
227           <arg type="as" name="value" direction="out"/>
228       </method>
229       <method name="connectRowTo">
230           <arg type="i" name="row" direction="in"/>
231           <arg type="s" name="target" direction="in"/>
232           <arg type="b" name="value" direction="out"/>
233       </method>
234       <method name="connectColTo">
235           <arg type="i" name="col" direction="in"/>
236           <arg type="s" name="target" direction="in"/>
237           <arg type="b" name="value" direction="out"/>
238       </method>
239   </interface>
240
241   <interface name="org.ffado.Control.Element.CrossbarRouter">
242       <method name="getSourceName">
243           <arg type="i" name="srcid" direction="in"/>
244           <arg type="s" name="sourcename" direction="out"/>
245       </method>
246       <method name="getDestinationName">
247           <arg type="i" name="dstid" direction="in"/>
248           <arg type="s" name="destinationname" direction="out"/>
249       </method>
250       <method name="getSourceIndex">
251           <arg type="s" name="sourcename" direction="in"/>
252           <arg type="i" name="srcid" direction="out"/>
253       </method>
254       <method name="getDestinationIndex">
255           <arg type="s" name="destinationname" direction="in"/>
256           <arg type="i" name="dstid" direction="out"/>
257       </method>
258       <method name="getSourceNames">
259           <arg type="as" name="sourcenames" direction="out"/>
260       </method>
261       <method name="getSources">
262           <arg type="a(si)" name="sources" direction="out"/>
263       </method>
264       <method name="getDestinations">
265           <arg type="a(si)" name="sources" direction="out"/>
266       </method>
267       <method name="getDestinationNames">
268           <arg type="as" name="destinationnames" direction="out"/>
269       </method>
270       <method name="getDestinationsForSource">
271           <arg type="i" name="srcid" direction="in"/>
272           <arg type="ai" name="dstids" direction="out"/>
273       </method>
274       <method name="getSourceForDestination">
275           <arg type="i" name="dstid" direction="in"/>
276           <arg type="i" name="srcid" direction="out"/>
277       </method>
278       <method name="canConnect">
279           <arg type="i" name="srcid" direction="in"/>
280           <arg type="i" name="dstid" direction="in"/>
281           <arg type="b" name="canconnect" direction="out"/>
282       </method>
283       <method name="setConnectionState">
284           <arg type="i" name="srcid" direction="in"/>
285           <arg type="i" name="dstid" direction="in"/>
286           <arg type="b" name="state" direction="in"/>
287           <arg type="b" name="result" direction="out"/>
288       </method>
289       <method name="getConnectionState">
290           <arg type="i" name="srcid" direction="in"/>
291           <arg type="i" name="dstid" direction="in"/>
292           <arg type="b" name="state" direction="out"/>
293       </method>
294       <method name="canConnectNamed">
295           <arg type="s" name="srcname" direction="in"/>
296           <arg type="s" name="dstname" direction="in"/>
297           <arg type="b" name="canconnect" direction="out"/>
298       </method>
299       <method name="setConnectionStateNamed">
300           <arg type="s" name="srcname" direction="in"/>
301           <arg type="s" name="dstname" direction="in"/>
302           <arg type="b" name="state" direction="in"/>
303           <arg type="b" name="result" direction="out"/>
304       </method>
305       <method name="getConnectionStateNamed">
306           <arg type="s" name="srcname" direction="in"/>
307           <arg type="s" name="dstname" direction="in"/>
308           <arg type="b" name="state" direction="out"/>
309       </method>
310       <method name="clearAllConnections">
311           <arg type="b" name="state" direction="out"/>
312       </method>
313       <method name="getNbSources">
314           <arg type="i" name="state" direction="out"/>
315       </method>
316       <method name="getNbDestinations">
317           <arg type="i" name="state" direction="out"/>
318       </method>
319       <method name="getConnectionMap">
320           <arg type="ai" name="map" direction="out"/>
321       </method>
322       <method name="setConnectionMap">
323           <arg type="ai" name="map" direction="in"/>
324           <arg type="i" name="state" direction="out"/>
325       </method>
326       <method name="hasPeakMetering">
327           <arg type="b" name="hasmetering" direction="out"/>
328       </method>
329       <method name="getPeakValue">
330           <arg type="i" name="srcid" direction="in"/>
331           <arg type="i" name="dstid" direction="in"/>
332           <arg type="d" name="value" direction="out"/>
333       </method>
334       <method name="getPeakValues">
335           <arg type="a(id)" name="values" direction="out"/>
336       </method>
337   </interface>
338
339   <interface name="org.ffado.Control.Element.Boolean">
340       <method name="select">
341           <arg type="b" name="value" direction="in"/>
342           <arg type="b" name="success" direction="out"/>
343       </method>
344       <method name="selected">
345           <arg type="b" name="value" direction="out"/>
346       </method>
347       <method name="getBooleanLabel">
348           <arg type="b" name="value" direction="in"/>
349           <arg type="s" name="label" direction="out"/>
350       </method>
351   </interface>
352 </node>
Note: See TracBrowser for help on using the browser.