CMimeInfo_T * cmime_util_info_get_from_file(const char *filename)
Get mime type and encoding from file.
Definition: cmime_util.c:165
char * mime_encoding
Definition: cmime_util.h:51
char * cmime_util_get_mimetype(const char *filename)
Get mimetype of file use the 'file' tool.
Definition: cmime_util.c:54
CMimeInfo_T * cmime_util_info_new(void)
Creates a new CMimeInfo_T object.
Definition: cmime_util.c:88
CMimeInfo_T * cmime_util_info_get_from_string(const char *s)
Get mime type and encoding from given string.
Definition: cmime_util.c:112
Struct with mime informations.
Definition: cmime_util.h:49
int cmime_util_rand()
Generate a random number from 0 to RAND_MAX.
Definition: cmime_util.c:180
void cmime_util_info_free(CMimeInfo_T *mi)
free a CMimeInfo_T object
Definition: cmime_util.c:97
char * mime_type
Definition: cmime_util.h:50
char * combined
Definition: cmime_util.h:52