|
Libical API Documentation 4.0 UNRELEASED Go to the stable 3.0 documentation
|
Define internal types and provide functions to manipulate them. More...
Go to the source code of this file.
Data Structures | |
| struct | icaldatetimeperiodtype |
| struct | icalgeotype |
| struct | icalreqstattype |
| struct | icaltriggertype |
Macros | |
| #define | ICAL_GEO_LEN 16 |
Enumerations | |
| enum | ical_unknown_token_handling { ICAL_ASSUME_IANA_TOKEN = 1 , ICAL_DISCARD_TOKEN = 2 , ICAL_TREAT_AS_ERROR = 3 } |
Functions | |
| ical_unknown_token_handling | ical_get_unknown_token_handling_setting (void) |
| void | ical_set_unknown_token_handling_setting (ical_unknown_token_handling newSetting) |
| const char * | icalreqstattype_as_string (struct icalreqstattype) |
| char * | icalreqstattype_as_string_r (struct icalreqstattype stat) |
| struct icalreqstattype | icalreqstattype_from_string (const char *str) |
| struct icaltriggertype | icaltriggertype_from_seconds (const int reltime) |
| struct icaltriggertype | icaltriggertype_from_string (const char *str) |
| bool | icaltriggertype_is_bad_trigger (struct icaltriggertype tr) |
| bool | icaltriggertype_is_null_trigger (struct icaltriggertype tr) |
Define internal types and provide functions to manipulate them.
Definition in file icaltypes.h.
| #define ICAL_GEO_LEN 16 |
maximum number of chars in the lat/long string encoding
Definition at line 35 of file icaltypes.h.
How the library should handle unknown parameters.
Definition at line 154 of file icaltypes.h.
| ical_unknown_token_handling ical_get_unknown_token_handling_setting | ( | void | ) |
Gets how the library handles unknown tokens.
The default library setting is ICAL_TREAT_AS_ERROR.
Definition at line 188 of file icaltypes.c.
| void ical_set_unknown_token_handling_setting | ( | ical_unknown_token_handling | newSetting | ) |
Sets how the library handles unknown tokens.
| newSetting | is the ical_unknown_token_handling to use |
Definition at line 205 of file icaltypes.c.
| const char * icalreqstattype_as_string | ( | struct icalreqstattype | stat | ) |
Represent the specified icalreqstattype as a string.
| stat | the icalreqstattype to use |
st at. NULL is returned only in case of a memory allocation failure.Definition at line 156 of file icaltypes.c.
| char * icalreqstattype_as_string_r | ( | struct icalreqstattype | stat | ) |
Represent the specified icalreqstattype as a string.
| stat | the icalreqstattype to use |
stat. NULL is returned only in case of a memory allocation failure.Definition at line 165 of file icaltypes.c.
| struct icalreqstattype icalreqstattype_from_string | ( | const char * | str | ) |
Create an icalreqstattype from a character string.
| str | a pointer to a char string containing the string representation of an icalreqstattype |
str. An unknown icalreqstattype (stat.code is ICAL_UNKNOWN_STATUS) is returned if str is invalid. Definition at line 99 of file icaltypes.c.
| struct icaltriggertype icaltriggertype_from_seconds | ( | const int | reltime | ) |
Construct an icaltriggertype from number of seconds.
The resulting icaltriggertype will a have a corresponding duration setting and a null time setting.
| reltime | the number of seconds to use, may be negative or positive. |
reltime. Definition at line 51 of file icaltypes.c.
| struct icaltriggertype icaltriggertype_from_string | ( | const char * | str | ) |
Construct an icaltriggertype from a char string representation.
| str | a pointer to a char string containing a string representation of an icaltriggertype |
str. If the string representation is invalid, a null icaltriggertype is returned and the library internal error is set to :ICAL_MALFORMEDDATA_ERROR. Definition at line 61 of file icaltypes.c.
| bool icaltriggertype_is_bad_trigger | ( | struct icaltriggertype | tr | ) |
Determine if the specified icaltriggertype is valid.
| tr | is the icaltriggertype to use |
tr is valid; false otherwise. Definition at line 42 of file icaltypes.c.
| bool icaltriggertype_is_null_trigger | ( | struct icaltriggertype | tr | ) |
Determine if the specified icaltriggertype is null.
A null icaltriggertype has null icaltime or a null icalduration.
| tr | is the icaltriggertype to use |
tr is null; false otherwise. Definition at line 33 of file icaltypes.c.