b9cfb25e8a34a931dab19e67303813f46ab6b738
[paraslash.git] / audiod.h
1 /*
2  * Copyright (C) 2006 Andre Noll <maan@tuebingen.mpg.de>
3  *
4  * Licensed under the GPL v2. For licencing details see COPYING.
5  */
6
7 /** \file audiod.h Symbols exported from audiod.c. */
8
9
10 /** enum of audio formats supported by para_audiod */
11 enum {AUDIOD_AUDIO_FORMATS_ENUM};
12
13 /** array of audio format names supported by para_audiod */
14 extern const char *audio_formats[];
15
16 /**
17  * the possible modes of operation
18  *
19  * - off: disconnect from para_server
20  * - on: receive status information from para_server and play the audio stream
21  * - sb: only receive status information but not the audio stream
22  */
23 enum audiod_status_info {AUDIOD_OFF, AUDIOD_ON, AUDIOD_STANDBY};
24
25 extern struct audiod_args_info conf;
26 extern int audiod_status;
27
28 int handle_connect(int accept_fd, fd_set *rfds, uid_t *uid_whitelist);
29 void audiod_status_dump(bool force);
30 __malloc char *audiod_get_decoder_flags(void);
31 char *get_time_string(void);
32 struct btr_node *audiod_get_btr_root(void);
33
34 void stat_client_write_item(int item_num);
35 void clear_and_dump_items(void);
36 void close_stat_clients(void);