2003-02-02 09:24:13 -05:00
|
|
|
#ifndef __YP_H__
|
|
|
|
#define __YP_H__
|
|
|
|
|
|
|
|
#include <stdio.h>
|
2003-02-06 08:10:48 -05:00
|
|
|
|
|
|
|
struct source_tag;
|
|
|
|
|
2003-02-02 09:24:13 -05:00
|
|
|
#define YP_ADD_ALL -1
|
|
|
|
typedef struct ypdata_tag
|
|
|
|
{
|
2003-02-06 08:10:48 -05:00
|
|
|
char *sid;
|
|
|
|
char *server_name;
|
|
|
|
char *server_desc;
|
|
|
|
char *server_genre;
|
|
|
|
char *cluster_password;
|
|
|
|
char *server_url;
|
|
|
|
char *listen_url;
|
|
|
|
char *bitrate;
|
2003-02-26 18:52:23 -05:00
|
|
|
char *audio_info;
|
2003-02-06 08:10:48 -05:00
|
|
|
char *server_type;
|
|
|
|
char *current_song;
|
|
|
|
char *yp_url;
|
2003-02-02 09:24:13 -05:00
|
|
|
int yp_url_timeout;
|
2003-02-06 08:10:48 -05:00
|
|
|
long yp_last_touch;
|
|
|
|
int yp_touch_interval;
|
2003-02-02 09:24:13 -05:00
|
|
|
} ypdata_t;
|
|
|
|
|
|
|
|
void *yp_touch_thread(void *arg);
|
2003-02-06 08:10:48 -05:00
|
|
|
int yp_add(struct source_tag *source, int which);
|
|
|
|
int yp_touch(struct source_tag *source);
|
|
|
|
int yp_remove(struct source_tag *psource);
|
2003-02-02 11:48:15 -05:00
|
|
|
ypdata_t *yp_create_ypdata();
|
|
|
|
void yp_destroy_ypdata(ypdata_t *ypdata);
|
2003-02-02 09:24:13 -05:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|