@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
|
@@ -98,54 +98,6 @@ export class TlsInteraction extends GObject.GObject {
|
|
|
98
98
|
}
|
|
99
99
|
return result;
|
|
100
100
|
}
|
|
101
|
-
/**
|
|
102
|
-
* Run asynchronous interaction to ask the user for a password. In general,
|
|
103
|
-
* g_tls_interaction_invoke_ask_password() should be used instead of this
|
|
104
|
-
* function.
|
|
105
|
-
*
|
|
106
|
-
* Derived subclasses usually implement a password prompt, although they may
|
|
107
|
-
* also choose to provide a password from elsewhere. The `password` value will
|
|
108
|
-
* be filled in and then `callback` will be called. Alternatively the user may
|
|
109
|
-
* abort this password request, which will usually abort the TLS connection.
|
|
110
|
-
*
|
|
111
|
-
* If the interaction is cancelled by the cancellation object, or by the
|
|
112
|
-
* user then %G_TLS_INTERACTION_FAILED will be returned with an error that
|
|
113
|
-
* contains a %G_IO_ERROR_CANCELLED error code. Certain implementations may
|
|
114
|
-
* not support immediate cancellation.
|
|
115
|
-
*
|
|
116
|
-
* Certain implementations may not support immediate cancellation.
|
|
117
|
-
* @param password - a #GTlsPassword object
|
|
118
|
-
* @param cancellable - an optional #GCancellable cancellation object
|
|
119
|
-
* @param callback - will be called when the interaction completes
|
|
120
|
-
* @param userData - data to pass to the @callback
|
|
121
|
-
*/
|
|
122
|
-
askPasswordAsync(password, cancellable, callback, userData) {
|
|
123
|
-
call("libgio-2.0.so.0", "g_tls_interaction_ask_password_async", [
|
|
124
|
-
{
|
|
125
|
-
type: { type: "gobject" },
|
|
126
|
-
value: this.id,
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
type: { type: "gobject", borrowed: true },
|
|
130
|
-
value: password?.id ?? password,
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
type: { type: "gobject", borrowed: true },
|
|
134
|
-
value: cancellable?.id ?? cancellable,
|
|
135
|
-
optional: true,
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
type: { type: "callback" },
|
|
139
|
-
value: callback,
|
|
140
|
-
optional: true,
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
type: { type: "int", size: 64, unsigned: true },
|
|
144
|
-
value: userData,
|
|
145
|
-
optional: true,
|
|
146
|
-
},
|
|
147
|
-
], { type: "undefined" });
|
|
148
|
-
}
|
|
149
101
|
/**
|
|
150
102
|
* Complete an ask password user interaction request. This should be once
|
|
151
103
|
* the g_tls_interaction_ask_password_async() completion callback is called.
|
|
@@ -362,52 +314,6 @@ export class TlsInteraction extends GObject.GObject {
|
|
|
362
314
|
}
|
|
363
315
|
return result;
|
|
364
316
|
}
|
|
365
|
-
/**
|
|
366
|
-
* Run asynchronous interaction to ask the user for a certificate to use with
|
|
367
|
-
* the connection. In general, g_tls_interaction_invoke_request_certificate() should
|
|
368
|
-
* be used instead of this function.
|
|
369
|
-
*
|
|
370
|
-
* Derived subclasses usually implement a certificate selector, although they may
|
|
371
|
-
* also choose to provide a certificate from elsewhere. `callback` will be called
|
|
372
|
-
* when the operation completes. Alternatively the user may abort this certificate
|
|
373
|
-
* request, which will usually abort the TLS connection.
|
|
374
|
-
* @param connection - a #GTlsConnection object
|
|
375
|
-
* @param flags - flags providing more information about the request
|
|
376
|
-
* @param cancellable - an optional #GCancellable cancellation object
|
|
377
|
-
* @param callback - will be called when the interaction completes
|
|
378
|
-
* @param userData - data to pass to the @callback
|
|
379
|
-
*/
|
|
380
|
-
requestCertificateAsync(connection, flags, cancellable, callback, userData) {
|
|
381
|
-
call("libgio-2.0.so.0", "g_tls_interaction_request_certificate_async", [
|
|
382
|
-
{
|
|
383
|
-
type: { type: "gobject" },
|
|
384
|
-
value: this.id,
|
|
385
|
-
},
|
|
386
|
-
{
|
|
387
|
-
type: { type: "gobject", borrowed: true },
|
|
388
|
-
value: connection?.id ?? connection,
|
|
389
|
-
},
|
|
390
|
-
{
|
|
391
|
-
type: { type: "int", size: 32, unsigned: false },
|
|
392
|
-
value: flags,
|
|
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
317
|
/**
|
|
412
318
|
* Complete a request certificate user interaction request. This should be once
|
|
413
319
|
* the g_tls_interaction_request_certificate_async() completion callback is called.
|
|
@@ -42,19 +42,6 @@ export declare class UnixConnection extends SocketConnection {
|
|
|
42
42
|
* @param cancellable - A #GCancellable or %NULL.
|
|
43
43
|
*/
|
|
44
44
|
receiveCredentials(cancellable?: Cancellable | null): Credentials;
|
|
45
|
-
/**
|
|
46
|
-
* Asynchronously receive credentials.
|
|
47
|
-
*
|
|
48
|
-
* For more details, see g_unix_connection_receive_credentials() which is
|
|
49
|
-
* the synchronous version of this call.
|
|
50
|
-
*
|
|
51
|
-
* When the operation is finished, `callback` will be called. You can then call
|
|
52
|
-
* g_unix_connection_receive_credentials_finish() to get the result of the operation.
|
|
53
|
-
* @param cancellable - optional #GCancellable object, %NULL to ignore.
|
|
54
|
-
* @param callback - a #GAsyncReadyCallback
|
|
55
|
-
* @param userData - the data to pass to callback function
|
|
56
|
-
*/
|
|
57
|
-
receiveCredentialsAsync(cancellable?: Cancellable | null, callback?: (...args: unknown[]) => unknown | null, userData?: number | null): void;
|
|
58
45
|
/**
|
|
59
46
|
* Finishes an asynchronous receive credentials operation started with
|
|
60
47
|
* g_unix_connection_receive_credentials_async().
|
|
@@ -95,19 +82,6 @@ export declare class UnixConnection extends SocketConnection {
|
|
|
95
82
|
* @param cancellable - A #GCancellable or %NULL.
|
|
96
83
|
*/
|
|
97
84
|
sendCredentials(cancellable?: Cancellable | null): boolean;
|
|
98
|
-
/**
|
|
99
|
-
* Asynchronously send credentials.
|
|
100
|
-
*
|
|
101
|
-
* For more details, see g_unix_connection_send_credentials() which is
|
|
102
|
-
* the synchronous version of this call.
|
|
103
|
-
*
|
|
104
|
-
* When the operation is finished, `callback` will be called. You can then call
|
|
105
|
-
* g_unix_connection_send_credentials_finish() to get the result of the operation.
|
|
106
|
-
* @param cancellable - optional #GCancellable object, %NULL to ignore.
|
|
107
|
-
* @param callback - a #GAsyncReadyCallback
|
|
108
|
-
* @param userData - the data to pass to callback function
|
|
109
|
-
*/
|
|
110
|
-
sendCredentialsAsync(cancellable?: Cancellable | null, callback?: (...args: unknown[]) => unknown | null, userData?: number | null): void;
|
|
111
85
|
/**
|
|
112
86
|
* Finishes an asynchronous send credentials operation started with
|
|
113
87
|
* g_unix_connection_send_credentials_async().
|
|
@@ -90,41 +90,6 @@ export class UnixConnection extends SocketConnection {
|
|
|
90
90
|
}
|
|
91
91
|
return getObject(ptr);
|
|
92
92
|
}
|
|
93
|
-
/**
|
|
94
|
-
* Asynchronously receive credentials.
|
|
95
|
-
*
|
|
96
|
-
* For more details, see g_unix_connection_receive_credentials() which is
|
|
97
|
-
* the synchronous version of this call.
|
|
98
|
-
*
|
|
99
|
-
* When the operation is finished, `callback` will be called. You can then call
|
|
100
|
-
* g_unix_connection_receive_credentials_finish() to get the result of the operation.
|
|
101
|
-
* @param cancellable - optional #GCancellable object, %NULL to ignore.
|
|
102
|
-
* @param callback - a #GAsyncReadyCallback
|
|
103
|
-
* @param userData - the data to pass to callback function
|
|
104
|
-
*/
|
|
105
|
-
receiveCredentialsAsync(cancellable, callback, userData) {
|
|
106
|
-
call("libgio-2.0.so.0", "g_unix_connection_receive_credentials_async", [
|
|
107
|
-
{
|
|
108
|
-
type: { type: "gobject" },
|
|
109
|
-
value: this.id,
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
type: { type: "gobject", borrowed: true },
|
|
113
|
-
value: cancellable?.id ?? cancellable,
|
|
114
|
-
optional: true,
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
type: { type: "callback" },
|
|
118
|
-
value: callback,
|
|
119
|
-
optional: true,
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
type: { type: "int", size: 64, unsigned: true },
|
|
123
|
-
value: userData,
|
|
124
|
-
optional: true,
|
|
125
|
-
},
|
|
126
|
-
], { type: "undefined" });
|
|
127
|
-
}
|
|
128
93
|
/**
|
|
129
94
|
* Finishes an asynchronous receive credentials operation started with
|
|
130
95
|
* g_unix_connection_receive_credentials_async().
|
|
@@ -248,41 +213,6 @@ export class UnixConnection extends SocketConnection {
|
|
|
248
213
|
}
|
|
249
214
|
return result;
|
|
250
215
|
}
|
|
251
|
-
/**
|
|
252
|
-
* Asynchronously send credentials.
|
|
253
|
-
*
|
|
254
|
-
* For more details, see g_unix_connection_send_credentials() which is
|
|
255
|
-
* the synchronous version of this call.
|
|
256
|
-
*
|
|
257
|
-
* When the operation is finished, `callback` will be called. You can then call
|
|
258
|
-
* g_unix_connection_send_credentials_finish() to get the result of the operation.
|
|
259
|
-
* @param cancellable - optional #GCancellable object, %NULL to ignore.
|
|
260
|
-
* @param callback - a #GAsyncReadyCallback
|
|
261
|
-
* @param userData - the data to pass to callback function
|
|
262
|
-
*/
|
|
263
|
-
sendCredentialsAsync(cancellable, callback, userData) {
|
|
264
|
-
call("libgio-2.0.so.0", "g_unix_connection_send_credentials_async", [
|
|
265
|
-
{
|
|
266
|
-
type: { type: "gobject" },
|
|
267
|
-
value: this.id,
|
|
268
|
-
},
|
|
269
|
-
{
|
|
270
|
-
type: { type: "gobject", borrowed: true },
|
|
271
|
-
value: cancellable?.id ?? cancellable,
|
|
272
|
-
optional: true,
|
|
273
|
-
},
|
|
274
|
-
{
|
|
275
|
-
type: { type: "callback" },
|
|
276
|
-
value: callback,
|
|
277
|
-
optional: true,
|
|
278
|
-
},
|
|
279
|
-
{
|
|
280
|
-
type: { type: "int", size: 64, unsigned: true },
|
|
281
|
-
value: userData,
|
|
282
|
-
optional: true,
|
|
283
|
-
},
|
|
284
|
-
], { type: "undefined" });
|
|
285
|
-
}
|
|
286
216
|
/**
|
|
287
217
|
* Finishes an asynchronous send credentials operation started with
|
|
288
218
|
* g_unix_connection_send_credentials_async().
|
|
@@ -41,36 +41,6 @@ export declare class Vfs extends GObject.GObject {
|
|
|
41
41
|
* @param parseName - a string to be parsed by the VFS module.
|
|
42
42
|
*/
|
|
43
43
|
parseName(parseName: string): File;
|
|
44
|
-
/**
|
|
45
|
-
* Registers `uri_func` and `parse_name_func` as the #GFile URI and parse name
|
|
46
|
-
* lookup functions for URIs with a scheme matching @scheme.
|
|
47
|
-
* Note that `scheme` is registered only within the running application, as
|
|
48
|
-
* opposed to desktop-wide as it happens with GVfs backends.
|
|
49
|
-
*
|
|
50
|
-
* When a #GFile is requested with an URI containing `scheme` (e.g. through
|
|
51
|
-
* g_file_new_for_uri()), `uri_func` will be called to allow a custom
|
|
52
|
-
* constructor. The implementation of `uri_func` should not be blocking, and
|
|
53
|
-
* must not call g_vfs_register_uri_scheme() or g_vfs_unregister_uri_scheme().
|
|
54
|
-
*
|
|
55
|
-
* When g_file_parse_name() is called with a parse name obtained from such file,
|
|
56
|
-
* `parse_name_func` will be called to allow the #GFile to be created again. In
|
|
57
|
-
* that case, it's responsibility of `parse_name_func` to make sure the parse
|
|
58
|
-
* name matches what the custom #GFile implementation returned when
|
|
59
|
-
* g_file_get_parse_name() was previously called. The implementation of
|
|
60
|
-
* `parse_name_func` should not be blocking, and must not call
|
|
61
|
-
* g_vfs_register_uri_scheme() or g_vfs_unregister_uri_scheme().
|
|
62
|
-
*
|
|
63
|
-
* It's an error to call this function twice with the same scheme. To unregister
|
|
64
|
-
* a custom URI scheme, use g_vfs_unregister_uri_scheme().
|
|
65
|
-
* @param scheme - an URI scheme, e.g. "http"
|
|
66
|
-
* @param uriFunc - a #GVfsFileLookupFunc
|
|
67
|
-
* @param uriData - custom data passed to be passed to @uri_func, or %NULL
|
|
68
|
-
* @param uriDestroy - function to be called when unregistering the
|
|
69
|
-
* @param parseNameFunc - a #GVfsFileLookupFunc
|
|
70
|
-
* @param parseNameData - custom data passed to be passed to
|
|
71
|
-
* @param parseNameDestroy - function to be called when unregistering the
|
|
72
|
-
*/
|
|
73
|
-
registerUriScheme(scheme: string, uriFunc?: (...args: unknown[]) => unknown | null, uriData?: number | null, uriDestroy?: () => void | null, parseNameFunc?: (...args: unknown[]) => unknown | null, parseNameData?: number | null, parseNameDestroy?: () => void | null): boolean;
|
|
74
44
|
/**
|
|
75
45
|
* Unregisters the URI handler for `scheme` previously registered with
|
|
76
46
|
* g_vfs_register_uri_scheme().
|
|
@@ -126,77 +126,6 @@ export class Vfs extends GObject.GObject {
|
|
|
126
126
|
], { type: "gobject", borrowed: true });
|
|
127
127
|
return getInterface(ptr, File);
|
|
128
128
|
}
|
|
129
|
-
/**
|
|
130
|
-
* Registers `uri_func` and `parse_name_func` as the #GFile URI and parse name
|
|
131
|
-
* lookup functions for URIs with a scheme matching @scheme.
|
|
132
|
-
* Note that `scheme` is registered only within the running application, as
|
|
133
|
-
* opposed to desktop-wide as it happens with GVfs backends.
|
|
134
|
-
*
|
|
135
|
-
* When a #GFile is requested with an URI containing `scheme` (e.g. through
|
|
136
|
-
* g_file_new_for_uri()), `uri_func` will be called to allow a custom
|
|
137
|
-
* constructor. The implementation of `uri_func` should not be blocking, and
|
|
138
|
-
* must not call g_vfs_register_uri_scheme() or g_vfs_unregister_uri_scheme().
|
|
139
|
-
*
|
|
140
|
-
* When g_file_parse_name() is called with a parse name obtained from such file,
|
|
141
|
-
* `parse_name_func` will be called to allow the #GFile to be created again. In
|
|
142
|
-
* that case, it's responsibility of `parse_name_func` to make sure the parse
|
|
143
|
-
* name matches what the custom #GFile implementation returned when
|
|
144
|
-
* g_file_get_parse_name() was previously called. The implementation of
|
|
145
|
-
* `parse_name_func` should not be blocking, and must not call
|
|
146
|
-
* g_vfs_register_uri_scheme() or g_vfs_unregister_uri_scheme().
|
|
147
|
-
*
|
|
148
|
-
* It's an error to call this function twice with the same scheme. To unregister
|
|
149
|
-
* a custom URI scheme, use g_vfs_unregister_uri_scheme().
|
|
150
|
-
* @param scheme - an URI scheme, e.g. "http"
|
|
151
|
-
* @param uriFunc - a #GVfsFileLookupFunc
|
|
152
|
-
* @param uriData - custom data passed to be passed to @uri_func, or %NULL
|
|
153
|
-
* @param uriDestroy - function to be called when unregistering the
|
|
154
|
-
* @param parseNameFunc - a #GVfsFileLookupFunc
|
|
155
|
-
* @param parseNameData - custom data passed to be passed to
|
|
156
|
-
* @param parseNameDestroy - function to be called when unregistering the
|
|
157
|
-
*/
|
|
158
|
-
registerUriScheme(scheme, uriFunc, uriData, uriDestroy, parseNameFunc, parseNameData, parseNameDestroy) {
|
|
159
|
-
return call("libgio-2.0.so.0", "g_vfs_register_uri_scheme", [
|
|
160
|
-
{
|
|
161
|
-
type: { type: "gobject" },
|
|
162
|
-
value: this.id,
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
type: { type: "string" },
|
|
166
|
-
value: scheme,
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
type: { type: "callback" },
|
|
170
|
-
value: uriFunc,
|
|
171
|
-
optional: true,
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
type: { type: "int", size: 64, unsigned: true },
|
|
175
|
-
value: uriData,
|
|
176
|
-
optional: true,
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
type: { type: "callback", trampoline: "destroy" },
|
|
180
|
-
value: uriDestroy,
|
|
181
|
-
optional: true,
|
|
182
|
-
},
|
|
183
|
-
{
|
|
184
|
-
type: { type: "callback" },
|
|
185
|
-
value: parseNameFunc,
|
|
186
|
-
optional: true,
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
type: { type: "int", size: 64, unsigned: true },
|
|
190
|
-
value: parseNameData,
|
|
191
|
-
optional: true,
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
type: { type: "callback", trampoline: "destroy" },
|
|
195
|
-
value: parseNameDestroy,
|
|
196
|
-
optional: true,
|
|
197
|
-
},
|
|
198
|
-
], { type: "boolean" });
|
|
199
|
-
}
|
|
200
129
|
/**
|
|
201
130
|
* Unregisters the URI handler for `scheme` previously registered with
|
|
202
131
|
* g_vfs_register_uri_scheme().
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import { MountMountFlags, MountUnmountFlags } from "./enums.js";
|
|
2
1
|
import { AsyncResult } from "./async-result.js";
|
|
3
|
-
import { Cancellable } from "./cancellable.js";
|
|
4
2
|
import { Drive } from "./drive.js";
|
|
5
3
|
import { File } from "./file.js";
|
|
6
4
|
import { Icon } from "./icon.js";
|
|
7
5
|
import { Mount } from "./mount.js";
|
|
8
|
-
import { MountOperation } from "./mount-operation.js";
|
|
9
6
|
/**
|
|
10
7
|
* The `GVolume` interface represents user-visible objects that can be
|
|
11
8
|
* mounted. For example, a file system partition on a USB flash drive, or an
|
|
@@ -68,31 +65,12 @@ export declare class Volume {
|
|
|
68
65
|
* Checks if a volume can be mounted.
|
|
69
66
|
*/
|
|
70
67
|
canMount(): boolean;
|
|
71
|
-
/**
|
|
72
|
-
* Ejects a volume. This is an asynchronous operation, and is
|
|
73
|
-
* finished by calling g_volume_eject_finish() with the `volume` and #GAsyncResult returned in the @callback.
|
|
74
|
-
* @param flags - flags affecting the unmount if required for eject
|
|
75
|
-
* @param cancellable - optional #GCancellable object, %NULL to ignore
|
|
76
|
-
* @param callback - a #GAsyncReadyCallback, or %NULL
|
|
77
|
-
* @param userData - user data that gets passed to @callback
|
|
78
|
-
*/
|
|
79
|
-
eject(flags: MountUnmountFlags, cancellable?: Cancellable | null, callback?: (...args: unknown[]) => unknown | null, userData?: number | null): void;
|
|
80
68
|
/**
|
|
81
69
|
* Finishes ejecting a volume. If any errors occurred during the operation,
|
|
82
70
|
* `error` will be set to contain the errors and %FALSE will be returned.
|
|
83
71
|
* @param result - a #GAsyncResult
|
|
84
72
|
*/
|
|
85
73
|
ejectFinish(result: AsyncResult): boolean;
|
|
86
|
-
/**
|
|
87
|
-
* Ejects a volume. This is an asynchronous operation, and is
|
|
88
|
-
* finished by calling g_volume_eject_with_operation_finish() with the `volume` and #GAsyncResult data returned in the @callback.
|
|
89
|
-
* @param flags - flags affecting the unmount if required for eject
|
|
90
|
-
* @param mountOperation - a #GMountOperation or %NULL to
|
|
91
|
-
* @param cancellable - optional #GCancellable object, %NULL to ignore
|
|
92
|
-
* @param callback - a #GAsyncReadyCallback, or %NULL
|
|
93
|
-
* @param userData - user data passed to @callback
|
|
94
|
-
*/
|
|
95
|
-
ejectWithOperation(flags: MountUnmountFlags, mountOperation?: MountOperation | null, cancellable?: Cancellable | null, callback?: (...args: unknown[]) => unknown | null, userData?: number | null): void;
|
|
96
74
|
/**
|
|
97
75
|
* Finishes ejecting a volume. If any errors occurred during the operation,
|
|
98
76
|
* `error` will be set to contain the errors and %FALSE will be returned.
|
|
@@ -170,16 +148,6 @@ export declare class Volume {
|
|
|
170
148
|
* available.
|
|
171
149
|
*/
|
|
172
150
|
getUuid(): string | null;
|
|
173
|
-
/**
|
|
174
|
-
* Mounts a volume. This is an asynchronous operation, and is
|
|
175
|
-
* finished by calling g_volume_mount_finish() with the `volume` and #GAsyncResult returned in the @callback.
|
|
176
|
-
* @param flags - flags affecting the operation
|
|
177
|
-
* @param mountOperation - a #GMountOperation or %NULL to avoid user interaction
|
|
178
|
-
* @param cancellable - optional #GCancellable object, %NULL to ignore
|
|
179
|
-
* @param callback - a #GAsyncReadyCallback, or %NULL
|
|
180
|
-
* @param userData - user data that gets passed to @callback
|
|
181
|
-
*/
|
|
182
|
-
mount(flags: MountMountFlags, mountOperation?: MountOperation | null, cancellable?: Cancellable | null, callback?: (...args: unknown[]) => unknown | null, userData?: number | null): void;
|
|
183
151
|
/**
|
|
184
152
|
* Finishes mounting a volume. If any errors occurred during the operation,
|
|
185
153
|
* `error` will be set to contain the errors and %FALSE will be returned.
|
|
@@ -85,41 +85,6 @@ export class Volume {
|
|
|
85
85
|
},
|
|
86
86
|
], { type: "boolean" });
|
|
87
87
|
}
|
|
88
|
-
/**
|
|
89
|
-
* Ejects a volume. This is an asynchronous operation, and is
|
|
90
|
-
* finished by calling g_volume_eject_finish() with the `volume` and #GAsyncResult returned in the @callback.
|
|
91
|
-
* @param flags - flags affecting the unmount if required for eject
|
|
92
|
-
* @param cancellable - optional #GCancellable object, %NULL to ignore
|
|
93
|
-
* @param callback - a #GAsyncReadyCallback, or %NULL
|
|
94
|
-
* @param userData - user data that gets passed to @callback
|
|
95
|
-
*/
|
|
96
|
-
eject(flags, cancellable, callback, userData) {
|
|
97
|
-
call("libgio-2.0.so.0", "g_volume_eject", [
|
|
98
|
-
{
|
|
99
|
-
type: { type: "gobject" },
|
|
100
|
-
value: this.id,
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
type: { type: "int", size: 32, unsigned: false },
|
|
104
|
-
value: flags,
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
type: { type: "gobject", borrowed: true },
|
|
108
|
-
value: cancellable?.id ?? cancellable,
|
|
109
|
-
optional: true,
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
type: { type: "callback" },
|
|
113
|
-
value: callback,
|
|
114
|
-
optional: true,
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
type: { type: "int", size: 64, unsigned: true },
|
|
118
|
-
value: userData,
|
|
119
|
-
optional: true,
|
|
120
|
-
},
|
|
121
|
-
], { type: "undefined" });
|
|
122
|
-
}
|
|
123
88
|
/**
|
|
124
89
|
* Finishes ejecting a volume. If any errors occurred during the operation,
|
|
125
90
|
* `error` will be set to contain the errors and %FALSE will be returned.
|
|
@@ -153,47 +118,6 @@ export class Volume {
|
|
|
153
118
|
}
|
|
154
119
|
return _result;
|
|
155
120
|
}
|
|
156
|
-
/**
|
|
157
|
-
* Ejects a volume. This is an asynchronous operation, and is
|
|
158
|
-
* finished by calling g_volume_eject_with_operation_finish() with the `volume` and #GAsyncResult data returned in the @callback.
|
|
159
|
-
* @param flags - flags affecting the unmount if required for eject
|
|
160
|
-
* @param mountOperation - a #GMountOperation or %NULL to
|
|
161
|
-
* @param cancellable - optional #GCancellable object, %NULL to ignore
|
|
162
|
-
* @param callback - a #GAsyncReadyCallback, or %NULL
|
|
163
|
-
* @param userData - user data passed to @callback
|
|
164
|
-
*/
|
|
165
|
-
ejectWithOperation(flags, mountOperation, cancellable, callback, userData) {
|
|
166
|
-
call("libgio-2.0.so.0", "g_volume_eject_with_operation", [
|
|
167
|
-
{
|
|
168
|
-
type: { type: "gobject" },
|
|
169
|
-
value: this.id,
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
type: { type: "int", size: 32, unsigned: false },
|
|
173
|
-
value: flags,
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
type: { type: "gobject", borrowed: true },
|
|
177
|
-
value: mountOperation?.id ?? mountOperation,
|
|
178
|
-
optional: true,
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
type: { type: "gobject", borrowed: true },
|
|
182
|
-
value: cancellable?.id ?? cancellable,
|
|
183
|
-
optional: true,
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
type: { type: "callback" },
|
|
187
|
-
value: callback,
|
|
188
|
-
optional: true,
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
type: { type: "int", size: 64, unsigned: true },
|
|
192
|
-
value: userData,
|
|
193
|
-
optional: true,
|
|
194
|
-
},
|
|
195
|
-
], { type: "undefined" });
|
|
196
|
-
}
|
|
197
121
|
/**
|
|
198
122
|
* Finishes ejecting a volume. If any errors occurred during the operation,
|
|
199
123
|
* `error` will be set to contain the errors and %FALSE will be returned.
|
|
@@ -383,47 +307,6 @@ export class Volume {
|
|
|
383
307
|
},
|
|
384
308
|
], { type: "string" });
|
|
385
309
|
}
|
|
386
|
-
/**
|
|
387
|
-
* Mounts a volume. This is an asynchronous operation, and is
|
|
388
|
-
* finished by calling g_volume_mount_finish() with the `volume` and #GAsyncResult returned in the @callback.
|
|
389
|
-
* @param flags - flags affecting the operation
|
|
390
|
-
* @param mountOperation - a #GMountOperation or %NULL to avoid user interaction
|
|
391
|
-
* @param cancellable - optional #GCancellable object, %NULL to ignore
|
|
392
|
-
* @param callback - a #GAsyncReadyCallback, or %NULL
|
|
393
|
-
* @param userData - user data that gets passed to @callback
|
|
394
|
-
*/
|
|
395
|
-
mount(flags, mountOperation, cancellable, callback, userData) {
|
|
396
|
-
call("libgio-2.0.so.0", "g_volume_mount", [
|
|
397
|
-
{
|
|
398
|
-
type: { type: "gobject" },
|
|
399
|
-
value: this.id,
|
|
400
|
-
},
|
|
401
|
-
{
|
|
402
|
-
type: { type: "int", size: 32, unsigned: false },
|
|
403
|
-
value: flags,
|
|
404
|
-
},
|
|
405
|
-
{
|
|
406
|
-
type: { type: "gobject", borrowed: true },
|
|
407
|
-
value: mountOperation?.id ?? mountOperation,
|
|
408
|
-
optional: true,
|
|
409
|
-
},
|
|
410
|
-
{
|
|
411
|
-
type: { type: "gobject", borrowed: true },
|
|
412
|
-
value: cancellable?.id ?? cancellable,
|
|
413
|
-
optional: true,
|
|
414
|
-
},
|
|
415
|
-
{
|
|
416
|
-
type: { type: "callback" },
|
|
417
|
-
value: callback,
|
|
418
|
-
optional: true,
|
|
419
|
-
},
|
|
420
|
-
{
|
|
421
|
-
type: { type: "int", size: 64, unsigned: true },
|
|
422
|
-
value: userData,
|
|
423
|
-
optional: true,
|
|
424
|
-
},
|
|
425
|
-
], { type: "undefined" });
|
|
426
|
-
}
|
|
427
310
|
/**
|
|
428
311
|
* Finishes mounting a volume. If any errors occurred during the operation,
|
|
429
312
|
* `error` will be set to contain the errors and %FALSE will be returned.
|
|
@@ -202,50 +202,6 @@ export declare class DesktopAppInfo extends GObject.GObject {
|
|
|
202
202
|
* @param launchContext - a [class@Gio.AppLaunchContext]
|
|
203
203
|
*/
|
|
204
204
|
launchAction(actionName: string, launchContext?: Gio.AppLaunchContext | null): void;
|
|
205
|
-
/**
|
|
206
|
-
* This function performs the equivalent of [method@Gio.AppInfo.launch_uris],
|
|
207
|
-
* but is intended primarily for operating system components that
|
|
208
|
-
* launch applications. Ordinary applications should use
|
|
209
|
-
* [method@Gio.AppInfo.launch_uris].
|
|
210
|
-
*
|
|
211
|
-
* If the application is launched via GSpawn, then @spawn_flags, `user_setup` and `user_setup_data` are used for the call to [func@GLib.spawn_async].
|
|
212
|
-
* Additionally, `pid_callback` (with @pid_callback_data) will be called to
|
|
213
|
-
* inform about the PID of the created process. See
|
|
214
|
-
* [func@GLib.spawn_async_with_pipes] for information on certain parameter
|
|
215
|
-
* conditions that can enable an optimized [`posix_spawn()`](man:posix_spawn(3))
|
|
216
|
-
* code path to be used.
|
|
217
|
-
*
|
|
218
|
-
* If application launching occurs via some other mechanism (for example, D-Bus
|
|
219
|
-
* activation) then @spawn_flags, @user_setup, @user_setup_data,
|
|
220
|
-
* `pid_callback` and `pid_callback_data` are ignored.
|
|
221
|
-
* @param uris - List of URIs
|
|
222
|
-
* @param launchContext - a [class@Gio.AppLaunchContext]
|
|
223
|
-
* @param spawnFlags - [flags@GLib.SpawnFlags], used for each process
|
|
224
|
-
* @param userSetup - a [callback@GLib.SpawnChildSetupFunc],
|
|
225
|
-
* @param userSetupData - User data for @user_setup
|
|
226
|
-
* @param pidCallback - Callback for child processes
|
|
227
|
-
* @param pidCallbackData - User data for @callback
|
|
228
|
-
*/
|
|
229
|
-
launchUrisAsManager(uris: string[], spawnFlags: GLib.SpawnFlags, launchContext?: Gio.AppLaunchContext | null, userSetup?: (...args: unknown[]) => unknown | null, userSetupData?: number | null, pidCallback?: (...args: unknown[]) => unknown | null, pidCallbackData?: number | null): boolean;
|
|
230
|
-
/**
|
|
231
|
-
* Equivalent to [method@GioUnix.DesktopAppInfo.launch_uris_as_manager] but
|
|
232
|
-
* allows you to pass in file descriptors for the stdin, stdout and stderr
|
|
233
|
-
* streams of the launched process.
|
|
234
|
-
*
|
|
235
|
-
* If application launching occurs via some non-spawn mechanism (e.g. D-Bus
|
|
236
|
-
* activation) then @stdin_fd, `stdout_fd` and `stderr_fd` are ignored.
|
|
237
|
-
* @param uris - List of URIs
|
|
238
|
-
* @param launchContext - a [class@Gio.AppLaunchContext]
|
|
239
|
-
* @param spawnFlags - [flags@GLib.SpawnFlags], used for each process
|
|
240
|
-
* @param userSetup - a
|
|
241
|
-
* @param userSetupData - User data for @user_setup
|
|
242
|
-
* @param pidCallback - Callback for child processes
|
|
243
|
-
* @param pidCallbackData - User data for @callback
|
|
244
|
-
* @param stdinFd - file descriptor to use for child’s stdin, or `-1`
|
|
245
|
-
* @param stdoutFd - file descriptor to use for child’s stdout, or `-1`
|
|
246
|
-
* @param stderrFd - file descriptor to use for child’s stderr, or `-1`
|
|
247
|
-
*/
|
|
248
|
-
launchUrisAsManagerWithFds(uris: string[], spawnFlags: GLib.SpawnFlags, stdinFd: number, stdoutFd: number, stderrFd: number, launchContext?: Gio.AppLaunchContext | null, userSetup?: (...args: unknown[]) => unknown | null, userSetupData?: number | null, pidCallback?: (...args: unknown[]) => unknown | null, pidCallbackData?: number | null): boolean;
|
|
249
205
|
/**
|
|
250
206
|
* Returns the list of
|
|
251
207
|
* ‘additional application actions’
|
|
@@ -389,20 +345,6 @@ export declare class DesktopAppInfo extends GObject.GObject {
|
|
|
389
345
|
* @param context - the launch context
|
|
390
346
|
*/
|
|
391
347
|
launchUris(uris?: string[] | null, context?: Gdk.AppLaunchContext | null): boolean;
|
|
392
|
-
/**
|
|
393
|
-
* Async version of [method@Gio.AppInfo.launch_uris].
|
|
394
|
-
*
|
|
395
|
-
* The `callback` is invoked immediately after the application launch, but it
|
|
396
|
-
* waits for activation in case of D-Bus–activated applications and also provides
|
|
397
|
-
* extended error information for sandboxed applications, see notes for
|
|
398
|
-
* [func@Gio.AppInfo.launch_default_for_uri_async].
|
|
399
|
-
* @param uris - a list of URIs to launch.
|
|
400
|
-
* @param context - the launch context
|
|
401
|
-
* @param cancellable - a [class@Gio.Cancellable]
|
|
402
|
-
* @param callback - a [type@Gio.AsyncReadyCallback] to call
|
|
403
|
-
* @param userData - data to pass to @callback
|
|
404
|
-
*/
|
|
405
|
-
launchUrisAsync(uris?: string[] | null, context?: Gdk.AppLaunchContext | null, cancellable?: Gio.Cancellable | null, callback?: (...args: unknown[]) => unknown | null, userData?: number | null): void;
|
|
406
348
|
/**
|
|
407
349
|
* Finishes a [method@Gio.AppInfo.launch_uris_async] operation.
|
|
408
350
|
* @param result - the async result
|