$darkmode
Libical API Documentation
4.0 STABLE VERSION
Visit the v3.0 documentation
Main Page
Related Pages
Data Structures
Files
File List
Globals
src
libical
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
SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0
7
8
Contributions from:
9
Graham Davison (g.m.davison@computer.org)
10
======================================================================*/
11
12
#ifndef ICALRESTRICTION_H
13
#define ICALRESTRICTION_H
14
21
#include "libical_ical_export.h"
22
#include "
icalcomponent.h
"
23
#include "
icalproperty.h
"
24
30
typedef
enum
icalrestriction_kind
31
{
33
ICAL_RESTRICTION_NONE
= 0,
/* 0 */
34
36
ICAL_RESTRICTION_ZERO
,
/* 1 */
37
39
ICAL_RESTRICTION_ONE
,
/* 2 */
40
42
ICAL_RESTRICTION_ZEROPLUS
,
/* 3 */
43
45
ICAL_RESTRICTION_ONEPLUS
,
/* 4 */
46
48
ICAL_RESTRICTION_ZEROORONE
,
/* 5 */
49
51
ICAL_RESTRICTION_ONEEXCLUSIVE
,
/* 6 */
52
54
ICAL_RESTRICTION_ONEMUTUAL
,
/* 7 */
55
57
ICAL_RESTRICTION_UNKNOWN
/* 8 */
58
}
icalrestriction_kind
;
59
73
LIBICAL_ICAL_EXPORT
bool
icalrestriction_compare
(
icalrestriction_kind
restr,
int
count);
74
93
LIBICAL_ICAL_EXPORT
bool
icalrestriction_check
(icalcomponent *comp);
94
95
#endif
/* !ICALRESTRICTION_H */
ICAL_RESTRICTION_NONE
Definition:
icalrestriction.h:33
icalrestriction_compare
bool icalrestriction_compare(icalrestriction_kind restr, int count)
Checks if the given count is in accordance with the given restriction, restr.
icalproperty.h
Defines the data structure representing iCalendar properties.
ICAL_RESTRICTION_ONEEXCLUSIVE
Definition:
icalrestriction.h:51
icalcomponent.h
Defines the data structure for iCalendar components.
ICAL_RESTRICTION_ZERO
Definition:
icalrestriction.h:36
ICAL_RESTRICTION_ONEPLUS
Definition:
icalrestriction.h:45
ICAL_RESTRICTION_ZEROORONE
Definition:
icalrestriction.h:48
ICAL_RESTRICTION_ONE
Definition:
icalrestriction.h:39
ICAL_RESTRICTION_ZEROPLUS
Definition:
icalrestriction.h:42
icalrestriction_kind
icalrestriction_kind
The kinds of icalrestrictions there are.
Definition:
icalrestriction.h:30
icalrestriction_check
bool icalrestriction_check(icalcomponent *comp)
Checks if a given VCALENDAR meets all the restrictions imposed by the standard.
ICAL_RESTRICTION_ONEMUTUAL
Definition:
icalrestriction.h:54
ICAL_RESTRICTION_UNKNOWN
Definition:
icalrestriction.h:57
Generated by
1.8.10