crypt.c: Combine load_key() and get_private_key().
[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 int audiod_status;
26
27 /* defined in audiod.c */
28 struct btr_node *audiod_get_btr_root(void);
29 __malloc char *audiod_get_decoder_flags(void);
30 void clear_and_dump_items(void);
31 char *get_time_string(void);
32 bool uid_is_whitelisted(uid_t uid);
33
34 /* defined in audiod_command.c */
35 void audiod_status_dump(bool force);
36 void close_stat_clients(void);
37 int handle_connect(int accept_fd, fd_set *rfds);
38 void stat_client_write_item(int item_num);