GMime Library Reference Manual | |||
---|---|---|---|
<<< Previous Page | Home | Up | Next Page >>> |
struct GMimeContentType; GMimeContentType* g_mime_content_type_new (const gchar *type, const gchar *subtype); GMimeContentType* g_mime_content_type_new_from_string (const gchar *string); void g_mime_content_type_destroy (GMimeContentType *mime_type); gchar* g_mime_content_type_to_string (const GMimeContentType *mime_type); gboolean g_mime_content_type_is_type (const GMimeContentType *mime_type, const char *type, const char *subtype); void g_mime_content_type_add_parameter (GMimeContentType *mime_type, const gchar *attribute, const gchar *value); const gchar* g_mime_content_type_get_parameter (const GMimeContentType *mime_type, const gchar *attribute); |
struct GMimeContentType { gchar *type; gchar *subtype; GList *params; /* of type GMimeParam */ GHashTable *param_hash; }; |
GMimeContentType* g_mime_content_type_new (const gchar *type, const gchar *subtype); |
GMimeContentType* g_mime_content_type_new_from_string (const gchar *string); |
void g_mime_content_type_destroy (GMimeContentType *mime_type); |
Destroys the given MIME Content-Type object.
gchar* g_mime_content_type_to_string (const GMimeContentType *mime_type); |
gboolean g_mime_content_type_is_type (const GMimeContentType *mime_type, const char *type, const char *subtype); |
void g_mime_content_type_add_parameter (GMimeContentType *mime_type, const gchar *attribute, const gchar *value); |
Adds a parameter to the Content-Type.
const gchar* g_mime_content_type_get_parameter (const GMimeContentType *mime_type, const gchar *attribute); |