1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3  * Copyright (C) 2017 Red Hat, Inc. (www.redhat.com)
4  *
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.
8  *
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
12  * for more details.
13  *
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/>.
16  */
17 
18 #if !defined (__CAMEL_H_INSIDE__) && !defined (CAMEL_COMPILATION)
19 #error "Only <camel/camel.h> can be included directly."
20 #endif
21 
22 #ifndef CAMEL_WEAK_REF_GROUP_H
23 #define CAMEL_WEAK_REF_GROUP_H
24 
25 #include <glib-object.h>
26 
27 #define CAMEL_TYPE_WEAK_REF_GROUP (camel_weak_ref_group_get_type ())
28 
29 G_BEGIN_DECLS
30 
31 typedef struct _CamelWeakRefGroup CamelWeakRefGroup;
32 
33 GType		camel_weak_ref_group_get_type	(void) G_GNUC_CONST;
34 CamelWeakRefGroup *
35 		camel_weak_ref_group_new	(void);
36 CamelWeakRefGroup *
37 		camel_weak_ref_group_ref	(CamelWeakRefGroup *group);
38 void		camel_weak_ref_group_unref	(CamelWeakRefGroup *group);
39 
40 void		camel_weak_ref_group_set	(CamelWeakRefGroup *group,
41 						 gpointer object);
42 gpointer	camel_weak_ref_group_get	(CamelWeakRefGroup *group);
43 
44 G_END_DECLS
45 
46 #endif /* CAMEL_WEAK_REF_GROUP_H */
47