From 7e5d5796c410bb4640399d2284592f3ad27b119e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Wed, 8 Feb 2017 13:06:22 +0200 Subject: [PATCH 1/6] Add "font" top level type https://www.iana.org/assignments/media-types/media-types.xhtml#font https://tools.ietf.org/html/draft-ietf-justfont-toplevel --- update-mime-database.c | 1 + 1 file changed, 1 insertion(+) diff --git a/update-mime-database.c b/update-mime-database.c index 5af14d7..881f6a9 100644 --- a/update-mime-database.c +++ b/update-mime-database.c @@ -34,60 +34,61 @@ #define MIME_ERROR g_quark_from_static_string("mime-error-quark") #define NOGLOBS "__NOGLOBS__" #define NOMAGIC "__NOMAGIC__" #ifndef PATH_SEPARATOR # ifdef _WIN32 # define PATH_SEPARATOR ";" # else # define PATH_SEPARATOR ":" # endif #endif /* This is the list of directories to scan when finding old type files to * delete. It is also used to warn about invalid MIME types. */ const char *media_types[] = { "text", "application", "image", "audio", "inode", "video", "message", "model", "multipart", "x-content", "x-epoc", "x-scheme-handler", + "font", }; /* Represents a MIME type */ typedef struct _Type Type; /* A parsed element */ typedef struct _Magic Magic; /* A parsed element */ typedef struct _Match Match; /* A parsed element */ typedef struct _TreeMagic TreeMagic; /* A parsed element */ typedef struct _TreeMatch TreeMatch; /* A parsed element */ typedef struct _Glob Glob; struct _Type { char *media; char *subtype; /* Contains xmlNodes for elements that are being copied to the output. * That is, , and nodes, and anything * with an unknown namespace. */ xmlDoc *output; }; -- 2.21.0