Blame gio/gsettingsschema-internal.h

Packit ae235b
/*
Packit ae235b
 * Copyright © 2010 Codethink Limited
Packit ae235b
 *
Packit ae235b
 * This library is free software; you can redistribute it and/or
Packit ae235b
 * modify it under the terms of the GNU Lesser General Public
Packit ae235b
 * License as published by the Free Software Foundation; either
Packit ae235b
 * version 2.1 of the License, or (at your option) any later version.
Packit ae235b
 *
Packit ae235b
 * This library is distributed in the hope that it will be useful,
Packit ae235b
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit ae235b
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit ae235b
 * Lesser General Public License for more details.
Packit ae235b
 *
Packit ae235b
 * You should have received a copy of the GNU Lesser General Public
Packit ae235b
 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
Packit ae235b
 */
Packit ae235b
Packit ae235b
#ifndef __G_SETTINGS_SCHEMA_INTERNAL_H__
Packit ae235b
#define __G_SETTINGS_SCHEMA_INTERNAL_H__
Packit ae235b
Packit ae235b
#include "gsettingsschema.h"
Packit ae235b
Packit ae235b
struct _GSettingsSchemaKey
Packit ae235b
{
Packit ae235b
  GSettingsSchema *schema;
Packit ae235b
  const gchar *name;
Packit ae235b
Packit ae235b
  guint is_flags : 1;
Packit ae235b
  guint is_enum  : 1;
Packit ae235b
Packit ae235b
  const guint32 *strinfo;
Packit ae235b
  gsize strinfo_length;
Packit ae235b
Packit ae235b
  const gchar *unparsed;
Packit ae235b
  gchar lc_char;
Packit ae235b
Packit ae235b
  const GVariantType *type;
Packit ae235b
  GVariant *minimum, *maximum;
Packit ae235b
  GVariant *default_value;
Packit ae235b
Packit ae235b
  gint ref_count;
Packit ae235b
};
Packit ae235b
Packit ae235b
const gchar *           g_settings_schema_get_gettext_domain            (GSettingsSchema  *schema);
Packit ae235b
GVariantIter *          g_settings_schema_get_value                     (GSettingsSchema  *schema,
Packit ae235b
                                                                         const gchar      *key);
Packit ae235b
const GQuark *          g_settings_schema_list                          (GSettingsSchema  *schema,
Packit ae235b
                                                                         gint             *n_items);
Packit ae235b
const gchar *           g_settings_schema_get_string                    (GSettingsSchema  *schema,
Packit ae235b
                                                                         const gchar      *key);
Packit ae235b
Packit ae235b
void                    g_settings_schema_key_init                      (GSettingsSchemaKey *key,
Packit ae235b
                                                                         GSettingsSchema    *schema,
Packit ae235b
                                                                         const gchar        *name);
Packit ae235b
void                    g_settings_schema_key_clear                     (GSettingsSchemaKey *key);
Packit ae235b
gboolean                g_settings_schema_key_type_check                (GSettingsSchemaKey *key,
Packit ae235b
                                                                         GVariant           *value);
Packit ae235b
GVariant *              g_settings_schema_key_range_fixup               (GSettingsSchemaKey *key,
Packit ae235b
                                                                         GVariant           *value);
Packit ae235b
GVariant *              g_settings_schema_key_get_translated_default    (GSettingsSchemaKey *key);
Packit ae235b
Packit ae235b
gint                    g_settings_schema_key_to_enum                   (GSettingsSchemaKey *key,
Packit ae235b
                                                                         GVariant           *value);
Packit ae235b
GVariant *              g_settings_schema_key_from_enum                 (GSettingsSchemaKey *key,
Packit ae235b
                                                                         gint                value);
Packit ae235b
guint                   g_settings_schema_key_to_flags                  (GSettingsSchemaKey *key,
Packit ae235b
                                                                         GVariant           *value);
Packit ae235b
GVariant *              g_settings_schema_key_from_flags                (GSettingsSchemaKey *key,
Packit ae235b
                                                                         guint               value);
Packit ae235b
Packit ae235b
#endif /* __G_SETTINGS_SCHEMA_INTERNAL_H__ */