|
Libical API Documentation 3.0
|
Go to the source code of this file.
Functions | |
| char * | icalparameter_as_ical_string (icalparameter *parameter) |
| Converts icalparameter into a string representation. | |
| char * | icalparameter_as_ical_string_r (icalparameter *parameter) |
| Converts icalparameter into an string representation according to RFC5445/RFC6868. | |
| void | icalparameter_free (icalparameter *parameter) |
| Frees an icalparameter object. | |
| const char * | icalparameter_get_iana_name (icalparameter *param) |
| Returns the IANA name of param. | |
| const char * | icalparameter_get_iana_value (icalparameter *param) |
| Returns the IANA value of param. | |
| const char * | icalparameter_get_xname (icalparameter *param) |
| Returns the X-name of param. | |
| const char * | icalparameter_get_xvalue (icalparameter *param) |
| Returns the X-value of param. | |
| int | icalparameter_has_same_name (icalparameter *param1, icalparameter *param2) |
| Determines if two parameters have the same name. | |
| icalparameter_kind | icalparameter_isa (icalparameter *parameter) |
| int | icalparameter_isa_parameter (void *param) |
| int | icalparameter_kind_is_valid (const icalparameter_kind kind) |
| Checks the validity of a icalparameter_kind. | |
| const char * | icalparameter_kind_to_string (icalparameter_kind kind) |
| Returns a string representing the given icalparameter_kind. | |
| icalparameter * | icalparameter_new (icalparameter_kind kind) |
| Creates new icalparameter object. | |
| icalparameter * | icalparameter_new_clone (icalparameter *p) |
| Creates new icalparameter as a clone of the given one. | |
| icalparameter * | icalparameter_new_from_string (const char *value) |
| Creates new icalparameter object from string. | |
| icalparameter * | icalparameter_new_from_value_string (icalparameter_kind kind, const char *value) |
| Creates new icalparameter of a given kind with a given value. | |
| void | icalparameter_set_iana_name (icalparameter *param, const char *v) |
| Sets the IANA name of param to v. | |
| void | icalparameter_set_iana_value (icalparameter *param, const char *v) |
| Sets the IANA value of param to v. | |
| void | icalparameter_set_xname (icalparameter *param, const char *v) |
| Sets the X-name of param to v. | |
| void | icalparameter_set_xvalue (icalparameter *param, const char *v) |
| Sets the X-value of param to v. | |
| icalparameter_kind | icalparameter_string_to_kind (const char *string) |
| Returns the icalparameter_kind for a given string. | |
Functions to work with ical parameter objects, which represent parameters to property objects.
| char * icalparameter_as_ical_string | ( | icalparameter * | parameter | ) |
Converts icalparameter into a string representation.
| parameter | The icalparameter to convert |
NULL. Furthermore, if parameter is NULL, it also sets icalerrno to ICAL_BADARG_ERROR. If it doesn't recognize the kind of the parameter, it sets icalerrno it ICAL_BADARG_ERROR. If the parameter is otherwise malformed, it sets icalerrno to ICAL_MALFORMEDDATA_ERROR.| char * icalparameter_as_ical_string_r | ( | icalparameter * | parameter | ) |
Converts icalparameter into an string representation according to RFC5445/RFC6868.
| parameter | The icalparameter to convert |
NULL. Furthermore, if parameter is NULL, it also sets icalerrno to ICAL_BADARG_ERROR. If it doesn't recognize the kind of the parameter, it sets icalerrno to ICAL_BADARG_ERROR. If the parameter is otherwise malformed, it sets icalerrno to ICAL_MALFORMEDDATA_ERROR.free()d after use. A version of this function which returns strings that do not need to be freed manually is icalparameter_as_ical_string().| void icalparameter_free | ( | icalparameter * | parameter | ) |
Frees an icalparameter object.
| parameter | The icalparameter to free |
This method needs to be used on all parameter objects returned from any of the _new() methods including icalparameter_new(), icalparameter_new_clone(), icalparameter_new_from_string() and icalparameter_new_from_value_string(), when they are not needed anymore and to be released.
| const char * icalparameter_get_iana_name | ( | icalparameter * | param | ) |
Returns the IANA name of param.
| param | The icalparameter whose IANA name is to be returned |
NULL and sets icalerrno to ICAL_BADARG_ERROR when a NULL is passed instead of an icalparameter.| const char * icalparameter_get_iana_value | ( | icalparameter * | param | ) |
Returns the IANA value of param.
| param | The icalparameter whose value is to be returned |
NULL and sets icalerrno to ICAL_BADARG_ERROR when a NULL is passed instead of an icalparameter.| const char * icalparameter_get_xname | ( | icalparameter * | param | ) |
Returns the X-name of param.
| param | The icalparameter whose X-name is to be returned |
NULL and sets icalerrno to ICAL_BADARG_ERROR when a NULL is passed instead of an icalparameter.| const char * icalparameter_get_xvalue | ( | icalparameter * | param | ) |
Returns the X-value of param.
| param | The icalparameter whose X-value is to be returned |
NULL and sets icalerrno to ICAL_BADARG_ERROR when a NULL is passed instead of an icalparameter.| int icalparameter_has_same_name | ( | icalparameter * | param1, |
| icalparameter * | param2 ) |
Determines if two parameters have the same name.
| param1 | First parameter to compare |
| param2 | Second parameter to compare |
NULL, it returns 0 and sets icalerrno to ICAL_BADARG_ERROR.| icalparameter_kind icalparameter_isa | ( | icalparameter * | parameter | ) |
Returns the icalparameter_kind of parameter.
| parameter | The icalparameter whose kind to determine |
Error handling Returns ICAL_NO_PARAMETER when passed NULL.
Usage
| int icalparameter_isa_parameter | ( | void * | param | ) |
Determines if the given param is an icalparameter
| param | The libical-originated object to check |
Error handling When given a NULL object, it returns 0.
Usage
| int icalparameter_kind_is_valid | ( | const icalparameter_kind | kind | ) |
Checks the validity of a icalparameter_kind.
| kind | The icalparameter_kind |
| const char * icalparameter_kind_to_string | ( | icalparameter_kind | kind | ) |
Returns a string representing the given icalparameter_kind.
| kind | The icalparameter_kind |
NULL.| icalparameter * icalparameter_new | ( | icalparameter_kind | kind | ) |
Creates new icalparameter object.
| kind | The kind of icalparameter to create. |
NULL and sets icalerrno to ICAL_NEWFAILED_ERROR.| icalparameter * icalparameter_new_clone | ( | icalparameter * | p | ) |
Creates new icalparameter as a clone of the given one.
| p | The existing, non-NULL parameter to clone. |
NULL, it returns NULL and sets icalerrno to ICAL_BADARG_ERROR. If there was an internal error cloning the data, it returns NULL without reporting any error in icalerrno.| icalparameter * icalparameter_new_from_string | ( | const char * | value | ) |
Creates new icalparameter object from string.
| value | The string from which to create the icalparameter, in the form "PARAMNAME=VALUE" |
NULL and sets icalerrno to ICAL_NEWFAILED_ERROR. If value was NULL, it returns NULL and sets icalerrno to ICAL_BADARG_ERROR. If value was malformed, it returns NULL and sets icalerrno to ICAL_MALFORMEDDATA_ERROR.| icalparameter * icalparameter_new_from_value_string | ( | icalparameter_kind | kind, |
| const char * | value ) |
Creates new icalparameter of a given kind with a given value.
| kind | The kind of icalparameter to create |
| value | The value of the parameter |
NULL, it returns NULL and sets icalerrno to ICAL_BADARG_ERROR.| void icalparameter_set_iana_name | ( | icalparameter * | param, |
| const char * | v ) |
Sets the IANA name of param to v.
| param | The icalparameter to change |
| v | The IANA name to set param to |
NULL, it sets :calerrno to ICAL_BARARG_ERROR. If there is an error acquiring memory, it sets errno to ENOMEM.| void icalparameter_set_iana_value | ( | icalparameter * | param, |
| const char * | v ) |
Sets the IANA value of param to v.
| param | The icalparameter to change |
| v | The IANA value to set param to |
NULL, it sets icalerrno to ICAL_BARARG_ERROR. If there is an error acquiring memory, it sets errno to ENOMEM.| void icalparameter_set_xname | ( | icalparameter * | param, |
| const char * | v ) |
Sets the X-name of param to v.
| param | The icalparameter to change |
| v | The X-name to set param to |
NULL, it sets icalerrno to ICAL_BARARG_ERROR. If there is an error acquiring memory, it sets errno to ENOMEM.| void icalparameter_set_xvalue | ( | icalparameter * | param, |
| const char * | v ) |
Sets the X-value of param to v.
| param | The icalparameter to change |
| v | The X-value to set param to |
NULL, it sets icalerrno to ICAL_BARARG_ERROR. If there is an error acquiring memory, it sets errno to ENOMEM.| icalparameter_kind icalparameter_string_to_kind | ( | const char * | string | ) |
Returns the icalparameter_kind for a given string.
| string | A string describing an icalparameter_kind |
NULL. If it can't find the parameter, depending on the ical_get_unknown_token_handling_setting(), it returns either ICAL_NO_PARAMETER or ICAL_IANA_PARAMETER.