server: Implement --listen-address for control service.
[paraslash.git] / vss.h
1 /* Copyright (C) 2005 Andre Noll <maan@tuebingen.mpg.de>, see file COPYING. */
2
3 /** \file vss.h Exported functions from vss.c (para_server). */
4
5 void vss_init(int afs_socket, struct sched *s);
6 unsigned int vss_playing(void);
7 unsigned int vss_next(void);
8 unsigned int vss_repos(void);
9 unsigned int vss_paused(void);
10 unsigned int vss_stopped(void);
11 struct timeval *vss_chunk_time(void);
12
13 /** Stop playing after current audio file. */
14 #define VSS_NOMORE 1
15 /** Skip remaining part of current audio file. */
16 #define VSS_NEXT 2
17 /** A reposition request was sent by a client. */
18 #define VSS_REPOS 4
19 /** Currently playing. */
20 #define VSS_PLAYING 8
21
22 struct fec_client *vss_add_fec_client(struct sender_client *sc,
23                                       struct fec_client_parms *fcp);
24 void vss_del_fec_client(struct fec_client *fc);
25 size_t vss_get_fec_eof_packet(const char **buf);