2 * Copyright (C) 1995-2007, Index Data ApS
3 * See the file LICENSE for details.
5 * $Id: mime.h,v 1.4 2007-01-03 08:42:15 adam Exp $
9 \brief Small utility to manage MIME types
15 typedef struct yaz_mime_info *yaz_mime_types;
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);