#ifndef MIMECONF_H
#define MIMECONF_H
#include "conf.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct _mime_conf {
ConfigParser parser;
char *file;
UcxList *directives;
int ntypes;
} MimeConfig;
typedef struct _mime_dir {
sstr_t type;
UcxList *exts;
} MimeDirective;
MimeConfig *load_mime_config(
char *file);
void free_mime_config(MimeConfig *conf);
int mimeconf_parse(
void *p, ConfigLine *begin, ConfigLine *end,
sstr_t line);
#ifdef __cplusplus
}
#endif
#endif