summaryrefslogtreecommitdiff
path: root/pkg/quark/config.h
diff options
context:
space:
mode:
authorPotosi <potosi@disroot.org>2024-04-09 21:24:40 +0200
committerMichael Forney <mforney@mforney.org>2024-04-16 23:32:14 -0700
commit2f6f70fe85e8a792ab54144071fb3af7efe0c96b (patch)
tree6d2502e502f925489732c6ad38e9bbd68db888c5 /pkg/quark/config.h
parent0fd795873fae5853a0b14d713273b0602e1aedad (diff)
Added quark 5ad0df9175
Diffstat (limited to 'pkg/quark/config.h')
-rw-r--r--pkg/quark/config.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/pkg/quark/config.h b/pkg/quark/config.h
new file mode 100644
index 00000000..56f62aa6
--- /dev/null
+++ b/pkg/quark/config.h
@@ -0,0 +1,39 @@
+#ifndef CONFIG_H
+#define CONFIG_H
+
+#define BUFFER_SIZE 4096
+#define FIELD_MAX 200
+
+/* mime-types */
+static const struct {
+ char *ext;
+ char *type;
+} mimes[] = {
+ { "xml", "application/xml; charset=utf-8" },
+ { "xhtml", "application/xhtml+xml; charset=utf-8" },
+ { "html", "text/html; charset=utf-8" },
+ { "htm", "text/html; charset=utf-8" },
+ { "css", "text/css; charset=utf-8" },
+ { "txt", "text/plain; charset=utf-8" },
+ { "md", "text/plain; charset=utf-8" },
+ { "c", "text/plain; charset=utf-8" },
+ { "h", "text/plain; charset=utf-8" },
+ { "gz", "application/x-gtar" },
+ { "tar", "application/tar" },
+ { "pdf", "application/x-pdf" },
+ { "png", "image/png" },
+ { "gif", "image/gif" },
+ { "jpeg", "image/jpg" },
+ { "jpg", "image/jpg" },
+ { "iso", "application/x-iso9660-image" },
+ { "webp", "image/webp" },
+ { "svg", "image/svg+xml; charset=utf-8" },
+ { "flac", "audio/flac" },
+ { "mp3", "audio/mpeg" },
+ { "ogg", "audio/ogg" },
+ { "mp4", "video/mp4" },
+ { "ogv", "video/ogg" },
+ { "webm", "video/webm" },
+};
+
+#endif /* CONFIG_H */