Merge branch 'maint'
[paraslash.git] / vss.h
1 /*
2  * Copyright (C) 2005 Andre Noll <maan@tuebingen.mpg.de>
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
9 void vss_init(int afs_socket, struct sched *s);
10 unsigned int vss_playing(void);
11 unsigned int vss_next(void);
12 unsigned int vss_repos(void);
13 unsigned int vss_paused(void);
14 unsigned int vss_stopped(void);
15 struct timeval *vss_chunk_time(void);
16
17 /** Stop playing after current audio file. */
18 #define VSS_NOMORE 1
19 /** Skip remaining part of current audio file. */
20 #define VSS_NEXT 2
21 /** A reposition request was sent by a client. */
22 #define VSS_REPOS 4
23 /** Currently playing. */
24 #define VSS_PLAYING 8
25
26 struct fec_client *vss_add_fec_client(struct sender_client *sc,
27                                       struct fec_client_parms *fcp);
28 void vss_del_fec_client(struct fec_client *fc);
29 size_t vss_get_fec_eof_packet(const char **buf);