Added support for file access in GFS to facilitate static
[yaz-moved-to-github.git] / src / mime.h
diff --git a/src/mime.h b/src/mime.h
new file mode 100644 (file)
index 0000000..1ef5401
--- /dev/null
@@ -0,0 +1,20 @@
+/*
+ * Copyright (C) 1995-2005, Index Data ApS
+ * See the file LICENSE for details.
+ *
+ * $Id: mime.h,v 1.1 2006-03-15 13:32:05 adam Exp $
+ */
+#ifndef MIME_H
+#define MIME_H
+
+typedef struct yaz_mime_info *yaz_mime_types;
+
+yaz_mime_types yaz_mime_types_create();
+void yaz_mime_types_add(yaz_mime_types t, const char *suffix,
+                        const char *mime_type);
+const char *yaz_mime_lookup_suffix(yaz_mime_types t, const char *suffix);
+const char *yaz_mime_lookup_fname(yaz_mime_types t, const char *fname);
+void yaz_mime_types_destroy(yaz_mime_types t);
+
+#endif
+