@gtkx/ffi 0.8.0 → 0.9.0
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/dist/cairo/cairo.js +1 -1
- package/dist/codegen/ffi-generator.js +37 -12
- package/dist/generated/adw/index.d.ts +0 -1
- package/dist/generated/adw/index.js +0 -1
- package/dist/generated/adw/preferences-group.d.ts +0 -11
- package/dist/generated/adw/preferences-group.js +0 -36
- package/dist/generated/atspi/device.d.ts +0 -15
- package/dist/generated/atspi/device.js +0 -65
- package/dist/generated/atspi/functions.d.ts +4 -14
- package/dist/generated/atspi/functions.js +0 -48
- package/dist/generated/atspi/index.d.ts +0 -2
- package/dist/generated/atspi/index.js +0 -2
- package/dist/generated/gdk/cursor.d.ts +1 -12
- package/dist/generated/gdk/cursor.js +22 -55
- package/dist/generated/gdk/functions.d.ts +0 -26
- package/dist/generated/gdk/functions.js +0 -74
- package/dist/generated/gdk/texture.d.ts +0 -10
- package/dist/generated/gdk/texture.js +0 -36
- package/dist/generated/gdkpixbuf/pixbuf.d.ts +0 -49
- package/dist/generated/gdkpixbuf/pixbuf.js +0 -166
- package/dist/generated/gio/app-info.d.ts +0 -15
- package/dist/generated/gio/app-info.js +0 -50
- package/dist/generated/gio/async-initable.d.ts +0 -44
- package/dist/generated/gio/async-initable.js +0 -69
- package/dist/generated/gio/buffered-input-stream.d.ts +0 -14
- package/dist/generated/gio/buffered-input-stream.js +0 -44
- package/dist/generated/gio/bytes-icon.d.ts +0 -10
- package/dist/generated/gio/bytes-icon.js +0 -36
- package/dist/generated/gio/cancellable.d.ts +0 -41
- package/dist/generated/gio/cancellable.js +0 -62
- package/dist/generated/gio/data-input-stream.d.ts +0 -59
- package/dist/generated/gio/data-input-stream.js +0 -149
- package/dist/generated/gio/dbus-connection.d.ts +1 -374
- package/dist/generated/gio/dbus-connection.js +0 -761
- package/dist/generated/gio/dbus-object-manager-client.d.ts +1 -120
- package/dist/generated/gio/dbus-object-manager-client.js +0 -354
- package/dist/generated/gio/dbus-proxy.d.ts +0 -163
- package/dist/generated/gio/dbus-proxy.js +0 -379
- package/dist/generated/gio/drive.d.ts +1 -62
- package/dist/generated/gio/drive.js +0 -200
- package/dist/generated/gio/dtls-connection.d.ts +0 -29
- package/dist/generated/gio/dtls-connection.js +0 -115
- package/dist/generated/gio/file-enumerator.d.ts +0 -85
- package/dist/generated/gio/file-enumerator.js +0 -141
- package/dist/generated/gio/file-icon.d.ts +0 -10
- package/dist/generated/gio/file-icon.js +0 -36
- package/dist/generated/gio/file-input-stream.d.ts +0 -19
- package/dist/generated/gio/file-input-stream.js +0 -49
- package/dist/generated/gio/file-iostream.d.ts +0 -14
- package/dist/generated/gio/file-iostream.js +0 -44
- package/dist/generated/gio/file-output-stream.d.ts +0 -14
- package/dist/generated/gio/file-output-stream.js +0 -44
- package/dist/generated/gio/file.d.ts +1 -661
- package/dist/generated/gio/file.js +58 -1899
- package/dist/generated/gio/functions.d.ts +0 -261
- package/dist/generated/gio/functions.js +0 -666
- package/dist/generated/gio/index.d.ts +0 -2
- package/dist/generated/gio/index.js +0 -2
- package/dist/generated/gio/input-stream.d.ts +0 -127
- package/dist/generated/gio/input-stream.js +0 -293
- package/dist/generated/gio/iostream.d.ts +0 -34
- package/dist/generated/gio/iostream.js +0 -93
- package/dist/generated/gio/list-store.d.ts +0 -46
- package/dist/generated/gio/list-store.js +0 -139
- package/dist/generated/gio/loadable-icon.d.ts +0 -10
- package/dist/generated/gio/loadable-icon.js +0 -36
- package/dist/generated/gio/mount.d.ts +0 -74
- package/dist/generated/gio/mount.js +0 -243
- package/dist/generated/gio/network-monitor.d.ts +0 -16
- package/dist/generated/gio/network-monitor.js +0 -42
- package/dist/generated/gio/output-stream.d.ts +0 -200
- package/dist/generated/gio/output-stream.js +0 -469
- package/dist/generated/gio/permission.d.ts +0 -20
- package/dist/generated/gio/permission.js +0 -64
- package/dist/generated/gio/proxy-resolver.d.ts +0 -9
- package/dist/generated/gio/proxy-resolver.js +0 -35
- package/dist/generated/gio/proxy.d.ts +0 -9
- package/dist/generated/gio/proxy.js +0 -39
- package/dist/generated/gio/resolver.d.ts +0 -59
- package/dist/generated/gio/resolver.js +0 -205
- package/dist/generated/gio/settings.d.ts +0 -33
- package/dist/generated/gio/settings.js +0 -53
- package/dist/generated/gio/simple-proxy-resolver.d.ts +0 -9
- package/dist/generated/gio/simple-proxy-resolver.js +0 -35
- package/dist/generated/gio/socket-address-enumerator.d.ts +0 -10
- package/dist/generated/gio/socket-address-enumerator.js +0 -32
- package/dist/generated/gio/socket-client.d.ts +0 -57
- package/dist/generated/gio/socket-client.js +0 -173
- package/dist/generated/gio/socket-connection.d.ts +0 -17
- package/dist/generated/gio/socket-connection.js +0 -43
- package/dist/generated/gio/socket-listener.d.ts +0 -22
- package/dist/generated/gio/socket-listener.js +0 -66
- package/dist/generated/gio/subprocess.d.ts +0 -36
- package/dist/generated/gio/subprocess.js +0 -139
- package/dist/generated/gio/tls-connection.d.ts +0 -9
- package/dist/generated/gio/tls-connection.js +0 -35
- package/dist/generated/gio/tls-database.d.ts +0 -51
- package/dist/generated/gio/tls-database.js +0 -205
- package/dist/generated/gio/tls-interaction.d.ts +0 -38
- package/dist/generated/gio/tls-interaction.js +0 -94
- package/dist/generated/gio/unix-connection.d.ts +0 -26
- package/dist/generated/gio/unix-connection.js +0 -70
- package/dist/generated/gio/vfs.d.ts +0 -30
- package/dist/generated/gio/vfs.js +0 -71
- package/dist/generated/gio/volume.d.ts +0 -32
- package/dist/generated/gio/volume.js +0 -117
- package/dist/generated/giounix/desktop-app-info.d.ts +0 -58
- package/dist/generated/giounix/desktop-app-info.js +0 -226
- package/dist/generated/glib/byte-array.d.ts +0 -23
- package/dist/generated/glib/byte-array.js +0 -62
- package/dist/generated/glib/error.d.ts +0 -36
- package/dist/generated/glib/error.js +0 -82
- package/dist/generated/glib/functions.d.ts +1 -811
- package/dist/generated/glib/functions.js +55 -1787
- package/dist/generated/glib/hash-table.d.ts +0 -64
- package/dist/generated/glib/hash-table.js +0 -148
- package/dist/generated/glib/main-context.d.ts +0 -17
- package/dist/generated/glib/main-context.js +0 -37
- package/dist/generated/glib/option-group.d.ts +0 -12
- package/dist/generated/glib/option-group.js +0 -39
- package/dist/generated/glib/regex.d.ts +0 -54
- package/dist/generated/glib/regex.js +0 -107
- package/dist/generated/glib/source.d.ts +0 -27
- package/dist/generated/glib/source.js +0 -43
- package/dist/generated/glib/thread.d.ts +2 -46
- package/dist/generated/glib/thread.js +5 -50
- package/dist/generated/glib/tree.d.ts +2 -74
- package/dist/generated/glib/tree.js +4 -192
- package/dist/generated/glibunix/functions.d.ts +0 -2
- package/dist/generated/glibunix/functions.js +0 -45
- package/dist/generated/gobject/binding-group.d.ts +0 -17
- package/dist/generated/gobject/binding-group.js +0 -59
- package/dist/generated/gobject/functions.d.ts +0 -40
- package/dist/generated/gobject/functions.js +0 -95
- package/dist/generated/gobject/object.d.ts +0 -33
- package/dist/generated/gobject/object.js +0 -77
- package/dist/generated/gobject/signal-group.d.ts +0 -23
- package/dist/generated/gobject/signal-group.js +0 -70
- package/dist/generated/gobject/value-array.d.ts +0 -19
- package/dist/generated/gobject/value-array.js +0 -70
- package/dist/generated/gsk/path.d.ts +1 -41
- package/dist/generated/gsk/path.js +0 -96
- package/dist/generated/gsk/render-node.d.ts +0 -9
- package/dist/generated/gsk/render-node.js +0 -32
- package/dist/generated/gst/buffer-list.d.ts +0 -10
- package/dist/generated/gst/buffer-list.js +0 -31
- package/dist/generated/gst/buffer.d.ts +0 -10
- package/dist/generated/gst/buffer.js +0 -31
- package/dist/generated/gst/bus.d.ts +0 -43
- package/dist/generated/gst/bus.js +0 -88
- package/dist/generated/gst/caps.d.ts +0 -26
- package/dist/generated/gst/caps.js +0 -89
- package/dist/generated/gst/clock.d.ts +0 -15
- package/dist/generated/gst/clock.js +0 -35
- package/dist/generated/gst/element.d.ts +0 -49
- package/dist/generated/gst/element.js +0 -117
- package/dist/generated/gst/functions.d.ts +1 -80
- package/dist/generated/gst/functions.js +0 -234
- package/dist/generated/gst/index.d.ts +0 -1
- package/dist/generated/gst/index.js +0 -1
- package/dist/generated/gst/iterator.d.ts +0 -56
- package/dist/generated/gst/iterator.js +0 -168
- package/dist/generated/gst/pad.d.ts +1 -145
- package/dist/generated/gst/pad.js +0 -440
- package/dist/generated/gst/plugin.d.ts +0 -41
- package/dist/generated/gst/plugin.js +0 -132
- package/dist/generated/gst/promise.d.ts +0 -9
- package/dist/generated/gst/promise.js +1 -27
- package/dist/generated/gst/registry.d.ts +0 -21
- package/dist/generated/gst/registry.js +0 -73
- package/dist/generated/gst/structure.d.ts +0 -52
- package/dist/generated/gst/structure.js +0 -178
- package/dist/generated/gst/tag-list.d.ts +0 -7
- package/dist/generated/gst/tag-list.js +0 -28
- package/dist/generated/gst/task-pool.d.ts +0 -6
- package/dist/generated/gst/task-pool.js +0 -38
- package/dist/generated/gst/type-find.d.ts +0 -15
- package/dist/generated/gst/type-find.js +0 -58
- package/dist/generated/gstbase/collect-pads.d.ts +0 -108
- package/dist/generated/gstbase/collect-pads.js +0 -243
- package/dist/generated/gstbase/functions.d.ts +0 -45
- package/dist/generated/gstbase/functions.js +0 -132
- package/dist/generated/gtk/assistant.d.ts +0 -13
- package/dist/generated/gtk/assistant.js +0 -34
- package/dist/generated/gtk/builder-cscope.d.ts +0 -13
- package/dist/generated/gtk/builder-cscope.js +0 -28
- package/dist/generated/gtk/cell-area.d.ts +0 -31
- package/dist/generated/gtk/cell-area.js +0 -114
- package/dist/generated/gtk/cell-layout.d.ts +0 -14
- package/dist/generated/gtk/cell-layout.js +0 -39
- package/dist/generated/gtk/cell-view.d.ts +0 -14
- package/dist/generated/gtk/cell-view.js +0 -39
- package/dist/generated/gtk/combo-box.d.ts +0 -25
- package/dist/generated/gtk/combo-box.js +0 -72
- package/dist/generated/gtk/drawing-area.d.ts +2 -1
- package/dist/generated/gtk/drawing-area.js +6 -1
- package/dist/generated/gtk/entry-completion.d.ts +0 -24
- package/dist/generated/gtk/entry-completion.js +0 -69
- package/dist/generated/gtk/expression.d.ts +0 -14
- package/dist/generated/gtk/expression.js +0 -45
- package/dist/generated/gtk/flow-box.d.ts +0 -68
- package/dist/generated/gtk/flow-box.js +0 -150
- package/dist/generated/gtk/font-button.d.ts +0 -8
- package/dist/generated/gtk/font-button.js +0 -29
- package/dist/generated/gtk/font-chooser-dialog.d.ts +0 -8
- package/dist/generated/gtk/font-chooser-dialog.js +0 -29
- package/dist/generated/gtk/font-chooser-widget.d.ts +0 -8
- package/dist/generated/gtk/font-chooser-widget.js +0 -29
- package/dist/generated/gtk/font-chooser.d.ts +0 -8
- package/dist/generated/gtk/font-chooser.js +0 -29
- package/dist/generated/gtk/functions.d.ts +0 -23
- package/dist/generated/gtk/functions.js +0 -69
- package/dist/generated/gtk/icon-view.d.ts +0 -21
- package/dist/generated/gtk/icon-view.js +0 -62
- package/dist/generated/gtk/index.d.ts +0 -7
- package/dist/generated/gtk/index.js +0 -7
- package/dist/generated/gtk/list-box.d.ts +0 -99
- package/dist/generated/gtk/list-box.js +0 -203
- package/dist/generated/gtk/list-store.d.ts +0 -33
- package/dist/generated/gtk/list-store.js +0 -95
- package/dist/generated/gtk/menu-button.d.ts +0 -18
- package/dist/generated/gtk/menu-button.js +0 -40
- package/dist/generated/gtk/print-job.d.ts +0 -7
- package/dist/generated/gtk/print-job.js +0 -27
- package/dist/generated/gtk/print-settings.d.ts +0 -6
- package/dist/generated/gtk/print-settings.js +0 -22
- package/dist/generated/gtk/scale.d.ts +0 -14
- package/dist/generated/gtk/scale.js +0 -36
- package/dist/generated/gtk/text-buffer.d.ts +0 -19
- package/dist/generated/gtk/text-buffer.js +0 -42
- package/dist/generated/gtk/text-iter.d.ts +0 -19
- package/dist/generated/gtk/text-iter.js +0 -81
- package/dist/generated/gtk/text-tag-table.d.ts +0 -9
- package/dist/generated/gtk/text-tag-table.js +0 -25
- package/dist/generated/gtk/tree-model-filter.d.ts +0 -68
- package/dist/generated/gtk/tree-model-filter.js +0 -137
- package/dist/generated/gtk/tree-model-sort.d.ts +0 -33
- package/dist/generated/gtk/tree-model-sort.js +0 -95
- package/dist/generated/gtk/tree-model.d.ts +0 -9
- package/dist/generated/gtk/tree-model.js +0 -25
- package/dist/generated/gtk/tree-selection.d.ts +0 -20
- package/dist/generated/gtk/tree-selection.js +0 -57
- package/dist/generated/gtk/tree-sortable.d.ts +0 -24
- package/dist/generated/gtk/tree-sortable.js +0 -70
- package/dist/generated/gtk/tree-store.d.ts +0 -33
- package/dist/generated/gtk/tree-store.js +0 -95
- package/dist/generated/gtk/tree-view-column.d.ts +0 -14
- package/dist/generated/gtk/tree-view-column.js +0 -39
- package/dist/generated/gtk/tree-view.d.ts +0 -54
- package/dist/generated/gtk/tree-view.js +0 -167
- package/dist/generated/gtk/widget.d.ts +0 -32
- package/dist/generated/gtk/widget.js +0 -50
- package/dist/generated/gtksource/functions.d.ts +0 -21
- package/dist/generated/gtksource/functions.js +0 -49
- package/dist/generated/harfbuzz/functions.d.ts +0 -448
- package/dist/generated/harfbuzz/functions.js +3736 -5611
- package/dist/generated/javascriptcore/class.d.ts +0 -94
- package/dist/generated/javascriptcore/class.js +0 -272
- package/dist/generated/javascriptcore/context.d.ts +0 -13
- package/dist/generated/javascriptcore/context.js +0 -34
- package/dist/generated/javascriptcore/functions.d.ts +0 -7
- package/dist/generated/javascriptcore/functions.js +0 -19
- package/dist/generated/javascriptcore/value.d.ts +0 -72
- package/dist/generated/javascriptcore/value.js +0 -202
- package/dist/generated/json/array.d.ts +0 -11
- package/dist/generated/json/array.js +0 -32
- package/dist/generated/json/object.d.ts +0 -14
- package/dist/generated/json/object.js +0 -35
- package/dist/generated/pango/attr-list.d.ts +0 -8
- package/dist/generated/pango/attr-list.js +0 -37
- package/dist/generated/pango/fontset.d.ts +0 -9
- package/dist/generated/pango/fontset.js +0 -25
- package/dist/generated/pango/functions.d.ts +0 -13
- package/dist/generated/pango/functions.js +0 -55
- package/dist/generated/pangocairo/functions.d.ts +0 -11
- package/dist/generated/pangocairo/functions.js +0 -33
- package/dist/generated/soup/auth-domain-basic.d.ts +0 -17
- package/dist/generated/soup/auth-domain-basic.js +0 -37
- package/dist/generated/soup/auth-domain-digest.d.ts +0 -17
- package/dist/generated/soup/auth-domain-digest.js +0 -37
- package/dist/generated/soup/auth-domain.d.ts +0 -44
- package/dist/generated/soup/auth-domain.js +0 -84
- package/dist/generated/soup/logger.d.ts +0 -32
- package/dist/generated/soup/logger.js +0 -92
- package/dist/generated/soup/message-headers.d.ts +0 -17
- package/dist/generated/soup/message-headers.js +0 -38
- package/dist/generated/soup/server.d.ts +0 -99
- package/dist/generated/soup/server.js +0 -184
- package/dist/generated/vte/terminal.d.ts +0 -168
- package/dist/generated/vte/terminal.js +0 -483
- package/dist/generated/webkit/web-context.d.ts +0 -44
- package/dist/generated/webkit/web-context.js +0 -68
- package/package.json +3 -3
- package/dist/generated/adw/callback-animation-target.d.ts +0 -19
- package/dist/generated/adw/callback-animation-target.js +0 -64
- package/dist/generated/atspi/device-listener.d.ts +0 -26
- package/dist/generated/atspi/device-listener.js +0 -104
- package/dist/generated/atspi/event-listener.d.ts +0 -155
- package/dist/generated/atspi/event-listener.js +0 -496
- package/dist/generated/gio/simple-async-result.d.ts +0 -328
- package/dist/generated/gio/simple-async-result.js +0 -588
- package/dist/generated/gio/task.d.ts +0 -936
- package/dist/generated/gio/task.js +0 -1460
- package/dist/generated/gst/task.d.ts +0 -128
- package/dist/generated/gst/task.js +0 -363
- package/dist/generated/gtk/callback-action.d.ts +0 -16
- package/dist/generated/gtk/callback-action.js +0 -61
- package/dist/generated/gtk/cclosure-expression.d.ts +0 -20
- package/dist/generated/gtk/cclosure-expression.js +0 -68
- package/dist/generated/gtk/custom-filter.d.ts +0 -35
- package/dist/generated/gtk/custom-filter.js +0 -119
- package/dist/generated/gtk/custom-layout.d.ts +0 -26
- package/dist/generated/gtk/custom-layout.js +0 -71
- package/dist/generated/gtk/custom-sorter.d.ts +0 -34
- package/dist/generated/gtk/custom-sorter.js +0 -114
- package/dist/generated/gtk/map-list-model.d.ts +0 -173
- package/dist/generated/gtk/map-list-model.js +0 -361
- package/dist/generated/gtk/tree-list-model.d.ts +0 -145
- package/dist/generated/gtk/tree-list-model.js +0 -310
|
@@ -25,15 +25,6 @@ export declare class Proxy {
|
|
|
25
25
|
* @param cancellable - a #GCancellable
|
|
26
26
|
*/
|
|
27
27
|
connect(connection: IOStream, proxyAddress: ProxyAddress, cancellable?: Cancellable | null): IOStream;
|
|
28
|
-
/**
|
|
29
|
-
* Asynchronous version of g_proxy_connect().
|
|
30
|
-
* @param connection - a #GIOStream
|
|
31
|
-
* @param proxyAddress - a #GProxyAddress
|
|
32
|
-
* @param cancellable - a #GCancellable
|
|
33
|
-
* @param callback - a #GAsyncReadyCallback
|
|
34
|
-
* @param userData - callback data
|
|
35
|
-
*/
|
|
36
|
-
connectAsync(connection: IOStream, proxyAddress: ProxyAddress, cancellable?: Cancellable | null, callback?: (...args: unknown[]) => unknown | null, userData?: number | null): void;
|
|
37
28
|
/**
|
|
38
29
|
* See g_proxy_connect().
|
|
39
30
|
* @param result - a #GAsyncResult
|
|
@@ -64,45 +64,6 @@ export class Proxy {
|
|
|
64
64
|
}
|
|
65
65
|
return getObject(ptr);
|
|
66
66
|
}
|
|
67
|
-
/**
|
|
68
|
-
* Asynchronous version of g_proxy_connect().
|
|
69
|
-
* @param connection - a #GIOStream
|
|
70
|
-
* @param proxyAddress - a #GProxyAddress
|
|
71
|
-
* @param cancellable - a #GCancellable
|
|
72
|
-
* @param callback - a #GAsyncReadyCallback
|
|
73
|
-
* @param userData - callback data
|
|
74
|
-
*/
|
|
75
|
-
connectAsync(connection, proxyAddress, cancellable, callback, userData) {
|
|
76
|
-
call("libgio-2.0.so.0", "g_proxy_connect_async", [
|
|
77
|
-
{
|
|
78
|
-
type: { type: "gobject" },
|
|
79
|
-
value: this.id,
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
type: { type: "gobject", borrowed: true },
|
|
83
|
-
value: connection?.id ?? connection,
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
type: { type: "gobject", borrowed: true },
|
|
87
|
-
value: proxyAddress?.id ?? proxyAddress,
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
type: { type: "gobject", borrowed: true },
|
|
91
|
-
value: cancellable?.id ?? cancellable,
|
|
92
|
-
optional: true,
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
type: { type: "callback" },
|
|
96
|
-
value: callback,
|
|
97
|
-
optional: true,
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
type: { type: "int", size: 64, unsigned: true },
|
|
101
|
-
value: userData,
|
|
102
|
-
optional: true,
|
|
103
|
-
},
|
|
104
|
-
], { type: "undefined" });
|
|
105
|
-
}
|
|
106
67
|
/**
|
|
107
68
|
* See g_proxy_connect().
|
|
108
69
|
* @param result - a #GAsyncResult
|
|
@@ -32,16 +32,6 @@ export declare class Resolver extends GObject.GObject {
|
|
|
32
32
|
* @param cancellable - a #GCancellable, or %NULL
|
|
33
33
|
*/
|
|
34
34
|
lookupByAddress(address: InetAddress, cancellable?: Cancellable | null): string;
|
|
35
|
-
/**
|
|
36
|
-
* Begins asynchronously reverse-resolving `address` to determine its
|
|
37
|
-
* associated hostname, and eventually calls @callback, which must
|
|
38
|
-
* call g_resolver_lookup_by_address_finish() to get the final result.
|
|
39
|
-
* @param address - the address to reverse-resolve
|
|
40
|
-
* @param cancellable - a #GCancellable, or %NULL
|
|
41
|
-
* @param callback - callback to call after resolution completes
|
|
42
|
-
* @param userData - data for @callback
|
|
43
|
-
*/
|
|
44
|
-
lookupByAddressAsync(address: InetAddress, cancellable?: Cancellable | null, callback?: (...args: unknown[]) => unknown | null, userData?: number | null): void;
|
|
45
35
|
/**
|
|
46
36
|
* Retrieves the result of a previous call to
|
|
47
37
|
* g_resolver_lookup_by_address_async().
|
|
@@ -80,17 +70,6 @@ export declare class Resolver extends GObject.GObject {
|
|
|
80
70
|
* @param cancellable - a #GCancellable, or %NULL
|
|
81
71
|
*/
|
|
82
72
|
lookupByName(hostname: string, cancellable?: Cancellable | null): InetAddress[];
|
|
83
|
-
/**
|
|
84
|
-
* Begins asynchronously resolving `hostname` to determine its
|
|
85
|
-
* associated IP address(es), and eventually calls @callback, which
|
|
86
|
-
* must call g_resolver_lookup_by_name_finish() to get the result.
|
|
87
|
-
* See g_resolver_lookup_by_name() for more details.
|
|
88
|
-
* @param hostname - the hostname to look up the address of
|
|
89
|
-
* @param cancellable - a #GCancellable, or %NULL
|
|
90
|
-
* @param callback - callback to call after resolution completes
|
|
91
|
-
* @param userData - data for @callback
|
|
92
|
-
*/
|
|
93
|
-
lookupByNameAsync(hostname: string, cancellable?: Cancellable | null, callback?: (...args: unknown[]) => unknown | null, userData?: number | null): void;
|
|
94
73
|
/**
|
|
95
74
|
* Retrieves the result of a call to
|
|
96
75
|
* g_resolver_lookup_by_name_async().
|
|
@@ -110,18 +89,6 @@ export declare class Resolver extends GObject.GObject {
|
|
|
110
89
|
* @param cancellable - a #GCancellable, or %NULL
|
|
111
90
|
*/
|
|
112
91
|
lookupByNameWithFlags(hostname: string, flags: ResolverNameLookupFlags, cancellable?: Cancellable | null): InetAddress[];
|
|
113
|
-
/**
|
|
114
|
-
* Begins asynchronously resolving `hostname` to determine its
|
|
115
|
-
* associated IP address(es), and eventually calls @callback, which
|
|
116
|
-
* must call g_resolver_lookup_by_name_with_flags_finish() to get the result.
|
|
117
|
-
* See g_resolver_lookup_by_name() for more details.
|
|
118
|
-
* @param hostname - the hostname to look up the address of
|
|
119
|
-
* @param flags - extra #GResolverNameLookupFlags for the lookup
|
|
120
|
-
* @param cancellable - a #GCancellable, or %NULL
|
|
121
|
-
* @param callback - callback to call after resolution completes
|
|
122
|
-
* @param userData - data for @callback
|
|
123
|
-
*/
|
|
124
|
-
lookupByNameWithFlagsAsync(hostname: string, flags: ResolverNameLookupFlags, cancellable?: Cancellable | null, callback?: (...args: unknown[]) => unknown | null, userData?: number | null): void;
|
|
125
92
|
/**
|
|
126
93
|
* Retrieves the result of a call to
|
|
127
94
|
* g_resolver_lookup_by_name_with_flags_async().
|
|
@@ -148,18 +115,6 @@ export declare class Resolver extends GObject.GObject {
|
|
|
148
115
|
* @param cancellable - a #GCancellable, or %NULL
|
|
149
116
|
*/
|
|
150
117
|
lookupRecords(rrname: string, recordType: ResolverRecordType, cancellable?: Cancellable | null): GLib.Variant[];
|
|
151
|
-
/**
|
|
152
|
-
* Begins asynchronously performing a DNS lookup for the given
|
|
153
|
-
* @rrname, and eventually calls @callback, which must call
|
|
154
|
-
* g_resolver_lookup_records_finish() to get the final result. See
|
|
155
|
-
* g_resolver_lookup_records() for more details.
|
|
156
|
-
* @param rrname - the DNS name to look up the record for
|
|
157
|
-
* @param recordType - the type of DNS record to look up
|
|
158
|
-
* @param cancellable - a #GCancellable, or %NULL
|
|
159
|
-
* @param callback - callback to call after resolution completes
|
|
160
|
-
* @param userData - data for @callback
|
|
161
|
-
*/
|
|
162
|
-
lookupRecordsAsync(rrname: string, recordType: ResolverRecordType, cancellable?: Cancellable | null, callback?: (...args: unknown[]) => unknown | null, userData?: number | null): void;
|
|
163
118
|
/**
|
|
164
119
|
* Retrieves the result of a previous call to
|
|
165
120
|
* g_resolver_lookup_records_async(). Returns a non-empty list of records as
|
|
@@ -200,20 +155,6 @@ export declare class Resolver extends GObject.GObject {
|
|
|
200
155
|
* @param cancellable - a #GCancellable, or %NULL
|
|
201
156
|
*/
|
|
202
157
|
lookupService(service: string, protocol: string, domain: string, cancellable?: Cancellable | null): SrvTarget[];
|
|
203
|
-
/**
|
|
204
|
-
* Begins asynchronously performing a DNS SRV lookup for the given
|
|
205
|
-
* `service` and `protocol` in the given @domain, and eventually calls
|
|
206
|
-
* @callback, which must call g_resolver_lookup_service_finish() to
|
|
207
|
-
* get the final result. See g_resolver_lookup_service() for more
|
|
208
|
-
* details.
|
|
209
|
-
* @param service - the service type to look up (eg, "ldap")
|
|
210
|
-
* @param protocol - the networking protocol to use for `service` (eg, "tcp")
|
|
211
|
-
* @param domain - the DNS domain to look up the service in
|
|
212
|
-
* @param cancellable - a #GCancellable, or %NULL
|
|
213
|
-
* @param callback - callback to call after resolution completes
|
|
214
|
-
* @param userData - data for @callback
|
|
215
|
-
*/
|
|
216
|
-
lookupServiceAsync(service: string, protocol: string, domain: string, cancellable?: Cancellable | null, callback?: (...args: unknown[]) => unknown | null, userData?: number | null): void;
|
|
217
158
|
/**
|
|
218
159
|
* Retrieves the result of a previous call to
|
|
219
160
|
* g_resolver_lookup_service_async().
|
|
@@ -101,42 +101,6 @@ export class Resolver extends GObject.GObject {
|
|
|
101
101
|
}
|
|
102
102
|
return result;
|
|
103
103
|
}
|
|
104
|
-
/**
|
|
105
|
-
* Begins asynchronously reverse-resolving `address` to determine its
|
|
106
|
-
* associated hostname, and eventually calls @callback, which must
|
|
107
|
-
* call g_resolver_lookup_by_address_finish() to get the final result.
|
|
108
|
-
* @param address - the address to reverse-resolve
|
|
109
|
-
* @param cancellable - a #GCancellable, or %NULL
|
|
110
|
-
* @param callback - callback to call after resolution completes
|
|
111
|
-
* @param userData - data for @callback
|
|
112
|
-
*/
|
|
113
|
-
lookupByAddressAsync(address, cancellable, callback, userData) {
|
|
114
|
-
call("libgio-2.0.so.0", "g_resolver_lookup_by_address_async", [
|
|
115
|
-
{
|
|
116
|
-
type: { type: "gobject" },
|
|
117
|
-
value: this.id,
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
type: { type: "gobject", borrowed: true },
|
|
121
|
-
value: address?.id ?? address,
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
type: { type: "gobject", borrowed: true },
|
|
125
|
-
value: cancellable?.id ?? cancellable,
|
|
126
|
-
optional: true,
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
type: { type: "callback" },
|
|
130
|
-
value: callback,
|
|
131
|
-
optional: true,
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
type: { type: "int", size: 64, unsigned: true },
|
|
135
|
-
value: userData,
|
|
136
|
-
optional: true,
|
|
137
|
-
},
|
|
138
|
-
], { type: "undefined" });
|
|
139
|
-
}
|
|
140
104
|
/**
|
|
141
105
|
* Retrieves the result of a previous call to
|
|
142
106
|
* g_resolver_lookup_by_address_async().
|
|
@@ -239,43 +203,6 @@ export class Resolver extends GObject.GObject {
|
|
|
239
203
|
}
|
|
240
204
|
return ptrs.map((ptr) => getObject(ptr));
|
|
241
205
|
}
|
|
242
|
-
/**
|
|
243
|
-
* Begins asynchronously resolving `hostname` to determine its
|
|
244
|
-
* associated IP address(es), and eventually calls @callback, which
|
|
245
|
-
* must call g_resolver_lookup_by_name_finish() to get the result.
|
|
246
|
-
* See g_resolver_lookup_by_name() for more details.
|
|
247
|
-
* @param hostname - the hostname to look up the address of
|
|
248
|
-
* @param cancellable - a #GCancellable, or %NULL
|
|
249
|
-
* @param callback - callback to call after resolution completes
|
|
250
|
-
* @param userData - data for @callback
|
|
251
|
-
*/
|
|
252
|
-
lookupByNameAsync(hostname, cancellable, callback, userData) {
|
|
253
|
-
call("libgio-2.0.so.0", "g_resolver_lookup_by_name_async", [
|
|
254
|
-
{
|
|
255
|
-
type: { type: "gobject" },
|
|
256
|
-
value: this.id,
|
|
257
|
-
},
|
|
258
|
-
{
|
|
259
|
-
type: { type: "string" },
|
|
260
|
-
value: hostname,
|
|
261
|
-
},
|
|
262
|
-
{
|
|
263
|
-
type: { type: "gobject", borrowed: true },
|
|
264
|
-
value: cancellable?.id ?? cancellable,
|
|
265
|
-
optional: true,
|
|
266
|
-
},
|
|
267
|
-
{
|
|
268
|
-
type: { type: "callback" },
|
|
269
|
-
value: callback,
|
|
270
|
-
optional: true,
|
|
271
|
-
},
|
|
272
|
-
{
|
|
273
|
-
type: { type: "int", size: 64, unsigned: true },
|
|
274
|
-
value: userData,
|
|
275
|
-
optional: true,
|
|
276
|
-
},
|
|
277
|
-
], { type: "undefined" });
|
|
278
|
-
}
|
|
279
206
|
/**
|
|
280
207
|
* Retrieves the result of a call to
|
|
281
208
|
* g_resolver_lookup_by_name_async().
|
|
@@ -368,48 +295,6 @@ export class Resolver extends GObject.GObject {
|
|
|
368
295
|
}
|
|
369
296
|
return ptrs.map((ptr) => getObject(ptr));
|
|
370
297
|
}
|
|
371
|
-
/**
|
|
372
|
-
* Begins asynchronously resolving `hostname` to determine its
|
|
373
|
-
* associated IP address(es), and eventually calls @callback, which
|
|
374
|
-
* must call g_resolver_lookup_by_name_with_flags_finish() to get the result.
|
|
375
|
-
* See g_resolver_lookup_by_name() for more details.
|
|
376
|
-
* @param hostname - the hostname to look up the address of
|
|
377
|
-
* @param flags - extra #GResolverNameLookupFlags for the lookup
|
|
378
|
-
* @param cancellable - a #GCancellable, or %NULL
|
|
379
|
-
* @param callback - callback to call after resolution completes
|
|
380
|
-
* @param userData - data for @callback
|
|
381
|
-
*/
|
|
382
|
-
lookupByNameWithFlagsAsync(hostname, flags, cancellable, callback, userData) {
|
|
383
|
-
call("libgio-2.0.so.0", "g_resolver_lookup_by_name_with_flags_async", [
|
|
384
|
-
{
|
|
385
|
-
type: { type: "gobject" },
|
|
386
|
-
value: this.id,
|
|
387
|
-
},
|
|
388
|
-
{
|
|
389
|
-
type: { type: "string" },
|
|
390
|
-
value: hostname,
|
|
391
|
-
},
|
|
392
|
-
{
|
|
393
|
-
type: { type: "int", size: 32, unsigned: false },
|
|
394
|
-
value: flags,
|
|
395
|
-
},
|
|
396
|
-
{
|
|
397
|
-
type: { type: "gobject", borrowed: true },
|
|
398
|
-
value: cancellable?.id ?? cancellable,
|
|
399
|
-
optional: true,
|
|
400
|
-
},
|
|
401
|
-
{
|
|
402
|
-
type: { type: "callback" },
|
|
403
|
-
value: callback,
|
|
404
|
-
optional: true,
|
|
405
|
-
},
|
|
406
|
-
{
|
|
407
|
-
type: { type: "int", size: 64, unsigned: true },
|
|
408
|
-
value: userData,
|
|
409
|
-
optional: true,
|
|
410
|
-
},
|
|
411
|
-
], { type: "undefined" });
|
|
412
|
-
}
|
|
413
298
|
/**
|
|
414
299
|
* Retrieves the result of a call to
|
|
415
300
|
* g_resolver_lookup_by_name_with_flags_async().
|
|
@@ -513,48 +398,6 @@ export class Resolver extends GObject.GObject {
|
|
|
513
398
|
}
|
|
514
399
|
return result;
|
|
515
400
|
}
|
|
516
|
-
/**
|
|
517
|
-
* Begins asynchronously performing a DNS lookup for the given
|
|
518
|
-
* @rrname, and eventually calls @callback, which must call
|
|
519
|
-
* g_resolver_lookup_records_finish() to get the final result. See
|
|
520
|
-
* g_resolver_lookup_records() for more details.
|
|
521
|
-
* @param rrname - the DNS name to look up the record for
|
|
522
|
-
* @param recordType - the type of DNS record to look up
|
|
523
|
-
* @param cancellable - a #GCancellable, or %NULL
|
|
524
|
-
* @param callback - callback to call after resolution completes
|
|
525
|
-
* @param userData - data for @callback
|
|
526
|
-
*/
|
|
527
|
-
lookupRecordsAsync(rrname, recordType, cancellable, callback, userData) {
|
|
528
|
-
call("libgio-2.0.so.0", "g_resolver_lookup_records_async", [
|
|
529
|
-
{
|
|
530
|
-
type: { type: "gobject" },
|
|
531
|
-
value: this.id,
|
|
532
|
-
},
|
|
533
|
-
{
|
|
534
|
-
type: { type: "string" },
|
|
535
|
-
value: rrname,
|
|
536
|
-
},
|
|
537
|
-
{
|
|
538
|
-
type: { type: "int", size: 32, unsigned: false },
|
|
539
|
-
value: recordType,
|
|
540
|
-
},
|
|
541
|
-
{
|
|
542
|
-
type: { type: "gobject", borrowed: true },
|
|
543
|
-
value: cancellable?.id ?? cancellable,
|
|
544
|
-
optional: true,
|
|
545
|
-
},
|
|
546
|
-
{
|
|
547
|
-
type: { type: "callback" },
|
|
548
|
-
value: callback,
|
|
549
|
-
optional: true,
|
|
550
|
-
},
|
|
551
|
-
{
|
|
552
|
-
type: { type: "int", size: 64, unsigned: true },
|
|
553
|
-
value: userData,
|
|
554
|
-
optional: true,
|
|
555
|
-
},
|
|
556
|
-
], { type: "undefined" });
|
|
557
|
-
}
|
|
558
401
|
/**
|
|
559
402
|
* Retrieves the result of a previous call to
|
|
560
403
|
* g_resolver_lookup_records_async(). Returns a non-empty list of records as
|
|
@@ -680,54 +523,6 @@ export class Resolver extends GObject.GObject {
|
|
|
680
523
|
}
|
|
681
524
|
return result;
|
|
682
525
|
}
|
|
683
|
-
/**
|
|
684
|
-
* Begins asynchronously performing a DNS SRV lookup for the given
|
|
685
|
-
* `service` and `protocol` in the given @domain, and eventually calls
|
|
686
|
-
* @callback, which must call g_resolver_lookup_service_finish() to
|
|
687
|
-
* get the final result. See g_resolver_lookup_service() for more
|
|
688
|
-
* details.
|
|
689
|
-
* @param service - the service type to look up (eg, "ldap")
|
|
690
|
-
* @param protocol - the networking protocol to use for `service` (eg, "tcp")
|
|
691
|
-
* @param domain - the DNS domain to look up the service in
|
|
692
|
-
* @param cancellable - a #GCancellable, or %NULL
|
|
693
|
-
* @param callback - callback to call after resolution completes
|
|
694
|
-
* @param userData - data for @callback
|
|
695
|
-
*/
|
|
696
|
-
lookupServiceAsync(service, protocol, domain, cancellable, callback, userData) {
|
|
697
|
-
call("libgio-2.0.so.0", "g_resolver_lookup_service_async", [
|
|
698
|
-
{
|
|
699
|
-
type: { type: "gobject" },
|
|
700
|
-
value: this.id,
|
|
701
|
-
},
|
|
702
|
-
{
|
|
703
|
-
type: { type: "string" },
|
|
704
|
-
value: service,
|
|
705
|
-
},
|
|
706
|
-
{
|
|
707
|
-
type: { type: "string" },
|
|
708
|
-
value: protocol,
|
|
709
|
-
},
|
|
710
|
-
{
|
|
711
|
-
type: { type: "string" },
|
|
712
|
-
value: domain,
|
|
713
|
-
},
|
|
714
|
-
{
|
|
715
|
-
type: { type: "gobject", borrowed: true },
|
|
716
|
-
value: cancellable?.id ?? cancellable,
|
|
717
|
-
optional: true,
|
|
718
|
-
},
|
|
719
|
-
{
|
|
720
|
-
type: { type: "callback" },
|
|
721
|
-
value: callback,
|
|
722
|
-
optional: true,
|
|
723
|
-
},
|
|
724
|
-
{
|
|
725
|
-
type: { type: "int", size: 64, unsigned: true },
|
|
726
|
-
value: userData,
|
|
727
|
-
optional: true,
|
|
728
|
-
},
|
|
729
|
-
], { type: "undefined" });
|
|
730
|
-
}
|
|
731
526
|
/**
|
|
732
527
|
* Retrieves the result of a previous call to
|
|
733
528
|
* g_resolver_lookup_service_async().
|
|
@@ -340,39 +340,6 @@ export declare class Settings extends GObject.GObject {
|
|
|
340
340
|
* @param key - the key to get the value for
|
|
341
341
|
*/
|
|
342
342
|
getInt64(key: string): number;
|
|
343
|
-
/**
|
|
344
|
-
* Gets the value that is stored at `key` in @settings, subject to
|
|
345
|
-
* application-level validation/mapping.
|
|
346
|
-
*
|
|
347
|
-
* You should use this function when the application needs to perform
|
|
348
|
-
* some processing on the value of the key (for example, parsing). The
|
|
349
|
-
* `mapping` function performs that processing. If the function
|
|
350
|
-
* indicates that the processing was unsuccessful (due to a parse error,
|
|
351
|
-
* for example) then the mapping is tried again with another value.
|
|
352
|
-
*
|
|
353
|
-
* This allows a robust ‘fall back to defaults’ behaviour to be
|
|
354
|
-
* implemented somewhat automatically.
|
|
355
|
-
*
|
|
356
|
-
* The first value that is tried is the user’s setting for the key. If
|
|
357
|
-
* the mapping function fails to map this value, other values may be
|
|
358
|
-
* tried in an unspecified order (system or site defaults, translated
|
|
359
|
-
* schema default values, untranslated schema default values, etc).
|
|
360
|
-
*
|
|
361
|
-
* If the mapping function fails for all possible values, one additional
|
|
362
|
-
* attempt is made: the mapping function is called with a `NULL` value.
|
|
363
|
-
* If the mapping function still indicates failure at this point then
|
|
364
|
-
* the application will be aborted.
|
|
365
|
-
*
|
|
366
|
-
* The result parameter for the `mapping` function is pointed to a
|
|
367
|
-
* `gpointer` which is initially set to `NULL`. The same pointer is given
|
|
368
|
-
* to each invocation of @mapping. The final value of that `gpointer` is
|
|
369
|
-
* what is returned by this function. `NULL` is valid; it is returned
|
|
370
|
-
* just as any other value would be.
|
|
371
|
-
* @param key - the key to get the value for
|
|
372
|
-
* @param mapping - the function to map the value in the
|
|
373
|
-
* @param userData - user data for @mapping
|
|
374
|
-
*/
|
|
375
|
-
getMapped(key: string, mapping: (...args: unknown[]) => unknown, userData?: number | null): number | null;
|
|
376
343
|
/**
|
|
377
344
|
* Queries the range of a key.
|
|
378
345
|
* @param key - the key to query the range of
|
|
@@ -1071,59 +1071,6 @@ export class Settings extends GObject.GObject {
|
|
|
1071
1071
|
},
|
|
1072
1072
|
], { type: "int", size: 64, unsigned: false });
|
|
1073
1073
|
}
|
|
1074
|
-
/**
|
|
1075
|
-
* Gets the value that is stored at `key` in @settings, subject to
|
|
1076
|
-
* application-level validation/mapping.
|
|
1077
|
-
*
|
|
1078
|
-
* You should use this function when the application needs to perform
|
|
1079
|
-
* some processing on the value of the key (for example, parsing). The
|
|
1080
|
-
* `mapping` function performs that processing. If the function
|
|
1081
|
-
* indicates that the processing was unsuccessful (due to a parse error,
|
|
1082
|
-
* for example) then the mapping is tried again with another value.
|
|
1083
|
-
*
|
|
1084
|
-
* This allows a robust ‘fall back to defaults’ behaviour to be
|
|
1085
|
-
* implemented somewhat automatically.
|
|
1086
|
-
*
|
|
1087
|
-
* The first value that is tried is the user’s setting for the key. If
|
|
1088
|
-
* the mapping function fails to map this value, other values may be
|
|
1089
|
-
* tried in an unspecified order (system or site defaults, translated
|
|
1090
|
-
* schema default values, untranslated schema default values, etc).
|
|
1091
|
-
*
|
|
1092
|
-
* If the mapping function fails for all possible values, one additional
|
|
1093
|
-
* attempt is made: the mapping function is called with a `NULL` value.
|
|
1094
|
-
* If the mapping function still indicates failure at this point then
|
|
1095
|
-
* the application will be aborted.
|
|
1096
|
-
*
|
|
1097
|
-
* The result parameter for the `mapping` function is pointed to a
|
|
1098
|
-
* `gpointer` which is initially set to `NULL`. The same pointer is given
|
|
1099
|
-
* to each invocation of @mapping. The final value of that `gpointer` is
|
|
1100
|
-
* what is returned by this function. `NULL` is valid; it is returned
|
|
1101
|
-
* just as any other value would be.
|
|
1102
|
-
* @param key - the key to get the value for
|
|
1103
|
-
* @param mapping - the function to map the value in the
|
|
1104
|
-
* @param userData - user data for @mapping
|
|
1105
|
-
*/
|
|
1106
|
-
getMapped(key, mapping, userData) {
|
|
1107
|
-
return call("libgio-2.0.so.0", "g_settings_get_mapped", [
|
|
1108
|
-
{
|
|
1109
|
-
type: { type: "gobject" },
|
|
1110
|
-
value: this.id,
|
|
1111
|
-
},
|
|
1112
|
-
{
|
|
1113
|
-
type: { type: "string" },
|
|
1114
|
-
value: key,
|
|
1115
|
-
},
|
|
1116
|
-
{
|
|
1117
|
-
type: { type: "callback" },
|
|
1118
|
-
value: mapping,
|
|
1119
|
-
},
|
|
1120
|
-
{
|
|
1121
|
-
type: { type: "int", size: 64, unsigned: true },
|
|
1122
|
-
value: userData,
|
|
1123
|
-
optional: true,
|
|
1124
|
-
},
|
|
1125
|
-
], { type: "int", size: 64, unsigned: true });
|
|
1126
|
-
}
|
|
1127
1074
|
/**
|
|
1128
1075
|
* Queries the range of a key.
|
|
1129
1076
|
* @param key - the key to query the range of
|
|
@@ -82,15 +82,6 @@ export declare class SimpleProxyResolver extends GObject.GObject {
|
|
|
82
82
|
* @param cancellable - a #GCancellable, or %NULL
|
|
83
83
|
*/
|
|
84
84
|
lookup(uri: string, cancellable?: Cancellable | null): string[];
|
|
85
|
-
/**
|
|
86
|
-
* Asynchronous lookup of proxy. See g_proxy_resolver_lookup() for more
|
|
87
|
-
* details.
|
|
88
|
-
* @param uri - a URI representing the destination to connect to
|
|
89
|
-
* @param cancellable - a #GCancellable, or %NULL
|
|
90
|
-
* @param callback - callback to call after resolution completes
|
|
91
|
-
* @param userData - data for @callback
|
|
92
|
-
*/
|
|
93
|
-
lookupAsync(uri: string, cancellable?: Cancellable | null, callback?: (...args: unknown[]) => unknown | null, userData?: number | null): void;
|
|
94
85
|
/**
|
|
95
86
|
* Call this function to obtain the array of proxy URIs when
|
|
96
87
|
* g_proxy_resolver_lookup_async() is complete. See
|
|
@@ -189,41 +189,6 @@ export class SimpleProxyResolver extends GObject.GObject {
|
|
|
189
189
|
}
|
|
190
190
|
return result;
|
|
191
191
|
}
|
|
192
|
-
/**
|
|
193
|
-
* Asynchronous lookup of proxy. See g_proxy_resolver_lookup() for more
|
|
194
|
-
* details.
|
|
195
|
-
* @param uri - a URI representing the destination to connect to
|
|
196
|
-
* @param cancellable - a #GCancellable, or %NULL
|
|
197
|
-
* @param callback - callback to call after resolution completes
|
|
198
|
-
* @param userData - data for @callback
|
|
199
|
-
*/
|
|
200
|
-
lookupAsync(uri, cancellable, callback, userData) {
|
|
201
|
-
call("libgio-2.0.so.0", "g_proxy_resolver_lookup_async", [
|
|
202
|
-
{
|
|
203
|
-
type: { type: "gobject" },
|
|
204
|
-
value: this.id,
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
type: { type: "string" },
|
|
208
|
-
value: uri,
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
type: { type: "gobject", borrowed: true },
|
|
212
|
-
value: cancellable?.id ?? cancellable,
|
|
213
|
-
optional: true,
|
|
214
|
-
},
|
|
215
|
-
{
|
|
216
|
-
type: { type: "callback" },
|
|
217
|
-
value: callback,
|
|
218
|
-
optional: true,
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
type: { type: "int", size: 64, unsigned: true },
|
|
222
|
-
value: userData,
|
|
223
|
-
optional: true,
|
|
224
|
-
},
|
|
225
|
-
], { type: "undefined" });
|
|
226
|
-
}
|
|
227
192
|
/**
|
|
228
193
|
* Call this function to obtain the array of proxy URIs when
|
|
229
194
|
* g_proxy_resolver_lookup_async() is complete. See
|
|
@@ -39,16 +39,6 @@ export declare class SocketAddressEnumerator extends GObject.GObject {
|
|
|
39
39
|
* @param cancellable - optional #GCancellable object, %NULL to ignore.
|
|
40
40
|
*/
|
|
41
41
|
next(cancellable?: Cancellable | null): SocketAddress | null;
|
|
42
|
-
/**
|
|
43
|
-
* Asynchronously retrieves the next #GSocketAddress from `enumerator` and then calls @callback, which must call
|
|
44
|
-
* g_socket_address_enumerator_next_finish() to get the result.
|
|
45
|
-
*
|
|
46
|
-
* It is an error to call this multiple times before the previous callback has finished.
|
|
47
|
-
* @param cancellable - optional #GCancellable object, %NULL to ignore.
|
|
48
|
-
* @param callback - a #GAsyncReadyCallback to call
|
|
49
|
-
* @param userData - the data to pass to callback function
|
|
50
|
-
*/
|
|
51
|
-
nextAsync(cancellable?: Cancellable | null, callback?: (...args: unknown[]) => unknown | null, userData?: number | null): void;
|
|
52
42
|
/**
|
|
53
43
|
* Retrieves the result of a completed call to
|
|
54
44
|
* g_socket_address_enumerator_next_async(). See
|
|
@@ -72,38 +72,6 @@ export class SocketAddressEnumerator extends GObject.GObject {
|
|
|
72
72
|
return null;
|
|
73
73
|
return getObject(ptr);
|
|
74
74
|
}
|
|
75
|
-
/**
|
|
76
|
-
* Asynchronously retrieves the next #GSocketAddress from `enumerator` and then calls @callback, which must call
|
|
77
|
-
* g_socket_address_enumerator_next_finish() to get the result.
|
|
78
|
-
*
|
|
79
|
-
* It is an error to call this multiple times before the previous callback has finished.
|
|
80
|
-
* @param cancellable - optional #GCancellable object, %NULL to ignore.
|
|
81
|
-
* @param callback - a #GAsyncReadyCallback to call
|
|
82
|
-
* @param userData - the data to pass to callback function
|
|
83
|
-
*/
|
|
84
|
-
nextAsync(cancellable, callback, userData) {
|
|
85
|
-
call("libgio-2.0.so.0", "g_socket_address_enumerator_next_async", [
|
|
86
|
-
{
|
|
87
|
-
type: { type: "gobject" },
|
|
88
|
-
value: this.id,
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
type: { type: "gobject", borrowed: true },
|
|
92
|
-
value: cancellable?.id ?? cancellable,
|
|
93
|
-
optional: true,
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
type: { type: "callback" },
|
|
97
|
-
value: callback,
|
|
98
|
-
optional: true,
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
type: { type: "int", size: 64, unsigned: true },
|
|
102
|
-
value: userData,
|
|
103
|
-
optional: true,
|
|
104
|
-
},
|
|
105
|
-
], { type: "undefined" });
|
|
106
|
-
}
|
|
107
75
|
/**
|
|
108
76
|
* Retrieves the result of a completed call to
|
|
109
77
|
* g_socket_address_enumerator_next_async(). See
|