2 * Copyright © 2010 Codethink Limited
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the licence, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
20 #ifndef __G_SETTINGS_SCHEMA_INTERNAL_H__
21 #define __G_SETTINGS_SCHEMA_INTERNAL_H__
25 typedef struct _GSettingsSchema GSettingsSchema;
29 GSettingsSchema *schema;
35 const guint32 *strinfo;
38 const gchar *unparsed;
41 const GVariantType *type;
42 GVariant *minimum, *maximum;
43 GVariant *default_value;
47 GSettingsSchema * g_settings_schema_new (const gchar *name);
49 GSettingsSchema * g_settings_schema_ref (GSettingsSchema *schema);
51 void g_settings_schema_unref (GSettingsSchema *schema);
53 const gchar * g_settings_schema_get_name (GSettingsSchema *schema);
55 const gchar * g_settings_schema_get_path (GSettingsSchema *schema);
57 const gchar * g_settings_schema_get_gettext_domain (GSettingsSchema *schema);
59 GVariantIter * g_settings_schema_get_value (GSettingsSchema *schema,
62 gboolean g_settings_schema_has_key (GSettingsSchema *schema,
65 const GQuark * g_settings_schema_list (GSettingsSchema *schema,
68 const gchar * g_settings_schema_get_string (GSettingsSchema *schema,
72 void g_settings_schema_key_init (GSettingsSchemaKey *key,
73 GSettingsSchema *schema,
76 void g_settings_schema_key_clear (GSettingsSchemaKey *key);
78 gboolean g_settings_schema_key_type_check (GSettingsSchemaKey *key,
81 gboolean g_settings_schema_key_range_check (GSettingsSchemaKey *key,
84 GVariant * g_settings_schema_key_range_fixup (GSettingsSchemaKey *key,
87 GVariant * g_settings_schema_key_get_translated_default (GSettingsSchemaKey *key);
90 gint g_settings_schema_key_to_enum (GSettingsSchemaKey *key,
93 GVariant * g_settings_schema_key_from_enum (GSettingsSchemaKey *key,
96 guint g_settings_schema_key_to_flags (GSettingsSchemaKey *key,
99 GVariant * g_settings_schema_key_from_flags (GSettingsSchemaKey *key,
102 #endif /* __G_SETTINGS_SCHEMA_INTERNAL_H__ */