dccp: integrate new fec interaction
[paraslash.git] / vss.h
1 /*
2  * Copyright (C) 2005-2010 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
9 void init_vss_task(int afs_socket);
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 const char *supported_audio_formats(void);
17
18 /** Stop playing after current audio file. */
19 #define VSS_NOMORE 1
20 /** Skip remaining part of current audio file. */
21 #define VSS_NEXT 2
22 /** A reposition request was sent by a client. */
23 #define VSS_REPOS 4
24 /** Currently playing. */
25 #define VSS_PLAYING 8
26
27 struct fec_client *vss_add_fec_client(struct sender_client *sc,
28                                       struct fec_client_parms *fcp);
29 void vss_del_fec_client(struct fec_client *fc);
30 size_t vss_get_fec_eof_packet(const char **buf);