mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-09 12:25:48 +01:00
registrybackend: use G_DECLARE_FINAL_TYPE
This commit is contained in:
parent
2d7cac366d
commit
b0776ddd18
@ -154,15 +154,9 @@ typedef struct
|
|||||||
HANDLE message_sent_event, message_received_event;
|
HANDLE message_sent_event, message_received_event;
|
||||||
} WatchThreadState;
|
} WatchThreadState;
|
||||||
|
|
||||||
#define G_TYPE_REGISTRY_BACKEND (g_registry_backend_get_type ())
|
G_DECLARE_FINAL_TYPE (GRegistryBackend, g_registry_backend, G, REGISTRY_BACKEND, GSettingsBackend)
|
||||||
#define G_REGISTRY_BACKEND(inst) (G_TYPE_CHECK_INSTANCE_CAST ((inst), \
|
|
||||||
G_TYPE_REGISTRY_BACKEND, GRegistryBackend))
|
|
||||||
#define G_IS_REGISTRY_BACKEND(inst) (G_TYPE_CHECK_INSTANCE_TYPE ((inst), \
|
|
||||||
G_TYPE_REGISTRY_BACKEND))
|
|
||||||
|
|
||||||
typedef GSettingsBackendClass GRegistryBackendClass;
|
struct _GRegistryBackend {
|
||||||
|
|
||||||
typedef struct {
|
|
||||||
GSettingsBackend parent_instance;
|
GSettingsBackend parent_instance;
|
||||||
|
|
||||||
char *base_path;
|
char *base_path;
|
||||||
@ -173,7 +167,7 @@ typedef struct {
|
|||||||
GNode *cache_root;
|
GNode *cache_root;
|
||||||
|
|
||||||
WatchThreadState *watch;
|
WatchThreadState *watch;
|
||||||
} GRegistryBackend;
|
};
|
||||||
|
|
||||||
G_DEFINE_TYPE_WITH_CODE (GRegistryBackend,
|
G_DEFINE_TYPE_WITH_CODE (GRegistryBackend,
|
||||||
g_registry_backend,
|
g_registry_backend,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user