Libical API Documentation 4.0 UNRELEASED Go to the stable 3.0 documentation
Loading...
Searching...
No Matches
icalcluster.h
Go to the documentation of this file.
1/*======================================================================
2 FILE: icalcluster.h
3 CREATOR: acampi 13 March 2002
4
5 SPDX-FileCopyrightText: 2002 Andrea Campi <a.campi@inet.it>
6 SPDX-License-Identifier: LGPL-2.1-only OR MPL-2.0
7======================================================================*/
8
21
22#ifndef ICALCLUSTER_H
23#define ICALCLUSTER_H
24
25#include "libical_icalss_export.h"
26#include "icalcomponent.h"
27#include "icalerror.h"
28
29typedef struct icalcluster_impl icalcluster;
30
36LIBICAL_ICALSS_EXPORT icalcluster *icalcluster_new(const char *key, icalcomponent *data);
37
43LIBICAL_ICALSS_EXPORT icalcluster *icalcluster_clone(const icalcluster *old);
44
45LIBICAL_ICALSS_EXPORT void icalcluster_free(icalcluster *cluster);
46
47LIBICAL_ICALSS_EXPORT const char *icalcluster_key(const icalcluster *cluster);
48
49LIBICAL_ICALSS_EXPORT int icalcluster_is_changed(const icalcluster *cluster);
50
51LIBICAL_ICALSS_EXPORT void icalcluster_mark(icalcluster *cluster);
52
53LIBICAL_ICALSS_EXPORT void icalcluster_commit(icalcluster *cluster);
54
55LIBICAL_ICALSS_EXPORT icalcomponent *icalcluster_get_component(const icalcluster *cluster);
56
57LIBICAL_ICALSS_EXPORT int icalcluster_count_components(icalcluster *cluster,
59
60LIBICAL_ICALSS_EXPORT icalerrorenum icalcluster_add_component(icalcluster *cluster,
61 icalcomponent *child);
62
63LIBICAL_ICALSS_EXPORT icalerrorenum icalcluster_remove_component(icalcluster *cluster,
64 icalcomponent *child);
65
66LIBICAL_ICALSS_EXPORT icalcomponent *icalcluster_get_current_component(icalcluster *cluster);
67
68LIBICAL_ICALSS_EXPORT icalcomponent *icalcluster_get_first_component(icalcluster *cluster);
69
70LIBICAL_ICALSS_EXPORT icalcomponent *icalcluster_get_next_component(icalcluster *cluster);
71
72#endif /* !ICALCLUSTER_H */
icalcomponent * icalcluster_get_current_component(icalcluster *cluster)
Iterate through components.
icalcluster * icalcluster_new(const char *key, icalcomponent *data)
Create a cluster with a key/value pair.
Definition icalcluster.c:39
icalcluster * icalcluster_clone(const icalcluster *old)
Deep clone an icalcluster to a new one.
Definition icalcluster.c:70
Defines the data structure for iCalendar components.
icalcomponent_kind
Definition icalenums.h:29
Error handling for libical.
icalerrorenum
Represents the different types of errors that can be triggered in libical.
Definition icalerror.h:42