$darkmode
Libical API Documentation 4.0 STABLE VERSION Visit the v3.0 documentation
icalspanlist.h
Go to the documentation of this file.
1 /*======================================================================
2  FILE: icalspanlist.h
3  CREATOR: eric 21 Aug 2000
4 
5  SPDX-FileCopyrightText: 2000, Eric Busboom <eric@civicknowledge.com>
6  SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0
7 =========================================================================*/
8 #ifndef ICALSPANLIST_H
9 #define ICALSPANLIST_H
10 
11 #include "libical_icalss_export.h"
12 #include "icalset.h"
13 
19 struct icalpvl_list_t;
21 struct icalspanlist_impl {
22  struct icalpvl_list_t *spans;
23  struct icaltimetype start;
24  struct icaltimetype end;
25 };
26 typedef struct icalspanlist_impl icalspanlist;
28 
42 LIBICAL_ICALSS_EXPORT icalspanlist *icalspanlist_new(icalset *set,
43  struct icaltimetype start,
44  struct icaltimetype end);
45 
53 LIBICAL_ICALSS_EXPORT void icalspanlist_free(icalspanlist *sl);
54 
66 LIBICAL_ICALSS_EXPORT struct icalperiodtype icalspanlist_next_free_time(icalspanlist *sl,
67  struct icaltimetype t);
68 
74 LIBICAL_ICALSS_EXPORT void icalspanlist_dump(icalspanlist *sl);
75 
90 LIBICAL_ICALSS_EXPORT icalcomponent *icalspanlist_as_vfreebusy(icalspanlist *sl,
91  const char *organizer,
92  const char *attendee);
93 
113 LIBICAL_ICALSS_EXPORT int *icalspanlist_as_freebusy_matrix(icalspanlist *spanlist, int delta_t);
114 
122 LIBICAL_ICALSS_EXPORT icalspanlist *icalspanlist_from_vfreebusy(icalcomponent *comp);
123 
124 #endif
Icalset is the "base class" for representations of a collection of iCal components.
int * icalspanlist_as_freebusy_matrix(icalspanlist *spanlist, int delta_t)
Definition: icalspanlist.c:280
icalspanlist * icalspanlist_from_vfreebusy(icalcomponent *comp)
Definition: icalspanlist.c:389
void icalspanlist_free(icalspanlist *sl)
Definition: icalspanlist.c:183
icalspanlist * icalspanlist_new(icalset *set, struct icaltimetype start, struct icaltimetype end)
Definition: icalspanlist.c:81
void icalspanlist_dump(icalspanlist *sl)
Definition: icalspanlist.c:202
struct icalperiodtype icalspanlist_next_free_time(icalspanlist *sl, struct icaltimetype t)
Definition: icalspanlist.c:216
icalcomponent * icalspanlist_as_vfreebusy(icalspanlist *sl, const char *organizer, const char *attendee)
Definition: icalspanlist.c:343