Libical API Documentation 4.0 UNRELEASED Go to the stable 3.0 documentation
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 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
18 icalpvl_list spans;
21};
22typedef struct icalspanlist_impl icalspanlist;
23
36LIBICAL_ICALSS_EXPORT icalspanlist *icalspanlist_new(icalset *set,
37 struct icaltimetype start,
38 struct icaltimetype end);
39
45LIBICAL_ICALSS_EXPORT void icalspanlist_free(icalspanlist *sl);
46
55LIBICAL_ICALSS_EXPORT struct icalperiodtype icalspanlist_next_free_time(icalspanlist *sl,
56 struct icaltimetype t);
57
61LIBICAL_ICALSS_EXPORT void icalspanlist_dump(icalspanlist *sl);
62
77LIBICAL_ICALSS_EXPORT icalcomponent *icalspanlist_as_vfreebusy(icalspanlist *sl,
78 const char *organizer,
79 const char *attendee);
80
100LIBICAL_ICALSS_EXPORT int *icalspanlist_as_freebusy_matrix(icalspanlist *spanlist, int delta_t);
101
111LIBICAL_ICALSS_EXPORT icalspanlist *icalspanlist_from_vfreebusy(icalcomponent *comp);
112
113#endif
void icalspanlist_dump(icalspanlist *sl)
(Debug) print out spanlist to STDOUT.
Definition icalspanlist.c:195
icalspanlist * icalspanlist_from_vfreebusy(icalcomponent *comp)
Constructs an icalspanlist from a VFREEBUSY component.
Definition icalspanlist.c:382
int * icalspanlist_as_freebusy_matrix(icalspanlist *spanlist, int delta_t)
Returns an hour-by-hour array of free/busy times over a given period.
Definition icalspanlist.c:273
void icalspanlist_free(icalspanlist *sl)
Destructor.
Definition icalspanlist.c:176
icalspanlist * icalspanlist_new(icalset *set, struct icaltimetype start, struct icaltimetype end)
Makes a free list from a set of VEVENT components.
Definition icalspanlist.c:74
icalcomponent * icalspanlist_as_vfreebusy(icalspanlist *sl, const char *organizer, const char *attendee)
Returns a VFREEBUSY component for a spanlist.
Definition icalspanlist.c:336
Struct to represent a period in time.
Definition icalperiod.h:29
Definition icalspanlist.h:17
struct icaltimetype start
Definition icalspanlist.h:19
icalpvl_list spans
Definition icalspanlist.h:18
struct icaltimetype end
Definition icalspanlist.h:20
Definition icaltime.h:96