[glib/wip/schemasource: 21/24] add boxed types for GSettingSchema{, Source}
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/schemasource: 21/24] add boxed types for GSettingSchema{, Source}
- Date: Tue, 15 Nov 2011 15:46:48 +0000 (UTC)
commit 552ce7589439c3efda55560891b18af3af7cd89c
Author: Ryan Lortie <desrt desrt ca>
Date: Tue Nov 15 12:28:28 2011 +0000
add boxed types for GSettingSchema{,Source}
gio/gio.symbols | 2 ++
gio/gsettingsschema.c | 3 +++
gio/gsettingsschema.h | 8 +++++++-
3 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/gio/gio.symbols b/gio/gio.symbols
index beb6bbd..6a22d77 100644
--- a/gio/gio.symbols
+++ b/gio/gio.symbols
@@ -1096,10 +1096,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
diff --git a/gio/gsettingsschema.c b/gio/gsettingsschema.c
index 46a14d2..21f3307 100644
--- a/gio/gsettingsschema.c
+++ b/gio/gsettingsschema.c
@@ -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;
diff --git a/gio/gsettingsschema.h b/gio/gsettingsschema.h
index 8ac7958..a9f3449 100644
--- a/gio/gsettingsschema.h
+++ b/gio/gsettingsschema.h
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]