Towards 2.1.40.
[yaz-moved-to-github.git] / src / mime.h
1 /*
2  * Copyright (C) 1995-2006, Index Data ApS
3  * See the file LICENSE for details.
4  *
5  * $Id: mime.h,v 1.3 2006-09-27 11:39:02 adam Exp $
6  */
7
8 /** \file mime.h
9     \brief Small utility to manage MIME types
10 */
11
12 #ifndef MIME_H
13 #define MIME_H
14
15 typedef struct yaz_mime_info *yaz_mime_types;
16
17 yaz_mime_types yaz_mime_types_create(void);
18 void yaz_mime_types_add(yaz_mime_types t, const char *suffix,
19                         const char *mime_type);
20 const char *yaz_mime_lookup_suffix(yaz_mime_types t, const char *suffix);
21 const char *yaz_mime_lookup_fname(yaz_mime_types t, const char *fname);
22 void yaz_mime_types_destroy(yaz_mime_types t);
23
24 #endif
25