Libical API Documentation 4.0 UNRELEASED Go to the stable 3.0 documentation
Loading...
Searching...
No Matches
icalcluster.h
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
9#ifndef ICALCLUSTER_H
10#define ICALCLUSTER_H
11
12#include "libical_icalss_export.h"
13#include "icalcomponent.h"
14#include "icalerror.h"
15
16typedef struct icalcluster_impl icalcluster;
17
23LIBICAL_ICALSS_EXPORT icalcluster *icalcluster_new(const char *key, icalcomponent *data);
24
30LIBICAL_ICALSS_EXPORT icalcluster *icalcluster_clone(const icalcluster *old);
31
32LIBICAL_ICALSS_EXPORT void icalcluster_free(icalcluster *cluster);
33
34LIBICAL_ICALSS_EXPORT const char *icalcluster_key(const icalcluster *cluster);
35
36LIBICAL_ICALSS_EXPORT int icalcluster_is_changed(const icalcluster *cluster);
37
38LIBICAL_ICALSS_EXPORT void icalcluster_mark(icalcluster *cluster);
39
40LIBICAL_ICALSS_EXPORT void icalcluster_commit(icalcluster *cluster);
41
42LIBICAL_ICALSS_EXPORT icalcomponent *icalcluster_get_component(const icalcluster *cluster);
43
44LIBICAL_ICALSS_EXPORT int icalcluster_count_components(icalcluster *cluster,
45 icalcomponent_kind kind);
46
47LIBICAL_ICALSS_EXPORT icalerrorenum icalcluster_add_component(icalcluster *cluster,
48 icalcomponent *child);
49
50LIBICAL_ICALSS_EXPORT icalerrorenum icalcluster_remove_component(icalcluster *cluster,
51 icalcomponent *child);
52
53LIBICAL_ICALSS_EXPORT icalcomponent *icalcluster_get_current_component(icalcluster *cluster);
54
55LIBICAL_ICALSS_EXPORT icalcomponent *icalcluster_get_first_component(icalcluster *cluster);
56
57LIBICAL_ICALSS_EXPORT icalcomponent *icalcluster_get_next_component(icalcluster *cluster);
58
59#endif /* !ICALCLUSTER_H */
Error handling for libical.
icalerrorenum
Represents the different types of errors that can be triggered in libical.
Definition icalerror.h:64
Definition icalclusterimpl.h:19