2004-01-28 20:02:12 -05:00
|
|
|
/* Icecast
|
|
|
|
*
|
|
|
|
* This program is distributed under the GNU General Public License, version 2.
|
|
|
|
* A copy of this license is included with this source.
|
|
|
|
*
|
|
|
|
* Copyright 2000-2004, Jack Moffitt <jack@xiph.org,
|
|
|
|
* Michael Smith <msmith@xiph.org>,
|
|
|
|
* oddsock <oddsock@xiph.org>,
|
|
|
|
* Karl Heyes <karl@xiph.org>
|
|
|
|
* and others (see AUTHORS for details).
|
|
|
|
*/
|
|
|
|
|
2002-08-05 10:48:04 -04:00
|
|
|
#ifndef __SLAVE_H__
|
|
|
|
#define __SLAVE_H__
|
|
|
|
|
2014-12-02 16:50:57 -05:00
|
|
|
#include "common/thread/thread.h"
|
2004-10-22 20:44:29 -04:00
|
|
|
|
2004-02-19 15:28:21 -05:00
|
|
|
typedef struct _relay_server {
|
|
|
|
char *server;
|
|
|
|
int port;
|
|
|
|
char *mount;
|
2004-12-09 12:08:52 -05:00
|
|
|
char *username;
|
|
|
|
char *password;
|
2004-02-19 15:28:21 -05:00
|
|
|
char *localmount;
|
2009-03-16 21:45:41 -04:00
|
|
|
char *bind;
|
2004-02-19 15:28:21 -05:00
|
|
|
struct source_tag *source;
|
|
|
|
int mp3metadata;
|
2005-06-08 21:51:47 -04:00
|
|
|
int on_demand;
|
2004-02-19 15:28:21 -05:00
|
|
|
int running;
|
|
|
|
int cleanup;
|
2006-03-14 22:02:08 -05:00
|
|
|
time_t start;
|
2004-10-22 20:44:29 -04:00
|
|
|
thread_type *thread;
|
2004-02-19 15:28:21 -05:00
|
|
|
struct _relay_server *next;
|
|
|
|
} relay_server;
|
|
|
|
|
|
|
|
|
2002-08-05 10:48:04 -04:00
|
|
|
void slave_initialize(void);
|
|
|
|
void slave_shutdown(void);
|
2007-10-21 22:29:49 -04:00
|
|
|
void slave_update_all_mounts (void);
|
2005-05-15 20:16:12 -04:00
|
|
|
void slave_rebuild_mounts (void);
|
2004-02-19 15:28:21 -05:00
|
|
|
relay_server *relay_free (relay_server *relay);
|
2002-08-05 10:48:04 -04:00
|
|
|
|
|
|
|
#endif /* __SLAVE_H__ */
|