2 * Copyright © 2010 Codethink Limited
3 * Copyright © 2011 Canonical Limited
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the licence, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
21 #ifndef __G_SETTINGS_SCHEMA_H__
22 #define __G_SETTINGS_SCHEMA_H__
24 #include <glib-object.h>
26 typedef struct _GSettingsSchemaSource GSettingsSchemaSource
;
27 typedef struct _GSettingsSchema GSettingsSchema
;
29 #define G_TYPE_SETTINGS_SCHEMA_SOURCE (g_settings_schema_source_get_type ())
30 GLIB_AVAILABLE_IN_2_32
31 GType
g_settings_schema_source_get_type (void) G_GNUC_CONST
;
33 GLIB_AVAILABLE_IN_2_32
34 GSettingsSchemaSource
* g_settings_schema_source_get_default (void);
35 GLIB_AVAILABLE_IN_2_32
36 GSettingsSchemaSource
* g_settings_schema_source_ref (GSettingsSchemaSource
*source
);
37 GLIB_AVAILABLE_IN_2_32
38 void g_settings_schema_source_unref (GSettingsSchemaSource
*source
);
40 GLIB_AVAILABLE_IN_2_32
41 GSettingsSchemaSource
* g_settings_schema_source_new_from_directory (const gchar
*directory
,
42 GSettingsSchemaSource
*parent
,
46 GLIB_AVAILABLE_IN_2_32
47 GSettingsSchema
* g_settings_schema_source_lookup (GSettingsSchemaSource
*source
,
48 const gchar
*schema_id
,
51 #define G_TYPE_SETTINGS_SCHEMA (g_settings_schema_get_type ())
52 GLIB_AVAILABLE_IN_2_32
53 GType
g_settings_schema_get_type (void) G_GNUC_CONST
;
55 GLIB_AVAILABLE_IN_2_32
56 GSettingsSchema
* g_settings_schema_ref (GSettingsSchema
*schema
);
57 GLIB_AVAILABLE_IN_2_32
58 void g_settings_schema_unref (GSettingsSchema
*schema
);
60 GLIB_AVAILABLE_IN_2_32
61 const gchar
* g_settings_schema_get_id (GSettingsSchema
*schema
);
62 GLIB_AVAILABLE_IN_2_32
63 const gchar
* g_settings_schema_get_path (GSettingsSchema
*schema
);
65 #endif /* __G_SETTINGS_SCHEMA_H__ */