add boxed types for GSettingSchema{,Source}
authorRyan Lortie <desrt@desrt.ca>
Tue, 15 Nov 2011 12:28:28 +0000 (12:28 +0000)
committerRyan Lortie <desrt@desrt.ca>
Thu, 17 Nov 2011 14:03:39 +0000 (14:03 +0000)
gio/gio.symbols
gio/gsettingsschema.c
gio/gsettingsschema.h

index 39b2c20..a370a6e 100644 (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
index 46a14d2..21f3307 100644 (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;
index 8ac7958..a9f3449 100644 (file)
 #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);