Top |
Functions
const char * | g_mime_param_get_name () |
const char * | g_mime_param_get_value () |
void | g_mime_param_set_value () |
const char * | g_mime_param_get_charset () |
void | g_mime_param_set_charset () |
const char * | g_mime_param_get_lang () |
void | g_mime_param_set_lang () |
GMimeParamEncodingMethod | g_mime_param_get_encoding_method () |
void | g_mime_param_set_encoding_method () |
GMimeParamList * | g_mime_param_list_new () |
GMimeParamList * | g_mime_param_list_parse () |
void | g_mime_param_list_clear () |
int | g_mime_param_list_length () |
void | g_mime_param_list_set_parameter () |
GMimeParam * | g_mime_param_list_get_parameter () |
GMimeParam * | g_mime_param_list_get_parameter_at () |
gboolean | g_mime_param_list_remove () |
gboolean | g_mime_param_list_remove_at () |
void | g_mime_param_list_encode () |
Description
A GMimeParam is a parameter name/value pair as found on MIME header fields such as Content-Type and Content-Disposition.
Functions
g_mime_param_get_name ()
const char *
g_mime_param_get_name (GMimeParam *param
);
Gets the name of the parameter.
g_mime_param_get_value ()
const char *
g_mime_param_get_value (GMimeParam *param
);
Gets the value of the parameter.
g_mime_param_set_value ()
void g_mime_param_set_value (GMimeParam *param
,const char *value
);
Sets the parameter value to value
.
g_mime_param_get_charset ()
const char *
g_mime_param_get_charset (GMimeParam *param
);
Gets the charset used for encoding the parameter.
g_mime_param_set_charset ()
void g_mime_param_set_charset (GMimeParam *param
,const char *charset
);
Sets the parameter charset used for encoding the value.
g_mime_param_get_lang ()
const char *
g_mime_param_get_lang (GMimeParam *param
);
Gets the language specifier used for encoding the parameter.
g_mime_param_set_lang ()
void g_mime_param_set_lang (GMimeParam *param
,const char *lang
);
Sets the parameter language specifier used for encoding the value.
g_mime_param_get_encoding_method ()
GMimeParamEncodingMethod
g_mime_param_get_encoding_method (GMimeParam *param
);
Gets the encoding method used for encoding the parameter.
g_mime_param_set_encoding_method ()
void g_mime_param_set_encoding_method (GMimeParam *param
,GMimeParamEncodingMethod method
);
Sets the encoding method used for encoding the value.
g_mime_param_list_new ()
GMimeParamList *
g_mime_param_list_new (void
);
Creates a new Content-Type or Content-Disposition parameter list.
g_mime_param_list_parse ()
GMimeParamList * g_mime_param_list_parse (GMimeParserOptions *options
,const char *str
);
Parses the input string into a parameter list.
g_mime_param_list_clear ()
void
g_mime_param_list_clear (GMimeParamList *list
);
Clears the list of parameters.
g_mime_param_list_length ()
int
g_mime_param_list_length (GMimeParamList *list
);
Gets the length of the list.
g_mime_param_list_set_parameter ()
void g_mime_param_list_set_parameter (GMimeParamList *list
,const char *name
,const char *value
);
Sets the specified parameter to value
.
g_mime_param_list_get_parameter ()
GMimeParam * g_mime_param_list_get_parameter (GMimeParamList *list
,const char *name
);
Gets the GMimeParam with the given name
.
g_mime_param_list_get_parameter_at ()
GMimeParam * g_mime_param_list_get_parameter_at (GMimeParamList *list
,int index
);
Gets the GMimeParam at the specified index
.
g_mime_param_list_remove ()
gboolean g_mime_param_list_remove (GMimeParamList *list
,const char *name
);
Removes a parameter from the GMimeParamList.
g_mime_param_list_remove_at ()
gboolean g_mime_param_list_remove_at (GMimeParamList *list
,int index
);
Removes a GMimeParam from the GMimeParamList at the specified index.
g_mime_param_list_encode ()
void g_mime_param_list_encode (GMimeParamList *list
,GMimeFormatOptions *options
,gboolean fold
,GString *str
);
Encodes the parameter list into str
, folding lines if required.
Parameters
list |
||
options |
a GMimeFormatOptions or |
|
fold |
|
|
str |
the output string buffer |