Libical API Documentation 4.0
Loading...
Searching...
No Matches
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
7 SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0
8
9=========================================================================*/
10#ifndef ICALSPANLIST_H
11#define ICALSPANLIST_H
12
13#include "libical_icalss_export.h"
14#include "icalset.h"
15
19
20typedef struct icalspanlist_impl icalspanlist;
21
34LIBICAL_ICALSS_EXPORT icalspanlist *icalspanlist_new(icalset *set,
35 struct icaltimetype start,
36 struct icaltimetype end);
37
43LIBICAL_ICALSS_EXPORT void icalspanlist_free(icalspanlist *sl);
44
53LIBICAL_ICALSS_EXPORT struct icalperiodtype icalspanlist_next_free_time(icalspanlist *sl,
54 struct icaltimetype t);
55
59LIBICAL_ICALSS_EXPORT void icalspanlist_dump(icalspanlist *sl);
60
75LIBICAL_ICALSS_EXPORT icalcomponent *icalspanlist_as_vfreebusy(icalspanlist *sl,
76 const char *organizer,
77 const char *attendee);
78
98LIBICAL_ICALSS_EXPORT int *icalspanlist_as_freebusy_matrix(icalspanlist *span, int delta_t);
99
109LIBICAL_ICALSS_EXPORT icalspanlist *icalspanlist_from_vfreebusy(icalcomponent *comp);
110
111#endif
void icalspanlist_dump(icalspanlist *sl)
(Debug) print out spanlist to STDOUT.
Definition icalspanlist.c:199
int * icalspanlist_as_freebusy_matrix(icalspanlist *span, int delta_t)
Returns an hour-by-hour array of free/busy times over a given period.
Definition icalspanlist.c:278
icalspanlist * icalspanlist_from_vfreebusy(icalcomponent *comp)
Constructs an icalspanlist from a VFREEBUSY component.
Definition icalspanlist.c:389
void icalspanlist_free(icalspanlist *sl)
Destructor.
Definition icalspanlist.c:181
icalspanlist * icalspanlist_new(icalset *set, struct icaltimetype start, struct icaltimetype end)
Makes a free list from a set of VEVENT components.
Definition icalspanlist.c:81
icalcomponent * icalspanlist_as_vfreebusy(icalspanlist *sl, const char *organizer, const char *attendee)
Returns a VFREEBUSY component for a spanlist.
Definition icalspanlist.c:339
Struct to represent a period in time.
Definition icalperiod.h:30
Definition icalspanlist.c:20
struct icaltimetype start
Definition icalspanlist.c:22
struct icaltimetype end
Definition icalspanlist.c:23
Definition icaltime.h:98