Libical API Documentation
4.0 STABLE VERSION
[Visit the v3.0 documentation]
Toggle main menu visibility
Loading...
Searching...
No Matches
src
libical
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
29
struct
icalperiodtype
{
31
struct
icaltimetype
start
;
34
struct
icaltimetype
end
;
36
struct
icaldurationtype
duration
;
37
};
38
40
#define ICALPERIODTYPE_INITIALIZER \
41
{ \
42
ICALTIMETYPE_INITIALIZER, \
43
ICALTIMETYPE_INITIALIZER, \
44
ICALDURATIONTYPE_INITIALIZER}
46
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 */
icalduration.h
Defines the data structure for time durations.
icalperiodtype_as_ical_string
const char * icalperiodtype_as_ical_string(struct icalperiodtype p)
Converts an icalperiodtype into an iCal-formatted string.
Definition
icalperiod.c:88
icalperiodtype_as_ical_string_r
char * icalperiodtype_as_ical_string_r(struct icalperiodtype p)
Converts an icalperiodtype into an iCal-formatted string.
Definition
icalperiod.c:97
icalperiodtype_is_null_period
bool icalperiodtype_is_null_period(struct icalperiodtype p)
Definition
icalperiod.c:138
icalperiodtype_null_period
struct icalperiodtype icalperiodtype_null_period(void)
Definition
icalperiod.c:127
icalperiodtype_from_string
struct icalperiodtype icalperiodtype_from_string(const char *str)
Constructs a new icalperiodtype from str.
Definition
icalperiod.c:25
icalperiodtype_is_valid_period
bool icalperiodtype_is_valid_period(struct icalperiodtype p)
Definition
icalperiod.c:148
icaltime.h
Defines the data structure for representing date-times.
icaldurationtype
Definition
icalduration.h:30
icalperiodtype
Definition
icalperiod.h:29
icalperiodtype::duration
struct icaldurationtype duration
Definition
icalperiod.h:36
icalperiodtype::end
struct icaltimetype end
Definition
icalperiod.h:34
icalperiodtype::start
struct icaltimetype start
Definition
icalperiod.h:31
icaltimetype
Definition
icaltime.h:90
Generated on
for Libical API Documentation by
1.18.0