2004-01-29 01:02:12 +00: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).
|
|
|
|
*/
|
|
|
|
|
2003-03-27 17:10:14 +00:00
|
|
|
/* -*- c-basic-offset: 4; indent-tabs-mode: nil; -*- */
|
2003-02-02 14:24:13 +00:00
|
|
|
#ifndef __YP_H__
|
|
|
|
#define __YP_H__
|
|
|
|
|
2003-06-26 13:33:55 +00:00
|
|
|
#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
|
|
|
|
|
2003-02-06 13:10:48 +00:00
|
|
|
struct source_tag;
|
|
|
|
|
2003-02-02 14:24:13 +00:00
|
|
|
#define YP_ADD_ALL -1
|
|
|
|
|
2004-01-26 22:42:22 +00:00
|
|
|
#ifdef USE_YP
|
2004-05-10 16:17:56 +00:00
|
|
|
void yp_add (struct source_tag *source);
|
|
|
|
void yp_remove (const char *mount);
|
|
|
|
void yp_touch (const char *mount);
|
2004-01-26 22:42:22 +00:00
|
|
|
void yp_recheck_config (ice_config_t *config);
|
2003-06-26 13:33:55 +00:00
|
|
|
void yp_initialize();
|
2004-05-10 16:17:56 +00:00
|
|
|
void yp_shutdown();
|
|
|
|
|
|
|
|
#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)
|
2004-08-21 12:56:24 +00:00
|
|
|
#define yp_initialize() WARN0("YP server handling has been disabled")
|
2004-05-10 16:17:56 +00:00
|
|
|
#define yp_shutdown() do{}while(0)
|
|
|
|
|
|
|
|
#endif /* USE_YP */
|
2003-02-02 14:24:13 +00:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|