![]() |
![]() |
![]() |
Reference Manual of the tinymail framework | ![]() |
---|---|---|---|---|
TnyPair; TnyPair* tny_pair_new (const gchar *name, const gchar *value); void tny_pair_set_name (TnyPair *self, const gchar *name); const gchar* tny_pair_get_name (TnyPair *self); void tny_pair_set_value (TnyPair *self, const gchar *value); const gchar* tny_pair_get_value (TnyPair *self);
A type that has a name and a valye property. For example a single header line of a mime part
TnyPair* tny_pair_new (const gchar *name, const gchar *value);
Creates an instance of a type that holds a name and a value pair
|
the name of the pair |
|
the value of the pair |
Returns : |
(caller-owns): a new TnyPair instance |
Since 1.0 audience: application-developer
void tny_pair_set_name (TnyPair *self, const gchar *name);
Sets the name of the pair
|
a TnyPair |
|
the name to set |
Since 1.0 audience: application-developer
const gchar* tny_pair_get_name (TnyPair *self);
Get the name of the pair, the returned value must not be freed
|
a TnyPair |
Returns : |
the name of the pair |
Since 1.0 audience: application-developer
void tny_pair_set_value (TnyPair *self, const gchar *value);
Sets the value of the pair
|
a TnyPair |
|
the value to set |
Since 1.0 audience: application-developer