source: roaraudio/include/libroar/basic.h @ 8:89686870362d

Last change on this file since 8:89686870362d was 8:89686870362d, checked in by phi, 16 years ago

added a version to the messages (INCOMPATIBLE PROTOCOL CHANGE!)

File size: 1022 bytes
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
12struct roar_message {
13 int cmd;
14 unsigned int stream;
15 uint32_t pos;
16 int datalen;
17 char data[LIBROAR_BUFFER_MSGDATA];
18};
19
20struct roar_connection {
21 int fh;
22};
23
24
25int roar_connect_raw (char * server);
26
27int roar_connect    (struct roar_connection * con, char * server);
28int roar_disconnect (struct roar_connection * con);
29
30int roar_identify   (struct roar_connection * con, char * name);
31
32int roar_send_message (struct roar_connection * con, struct roar_message * mes, char *  data);
33int roar_recv_message (struct roar_connection * con, struct roar_message * mes, char ** data);
34int roar_req          (struct roar_connection * con, struct roar_message * mes, char ** data);
35
36int roar_debug_message_print (struct roar_message * mes);
37
38int 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.