Details
struct GMimeContentType
struct GMimeContentType {
char *type;
char *subtype;
GMimeParam *params;
GHashTable *param_hash;
}; |
g_mime_content_type_new ()
GMimeContentType* g_mime_content_type_new (const char *type,
const char *subtype); |
Creates a Content-Type object with type type and subtype subtype.
g_mime_content_type_new_from_string ()
Constructs a new Content-Type object based on the input string.
g_mime_content_type_destroy ()
Destroys the given MIME Content-Type object.
g_mime_content_type_to_string ()
Allocates a string buffer containing the type and subtype defined
by the mime_type.
g_mime_content_type_is_type ()
gboolean g_mime_content_type_is_type (const GMimeContentType *mime_type,
const char *type,
const char *subtype); |
Compares the given type and subtype with that of the given mime
type object.
g_mime_content_type_set_parameter ()
void g_mime_content_type_set_parameter
(GMimeContentType *mime_type,
const char *attribute,
const char *value); |
Sets a parameter on the Content-Type.
g_mime_content_type_get_parameter ()
const char* g_mime_content_type_get_parameter
(const GMimeContentType *mime_type,
const char *attribute); |
Gets the parameter value specified by attribute if it's available.