2004-01-30 12:19:45 -05:00
|
|
|
#ifndef __EZSTREAM_CONFIG_H__
|
|
|
|
#define __EZSTREAM_CONFIG_H__
|
|
|
|
|
|
|
|
#include <libxml/parser.h>
|
|
|
|
|
|
|
|
|
2004-07-18 23:12:31 -04:00
|
|
|
#define MP3_FORMAT "MP3"
|
|
|
|
#define VORBIS_FORMAT "VORBIS"
|
|
|
|
#define THEORA_FORMAT "THEORA"
|
|
|
|
|
|
|
|
#define MAX_FORMAT_ENCDEC 15
|
|
|
|
|
|
|
|
typedef struct tag_FORMAT_ENCDEC {
|
|
|
|
char *format;
|
|
|
|
char *match;
|
|
|
|
char *encoder;
|
|
|
|
char *decoder;
|
|
|
|
} FORMAT_ENCDEC;
|
2004-01-30 12:19:45 -05:00
|
|
|
|
|
|
|
typedef struct tag_EZCONFIG {
|
|
|
|
char *URL;
|
|
|
|
char *password;
|
2004-07-18 23:12:31 -04:00
|
|
|
char *format;
|
2004-01-30 12:19:45 -05:00
|
|
|
char *fileName;
|
|
|
|
char *serverName;
|
|
|
|
char *serverURL;
|
|
|
|
char *serverGenre;
|
|
|
|
char *serverDescription;
|
|
|
|
char *serverBitrate;
|
|
|
|
char *serverChannels;
|
|
|
|
char *serverSamplerate;
|
|
|
|
char *serverQuality;
|
|
|
|
int serverPublic;
|
2004-07-18 23:12:31 -04:00
|
|
|
int reencode;
|
|
|
|
FORMAT_ENCDEC *encoderDecoders[MAX_FORMAT_ENCDEC];
|
|
|
|
int numEncoderDecoders;
|
2004-01-30 12:19:45 -05:00
|
|
|
} EZCONFIG;
|
|
|
|
|
2004-07-18 23:12:31 -04:00
|
|
|
|
|
|
|
|
2004-01-30 12:19:45 -05:00
|
|
|
void printConfig();
|
|
|
|
int parseConfig(char *fileName);
|
|
|
|
EZCONFIG *getEZConfig();
|
2004-07-18 23:12:31 -04:00
|
|
|
char* getFormatEncoder(char *format);
|
|
|
|
char* getFormatDecoder(char *match);
|
|
|
|
char* getMetadataGrabber(char *match);
|
|
|
|
|
2004-01-30 12:19:45 -05:00
|
|
|
#endif
|