blob: 06ec61f90da3895e038bac73d465081cf76fc17c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#ifndef VCAL_H
#define VCAL_H
#include <stdlib.h>
#include "strbuf.h"
typedef struct {
string dtstart;
string dtend;
string summary;
string description;
} vevent;
int copy_vevent(vevent* dest, vevent* src);
int free_vevent(vevent* ev);
typedef struct {
size_t n_events;
size_t alloc;
vevent* events;
} vcalendar;
int init_vcalendar(vcalendar* cal);
int free_vcalendar(vcalendar* cal);
int push_event(vcalendar* cal, vevent* ev);
#endif /* VCAL_H */
|