source: roaraudio/doc/new-cmds @ 4420:8fd1b7b5bcf5

Last change on this file since 4420:8fd1b7b5bcf5 was 4420:8fd1b7b5bcf5, checked in by phi, 14 years ago

defined what a gerneral server info request should return

File size: 7.4 KB
Line 
1#($Revision$)
2!SECTION: Commands
3+DEVCTL = 33
4 +:version (uint8)
5 +:type (uint8)
6 +:vendor (uint8)
7 +VENDOR_ROARAUDIO = 0
8 +VENDOR_BASICDEV  = 1
9 +:subtype (uint8)
10 +:flags (uint8)
11 +:ot (uint8)
12 +:(id) (uint16) #(if not UNIID or SID)
13 +:data... (vardata)
14+CAPS = 34
15 +:version (uint8)
16 +:type (uint8)
17 +:flags (uint16)
18 +CT_CAPS      = 0
19 +::data... (dataarray)
20 +:::captype (TODO)
21 +:::... (TODO)
22 +CT_STANDARDS = 1
23 +::data... (dataarray)
24 +:::stdvendor (uint8)
25 +STDV_ROARAUDIO = 0
26 +STDV_PROTO     = 1
27 +STDV_RFC       = 2
28 +:::stdversion (uint8)
29 +:::standard (uint16)
30+WAIT = 35
31 +:version (TODO)
32 +:flags (TODO)
33 :(TODO)
34+NOTIFY = 36
35 +=structof(WAIT)
36+SEEK = 37
37 +:version (TODO)
38 +:flags (TODO)
39 +:destination possition (TODO)
40 +:destination possition whence (TODO)
41 +:hint pos (TODO)
42 +:hint whence (TODO)
43 +:hint quality (TODO)
44 +:seek at (TODO)
45 +:seek to (TODO)
46 +:seek whence (TODO)
47 +SF_CONT_WHILE_SEEK = 0x01
48 +SF_CONT_ON_ERROR   = 0x02
49 +SF_HINT            = 0x04
50 +SF_SEEK            = 0x08
51 +HQ_BAD       = 0
52 +HQ_BAD_NB    = 1 #(bad, not before this possition)
53 +HQ_NEAR      = 2
54 +HQ_NEAR_NB   = 3 #(Near, not before this possition)
55 +HQ_GOOD      = 4
56 +HQ_GOOD_NB   = 5 #(good, not before this possition)
57 +HQ_EXACT     = HQ_EXACT_NB #(ID 6 is skiped here)
58 +HQ_EXACT_NB  = 7
59 +WHENCE_BEGIN = 0
60 +WHENCE_CUR   = 1
61 +WHENCE_END   = 2
62+CLIENTCTL = 38
63 +:version (uint8)
64 +:subcmd (uint8)
65 +:flags (uint16)
66 +:data (vardata)
67 +CC_HASHTABLE = PARA_HASHTABLE
68 +CC_WININFO   = PARA_WININFO
69 +CC_PROPTABLE = PARA_PROPTABLE
70+LOOKUP = 39
71 +:version (uint8)
72 +:flags (uint8)
73 +:extflags (uint8)
74 +:ot (uint8)
75 +:ht (uint32) #(hash type)
76 +:hash... (vardata)
77+CONCTL = 40
78 +:version (uint8)
79 +:flags (uint8)
80 +:session (uint8)
81 +:type (uint8)
82 +:stdvendor (uint8)
83 +:stdversion (uint8)
84 +:standard (uint16)
85 +CCT_NONE       = 0 #(This is the same like a NOOP-Command)
86 +CCT_CRYPTMSG   = 1 #(This request contains zero or more crypto packages according to given standard)
87 +CCT_OPENSESS   = 2 #(This opens a crypto session)
88 +:hash (uint32)
89 +:comp (uint16)
90 +COMPT_NONE  = 0
91 +COMPT_ZLIB  = 1
92 +COMPT_GZIP  = 2
93 +COMPT_BZIP2 = 3
94 +:complevel (uint8)
95 +:compflags (uint8)
96 +:data... (dataarray)
97 +CCT_CLOSESESS  = 3 #(This closes a opend cryto session)
98 +:hashlen (uint16)
99 +:hash (dataarray(:hashlen))
100 +:data... (dataarray)
101 +CCT_SESSDATA   = 4 #(This is some kind of data used in the session)
102 +:data... (dataarray)
103*SERVER_INFO
104 +IT_SERVER   = 1
105  +:version (uint8)
106  +:reserved (uint8)
107  +:indexlen (uint16)
108  +::reserved (uint8)
109  +::type (uint8)
110  +ITST_VERSION     = NEEDS_CONST
111  #(Format: Product/Version <vendor> (comments))
112  +ITST_LOCATION    = NEEDS_CONST
113  #(freeform)
114  +ITST_DESCRIPTION = NEEDS_CONST
115  #(freeform)
116  +ITST_CONTACT     = NEEDS_CONST
117  #(Format: first ["']nick["'] last (comment) <email>/OpenPGPkey/Phone/Room)
118  +ITST_UN_SYSNAME  = NEEDS_CONST #(uname -s)
119  +ITST_UN_NODENAME = NEEDS_CONST #(uname -n)
120  +ITST_UN_RELEASE  = NEEDS_CONST #(uname -r)
121  +ITST_UN_MACHINE  = NEEDS_CONST #(uname -m)
122  +ITST_SERIAL      = NEEDS_CONST
123  +ITST_ADDRESS     = NEEDS_CONST
124  +ITST_UIURL       = NEEDS_CONST
125  +::len (uint16)
126  +:strings (dataarray)
127 +IT_COUNTERS = 2
128  +:version (uint8)
129  +:reserved (uint24)
130  +:data... (dataarray)
131  +::type (uint8)
132  +::flags (uint8)
133  +::reserved (uint16)
134  +::counter (uint32)
135  +CF_CURRENT = 0x01 #(Current value if set, sum if unset)
136  +CF_OTTYPE  = 0x02 #(Type is a OT_* type if set, or other if unset)
137 +IT_LISTEN   = 3
138  +:version (uint8)
139  +:reserved (uint24)
140  +:listensocks... (dataarray)
141  +::id (uint16)
142  +::flags (uint8)
143  +::socktype (uint8)
144  +::proto (uint16)
145  +::byteorder (uint16)
146  +::dir (uint32)
147  +::auinfo (packed-audioinfo) #(4*4*8 = 128bit)
148  +::addrlen (uint16)
149  +::addr (padded-string(:addrlen))
150  +LF_HAVEDIR = 0x01
151  +LF_HAVEAI  = 0x02
152*[GS]ET_STREAM_PARA
153 *PARA_INFO
154  +STREAMSTATE_ERROR    = 5 #(Stream is in some error condition, parent client should close or kick it)
155  +STREAMSTATE_NEEDSEEK = 6 #(like Error but stream can become usable again if you do a seek)
156 +PARA_HASHTABLE  = 6   #(GTN, UUID, ...)
157  +:htsettertype (uint32)
158  +:htsettersize (uint16)
159  +:htsetterdata (vardata)
160  +:hashtable... (dataarray)
161  +::httype (uint32)
162  +::htsize (uint16)
163  +::htfunction (uint16)
164  +::htdata (vardata)
165  +HT_NONE       = 0
166  +HT_MD5        = 1
167  +HT_SHA1       = 2
168  +HT_RIPEMD160  = 3
169  +HT_MD2        = 5
170  +HT_TIGER      = 6
171  +HT_HAVAL      = 7
172  +HT_SHA256     = 8
173  +HT_SHA384     = 9
174  +HT_SHA512     = 10
175  +HT_SHA224     = 11
176  +HT_MD4        = 301
177  +HT_CRC32      = 302 #(ISO 3309, ITU-T V.42, IEEE 802.3)
178  +HT_RFC1510    = 303 #(HT_CRC32 as modified by RFC 1510)
179  +HT_RFC2440    = 304 #(poly=0x1864CFBL, init=0xB704CEL, OpenPGP)
180  +HT_WHIRLPOOL  = 305
181  +HT_UUID       = 70000
182#(GTN is the Global Track Number as used by for example the RoarAudio PlayList Daemon (rpld))
183#(It is a creator-runtime-unique number to identify the object.)
184  +HT_GTN8       = 70001
185  +HT_GTN16      = 70002
186  +HT_GTN32      = 70004 #("Short Global Track Number")
187  +HT_GTN64      = 70008 #("Long  Global Track Number")
188  +HT_CLIENTID   = 71000 + OT_CLIENT   = 71001
189  +HT_STREAMID   = 71000 + OT_STREAM   = 71002
190  +HT_SOURCEID   = 71000 + OT_SOURCE   = 71003
191  +HT_SAMPLEID   = 71000 + OT_SAMPLE   = 71004
192  +HT_MIXERID    = 71000 + OT_MIXER    = 71005
193  +HT_BRIDGEID   = 71000 + OT_BRIDGE   = 71006
194  +HT_LISTENID   = 71000 + OT_LISTEN   = 71007
195  +HT_ACTIONID   = 71000 + OT_ACTION   = 71008
196  +HT_MSGQUEUEID = 71000 + OT_MSGQUEUE = 71009
197  +HT_MSGBUSID   = 71000 + OT_MSGBUS   = 71010
198#(Next are article and book numers. They may be ued with HF_DISK and HF_WORK)
199  +HT_GTIN8      = 72001
200  +HT_GTIN13     = 72002
201  +HT_ISBN10     = 72003
202  +HT_ISBN13     = HT_GTIN13 #(ISBN-13 and GTIN/EAN-13 are the same)
203  +HF_NONE       =  0 #(This entry does not have anything to do with the object...)
204  +HF_OBJECT     =  1 #(This is an entry for exacltly this object)
205  +HF_PARENT     =  2 #(This is the parent object)
206  +HF_LOGIC      =  3 #(This is a logic group of this object)
207  +HF_PERMANENT  =  4 #(This can be used to acces exactly this object with a premanent address)
208  +HF_DEVICE     =  5 #(The device this is on or the device itself if this is a device)
209  +HF_DISK       =  6 #(The disk this is on, if this is a disk the same as HF_DEVICE)
210  +HF_SONG       =  7 #(This identifys the Song. This may for example be used with Tantalos)
211  +HF_APP        =  8 #(The application, device or other source generating this object)
212  +HF_FILE       =  9 #(The source file for this object)
213  +HT_ARTIST     = 10 #(This identifies any kind of artist/composer/interpret, to be used with Tantalos)
214  +HT_WORK       = 11 #(This identifies any kind of work/album/compilation, to be used with Tantalos)
215 +PARA_WININFO   = 7
216  +:wsystype (uint8)
217  +:socktype (uint8)
218  +:display (uint8)
219  +:screen (uint8)
220  +:addrlen (uint16)
221  +:addr (padded-string(:addrlen))
222  +:wins (dataarray)
223  +::window (uint32)
224 +PARA_PROPTABLE = 8
225  :(TODO)
226 +PARA_LTM       = 9
227*KICK,...
228 +OT_OUTPUT   =  5
229 +OT_MIXER    =  6
230 +OT_BRIDGE   =  7
231 +OT_LISTEN   =  8
232 +OT_ACTION   =  9
233 +OT_MSGQUEUE = 10 #(Message queue, message is gone as soon as one client took it)
234 +OT_MSGBUS   = 11 #(Message bus, message is gone as soon as all listening clients got it)
235*ATTACH
236 *ATTACH_SOURCE
237  :(TODO)
238 *ATTACH_OUTPUT
239  :(TODO)
240 +ATTACH_MIXER    = 4
241  :(TODO)
242 +ATTACH_BRIDGE   = 5
243  :(TODO)
244*SET_VOL
245 +SET_VOL_MS      = 3
246 +SET_VOL_UNMAPED = 4 #(like roarctls mono/stereo...)
247!SECTIONEND
248!SECTION: Codecs
249+AUTLAW  = NEEDS_CONST
250+MUUTLAW = NEEDS_CONST
251!SECTIONEND
Note: See TracBrowser for help on using the repository browser.