2004-01-30 12:19:45 -05:00
|
|
|
#ifndef __EZSTREAM_CONFIG_H__
|
|
|
|
#define __EZSTREAM_CONFIG_H__
|
|
|
|
|
|
|
|
#include <libxml/parser.h>
|
|
|
|
|
|
|
|
|
|
|
|
#define MP3_FORMAT 1
|
2004-07-12 15:13:14 -04:00
|
|
|
#define OGG_FORMAT 2
|
2004-01-30 12:19:45 -05:00
|
|
|
|
|
|
|
typedef struct tag_EZCONFIG {
|
|
|
|
char *URL;
|
|
|
|
char *password;
|
|
|
|
int format;
|
|
|
|
char *fileName;
|
|
|
|
char *serverName;
|
|
|
|
char *serverURL;
|
|
|
|
char *serverGenre;
|
|
|
|
char *serverDescription;
|
|
|
|
char *serverBitrate;
|
|
|
|
char *serverChannels;
|
|
|
|
char *serverSamplerate;
|
|
|
|
char *serverQuality;
|
|
|
|
int serverPublic;
|
|
|
|
} EZCONFIG;
|
|
|
|
|
|
|
|
void printConfig();
|
|
|
|
int parseConfig(char *fileName);
|
|
|
|
EZCONFIG *getEZConfig();
|
|
|
|
#endif
|