1#ifndef MIMETYPES_H
 2#define MIMETYPES_H
 3
 4#include <stddef.h>
 5
 6#define MAX_MIMETYPES 10
 7
 8typedef struct {
 9	const char *name;
10	const char *mimetypes[MAX_MIMETYPES];
11} Category;
12
13static const Category categories[] = {
14	{"Web Browser", {"text/html", "x-scheme-handler/http", "x-scheme-handler/https", NULL}},
15	{"File Manager", {"inode/directory", NULL}},
16	{"PDF Reader", {"application/pdf", NULL}},
17	{"Text Editor", {"text/plain", NULL}},
18	{"Code Editor", {"text/x-csrc", "text/x-python", "text/x-javascript", "application/x-shellscript", NULL}},
19	{"Image Viewer", {"image/jpeg", "image/png", "image/gif", "image/bmp", "image/webp", "image/svg+xml", NULL}},
20	{"Video Player", {"video/mp4", "video/x-matroska", "video/webm", "video/quicktime", "video/x-msvideo", NULL}},
21	{"Audio Player", {"audio/mpeg", "audio/ogg", "audio/wav", "audio/flac", "audio/aac", NULL}},
22	{"Mail Client", {"x-scheme-handler/mailto", "message/rfc822", NULL}},
23	{"Archive Manager", {"application/zip", "application/x-tar", "application/x-gzip", "application/x-bzip2", "application/x-7z-compressed", "application/x-rar", NULL}},
24	{"Torrent Client", {"application/x-bittorrent", "x-scheme-handler/magnet", NULL}},
25	{"Word Processor", {"application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/msword", "application/vnd.oasis.opendocument.text", NULL}},
26	{"Spreadsheet", {"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "application/vnd.ms-excel", "application/vnd.oasis.opendocument.spreadsheet", NULL}},
27	{"Presentation", {"application/vnd.openxmlformats-officedocument.presentationml.presentation", "application/vnd.ms-powerpoint", "application/vnd.oasis.opendocument.presentation", NULL}},
28	{NULL, {NULL}}};
29
30#endif // MIMETYPES_H