summaryrefslogtreecommitdiffabout
path: root/libical/src/libical/icalrestriction.h
Unidiff
Diffstat (limited to 'libical/src/libical/icalrestriction.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libical/src/libical/icalrestriction.h63
1 files changed, 63 insertions, 0 deletions
diff --git a/libical/src/libical/icalrestriction.h b/libical/src/libical/icalrestriction.h
new file mode 100644
index 0000000..409334c
--- a/dev/null
+++ b/libical/src/libical/icalrestriction.h
@@ -0,0 +1,63 @@
1/* -*- Mode: C -*- */
2/*======================================================================
3 FILE: icalrestriction.h
4 CREATOR: eric 24 April 1999
5
6 $Id$
7
8
9 (C) COPYRIGHT 2000, Eric Busboom, http://www.softwarestudio.org
10
11 This program is free software; you can redistribute it and/or modify
12 it under the terms of either:
13
14 The LGPL as published by the Free Software Foundation, version
15 2.1, available at: http://www.fsf.org/copyleft/lesser.html
16
17 Or:
18
19 The Mozilla Public License Version 1.0. You may obtain a copy of
20 the License at http://www.mozilla.org/MPL/
21
22 The original code is icalrestriction.h
23
24 Contributions from:
25 Graham Davison (g.m.davison@computer.org)
26
27
28======================================================================*/
29
30#include "icalproperty.h"
31#include "icalcomponent.h"
32
33#ifndef ICALRESTRICTION_H
34#define ICALRESTRICTION_H
35
36/* These must stay in this order for icalrestriction_compare to work */
37typedef enum icalrestriction_kind {
38 ICAL_RESTRICTION_NONE=0, /* 0 */
39 ICAL_RESTRICTION_ZERO, /* 1 */
40 ICAL_RESTRICTION_ONE, /* 2 */
41 ICAL_RESTRICTION_ZEROPLUS, /* 3 */
42 ICAL_RESTRICTION_ONEPLUS, /* 4 */
43 ICAL_RESTRICTION_ZEROORONE, /* 5 */
44 ICAL_RESTRICTION_ONEEXCLUSIVE,/* 6 */
45 ICAL_RESTRICTION_ONEMUTUAL, /* 7 */
46 ICAL_RESTRICTION_UNKNOWN /* 8 */
47} icalrestriction_kind;
48
49int
50icalrestriction_compare(icalrestriction_kind restr, int count);
51
52
53int
54icalrestriction_is_parameter_allowed(icalproperty_kind property,
55 icalparameter_kind parameter);
56
57int icalrestriction_check(icalcomponent* comp);
58
59
60#endif /* !ICALRESTRICTION_H */
61
62
63