aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/cal_struct.h
blob: 411036c7aa41dbf85803ad92c1fe36cfe922c081 (plain) (blame)
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
#define MAX_SZ 30

enum RepeatType {
    Single,
    Days,
    Months,
    WeekDays,
    MonthDays 
};


struct actionitem {
    char    date[MAX_SZ];
    int time;  /* Minutes past midnight */
};

struct event {
    struct actionitem start;
    struct actionitem end;

    enum RepeatType repeat;
    int repeatcount;
    char    description[MAX_SZ];
    char    subtype[MAX_SZ];
    GList   *properties;
};