summaryrefslogtreecommitdiffabout
path: root/libical/src/libicalss/icalcluster.h
Unidiff
Diffstat (limited to 'libical/src/libicalss/icalcluster.h') (more/less context) (show whitespace changes)
-rw-r--r--libical/src/libicalss/icalcluster.h61
1 files changed, 61 insertions, 0 deletions
diff --git a/libical/src/libicalss/icalcluster.h b/libical/src/libicalss/icalcluster.h
new file mode 100644
index 0000000..f4eb041
--- a/dev/null
+++ b/libical/src/libicalss/icalcluster.h
@@ -0,0 +1,61 @@
1/* -*- Mode: C -*- */
2/*======================================================================
3 FILE: icalcluster.h
4 CREATOR: eric 23 December 1999
5
6
7 $Id$
8 $Locker$
9
10 (C) COPYRIGHT 2000, Eric Busboom, http://www.softwarestudio.org
11
12 This program is free software; you can redistribute it and/or modify
13 it under the terms of either:
14
15 The LGPL as published by the Free Software Foundation, version
16 2.1, available at: http://www.fsf.org/copyleft/lesser.html
17
18 Or:
19
20 The Mozilla Public License Version 1.0. You may obtain a copy of
21 the License at http://www.mozilla.org/MPL/
22
23 The Original Code is eric. The Initial Developer of the Original
24 Code is Eric Busboom
25
26
27======================================================================*/
28
29#ifndef ICALCLUSTER_H
30#define ICALCLUSTER_H
31
32#include "ical.h"
33#include "icalset.h"
34
35typedef struct icalcluster_impl icalcluster;
36
37icalcluster* icalcluster_new(const char *key, icalcomponent *data);
38icalcluster* icalcluster_new_clone(const icalcluster *cluster);
39
40void icalcluster_free(icalcluster *cluster);
41
42const char* icalcluster_key(icalcluster *cluster);
43int icalcluster_is_changed(icalcluster *cluster);
44void icalcluster_mark(icalcluster *cluster);
45void icalcluster_commit(icalcluster *cluster);
46
47icalcomponent* icalcluster_get_component(icalcluster* cluster);
48int icalcluster_count_components(icalcluster *cluster, icalcomponent_kind kind);
49icalerrorenum icalcluster_add_component(icalcluster* cluster,
50 icalcomponent* child);
51icalerrorenum icalcluster_remove_component(icalcluster* cluster,
52 icalcomponent* child);
53
54icalcomponent* icalcluster_get_current_component(icalcluster* cluster);
55icalcomponent* icalcluster_get_first_component(icalcluster* cluster);
56icalcomponent* icalcluster_get_next_component(icalcluster* cluster);
57
58#endif /* !ICALCLUSTER_H */
59
60
61