Libical API Documentation 4.0 UNRELEASED Go to the stable 3.0 documentation
Loading...
Searching...
No Matches
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
16
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
38
40#define ICALPERIODTYPE_INITIALIZER \
41 { \
42 ICALTIMETYPE_INITIALIZER, \
43 ICALTIMETYPE_INITIALIZER, \
44 ICALDURATIONTYPE_INITIALIZER}
46
78LIBICAL_ICAL_EXPORT struct icalperiodtype icalperiodtype_from_string(const char *str);
79
104LIBICAL_ICAL_EXPORT const char *icalperiodtype_as_ical_string(struct icalperiodtype p);
105
132LIBICAL_ICAL_EXPORT char *icalperiodtype_as_ical_string_r(struct icalperiodtype p);
133
150LIBICAL_ICAL_EXPORT struct icalperiodtype icalperiodtype_null_period(void);
151
167LIBICAL_ICAL_EXPORT bool icalperiodtype_is_null_period(struct icalperiodtype p);
168
183LIBICAL_ICAL_EXPORT bool icalperiodtype_is_valid_period(struct icalperiodtype p);
184
185#endif /* !ICALTIME_H */
Defines the data structure for time durations.
struct icalperiodtype icalperiodtype_null_period(void)
Definition icalperiod.c:127
struct icalperiodtype icalperiodtype_from_string(const char *str)
Constructs a new icalperiodtype from str.
Definition icalperiod.c:25
const char * icalperiodtype_as_ical_string(struct icalperiodtype p)
Converts an icalperiodtype into an iCal-formatted string.
Definition icalperiod.c:88
char * icalperiodtype_as_ical_string_r(struct icalperiodtype p)
Converts an icalperiodtype into an iCal-formatted string.
Definition icalperiod.c:97
bool icalperiodtype_is_null_period(struct icalperiodtype p)
Definition icalperiod.c:138
bool icalperiodtype_is_valid_period(struct icalperiodtype p)
Definition icalperiod.c:148
Defines the data structure for representing date-times.
struct icaldurationtype duration
Definition icalperiod.h:36
struct icaltimetype end
Definition icalperiod.h:34
struct icaltimetype start
Definition icalperiod.h:31