Diffstat (limited to 'libical/src/libical/icalvalue.h') (more/less context) (show whitespace changes)
-rw-r--r-- | libical/src/libical/icalvalue.h | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/libical/src/libical/icalvalue.h b/libical/src/libical/icalvalue.h index 6983c23..851e723 100644 --- a/libical/src/libical/icalvalue.h +++ b/libical/src/libical/icalvalue.h | |||
@@ -4,14 +4,12 @@ | |||
4 | CREATOR: eric 20 March 1999 | 4 | CREATOR: eric 20 March 1999 |
5 | 5 | ||
6 | 6 | ||
7 | $Id$ | 7 | $Id$ |
8 | $Locker$ | 8 | $Locker$ |
9 | 9 | ||
10 | |||
11 | |||
12 | (C) COPYRIGHT 2000, Eric Busboom, http://www.softwarestudio.org | 10 | (C) COPYRIGHT 2000, Eric Busboom, http://www.softwarestudio.org |
13 | 11 | ||
14 | This program is free software; you can redistribute it and/or modify | 12 | This program is free software; you can redistribute it and/or modify |
15 | it under the terms of either: | 13 | it under the terms of either: |
16 | 14 | ||
17 | The LGPL as published by the Free Software Foundation, version | 15 | The LGPL as published by the Free Software Foundation, version |
@@ -37,49 +35,54 @@ | |||
37 | #include "icalperiod.h" | 35 | #include "icalperiod.h" |
38 | #include "icalderivedproperty.h" /* For icalproperty_method, etc. */ | 36 | #include "icalderivedproperty.h" /* For icalproperty_method, etc. */ |
39 | #include "icalderivedparameter.h" | 37 | #include "icalderivedparameter.h" |
40 | #include "icalderivedvalue.h" | 38 | #include "icalderivedvalue.h" |
41 | 39 | ||
42 | /* Defined in icalderivedvalue.h */ | 40 | /* Defined in icalderivedvalue.h */ |
43 | /*typedef void icalvalue;*/ | 41 | /*typedef struct icalvalue_impl icalvalue;*/ |
44 | 42 | ||
45 | icalvalue* icalvalue_new(icalvalue_kind kind); | 43 | icalvalue* icalvalue_new(icalvalue_kind kind); |
46 | 44 | ||
47 | icalvalue* icalvalue_new_clone(icalvalue* value); | 45 | icalvalue* icalvalue_new_clone(const icalvalue* value); |
48 | 46 | ||
49 | icalvalue* icalvalue_new_from_string(icalvalue_kind kind, const char* str); | 47 | icalvalue* icalvalue_new_from_string(icalvalue_kind kind, const char* str); |
50 | 48 | ||
51 | void icalvalue_free(icalvalue* value); | 49 | void icalvalue_free(icalvalue* value); |
52 | 50 | ||
53 | int icalvalue_is_valid(icalvalue* value); | 51 | int icalvalue_is_valid(const icalvalue* value); |
54 | 52 | ||
55 | const char* icalvalue_as_ical_string(icalvalue* value); | 53 | const char* icalvalue_as_ical_string(const icalvalue* value); |
56 | 54 | ||
57 | icalvalue_kind icalvalue_isa(icalvalue* value); | 55 | icalvalue_kind icalvalue_isa(const icalvalue* value); |
58 | 56 | ||
59 | int icalvalue_isa_value(void*); | 57 | int icalvalue_isa_value(void*); |
60 | 58 | ||
61 | icalparameter_xliccomparetype icalvalue_compare(icalvalue* a, icalvalue *b); | 59 | icalparameter_xliccomparetype icalvalue_compare(const icalvalue* a, const icalvalue *b); |
62 | 60 | ||
63 | 61 | ||
64 | /* Special, non autogenerated value accessors */ | 62 | /* Special, non autogenerated value accessors */ |
65 | 63 | ||
66 | icalvalue* icalvalue_new_recur (struct icalrecurrencetype v); | 64 | icalvalue* icalvalue_new_recur (struct icalrecurrencetype v); |
67 | void icalvalue_set_recur(icalvalue* value, struct icalrecurrencetype v); | 65 | void icalvalue_set_recur(icalvalue* value, struct icalrecurrencetype v); |
68 | struct icalrecurrencetype icalvalue_get_recur(icalvalue* value); | 66 | struct icalrecurrencetype icalvalue_get_recur(const icalvalue* value); |
69 | 67 | ||
70 | icalvalue* icalvalue_new_trigger (struct icaltriggertype v); | 68 | icalvalue* icalvalue_new_trigger (struct icaltriggertype v); |
71 | void icalvalue_set_trigger(icalvalue* value, struct icaltriggertype v); | 69 | void icalvalue_set_trigger(icalvalue* value, struct icaltriggertype v); |
72 | struct icaltriggertype icalvalue_get_trigger(icalvalue* value); | 70 | struct icaltriggertype icalvalue_get_trigger(const icalvalue* value); |
73 | 71 | ||
74 | icalvalue* icalvalue_new_datetimeperiod (struct icaldatetimeperiodtype v); | 72 | icalvalue* icalvalue_new_datetimeperiod (struct icaldatetimeperiodtype v); |
75 | void icalvalue_set_datetimeperiod(icalvalue* value, | 73 | void icalvalue_set_datetimeperiod(icalvalue* value, |
76 | struct icaldatetimeperiodtype v); | 74 | struct icaldatetimeperiodtype v); |
77 | struct icaldatetimeperiodtype icalvalue_get_datetimeperiod(icalvalue* value); | 75 | struct icaldatetimeperiodtype icalvalue_get_datetimeperiod(const icalvalue* value); |
78 | 76 | ||
79 | /* Convert enumerations */ | 77 | /* Convert enumerations */ |
80 | 78 | ||
81 | icalvalue_kind icalvalue_string_to_kind(const char* str); | 79 | icalvalue_kind icalvalue_string_to_kind(const char* str); |
82 | const char* icalvalue_kind_to_string(icalvalue_kind kind); | 80 | const char* icalvalue_kind_to_string(const icalvalue_kind kind); |
81 | |||
82 | /** Check validity of a specific icalvalue_kind **/ | ||
83 | int icalvalue_kind_is_valid(const icalvalue_kind kind); | ||
83 | 84 | ||
85 | /** Encode a character string in ical format, esacpe certain characters, etc. */ | ||
86 | int icalvalue_encode_ical_string(const char *szText, char *szEncText, int MaxBufferLen); | ||
84 | 87 | ||
85 | #endif /*ICALVALUE_H*/ | 88 | #endif /*ICALVALUE_H*/ |