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