Libical API Documentation 4.0
Loading...
Searching...
No Matches
icalrestriction.h
Go to the documentation of this file.
1/*======================================================================
2 FILE: icalrestriction.h
3 CREATOR: eric 24 April 1999
4
5 SPDX-FileCopyrightText: 2000, Eric Busboom <eric@civicknowledge.com>
6
7 SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0
8
9 The original code is icalrestriction.h
10
11 Contributions from:
12 Graham Davison (g.m.davison@computer.org)
13======================================================================*/
14
15#ifndef ICALRESTRICTION_H
16#define ICALRESTRICTION_H
17
23
24#include "libical_ical_export.h"
25#include "icalcomponent.h"
26#include "icalproperty.h"
27
62
76LIBICAL_ICAL_EXPORT int icalrestriction_compare(icalrestriction_kind restr, int count);
77
96LIBICAL_ICAL_EXPORT int icalrestriction_check(icalcomponent *comp);
97
98#endif /* !ICALRESTRICTION_H */
int icalrestriction_check(icalcomponent *comp)
Checks if a given VCALENDAR meets all the restrictions imposed by the standard.
icalrestriction_kind
The kinds of icalrestrictions there are.
Definition icalrestriction.h:34
@ ICAL_RESTRICTION_ZEROPLUS
Definition icalrestriction.h:45
@ ICAL_RESTRICTION_UNKNOWN
Definition icalrestriction.h:60
@ ICAL_RESTRICTION_ONE
Definition icalrestriction.h:42
@ ICAL_RESTRICTION_ONEEXCLUSIVE
Definition icalrestriction.h:54
@ ICAL_RESTRICTION_ONEPLUS
Definition icalrestriction.h:48
@ ICAL_RESTRICTION_NONE
Definition icalrestriction.h:36
@ ICAL_RESTRICTION_ZEROORONE
Definition icalrestriction.h:51
@ ICAL_RESTRICTION_ONEMUTUAL
Definition icalrestriction.h:57
@ ICAL_RESTRICTION_ZERO
Definition icalrestriction.h:39
int icalrestriction_compare(icalrestriction_kind restr, int count)
Checks if the given count is in accordance with the given restriction, restr.