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_CON_STREAM 21 /* let the server connect to something to get data for a new stream */ |
---|
39 | |
---|
40 | #define ROAR_CMD_GET_META 22 /* get meta data of streamed data */ |
---|
41 | #define ROAR_CMD_LIST_META 23 /* get list of meta data of streamed data */ |
---|
42 | |
---|
43 | #define ROAR_CMD_BEEP 24 /* send an beep */ |
---|
44 | |
---|
45 | #define ROAR_GET_ACL 25 /* get ACL, may have subtypes */ |
---|
46 | #define ROAR_SET_ACL 26 /* set ACL, may have subtypes */ |
---|
47 | |
---|
48 | #define ROAR_CMD_GET_STREAM_PARA 27 /* Get addition stream parameters like blocksizes */ |
---|
49 | #define ROAR_CMD_SET_STREAM_PARA 28 /* set specal stream parameter */ |
---|
50 | |
---|
51 | |
---|
52 | #define ROAR_CMD_OK 254 /* return value OK */ |
---|
53 | #define ROAR_CMD_ERROR 255 /* return value ERROR */ |
---|
54 | |
---|
55 | |
---|
56 | #define ROAR_STANDBY_ACTIVE 1 |
---|
57 | #define ROAR_STANDBY_INACTIVE 0 |
---|
58 | |
---|
59 | // object types... |
---|
60 | #define ROAR_OT_CLIENT 1 |
---|
61 | #define ROAR_OT_STREAM 2 |
---|
62 | #define ROAR_OT_SOURCE 3 |
---|
63 | #define ROAR_OT_SAMPLE 4 |
---|
64 | |
---|
65 | #endif |
---|
66 | |
---|
67 | //ll |
---|