Diffstat (limited to 'libical/src/libicalss/icalspanlist.h') (more/less context) (show whitespace changes)
-rw-r--r-- | libical/src/libicalss/icalspanlist.h | 29 |
1 files changed, 26 insertions, 3 deletions
diff --git a/libical/src/libicalss/icalspanlist.h b/libical/src/libicalss/icalspanlist.h index 83cb1c8..91f0acb 100644 --- a/libical/src/libicalss/icalspanlist.h +++ b/libical/src/libicalss/icalspanlist.h | |||
@@ -30,5 +30,13 @@ | |||
30 | 30 | ||
31 | typedef void icalspanlist; | 31 | /** @file icalspanlist.h |
32 | * @brief Code that supports collections of free/busy spans of time | ||
33 | */ | ||
34 | |||
35 | typedef struct icalspanlist_impl icalspanlist; | ||
36 | |||
37 | |||
38 | /** @brief Constructor | ||
39 | * Make a free list from a set of component. Start and end should be in UTC | ||
40 | */ | ||
32 | 41 | ||
33 | /* Make a free list from a set of component. Start and end should be in UTC */ | ||
34 | icalspanlist* icalspanlist_new(icalset *set, | 42 | icalspanlist* icalspanlist_new(icalset *set, |
@@ -37,4 +45,7 @@ icalspanlist* icalspanlist_new(icalset *set, | |||
37 | 45 | ||
46 | /** @brief Destructor | ||
47 | */ | ||
38 | void icalspanlist_free(icalspanlist* spl); | 48 | void icalspanlist_free(icalspanlist* spl); |
39 | 49 | ||
50 | /* Unimplemented functions */ | ||
40 | icalcomponent* icalspanlist_make_free_list(icalspanlist* sl); | 51 | icalcomponent* icalspanlist_make_free_list(icalspanlist* sl); |
@@ -42,5 +53,6 @@ icalcomponent* icalspanlist_make_busy_list(icalspanlist* sl); | |||
42 | 53 | ||
43 | /* Get first free or busy time after time t. all times are in UTC */ | 54 | /** Get first next free time after time t. all times are in UTC. */ |
44 | struct icalperiodtype icalspanlist_next_free_time(icalspanlist* sl, | 55 | struct icalperiodtype icalspanlist_next_free_time(icalspanlist* sl, |
45 | struct icaltimetype t); | 56 | struct icaltimetype t); |
57 | /** Get first next busy time after time t. all times are in UTC. */ | ||
46 | struct icalperiodtype icalspanlist_next_busy_time(icalspanlist* sl, | 58 | struct icalperiodtype icalspanlist_next_busy_time(icalspanlist* sl, |
@@ -50,2 +62,13 @@ void icalspanlist_dump(icalspanlist* s); | |||
50 | 62 | ||
63 | /** @brief Return a valid VFREEBUSY component for this span */ | ||
64 | icalcomponent *icalspanlist_as_vfreebusy(icalspanlist* s_in, | ||
65 | const char* organizer, | ||
66 | const char* attendee); | ||
67 | |||
68 | /** @brief Return an integer matrix of total events per delta_t timespan */ | ||
69 | int *icalspanlist_as_freebusy_matrix(icalspanlist* span, int delta_t); | ||
70 | |||
71 | /** @brief Construct an icalspanlist from a VFREEBUSY component */ | ||
72 | icalspanlist *icalspanlist_from_vfreebusy(icalcomponent* c); | ||
73 | |||
51 | #endif | 74 | #endif |