summaryrefslogtreecommitdiff
path: root/plugins/static/mime.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/static/mime.h')
-rw-r--r--plugins/static/mime.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/static/mime.h b/plugins/static/mime.h
new file mode 100644
index 0000000..c3641b5
--- /dev/null
+++ b/plugins/static/mime.h
@@ -0,0 +1,10 @@
+#pragma once
+
+
+// Must be called at least once in the application, and those calls must not be
+// simultaneous (because this function is not thread-safe itself).
+void mime_init();
+
+// Returns pointer to internal buffer, don't free
+// This function is thread-safe.
+const char* mime_detect(const char *path);