slave.h 964 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
/* 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).
 */

13 14 15
#ifndef __SLAVE_H__
#define __SLAVE_H__

16 17
#include <thread/thread.h>

18 19 20 21
typedef struct _relay_server {
    char *server;
    int port;
    char *mount;
22 23
    char *username;
    char *password;
24 25 26 27 28
    char *localmount;
    struct source_tag *source;
    int mp3metadata;
    int running;
    int cleanup;
29
    thread_type *thread;
30 31 32 33
    struct _relay_server *next;
} relay_server;


34 35
void slave_initialize(void);
void slave_shutdown(void);
36
void slave_recheck (void);
37
relay_server *relay_free (relay_server *relay);
38 39

#endif  /* __SLAVE_H__ */