diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-01-17 18:49:57 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-01-17 18:49:57 +0100 |
commit | 068c19291e78ac62b2cdd02a0c7753eb8254e2c2 (patch) | |
tree | d83bfd61ac862ad7b32695861a6cdbed05712dc5 /vcal.h | |
parent | Further work. (diff) | |
download | calp-068c19291e78ac62b2cdd02a0c7753eb8254e2c2.tar.gz calp-068c19291e78ac62b2cdd02a0c7753eb8254e2c2.tar.xz |
Works reasonably well for single calendar files.
Diffstat (limited to 'vcal.h')
-rw-r--r-- | vcal.h | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -5,6 +5,11 @@ #include "strbuf.h" + +/* + * It's intentionall that there is no vevent_init. That since + * the length of the strings isn't known. + */ typedef struct { string dtstart; string dtend; @@ -12,7 +17,18 @@ typedef struct { string description; } vevent; +/* + * Deep copy from src -> dest + * Requires dest to be initialized beforehand + * TODO possibly remove this. + */ int copy_vevent(vevent* dest, vevent* src); + +/* + * Copies src -> dest, initializing all the strings along the way. + * Requires dest to be initialized. + */ +int vevent_init_copy(vevent* dest, vevent* src); int free_vevent(vevent* ev); typedef struct { |