Top |
Functions
GMimeContentType * | g_mime_content_type_new () |
GMimeContentType * | g_mime_content_type_parse () |
char * | g_mime_content_type_get_mime_type () |
char * | g_mime_content_type_encode () |
gboolean | g_mime_content_type_is_type () |
const char * | g_mime_content_type_get_media_type () |
void | g_mime_content_type_set_media_type () |
const char * | g_mime_content_type_get_media_subtype () |
void | g_mime_content_type_set_media_subtype () |
GMimeParamList * | g_mime_content_type_get_parameters () |
const char * | g_mime_content_type_get_parameter () |
void | g_mime_content_type_set_parameter () |
Functions
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_parse ()
GMimeContentType * g_mime_content_type_parse (GMimeParserOptions *options
,const char *str
);
Parses the input string into a GMimeContentType object.
Parameters
options |
a GMimeParserOptions or |
[nullable] |
str |
input string containing a content-type (and params) |
g_mime_content_type_get_mime_type ()
char *
g_mime_content_type_get_mime_type (GMimeContentType *content_type
);
Allocates a string buffer containing the type and subtype defined
by the content_type
.
g_mime_content_type_encode ()
char * g_mime_content_type_encode (GMimeContentType *content_type
,GMimeFormatOptions *options
);
Encodes the Content-Disposition header.
g_mime_content_type_is_type ()
gboolean g_mime_content_type_is_type (GMimeContentType *content_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_get_media_type ()
const char *
g_mime_content_type_get_media_type (GMimeContentType *content_type
);
Gets the Content-Type's media type.
g_mime_content_type_set_media_type ()
void g_mime_content_type_set_media_type (GMimeContentType *content_type
,const char *type
);
Sets the Content-Type's media type.
g_mime_content_type_get_media_subtype ()
const char *
g_mime_content_type_get_media_subtype (GMimeContentType *content_type
);
Gets the Content-Type's media sub-type.
g_mime_content_type_set_media_subtype ()
void g_mime_content_type_set_media_subtype (GMimeContentType *content_type
,const char *subtype
);
Sets the Content-Type's media subtype.
g_mime_content_type_get_parameters ()
GMimeParamList *
g_mime_content_type_get_parameters (GMimeContentType *content_type
);
Gets the Content-Type's parameter list.
g_mime_content_type_get_parameter ()
const char * g_mime_content_type_get_parameter (GMimeContentType *content_type
,const char *name
);
Gets the parameter value specified by name
if it's available.
g_mime_content_type_set_parameter ()
void g_mime_content_type_set_parameter (GMimeContentType *content_type
,const char *name
,const char *value
);
Sets a parameter on the Content-Type.
Note: The name
should be in US-ASCII while the value
should be in
UTF-8.