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
20struct icalpvl_list_t;
21struct icalspanlist_impl {
22 struct icalpvl_list_t *spans;
23 struct icaltimetype start;
24 struct icaltimetype end;
25};
26typedef struct icalspanlist_impl icalspanlist;
28
42LIBICAL_ICALSS_EXPORT icalspanlist *icalspanlist_new(icalset *set,
43 struct icaltimetype start,
44 struct icaltimetype end);
45
53LIBICAL_ICALSS_EXPORT void icalspanlist_free(icalspanlist *sl);
54
66LIBICAL_ICALSS_EXPORT struct icalperiodtype icalspanlist_next_free_time(icalspanlist *sl,
67 struct icaltimetype t);
68
74LIBICAL_ICALSS_EXPORT void icalspanlist_dump(icalspanlist *sl);
75
90LIBICAL_ICALSS_EXPORT icalcomponent *icalspanlist_as_vfreebusy(icalspanlist *sl,
91 const char *organizer,
92 const char *attendee);
93
113LIBICAL_ICALSS_EXPORT int *icalspanlist_as_freebusy_matrix(icalspanlist *spanlist, int delta_t);
114
122LIBICAL_ICALSS_EXPORT icalspanlist *icalspanlist_from_vfreebusy(icalcomponent *comp);
123
124#endif
Icalset is the "base class" for representations of a collection of iCal components.
struct icalperiodtype icalspanlist_next_free_time(icalspanlist *sl, struct icaltimetype t)
void icalspanlist_dump(icalspanlist *sl)
icalspanlist * icalspanlist_from_vfreebusy(icalcomponent *comp)
int * icalspanlist_as_freebusy_matrix(icalspanlist *spanlist, int delta_t)
void icalspanlist_free(icalspanlist *sl)
icalspanlist * icalspanlist_new(icalset *set, struct icaltimetype start, struct icaltimetype end)
icalcomponent * icalspanlist_as_vfreebusy(icalspanlist *sl, const char *organizer, const char *attendee)