aboutsummaryrefslogtreecommitdiff
path: root/include/mime.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/mime.h')
-rw-r--r--include/mime.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/mime.h b/include/mime.h
new file mode 100644
index 0000000..d05be77
--- /dev/null
+++ b/include/mime.h
@@ -0,0 +1,18 @@
+#ifndef SPM_MIME_H
+#define SPM_MIME_H
+
+typedef struct {
+ char *origin;
+ char *type;
+ char *charset;
+} Mime;
+
+Process *file_command(const char *_filename);
+Mime *file_mimetype(const char *filename);
+void mime_free(Mime *m);
+int build(int bargc, char **bargv);
+int file_is_binary(const char *filename);
+int file_is_text(const char *filename);
+int file_is_binexec(const char *filename);
+
+#endif //SPM_MIME_H