1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
/*
* Copyright © 2008, 2010, 2022 Christian Persch
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#include <gio/gio.h>
GSettings* terminal_g_settings_new (GSettingsBackend* backend,
GSettingsSchemaSource* source,
char const* schema_id);
GSettings* terminal_g_settings_new_with_path (GSettingsBackend* backend,
GSettingsSchemaSource* source,
char const* schema_id,
char const* path);
void terminal_g_settings_backend_clone_schema(GSettingsBackend* backend,
GSettingsSchemaSource*schema_source,
char const* schema_id,
char const* path,
char const* new_path,
GTree* tree);
gboolean terminal_g_settings_backend_erase_path(GSettingsBackend* backend,
GSettingsSchemaSource* schema_source,
char const* schema_id,
char const* path);
GTree* terminal_g_settings_backend_create_tree(void);
void terminal_g_settings_backend_print_tree(GTree* tree);
GSettingsSchemaSource* terminal_g_settings_schema_source_get_default(void);
GTree* terminal_g_settings_backend_create_tree(void);
// BEGIN copied from glib/gio/gsettingsbackendinternal.h
/*
* Copyright © 2009, 2010 Codethink Limited
* Copyright © 2010 Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*
* Authors: Ryan Lortie <desrt@desrt.ca>
* Matthias Clasen <mclasen@redhat.com>
*/
GPermission* terminal_g_settings_backend_get_permission(GSettingsBackend* backend,
char const*path);
gboolean terminal_g_settings_backend_get_writable(GSettingsBackend* backend,
const char* key);
GVariant* terminal_g_settings_backend_read(GSettingsBackend* backend,
char const* key,
GVariantType const* expected_type,
gboolean default_value);
GVariant* terminal_g_settings_backend_read_user_value(GSettingsBackend* backend,
char const* key,
GVariantType const* expected_type);
void terminal_g_settings_backend_reset(GSettingsBackend* backend,
char const* key,
void* origin_tag);
void terminal_g_settings_backend_subscribe(GSettingsBackend* backend,
const char* name);
void terminal_g_settings_backend_sync(GSettingsBackend* backend);
void terminal_g_settings_backend_unsubscribe(GSettingsBackend* backend,
const char* name);
gboolean terminal_g_settings_backend_write(GSettingsBackend* backend,
char const* key,
GVariant* value,
void* origin_tag);
gboolean terminal_g_settings_backend_write_tree(GSettingsBackend* backend,
GTree* tree,
void* origin_tag);
// END copied from glib
GVariant* terminal_g_variant_wrap(GVariant* variant);
GVariant* terminal_g_variant_unwrap(GVariant* variant);
|