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

Revision 1776, 10.9 kB (checked in by arnonym, 14 years ago)

Reduce the LOC:

  • Use only strings as identifiers for the Dice::EAP::Router. Updating the router doesn't happen that often, using strings only is acceptable. And it eases handling so much.
  • Adapt the control interface.
  • Adapt the dbus interface.
  • Adapt the routers gui.
  • The peak-space is not yet working (I didn't actually test it), the peak-functions of EAP::Router return nothing.
  • And the test for the dice has to be adopted when the peaks are working again.

TODO:

  • Re-activate the peaks.
  • Adopt the mixer interface.
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="getSourceNames">
243           <arg type="as" name="sourcenames" direction="out"/>
244       </method>
245       <method name="getDestinationNames">
246           <arg type="as" name="destinationnames" direction="out"/>
247       </method>
248       <method name="getSourceForDestination">
249           <arg type="s" name="dstid" direction="in"/>
250           <arg type="s" name="srcid" direction="out"/>
251       </method>
252       <method name="getDestinationsForSource">
253           <arg type="s" name="srcid" direction="in"/>
254           <arg type="as" name="dstids" direction="out"/>
255       </method>
256       <method name="canConnect">
257           <arg type="s" name="srcid" direction="in"/>
258           <arg type="s" name="dstid" direction="in"/>
259           <arg type="b" name="canconnect" direction="out"/>
260       </method>
261       <method name="setConnectionState">
262           <arg type="s" name="srcid" direction="in"/>
263           <arg type="s" name="dstid" direction="in"/>
264           <arg type="b" name="state" direction="in"/>
265           <arg type="b" name="result" direction="out"/>
266       </method>
267       <method name="getConnectionState">
268           <arg type="s" name="srcid" direction="in"/>
269           <arg type="s" name="dstid" direction="in"/>
270           <arg type="b" name="state" direction="out"/>
271       </method>
272       <method name="clearAllConnections">
273           <arg type="b" name="state" direction="out"/>
274       </method>
275       <method name="hasPeakMetering">
276           <arg type="b" name="hasmetering" direction="out"/>
277       </method>
278       <method name="getPeakValue">
279           <arg type="s" name="dstid" direction="in"/>
280           <arg type="d" name="value" direction="out"/>
281       </method>
282       <method name="getPeakValues">
283           <arg type="a(sd)" name="values" direction="out"/>
284       </method>
285   </interface>
286
287   <interface name="org.ffado.Control.Element.Boolean">
288       <method name="select">
289           <arg type="b" name="value" direction="in"/>
290           <arg type="b" name="success" direction="out"/>
291       </method>
292       <method name="selected">
293           <arg type="b" name="value" direction="out"/>
294       </method>
295       <method name="getBooleanLabel">
296           <arg type="b" name="value" direction="in"/>
297           <arg type="s" name="label" direction="out"/>
298       </method>
299   </interface>
300 </node>
Note: See TracBrowser for help on using the browser.