$darkmode
Libical API Documentation 4.0 STABLE VERSION Visit the v3.0 documentation
icalperiod.h
Go to the documentation of this file.
1 /*======================================================================
2  FILE: icalperiod.h
3  CREATOR: eric 26 Jan 2001
4 
5  SPDX-FileCopyrightText: 2000, Eric Busboom <eric@civicknowledge.com>
6  SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0
7 
8  The Original Code is eric. The Initial Developer of the Original
9  Code is Eric Busboom
10 ======================================================================*/
11 
17 #ifndef ICALPERIOD_H
18 #define ICALPERIOD_H
19 
20 #include "libical_ical_export.h"
21 #include "icalduration.h"
22 #include "icaltime.h"
23 
24 #include <stdbool.h>
25 
34  struct icaltimetype end;
37 };
38 
40 #define ICALPERIODTYPE_INITIALIZER \
41  { \
42  ICALTIMETYPE_INITIALIZER, \
43  ICALTIMETYPE_INITIALIZER, \
44  ICALDURATIONTYPE_INITIALIZER}
45 
78 LIBICAL_ICAL_EXPORT struct icalperiodtype icalperiodtype_from_string(const char *str);
79 
104 LIBICAL_ICAL_EXPORT const char *icalperiodtype_as_ical_string(struct icalperiodtype p);
105 
132 LIBICAL_ICAL_EXPORT char *icalperiodtype_as_ical_string_r(struct icalperiodtype p);
133 
150 LIBICAL_ICAL_EXPORT struct icalperiodtype icalperiodtype_null_period(void);
151 
167 LIBICAL_ICAL_EXPORT bool icalperiodtype_is_null_period(struct icalperiodtype p);
168 
183 LIBICAL_ICAL_EXPORT bool icalperiodtype_is_valid_period(struct icalperiodtype p);
184 
185 #endif /* !ICALTIME_H */
Defines the data structure for time durations.
char * icalperiodtype_as_ical_string_r(struct icalperiodtype p)
Converts an icalperiodtype into an iCal-formatted string.
Definition: icalperiod.c:97
Defines the data structure for representing date-times.
struct icalperiodtype icalperiodtype_from_string(const char *str)
Constructs a new icalperiodtype from str.
Definition: icalperiod.c:25
struct icaldurationtype duration
Definition: icalperiod.h:36
bool icalperiodtype_is_valid_period(struct icalperiodtype p)
Definition: icalperiod.c:148
struct icaltimetype end
Definition: icalperiod.h:34
struct icaltimetype start
Definition: icalperiod.h:31
struct icalperiodtype icalperiodtype_null_period(void)
Definition: icalperiod.c:127
const char * icalperiodtype_as_ical_string(struct icalperiodtype p)
Converts an icalperiodtype into an iCal-formatted string.
Definition: icalperiod.c:88
bool icalperiodtype_is_null_period(struct icalperiodtype p)
Definition: icalperiod.c:138