yp.h 1.46 KB
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
/* -*- c-basic-offset: 4; indent-tabs-mode: nil; -*- */
14 15 16
#ifndef __YP_H__
#define __YP_H__

17 18
#include "icecasttypes.h"

19 20 21 22 23 24 25 26 27 28 29 30
#define  YP_SERVER_NAME         1
#define  YP_SERVER_DESC         2
#define  YP_SERVER_GENRE        3
#define  YP_SERVER_URL          4
#define  YP_BITRATE             5
#define  YP_AUDIO_INFO          6
#define  YP_SERVER_TYPE         7
#define  YP_CURRENT_SONG        8
#define  YP_CLUSTER_PASSWORD    9
#define  YP_SUBTYPE             10 

#define YP_ADD_ALL              -1
31

32
#ifdef USE_YP
33
void yp_add (const char *mount);
34 35
void yp_remove (const char *mount);
void yp_touch (const char *mount);
36
void yp_recheck_config (ice_config_t *config);
37 38
void yp_initialize(void);
void yp_shutdown(void);
39 40 41 42 43 44 45

#else

#define yp_add(x)               do{}while(0)
#define yp_remove(x)            do{}while(0)
#define yp_touch(x)             do{}while(0)
#define yp_recheck_config(x)    do{}while(0)
46
#define yp_initialize()         ICECAST_LOG_WARN("YP server handling has been disabled")
47 48 49
#define yp_shutdown()           do{}while(0)

#endif /* USE_YP */
50 51 52 53

#endif