| GMime Library Reference Manual | |||
|---|---|---|---|
| <<< Previous Page | Home | Up | Next Page >>> |
struct GMimeContentType; GMimeContentType* g_mime_content_type_new (const |
struct GMimeContentType {
gchar *type;
gchar *subtype;
GList *params; /* of type GMimeParam */
GHashTable *param_hash;
}; |
GMimeContentType* g_mime_content_type_new (const |
| type : | MIME type (or NULL for "text") |
| subtype : | MIME subtype (or NULL for "plain") |
| Returns : | a new MIME Content-Type. |
GMimeContentType* g_mime_content_type_new_from_string (const |
| string : | input string containing a content-type (and params) |
| Returns : | a new MIME Content-Type based on the input string. |
void g_mime_content_type_destroy (GMimeContentType *mime_type); |
Destroys the given MIME Content-Type object.
| mime_type : | MIME Content-Type object to destroy |
|
| mime_type : | MIME Content-Type |
| Returns : | an allocated string containing the type and subtype of the content-type in the format: type/subtype. |
|
| mime_type : | MIME Content-Type |
| type : | MIME type to compare against |
| subtype : | MIME subtype to compare against |
| Returns : | TRUE if the MIME types match or FALSE otherwise. You may
use "*" in place of |
void g_mime_content_type_add_parameter
(GMimeContentType *mime_type,
const |
Adds a parameter to the Content-Type.
| mime_type : | MIME Content-Type |
| attribute : | parameter name (aka attribute) |
| value : | parameter value |
const |
| mime_type : | MIME Content-Type |
| attribute : | parameter name (aka attribute) |
| Returns : | a const pointer to the paramer value specified by |