$darkmode
Libical API Documentation 4.0 STABLE VERSION Visit the v3.0 documentation
icallimits.h File Reference

Defines the interface for getting/setting internal library limits. More...

Go to the source code of this file.

Enumerations

enum  icallimits_kind {
  ICAL_LIMIT_PARSE_FAILURES, ICAL_LIMIT_PARSE_SEARCH, ICAL_LIMIT_PARSE_FAILURE_ERROR_MESSAGES, ICAL_LIMIT_PROPERTIES,
  ICAL_LIMIT_PARAMETERS, ICAL_LIMIT_VALUE_CHARS, ICAL_LIMIT_PROPERTY_VALUES, ICAL_LIMIT_RECURRENCE_SEARCH,
  ICAL_LIMIT_RECURRENCE_TIME_STANDING_STILL, ICAL_LIMIT_RRULE_SEARCH
}
 

Functions

size_t icallimit_get (icallimits_kind kind)
 
void icallimit_set (icallimits_kind kind, size_t limit)
 

Detailed Description

Defines the interface for getting/setting internal library limits.

Definition in file icallimits.h.

Enumeration Type Documentation

The types of limits

Enumerator
ICAL_LIMIT_PARSE_FAILURES 

Maximum number of parse failures allowed in a calendar file before processing halts

ICAL_LIMIT_PARSE_SEARCH 

Maximum number of parse characters to search in a calendar component for the next parameter or property

ICAL_LIMIT_PARSE_FAILURE_ERROR_MESSAGES 

Maximum number of parse failure messages inserted into the output (by insert_error())

ICAL_LIMIT_PROPERTIES 

Maximum number of properties allowed in a calendar component

ICAL_LIMIT_PARAMETERS 

Maximum number of parameters allowed for a property

ICAL_LIMIT_VALUE_CHARS 

Maximum number of characters for a value

ICAL_LIMIT_PROPERTY_VALUES 

Maximum number of values allowed for multi-valued properties

ICAL_LIMIT_RECURRENCE_SEARCH 

Maximum number of times to search for the next recurrence before giving up

ICAL_LIMIT_RECURRENCE_TIME_STANDING_STILL 

Maximum number of times to search for the next recurrence before time is considered standing still

ICAL_LIMIT_RRULE_SEARCH 

Maximum number of times to search vtimezone rrules for an occurrence before the specified end year

Definition at line 21 of file icallimits.h.

Function Documentation

size_t icallimit_get ( icallimits_kind  kind)

Gets the value for the corresponding internal library limit.

Parameters
kindis the icallimits_kind of limit to get.
Returns
The current value of the specified kind"

Definition at line 29 of file icallimits.c.

void icallimit_set ( icallimits_kind  kind,
size_t  limit 
)

Sets the value for the corresponding internal library limit.

Parameters
kindis the icallimits_kind of limit to set.
limitis the limit value. Use SIZE_MAX (i.e. maximum value of size_t) to set an unlimited value.

Definition at line 58 of file icallimits.c.