chiark / gitweb /
Fix mime_content_type() to not be so lazy; now it copes with arbitrary
[disorder] / lib / mime.h
index b863f4abb6695f8d9cdeaed4ec3ec74edcea3533..d9c28ac90bf3abc51cd775bf56b6d96647ba3adb 100644 (file)
 #ifndef MIME_H
 #define MIME_H
 
+struct kvp;
+
 int mime_content_type(const char *s,
                      char **typep,
-                     char **parameternamep,
-                     char **parametervaluep);
-/* Parse a content-type value.  returns 0 on success, -1 on error.
- * paramaternamep and parametervaluep are only set if present.
- * type and parametername are forced to lower case.
- */
+                     struct kvp **parametersp);
 
 const char *mime_parse(const char *s,
                       int (*callback)(const char *name, const char *value,