source: roaraudio/include/roaraudio/proto.h @ 20:4c1dc5287f52

Last change on this file since 20:4c1dc5287f52 was 20:4c1dc5287f52, checked in by phi, 16 years ago

added ROAR_CMD_GET_VOL and some descs

File size: 1.8 KB
Line 
1//porto.h:
2
3#ifndef _ROARAUDIO_PORTO_H_
4#define _ROARAUDIO_PORTO_H_
5
6#define ROAR_CMD_EOL           -1 /* end of list */
7#define ROAR_CMD_NOOP           0 /* do nothing */
8#define ROAR_CMD_IDENTIFY       1 /* after connect we have to identify ourself */
9#define ROAR_CMD_AUTH           2 /* send an auth cookie */
10#define ROAR_CMD_NEW_STREAM     3 /* request a new stream id */
11#define ROAR_CMD_SET_META       4 /* update meta data of streamed data */
12#define ROAR_CMD_EXEC_STREAM    5 /* close all data channels and make the controll socket a raw data socket */
13#define ROAR_CMD_QUIT           6 /* quits the connection */
14
15#define ROAR_CMD_GET_STANDBY    7
16#define ROAR_CMD_SET_STANDBY    8
17
18#define ROAR_CMD_SERVER_INFO    9 /* Server version ... */
19#define ROAR_CMD_SERVER_STATS  10 /* Server stats: number of clients, streams,.. */
20#define ROAR_CMD_SERVER_OINFO  11 /* Output info, roar_audio_info sa */
21
22#define ROAR_CMD_ADD_DATA      12 /* add some data to the input buffer */
23
24//#define ROAR_CMD_
25
26#define ROAR_CMD_EXIT          13 /* make the server quit */
27#define ROAR_CMD_LIST_STREAMS  14 /* list all streams (not only playback streams like esd does) */
28#define ROAR_CMD_LIST_CLIENTS  15 /* list all clients */
29
30#define ROAR_CMD_GET_CLIENT    16 /* get infos about a client */
31#define ROAR_CMD_GET_STREAM    17 /* get infos about a stream */
32
33#define ROAR_CMD_KICK          18 /* kick a client, stream, sample or source */
34
35#define ROAR_CMD_SET_VOL       19 /* change volume */
36#define ROAR_CMD_GET_VOL       20 /* get volume */
37
38#define ROAR_CMD_OK           254 /* return value OK */
39#define ROAR_CMD_ERROR        255 /* return value ERROR */
40
41
42#define ROAR_STANDBY_ACTIVE     1
43#define ROAR_STANDBY_INACTIVE   0
44
45// object types...
46#define ROAR_OT_CLIENT 1
47#define ROAR_OT_STREAM 2
48#define ROAR_OT_SOURCE 3
49#define ROAR_OT_SAMPLE 4
50
51#endif
52
53//ll
Note: See TracBrowser for help on using the repository browser.