1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
/* -*- Mode: C -*- */
/*======================================================================
FILE: icalrestriction.h
CREATOR: eric 24 April 1999
$Id$
(C) COPYRIGHT 1999 Eric Busboom
http://www.softwarestudio.org
The contents of this file are subject to the Mozilla Public License
Version 1.0 (the "License"); you may not use this file except in
compliance with the License. You may obtain a copy of the License at
http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS IS"
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
the License for the specific language governing rights and
limitations under the License.
The original author is Eric Busboom
The original code is icalrestriction.h
Contributions from:
Graham Davison (g.m.davison@computer.org)
======================================================================*/
#include "ical.h"
#ifndef ICALRESTRICTION_H
#define ICALRESTRICTION_H
/* These must stay in this order for icalrestriction_compare to work */
typedef enum icalrestriction_kind {
ICAL_RESTRICTION_NONE=0, /* 0 */
ICAL_RESTRICTION_ZERO, /* 1 */
ICAL_RESTRICTION_ONE, /* 2 */
ICAL_RESTRICTION_ZEROPLUS, /* 3 */
ICAL_RESTRICTION_ONEPLUS, /* 4 */
ICAL_RESTRICTION_ZEROORONE, /* 5 */
ICAL_RESTRICTION_ONEEXCLUSIVE, /* 6 */
ICAL_RESTRICTION_ONEMUTUAL, /* 7 */
ICAL_RESTRICTION_UNKNOWN /* 8 */
} icalrestriction_kind;
int
icalrestriction_compare(icalrestriction_kind restr, int count);
icalrestriction_kind
icalrestriction_get_property_restriction(icalproperty_method method,
icalcomponent_kind component,
icalproperty_kind property);
icalrestriction_kind
icalrestriction_get_component_restriction(icalproperty_method method,
icalcomponent_kind component,
icalcomponent_kind subcomponent);
int
icalrestriction_is_parameter_allowed(icalproperty_kind property,
icalparameter_kind parameter);
int icalrestriction_check(icalcomponent* comp);
#endif /* !ICALRESTRICTION_H */
|