mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 15:36:17 +01:00
add boxed types for GSettingSchema{,Source}
This commit is contained in:
parent
c25a36c920
commit
269c999463
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user