aboutsummaryrefslogtreecommitdiff
path: root/include/mime.h
blob: d05be77ed2b639d6a34cc87b5f890ee947c405e9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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