summaryrefslogtreecommitdiff
path: root/src/mime/mime.h
blob: 084a66fa8d1b9648ac6e40fc37c4ccfe41168869 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef MIME_H
#define MIME_H

#include "str/str.h"
#include "list/list.h"


typedef struct mime_type {
	str desc;
	str ext;
} mime_type;


void add_mime_type(mime_type mt);
void read_mime_types(str file);
str get_mime_type(str ext);
void free_mime_types(void);

void print_mime_types(void);

#endif