2011-11-15 09:00:16 +01:00
|
|
|
/*
|
|
|
|
* Copyright © 2010 Codethink Limited
|
|
|
|
* Copyright © 2011 Canonical Limited
|
|
|
|
*
|
|
|
|
* 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; either
|
|
|
|
* version 2 of the licence, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* 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., 59 Temple Place - Suite 330,
|
|
|
|
* Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __G_SETTINGS_SCHEMA_H__
|
|
|
|
#define __G_SETTINGS_SCHEMA_H__
|
|
|
|
|
2011-11-15 13:28:28 +01:00
|
|
|
#include <glib-object.h>
|
2011-11-15 09:00:16 +01:00
|
|
|
|
2013-07-02 19:53:04 +02:00
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
2011-11-15 09:00:16 +01:00
|
|
|
typedef struct _GSettingsSchemaSource GSettingsSchemaSource;
|
|
|
|
typedef struct _GSettingsSchema GSettingsSchema;
|
2013-10-27 00:57:24 +02:00
|
|
|
typedef struct _GSettingsSchemaKey GSettingsSchemaKey;
|
2011-11-15 09:00:16 +01:00
|
|
|
|
2011-11-15 13:28:28 +01:00
|
|
|
#define G_TYPE_SETTINGS_SCHEMA_SOURCE (g_settings_schema_source_get_type ())
|
2012-05-25 14:59:09 +02:00
|
|
|
GLIB_AVAILABLE_IN_2_32
|
2011-11-15 13:28:28 +01:00
|
|
|
GType g_settings_schema_source_get_type (void) G_GNUC_CONST;
|
|
|
|
|
2012-05-25 14:59:09 +02:00
|
|
|
GLIB_AVAILABLE_IN_2_32
|
2011-11-15 09:00:16 +01:00
|
|
|
GSettingsSchemaSource * g_settings_schema_source_get_default (void);
|
2012-05-25 14:59:09 +02:00
|
|
|
GLIB_AVAILABLE_IN_2_32
|
2011-11-16 11:37:30 +01:00
|
|
|
GSettingsSchemaSource * g_settings_schema_source_ref (GSettingsSchemaSource *source);
|
2012-05-25 14:59:09 +02:00
|
|
|
GLIB_AVAILABLE_IN_2_32
|
2011-11-16 11:37:30 +01:00
|
|
|
void g_settings_schema_source_unref (GSettingsSchemaSource *source);
|
2011-11-15 09:00:16 +01:00
|
|
|
|
2012-11-29 15:03:32 +01:00
|
|
|
GLIB_AVAILABLE_IN_2_32
|
2011-11-16 20:53:03 +01:00
|
|
|
GSettingsSchemaSource * g_settings_schema_source_new_from_directory (const gchar *directory,
|
|
|
|
GSettingsSchemaSource *parent,
|
2011-11-16 11:37:30 +01:00
|
|
|
gboolean trusted,
|
|
|
|
GError **error);
|
|
|
|
|
2012-11-29 15:03:32 +01:00
|
|
|
GLIB_AVAILABLE_IN_2_32
|
2011-11-16 11:37:30 +01:00
|
|
|
GSettingsSchema * g_settings_schema_source_lookup (GSettingsSchemaSource *source,
|
|
|
|
const gchar *schema_id,
|
|
|
|
gboolean recursive);
|
2011-11-15 09:00:16 +01:00
|
|
|
|
2013-10-27 03:12:46 +01:00
|
|
|
GLIB_AVAILABLE_IN_2_40
|
|
|
|
void g_settings_schema_source_list_schemas (GSettingsSchemaSource *source,
|
|
|
|
gboolean recursive,
|
|
|
|
gchar ***non_recursive_schemas,
|
|
|
|
gchar ***recursive_schemas);
|
|
|
|
|
2011-11-15 13:28:28 +01:00
|
|
|
#define G_TYPE_SETTINGS_SCHEMA (g_settings_schema_get_type ())
|
2012-05-25 14:59:09 +02:00
|
|
|
GLIB_AVAILABLE_IN_2_32
|
2011-11-15 13:28:28 +01:00
|
|
|
GType g_settings_schema_get_type (void) G_GNUC_CONST;
|
|
|
|
|
2012-05-25 14:59:09 +02:00
|
|
|
GLIB_AVAILABLE_IN_2_32
|
2011-11-16 11:37:30 +01:00
|
|
|
GSettingsSchema * g_settings_schema_ref (GSettingsSchema *schema);
|
2012-05-25 14:59:09 +02:00
|
|
|
GLIB_AVAILABLE_IN_2_32
|
2011-11-16 11:37:30 +01:00
|
|
|
void g_settings_schema_unref (GSettingsSchema *schema);
|
2011-11-15 09:00:16 +01:00
|
|
|
|
2012-11-29 15:03:32 +01:00
|
|
|
GLIB_AVAILABLE_IN_2_32
|
2011-11-16 11:37:30 +01:00
|
|
|
const gchar * g_settings_schema_get_id (GSettingsSchema *schema);
|
2012-11-29 15:03:32 +01:00
|
|
|
GLIB_AVAILABLE_IN_2_32
|
2011-11-16 11:37:30 +01:00
|
|
|
const gchar * g_settings_schema_get_path (GSettingsSchema *schema);
|
2013-10-27 00:57:24 +02:00
|
|
|
GLIB_AVAILABLE_IN_2_40
|
|
|
|
GSettingsSchemaKey * g_settings_schema_get_key (GSettingsSchema *schema,
|
|
|
|
const gchar *key);
|
2013-10-28 01:03:04 +01:00
|
|
|
GLIB_AVAILABLE_IN_2_40
|
|
|
|
gboolean g_settings_schema_has_key (GSettingsSchema *schema,
|
|
|
|
const gchar *key);
|
2013-10-27 00:57:24 +02:00
|
|
|
|
|
|
|
#define G_TYPE_SETTINGS_SCHEMA_KEY (g_settings_schema_key_get_type ())
|
|
|
|
GLIB_AVAILABLE_IN_2_40
|
|
|
|
GType g_settings_schema_key_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
GLIB_AVAILABLE_IN_2_40
|
|
|
|
GSettingsSchemaKey * g_settings_schema_key_ref (GSettingsSchemaKey *key);
|
|
|
|
GLIB_AVAILABLE_IN_2_40
|
|
|
|
void g_settings_schema_key_unref (GSettingsSchemaKey *key);
|
2011-11-15 09:00:16 +01:00
|
|
|
|
2013-10-28 01:03:04 +01:00
|
|
|
GLIB_AVAILABLE_IN_2_40
|
|
|
|
const GVariantType * g_settings_schema_key_get_value_type (GSettingsSchemaKey *key);
|
|
|
|
GLIB_AVAILABLE_IN_2_40
|
|
|
|
GVariant * g_settings_schema_key_get_default_value (GSettingsSchemaKey *key);
|
|
|
|
GLIB_AVAILABLE_IN_2_40
|
|
|
|
GVariant * g_settings_schema_key_get_range (GSettingsSchemaKey *key);
|
|
|
|
GLIB_AVAILABLE_IN_2_40
|
|
|
|
gboolean g_settings_schema_key_range_check (GSettingsSchemaKey *key,
|
|
|
|
GVariant *value);
|
|
|
|
|
2013-10-27 00:57:55 +02:00
|
|
|
GLIB_AVAILABLE_IN_2_40
|
|
|
|
const gchar * g_settings_schema_key_get_summary (GSettingsSchemaKey *key);
|
|
|
|
GLIB_AVAILABLE_IN_2_40
|
|
|
|
const gchar * g_settings_schema_key_get_description (GSettingsSchemaKey *key);
|
|
|
|
|
2013-07-02 19:53:04 +02:00
|
|
|
G_END_DECLS
|
|
|
|
|
2011-11-15 09:00:16 +01:00
|
|
|
#endif /* __G_SETTINGS_SCHEMA_H__ */
|