blob: 6dcaffa92d7cb4be74a675567e216a62d06b0b0a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
/*
* xfconf
*
* Copyright (c) 2007 Brian Tarricone <bjt23@cornell.edu>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; version 2
* of the License ONLY.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __XFCONF_PRIVATE_H__
#define __XFCONF_PRIVATE_H__
#include <gio/gio.h>
#ifdef XFCONF_ENABLE_CHECKS
#define ERROR_DEFINE GError *___error = NULL
#define ERROR &___error
#define ERROR_CHECK G_STMT_START{ \
if(___error) { \
g_warning("Error check failed at %s():%d: %s", __FUNCTION__, __LINE__, \
___error->message); \
g_error_free(___error); \
} \
}G_STMT_END
#else
#define ERROR_DEFINE G_STMT_START{ }G_STMT_END
#define ERROR NULL
#define ERROR_CHECK G_STMT_START{ }G_STMT_END
#endif
typedef struct
{
guint n_members;
GType *member_types;
} XfconfNamedStruct;
GDBusConnection *_xfconf_get_gdbus_connection(void);
GDBusProxy *_xfconf_get_gdbus_proxy(void);
XfconfNamedStruct *_xfconf_named_struct_lookup(const gchar *struct_name);
void _xfconf_channel_shutdown(void);
const gchar *_xfconf_channel_get_name(XfconfChannel *channel);
const gchar *_xfconf_channel_get_property_base(XfconfChannel *channel);
void _xfconf_g_bindings_shutdown(void);
#endif /* __XFCONF_PRIVATE_H__ */
|