Diffstat (limited to 'libical/src/libical/icaltypes.h') (more/less context) (show whitespace changes)
-rw-r--r-- | libical/src/libical/icaltypes.h | 35 |
1 files changed, 2 insertions, 33 deletions
diff --git a/libical/src/libical/icaltypes.h b/libical/src/libical/icaltypes.h index d61b9f3..1e5c5e0 100644 --- a/libical/src/libical/icaltypes.h +++ b/libical/src/libical/icaltypes.h | |||
@@ -26,49 +26,16 @@ | |||
26 | 26 | ||
27 | #include <time.h> | 27 | #include <time.h> |
28 | #include "icalenums.h" | 28 | #include "icalenums.h" |
29 | #include "icaltime.h" | 29 | #include "icaltime.h" |
30 | #include "icalduration.h" | 30 | #include "icalduration.h" |
31 | #include "icalperiod.h" | 31 | #include "icalperiod.h" |
32 | 32 | ||
33 | 33 | ||
34 | /* This type type should probably be an opaque type... */ | ||
35 | struct icalattachtype | ||
36 | { | ||
37 | void* binary; | ||
38 | int owns_binary; | ||
39 | |||
40 | char* base64; | ||
41 | int owns_base64; | ||
42 | |||
43 | char* url; | ||
44 | |||
45 | int refcount; | ||
46 | |||
47 | }; | ||
48 | |||
49 | /* converts base64 to binary, fetches url and stores as binary, or | ||
50 | just returns data */ | ||
51 | |||
52 | struct icalattachtype* icalattachtype_new(void); | ||
53 | void icalattachtype_add_reference(struct icalattachtype* v); | ||
54 | void icalattachtype_free(struct icalattachtype* v); | ||
55 | |||
56 | void icalattachtype_set_url(struct icalattachtype* v, char* url); | ||
57 | char* icalattachtype_get_url(struct icalattachtype* v); | ||
58 | |||
59 | void icalattachtype_set_base64(struct icalattachtype* v, char* base64, | ||
60 | int owns); | ||
61 | char* icalattachtype_get_base64(struct icalattachtype* v); | ||
62 | |||
63 | void icalattachtype_set_binary(struct icalattachtype* v, char* binary, | ||
64 | int owns); | ||
65 | void* icalattachtype_get_binary(struct icalattachtype* v); | ||
66 | |||
67 | struct icalgeotype | 34 | struct icalgeotype |
68 | { | 35 | { |
69 | float lat; | 36 | float lat; |
70 | float lon; | 37 | float lon; |
71 | }; | 38 | }; |
72 | 39 | ||
73 | 40 | ||
74 | struct icaldatetimeperiodtype | 41 | struct icaldatetimeperiodtype |
@@ -79,19 +46,21 @@ struct icaldatetimeperiodtype | |||
79 | 46 | ||
80 | 47 | ||
81 | struct icaltriggertype | 48 | struct icaltriggertype |
82 | { | 49 | { |
83 | struct icaltimetype time; | 50 | struct icaltimetype time; |
84 | struct icaldurationtype duration; | 51 | struct icaldurationtype duration; |
85 | }; | 52 | }; |
86 | 53 | ||
54 | struct icaltriggertype icaltriggertype_from_int(const int reltime); | ||
87 | struct icaltriggertype icaltriggertype_from_string(const char* str); | 55 | struct icaltriggertype icaltriggertype_from_string(const char* str); |
88 | 56 | ||
89 | int icaltriggertype_is_null_trigger(struct icaltriggertype tr); | 57 | int icaltriggertype_is_null_trigger(struct icaltriggertype tr); |
58 | int icaltriggertype_is_bad_trigger(struct icaltriggertype tr); | ||
90 | 59 | ||
91 | /* struct icalreqstattype. This struct contains two string pointers, | 60 | /* struct icalreqstattype. This struct contains two string pointers, |
92 | but don't try to free either of them. The "desc" string is a pointer | 61 | but don't try to free either of them. The "desc" string is a pointer |
93 | to a static table inside the library. Don't try to free it. The | 62 | to a static table inside the library. Don't try to free it. The |
94 | "debug" string is a pointer into the string that the called passed | 63 | "debug" string is a pointer into the string that the called passed |
95 | into to icalreqstattype_from_string. Don't try to free it either, and | 64 | into to icalreqstattype_from_string. Don't try to free it either, and |
96 | don't use it after the original string has been freed. | 65 | don't use it after the original string has been freed. |
97 | 66 | ||