1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
3 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
5 * This library is free software: you can redistribute it and/or modify it
6 * under the terms of the GNU Lesser General Public License as published by
7 * the Free Software Foundation.
9 * This library is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
11 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
14 * You should have received a copy of the GNU Lesser General Public License
15 * along with this library. If not, see <http://www.gnu.org/licenses/>.
17 * Authors: Chris Lahey <clahey@ximian.com>
20 #if !defined (__LIBEDATASERVER_H_INSIDE__) && !defined (LIBEDATASERVER_COMPILATION)
21 #error "Only <libedataserver/libedataserver.h> should be included directly."
24 #ifndef EDS_DISABLE_DEPRECATED
26 /* Do not generate bindings. */
27 #ifndef __GI_SCANNER__
34 #include <libedataserver/e-iterator.h>
36 /* Standard GObject macros */
40 (G_TYPE_CHECK_INSTANCE_CAST \
41 ((obj), E_TYPE_LIST, EList))
42 #define E_LIST_CLASS(cls) \
43 (G_TYPE_CHECK_CLASS_CAST \
44 ((cls), E_TYPE_LIST, EListClass))
45 #define E_IS_LIST(obj) \
46 (G_TYPE_CHECK_INSTANCE_TYPE \
48 #define E_IS_LIST_CLASS(cls) \
49 (G_TYPE_CHECK_CLASS_TYPE \
51 #define E_LIST_GET_CLASS(obj) \
52 (G_TYPE_INSTANCE_GET_CLASS \
53 ((obj), E_TYPE_LIST, EListClass))
57 typedef struct _EList EList
;
58 typedef struct _EListClass EListClass
;
60 typedef gpointer (*EListCopyFunc
) (gconstpointer data
,
62 typedef void (*EListFreeFunc
) (gpointer data
,
76 GObjectClass parent_class
;
79 GType
e_list_get_type (void) G_GNUC_CONST
;
80 EList
* e_list_new (EListCopyFunc copy
,
83 void e_list_construct (EList
*list
,
87 EList
* e_list_duplicate (EList
*list
);
88 EIterator
* e_list_get_iterator (EList
*list
);
89 void e_list_append (EList
*list
,
91 void e_list_remove (EList
*list
,
93 gint
e_list_length (EList
*list
);
95 /* For iterators to call. */
96 void e_list_remove_link (EList
*list
,
98 void e_list_remove_iterator (EList
*list
,
100 void e_list_invalidate_iterators (EList
*list
,
105 #endif /* E_LIST_H */
107 #endif /* __GI_SCANNER__ */
109 #endif /* EDS_DISABLE_DEPRECATED */