From 9bd603b639d7dd08fbe0af7e8669358bd066b7cd Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Tue, 11 Feb 2020 11:43:25 -0500 Subject: Refactor project structure: * Move prototypes and definitions to respective header files * Renamed strings.h to str.h to avoid collision with standard library header --- include/mime.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 include/mime.h (limited to 'include/mime.h') 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 -- cgit