Line | |
---|
1 | //libroarbasic.h: |
---|
2 | |
---|
3 | #ifndef _LIBROARBASIC_H_ |
---|
4 | #define _LIBROARBASIC_H_ |
---|
5 | |
---|
6 | #include "libroar.h" |
---|
7 | |
---|
8 | #define LIBROAR_BUFFER_SMALL 80 |
---|
9 | #define LIBROAR_BUFFER_MSGDATA LIBROAR_BUFFER_SMALL |
---|
10 | #define _ROAR_MESSAGE_VERSION 0 |
---|
11 | |
---|
12 | struct roar_message { |
---|
13 | int cmd; |
---|
14 | unsigned int stream; |
---|
15 | uint32_t pos; |
---|
16 | int datalen; |
---|
17 | char data[LIBROAR_BUFFER_MSGDATA]; |
---|
18 | }; |
---|
19 | |
---|
20 | struct roar_connection { |
---|
21 | int fh; |
---|
22 | }; |
---|
23 | |
---|
24 | |
---|
25 | int roar_connect_raw (char * server); |
---|
26 | |
---|
27 | int roar_connect (struct roar_connection * con, char * server); |
---|
28 | int roar_disconnect (struct roar_connection * con); |
---|
29 | |
---|
30 | int roar_identify (struct roar_connection * con, char * name); |
---|
31 | |
---|
32 | int roar_send_message (struct roar_connection * con, struct roar_message * mes, char * data); |
---|
33 | int roar_recv_message (struct roar_connection * con, struct roar_message * mes, char ** data); |
---|
34 | int roar_req (struct roar_connection * con, struct roar_message * mes, char ** data); |
---|
35 | |
---|
36 | int roar_debug_message_print (struct roar_message * mes); |
---|
37 | |
---|
38 | int roar_debug_audio_info_print (struct roar_audio_info * info); |
---|
39 | |
---|
40 | #endif |
---|
41 | |
---|
42 | //ll |
---|
Note: See
TracBrowser
for help on using the repository browser.