1
0
mirror of https://gitlab.xiph.org/xiph/ezstream.git synced 2024-09-15 04:08:07 -04:00
ezstream/src/configfile.h

49 lines
921 B
C
Raw Normal View History

#ifndef __EZSTREAM_CONFIG_H__
#define __EZSTREAM_CONFIG_H__
#include <libxml/parser.h>
#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;
typedef struct tag_EZCONFIG {
char *URL;
char *password;
char *format;
char *fileName;
char *serverName;
char *serverURL;
char *serverGenre;
char *serverDescription;
char *serverBitrate;
char *serverChannels;
char *serverSamplerate;
char *serverQuality;
int serverPublic;
int reencode;
FORMAT_ENCDEC *encoderDecoders[MAX_FORMAT_ENCDEC];
int numEncoderDecoders;
} EZCONFIG;
void printConfig();
int parseConfig(char *fileName);
EZCONFIG *getEZConfig();
char* getFormatEncoder(char *format);
char* getFormatDecoder(char *match);
char* getMetadataGrabber(char *match);
#endif