summaryrefslogtreecommitdiffabout
path: root/libical/src/libical/icaltypes.h
Unidiff
Diffstat (limited to 'libical/src/libical/icaltypes.h') (more/less context) (show whitespace changes)
-rw-r--r--libical/src/libical/icaltypes.h35
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... */
35struct 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
52struct icalattachtype* icalattachtype_new(void);
53void icalattachtype_add_reference(struct icalattachtype* v);
54void icalattachtype_free(struct icalattachtype* v);
55
56void icalattachtype_set_url(struct icalattachtype* v, char* url);
57char* icalattachtype_get_url(struct icalattachtype* v);
58
59void icalattachtype_set_base64(struct icalattachtype* v, char* base64,
60 int owns);
61char* icalattachtype_get_base64(struct icalattachtype* v);
62
63void icalattachtype_set_binary(struct icalattachtype* v, char* binary,
64 int owns);
65void* icalattachtype_get_binary(struct icalattachtype* v);
66
67struct icalgeotype 34struct icalgeotype
68{ 35{
69 float lat; 36 float lat;
70 float lon; 37 float lon;
71}; 38};
72 39
73 40
74struct icaldatetimeperiodtype 41struct icaldatetimeperiodtype
@@ -79,19 +46,21 @@ struct icaldatetimeperiodtype
79 46
80 47
81struct icaltriggertype 48struct icaltriggertype
82{ 49{
83 struct icaltimetype time; 50 struct icaltimetype time;
84 struct icaldurationtype duration; 51 struct icaldurationtype duration;
85}; 52};
86 53
54struct icaltriggertype icaltriggertype_from_int(const int reltime);
87struct icaltriggertype icaltriggertype_from_string(const char* str); 55struct icaltriggertype icaltriggertype_from_string(const char* str);
88 56
89int icaltriggertype_is_null_trigger(struct icaltriggertype tr); 57int icaltriggertype_is_null_trigger(struct icaltriggertype tr);
58int 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,
92but don't try to free either of them. The "desc" string is a pointer 61but don't try to free either of them. The "desc" string is a pointer
93to a static table inside the library. Don't try to free it. The 62to 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
95into to icalreqstattype_from_string. Don't try to free it either, and 64into to icalreqstattype_from_string. Don't try to free it either, and
96don't use it after the original string has been freed. 65don't use it after the original string has been freed.
97 66