Libical API Documentation 3.0
Loading...
Searching...
No Matches
icalcluster.h
1/*======================================================================
2 FILE: icalcluster.h
3 CREATOR: acampi 13 March 2002
4
5 Copyright (C) 2002 Andrea Campi <a.campi@inet.it>
6
7 This library is free software; you can redistribute it and/or modify
8 it under the terms of either:
9
10 The LGPL as published by the Free Software Foundation, version
11 2.1, available at: https://www.gnu.org/licenses/lgpl-2.1.html
12
13 Or:
14
15 The Mozilla Public License Version 2.0. You may obtain a copy of
16 the License at https://www.mozilla.org/MPL/
17======================================================================*/
18
19#ifndef ICALCLUSTER_H
20#define ICALCLUSTER_H
21
22#include "libical_icalss_export.h"
23#include "icalcomponent.h"
24#include "icalerror.h"
25
26typedef struct icalcluster_impl icalcluster;
27
28LIBICAL_ICALSS_EXPORT icalcluster *icalcluster_new(const char *key, icalcomponent *data);
29
30LIBICAL_ICALSS_EXPORT icalcluster *icalcluster_new_clone(const icalcluster *cluster);
31
32LIBICAL_ICALSS_EXPORT void icalcluster_free(icalcluster *cluster);
33
34LIBICAL_ICALSS_EXPORT const char *icalcluster_key(icalcluster *cluster);
35
36LIBICAL_ICALSS_EXPORT int icalcluster_is_changed(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(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:76
Definition icalclusterimpl.h:28
Definition icalcomponent.c:36