@girs/gconf-2.0 2.0.0-3.2.6 → 2.0.0-3.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/gconf-2.0.d.cts +103 -103
- package/gconf-2.0.d.ts +103 -103
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for GConf-2.0, generated from library version 2.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.
|
|
8
|
+
GJS TypeScript type definitions for GConf-2.0, generated from library version 2.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.7.
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
## Install
|
package/gconf-2.0.d.cts
CHANGED
|
@@ -57,13 +57,13 @@ export enum ValueType {
|
|
|
57
57
|
export enum UnsetFlags {
|
|
58
58
|
NAMES,
|
|
59
59
|
}
|
|
60
|
-
export function concat_dir_and_key(dir: string
|
|
60
|
+
export function concat_dir_and_key(dir: string, key: string): string | null
|
|
61
61
|
/**
|
|
62
62
|
* Detach from the config server and release
|
|
63
63
|
* all related resources
|
|
64
64
|
*/
|
|
65
65
|
export function debug_shutdown(): number
|
|
66
|
-
export function enum_to_string(lookup_table: EnumStringPair, enum_value: number): string
|
|
66
|
+
export function enum_to_string(lookup_table: EnumStringPair, enum_value: number): string
|
|
67
67
|
export function error_quark(): GLib.Quark
|
|
68
68
|
/**
|
|
69
69
|
* Escape `arbitrary_text` such that it's a valid key element (i.e. one
|
|
@@ -75,13 +75,13 @@ export function error_quark(): GLib.Quark
|
|
|
75
75
|
* @param len length of `arbitrary_text` in bytes, or -1 if `arbitrary_text` is nul-terminated
|
|
76
76
|
* @returns a nul-terminated valid GConf key
|
|
77
77
|
*/
|
|
78
|
-
export function escape_key(arbitrary_text: string
|
|
78
|
+
export function escape_key(arbitrary_text: string, len: number): string | null
|
|
79
79
|
export function init(argc: number, argv: string | null): boolean
|
|
80
80
|
export function is_initialized(): boolean
|
|
81
|
-
export function key_is_below(above: string
|
|
81
|
+
export function key_is_below(above: string, below: string): boolean
|
|
82
82
|
export function postinit(app: any | null, mod_info: any | null): void
|
|
83
83
|
export function preinit(app: any | null, mod_info: any | null): void
|
|
84
|
-
export function string_to_enum(lookup_table: EnumStringPair, str: string
|
|
84
|
+
export function string_to_enum(lookup_table: EnumStringPair, str: string, enum_value_retloc: number): boolean
|
|
85
85
|
/**
|
|
86
86
|
* Converts a string escaped with gconf_escape_key() back into its original
|
|
87
87
|
* form.
|
|
@@ -89,12 +89,12 @@ export function string_to_enum(lookup_table: EnumStringPair, str: string | null,
|
|
|
89
89
|
* @param len length of `escaped_key` in bytes, or -1 if `escaped_key` is nul-terminated
|
|
90
90
|
* @returns the original string that was escaped to create @escaped_key
|
|
91
91
|
*/
|
|
92
|
-
export function unescape_key(escaped_key: string
|
|
92
|
+
export function unescape_key(escaped_key: string, len: number): string | null
|
|
93
93
|
export function unique_key(): string | null
|
|
94
|
-
export function valid_key(key: string
|
|
95
|
-
export function value_decode(encoded: string
|
|
94
|
+
export function valid_key(key: string, why_invalid: string | null): boolean
|
|
95
|
+
export function value_decode(encoded: string): Value
|
|
96
96
|
export interface ChangeSetForeachFunc {
|
|
97
|
-
(cs: ChangeSet, key: string
|
|
97
|
+
(cs: ChangeSet, key: string, value: Value): void
|
|
98
98
|
}
|
|
99
99
|
export interface ClientErrorHandlerFunc {
|
|
100
100
|
(client: Client, error: GLib.Error): void
|
|
@@ -103,10 +103,10 @@ export interface ClientNotifyFunc {
|
|
|
103
103
|
(client: Client, cnxn_id: number, entry: Entry): void
|
|
104
104
|
}
|
|
105
105
|
export interface ListenersForeach {
|
|
106
|
-
(location: string
|
|
106
|
+
(location: string, cnxn_id: number, listener_data: any | null): void
|
|
107
107
|
}
|
|
108
108
|
export interface ListenersPredicate {
|
|
109
|
-
(location: string
|
|
109
|
+
(location: string, cnxn_id: number, listener_data: any | null): boolean
|
|
110
110
|
}
|
|
111
111
|
export module Client {
|
|
112
112
|
|
|
@@ -149,7 +149,7 @@ export interface Client {
|
|
|
149
149
|
|
|
150
150
|
// Owm methods of GConf-2.0.GConf.Client
|
|
151
151
|
|
|
152
|
-
add_dir(dir: string
|
|
152
|
+
add_dir(dir: string, preload: ClientPreloadType): void
|
|
153
153
|
/**
|
|
154
154
|
* Lists the subdirectories in `dir`. The returned list contains
|
|
155
155
|
* allocated strings. Each string is the absolute path of a
|
|
@@ -159,7 +159,7 @@ export interface Client {
|
|
|
159
159
|
* @param dir directory to get subdirectories from.
|
|
160
160
|
* @returns List of allocated subdirectory names.
|
|
161
161
|
*/
|
|
162
|
-
all_dirs(dir: string
|
|
162
|
+
all_dirs(dir: string): string[]
|
|
163
163
|
/**
|
|
164
164
|
* Lists the key-value pairs in `dir`. Does not list subdirectories; for
|
|
165
165
|
* that use gconf_client_all_dirs(). The returned list contains #GConfEntry
|
|
@@ -171,46 +171,46 @@ export interface Client {
|
|
|
171
171
|
* @param dir directory to list.
|
|
172
172
|
* @returns List of #GConfEntry.
|
|
173
173
|
*/
|
|
174
|
-
all_entries(dir: string
|
|
175
|
-
change_set_from_currentv(keys: string
|
|
174
|
+
all_entries(dir: string): Entry[]
|
|
175
|
+
change_set_from_currentv(keys: string): ChangeSet
|
|
176
176
|
clear_cache(): void
|
|
177
177
|
commit_change_set(cs: ChangeSet, remove_committed: boolean): boolean
|
|
178
|
-
dir_exists(dir: string
|
|
178
|
+
dir_exists(dir: string): boolean
|
|
179
179
|
error(error: GLib.Error): void
|
|
180
|
-
get(key: string
|
|
181
|
-
get_bool(key: string
|
|
182
|
-
get_default_from_schema(key: string
|
|
183
|
-
get_entry(key: string
|
|
184
|
-
get_float(key: string
|
|
185
|
-
get_int(key: string
|
|
186
|
-
get_pair(key: string
|
|
187
|
-
get_string(key: string
|
|
188
|
-
get_without_default(key: string
|
|
189
|
-
key_is_writable(key: string
|
|
190
|
-
notify(key: string
|
|
191
|
-
notify_add(namespace_section: string
|
|
180
|
+
get(key: string): Value
|
|
181
|
+
get_bool(key: string): boolean
|
|
182
|
+
get_default_from_schema(key: string): Value
|
|
183
|
+
get_entry(key: string, locale: string, use_schema_default: boolean): Entry
|
|
184
|
+
get_float(key: string): number
|
|
185
|
+
get_int(key: string): number
|
|
186
|
+
get_pair(key: string, car_type: ValueType, cdr_type: ValueType, car_retloc: any | null, cdr_retloc: any | null): boolean
|
|
187
|
+
get_string(key: string): string | null
|
|
188
|
+
get_without_default(key: string): Value
|
|
189
|
+
key_is_writable(key: string): boolean
|
|
190
|
+
notify(key: string): void
|
|
191
|
+
notify_add(namespace_section: string, func: ClientNotifyFunc): number
|
|
192
192
|
notify_remove(cnxn: number): void
|
|
193
|
-
preload(dirname: string
|
|
194
|
-
recursive_unset(key: string
|
|
195
|
-
remove_dir(dir: string
|
|
193
|
+
preload(dirname: string, type: ClientPreloadType): void
|
|
194
|
+
recursive_unset(key: string, flags: UnsetFlags): boolean
|
|
195
|
+
remove_dir(dir: string): void
|
|
196
196
|
reverse_change_set(cs: ChangeSet): ChangeSet
|
|
197
|
-
set(key: string
|
|
198
|
-
set_bool(key: string
|
|
197
|
+
set(key: string, val: Value): void
|
|
198
|
+
set_bool(key: string, val: boolean): boolean
|
|
199
199
|
set_error_handling(mode: ClientErrorHandlingMode): void
|
|
200
|
-
set_float(key: string
|
|
201
|
-
set_int(key: string
|
|
202
|
-
set_pair(key: string
|
|
203
|
-
set_string(key: string
|
|
200
|
+
set_float(key: string, val: number): boolean
|
|
201
|
+
set_int(key: string, val: number): boolean
|
|
202
|
+
set_pair(key: string, car_type: ValueType, cdr_type: ValueType, address_of_car: any | null, address_of_cdr: any | null): boolean
|
|
203
|
+
set_string(key: string, val: string): boolean
|
|
204
204
|
suggest_sync(): void
|
|
205
205
|
unreturned_error(error: GLib.Error): void
|
|
206
|
-
unset(key: string
|
|
207
|
-
value_changed(key: string
|
|
206
|
+
unset(key: string): boolean
|
|
207
|
+
value_changed(key: string, value: Value): void
|
|
208
208
|
|
|
209
209
|
// Own virtual methods of GConf-2.0.GConf.Client
|
|
210
210
|
|
|
211
211
|
vfunc_error(error: GLib.Error): void
|
|
212
212
|
vfunc_unreturned_error(error: GLib.Error): void
|
|
213
|
-
vfunc_value_changed(key: string
|
|
213
|
+
vfunc_value_changed(key: string, value: Value): void
|
|
214
214
|
|
|
215
215
|
// Own signals of GConf-2.0.GConf.Client
|
|
216
216
|
|
|
@@ -257,7 +257,7 @@ export interface ChangeSet {
|
|
|
257
257
|
|
|
258
258
|
// Owm methods of GConf-2.0.GConf.ChangeSet
|
|
259
259
|
|
|
260
|
-
check_value(key: string
|
|
260
|
+
check_value(key: string, value_retloc: Value): boolean
|
|
261
261
|
clear(): void
|
|
262
262
|
/**
|
|
263
263
|
* Iterates over a #GConfChangeSet by calling a
|
|
@@ -269,17 +269,17 @@ export interface ChangeSet {
|
|
|
269
269
|
*/
|
|
270
270
|
foreach(func: ChangeSetForeachFunc): void
|
|
271
271
|
ref(): ChangeSet
|
|
272
|
-
remove(key: string
|
|
273
|
-
set(key: string
|
|
274
|
-
set_bool(key: string
|
|
275
|
-
set_float(key: string
|
|
276
|
-
set_int(key: string
|
|
277
|
-
set_nocopy(key: string
|
|
278
|
-
set_pair(key: string
|
|
279
|
-
set_string(key: string
|
|
272
|
+
remove(key: string): void
|
|
273
|
+
set(key: string, value: Value): void
|
|
274
|
+
set_bool(key: string, val: boolean): void
|
|
275
|
+
set_float(key: string, val: number): void
|
|
276
|
+
set_int(key: string, val: number): void
|
|
277
|
+
set_nocopy(key: string, value: Value): void
|
|
278
|
+
set_pair(key: string, car_type: ValueType, cdr_type: ValueType, address_of_car: any | null, address_of_cdr: any | null): void
|
|
279
|
+
set_string(key: string, val: string): void
|
|
280
280
|
size(): number
|
|
281
281
|
unref(): void
|
|
282
|
-
unset(key: string
|
|
282
|
+
unset(key: string): void
|
|
283
283
|
}
|
|
284
284
|
|
|
285
285
|
export class ChangeSet {
|
|
@@ -299,7 +299,7 @@ export interface ClientClass {
|
|
|
299
299
|
// Own fields of GConf-2.0.GConf.ClientClass
|
|
300
300
|
|
|
301
301
|
parent_class: GObject.ObjectClass
|
|
302
|
-
value_changed: (client: Client, key: string
|
|
302
|
+
value_changed: (client: Client, key: string, value: Value) => void
|
|
303
303
|
unreturned_error: (client: Client, error: GLib.Error) => void
|
|
304
304
|
error: (client: Client, error: GLib.Error) => void
|
|
305
305
|
pad1: GLib.Func
|
|
@@ -326,7 +326,7 @@ export interface Engine {
|
|
|
326
326
|
* @param dir Directory to get subdirectories from.
|
|
327
327
|
* @returns List of allocated subdirectory names.
|
|
328
328
|
*/
|
|
329
|
-
all_dirs(dir: string
|
|
329
|
+
all_dirs(dir: string): string[]
|
|
330
330
|
/**
|
|
331
331
|
* Lists the key-value pairs in `dir`. Does not list subdirectories; for
|
|
332
332
|
* that use gconf_engine_all_dirs(). The returned list contains #GConfEntry
|
|
@@ -337,40 +337,40 @@ export interface Engine {
|
|
|
337
337
|
* @param dir Directory to list.
|
|
338
338
|
* @returns List of #GConfEntry.
|
|
339
339
|
*/
|
|
340
|
-
all_entries(dir: string
|
|
341
|
-
associate_schema(key: string
|
|
342
|
-
change_set_from_current(err: GLib.Error, first_key: string
|
|
343
|
-
change_set_from_currentv(keys: string
|
|
340
|
+
all_entries(dir: string): Entry[]
|
|
341
|
+
associate_schema(key: string, schema_key: string): boolean
|
|
342
|
+
change_set_from_current(err: GLib.Error, first_key: string, ...args: any): ChangeSet
|
|
343
|
+
change_set_from_currentv(keys: string): ChangeSet
|
|
344
344
|
commit_change_set(cs: ChangeSet, remove_committed: boolean): boolean
|
|
345
|
-
dir_exists(dir: string
|
|
346
|
-
get(key: string
|
|
347
|
-
get_bool(key: string
|
|
348
|
-
get_default_from_schema(key: string
|
|
349
|
-
get_entry(key: string
|
|
350
|
-
get_float(key: string
|
|
351
|
-
get_full(key: string
|
|
352
|
-
get_int(key: string
|
|
353
|
-
get_pair(key: string
|
|
354
|
-
get_string(key: string
|
|
345
|
+
dir_exists(dir: string): boolean
|
|
346
|
+
get(key: string): Value
|
|
347
|
+
get_bool(key: string): boolean
|
|
348
|
+
get_default_from_schema(key: string): Value
|
|
349
|
+
get_entry(key: string, locale: string, use_schema_default: boolean): Entry
|
|
350
|
+
get_float(key: string): number
|
|
351
|
+
get_full(key: string, locale: string, use_schema_default: boolean, is_default_p: boolean, is_writable_p: boolean): Value
|
|
352
|
+
get_int(key: string): number
|
|
353
|
+
get_pair(key: string, car_type: ValueType, cdr_type: ValueType, car_retloc: any | null, cdr_retloc: any | null): boolean
|
|
354
|
+
get_string(key: string): string | null
|
|
355
355
|
get_user_data(): any | null
|
|
356
|
-
get_with_locale(key: string
|
|
357
|
-
get_without_default(key: string
|
|
358
|
-
key_is_writable(key: string
|
|
356
|
+
get_with_locale(key: string, locale: string): Value
|
|
357
|
+
get_without_default(key: string): Value
|
|
358
|
+
key_is_writable(key: string): boolean
|
|
359
359
|
notify_remove(cnxn: number): void
|
|
360
360
|
ref(): void
|
|
361
|
-
remove_dir(dir: string
|
|
361
|
+
remove_dir(dir: string): void
|
|
362
362
|
reverse_change_set(cs: ChangeSet): ChangeSet
|
|
363
|
-
set(key: string
|
|
364
|
-
set_bool(key: string
|
|
365
|
-
set_float(key: string
|
|
366
|
-
set_int(key: string
|
|
367
|
-
set_list(key: string
|
|
368
|
-
set_pair(key: string
|
|
369
|
-
set_string(key: string
|
|
363
|
+
set(key: string, value: Value): boolean
|
|
364
|
+
set_bool(key: string, val: boolean): boolean
|
|
365
|
+
set_float(key: string, val: number): boolean
|
|
366
|
+
set_int(key: string, val: number): boolean
|
|
367
|
+
set_list(key: string, list_type: ValueType, list: any[]): boolean
|
|
368
|
+
set_pair(key: string, car_type: ValueType, cdr_type: ValueType, address_of_car: any | null, address_of_cdr: any | null): boolean
|
|
369
|
+
set_string(key: string, val: string): boolean
|
|
370
370
|
set_user_data(data: any | null, dnotify: GLib.DestroyNotify): void
|
|
371
371
|
suggest_sync(): void
|
|
372
372
|
unref(): void
|
|
373
|
-
unset(key: string
|
|
373
|
+
unset(key: string): boolean
|
|
374
374
|
}
|
|
375
375
|
|
|
376
376
|
/**
|
|
@@ -398,13 +398,13 @@ export interface Entry {
|
|
|
398
398
|
free(): void
|
|
399
399
|
get_is_default(): boolean
|
|
400
400
|
get_is_writable(): boolean
|
|
401
|
-
get_key(): string
|
|
402
|
-
get_schema_name(): string
|
|
401
|
+
get_key(): string
|
|
402
|
+
get_schema_name(): string
|
|
403
403
|
get_value(): Value
|
|
404
404
|
ref(): Entry
|
|
405
405
|
set_is_default(is_default: boolean): void
|
|
406
406
|
set_is_writable(is_writable: boolean): void
|
|
407
|
-
set_schema_name(name: string
|
|
407
|
+
set_schema_name(name: string): void
|
|
408
408
|
set_value(val: Value): void
|
|
409
409
|
set_value_nocopy(val: Value): void
|
|
410
410
|
steal_value(): Value
|
|
@@ -419,8 +419,8 @@ export class Entry {
|
|
|
419
419
|
|
|
420
420
|
// Constructors of GConf-2.0.GConf.Entry
|
|
421
421
|
|
|
422
|
-
constructor(key: string
|
|
423
|
-
static new(key: string
|
|
422
|
+
constructor(key: string, val: Value)
|
|
423
|
+
static new(key: string, val: Value): Entry
|
|
424
424
|
static new_nocopy(key: string | null, val: Value): Entry
|
|
425
425
|
}
|
|
426
426
|
|
|
@@ -429,7 +429,7 @@ export interface EnumStringPair {
|
|
|
429
429
|
// Own fields of GConf-2.0.GConf.EnumStringPair
|
|
430
430
|
|
|
431
431
|
enum_value: number
|
|
432
|
-
str: string
|
|
432
|
+
str: string
|
|
433
433
|
}
|
|
434
434
|
|
|
435
435
|
export class EnumStringPair {
|
|
@@ -443,12 +443,12 @@ export interface Listeners {
|
|
|
443
443
|
|
|
444
444
|
// Owm methods of GConf-2.0.GConf.Listeners
|
|
445
445
|
|
|
446
|
-
add(listen_point: string
|
|
446
|
+
add(listen_point: string, listener_data: any | null, destroy_notify: GLib.FreeFunc): number
|
|
447
447
|
count(): number
|
|
448
448
|
foreach(callback: ListenersForeach): void
|
|
449
449
|
free(): void
|
|
450
|
-
get_data(cnxn_id: number, listener_data_p: any | null, location_p: string
|
|
451
|
-
notify(all_above: string
|
|
450
|
+
get_data(cnxn_id: number, listener_data_p: any | null, location_p: string): boolean
|
|
451
|
+
notify(all_above: string, callback: any): void
|
|
452
452
|
remove(cnxn_id: number): void
|
|
453
453
|
remove_if(predicate: ListenersPredicate): void
|
|
454
454
|
}
|
|
@@ -479,11 +479,11 @@ export interface MetaInfo {
|
|
|
479
479
|
// Owm methods of GConf-2.0.GConf.MetaInfo
|
|
480
480
|
|
|
481
481
|
free(): void
|
|
482
|
-
get_mod_user(): string
|
|
483
|
-
get_schema(): string
|
|
482
|
+
get_mod_user(): string
|
|
483
|
+
get_schema(): string
|
|
484
484
|
set_mod_time(mod_time: GLib.Time): void
|
|
485
|
-
set_mod_user(mod_user: string
|
|
486
|
-
set_schema(schema_name: string
|
|
485
|
+
set_mod_user(mod_user: string): void
|
|
486
|
+
set_schema(schema_name: string): void
|
|
487
487
|
}
|
|
488
488
|
|
|
489
489
|
export class MetaInfo {
|
|
@@ -502,20 +502,20 @@ export interface Schema {
|
|
|
502
502
|
get_cdr_type(): ValueType
|
|
503
503
|
get_default_value(): Value
|
|
504
504
|
get_list_type(): ValueType
|
|
505
|
-
get_locale(): string
|
|
506
|
-
get_long_desc(): string
|
|
507
|
-
get_owner(): string
|
|
508
|
-
get_short_desc(): string
|
|
505
|
+
get_locale(): string
|
|
506
|
+
get_long_desc(): string
|
|
507
|
+
get_owner(): string
|
|
508
|
+
get_short_desc(): string
|
|
509
509
|
get_type(): ValueType
|
|
510
510
|
set_car_type(type: ValueType): void
|
|
511
511
|
set_cdr_type(type: ValueType): void
|
|
512
512
|
set_default_value(val: Value): void
|
|
513
513
|
set_default_value_nocopy(val: Value): void
|
|
514
514
|
set_list_type(type: ValueType): void
|
|
515
|
-
set_locale(locale: string
|
|
516
|
-
set_long_desc(desc: string
|
|
517
|
-
set_owner(owner: string
|
|
518
|
-
set_short_desc(desc: string
|
|
515
|
+
set_locale(locale: string): void
|
|
516
|
+
set_long_desc(desc: string): void
|
|
517
|
+
set_owner(owner: string): void
|
|
518
|
+
set_short_desc(desc: string): void
|
|
519
519
|
set_type(type: ValueType): void
|
|
520
520
|
}
|
|
521
521
|
|
|
@@ -557,7 +557,7 @@ export interface Value {
|
|
|
557
557
|
*/
|
|
558
558
|
get_list(): Value[]
|
|
559
559
|
get_list_type(): ValueType
|
|
560
|
-
get_string(): string
|
|
560
|
+
get_string(): string
|
|
561
561
|
set_bool(the_bool: boolean): void
|
|
562
562
|
set_car(car: Value): void
|
|
563
563
|
set_car_nocopy(car: Value): void
|
|
@@ -566,7 +566,7 @@ export interface Value {
|
|
|
566
566
|
set_float(the_float: number): void
|
|
567
567
|
set_int(the_int: number): void
|
|
568
568
|
set_list_type(type: ValueType): void
|
|
569
|
-
set_string(the_str: string
|
|
569
|
+
set_string(the_str: string): void
|
|
570
570
|
to_string(): string | null
|
|
571
571
|
}
|
|
572
572
|
|
|
@@ -580,8 +580,8 @@ export class Value {
|
|
|
580
580
|
|
|
581
581
|
constructor(type: ValueType)
|
|
582
582
|
static new(type: ValueType): Value
|
|
583
|
-
static new_from_string(type: ValueType, str: string
|
|
584
|
-
static decode(encoded: string
|
|
583
|
+
static new_from_string(type: ValueType, str: string): Value
|
|
584
|
+
static decode(encoded: string): Value
|
|
585
585
|
}
|
|
586
586
|
|
|
587
587
|
/**
|
package/gconf-2.0.d.ts
CHANGED
|
@@ -59,13 +59,13 @@ enum ValueType {
|
|
|
59
59
|
enum UnsetFlags {
|
|
60
60
|
NAMES,
|
|
61
61
|
}
|
|
62
|
-
function concat_dir_and_key(dir: string
|
|
62
|
+
function concat_dir_and_key(dir: string, key: string): string | null
|
|
63
63
|
/**
|
|
64
64
|
* Detach from the config server and release
|
|
65
65
|
* all related resources
|
|
66
66
|
*/
|
|
67
67
|
function debug_shutdown(): number
|
|
68
|
-
function enum_to_string(lookup_table: EnumStringPair, enum_value: number): string
|
|
68
|
+
function enum_to_string(lookup_table: EnumStringPair, enum_value: number): string
|
|
69
69
|
function error_quark(): GLib.Quark
|
|
70
70
|
/**
|
|
71
71
|
* Escape `arbitrary_text` such that it's a valid key element (i.e. one
|
|
@@ -77,13 +77,13 @@ function error_quark(): GLib.Quark
|
|
|
77
77
|
* @param len length of `arbitrary_text` in bytes, or -1 if `arbitrary_text` is nul-terminated
|
|
78
78
|
* @returns a nul-terminated valid GConf key
|
|
79
79
|
*/
|
|
80
|
-
function escape_key(arbitrary_text: string
|
|
80
|
+
function escape_key(arbitrary_text: string, len: number): string | null
|
|
81
81
|
function init(argc: number, argv: string | null): boolean
|
|
82
82
|
function is_initialized(): boolean
|
|
83
|
-
function key_is_below(above: string
|
|
83
|
+
function key_is_below(above: string, below: string): boolean
|
|
84
84
|
function postinit(app: any | null, mod_info: any | null): void
|
|
85
85
|
function preinit(app: any | null, mod_info: any | null): void
|
|
86
|
-
function string_to_enum(lookup_table: EnumStringPair, str: string
|
|
86
|
+
function string_to_enum(lookup_table: EnumStringPair, str: string, enum_value_retloc: number): boolean
|
|
87
87
|
/**
|
|
88
88
|
* Converts a string escaped with gconf_escape_key() back into its original
|
|
89
89
|
* form.
|
|
@@ -91,12 +91,12 @@ function string_to_enum(lookup_table: EnumStringPair, str: string | null, enum_v
|
|
|
91
91
|
* @param len length of `escaped_key` in bytes, or -1 if `escaped_key` is nul-terminated
|
|
92
92
|
* @returns the original string that was escaped to create @escaped_key
|
|
93
93
|
*/
|
|
94
|
-
function unescape_key(escaped_key: string
|
|
94
|
+
function unescape_key(escaped_key: string, len: number): string | null
|
|
95
95
|
function unique_key(): string | null
|
|
96
|
-
function valid_key(key: string
|
|
97
|
-
function value_decode(encoded: string
|
|
96
|
+
function valid_key(key: string, why_invalid: string | null): boolean
|
|
97
|
+
function value_decode(encoded: string): Value
|
|
98
98
|
interface ChangeSetForeachFunc {
|
|
99
|
-
(cs: ChangeSet, key: string
|
|
99
|
+
(cs: ChangeSet, key: string, value: Value): void
|
|
100
100
|
}
|
|
101
101
|
interface ClientErrorHandlerFunc {
|
|
102
102
|
(client: Client, error: GLib.Error): void
|
|
@@ -105,10 +105,10 @@ interface ClientNotifyFunc {
|
|
|
105
105
|
(client: Client, cnxn_id: number, entry: Entry): void
|
|
106
106
|
}
|
|
107
107
|
interface ListenersForeach {
|
|
108
|
-
(location: string
|
|
108
|
+
(location: string, cnxn_id: number, listener_data: any | null): void
|
|
109
109
|
}
|
|
110
110
|
interface ListenersPredicate {
|
|
111
|
-
(location: string
|
|
111
|
+
(location: string, cnxn_id: number, listener_data: any | null): boolean
|
|
112
112
|
}
|
|
113
113
|
module Client {
|
|
114
114
|
|
|
@@ -151,7 +151,7 @@ interface Client {
|
|
|
151
151
|
|
|
152
152
|
// Owm methods of GConf-2.0.GConf.Client
|
|
153
153
|
|
|
154
|
-
add_dir(dir: string
|
|
154
|
+
add_dir(dir: string, preload: ClientPreloadType): void
|
|
155
155
|
/**
|
|
156
156
|
* Lists the subdirectories in `dir`. The returned list contains
|
|
157
157
|
* allocated strings. Each string is the absolute path of a
|
|
@@ -161,7 +161,7 @@ interface Client {
|
|
|
161
161
|
* @param dir directory to get subdirectories from.
|
|
162
162
|
* @returns List of allocated subdirectory names.
|
|
163
163
|
*/
|
|
164
|
-
all_dirs(dir: string
|
|
164
|
+
all_dirs(dir: string): string[]
|
|
165
165
|
/**
|
|
166
166
|
* Lists the key-value pairs in `dir`. Does not list subdirectories; for
|
|
167
167
|
* that use gconf_client_all_dirs(). The returned list contains #GConfEntry
|
|
@@ -173,46 +173,46 @@ interface Client {
|
|
|
173
173
|
* @param dir directory to list.
|
|
174
174
|
* @returns List of #GConfEntry.
|
|
175
175
|
*/
|
|
176
|
-
all_entries(dir: string
|
|
177
|
-
change_set_from_currentv(keys: string
|
|
176
|
+
all_entries(dir: string): Entry[]
|
|
177
|
+
change_set_from_currentv(keys: string): ChangeSet
|
|
178
178
|
clear_cache(): void
|
|
179
179
|
commit_change_set(cs: ChangeSet, remove_committed: boolean): boolean
|
|
180
|
-
dir_exists(dir: string
|
|
180
|
+
dir_exists(dir: string): boolean
|
|
181
181
|
error(error: GLib.Error): void
|
|
182
|
-
get(key: string
|
|
183
|
-
get_bool(key: string
|
|
184
|
-
get_default_from_schema(key: string
|
|
185
|
-
get_entry(key: string
|
|
186
|
-
get_float(key: string
|
|
187
|
-
get_int(key: string
|
|
188
|
-
get_pair(key: string
|
|
189
|
-
get_string(key: string
|
|
190
|
-
get_without_default(key: string
|
|
191
|
-
key_is_writable(key: string
|
|
192
|
-
notify(key: string
|
|
193
|
-
notify_add(namespace_section: string
|
|
182
|
+
get(key: string): Value
|
|
183
|
+
get_bool(key: string): boolean
|
|
184
|
+
get_default_from_schema(key: string): Value
|
|
185
|
+
get_entry(key: string, locale: string, use_schema_default: boolean): Entry
|
|
186
|
+
get_float(key: string): number
|
|
187
|
+
get_int(key: string): number
|
|
188
|
+
get_pair(key: string, car_type: ValueType, cdr_type: ValueType, car_retloc: any | null, cdr_retloc: any | null): boolean
|
|
189
|
+
get_string(key: string): string | null
|
|
190
|
+
get_without_default(key: string): Value
|
|
191
|
+
key_is_writable(key: string): boolean
|
|
192
|
+
notify(key: string): void
|
|
193
|
+
notify_add(namespace_section: string, func: ClientNotifyFunc): number
|
|
194
194
|
notify_remove(cnxn: number): void
|
|
195
|
-
preload(dirname: string
|
|
196
|
-
recursive_unset(key: string
|
|
197
|
-
remove_dir(dir: string
|
|
195
|
+
preload(dirname: string, type: ClientPreloadType): void
|
|
196
|
+
recursive_unset(key: string, flags: UnsetFlags): boolean
|
|
197
|
+
remove_dir(dir: string): void
|
|
198
198
|
reverse_change_set(cs: ChangeSet): ChangeSet
|
|
199
|
-
set(key: string
|
|
200
|
-
set_bool(key: string
|
|
199
|
+
set(key: string, val: Value): void
|
|
200
|
+
set_bool(key: string, val: boolean): boolean
|
|
201
201
|
set_error_handling(mode: ClientErrorHandlingMode): void
|
|
202
|
-
set_float(key: string
|
|
203
|
-
set_int(key: string
|
|
204
|
-
set_pair(key: string
|
|
205
|
-
set_string(key: string
|
|
202
|
+
set_float(key: string, val: number): boolean
|
|
203
|
+
set_int(key: string, val: number): boolean
|
|
204
|
+
set_pair(key: string, car_type: ValueType, cdr_type: ValueType, address_of_car: any | null, address_of_cdr: any | null): boolean
|
|
205
|
+
set_string(key: string, val: string): boolean
|
|
206
206
|
suggest_sync(): void
|
|
207
207
|
unreturned_error(error: GLib.Error): void
|
|
208
|
-
unset(key: string
|
|
209
|
-
value_changed(key: string
|
|
208
|
+
unset(key: string): boolean
|
|
209
|
+
value_changed(key: string, value: Value): void
|
|
210
210
|
|
|
211
211
|
// Own virtual methods of GConf-2.0.GConf.Client
|
|
212
212
|
|
|
213
213
|
vfunc_error(error: GLib.Error): void
|
|
214
214
|
vfunc_unreturned_error(error: GLib.Error): void
|
|
215
|
-
vfunc_value_changed(key: string
|
|
215
|
+
vfunc_value_changed(key: string, value: Value): void
|
|
216
216
|
|
|
217
217
|
// Own signals of GConf-2.0.GConf.Client
|
|
218
218
|
|
|
@@ -259,7 +259,7 @@ interface ChangeSet {
|
|
|
259
259
|
|
|
260
260
|
// Owm methods of GConf-2.0.GConf.ChangeSet
|
|
261
261
|
|
|
262
|
-
check_value(key: string
|
|
262
|
+
check_value(key: string, value_retloc: Value): boolean
|
|
263
263
|
clear(): void
|
|
264
264
|
/**
|
|
265
265
|
* Iterates over a #GConfChangeSet by calling a
|
|
@@ -271,17 +271,17 @@ interface ChangeSet {
|
|
|
271
271
|
*/
|
|
272
272
|
foreach(func: ChangeSetForeachFunc): void
|
|
273
273
|
ref(): ChangeSet
|
|
274
|
-
remove(key: string
|
|
275
|
-
set(key: string
|
|
276
|
-
set_bool(key: string
|
|
277
|
-
set_float(key: string
|
|
278
|
-
set_int(key: string
|
|
279
|
-
set_nocopy(key: string
|
|
280
|
-
set_pair(key: string
|
|
281
|
-
set_string(key: string
|
|
274
|
+
remove(key: string): void
|
|
275
|
+
set(key: string, value: Value): void
|
|
276
|
+
set_bool(key: string, val: boolean): void
|
|
277
|
+
set_float(key: string, val: number): void
|
|
278
|
+
set_int(key: string, val: number): void
|
|
279
|
+
set_nocopy(key: string, value: Value): void
|
|
280
|
+
set_pair(key: string, car_type: ValueType, cdr_type: ValueType, address_of_car: any | null, address_of_cdr: any | null): void
|
|
281
|
+
set_string(key: string, val: string): void
|
|
282
282
|
size(): number
|
|
283
283
|
unref(): void
|
|
284
|
-
unset(key: string
|
|
284
|
+
unset(key: string): void
|
|
285
285
|
}
|
|
286
286
|
|
|
287
287
|
class ChangeSet {
|
|
@@ -301,7 +301,7 @@ interface ClientClass {
|
|
|
301
301
|
// Own fields of GConf-2.0.GConf.ClientClass
|
|
302
302
|
|
|
303
303
|
parent_class: GObject.ObjectClass
|
|
304
|
-
value_changed: (client: Client, key: string
|
|
304
|
+
value_changed: (client: Client, key: string, value: Value) => void
|
|
305
305
|
unreturned_error: (client: Client, error: GLib.Error) => void
|
|
306
306
|
error: (client: Client, error: GLib.Error) => void
|
|
307
307
|
pad1: GLib.Func
|
|
@@ -328,7 +328,7 @@ interface Engine {
|
|
|
328
328
|
* @param dir Directory to get subdirectories from.
|
|
329
329
|
* @returns List of allocated subdirectory names.
|
|
330
330
|
*/
|
|
331
|
-
all_dirs(dir: string
|
|
331
|
+
all_dirs(dir: string): string[]
|
|
332
332
|
/**
|
|
333
333
|
* Lists the key-value pairs in `dir`. Does not list subdirectories; for
|
|
334
334
|
* that use gconf_engine_all_dirs(). The returned list contains #GConfEntry
|
|
@@ -339,40 +339,40 @@ interface Engine {
|
|
|
339
339
|
* @param dir Directory to list.
|
|
340
340
|
* @returns List of #GConfEntry.
|
|
341
341
|
*/
|
|
342
|
-
all_entries(dir: string
|
|
343
|
-
associate_schema(key: string
|
|
344
|
-
change_set_from_current(err: GLib.Error, first_key: string
|
|
345
|
-
change_set_from_currentv(keys: string
|
|
342
|
+
all_entries(dir: string): Entry[]
|
|
343
|
+
associate_schema(key: string, schema_key: string): boolean
|
|
344
|
+
change_set_from_current(err: GLib.Error, first_key: string, ...args: any): ChangeSet
|
|
345
|
+
change_set_from_currentv(keys: string): ChangeSet
|
|
346
346
|
commit_change_set(cs: ChangeSet, remove_committed: boolean): boolean
|
|
347
|
-
dir_exists(dir: string
|
|
348
|
-
get(key: string
|
|
349
|
-
get_bool(key: string
|
|
350
|
-
get_default_from_schema(key: string
|
|
351
|
-
get_entry(key: string
|
|
352
|
-
get_float(key: string
|
|
353
|
-
get_full(key: string
|
|
354
|
-
get_int(key: string
|
|
355
|
-
get_pair(key: string
|
|
356
|
-
get_string(key: string
|
|
347
|
+
dir_exists(dir: string): boolean
|
|
348
|
+
get(key: string): Value
|
|
349
|
+
get_bool(key: string): boolean
|
|
350
|
+
get_default_from_schema(key: string): Value
|
|
351
|
+
get_entry(key: string, locale: string, use_schema_default: boolean): Entry
|
|
352
|
+
get_float(key: string): number
|
|
353
|
+
get_full(key: string, locale: string, use_schema_default: boolean, is_default_p: boolean, is_writable_p: boolean): Value
|
|
354
|
+
get_int(key: string): number
|
|
355
|
+
get_pair(key: string, car_type: ValueType, cdr_type: ValueType, car_retloc: any | null, cdr_retloc: any | null): boolean
|
|
356
|
+
get_string(key: string): string | null
|
|
357
357
|
get_user_data(): any | null
|
|
358
|
-
get_with_locale(key: string
|
|
359
|
-
get_without_default(key: string
|
|
360
|
-
key_is_writable(key: string
|
|
358
|
+
get_with_locale(key: string, locale: string): Value
|
|
359
|
+
get_without_default(key: string): Value
|
|
360
|
+
key_is_writable(key: string): boolean
|
|
361
361
|
notify_remove(cnxn: number): void
|
|
362
362
|
ref(): void
|
|
363
|
-
remove_dir(dir: string
|
|
363
|
+
remove_dir(dir: string): void
|
|
364
364
|
reverse_change_set(cs: ChangeSet): ChangeSet
|
|
365
|
-
set(key: string
|
|
366
|
-
set_bool(key: string
|
|
367
|
-
set_float(key: string
|
|
368
|
-
set_int(key: string
|
|
369
|
-
set_list(key: string
|
|
370
|
-
set_pair(key: string
|
|
371
|
-
set_string(key: string
|
|
365
|
+
set(key: string, value: Value): boolean
|
|
366
|
+
set_bool(key: string, val: boolean): boolean
|
|
367
|
+
set_float(key: string, val: number): boolean
|
|
368
|
+
set_int(key: string, val: number): boolean
|
|
369
|
+
set_list(key: string, list_type: ValueType, list: any[]): boolean
|
|
370
|
+
set_pair(key: string, car_type: ValueType, cdr_type: ValueType, address_of_car: any | null, address_of_cdr: any | null): boolean
|
|
371
|
+
set_string(key: string, val: string): boolean
|
|
372
372
|
set_user_data(data: any | null, dnotify: GLib.DestroyNotify): void
|
|
373
373
|
suggest_sync(): void
|
|
374
374
|
unref(): void
|
|
375
|
-
unset(key: string
|
|
375
|
+
unset(key: string): boolean
|
|
376
376
|
}
|
|
377
377
|
|
|
378
378
|
/**
|
|
@@ -400,13 +400,13 @@ interface Entry {
|
|
|
400
400
|
free(): void
|
|
401
401
|
get_is_default(): boolean
|
|
402
402
|
get_is_writable(): boolean
|
|
403
|
-
get_key(): string
|
|
404
|
-
get_schema_name(): string
|
|
403
|
+
get_key(): string
|
|
404
|
+
get_schema_name(): string
|
|
405
405
|
get_value(): Value
|
|
406
406
|
ref(): Entry
|
|
407
407
|
set_is_default(is_default: boolean): void
|
|
408
408
|
set_is_writable(is_writable: boolean): void
|
|
409
|
-
set_schema_name(name: string
|
|
409
|
+
set_schema_name(name: string): void
|
|
410
410
|
set_value(val: Value): void
|
|
411
411
|
set_value_nocopy(val: Value): void
|
|
412
412
|
steal_value(): Value
|
|
@@ -421,8 +421,8 @@ class Entry {
|
|
|
421
421
|
|
|
422
422
|
// Constructors of GConf-2.0.GConf.Entry
|
|
423
423
|
|
|
424
|
-
constructor(key: string
|
|
425
|
-
static new(key: string
|
|
424
|
+
constructor(key: string, val: Value)
|
|
425
|
+
static new(key: string, val: Value): Entry
|
|
426
426
|
static new_nocopy(key: string | null, val: Value): Entry
|
|
427
427
|
}
|
|
428
428
|
|
|
@@ -431,7 +431,7 @@ interface EnumStringPair {
|
|
|
431
431
|
// Own fields of GConf-2.0.GConf.EnumStringPair
|
|
432
432
|
|
|
433
433
|
enum_value: number
|
|
434
|
-
str: string
|
|
434
|
+
str: string
|
|
435
435
|
}
|
|
436
436
|
|
|
437
437
|
class EnumStringPair {
|
|
@@ -445,12 +445,12 @@ interface Listeners {
|
|
|
445
445
|
|
|
446
446
|
// Owm methods of GConf-2.0.GConf.Listeners
|
|
447
447
|
|
|
448
|
-
add(listen_point: string
|
|
448
|
+
add(listen_point: string, listener_data: any | null, destroy_notify: GLib.FreeFunc): number
|
|
449
449
|
count(): number
|
|
450
450
|
foreach(callback: ListenersForeach): void
|
|
451
451
|
free(): void
|
|
452
|
-
get_data(cnxn_id: number, listener_data_p: any | null, location_p: string
|
|
453
|
-
notify(all_above: string
|
|
452
|
+
get_data(cnxn_id: number, listener_data_p: any | null, location_p: string): boolean
|
|
453
|
+
notify(all_above: string, callback: any): void
|
|
454
454
|
remove(cnxn_id: number): void
|
|
455
455
|
remove_if(predicate: ListenersPredicate): void
|
|
456
456
|
}
|
|
@@ -481,11 +481,11 @@ interface MetaInfo {
|
|
|
481
481
|
// Owm methods of GConf-2.0.GConf.MetaInfo
|
|
482
482
|
|
|
483
483
|
free(): void
|
|
484
|
-
get_mod_user(): string
|
|
485
|
-
get_schema(): string
|
|
484
|
+
get_mod_user(): string
|
|
485
|
+
get_schema(): string
|
|
486
486
|
set_mod_time(mod_time: GLib.Time): void
|
|
487
|
-
set_mod_user(mod_user: string
|
|
488
|
-
set_schema(schema_name: string
|
|
487
|
+
set_mod_user(mod_user: string): void
|
|
488
|
+
set_schema(schema_name: string): void
|
|
489
489
|
}
|
|
490
490
|
|
|
491
491
|
class MetaInfo {
|
|
@@ -504,20 +504,20 @@ interface Schema {
|
|
|
504
504
|
get_cdr_type(): ValueType
|
|
505
505
|
get_default_value(): Value
|
|
506
506
|
get_list_type(): ValueType
|
|
507
|
-
get_locale(): string
|
|
508
|
-
get_long_desc(): string
|
|
509
|
-
get_owner(): string
|
|
510
|
-
get_short_desc(): string
|
|
507
|
+
get_locale(): string
|
|
508
|
+
get_long_desc(): string
|
|
509
|
+
get_owner(): string
|
|
510
|
+
get_short_desc(): string
|
|
511
511
|
get_type(): ValueType
|
|
512
512
|
set_car_type(type: ValueType): void
|
|
513
513
|
set_cdr_type(type: ValueType): void
|
|
514
514
|
set_default_value(val: Value): void
|
|
515
515
|
set_default_value_nocopy(val: Value): void
|
|
516
516
|
set_list_type(type: ValueType): void
|
|
517
|
-
set_locale(locale: string
|
|
518
|
-
set_long_desc(desc: string
|
|
519
|
-
set_owner(owner: string
|
|
520
|
-
set_short_desc(desc: string
|
|
517
|
+
set_locale(locale: string): void
|
|
518
|
+
set_long_desc(desc: string): void
|
|
519
|
+
set_owner(owner: string): void
|
|
520
|
+
set_short_desc(desc: string): void
|
|
521
521
|
set_type(type: ValueType): void
|
|
522
522
|
}
|
|
523
523
|
|
|
@@ -559,7 +559,7 @@ interface Value {
|
|
|
559
559
|
*/
|
|
560
560
|
get_list(): Value[]
|
|
561
561
|
get_list_type(): ValueType
|
|
562
|
-
get_string(): string
|
|
562
|
+
get_string(): string
|
|
563
563
|
set_bool(the_bool: boolean): void
|
|
564
564
|
set_car(car: Value): void
|
|
565
565
|
set_car_nocopy(car: Value): void
|
|
@@ -568,7 +568,7 @@ interface Value {
|
|
|
568
568
|
set_float(the_float: number): void
|
|
569
569
|
set_int(the_int: number): void
|
|
570
570
|
set_list_type(type: ValueType): void
|
|
571
|
-
set_string(the_str: string
|
|
571
|
+
set_string(the_str: string): void
|
|
572
572
|
to_string(): string | null
|
|
573
573
|
}
|
|
574
574
|
|
|
@@ -582,8 +582,8 @@ class Value {
|
|
|
582
582
|
|
|
583
583
|
constructor(type: ValueType)
|
|
584
584
|
static new(type: ValueType): Value
|
|
585
|
-
static new_from_string(type: ValueType, str: string
|
|
586
|
-
static decode(encoded: string
|
|
585
|
+
static new_from_string(type: ValueType, str: string): Value
|
|
586
|
+
static decode(encoded: string): Value
|
|
587
587
|
}
|
|
588
588
|
|
|
589
589
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/gconf-2.0",
|
|
3
|
-
"version": "2.0.0-3.2.
|
|
3
|
+
"version": "2.0.0-3.2.7",
|
|
4
4
|
"description": "GJS TypeScript type definitions for GConf-2.0, generated from library version 2.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "gconf-2.0.js",
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit gconf-2.0.d.cts"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@girs/gjs": "^3.2.
|
|
29
|
-
"@girs/glib-2.0": "^2.78.0-3.2.
|
|
30
|
-
"@girs/gobject-2.0": "^2.78.0-3.2.
|
|
28
|
+
"@girs/gjs": "^3.2.7",
|
|
29
|
+
"@girs/glib-2.0": "^2.78.0-3.2.7",
|
|
30
|
+
"@girs/gobject-2.0": "^2.78.0-3.2.7"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"typescript": "*"
|