@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
|
@@ -214,47 +214,6 @@ export class Subprocess extends GObject.GObject {
|
|
|
214
214
|
stderrBuf.value = getBoxed(stderrBuf.value, GLib.Bytes);
|
|
215
215
|
return result;
|
|
216
216
|
}
|
|
217
|
-
/**
|
|
218
|
-
* Asynchronous version of g_subprocess_communicate(). Complete
|
|
219
|
-
* invocation with g_subprocess_communicate_finish().
|
|
220
|
-
* @param stdinBuf - Input data, or %NULL
|
|
221
|
-
* @param cancellable - Cancellable
|
|
222
|
-
* @param callback - Callback
|
|
223
|
-
* @param userData - User data
|
|
224
|
-
*/
|
|
225
|
-
communicateAsync(stdinBuf, cancellable, callback, userData) {
|
|
226
|
-
call("libgio-2.0.so.0", "g_subprocess_communicate_async", [
|
|
227
|
-
{
|
|
228
|
-
type: { type: "gobject" },
|
|
229
|
-
value: this.id,
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
type: {
|
|
233
|
-
type: "boxed",
|
|
234
|
-
borrowed: true,
|
|
235
|
-
innerType: "GBytes",
|
|
236
|
-
lib: "libgio-2.0.so.0",
|
|
237
|
-
},
|
|
238
|
-
value: stdinBuf?.id ?? stdinBuf,
|
|
239
|
-
optional: true,
|
|
240
|
-
},
|
|
241
|
-
{
|
|
242
|
-
type: { type: "gobject", borrowed: true },
|
|
243
|
-
value: cancellable?.id ?? cancellable,
|
|
244
|
-
optional: true,
|
|
245
|
-
},
|
|
246
|
-
{
|
|
247
|
-
type: { type: "callback" },
|
|
248
|
-
value: callback,
|
|
249
|
-
optional: true,
|
|
250
|
-
},
|
|
251
|
-
{
|
|
252
|
-
type: { type: "int", size: 64, unsigned: true },
|
|
253
|
-
value: userData,
|
|
254
|
-
optional: true,
|
|
255
|
-
},
|
|
256
|
-
], { type: "undefined" });
|
|
257
|
-
}
|
|
258
217
|
/**
|
|
259
218
|
* Complete an invocation of g_subprocess_communicate_async().
|
|
260
219
|
* @param result - Result
|
|
@@ -372,42 +331,6 @@ export class Subprocess extends GObject.GObject {
|
|
|
372
331
|
}
|
|
373
332
|
return result;
|
|
374
333
|
}
|
|
375
|
-
/**
|
|
376
|
-
* Asynchronous version of g_subprocess_communicate_utf8(). Complete
|
|
377
|
-
* invocation with g_subprocess_communicate_utf8_finish().
|
|
378
|
-
* @param stdinBuf - Input data, or %NULL
|
|
379
|
-
* @param cancellable - Cancellable
|
|
380
|
-
* @param callback - Callback
|
|
381
|
-
* @param userData - User data
|
|
382
|
-
*/
|
|
383
|
-
communicateUtf8Async(stdinBuf, cancellable, callback, userData) {
|
|
384
|
-
call("libgio-2.0.so.0", "g_subprocess_communicate_utf8_async", [
|
|
385
|
-
{
|
|
386
|
-
type: { type: "gobject" },
|
|
387
|
-
value: this.id,
|
|
388
|
-
},
|
|
389
|
-
{
|
|
390
|
-
type: { type: "string" },
|
|
391
|
-
value: stdinBuf,
|
|
392
|
-
optional: true,
|
|
393
|
-
},
|
|
394
|
-
{
|
|
395
|
-
type: { type: "gobject", borrowed: true },
|
|
396
|
-
value: cancellable?.id ?? cancellable,
|
|
397
|
-
optional: true,
|
|
398
|
-
},
|
|
399
|
-
{
|
|
400
|
-
type: { type: "callback" },
|
|
401
|
-
value: callback,
|
|
402
|
-
optional: true,
|
|
403
|
-
},
|
|
404
|
-
{
|
|
405
|
-
type: { type: "int", size: 64, unsigned: true },
|
|
406
|
-
value: userData,
|
|
407
|
-
optional: true,
|
|
408
|
-
},
|
|
409
|
-
], { type: "undefined" });
|
|
410
|
-
}
|
|
411
334
|
/**
|
|
412
335
|
* Complete an invocation of g_subprocess_communicate_utf8_async().
|
|
413
336
|
* @param result - Result
|
|
@@ -706,37 +629,6 @@ export class Subprocess extends GObject.GObject {
|
|
|
706
629
|
}
|
|
707
630
|
return result;
|
|
708
631
|
}
|
|
709
|
-
/**
|
|
710
|
-
* Wait for the subprocess to terminate.
|
|
711
|
-
*
|
|
712
|
-
* This is the asynchronous version of g_subprocess_wait().
|
|
713
|
-
* @param cancellable - a #GCancellable, or %NULL
|
|
714
|
-
* @param callback - a #GAsyncReadyCallback to call when the operation is complete
|
|
715
|
-
* @param userData - user_data for @callback
|
|
716
|
-
*/
|
|
717
|
-
waitAsync(cancellable, callback, userData) {
|
|
718
|
-
call("libgio-2.0.so.0", "g_subprocess_wait_async", [
|
|
719
|
-
{
|
|
720
|
-
type: { type: "gobject" },
|
|
721
|
-
value: this.id,
|
|
722
|
-
},
|
|
723
|
-
{
|
|
724
|
-
type: { type: "gobject", borrowed: true },
|
|
725
|
-
value: cancellable?.id ?? cancellable,
|
|
726
|
-
optional: true,
|
|
727
|
-
},
|
|
728
|
-
{
|
|
729
|
-
type: { type: "callback" },
|
|
730
|
-
value: callback,
|
|
731
|
-
optional: true,
|
|
732
|
-
},
|
|
733
|
-
{
|
|
734
|
-
type: { type: "int", size: 64, unsigned: true },
|
|
735
|
-
value: userData,
|
|
736
|
-
optional: true,
|
|
737
|
-
},
|
|
738
|
-
], { type: "undefined" });
|
|
739
|
-
}
|
|
740
632
|
/**
|
|
741
633
|
* Combines g_subprocess_wait() with g_spawn_check_wait_status().
|
|
742
634
|
* @param cancellable - a #GCancellable
|
|
@@ -770,37 +662,6 @@ export class Subprocess extends GObject.GObject {
|
|
|
770
662
|
}
|
|
771
663
|
return result;
|
|
772
664
|
}
|
|
773
|
-
/**
|
|
774
|
-
* Combines g_subprocess_wait_async() with g_spawn_check_wait_status().
|
|
775
|
-
*
|
|
776
|
-
* This is the asynchronous version of g_subprocess_wait_check().
|
|
777
|
-
* @param cancellable - a #GCancellable, or %NULL
|
|
778
|
-
* @param callback - a #GAsyncReadyCallback to call when the operation is complete
|
|
779
|
-
* @param userData - user_data for @callback
|
|
780
|
-
*/
|
|
781
|
-
waitCheckAsync(cancellable, callback, userData) {
|
|
782
|
-
call("libgio-2.0.so.0", "g_subprocess_wait_check_async", [
|
|
783
|
-
{
|
|
784
|
-
type: { type: "gobject" },
|
|
785
|
-
value: this.id,
|
|
786
|
-
},
|
|
787
|
-
{
|
|
788
|
-
type: { type: "gobject", borrowed: true },
|
|
789
|
-
value: cancellable?.id ?? cancellable,
|
|
790
|
-
optional: true,
|
|
791
|
-
},
|
|
792
|
-
{
|
|
793
|
-
type: { type: "callback" },
|
|
794
|
-
value: callback,
|
|
795
|
-
optional: true,
|
|
796
|
-
},
|
|
797
|
-
{
|
|
798
|
-
type: { type: "int", size: 64, unsigned: true },
|
|
799
|
-
value: userData,
|
|
800
|
-
optional: true,
|
|
801
|
-
},
|
|
802
|
-
], { type: "undefined" });
|
|
803
|
-
}
|
|
804
665
|
/**
|
|
805
666
|
* Collects the result of a previous call to
|
|
806
667
|
* g_subprocess_wait_check_async().
|
|
@@ -142,15 +142,6 @@ export declare class TlsConnection extends IOStream {
|
|
|
142
142
|
* @param cancellable - a #GCancellable, or %NULL
|
|
143
143
|
*/
|
|
144
144
|
handshake(cancellable?: Cancellable | null): boolean;
|
|
145
|
-
/**
|
|
146
|
-
* Asynchronously performs a TLS handshake on @conn. See
|
|
147
|
-
* g_tls_connection_handshake() for more information.
|
|
148
|
-
* @param ioPriority - the I/O priority of the request
|
|
149
|
-
* @param cancellable - a #GCancellable, or %NULL
|
|
150
|
-
* @param callback - callback to call when the handshake is complete
|
|
151
|
-
* @param userData - the data to pass to the callback function
|
|
152
|
-
*/
|
|
153
|
-
handshakeAsync(ioPriority: number, cancellable?: Cancellable | null, callback?: (...args: unknown[]) => unknown | null, userData?: number | null): void;
|
|
154
145
|
/**
|
|
155
146
|
* Finish an asynchronous TLS handshake operation. See
|
|
156
147
|
* g_tls_connection_handshake() for more information.
|
|
@@ -331,41 +331,6 @@ export class TlsConnection extends IOStream {
|
|
|
331
331
|
}
|
|
332
332
|
return result;
|
|
333
333
|
}
|
|
334
|
-
/**
|
|
335
|
-
* Asynchronously performs a TLS handshake on @conn. See
|
|
336
|
-
* g_tls_connection_handshake() for more information.
|
|
337
|
-
* @param ioPriority - the I/O priority of the request
|
|
338
|
-
* @param cancellable - a #GCancellable, or %NULL
|
|
339
|
-
* @param callback - callback to call when the handshake is complete
|
|
340
|
-
* @param userData - the data to pass to the callback function
|
|
341
|
-
*/
|
|
342
|
-
handshakeAsync(ioPriority, cancellable, callback, userData) {
|
|
343
|
-
call("libgio-2.0.so.0", "g_tls_connection_handshake_async", [
|
|
344
|
-
{
|
|
345
|
-
type: { type: "gobject" },
|
|
346
|
-
value: this.id,
|
|
347
|
-
},
|
|
348
|
-
{
|
|
349
|
-
type: { type: "int", size: 32, unsigned: false },
|
|
350
|
-
value: ioPriority,
|
|
351
|
-
},
|
|
352
|
-
{
|
|
353
|
-
type: { type: "gobject", borrowed: true },
|
|
354
|
-
value: cancellable?.id ?? cancellable,
|
|
355
|
-
optional: true,
|
|
356
|
-
},
|
|
357
|
-
{
|
|
358
|
-
type: { type: "callback" },
|
|
359
|
-
value: callback,
|
|
360
|
-
optional: true,
|
|
361
|
-
},
|
|
362
|
-
{
|
|
363
|
-
type: { type: "int", size: 64, unsigned: true },
|
|
364
|
-
value: userData,
|
|
365
|
-
optional: true,
|
|
366
|
-
},
|
|
367
|
-
], { type: "undefined" });
|
|
368
|
-
}
|
|
369
334
|
/**
|
|
370
335
|
* Finish an asynchronous TLS handshake operation. See
|
|
371
336
|
* g_tls_connection_handshake() for more information.
|
|
@@ -51,17 +51,6 @@ export declare class TlsDatabase extends GObject.GObject {
|
|
|
51
51
|
* @param cancellable - a #GCancellable, or %NULL
|
|
52
52
|
*/
|
|
53
53
|
lookupCertificateForHandle(handle: string, flags: TlsDatabaseLookupFlags, interaction?: TlsInteraction | null, cancellable?: Cancellable | null): TlsCertificate | null;
|
|
54
|
-
/**
|
|
55
|
-
* Asynchronously look up a certificate by its handle in the database. See
|
|
56
|
-
* g_tls_database_lookup_certificate_for_handle() for more information.
|
|
57
|
-
* @param handle - a certificate handle
|
|
58
|
-
* @param interaction - used to interact with the user if necessary
|
|
59
|
-
* @param flags - Flags which affect the lookup.
|
|
60
|
-
* @param cancellable - a #GCancellable, or %NULL
|
|
61
|
-
* @param callback - callback to call when the operation completes
|
|
62
|
-
* @param userData - the data to pass to the callback function
|
|
63
|
-
*/
|
|
64
|
-
lookupCertificateForHandleAsync(handle: string, flags: TlsDatabaseLookupFlags, interaction?: TlsInteraction | null, cancellable?: Cancellable | null, callback?: (...args: unknown[]) => unknown | null, userData?: number | null): void;
|
|
65
54
|
/**
|
|
66
55
|
* Finish an asynchronous lookup of a certificate by its handle. See
|
|
67
56
|
* g_tls_database_lookup_certificate_for_handle() for more information.
|
|
@@ -98,17 +87,6 @@ export declare class TlsDatabase extends GObject.GObject {
|
|
|
98
87
|
* @param cancellable - a #GCancellable, or %NULL
|
|
99
88
|
*/
|
|
100
89
|
lookupCertificateIssuer(certificate: TlsCertificate, flags: TlsDatabaseLookupFlags, interaction?: TlsInteraction | null, cancellable?: Cancellable | null): TlsCertificate;
|
|
101
|
-
/**
|
|
102
|
-
* Asynchronously look up the issuer of `certificate` in the database. See
|
|
103
|
-
* g_tls_database_lookup_certificate_issuer() for more information.
|
|
104
|
-
* @param certificate - a #GTlsCertificate
|
|
105
|
-
* @param interaction - used to interact with the user if necessary
|
|
106
|
-
* @param flags - flags which affect the lookup operation
|
|
107
|
-
* @param cancellable - a #GCancellable, or %NULL
|
|
108
|
-
* @param callback - callback to call when the operation completes
|
|
109
|
-
* @param userData - the data to pass to the callback function
|
|
110
|
-
*/
|
|
111
|
-
lookupCertificateIssuerAsync(certificate: TlsCertificate, flags: TlsDatabaseLookupFlags, interaction?: TlsInteraction | null, cancellable?: Cancellable | null, callback?: (...args: unknown[]) => unknown | null, userData?: number | null): void;
|
|
112
90
|
/**
|
|
113
91
|
* Finish an asynchronous lookup issuer operation. See
|
|
114
92
|
* g_tls_database_lookup_certificate_issuer() for more information.
|
|
@@ -126,21 +104,6 @@ export declare class TlsDatabase extends GObject.GObject {
|
|
|
126
104
|
* @param cancellable - a #GCancellable, or %NULL
|
|
127
105
|
*/
|
|
128
106
|
lookupCertificatesIssuedBy(issuerRawDn: GLib.ByteArray, flags: TlsDatabaseLookupFlags, interaction?: TlsInteraction | null, cancellable?: Cancellable | null): TlsCertificate[];
|
|
129
|
-
/**
|
|
130
|
-
* Asynchronously look up certificates issued by this issuer in the database. See
|
|
131
|
-
* g_tls_database_lookup_certificates_issued_by() for more information.
|
|
132
|
-
*
|
|
133
|
-
* The database may choose to hold a reference to the issuer byte array for the duration
|
|
134
|
-
* of this asynchronous operation. The byte array should not be modified during
|
|
135
|
-
* this time.
|
|
136
|
-
* @param issuerRawDn - a #GByteArray which holds the DER encoded issuer DN.
|
|
137
|
-
* @param interaction - used to interact with the user if necessary
|
|
138
|
-
* @param flags - Flags which affect the lookup operation.
|
|
139
|
-
* @param cancellable - a #GCancellable, or %NULL
|
|
140
|
-
* @param callback - callback to call when the operation completes
|
|
141
|
-
* @param userData - the data to pass to the callback function
|
|
142
|
-
*/
|
|
143
|
-
lookupCertificatesIssuedByAsync(issuerRawDn: GLib.ByteArray, flags: TlsDatabaseLookupFlags, interaction?: TlsInteraction | null, cancellable?: Cancellable | null, callback?: (...args: unknown[]) => unknown | null, userData?: number | null): void;
|
|
144
107
|
/**
|
|
145
108
|
* Finish an asynchronous lookup of certificates. See
|
|
146
109
|
* g_tls_database_lookup_certificates_issued_by() for more information.
|
|
@@ -216,20 +179,6 @@ export declare class TlsDatabase extends GObject.GObject {
|
|
|
216
179
|
* @param cancellable - a #GCancellable, or %NULL
|
|
217
180
|
*/
|
|
218
181
|
verifyChain(chain: TlsCertificate, purpose: string, flags: TlsDatabaseVerifyFlags, identity?: SocketConnectable | null, interaction?: TlsInteraction | null, cancellable?: Cancellable | null): TlsCertificateFlags;
|
|
219
|
-
/**
|
|
220
|
-
* Asynchronously determines the validity of a certificate chain after
|
|
221
|
-
* looking up and adding any missing certificates to the chain. See
|
|
222
|
-
* g_tls_database_verify_chain() for more information.
|
|
223
|
-
* @param chain - a #GTlsCertificate chain
|
|
224
|
-
* @param purpose - the purpose that this certificate chain will be used for.
|
|
225
|
-
* @param identity - the expected peer identity
|
|
226
|
-
* @param interaction - used to interact with the user if necessary
|
|
227
|
-
* @param flags - additional verify flags
|
|
228
|
-
* @param cancellable - a #GCancellable, or %NULL
|
|
229
|
-
* @param callback - callback to call when the operation completes
|
|
230
|
-
* @param userData - the data to pass to the callback function
|
|
231
|
-
*/
|
|
232
|
-
verifyChainAsync(chain: TlsCertificate, purpose: string, flags: TlsDatabaseVerifyFlags, identity?: SocketConnectable | null, interaction?: TlsInteraction | null, cancellable?: Cancellable | null, callback?: (...args: unknown[]) => unknown | null, userData?: number | null): void;
|
|
233
182
|
/**
|
|
234
183
|
* Finish an asynchronous verify chain operation. See
|
|
235
184
|
* g_tls_database_verify_chain() for more information.
|
|
@@ -104,52 +104,6 @@ export class TlsDatabase extends GObject.GObject {
|
|
|
104
104
|
return null;
|
|
105
105
|
return getObject(ptr);
|
|
106
106
|
}
|
|
107
|
-
/**
|
|
108
|
-
* Asynchronously look up a certificate by its handle in the database. See
|
|
109
|
-
* g_tls_database_lookup_certificate_for_handle() for more information.
|
|
110
|
-
* @param handle - a certificate handle
|
|
111
|
-
* @param interaction - used to interact with the user if necessary
|
|
112
|
-
* @param flags - Flags which affect the lookup.
|
|
113
|
-
* @param cancellable - a #GCancellable, or %NULL
|
|
114
|
-
* @param callback - callback to call when the operation completes
|
|
115
|
-
* @param userData - the data to pass to the callback function
|
|
116
|
-
*/
|
|
117
|
-
lookupCertificateForHandleAsync(handle, flags, interaction, cancellable, callback, userData) {
|
|
118
|
-
call("libgio-2.0.so.0", "g_tls_database_lookup_certificate_for_handle_async", [
|
|
119
|
-
{
|
|
120
|
-
type: { type: "gobject" },
|
|
121
|
-
value: this.id,
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
type: { type: "string" },
|
|
125
|
-
value: handle,
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
type: { type: "gobject", borrowed: true },
|
|
129
|
-
value: interaction?.id ?? interaction,
|
|
130
|
-
optional: true,
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
type: { type: "int", size: 32, unsigned: false },
|
|
134
|
-
value: flags,
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
type: { type: "gobject", borrowed: true },
|
|
138
|
-
value: cancellable?.id ?? cancellable,
|
|
139
|
-
optional: true,
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
type: { type: "callback" },
|
|
143
|
-
value: callback,
|
|
144
|
-
optional: true,
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
type: { type: "int", size: 64, unsigned: true },
|
|
148
|
-
value: userData,
|
|
149
|
-
optional: true,
|
|
150
|
-
},
|
|
151
|
-
], { type: "undefined" });
|
|
152
|
-
}
|
|
153
107
|
/**
|
|
154
108
|
* Finish an asynchronous lookup of a certificate by its handle. See
|
|
155
109
|
* g_tls_database_lookup_certificate_for_handle() for more information.
|
|
@@ -254,52 +208,6 @@ export class TlsDatabase extends GObject.GObject {
|
|
|
254
208
|
}
|
|
255
209
|
return getObject(ptr);
|
|
256
210
|
}
|
|
257
|
-
/**
|
|
258
|
-
* Asynchronously look up the issuer of `certificate` in the database. See
|
|
259
|
-
* g_tls_database_lookup_certificate_issuer() for more information.
|
|
260
|
-
* @param certificate - a #GTlsCertificate
|
|
261
|
-
* @param interaction - used to interact with the user if necessary
|
|
262
|
-
* @param flags - flags which affect the lookup operation
|
|
263
|
-
* @param cancellable - a #GCancellable, or %NULL
|
|
264
|
-
* @param callback - callback to call when the operation completes
|
|
265
|
-
* @param userData - the data to pass to the callback function
|
|
266
|
-
*/
|
|
267
|
-
lookupCertificateIssuerAsync(certificate, flags, interaction, cancellable, callback, userData) {
|
|
268
|
-
call("libgio-2.0.so.0", "g_tls_database_lookup_certificate_issuer_async", [
|
|
269
|
-
{
|
|
270
|
-
type: { type: "gobject" },
|
|
271
|
-
value: this.id,
|
|
272
|
-
},
|
|
273
|
-
{
|
|
274
|
-
type: { type: "gobject", borrowed: true },
|
|
275
|
-
value: certificate?.id ?? certificate,
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
type: { type: "gobject", borrowed: true },
|
|
279
|
-
value: interaction?.id ?? interaction,
|
|
280
|
-
optional: true,
|
|
281
|
-
},
|
|
282
|
-
{
|
|
283
|
-
type: { type: "int", size: 32, unsigned: false },
|
|
284
|
-
value: flags,
|
|
285
|
-
},
|
|
286
|
-
{
|
|
287
|
-
type: { type: "gobject", borrowed: true },
|
|
288
|
-
value: cancellable?.id ?? cancellable,
|
|
289
|
-
optional: true,
|
|
290
|
-
},
|
|
291
|
-
{
|
|
292
|
-
type: { type: "callback" },
|
|
293
|
-
value: callback,
|
|
294
|
-
optional: true,
|
|
295
|
-
},
|
|
296
|
-
{
|
|
297
|
-
type: { type: "int", size: 64, unsigned: true },
|
|
298
|
-
value: userData,
|
|
299
|
-
optional: true,
|
|
300
|
-
},
|
|
301
|
-
], { type: "undefined" });
|
|
302
|
-
}
|
|
303
211
|
/**
|
|
304
212
|
* Finish an asynchronous lookup issuer operation. See
|
|
305
213
|
* g_tls_database_lookup_certificate_issuer() for more information.
|
|
@@ -395,61 +303,6 @@ export class TlsDatabase extends GObject.GObject {
|
|
|
395
303
|
}
|
|
396
304
|
return ptrs.map((ptr) => getObject(ptr));
|
|
397
305
|
}
|
|
398
|
-
/**
|
|
399
|
-
* Asynchronously look up certificates issued by this issuer in the database. See
|
|
400
|
-
* g_tls_database_lookup_certificates_issued_by() for more information.
|
|
401
|
-
*
|
|
402
|
-
* The database may choose to hold a reference to the issuer byte array for the duration
|
|
403
|
-
* of this asynchronous operation. The byte array should not be modified during
|
|
404
|
-
* this time.
|
|
405
|
-
* @param issuerRawDn - a #GByteArray which holds the DER encoded issuer DN.
|
|
406
|
-
* @param interaction - used to interact with the user if necessary
|
|
407
|
-
* @param flags - Flags which affect the lookup operation.
|
|
408
|
-
* @param cancellable - a #GCancellable, or %NULL
|
|
409
|
-
* @param callback - callback to call when the operation completes
|
|
410
|
-
* @param userData - the data to pass to the callback function
|
|
411
|
-
*/
|
|
412
|
-
lookupCertificatesIssuedByAsync(issuerRawDn, flags, interaction, cancellable, callback, userData) {
|
|
413
|
-
call("libgio-2.0.so.0", "g_tls_database_lookup_certificates_issued_by_async", [
|
|
414
|
-
{
|
|
415
|
-
type: { type: "gobject" },
|
|
416
|
-
value: this.id,
|
|
417
|
-
},
|
|
418
|
-
{
|
|
419
|
-
type: {
|
|
420
|
-
type: "boxed",
|
|
421
|
-
borrowed: true,
|
|
422
|
-
innerType: "GByteArray",
|
|
423
|
-
lib: "libgio-2.0.so.0",
|
|
424
|
-
},
|
|
425
|
-
value: issuerRawDn?.id ?? issuerRawDn,
|
|
426
|
-
},
|
|
427
|
-
{
|
|
428
|
-
type: { type: "gobject", borrowed: true },
|
|
429
|
-
value: interaction?.id ?? interaction,
|
|
430
|
-
optional: true,
|
|
431
|
-
},
|
|
432
|
-
{
|
|
433
|
-
type: { type: "int", size: 32, unsigned: false },
|
|
434
|
-
value: flags,
|
|
435
|
-
},
|
|
436
|
-
{
|
|
437
|
-
type: { type: "gobject", borrowed: true },
|
|
438
|
-
value: cancellable?.id ?? cancellable,
|
|
439
|
-
optional: true,
|
|
440
|
-
},
|
|
441
|
-
{
|
|
442
|
-
type: { type: "callback" },
|
|
443
|
-
value: callback,
|
|
444
|
-
optional: true,
|
|
445
|
-
},
|
|
446
|
-
{
|
|
447
|
-
type: { type: "int", size: 64, unsigned: true },
|
|
448
|
-
value: userData,
|
|
449
|
-
optional: true,
|
|
450
|
-
},
|
|
451
|
-
], { type: "undefined" });
|
|
452
|
-
}
|
|
453
306
|
/**
|
|
454
307
|
* Finish an asynchronous lookup of certificates. See
|
|
455
308
|
* g_tls_database_lookup_certificates_issued_by() for more information.
|
|
@@ -607,64 +460,6 @@ export class TlsDatabase extends GObject.GObject {
|
|
|
607
460
|
}
|
|
608
461
|
return result;
|
|
609
462
|
}
|
|
610
|
-
/**
|
|
611
|
-
* Asynchronously determines the validity of a certificate chain after
|
|
612
|
-
* looking up and adding any missing certificates to the chain. See
|
|
613
|
-
* g_tls_database_verify_chain() for more information.
|
|
614
|
-
* @param chain - a #GTlsCertificate chain
|
|
615
|
-
* @param purpose - the purpose that this certificate chain will be used for.
|
|
616
|
-
* @param identity - the expected peer identity
|
|
617
|
-
* @param interaction - used to interact with the user if necessary
|
|
618
|
-
* @param flags - additional verify flags
|
|
619
|
-
* @param cancellable - a #GCancellable, or %NULL
|
|
620
|
-
* @param callback - callback to call when the operation completes
|
|
621
|
-
* @param userData - the data to pass to the callback function
|
|
622
|
-
*/
|
|
623
|
-
verifyChainAsync(chain, purpose, flags, identity, interaction, cancellable, callback, userData) {
|
|
624
|
-
call("libgio-2.0.so.0", "g_tls_database_verify_chain_async", [
|
|
625
|
-
{
|
|
626
|
-
type: { type: "gobject" },
|
|
627
|
-
value: this.id,
|
|
628
|
-
},
|
|
629
|
-
{
|
|
630
|
-
type: { type: "gobject", borrowed: true },
|
|
631
|
-
value: chain?.id ?? chain,
|
|
632
|
-
},
|
|
633
|
-
{
|
|
634
|
-
type: { type: "string" },
|
|
635
|
-
value: purpose,
|
|
636
|
-
},
|
|
637
|
-
{
|
|
638
|
-
type: { type: "gobject", borrowed: true },
|
|
639
|
-
value: identity?.id ?? identity,
|
|
640
|
-
optional: true,
|
|
641
|
-
},
|
|
642
|
-
{
|
|
643
|
-
type: { type: "gobject", borrowed: true },
|
|
644
|
-
value: interaction?.id ?? interaction,
|
|
645
|
-
optional: true,
|
|
646
|
-
},
|
|
647
|
-
{
|
|
648
|
-
type: { type: "int", size: 32, unsigned: false },
|
|
649
|
-
value: flags,
|
|
650
|
-
},
|
|
651
|
-
{
|
|
652
|
-
type: { type: "gobject", borrowed: true },
|
|
653
|
-
value: cancellable?.id ?? cancellable,
|
|
654
|
-
optional: true,
|
|
655
|
-
},
|
|
656
|
-
{
|
|
657
|
-
type: { type: "callback" },
|
|
658
|
-
value: callback,
|
|
659
|
-
optional: true,
|
|
660
|
-
},
|
|
661
|
-
{
|
|
662
|
-
type: { type: "int", size: 64, unsigned: true },
|
|
663
|
-
value: userData,
|
|
664
|
-
optional: true,
|
|
665
|
-
},
|
|
666
|
-
], { type: "undefined" });
|
|
667
|
-
}
|
|
668
463
|
/**
|
|
669
464
|
* Finish an asynchronous verify chain operation. See
|
|
670
465
|
* g_tls_database_verify_chain() for more information.
|
|
@@ -47,28 +47,6 @@ export declare class TlsInteraction extends GObject.GObject {
|
|
|
47
47
|
* @param cancellable - an optional #GCancellable cancellation object
|
|
48
48
|
*/
|
|
49
49
|
askPassword(password: TlsPassword, cancellable?: Cancellable | null): TlsInteractionResult;
|
|
50
|
-
/**
|
|
51
|
-
* Run asynchronous interaction to ask the user for a password. In general,
|
|
52
|
-
* g_tls_interaction_invoke_ask_password() should be used instead of this
|
|
53
|
-
* function.
|
|
54
|
-
*
|
|
55
|
-
* Derived subclasses usually implement a password prompt, although they may
|
|
56
|
-
* also choose to provide a password from elsewhere. The `password` value will
|
|
57
|
-
* be filled in and then `callback` will be called. Alternatively the user may
|
|
58
|
-
* abort this password request, which will usually abort the TLS connection.
|
|
59
|
-
*
|
|
60
|
-
* If the interaction is cancelled by the cancellation object, or by the
|
|
61
|
-
* user then %G_TLS_INTERACTION_FAILED will be returned with an error that
|
|
62
|
-
* contains a %G_IO_ERROR_CANCELLED error code. Certain implementations may
|
|
63
|
-
* not support immediate cancellation.
|
|
64
|
-
*
|
|
65
|
-
* Certain implementations may not support immediate cancellation.
|
|
66
|
-
* @param password - a #GTlsPassword object
|
|
67
|
-
* @param cancellable - an optional #GCancellable cancellation object
|
|
68
|
-
* @param callback - will be called when the interaction completes
|
|
69
|
-
* @param userData - data to pass to the @callback
|
|
70
|
-
*/
|
|
71
|
-
askPasswordAsync(password: TlsPassword, cancellable?: Cancellable | null, callback?: (...args: unknown[]) => unknown | null, userData?: number | null): void;
|
|
72
50
|
/**
|
|
73
51
|
* Complete an ask password user interaction request. This should be once
|
|
74
52
|
* the g_tls_interaction_ask_password_async() completion callback is called.
|
|
@@ -154,22 +132,6 @@ export declare class TlsInteraction extends GObject.GObject {
|
|
|
154
132
|
* @param cancellable - an optional #GCancellable cancellation object
|
|
155
133
|
*/
|
|
156
134
|
requestCertificate(connection: TlsConnection, flags: TlsCertificateRequestFlags, cancellable?: Cancellable | null): TlsInteractionResult;
|
|
157
|
-
/**
|
|
158
|
-
* Run asynchronous interaction to ask the user for a certificate to use with
|
|
159
|
-
* the connection. In general, g_tls_interaction_invoke_request_certificate() should
|
|
160
|
-
* be used instead of this function.
|
|
161
|
-
*
|
|
162
|
-
* Derived subclasses usually implement a certificate selector, although they may
|
|
163
|
-
* also choose to provide a certificate from elsewhere. `callback` will be called
|
|
164
|
-
* when the operation completes. Alternatively the user may abort this certificate
|
|
165
|
-
* request, which will usually abort the TLS connection.
|
|
166
|
-
* @param connection - a #GTlsConnection object
|
|
167
|
-
* @param flags - flags providing more information about the request
|
|
168
|
-
* @param cancellable - an optional #GCancellable cancellation object
|
|
169
|
-
* @param callback - will be called when the interaction completes
|
|
170
|
-
* @param userData - data to pass to the @callback
|
|
171
|
-
*/
|
|
172
|
-
requestCertificateAsync(connection: TlsConnection, flags: TlsCertificateRequestFlags, cancellable?: Cancellable | null, callback?: (...args: unknown[]) => unknown | null, userData?: number | null): void;
|
|
173
135
|
/**
|
|
174
136
|
* Complete a request certificate user interaction request. This should be once
|
|
175
137
|
* the g_tls_interaction_request_certificate_async() completion callback is called.
|