22 #include "icalerror_p.h"
103 size_t buf_size = 40;
Common memory management routines.
char * icalmemory_strdup(const char *s)
Creates a duplicate of a string.
void icalmemory_free_buffer(void *buf)
Releases a buffer.
icalerrorstate
Determine if an error is fatal or non-fatal.
struct icaldurationtype duration
void icalerror_set_errno(icalerrorenum x)
Sets the icalerrno to a given error.
icalerrorenum
Represents the different types of errors that can be triggered in libical.
icalerrorstate icalerror_get_error_state(icalerrorenum error)
Gets the error state (severity) for a given error.
bool icalperiodtype_is_null_period(struct icalperiodtype p)
void icalmemory_append_char(char **buf, char **pos, size_t *buf_size, char ch)
Appends a character to a buffer.
bool icaldurationtype_is_null_duration(struct icaldurationtype d)
Checks if a duration is a null duration.
const char * icalperiodtype_as_ical_string(struct icalperiodtype p)
Converts an icalperiodtype into an iCal-formatted string.
struct icaltimetype icaltime_null_time(void)
char * icaldurationtype_as_ical_string_r(struct icaldurationtype d)
bool icalperiodtype_is_valid_period(struct icalperiodtype p)
bool icaltime_is_valid_time(const struct icaltimetype t)
void * icalmemory_new_buffer(size_t size)
Creates new buffer with the specified size.
void icalmemory_append_string(char **buf, char **pos, size_t *buf_size, const char *string)
Appends a string to a buffer.
struct icaltimetype icaltime_from_string(const char *str)
struct icaltimetype start
char * icalperiodtype_as_ical_string_r(struct icalperiodtype p)
Converts an icalperiodtype into an iCal-formatted string.
struct icaldurationtype icaldurationtype_null_duration(void)
Creates a duration with zero length.
Defines data structures for working with iCal periods (of time).
struct icalperiodtype icalperiodtype_null_period(void)
struct icalperiodtype icalperiodtype_from_string(const char *str)
Constructs a new icalperiodtype from str.
#define icalerrno
Access the current icalerrno value.
void icalerror_set_error_state(icalerrorenum error, icalerrorstate state)
Sets the icalerrorstate for a given icalerrorenum error.
bool icaltime_is_null_time(const struct icaltimetype t)
struct icaldurationtype icaldurationtype_from_string(const char *str)
Creates a new icaldurationtype from a duration given as a string.
void icalmemory_add_tmp_buffer(void *buf)
Adds an externally allocated buffer to the ring.
char * icaltime_as_ical_string_r(const struct icaltimetype tt)