1 #ifndef SERVER_H
2 #define SERVER_H
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 
8 #include "playlist.h"
9 
10 #define CLIENTS_MAX	10
11 
12 int server_init (int debug, int foreground);
13 void server_loop (int list_sock);
14 void server_error (const char *msg);
15 void state_change ();
16 void set_info_rate (const int rate);
17 void set_info_channels (const int channels);
18 void set_info_bitrate (const int bitrate);
19 void set_info_avg_bitrate (const int avg_bitrate);
20 void tags_change ();
21 void ctime_change ();
22 void status_msg (const char *msg);
23 void tags_response (const int client_id, const char *file,
24 		const struct file_tags *tags);
25 void ev_audio_start ();
26 void ev_audio_stop ();
27 void server_queue_pop (const char *filename);
28 
29 #ifdef __cplusplus
30 }
31 #endif
32 
33 #endif
34