Switch to the new afs.
[paraslash.git] / vss.h
1 /*
2 * Copyright (C) 2005-2007 Andre Noll <maan@systemlinux.org>
3 *
4 * Licensed under the GPL v2. For licencing details see COPYING.
5 */
6
7 /** \file vss.h exported functions from vss.c (para_server) */
8 void vss_init(void);
9 void vss_send_chunk(void);
10 struct timeval *vss_preselect(fd_set *rfds, fd_set *wfds, int *max_fileno);
11 void vss_post_select(fd_set *rfds, fd_set *wfds);
12 const char *audio_format_name(int);
13 unsigned int vss_playing(void);
14 unsigned int vss_next(void);
15 unsigned int vss_repos(void);
16 unsigned int vss_paused(void);
17 char *vss_get_header(size_t *header_len);
18 struct timeval *vss_chunk_time(void);
19 int guess_audio_format(const char *name);
20 int compute_afhi(const char *path, char *data, size_t size,
21 struct audio_format_info *afhi);
22 const char *supported_audio_formats(void);
23 int vss_get_chunk(long unsigned chunk_num, char **buf, size_t *len);
24
25 /** stop playing after current audio file */
26 #define VSS_NOMORE 1
27 /** skip remaining part of current audio file */
28 #define VSS_NEXT 2
29 /** a reposition request was sent by a client */
30 #define VSS_REPOS 4
31 /** currently playing */
32 #define VSS_PLAYING 8
33 /** a client requested to change the audio file selector */
34 #define VSS_CHANGE 16