add boxed types for GSettingSchema{,Source}

This commit is contained in:
Ryan Lortie 2011-11-15 12:28:28 +00:00
parent c25a36c920
commit 269c999463
3 changed files with 12 additions and 1 deletions

View File

@ -1098,10 +1098,12 @@ g_settings_backend_get_default
g_keyfile_settings_backend_new
g_memory_settings_backend_new
g_null_settings_backend_new
g_settings_schema_source_get_type
g_settings_schema_source_get_default
g_settings_schema_source_lookup
g_settings_schema_source_ref
g_settings_schema_source_unref
g_settings_schema_get_type
g_settings_schema_ref
g_settings_schema_unref
g_settings_schema_get_id

View File

@ -43,6 +43,9 @@ struct _GSettingsSchema
typedef struct _GSettingsSchemaSource GSettingsSchemaSource;
G_DEFINE_BOXED_TYPE (GSettingsSchemaSource, g_settings_schema_source, g_settings_schema_source_ref, g_settings_schema_source_unref)
G_DEFINE_BOXED_TYPE (GSettingsSchema, g_settings_schema, g_settings_schema_ref, g_settings_schema_unref)
struct _GSettingsSchemaSource
{
GSettingsSchemaSource *parent;

View File

@ -21,11 +21,14 @@
#ifndef __G_SETTINGS_SCHEMA_H__
#define __G_SETTINGS_SCHEMA_H__
#include <glib.h>
#include <glib-object.h>
typedef struct _GSettingsSchemaSource GSettingsSchemaSource;
typedef struct _GSettingsSchema GSettingsSchema;
#define G_TYPE_SETTINGS_SCHEMA_SOURCE (g_settings_schema_source_get_type ())
GType g_settings_schema_source_get_type (void) G_GNUC_CONST;
GSettingsSchemaSource * g_settings_schema_source_get_default (void);
GSettingsSchemaSource * g_settings_schema_source_ref (GSettingsSchemaSource *source);
void g_settings_schema_source_unref (GSettingsSchemaSource *source);
@ -34,6 +37,9 @@ GSettingsSchema * g_settings_schema_source_lookup (GSettin
const gchar *schema_id,
gboolean recursive);
#define G_TYPE_SETTINGS_SCHEMA (g_settings_schema_get_type ())
GType g_settings_schema_get_type (void) G_GNUC_CONST;
GSettingsSchema * g_settings_schema_ref (GSettingsSchema *schema);
void g_settings_schema_unref (GSettingsSchema *schema);