2 * Copyright (C) 2006 Andre Noll <maan@tuebingen.mpg.de>
4 * Licensed under the GPL v2. For licencing details see COPYING.
7 /** \file audiod.h Symbols exported from audiod.c. */
10 /** enum of audio formats supported by para_audiod */
11 enum {AUDIOD_AUDIO_FORMATS_ENUM};
13 /** array of audio format names supported by para_audiod */
14 extern const char *audio_formats[];
17 * the possible modes of operation
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
23 enum audiod_status_info {AUDIOD_OFF, AUDIOD_ON, AUDIOD_STANDBY};
25 /** defines one command of para_audiod */
26 struct audiod_command {
27 /** the name of the command */
29 /** pointer to the function that handles the command */
30 int (*handler)(int, int, char**);
31 /** one-line description of the command */
32 const char *description;
33 /** summary of the command line options */
35 /** the long help text */
39 __malloc char *audiod_get_decoder_flags(void);
40 extern struct audiod_args_info conf;
41 extern int audiod_status;
43 int handle_connect(int accept_fd, fd_set *rfds);
44 void audiod_status_dump(bool force);
45 char *get_time_string(void);
46 struct btr_node *audiod_get_btr_root(void);
48 void stat_client_write_item(int item_num);
49 void clear_and_dump_items(void);
50 void close_stat_clients(void);