yp.h 732 Bytes
Newer Older
1 2 3 4
#ifndef __YP_H__
#define __YP_H__

#include <stdio.h>
5 6 7

struct source_tag;

8 9 10
#define YP_ADD_ALL -1
typedef struct ypdata_tag
{
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
    char *sid;
    char *server_name;
    char *server_desc;
    char *server_genre;
    char *cluster_password;
    char *server_url;
    char *listen_url;
    char *bitrate;
    char *audio_info;
    char *server_type;
    char *current_song;
    char *yp_url;
    int    yp_url_timeout;
    long yp_last_touch;
    int    yp_touch_interval;
26 27 28
} ypdata_t;

void *yp_touch_thread(void *arg);
29 30 31
int yp_add(struct source_tag *source, int which);
int yp_touch(struct source_tag *source);
int yp_remove(struct source_tag *psource);
Ed "oddsock" Zaleski's avatar
Ed "oddsock" Zaleski committed
32 33
ypdata_t *yp_create_ypdata();
void yp_destroy_ypdata(ypdata_t *ypdata);
34 35 36 37

#endif