-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserver.h
34 lines (28 loc) · 793 Bytes
/
server.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef SERVER_H
#define SERVER_H
#ifdef __cplusplus
extern "C" {
#endif
#include "playlist.h"
#define CLIENTS_MAX 10
void server_init (int debug, int foreground);
void server_loop ();
void server_error (const char *file, int line, const char *function,
const char *msg);
void state_change ();
void set_info_rate (const int rate);
void set_info_channels (const int channels);
void set_info_bitrate (const int bitrate);
void set_info_avg_bitrate (const int avg_bitrate);
void tags_change ();
void ctime_change ();
void status_msg (const char *msg);
void tags_response (const int client_id, const char *file,
const struct file_tags *tags);
void ev_audio_start ();
void ev_audio_stop ();
void server_queue_pop (const char *filename);
#ifdef __cplusplus
}
#endif
#endif