@gtkx/ffi 0.1.44 → 0.1.46
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.d.ts +103 -0
- package/dist/cairo/cairo.js +103 -0
- package/dist/cairo/index.d.ts +13 -0
- package/dist/cairo/index.js +13 -0
- package/dist/codegen/ffi-generator.d.ts +21 -0
- package/dist/codegen/ffi-generator.js +14 -0
- package/dist/generated/gdk/app-launch-context.d.ts +74 -0
- package/dist/generated/gdk/app-launch-context.js +74 -0
- package/dist/generated/gdk/button-event.d.ts +4 -0
- package/dist/generated/gdk/button-event.js +4 -0
- package/dist/generated/gdk/cairo-context.d.ts +17 -0
- package/dist/generated/gdk/cairo-context.js +17 -0
- package/dist/generated/gdk/cicp-params.d.ts +64 -0
- package/dist/generated/gdk/cicp-params.js +64 -0
- package/dist/generated/gdk/clipboard.d.ts +71 -0
- package/dist/generated/gdk/clipboard.js +89 -0
- package/dist/generated/gdk/color-state.d.ts +96 -0
- package/dist/generated/gdk/color-state.js +96 -0
- package/dist/generated/gdk/content-deserializer.d.ts +58 -0
- package/dist/generated/gdk/content-deserializer.js +58 -0
- package/dist/generated/gdk/content-formats-builder.d.ts +38 -0
- package/dist/generated/gdk/content-formats-builder.js +38 -0
- package/dist/generated/gdk/content-formats.d.ts +144 -0
- package/dist/generated/gdk/content-formats.js +144 -0
- package/dist/generated/gdk/content-provider.d.ts +59 -0
- package/dist/generated/gdk/content-provider.js +64 -0
- package/dist/generated/gdk/content-serializer.d.ts +59 -0
- package/dist/generated/gdk/content-serializer.js +59 -0
- package/dist/generated/gdk/crossing-event.d.ts +10 -0
- package/dist/generated/gdk/crossing-event.js +10 -0
- package/dist/generated/gdk/cursor.d.ts +139 -0
- package/dist/generated/gdk/cursor.js +129 -0
- package/dist/generated/gdk/delete-event.d.ts +1 -0
- package/dist/generated/gdk/delete-event.js +1 -0
- package/dist/generated/gdk/device-pad.d.ts +40 -0
- package/dist/generated/gdk/device-pad.js +40 -0
- package/dist/generated/gdk/device-tool.d.ts +26 -0
- package/dist/generated/gdk/device-tool.js +26 -0
- package/dist/generated/gdk/device.d.ts +123 -0
- package/dist/generated/gdk/device.js +129 -0
- package/dist/generated/gdk/display-manager.d.ts +25 -0
- package/dist/generated/gdk/display-manager.js +70 -0
- package/dist/generated/gdk/display.d.ts +256 -0
- package/dist/generated/gdk/display.js +272 -0
- package/dist/generated/gdk/dmabuf-formats.d.ts +55 -0
- package/dist/generated/gdk/dmabuf-formats.js +55 -0
- package/dist/generated/gdk/dmabuf-texture-builder.d.ts +217 -0
- package/dist/generated/gdk/dmabuf-texture-builder.js +217 -0
- package/dist/generated/gdk/dmabuf-texture.d.ts +8 -0
- package/dist/generated/gdk/dmabuf-texture.js +8 -0
- package/dist/generated/gdk/dndevent.d.ts +4 -0
- package/dist/generated/gdk/dndevent.js +4 -0
- package/dist/generated/gdk/drag-surface.d.ts +6 -0
- package/dist/generated/gdk/drag-surface.js +6 -0
- package/dist/generated/gdk/drag.d.ts +74 -0
- package/dist/generated/gdk/drag.js +86 -0
- package/dist/generated/gdk/draw-context.d.ts +70 -0
- package/dist/generated/gdk/draw-context.js +70 -0
- package/dist/generated/gdk/drop.d.ts +93 -0
- package/dist/generated/gdk/drop.js +93 -0
- package/dist/generated/gdk/enums.d.ts +1069 -0
- package/dist/generated/gdk/enums.js +1069 -0
- package/dist/generated/gdk/event-sequence.d.ts +1 -0
- package/dist/generated/gdk/event-sequence.js +1 -0
- package/dist/generated/gdk/event.d.ts +142 -0
- package/dist/generated/gdk/event.js +142 -0
- package/dist/generated/gdk/file-list.d.ts +20 -0
- package/dist/generated/gdk/file-list.js +20 -0
- package/dist/generated/gdk/focus-event.d.ts +5 -0
- package/dist/generated/gdk/focus-event.js +5 -0
- package/dist/generated/gdk/frame-clock.d.ts +79 -0
- package/dist/generated/gdk/frame-clock.js +113 -0
- package/dist/generated/gdk/frame-timings.d.ts +68 -0
- package/dist/generated/gdk/frame-timings.js +68 -0
- package/dist/generated/gdk/functions.d.ts +367 -0
- package/dist/generated/gdk/functions.js +367 -0
- package/dist/generated/gdk/glcontext.d.ts +203 -0
- package/dist/generated/gdk/glcontext.js +203 -0
- package/dist/generated/gdk/gltexture-builder.d.ts +157 -0
- package/dist/generated/gdk/gltexture-builder.js +157 -0
- package/dist/generated/gdk/gltexture.d.ts +21 -0
- package/dist/generated/gdk/gltexture.js +8 -0
- package/dist/generated/gdk/grab-broken-event.d.ts +7 -0
- package/dist/generated/gdk/grab-broken-event.js +7 -0
- package/dist/generated/gdk/key-event.d.ts +39 -0
- package/dist/generated/gdk/key-event.js +39 -0
- package/dist/generated/gdk/memory-texture-builder.d.ts +131 -0
- package/dist/generated/gdk/memory-texture-builder.js +131 -0
- package/dist/generated/gdk/memory-texture.d.ts +12 -0
- package/dist/generated/gdk/memory-texture.js +1 -0
- package/dist/generated/gdk/monitor.d.ts +77 -0
- package/dist/generated/gdk/monitor.js +85 -0
- package/dist/generated/gdk/motion-event.d.ts +1 -0
- package/dist/generated/gdk/motion-event.js +1 -0
- package/dist/generated/gdk/pad-event.d.ts +15 -0
- package/dist/generated/gdk/pad-event.js +15 -0
- package/dist/generated/gdk/paintable.d.ts +155 -0
- package/dist/generated/gdk/paintable.js +155 -0
- package/dist/generated/gdk/popup-layout.d.ts +126 -0
- package/dist/generated/gdk/popup-layout.js +110 -0
- package/dist/generated/gdk/popup.d.ts +53 -0
- package/dist/generated/gdk/popup.js +53 -0
- package/dist/generated/gdk/proximity-event.d.ts +1 -0
- package/dist/generated/gdk/proximity-event.js +1 -0
- package/dist/generated/gdk/rectangle.d.ts +53 -0
- package/dist/generated/gdk/rectangle.js +53 -0
- package/dist/generated/gdk/rgba.d.ts +82 -0
- package/dist/generated/gdk/rgba.js +82 -0
- package/dist/generated/gdk/scroll-event.d.ts +32 -0
- package/dist/generated/gdk/scroll-event.js +32 -0
- package/dist/generated/gdk/seat.d.ts +19 -0
- package/dist/generated/gdk/seat.js +20 -0
- package/dist/generated/gdk/snapshot.d.ts +5 -0
- package/dist/generated/gdk/snapshot.js +5 -0
- package/dist/generated/gdk/surface.d.ts +233 -0
- package/dist/generated/gdk/surface.js +236 -0
- package/dist/generated/gdk/texture-downloader.d.ts +81 -0
- package/dist/generated/gdk/texture-downloader.js +74 -0
- package/dist/generated/gdk/texture.d.ts +307 -0
- package/dist/generated/gdk/texture.js +299 -0
- package/dist/generated/gdk/toplevel-layout.d.ts +69 -0
- package/dist/generated/gdk/toplevel-layout.js +69 -0
- package/dist/generated/gdk/toplevel.d.ts +188 -0
- package/dist/generated/gdk/toplevel.js +188 -0
- package/dist/generated/gdk/touch-event.d.ts +4 -0
- package/dist/generated/gdk/touch-event.js +4 -0
- package/dist/generated/gdk/touchpad-event.d.ts +25 -0
- package/dist/generated/gdk/touchpad-event.js +25 -0
- package/dist/generated/gdk/vulkan-context.js +10 -0
- package/dist/generated/gdkpixbuf/enums.d.ts +106 -0
- package/dist/generated/gdkpixbuf/enums.js +106 -0
- package/dist/generated/gdkpixbuf/pixbuf-animation-iter.d.ts +64 -0
- package/dist/generated/gdkpixbuf/pixbuf-animation-iter.js +64 -0
- package/dist/generated/gdkpixbuf/pixbuf-animation.d.ts +132 -0
- package/dist/generated/gdkpixbuf/pixbuf-animation.js +121 -0
- package/dist/generated/gdkpixbuf/pixbuf-format.d.ts +80 -0
- package/dist/generated/gdkpixbuf/pixbuf-format.js +80 -0
- package/dist/generated/gdkpixbuf/pixbuf-loader.d.ts +107 -0
- package/dist/generated/gdkpixbuf/pixbuf-loader.js +154 -0
- package/dist/generated/gdkpixbuf/pixbuf-simple-anim.d.ts +20 -0
- package/dist/generated/gdkpixbuf/pixbuf-simple-anim.js +14 -0
- package/dist/generated/gdkpixbuf/pixbuf.d.ts +842 -0
- package/dist/generated/gdkpixbuf/pixbuf.js +829 -0
- package/dist/generated/gio/action-group.d.ts +243 -0
- package/dist/generated/gio/action-group.js +243 -0
- package/dist/generated/gio/action-map.d.ts +102 -0
- package/dist/generated/gio/action-map.js +102 -0
- package/dist/generated/gio/action.d.ts +118 -0
- package/dist/generated/gio/action.js +118 -0
- package/dist/generated/gio/app-info-monitor.d.ts +15 -0
- package/dist/generated/gio/app-info-monitor.js +56 -0
- package/dist/generated/gio/app-info.d.ts +221 -0
- package/dist/generated/gio/app-info.js +221 -0
- package/dist/generated/gio/app-launch-context.d.ts +53 -0
- package/dist/generated/gio/app-launch-context.js +58 -0
- package/dist/generated/gio/application-command-line.d.ts +339 -0
- package/dist/generated/gio/application-command-line.js +339 -0
- package/dist/generated/gio/application.d.ts +903 -0
- package/dist/generated/gio/application.js +1017 -0
- package/dist/generated/gio/async-initable.d.ts +155 -0
- package/dist/generated/gio/async-initable.js +155 -0
- package/dist/generated/gio/async-result.d.ts +110 -0
- package/dist/generated/gio/async-result.js +110 -0
- package/dist/generated/gio/buffered-input-stream.d.ts +154 -0
- package/dist/generated/gio/buffered-input-stream.js +149 -0
- package/dist/generated/gio/buffered-output-stream.d.ts +83 -0
- package/dist/generated/gio/buffered-output-stream.js +79 -0
- package/dist/generated/gio/bytes-icon.d.ts +67 -0
- package/dist/generated/gio/bytes-icon.js +60 -0
- package/dist/generated/gio/cancellable.d.ts +197 -0
- package/dist/generated/gio/cancellable.js +204 -0
- package/dist/generated/gio/charset-converter.d.ts +160 -0
- package/dist/generated/gio/charset-converter.js +155 -0
- package/dist/generated/gio/converter-input-stream.d.ts +70 -0
- package/dist/generated/gio/converter-input-stream.js +65 -0
- package/dist/generated/gio/converter-output-stream.d.ts +99 -0
- package/dist/generated/gio/converter-output-stream.js +94 -0
- package/dist/generated/gio/converter.d.ts +111 -0
- package/dist/generated/gio/converter.js +111 -0
- package/dist/generated/gio/credentials.d.ts +87 -0
- package/dist/generated/gio/credentials.js +87 -0
- package/dist/generated/gio/data-input-stream.d.ts +227 -0
- package/dist/generated/gio/data-input-stream.js +223 -0
- package/dist/generated/gio/data-output-stream.d.ts +97 -0
- package/dist/generated/gio/data-output-stream.js +93 -0
- package/dist/generated/gio/datagram-based.d.ts +224 -0
- package/dist/generated/gio/datagram-based.js +224 -0
- package/dist/generated/gio/dbus-action-group.d.ts +250 -0
- package/dist/generated/gio/dbus-action-group.js +250 -0
- package/dist/generated/gio/dbus-annotation-info.d.ts +23 -0
- package/dist/generated/gio/dbus-annotation-info.js +23 -0
- package/dist/generated/gio/dbus-arg-info.d.ts +16 -0
- package/dist/generated/gio/dbus-arg-info.js +16 -0
- package/dist/generated/gio/dbus-auth-observer.d.ts +12 -0
- package/dist/generated/gio/dbus-auth-observer.js +77 -0
- package/dist/generated/gio/dbus-connection.d.ts +948 -0
- package/dist/generated/gio/dbus-connection.js +998 -0
- package/dist/generated/gio/dbus-interface-info.d.ts +72 -0
- package/dist/generated/gio/dbus-interface-info.js +72 -0
- package/dist/generated/gio/dbus-interface-skeleton.d.ts +74 -0
- package/dist/generated/gio/dbus-interface-skeleton.js +75 -0
- package/dist/generated/gio/dbus-interface.d.ts +20 -0
- package/dist/generated/gio/dbus-interface.js +20 -0
- package/dist/generated/gio/dbus-menu-model.d.ts +18 -0
- package/dist/generated/gio/dbus-menu-model.js +18 -0
- package/dist/generated/gio/dbus-message.d.ts +271 -0
- package/dist/generated/gio/dbus-message.js +271 -0
- package/dist/generated/gio/dbus-method-info.d.ts +21 -0
- package/dist/generated/gio/dbus-method-info.js +21 -0
- package/dist/generated/gio/dbus-method-invocation.d.ts +148 -0
- package/dist/generated/gio/dbus-method-invocation.js +148 -0
- package/dist/generated/gio/dbus-node-info.d.ts +48 -0
- package/dist/generated/gio/dbus-node-info.js +37 -0
- package/dist/generated/gio/dbus-object-manager-client.d.ts +205 -0
- package/dist/generated/gio/dbus-object-manager-client.js +281 -0
- package/dist/generated/gio/dbus-object-manager-server.d.ts +89 -0
- package/dist/generated/gio/dbus-object-manager-server.js +79 -0
- package/dist/generated/gio/dbus-object-manager.d.ts +25 -0
- package/dist/generated/gio/dbus-object-manager.js +25 -0
- package/dist/generated/gio/dbus-object-proxy.d.ts +26 -0
- package/dist/generated/gio/dbus-object-proxy.js +20 -0
- package/dist/generated/gio/dbus-object-skeleton.d.ts +45 -0
- package/dist/generated/gio/dbus-object-skeleton.js +48 -0
- package/dist/generated/gio/dbus-object.d.ts +17 -0
- package/dist/generated/gio/dbus-object.js +17 -0
- package/dist/generated/gio/dbus-property-info.d.ts +17 -0
- package/dist/generated/gio/dbus-property-info.js +17 -0
- package/dist/generated/gio/dbus-proxy.d.ts +434 -0
- package/dist/generated/gio/dbus-proxy.js +480 -0
- package/dist/generated/gio/dbus-server.d.ts +90 -0
- package/dist/generated/gio/dbus-server.js +85 -0
- package/dist/generated/gio/dbus-signal-info.d.ts +18 -0
- package/dist/generated/gio/dbus-signal-info.js +18 -0
- package/dist/generated/gio/debug-controller-dbus.d.ts +77 -0
- package/dist/generated/gio/debug-controller-dbus.js +178 -0
- package/dist/generated/gio/debug-controller.d.ts +25 -0
- package/dist/generated/gio/debug-controller.js +25 -0
- package/dist/generated/gio/drive.d.ts +168 -0
- package/dist/generated/gio/drive.js +168 -0
- package/dist/generated/gio/dtls-client-connection.d.ts +40 -0
- package/dist/generated/gio/dtls-client-connection.js +40 -0
- package/dist/generated/gio/dtls-connection.d.ts +305 -0
- package/dist/generated/gio/dtls-connection.js +305 -0
- package/dist/generated/gio/dtls-server-connection.d.ts +4 -0
- package/dist/generated/gio/dtls-server-connection.js +4 -0
- package/dist/generated/gio/emblem.d.ts +55 -0
- package/dist/generated/gio/emblem.js +51 -0
- package/dist/generated/gio/emblemed-icon.d.ts +58 -0
- package/dist/generated/gio/emblemed-icon.js +53 -0
- package/dist/generated/gio/enums.d.ts +1294 -0
- package/dist/generated/gio/enums.js +1294 -0
- package/dist/generated/gio/file-attribute-info-list.d.ts +30 -0
- package/dist/generated/gio/file-attribute-info-list.js +30 -0
- package/dist/generated/gio/file-attribute-matcher.d.ts +70 -0
- package/dist/generated/gio/file-attribute-matcher.js +48 -0
- package/dist/generated/gio/file-enumerator.d.ts +222 -0
- package/dist/generated/gio/file-enumerator.js +222 -0
- package/dist/generated/gio/file-icon.d.ts +66 -0
- package/dist/generated/gio/file-icon.js +62 -0
- package/dist/generated/gio/file-info.d.ts +484 -0
- package/dist/generated/gio/file-info.js +484 -0
- package/dist/generated/gio/file-input-stream.d.ts +84 -0
- package/dist/generated/gio/file-input-stream.js +84 -0
- package/dist/generated/gio/file-iostream.d.ts +107 -0
- package/dist/generated/gio/file-iostream.js +107 -0
- package/dist/generated/gio/file-monitor.d.ts +23 -0
- package/dist/generated/gio/file-monitor.js +38 -0
- package/dist/generated/gio/file-output-stream.d.ts +102 -0
- package/dist/generated/gio/file-output-stream.js +102 -0
- package/dist/generated/gio/file.d.ts +1815 -0
- package/dist/generated/gio/file.js +1815 -0
- package/dist/generated/gio/filename-completer.d.ts +22 -0
- package/dist/generated/gio/filename-completer.js +27 -0
- package/dist/generated/gio/filter-input-stream.d.ts +17 -0
- package/dist/generated/gio/filter-input-stream.js +17 -0
- package/dist/generated/gio/filter-output-stream.d.ts +17 -0
- package/dist/generated/gio/filter-output-stream.js +17 -0
- package/dist/generated/gio/functions.d.ts +1432 -0
- package/dist/generated/gio/functions.js +1432 -0
- package/dist/generated/gio/icon.d.ts +64 -0
- package/dist/generated/gio/icon.js +64 -0
- package/dist/generated/gio/inet-address-mask.d.ts +80 -0
- package/dist/generated/gio/inet-address-mask.js +74 -0
- package/dist/generated/gio/inet-address.d.ts +100 -0
- package/dist/generated/gio/inet-address.js +95 -0
- package/dist/generated/gio/inet-socket-address.d.ts +39 -0
- package/dist/generated/gio/inet-socket-address.js +34 -0
- package/dist/generated/gio/initable.d.ts +67 -0
- package/dist/generated/gio/initable.js +67 -0
- package/dist/generated/gio/input-stream.d.ts +300 -0
- package/dist/generated/gio/input-stream.js +300 -0
- package/dist/generated/gio/iomodule.d.ts +43 -0
- package/dist/generated/gio/iomodule.js +38 -0
- package/dist/generated/gio/iostream.d.ts +147 -0
- package/dist/generated/gio/iostream.js +147 -0
- package/dist/generated/gio/list-model.d.ts +123 -0
- package/dist/generated/gio/list-model.js +123 -0
- package/dist/generated/gio/list-store.d.ts +170 -0
- package/dist/generated/gio/list-store.js +166 -0
- package/dist/generated/gio/loadable-icon.d.ts +25 -0
- package/dist/generated/gio/loadable-icon.js +25 -0
- package/dist/generated/gio/memory-input-stream.d.ts +127 -0
- package/dist/generated/gio/memory-input-stream.js +127 -0
- package/dist/generated/gio/memory-monitor.d.ts +50 -0
- package/dist/generated/gio/memory-monitor.js +50 -0
- package/dist/generated/gio/memory-output-stream.d.ts +176 -0
- package/dist/generated/gio/memory-output-stream.js +176 -0
- package/dist/generated/gio/menu-attribute-iter.d.ts +45 -0
- package/dist/generated/gio/menu-attribute-iter.js +45 -0
- package/dist/generated/gio/menu-item.d.ts +243 -0
- package/dist/generated/gio/menu-item.js +231 -0
- package/dist/generated/gio/menu-link-iter.d.ts +42 -0
- package/dist/generated/gio/menu-link-iter.js +42 -0
- package/dist/generated/gio/menu-model.d.ts +68 -0
- package/dist/generated/gio/menu-model.js +186 -0
- package/dist/generated/gio/menu.d.ts +140 -0
- package/dist/generated/gio/menu.js +140 -0
- package/dist/generated/gio/mount-operation.d.ts +73 -0
- package/dist/generated/gio/mount-operation.js +97 -0
- package/dist/generated/gio/mount.d.ts +217 -0
- package/dist/generated/gio/mount.js +217 -0
- package/dist/generated/gio/native-socket-address.d.ts +11 -0
- package/dist/generated/gio/native-socket-address.js +6 -0
- package/dist/generated/gio/network-address.d.ts +105 -0
- package/dist/generated/gio/network-address.js +93 -0
- package/dist/generated/gio/network-monitor.d.ts +79 -0
- package/dist/generated/gio/network-monitor.js +79 -0
- package/dist/generated/gio/network-service.d.ts +59 -0
- package/dist/generated/gio/network-service.js +51 -0
- package/dist/generated/gio/notification.d.ts +134 -0
- package/dist/generated/gio/notification.js +125 -0
- package/dist/generated/gio/output-stream.d.ts +452 -0
- package/dist/generated/gio/output-stream.js +452 -0
- package/dist/generated/gio/permission.d.ts +112 -0
- package/dist/generated/gio/permission.js +112 -0
- package/dist/generated/gio/pollable-input-stream.d.ts +66 -0
- package/dist/generated/gio/pollable-input-stream.js +66 -0
- package/dist/generated/gio/pollable-output-stream.d.ts +95 -0
- package/dist/generated/gio/pollable-output-stream.js +95 -0
- package/dist/generated/gio/power-profile-monitor.d.ts +33 -0
- package/dist/generated/gio/power-profile-monitor.js +33 -0
- package/dist/generated/gio/property-action.d.ts +154 -0
- package/dist/generated/gio/property-action.js +141 -0
- package/dist/generated/gio/proxy-address-enumerator.d.ts +12 -0
- package/dist/generated/gio/proxy-address-enumerator.js +12 -0
- package/dist/generated/gio/proxy-address.d.ts +42 -0
- package/dist/generated/gio/proxy-address.js +27 -0
- package/dist/generated/gio/proxy-resolver.d.ts +48 -0
- package/dist/generated/gio/proxy-resolver.js +48 -0
- package/dist/generated/gio/proxy.d.ts +38 -0
- package/dist/generated/gio/proxy.js +38 -0
- package/dist/generated/gio/remote-action-group.d.ts +51 -0
- package/dist/generated/gio/remote-action-group.js +51 -0
- package/dist/generated/gio/resolver.d.ts +214 -0
- package/dist/generated/gio/resolver.js +235 -0
- package/dist/generated/gio/resource.d.ts +278 -0
- package/dist/generated/gio/resource.js +262 -0
- package/dist/generated/gio/seekable.d.ts +58 -0
- package/dist/generated/gio/seekable.js +58 -0
- package/dist/generated/gio/settings-backend.d.ts +144 -0
- package/dist/generated/gio/settings-backend.js +144 -0
- package/dist/generated/gio/settings-schema-key.d.ts +99 -0
- package/dist/generated/gio/settings-schema-key.js +99 -0
- package/dist/generated/gio/settings-schema-source.d.ts +89 -0
- package/dist/generated/gio/settings-schema-source.js +53 -0
- package/dist/generated/gio/settings-schema.d.ts +136 -0
- package/dist/generated/gio/settings-schema.js +136 -0
- package/dist/generated/gio/settings.d.ts +582 -0
- package/dist/generated/gio/settings.js +949 -0
- package/dist/generated/gio/simple-action-group.d.ts +322 -0
- package/dist/generated/gio/simple-action-group.js +322 -0
- package/dist/generated/gio/simple-action.d.ts +136 -0
- package/dist/generated/gio/simple-action.js +133 -0
- package/dist/generated/gio/simple-async-result.d.ts +302 -0
- package/dist/generated/gio/simple-async-result.js +286 -0
- package/dist/generated/gio/simple-iostream.d.ts +18 -0
- package/dist/generated/gio/simple-iostream.js +12 -0
- package/dist/generated/gio/simple-permission.d.ts +13 -0
- package/dist/generated/gio/simple-permission.js +8 -0
- package/dist/generated/gio/simple-proxy-resolver.d.ts +85 -0
- package/dist/generated/gio/simple-proxy-resolver.js +85 -0
- package/dist/generated/gio/socket-address-enumerator.d.ts +49 -0
- package/dist/generated/gio/socket-address-enumerator.js +49 -0
- package/dist/generated/gio/socket-address.d.ts +51 -0
- package/dist/generated/gio/socket-address.js +45 -0
- package/dist/generated/gio/socket-client.d.ts +337 -0
- package/dist/generated/gio/socket-client.js +352 -0
- package/dist/generated/gio/socket-connectable.d.ts +80 -0
- package/dist/generated/gio/socket-connectable.js +80 -0
- package/dist/generated/gio/socket-connection.d.ts +84 -0
- package/dist/generated/gio/socket-connection.js +84 -0
- package/dist/generated/gio/socket-control-message.d.ts +56 -0
- package/dist/generated/gio/socket-control-message.js +56 -0
- package/dist/generated/gio/socket-listener.d.ts +174 -0
- package/dist/generated/gio/socket-listener.js +191 -0
- package/dist/generated/gio/socket-service.d.ts +41 -0
- package/dist/generated/gio/socket-service.js +69 -0
- package/dist/generated/gio/socket.d.ts +999 -0
- package/dist/generated/gio/socket.js +981 -0
- package/dist/generated/gio/srv-target.d.ts +53 -0
- package/dist/generated/gio/srv-target.js +43 -0
- package/dist/generated/gio/subprocess-launcher.d.ts +226 -0
- package/dist/generated/gio/subprocess-launcher.js +218 -0
- package/dist/generated/gio/subprocess.d.ts +345 -0
- package/dist/generated/gio/subprocess.js +338 -0
- package/dist/generated/gio/task.d.ts +890 -0
- package/dist/generated/gio/task.js +868 -0
- package/dist/generated/gio/tcp-connection.d.ts +20 -0
- package/dist/generated/gio/tcp-connection.js +20 -0
- package/dist/generated/gio/tcp-wrapper-connection.d.ts +16 -0
- package/dist/generated/gio/tcp-wrapper-connection.js +11 -0
- package/dist/generated/gio/test-dbus.d.ts +131 -0
- package/dist/generated/gio/test-dbus.js +127 -0
- package/dist/generated/gio/themed-icon.d.ts +87 -0
- package/dist/generated/gio/themed-icon.js +83 -0
- package/dist/generated/gio/threaded-resolver.d.ts +4 -0
- package/dist/generated/gio/threaded-resolver.js +4 -0
- package/dist/generated/gio/threaded-socket-service.d.ts +5 -0
- package/dist/generated/gio/threaded-socket-service.js +18 -0
- package/dist/generated/gio/tls-backend.d.ts +45 -0
- package/dist/generated/gio/tls-backend.js +45 -0
- package/dist/generated/gio/tls-certificate.d.ts +190 -0
- package/dist/generated/gio/tls-certificate.js +178 -0
- package/dist/generated/gio/tls-client-connection.d.ts +88 -0
- package/dist/generated/gio/tls-client-connection.js +88 -0
- package/dist/generated/gio/tls-connection.d.ts +234 -0
- package/dist/generated/gio/tls-connection.js +243 -0
- package/dist/generated/gio/tls-database.d.ts +223 -0
- package/dist/generated/gio/tls-database.js +223 -0
- package/dist/generated/gio/tls-file-database.d.ts +5 -0
- package/dist/generated/gio/tls-file-database.js +5 -0
- package/dist/generated/gio/tls-interaction.d.ts +169 -0
- package/dist/generated/gio/tls-interaction.js +169 -0
- package/dist/generated/gio/tls-password.d.ts +67 -0
- package/dist/generated/gio/tls-password.js +62 -0
- package/dist/generated/gio/tls-server-connection.d.ts +4 -0
- package/dist/generated/gio/tls-server-connection.js +4 -0
- package/dist/generated/gio/unix-connection.d.ts +112 -0
- package/dist/generated/gio/unix-connection.js +112 -0
- package/dist/generated/gio/unix-credentials-message.d.ts +34 -0
- package/dist/generated/gio/unix-credentials-message.js +34 -0
- package/dist/generated/gio/unix-fdlist.d.ts +102 -0
- package/dist/generated/gio/unix-fdlist.js +102 -0
- package/dist/generated/gio/unix-socket-address.d.ts +90 -0
- package/dist/generated/gio/unix-socket-address.js +83 -0
- package/dist/generated/gio/vfs.d.ts +65 -0
- package/dist/generated/gio/vfs.js +65 -0
- package/dist/generated/gio/volume-monitor.d.ts +60 -0
- package/dist/generated/gio/volume-monitor.js +73 -0
- package/dist/generated/gio/volume.d.ts +164 -0
- package/dist/generated/gio/volume.js +164 -0
- package/dist/generated/gio/zlib-compressor.d.ts +131 -0
- package/dist/generated/gio/zlib-compressor.js +126 -0
- package/dist/generated/gio/zlib-decompressor.d.ts +111 -0
- package/dist/generated/gio/zlib-decompressor.js +107 -0
- package/dist/generated/glib/array.d.ts +9 -0
- package/dist/generated/glib/array.js +9 -0
- package/dist/generated/glib/bookmark-file.d.ts +513 -0
- package/dist/generated/glib/bookmark-file.js +513 -0
- package/dist/generated/glib/byte-array.d.ts +128 -0
- package/dist/generated/glib/byte-array.js +128 -0
- package/dist/generated/glib/bytes.d.ts +176 -0
- package/dist/generated/glib/bytes.js +176 -0
- package/dist/generated/glib/checksum.d.ts +64 -0
- package/dist/generated/glib/checksum.js +48 -0
- package/dist/generated/glib/date-time.d.ts +631 -0
- package/dist/generated/glib/date-time.js +595 -0
- package/dist/generated/glib/date.d.ts +393 -0
- package/dist/generated/glib/date.js +393 -0
- package/dist/generated/glib/dir.d.ts +67 -0
- package/dist/generated/glib/dir.js +60 -0
- package/dist/generated/glib/enums.d.ts +1721 -0
- package/dist/generated/glib/enums.js +1721 -0
- package/dist/generated/glib/error.d.ts +70 -0
- package/dist/generated/glib/error.js +61 -0
- package/dist/generated/glib/functions.d.ts +7786 -0
- package/dist/generated/glib/functions.js +7786 -0
- package/dist/generated/glib/hash-table.d.ts +233 -0
- package/dist/generated/glib/hash-table.js +233 -0
- package/dist/generated/glib/iochannel.d.ts +299 -0
- package/dist/generated/glib/iochannel.js +290 -0
- package/dist/generated/glib/key-file.d.ts +606 -0
- package/dist/generated/glib/key-file.js +606 -0
- package/dist/generated/glib/main-context.d.ts +346 -0
- package/dist/generated/glib/main-context.js +346 -0
- package/dist/generated/glib/main-loop.d.ts +38 -0
- package/dist/generated/glib/main-loop.js +33 -0
- package/dist/generated/glib/mapped-file.d.ts +72 -0
- package/dist/generated/glib/mapped-file.js +52 -0
- package/dist/generated/glib/markup-parse-context.d.ts +220 -0
- package/dist/generated/glib/markup-parse-context.js +209 -0
- package/dist/generated/glib/match-info.d.ts +369 -0
- package/dist/generated/glib/match-info.js +369 -0
- package/dist/generated/glib/option-group.d.ts +54 -0
- package/dist/generated/glib/option-group.js +41 -0
- package/dist/generated/glib/pattern-spec.d.ts +65 -0
- package/dist/generated/glib/pattern-spec.js +61 -0
- package/dist/generated/glib/poll-fd.d.ts +15 -0
- package/dist/generated/glib/poll-fd.js +15 -0
- package/dist/generated/glib/ptr-array.d.ts +6 -0
- package/dist/generated/glib/ptr-array.js +6 -0
- package/dist/generated/glib/rand.d.ts +61 -0
- package/dist/generated/glib/rand.js +61 -0
- package/dist/generated/glib/regex.d.ts +575 -0
- package/dist/generated/glib/regex.js +568 -0
- package/dist/generated/glib/source.d.ts +506 -0
- package/dist/generated/glib/source.js +492 -0
- package/dist/generated/glib/string.d.ts +249 -0
- package/dist/generated/glib/string.js +245 -0
- package/dist/generated/glib/strv-builder.d.ts +72 -0
- package/dist/generated/glib/strv-builder.js +72 -0
- package/dist/generated/glib/thread.d.ts +124 -0
- package/dist/generated/glib/thread.js +92 -0
- package/dist/generated/glib/time-zone.d.ts +217 -0
- package/dist/generated/glib/time-zone.js +209 -0
- package/dist/generated/glib/tree.d.ts +216 -0
- package/dist/generated/glib/tree.js +207 -0
- package/dist/generated/glib/uri.d.ts +549 -0
- package/dist/generated/glib/uri.js +549 -0
- package/dist/generated/glib/variant-builder.d.ts +113 -0
- package/dist/generated/glib/variant-builder.js +101 -0
- package/dist/generated/glib/variant-dict.d.ts +174 -0
- package/dist/generated/glib/variant-dict.js +161 -0
- package/dist/generated/glib/variant-type.d.ts +420 -0
- package/dist/generated/glib/variant-type.js +410 -0
- package/dist/generated/glib/variant.d.ts +1132 -0
- package/dist/generated/glib/variant.js +1112 -0
- package/dist/generated/gmodule/enums.d.ts +19 -0
- package/dist/generated/gmodule/enums.js +19 -0
- package/dist/generated/gmodule/functions.d.ts +23 -0
- package/dist/generated/gmodule/functions.js +23 -0
- package/dist/generated/gobject/binding-group.d.ts +59 -0
- package/dist/generated/gobject/binding-group.js +68 -0
- package/dist/generated/gobject/binding.d.ts +60 -0
- package/dist/generated/gobject/binding.js +137 -0
- package/dist/generated/gobject/closure.d.ts +187 -0
- package/dist/generated/gobject/closure.js +179 -0
- package/dist/generated/gobject/enums.d.ts +183 -0
- package/dist/generated/gobject/enums.js +183 -0
- package/dist/generated/gobject/functions.d.ts +1431 -0
- package/dist/generated/gobject/functions.js +1431 -0
- package/dist/generated/gobject/initially-unowned.js +6 -0
- package/dist/generated/gobject/object.d.ts +357 -0
- package/dist/generated/gobject/object.js +372 -0
- package/dist/generated/gobject/param-spec-boolean.d.ts +3 -0
- package/dist/generated/gobject/param-spec-boolean.js +3 -0
- package/dist/generated/gobject/param-spec-boxed.d.ts +3 -0
- package/dist/generated/gobject/param-spec-boxed.js +3 -0
- package/dist/generated/gobject/param-spec-char.d.ts +3 -0
- package/dist/generated/gobject/param-spec-char.js +3 -0
- package/dist/generated/gobject/param-spec-double.d.ts +3 -0
- package/dist/generated/gobject/param-spec-double.js +3 -0
- package/dist/generated/gobject/param-spec-enum.d.ts +4 -0
- package/dist/generated/gobject/param-spec-enum.js +4 -0
- package/dist/generated/gobject/param-spec-flags.d.ts +4 -0
- package/dist/generated/gobject/param-spec-flags.js +4 -0
- package/dist/generated/gobject/param-spec-float.d.ts +3 -0
- package/dist/generated/gobject/param-spec-float.js +3 -0
- package/dist/generated/gobject/param-spec-gtype.d.ts +3 -0
- package/dist/generated/gobject/param-spec-gtype.js +3 -0
- package/dist/generated/gobject/param-spec-int.d.ts +3 -0
- package/dist/generated/gobject/param-spec-int.js +3 -0
- package/dist/generated/gobject/param-spec-int64.d.ts +3 -0
- package/dist/generated/gobject/param-spec-int64.js +3 -0
- package/dist/generated/gobject/param-spec-long.d.ts +3 -0
- package/dist/generated/gobject/param-spec-long.js +3 -0
- package/dist/generated/gobject/param-spec-object.d.ts +3 -0
- package/dist/generated/gobject/param-spec-object.js +3 -0
- package/dist/generated/gobject/param-spec-override.d.ts +13 -0
- package/dist/generated/gobject/param-spec-override.js +13 -0
- package/dist/generated/gobject/param-spec-param.d.ts +4 -0
- package/dist/generated/gobject/param-spec-param.js +4 -0
- package/dist/generated/gobject/param-spec-pointer.d.ts +3 -0
- package/dist/generated/gobject/param-spec-pointer.js +3 -0
- package/dist/generated/gobject/param-spec-string.d.ts +4 -0
- package/dist/generated/gobject/param-spec-string.js +4 -0
- package/dist/generated/gobject/param-spec-uchar.d.ts +3 -0
- package/dist/generated/gobject/param-spec-uchar.js +3 -0
- package/dist/generated/gobject/param-spec-uint.d.ts +3 -0
- package/dist/generated/gobject/param-spec-uint.js +3 -0
- package/dist/generated/gobject/param-spec-uint64.d.ts +3 -0
- package/dist/generated/gobject/param-spec-uint64.js +3 -0
- package/dist/generated/gobject/param-spec-ulong.d.ts +3 -0
- package/dist/generated/gobject/param-spec-ulong.js +3 -0
- package/dist/generated/gobject/param-spec-unichar.d.ts +3 -0
- package/dist/generated/gobject/param-spec-unichar.js +3 -0
- package/dist/generated/gobject/param-spec-value-array.d.ts +3 -0
- package/dist/generated/gobject/param-spec-value-array.js +3 -0
- package/dist/generated/gobject/param-spec-variant.d.ts +9 -0
- package/dist/generated/gobject/param-spec-variant.js +9 -0
- package/dist/generated/gobject/param-spec.d.ts +82 -0
- package/dist/generated/gobject/param-spec.js +82 -0
- package/dist/generated/gobject/signal-group.d.ts +57 -0
- package/dist/generated/gobject/signal-group.js +74 -0
- package/dist/generated/gobject/type-module.d.ts +95 -0
- package/dist/generated/gobject/type-module.js +128 -0
- package/dist/generated/gobject/type-plugin.d.ts +76 -0
- package/dist/generated/gobject/type-plugin.js +76 -0
- package/dist/generated/gobject/value-array.d.ts +77 -0
- package/dist/generated/gobject/value-array.js +71 -0
- package/dist/generated/gobject/value.d.ts +353 -0
- package/dist/generated/gobject/value.js +353 -0
- package/dist/generated/graphene/box.d.ts +161 -0
- package/dist/generated/graphene/box.js +161 -0
- package/dist/generated/graphene/enums.d.ts +68 -0
- package/dist/generated/graphene/enums.js +68 -0
- package/dist/generated/graphene/euler.d.ts +147 -0
- package/dist/generated/graphene/euler.js +147 -0
- package/dist/generated/graphene/frustum.d.ts +56 -0
- package/dist/generated/graphene/frustum.js +56 -0
- package/dist/generated/graphene/functions.d.ts +108 -0
- package/dist/generated/graphene/functions.js +108 -0
- package/dist/generated/graphene/matrix.d.ts +477 -0
- package/dist/generated/graphene/matrix.js +477 -0
- package/dist/generated/graphene/plane.d.ts +85 -0
- package/dist/generated/graphene/plane.js +85 -0
- package/dist/generated/graphene/point.d.ts +79 -0
- package/dist/generated/graphene/point.js +79 -0
- package/dist/generated/graphene/point3d.d.ts +91 -0
- package/dist/generated/graphene/point3d.js +91 -0
- package/dist/generated/graphene/quad.d.ts +42 -0
- package/dist/generated/graphene/quad.js +42 -0
- package/dist/generated/graphene/quaternion.d.ts +140 -0
- package/dist/generated/graphene/quaternion.js +140 -0
- package/dist/generated/graphene/ray.d.ts +108 -0
- package/dist/generated/graphene/ray.js +108 -0
- package/dist/generated/graphene/rect.d.ts +245 -0
- package/dist/generated/graphene/rect.js +245 -0
- package/dist/generated/graphene/size.d.ts +41 -0
- package/dist/generated/graphene/size.js +41 -0
- package/dist/generated/graphene/sphere.d.ts +68 -0
- package/dist/generated/graphene/sphere.js +68 -0
- package/dist/generated/graphene/triangle.d.ts +111 -0
- package/dist/generated/graphene/triangle.js +111 -0
- package/dist/generated/graphene/vec2.d.ts +127 -0
- package/dist/generated/graphene/vec2.js +127 -0
- package/dist/generated/graphene/vec3.d.ts +169 -0
- package/dist/generated/graphene/vec3.js +169 -0
- package/dist/generated/graphene/vec4.d.ts +170 -0
- package/dist/generated/graphene/vec4.js +170 -0
- package/dist/generated/gsk/blend-node.d.ts +16 -0
- package/dist/generated/gsk/blend-node.js +10 -0
- package/dist/generated/gsk/blur-node.d.ts +12 -0
- package/dist/generated/gsk/blur-node.js +7 -0
- package/dist/generated/gsk/border-node.d.ts +19 -0
- package/dist/generated/gsk/border-node.js +10 -0
- package/dist/generated/gsk/broadway-renderer.d.ts +15 -0
- package/dist/generated/gsk/broadway-renderer.js +15 -0
- package/dist/generated/gsk/cairo-node.d.ts +18 -0
- package/dist/generated/gsk/cairo-node.js +11 -0
- package/dist/generated/gsk/cairo-renderer.d.ts +16 -0
- package/dist/generated/gsk/cairo-renderer.js +16 -0
- package/dist/generated/gsk/clip-node.d.ts +13 -0
- package/dist/generated/gsk/clip-node.js +7 -0
- package/dist/generated/gsk/color-matrix-node.d.ts +24 -0
- package/dist/generated/gsk/color-matrix-node.js +10 -0
- package/dist/generated/gsk/color-node.d.ts +13 -0
- package/dist/generated/gsk/color-node.js +7 -0
- package/dist/generated/gsk/component-transfer-node.d.ts +16 -0
- package/dist/generated/gsk/component-transfer-node.js +7 -0
- package/dist/generated/gsk/component-transfer.d.ts +107 -0
- package/dist/generated/gsk/component-transfer.js +89 -0
- package/dist/generated/gsk/conic-gradient-node.d.ts +34 -0
- package/dist/generated/gsk/conic-gradient-node.js +22 -0
- package/dist/generated/gsk/container-node.d.ts +15 -0
- package/dist/generated/gsk/container-node.js +8 -0
- package/dist/generated/gsk/cross-fade-node.d.ts +16 -0
- package/dist/generated/gsk/cross-fade-node.js +10 -0
- package/dist/generated/gsk/debug-node.d.ts +18 -0
- package/dist/generated/gsk/debug-node.js +10 -0
- package/dist/generated/gsk/enums.d.ts +313 -0
- package/dist/generated/gsk/enums.js +313 -0
- package/dist/generated/gsk/fill-node.d.ts +21 -0
- package/dist/generated/gsk/fill-node.js +14 -0
- package/dist/generated/gsk/functions.d.ts +76 -0
- package/dist/generated/gsk/functions.js +76 -0
- package/dist/generated/gsk/glrenderer.d.ts +8 -0
- package/dist/generated/gsk/glrenderer.js +8 -0
- package/dist/generated/gsk/glshader-node.d.ts +38 -0
- package/dist/generated/gsk/glshader-node.js +14 -0
- package/dist/generated/gsk/glshader.d.ts +226 -0
- package/dist/generated/gsk/glshader.js +222 -0
- package/dist/generated/gsk/inset-shadow-node.d.ts +32 -0
- package/dist/generated/gsk/inset-shadow-node.js +22 -0
- package/dist/generated/gsk/linear-gradient-node.d.ts +23 -0
- package/dist/generated/gsk/linear-gradient-node.js +14 -0
- package/dist/generated/gsk/mask-node.d.ts +20 -0
- package/dist/generated/gsk/mask-node.js +10 -0
- package/dist/generated/gsk/ngl-renderer.d.ts +8 -0
- package/dist/generated/gsk/ngl-renderer.js +8 -0
- package/dist/generated/gsk/opacity-node.d.ts +13 -0
- package/dist/generated/gsk/opacity-node.js +7 -0
- package/dist/generated/gsk/outset-shadow-node.d.ts +32 -0
- package/dist/generated/gsk/outset-shadow-node.js +22 -0
- package/dist/generated/gsk/path-builder.d.ts +336 -0
- package/dist/generated/gsk/path-builder.js +336 -0
- package/dist/generated/gsk/path-measure.d.ts +47 -0
- package/dist/generated/gsk/path-measure.js +42 -0
- package/dist/generated/gsk/path-point.d.ts +93 -0
- package/dist/generated/gsk/path-point.js +93 -0
- package/dist/generated/gsk/path.d.ts +181 -0
- package/dist/generated/gsk/path.js +181 -0
- package/dist/generated/gsk/radial-gradient-node.d.ts +37 -0
- package/dist/generated/gsk/radial-gradient-node.js +23 -0
- package/dist/generated/gsk/render-node.d.ts +83 -0
- package/dist/generated/gsk/render-node.js +83 -0
- package/dist/generated/gsk/renderer.d.ts +79 -0
- package/dist/generated/gsk/renderer.js +69 -0
- package/dist/generated/gsk/repeat-node.d.ts +14 -0
- package/dist/generated/gsk/repeat-node.js +7 -0
- package/dist/generated/gsk/repeating-linear-gradient-node.d.ts +11 -0
- package/dist/generated/gsk/repeating-linear-gradient-node.js +1 -0
- package/dist/generated/gsk/repeating-radial-gradient-node.d.ts +15 -0
- package/dist/generated/gsk/repeating-radial-gradient-node.js +1 -0
- package/dist/generated/gsk/rounded-clip-node.d.ts +13 -0
- package/dist/generated/gsk/rounded-clip-node.js +7 -0
- package/dist/generated/gsk/shader-args-builder.d.ts +77 -0
- package/dist/generated/gsk/shader-args-builder.js +71 -0
- package/dist/generated/gsk/shadow-node.d.ts +18 -0
- package/dist/generated/gsk/shadow-node.js +11 -0
- package/dist/generated/gsk/stroke-node.d.ts +23 -0
- package/dist/generated/gsk/stroke-node.js +14 -0
- package/dist/generated/gsk/stroke.d.ts +110 -0
- package/dist/generated/gsk/stroke.js +106 -0
- package/dist/generated/gsk/subsurface-node.d.ts +6 -0
- package/dist/generated/gsk/subsurface-node.js +6 -0
- package/dist/generated/gsk/text-node.d.ts +33 -0
- package/dist/generated/gsk/text-node.js +23 -0
- package/dist/generated/gsk/texture-node.d.ts +14 -0
- package/dist/generated/gsk/texture-node.js +4 -0
- package/dist/generated/gsk/texture-scale-node.d.ts +24 -0
- package/dist/generated/gsk/texture-scale-node.js +7 -0
- package/dist/generated/gsk/transform-node.d.ts +12 -0
- package/dist/generated/gsk/transform-node.js +7 -0
- package/dist/generated/gsk/transform.d.ts +282 -0
- package/dist/generated/gsk/transform.js +282 -0
- package/dist/generated/gsk/vulkan-renderer.d.ts +14 -0
- package/dist/generated/gsk/vulkan-renderer.js +14 -0
- package/dist/generated/gtk/about-dialog.d.ts +166 -0
- package/dist/generated/gtk/about-dialog.js +220 -0
- package/dist/generated/gtk/accessible-list.d.ts +14 -0
- package/dist/generated/gtk/accessible-list.js +14 -0
- package/dist/generated/gtk/accessible-range.d.ts +27 -0
- package/dist/generated/gtk/accessible-range.js +27 -0
- package/dist/generated/gtk/accessible-text.d.ts +38 -0
- package/dist/generated/gtk/accessible-text.js +38 -0
- package/dist/generated/gtk/accessible.d.ts +154 -0
- package/dist/generated/gtk/accessible.js +154 -0
- package/dist/generated/gtk/action-bar.d.ts +75 -0
- package/dist/generated/gtk/action-bar.js +75 -0
- package/dist/generated/gtk/actionable.d.ts +65 -0
- package/dist/generated/gtk/actionable.js +65 -0
- package/dist/generated/gtk/activate-action.d.ts +11 -0
- package/dist/generated/gtk/activate-action.js +11 -0
- package/dist/generated/gtk/adjustment.d.ts +121 -0
- package/dist/generated/gtk/adjustment.js +125 -0
- package/dist/generated/gtk/alert-dialog.d.ts +76 -0
- package/dist/generated/gtk/alert-dialog.js +76 -0
- package/dist/generated/gtk/alternative-trigger.d.ts +30 -0
- package/dist/generated/gtk/alternative-trigger.js +21 -0
- package/dist/generated/gtk/any-filter.d.ts +14 -0
- package/dist/generated/gtk/any-filter.js +14 -0
- package/dist/generated/gtk/app-chooser-button.d.ts +76 -0
- package/dist/generated/gtk/app-chooser-button.js +100 -0
- package/dist/generated/gtk/app-chooser-dialog.d.ts +38 -0
- package/dist/generated/gtk/app-chooser-dialog.js +49 -0
- package/dist/generated/gtk/app-chooser-widget.d.ts +69 -0
- package/dist/generated/gtk/app-chooser-widget.js +89 -0
- package/dist/generated/gtk/app-chooser.d.ts +31 -0
- package/dist/generated/gtk/app-chooser.js +31 -0
- package/dist/generated/gtk/application-window.d.ts +32 -0
- package/dist/generated/gtk/application-window.js +99 -0
- package/dist/generated/gtk/application.d.ts +191 -0
- package/dist/generated/gtk/application.js +239 -0
- package/dist/generated/gtk/aspect-frame.d.ts +65 -0
- package/dist/generated/gtk/aspect-frame.js +58 -0
- package/dist/generated/gtk/assistant-page.d.ts +4 -0
- package/dist/generated/gtk/assistant-page.js +4 -0
- package/dist/generated/gtk/assistant.d.ts +141 -0
- package/dist/generated/gtk/assistant.js +179 -0
- package/dist/generated/gtk/atcontext.d.ts +16 -0
- package/dist/generated/gtk/atcontext.js +13 -0
- package/dist/generated/gtk/bin-layout.d.ts +11 -0
- package/dist/generated/gtk/bin-layout.js +11 -0
- package/dist/generated/gtk/bitset-iter.d.ts +60 -0
- package/dist/generated/gtk/bitset-iter.js +60 -0
- package/dist/generated/gtk/bitset.d.ts +196 -0
- package/dist/generated/gtk/bitset.js +196 -0
- package/dist/generated/gtk/bookmark-list.d.ts +45 -0
- package/dist/generated/gtk/bookmark-list.js +40 -0
- package/dist/generated/gtk/bool-filter.d.ts +23 -0
- package/dist/generated/gtk/bool-filter.js +19 -0
- package/dist/generated/gtk/border.d.ts +18 -0
- package/dist/generated/gtk/border.js +18 -0
- package/dist/generated/gtk/box-layout.d.ts +62 -0
- package/dist/generated/gtk/box-layout.js +58 -0
- package/dist/generated/gtk/box.d.ts +122 -0
- package/dist/generated/gtk/box.js +117 -0
- package/dist/generated/gtk/buildable.d.ts +20 -0
- package/dist/generated/gtk/buildable.js +20 -0
- package/dist/generated/gtk/builder-cscope.d.ts +36 -0
- package/dist/generated/gtk/builder-cscope.js +36 -0
- package/dist/generated/gtk/builder-list-item-factory.d.ts +55 -0
- package/dist/generated/gtk/builder-list-item-factory.js +49 -0
- package/dist/generated/gtk/builder-scope.d.ts +19 -0
- package/dist/generated/gtk/builder-scope.js +19 -0
- package/dist/generated/gtk/builder.d.ts +613 -0
- package/dist/generated/gtk/builder.js +613 -0
- package/dist/generated/gtk/button.d.ts +152 -0
- package/dist/generated/gtk/button.js +189 -0
- package/dist/generated/gtk/calendar.d.ts +97 -0
- package/dist/generated/gtk/calendar.js +152 -0
- package/dist/generated/gtk/callback-action.d.ts +8 -0
- package/dist/generated/gtk/callback-action.js +1 -0
- package/dist/generated/gtk/cclosure-expression.d.ts +15 -0
- package/dist/generated/gtk/cclosure-expression.js +1 -0
- package/dist/generated/gtk/cell-area-box.d.ts +38 -0
- package/dist/generated/gtk/cell-area-box.js +38 -0
- package/dist/generated/gtk/cell-area-context.d.ts +133 -0
- package/dist/generated/gtk/cell-area-context.js +133 -0
- package/dist/generated/gtk/cell-area.d.ts +399 -0
- package/dist/generated/gtk/cell-area.js +714 -0
- package/dist/generated/gtk/cell-editable.d.ts +26 -0
- package/dist/generated/gtk/cell-editable.js +26 -0
- package/dist/generated/gtk/cell-layout.d.ts +176 -0
- package/dist/generated/gtk/cell-layout.js +176 -0
- package/dist/generated/gtk/cell-renderer-accel.d.ts +3 -0
- package/dist/generated/gtk/cell-renderer-accel.js +10 -0
- package/dist/generated/gtk/cell-renderer-combo.d.ts +9 -0
- package/dist/generated/gtk/cell-renderer-combo.js +23 -0
- package/dist/generated/gtk/cell-renderer-pixbuf.d.ts +25 -0
- package/dist/generated/gtk/cell-renderer-pixbuf.js +25 -0
- package/dist/generated/gtk/cell-renderer-progress.d.ts +16 -0
- package/dist/generated/gtk/cell-renderer-progress.js +16 -0
- package/dist/generated/gtk/cell-renderer-spin.d.ts +3 -0
- package/dist/generated/gtk/cell-renderer-spin.js +18 -0
- package/dist/generated/gtk/cell-renderer-spinner.d.ts +18 -0
- package/dist/generated/gtk/cell-renderer-spinner.js +18 -0
- package/dist/generated/gtk/cell-renderer-text.d.ts +19 -0
- package/dist/generated/gtk/cell-renderer-text.js +29 -0
- package/dist/generated/gtk/cell-renderer-toggle.d.ts +38 -0
- package/dist/generated/gtk/cell-renderer-toggle.js +46 -0
- package/dist/generated/gtk/cell-renderer.d.ts +160 -0
- package/dist/generated/gtk/cell-renderer.js +199 -0
- package/dist/generated/gtk/cell-view.d.ts +171 -0
- package/dist/generated/gtk/cell-view.js +171 -0
- package/dist/generated/gtk/center-box.d.ts +103 -0
- package/dist/generated/gtk/center-box.js +103 -0
- package/dist/generated/gtk/center-layout.d.ts +67 -0
- package/dist/generated/gtk/center-layout.js +67 -0
- package/dist/generated/gtk/check-button.d.ts +132 -0
- package/dist/generated/gtk/check-button.js +197 -0
- package/dist/generated/gtk/closure-expression.d.ts +14 -0
- package/dist/generated/gtk/closure-expression.js +4 -0
- package/dist/generated/gtk/color-button.d.ts +65 -0
- package/dist/generated/gtk/color-button.js +85 -0
- package/dist/generated/gtk/color-chooser-dialog.d.ts +43 -0
- package/dist/generated/gtk/color-chooser-dialog.js +59 -0
- package/dist/generated/gtk/color-chooser-widget.d.ts +75 -0
- package/dist/generated/gtk/color-chooser-widget.js +75 -0
- package/dist/generated/gtk/color-chooser.d.ts +48 -0
- package/dist/generated/gtk/color-chooser.js +48 -0
- package/dist/generated/gtk/color-dialog-button.d.ts +28 -0
- package/dist/generated/gtk/color-dialog-button.js +39 -0
- package/dist/generated/gtk/color-dialog.d.ts +47 -0
- package/dist/generated/gtk/color-dialog.js +47 -0
- package/dist/generated/gtk/column-view-cell.d.ts +17 -0
- package/dist/generated/gtk/column-view-cell.js +17 -0
- package/dist/generated/gtk/column-view-column.d.ts +127 -0
- package/dist/generated/gtk/column-view-column.js +112 -0
- package/dist/generated/gtk/column-view-row.d.ts +89 -0
- package/dist/generated/gtk/column-view-row.js +89 -0
- package/dist/generated/gtk/column-view-sorter.d.ts +67 -0
- package/dist/generated/gtk/column-view-sorter.js +67 -0
- package/dist/generated/gtk/column-view.d.ts +204 -0
- package/dist/generated/gtk/column-view.js +263 -0
- package/dist/generated/gtk/combo-box-text.d.ts +76 -0
- package/dist/generated/gtk/combo-box-text.js +133 -0
- package/dist/generated/gtk/combo-box.d.ts +261 -0
- package/dist/generated/gtk/combo-box.js +323 -0
- package/dist/generated/gtk/constant-expression.d.ts +8 -0
- package/dist/generated/gtk/constant-expression.js +4 -0
- package/dist/generated/gtk/constraint-guide.d.ts +72 -0
- package/dist/generated/gtk/constraint-guide.js +72 -0
- package/dist/generated/gtk/constraint-layout-child.d.ts +1 -0
- package/dist/generated/gtk/constraint-layout-child.js +1 -0
- package/dist/generated/gtk/constraint-layout.d.ts +319 -0
- package/dist/generated/gtk/constraint-layout.js +319 -0
- package/dist/generated/gtk/constraint-target.d.ts +6 -0
- package/dist/generated/gtk/constraint-target.js +6 -0
- package/dist/generated/gtk/constraint.d.ts +83 -0
- package/dist/generated/gtk/constraint.js +71 -0
- package/dist/generated/gtk/css-provider.d.ts +59 -0
- package/dist/generated/gtk/css-provider.js +89 -0
- package/dist/generated/gtk/css-section.d.ts +66 -0
- package/dist/generated/gtk/css-section.js +58 -0
- package/dist/generated/gtk/custom-filter.d.ts +25 -0
- package/dist/generated/gtk/custom-filter.js +14 -0
- package/dist/generated/gtk/custom-layout.d.ts +18 -0
- package/dist/generated/gtk/custom-layout.js +8 -0
- package/dist/generated/gtk/custom-sorter.d.ts +24 -0
- package/dist/generated/gtk/custom-sorter.js +15 -0
- package/dist/generated/gtk/dialog.d.ts +69 -0
- package/dist/generated/gtk/dialog.js +192 -0
- package/dist/generated/gtk/directory-list.d.ts +101 -0
- package/dist/generated/gtk/directory-list.js +94 -0
- package/dist/generated/gtk/drag-icon.d.ts +84 -0
- package/dist/generated/gtk/drag-icon.js +77 -0
- package/dist/generated/gtk/drag-source.d.ts +55 -0
- package/dist/generated/gtk/drag-source.js +133 -0
- package/dist/generated/gtk/drawing-area.d.ts +50 -0
- package/dist/generated/gtk/drawing-area.js +130 -0
- package/dist/generated/gtk/drop-controller-motion.d.ts +16 -0
- package/dist/generated/gtk/drop-controller-motion.js +25 -0
- package/dist/generated/gtk/drop-down.d.ts +92 -0
- package/dist/generated/gtk/drop-down.js +141 -0
- package/dist/generated/gtk/drop-target-async.d.ts +29 -0
- package/dist/generated/gtk/drop-target-async.js +59 -0
- package/dist/generated/gtk/drop-target.d.ts +62 -0
- package/dist/generated/gtk/drop-target.js +126 -0
- package/dist/generated/gtk/editable-label.d.ts +257 -0
- package/dist/generated/gtk/editable-label.js +253 -0
- package/dist/generated/gtk/editable.d.ts +325 -0
- package/dist/generated/gtk/editable.js +325 -0
- package/dist/generated/gtk/emoji-chooser.d.ts +3 -0
- package/dist/generated/gtk/emoji-chooser.js +45 -0
- package/dist/generated/gtk/entry-buffer.d.ts +82 -0
- package/dist/generated/gtk/entry-buffer.js +87 -0
- package/dist/generated/gtk/entry-completion.d.ts +202 -0
- package/dist/generated/gtk/entry-completion.js +242 -0
- package/dist/generated/gtk/entry.d.ts +620 -0
- package/dist/generated/gtk/entry.js +709 -0
- package/dist/generated/gtk/enums.d.ts +2192 -0
- package/dist/generated/gtk/enums.js +2192 -0
- package/dist/generated/gtk/event-controller-focus.d.ts +9 -0
- package/dist/generated/gtk/event-controller-focus.js +19 -0
- package/dist/generated/gtk/event-controller-key.d.ts +24 -0
- package/dist/generated/gtk/event-controller-key.js +25 -0
- package/dist/generated/gtk/event-controller-legacy.d.ts +3 -0
- package/dist/generated/gtk/event-controller-legacy.js +9 -0
- package/dist/generated/gtk/event-controller-motion.d.ts +9 -0
- package/dist/generated/gtk/event-controller-motion.js +19 -0
- package/dist/generated/gtk/event-controller-scroll.d.ts +18 -0
- package/dist/generated/gtk/event-controller-scroll.js +49 -0
- package/dist/generated/gtk/event-controller.d.ts +75 -0
- package/dist/generated/gtk/event-controller.js +75 -0
- package/dist/generated/gtk/every-filter.d.ts +14 -0
- package/dist/generated/gtk/every-filter.js +14 -0
- package/dist/generated/gtk/expander.d.ts +82 -0
- package/dist/generated/gtk/expander.js +166 -0
- package/dist/generated/gtk/expression-watch.d.ts +29 -0
- package/dist/generated/gtk/expression-watch.js +29 -0
- package/dist/generated/gtk/expression.d.ts +238 -0
- package/dist/generated/gtk/expression.js +238 -0
- package/dist/generated/gtk/file-chooser-dialog.d.ts +206 -0
- package/dist/generated/gtk/file-chooser-dialog.js +380 -0
- package/dist/generated/gtk/file-chooser-native.d.ts +390 -0
- package/dist/generated/gtk/file-chooser-native.js +382 -0
- package/dist/generated/gtk/file-chooser-widget.d.ts +214 -0
- package/dist/generated/gtk/file-chooser-widget.js +238 -0
- package/dist/generated/gtk/file-chooser.d.ts +248 -0
- package/dist/generated/gtk/file-chooser.js +248 -0
- package/dist/generated/gtk/file-dialog.d.ts +147 -0
- package/dist/generated/gtk/file-dialog.js +147 -0
- package/dist/generated/gtk/file-filter.d.ts +133 -0
- package/dist/generated/gtk/file-filter.js +133 -0
- package/dist/generated/gtk/file-launcher.d.ts +53 -0
- package/dist/generated/gtk/file-launcher.js +49 -0
- package/dist/generated/gtk/filter-list-model.d.ts +123 -0
- package/dist/generated/gtk/filter-list-model.js +117 -0
- package/dist/generated/gtk/filter.d.ts +30 -0
- package/dist/generated/gtk/filter.js +49 -0
- package/dist/generated/gtk/fixed-layout-child.d.ts +8 -0
- package/dist/generated/gtk/fixed-layout-child.js +8 -0
- package/dist/generated/gtk/fixed-layout.d.ts +35 -0
- package/dist/generated/gtk/fixed-layout.js +35 -0
- package/dist/generated/gtk/fixed.d.ts +81 -0
- package/dist/generated/gtk/fixed.js +81 -0
- package/dist/generated/gtk/flatten-list-model.d.ts +50 -0
- package/dist/generated/gtk/flatten-list-model.js +46 -0
- package/dist/generated/gtk/flow-box-child.d.ts +40 -0
- package/dist/generated/gtk/flow-box-child.js +46 -0
- package/dist/generated/gtk/flow-box.d.ts +243 -0
- package/dist/generated/gtk/flow-box.js +302 -0
- package/dist/generated/gtk/font-button.d.ts +129 -0
- package/dist/generated/gtk/font-button.js +148 -0
- package/dist/generated/gtk/font-chooser-dialog.d.ts +97 -0
- package/dist/generated/gtk/font-chooser-dialog.js +113 -0
- package/dist/generated/gtk/font-chooser-widget.d.ts +114 -0
- package/dist/generated/gtk/font-chooser-widget.js +114 -0
- package/dist/generated/gtk/font-chooser.d.ts +132 -0
- package/dist/generated/gtk/font-chooser.js +132 -0
- package/dist/generated/gtk/font-dialog-button.d.ts +75 -0
- package/dist/generated/gtk/font-dialog-button.js +85 -0
- package/dist/generated/gtk/font-dialog.d.ts +85 -0
- package/dist/generated/gtk/font-dialog.js +85 -0
- package/dist/generated/gtk/frame.d.ts +86 -0
- package/dist/generated/gtk/frame.js +80 -0
- package/dist/generated/gtk/functions.d.ts +769 -0
- package/dist/generated/gtk/functions.js +769 -0
- package/dist/generated/gtk/gesture-click.d.ts +4 -0
- package/dist/generated/gtk/gesture-click.js +13 -0
- package/dist/generated/gtk/gesture-drag.d.ts +21 -0
- package/dist/generated/gtk/gesture-drag.js +32 -0
- package/dist/generated/gtk/gesture-long-press.d.ts +13 -0
- package/dist/generated/gtk/gesture-long-press.js +30 -0
- package/dist/generated/gtk/gesture-pan.d.ts +11 -0
- package/dist/generated/gtk/gesture-pan.js +23 -0
- package/dist/generated/gtk/gesture-rotate.d.ts +11 -0
- package/dist/generated/gtk/gesture-rotate.js +17 -0
- package/dist/generated/gtk/gesture-single.d.ts +47 -0
- package/dist/generated/gtk/gesture-single.js +62 -0
- package/dist/generated/gtk/gesture-stylus.d.ts +61 -0
- package/dist/generated/gtk/gesture-stylus.js +67 -0
- package/dist/generated/gtk/gesture-swipe.d.ts +12 -0
- package/dist/generated/gtk/gesture-swipe.js +26 -0
- package/dist/generated/gtk/gesture-zoom.d.ts +12 -0
- package/dist/generated/gtk/gesture-zoom.js +19 -0
- package/dist/generated/gtk/gesture.d.ts +197 -0
- package/dist/generated/gtk/gesture.js +288 -0
- package/dist/generated/gtk/glarea.d.ts +131 -0
- package/dist/generated/gtk/glarea.js +246 -0
- package/dist/generated/gtk/graphics-offload.d.ts +78 -0
- package/dist/generated/gtk/graphics-offload.js +74 -0
- package/dist/generated/gtk/grid-layout-child.d.ts +29 -0
- package/dist/generated/gtk/grid-layout-child.js +29 -0
- package/dist/generated/gtk/grid-layout.d.ts +72 -0
- package/dist/generated/gtk/grid-layout.js +72 -0
- package/dist/generated/gtk/grid-view.d.ts +86 -0
- package/dist/generated/gtk/grid-view.js +117 -0
- package/dist/generated/gtk/grid.d.ts +241 -0
- package/dist/generated/gtk/grid.js +241 -0
- package/dist/generated/gtk/header-bar.d.ts +157 -0
- package/dist/generated/gtk/header-bar.js +157 -0
- package/dist/generated/gtk/icon-paintable.d.ts +47 -0
- package/dist/generated/gtk/icon-paintable.js +39 -0
- package/dist/generated/gtk/icon-theme.d.ts +148 -0
- package/dist/generated/gtk/icon-theme.js +182 -0
- package/dist/generated/gtk/icon-view.d.ts +464 -0
- package/dist/generated/gtk/icon-view.js +491 -0
- package/dist/generated/gtk/image.d.ts +222 -0
- package/dist/generated/gtk/image.js +222 -0
- package/dist/generated/gtk/imcontext-simple.d.ts +47 -0
- package/dist/generated/gtk/imcontext-simple.js +47 -0
- package/dist/generated/gtk/imcontext.d.ts +162 -0
- package/dist/generated/gtk/imcontext.js +193 -0
- package/dist/generated/gtk/immulticontext.d.ts +24 -0
- package/dist/generated/gtk/immulticontext.js +24 -0
- package/dist/generated/gtk/info-bar.d.ts +93 -0
- package/dist/generated/gtk/info-bar.js +168 -0
- package/dist/generated/gtk/inscription.d.ts +154 -0
- package/dist/generated/gtk/inscription.js +150 -0
- package/dist/generated/gtk/keyval-trigger.d.ts +15 -0
- package/dist/generated/gtk/keyval-trigger.js +9 -0
- package/dist/generated/gtk/label.d.ts +418 -0
- package/dist/generated/gtk/label.js +627 -0
- package/dist/generated/gtk/layout-child.d.ts +17 -0
- package/dist/generated/gtk/layout-child.js +17 -0
- package/dist/generated/gtk/layout-manager.d.ts +95 -0
- package/dist/generated/gtk/layout-manager.js +95 -0
- package/dist/generated/gtk/level-bar.d.ts +80 -0
- package/dist/generated/gtk/level-bar.js +179 -0
- package/dist/generated/gtk/link-button.d.ts +32 -0
- package/dist/generated/gtk/link-button.js +69 -0
- package/dist/generated/gtk/list-base.d.ts +96 -0
- package/dist/generated/gtk/list-base.js +96 -0
- package/dist/generated/gtk/list-box-row.d.ts +119 -0
- package/dist/generated/gtk/list-box-row.js +125 -0
- package/dist/generated/gtk/list-box.d.ts +257 -0
- package/dist/generated/gtk/list-box.js +323 -0
- package/dist/generated/gtk/list-header.d.ts +43 -0
- package/dist/generated/gtk/list-header.js +43 -0
- package/dist/generated/gtk/list-item-factory.d.ts +49 -0
- package/dist/generated/gtk/list-item-factory.js +49 -0
- package/dist/generated/gtk/list-item.d.ts +115 -0
- package/dist/generated/gtk/list-item.js +115 -0
- package/dist/generated/gtk/list-store.d.ts +580 -0
- package/dist/generated/gtk/list-store.js +573 -0
- package/dist/generated/gtk/list-view.d.ts +86 -0
- package/dist/generated/gtk/list-view.js +179 -0
- package/dist/generated/gtk/lock-button.d.ts +11 -0
- package/dist/generated/gtk/lock-button.js +46 -0
- package/dist/generated/gtk/map-list-model.d.ts +97 -0
- package/dist/generated/gtk/map-list-model.js +90 -0
- package/dist/generated/gtk/media-controls.d.ts +18 -0
- package/dist/generated/gtk/media-controls.js +14 -0
- package/dist/generated/gtk/media-file.d.ts +78 -0
- package/dist/generated/gtk/media-file.js +78 -0
- package/dist/generated/gtk/media-stream.d.ts +253 -0
- package/dist/generated/gtk/media-stream.js +253 -0
- package/dist/generated/gtk/menu-button.d.ts +155 -0
- package/dist/generated/gtk/menu-button.js +219 -0
- package/dist/generated/gtk/message-dialog.d.ts +12 -0
- package/dist/generated/gtk/message-dialog.js +70 -0
- package/dist/generated/gtk/mnemonic-action.d.ts +11 -0
- package/dist/generated/gtk/mnemonic-action.js +11 -0
- package/dist/generated/gtk/mnemonic-trigger.d.ts +17 -0
- package/dist/generated/gtk/mnemonic-trigger.js +9 -0
- package/dist/generated/gtk/mount-operation.d.ts +39 -0
- package/dist/generated/gtk/mount-operation.js +35 -0
- package/dist/generated/gtk/multi-filter.d.ts +18 -0
- package/dist/generated/gtk/multi-filter.js +18 -0
- package/dist/generated/gtk/multi-selection.d.ts +135 -0
- package/dist/generated/gtk/multi-selection.js +131 -0
- package/dist/generated/gtk/multi-sorter.d.ts +34 -0
- package/dist/generated/gtk/multi-sorter.js +34 -0
- package/dist/generated/gtk/named-action.d.ts +20 -0
- package/dist/generated/gtk/named-action.js +10 -0
- package/dist/generated/gtk/native-dialog.d.ts +67 -0
- package/dist/generated/gtk/native-dialog.js +86 -0
- package/dist/generated/gtk/native.d.ts +40 -0
- package/dist/generated/gtk/native.js +40 -0
- package/dist/generated/gtk/never-trigger.d.ts +8 -0
- package/dist/generated/gtk/never-trigger.js +8 -0
- package/dist/generated/gtk/no-selection.d.ts +142 -0
- package/dist/generated/gtk/no-selection.js +138 -0
- package/dist/generated/gtk/notebook-page.d.ts +4 -0
- package/dist/generated/gtk/notebook-page.js +4 -0
- package/dist/generated/gtk/notebook.d.ts +283 -0
- package/dist/generated/gtk/notebook.js +401 -0
- package/dist/generated/gtk/nothing-action.d.ts +7 -0
- package/dist/generated/gtk/nothing-action.js +7 -0
- package/dist/generated/gtk/numeric-sorter.d.ts +33 -0
- package/dist/generated/gtk/numeric-sorter.js +26 -0
- package/dist/generated/gtk/object-expression.d.ts +14 -0
- package/dist/generated/gtk/object-expression.js +4 -0
- package/dist/generated/gtk/orientable.d.ts +19 -0
- package/dist/generated/gtk/orientable.js +19 -0
- package/dist/generated/gtk/overlay-layout-child.d.ts +15 -0
- package/dist/generated/gtk/overlay-layout-child.js +15 -0
- package/dist/generated/gtk/overlay-layout.d.ts +12 -0
- package/dist/generated/gtk/overlay-layout.js +12 -0
- package/dist/generated/gtk/overlay.d.ts +48 -0
- package/dist/generated/gtk/overlay.js +81 -0
- package/dist/generated/gtk/pad-controller.d.ts +97 -0
- package/dist/generated/gtk/pad-controller.js +79 -0
- package/dist/generated/gtk/page-setup-unix-dialog.d.ts +21 -0
- package/dist/generated/gtk/page-setup-unix-dialog.js +31 -0
- package/dist/generated/gtk/page-setup.d.ts +188 -0
- package/dist/generated/gtk/page-setup.js +188 -0
- package/dist/generated/gtk/paned.d.ts +71 -0
- package/dist/generated/gtk/paned.js +147 -0
- package/dist/generated/gtk/paper-size.d.ts +141 -0
- package/dist/generated/gtk/paper-size.js +132 -0
- package/dist/generated/gtk/param-spec-expression.d.ts +1 -0
- package/dist/generated/gtk/param-spec-expression.js +1 -0
- package/dist/generated/gtk/password-entry-buffer.d.ts +9 -0
- package/dist/generated/gtk/password-entry-buffer.js +9 -0
- package/dist/generated/gtk/password-entry.d.ts +217 -0
- package/dist/generated/gtk/password-entry.js +251 -0
- package/dist/generated/gtk/picture.d.ts +204 -0
- package/dist/generated/gtk/picture.js +204 -0
- package/dist/generated/gtk/popover-menu-bar.d.ts +55 -0
- package/dist/generated/gtk/popover-menu-bar.js +51 -0
- package/dist/generated/gtk/popover-menu.d.ts +61 -0
- package/dist/generated/gtk/popover-menu.js +163 -0
- package/dist/generated/gtk/popover.d.ts +137 -0
- package/dist/generated/gtk/popover.js +232 -0
- package/dist/generated/gtk/print-context.d.ts +124 -0
- package/dist/generated/gtk/print-context.js +124 -0
- package/dist/generated/gtk/print-dialog.d.ts +71 -0
- package/dist/generated/gtk/print-dialog.js +71 -0
- package/dist/generated/gtk/print-job.d.ts +143 -0
- package/dist/generated/gtk/print-job.js +148 -0
- package/dist/generated/gtk/print-operation-preview.d.ts +31 -0
- package/dist/generated/gtk/print-operation-preview.js +31 -0
- package/dist/generated/gtk/print-operation.d.ts +300 -0
- package/dist/generated/gtk/print-operation.js +364 -0
- package/dist/generated/gtk/print-settings.d.ts +361 -0
- package/dist/generated/gtk/print-settings.js +361 -0
- package/dist/generated/gtk/print-setup.d.ts +32 -0
- package/dist/generated/gtk/print-setup.js +32 -0
- package/dist/generated/gtk/print-unix-dialog.d.ts +75 -0
- package/dist/generated/gtk/print-unix-dialog.js +128 -0
- package/dist/generated/gtk/printer.d.ts +121 -0
- package/dist/generated/gtk/printer.js +126 -0
- package/dist/generated/gtk/progress-bar.d.ts +149 -0
- package/dist/generated/gtk/progress-bar.js +149 -0
- package/dist/generated/gtk/property-expression.d.ts +36 -0
- package/dist/generated/gtk/property-expression.js +21 -0
- package/dist/generated/gtk/range.d.ts +162 -0
- package/dist/generated/gtk/range.js +178 -0
- package/dist/generated/gtk/recent-info.d.ts +123 -0
- package/dist/generated/gtk/recent-info.js +123 -0
- package/dist/generated/gtk/recent-manager.d.ts +81 -0
- package/dist/generated/gtk/recent-manager.js +139 -0
- package/dist/generated/gtk/requisition.d.ts +19 -0
- package/dist/generated/gtk/requisition.js +19 -0
- package/dist/generated/gtk/revealer.d.ts +73 -0
- package/dist/generated/gtk/revealer.js +73 -0
- package/dist/generated/gtk/root.d.ts +37 -0
- package/dist/generated/gtk/root.js +37 -0
- package/dist/generated/gtk/scale-button.d.ts +68 -0
- package/dist/generated/gtk/scale-button.js +82 -0
- package/dist/generated/gtk/scale.d.ts +115 -0
- package/dist/generated/gtk/scale.js +201 -0
- package/dist/generated/gtk/scroll-info.d.ts +31 -0
- package/dist/generated/gtk/scroll-info.js +31 -0
- package/dist/generated/gtk/scrollable.d.ts +73 -0
- package/dist/generated/gtk/scrollable.js +73 -0
- package/dist/generated/gtk/scrollbar.d.ts +63 -0
- package/dist/generated/gtk/scrollbar.js +58 -0
- package/dist/generated/gtk/scrolled-window.d.ts +180 -0
- package/dist/generated/gtk/scrolled-window.js +259 -0
- package/dist/generated/gtk/search-bar.d.ts +110 -0
- package/dist/generated/gtk/search-bar.js +110 -0
- package/dist/generated/gtk/search-entry.d.ts +251 -0
- package/dist/generated/gtk/search-entry.js +305 -0
- package/dist/generated/gtk/section-model.d.ts +46 -0
- package/dist/generated/gtk/section-model.js +46 -0
- package/dist/generated/gtk/selection-filter-model.d.ts +18 -0
- package/dist/generated/gtk/selection-filter-model.js +13 -0
- package/dist/generated/gtk/selection-model.d.ts +131 -0
- package/dist/generated/gtk/selection-model.js +131 -0
- package/dist/generated/gtk/separator.d.ts +29 -0
- package/dist/generated/gtk/separator.js +25 -0
- package/dist/generated/gtk/settings.d.ts +47 -0
- package/dist/generated/gtk/settings.js +47 -0
- package/dist/generated/gtk/shortcut-action.d.ts +70 -0
- package/dist/generated/gtk/shortcut-action.js +55 -0
- package/dist/generated/gtk/shortcut-controller.d.ts +110 -0
- package/dist/generated/gtk/shortcut-controller.js +110 -0
- package/dist/generated/gtk/shortcut-label.d.ts +23 -0
- package/dist/generated/gtk/shortcut-label.js +19 -0
- package/dist/generated/gtk/shortcut-manager.d.ts +13 -0
- package/dist/generated/gtk/shortcut-manager.js +13 -0
- package/dist/generated/gtk/shortcut-trigger.d.ts +106 -0
- package/dist/generated/gtk/shortcut-trigger.js +87 -0
- package/dist/generated/gtk/shortcut.d.ts +44 -0
- package/dist/generated/gtk/shortcut.js +38 -0
- package/dist/generated/gtk/shortcuts-group.d.ts +26 -0
- package/dist/generated/gtk/shortcuts-group.js +26 -0
- package/dist/generated/gtk/shortcuts-section.d.ts +10 -0
- package/dist/generated/gtk/shortcuts-section.js +42 -0
- package/dist/generated/gtk/shortcuts-shortcut.d.ts +6 -0
- package/dist/generated/gtk/shortcuts-shortcut.js +6 -0
- package/dist/generated/gtk/shortcuts-window.d.ts +10 -0
- package/dist/generated/gtk/shortcuts-window.js +70 -0
- package/dist/generated/gtk/signal-action.d.ts +16 -0
- package/dist/generated/gtk/signal-action.js +9 -0
- package/dist/generated/gtk/signal-list-item-factory.d.ts +5 -0
- package/dist/generated/gtk/signal-list-item-factory.js +46 -0
- package/dist/generated/gtk/single-selection.d.ts +189 -0
- package/dist/generated/gtk/single-selection.js +185 -0
- package/dist/generated/gtk/size-group.d.ts +150 -0
- package/dist/generated/gtk/size-group.js +146 -0
- package/dist/generated/gtk/slice-list-model.d.ts +76 -0
- package/dist/generated/gtk/slice-list-model.js +68 -0
- package/dist/generated/gtk/snapshot.d.ts +477 -0
- package/dist/generated/gtk/snapshot.js +477 -0
- package/dist/generated/gtk/sort-list-model.d.ts +131 -0
- package/dist/generated/gtk/sort-list-model.js +126 -0
- package/dist/generated/gtk/sorter.d.ts +39 -0
- package/dist/generated/gtk/sorter.js +61 -0
- package/dist/generated/gtk/spin-button.d.ts +378 -0
- package/dist/generated/gtk/spin-button.js +491 -0
- package/dist/generated/gtk/spinner.d.ts +37 -0
- package/dist/generated/gtk/spinner.js +37 -0
- package/dist/generated/gtk/stack-page.d.ts +171 -0
- package/dist/generated/gtk/stack-page.js +171 -0
- package/dist/generated/gtk/stack-sidebar.d.ts +32 -0
- package/dist/generated/gtk/stack-sidebar.js +32 -0
- package/dist/generated/gtk/stack-switcher.d.ts +51 -0
- package/dist/generated/gtk/stack-switcher.js +51 -0
- package/dist/generated/gtk/stack.d.ts +200 -0
- package/dist/generated/gtk/stack.js +200 -0
- package/dist/generated/gtk/statusbar.d.ts +35 -0
- package/dist/generated/gtk/statusbar.js +73 -0
- package/dist/generated/gtk/string-filter.d.ts +53 -0
- package/dist/generated/gtk/string-filter.js +46 -0
- package/dist/generated/gtk/string-list.d.ts +96 -0
- package/dist/generated/gtk/string-list.js +92 -0
- package/dist/generated/gtk/string-object.d.ts +14 -0
- package/dist/generated/gtk/string-object.js +10 -0
- package/dist/generated/gtk/string-sorter.d.ts +41 -0
- package/dist/generated/gtk/string-sorter.js +33 -0
- package/dist/generated/gtk/style-context.d.ts +188 -0
- package/dist/generated/gtk/style-context.js +188 -0
- package/dist/generated/gtk/style-provider.d.ts +10 -0
- package/dist/generated/gtk/style-provider.js +10 -0
- package/dist/generated/gtk/switch.d.ts +73 -0
- package/dist/generated/gtk/switch.js +112 -0
- package/dist/generated/gtk/symbolic-paintable.d.ts +24 -0
- package/dist/generated/gtk/symbolic-paintable.js +24 -0
- package/dist/generated/gtk/text-buffer.d.ts +693 -0
- package/dist/generated/gtk/text-buffer.js +700 -0
- package/dist/generated/gtk/text-child-anchor.d.ts +36 -0
- package/dist/generated/gtk/text-child-anchor.js +36 -0
- package/dist/generated/gtk/text-iter.d.ts +764 -0
- package/dist/generated/gtk/text-iter.js +764 -0
- package/dist/generated/gtk/text-mark.d.ts +85 -0
- package/dist/generated/gtk/text-mark.js +70 -0
- package/dist/generated/gtk/text-tag-table.d.ts +44 -0
- package/dist/generated/gtk/text-tag-table.js +67 -0
- package/dist/generated/gtk/text-tag.d.ts +52 -0
- package/dist/generated/gtk/text-tag.js +48 -0
- package/dist/generated/gtk/text-view.d.ts +668 -0
- package/dist/generated/gtk/text-view.js +743 -0
- package/dist/generated/gtk/text.d.ts +437 -0
- package/dist/generated/gtk/text.js +549 -0
- package/dist/generated/gtk/toggle-button.d.ts +49 -0
- package/dist/generated/gtk/toggle-button.js +124 -0
- package/dist/generated/gtk/tooltip.d.ts +80 -0
- package/dist/generated/gtk/tooltip.js +80 -0
- package/dist/generated/gtk/tree-drag-dest.d.ts +20 -0
- package/dist/generated/gtk/tree-drag-dest.js +20 -0
- package/dist/generated/gtk/tree-drag-source.d.ts +21 -0
- package/dist/generated/gtk/tree-drag-source.js +21 -0
- package/dist/generated/gtk/tree-expander.d.ts +125 -0
- package/dist/generated/gtk/tree-expander.js +125 -0
- package/dist/generated/gtk/tree-iter.d.ts +23 -0
- package/dist/generated/gtk/tree-iter.js +23 -0
- package/dist/generated/gtk/tree-list-model.d.ts +69 -0
- package/dist/generated/gtk/tree-list-model.js +60 -0
- package/dist/generated/gtk/tree-list-row-sorter.d.ts +32 -0
- package/dist/generated/gtk/tree-list-row-sorter.js +24 -0
- package/dist/generated/gtk/tree-list-row.d.ts +79 -0
- package/dist/generated/gtk/tree-list-row.js +79 -0
- package/dist/generated/gtk/tree-model-filter.d.ts +409 -0
- package/dist/generated/gtk/tree-model-filter.js +409 -0
- package/dist/generated/gtk/tree-model-sort.d.ts +436 -0
- package/dist/generated/gtk/tree-model-sort.js +432 -0
- package/dist/generated/gtk/tree-model.d.ts +411 -0
- package/dist/generated/gtk/tree-model.js +411 -0
- package/dist/generated/gtk/tree-path.d.ts +91 -0
- package/dist/generated/gtk/tree-path.js +91 -0
- package/dist/generated/gtk/tree-row-reference.d.ts +74 -0
- package/dist/generated/gtk/tree-row-reference.js +64 -0
- package/dist/generated/gtk/tree-selection.d.ts +98 -0
- package/dist/generated/gtk/tree-selection.js +125 -0
- package/dist/generated/gtk/tree-sortable.d.ts +58 -0
- package/dist/generated/gtk/tree-sortable.js +58 -0
- package/dist/generated/gtk/tree-store.d.ts +528 -0
- package/dist/generated/gtk/tree-store.js +521 -0
- package/dist/generated/gtk/tree-view-column.d.ts +299 -0
- package/dist/generated/gtk/tree-view-column.js +311 -0
- package/dist/generated/gtk/tree-view.d.ts +659 -0
- package/dist/generated/gtk/tree-view.js +749 -0
- package/dist/generated/gtk/uri-launcher.d.ts +38 -0
- package/dist/generated/gtk/uri-launcher.js +34 -0
- package/dist/generated/gtk/video.d.ts +101 -0
- package/dist/generated/gtk/video.js +101 -0
- package/dist/generated/gtk/viewport.d.ts +95 -0
- package/dist/generated/gtk/viewport.js +87 -0
- package/dist/generated/gtk/volume-button.d.ts +7 -0
- package/dist/generated/gtk/volume-button.js +11 -0
- package/dist/generated/gtk/widget-paintable.d.ts +32 -0
- package/dist/generated/gtk/widget-paintable.js +28 -0
- package/dist/generated/gtk/widget.d.ts +1741 -0
- package/dist/generated/gtk/widget.js +2135 -0
- package/dist/generated/gtk/window-controls.d.ts +102 -0
- package/dist/generated/gtk/window-controls.js +98 -0
- package/dist/generated/gtk/window-group.d.ts +35 -0
- package/dist/generated/gtk/window-group.js +35 -0
- package/dist/generated/gtk/window-handle.d.ts +28 -0
- package/dist/generated/gtk/window-handle.js +28 -0
- package/dist/generated/gtk/window.d.ts +587 -0
- package/dist/generated/gtk/window.js +660 -0
- package/dist/generated/gtksource/annotation-provider.d.ts +15 -0
- package/dist/generated/gtksource/annotation-provider.js +23 -0
- package/dist/generated/gtksource/annotation.d.ts +14 -0
- package/dist/generated/gtksource/annotation.js +8 -0
- package/dist/generated/gtksource/annotations.d.ts +8 -0
- package/dist/generated/gtksource/annotations.js +15 -0
- package/dist/generated/gtksource/buffer.d.ts +234 -0
- package/dist/generated/gtksource/buffer.js +302 -0
- package/dist/generated/gtksource/completion-cell.d.ts +24 -0
- package/dist/generated/gtksource/completion-cell.js +24 -0
- package/dist/generated/gtksource/completion-context.d.ts +64 -0
- package/dist/generated/gtksource/completion-context.js +82 -0
- package/dist/generated/gtksource/completion-proposal.d.ts +17 -0
- package/dist/generated/gtksource/completion-proposal.js +17 -0
- package/dist/generated/gtksource/completion-provider.d.ts +98 -0
- package/dist/generated/gtksource/completion-provider.js +98 -0
- package/dist/generated/gtksource/completion-snippets.d.ts +96 -0
- package/dist/generated/gtksource/completion-snippets.js +96 -0
- package/dist/generated/gtksource/completion-words.d.ts +107 -0
- package/dist/generated/gtksource/completion-words.js +104 -0
- package/dist/generated/gtksource/completion.d.ts +46 -0
- package/dist/generated/gtksource/completion.js +77 -0
- package/dist/generated/gtksource/encoding.d.ts +42 -0
- package/dist/generated/gtksource/encoding.js +42 -0
- package/dist/generated/gtksource/enums.d.ts +113 -0
- package/dist/generated/gtksource/enums.js +113 -0
- package/dist/generated/gtksource/file-loader.d.ts +58 -0
- package/dist/generated/gtksource/file-loader.js +48 -0
- package/dist/generated/gtksource/file-saver.d.ts +61 -0
- package/dist/generated/gtksource/file-saver.js +53 -0
- package/dist/generated/gtksource/file.d.ts +55 -0
- package/dist/generated/gtksource/file.js +55 -0
- package/dist/generated/gtksource/functions.d.ts +129 -0
- package/dist/generated/gtksource/functions.js +129 -0
- package/dist/generated/gtksource/gutter-lines.d.ts +120 -0
- package/dist/generated/gtksource/gutter-lines.js +120 -0
- package/dist/generated/gtksource/gutter-renderer-pixbuf.d.ts +37 -0
- package/dist/generated/gtksource/gutter-renderer-pixbuf.js +37 -0
- package/dist/generated/gtksource/gutter-renderer-text.d.ts +23 -0
- package/dist/generated/gtksource/gutter-renderer-text.js +23 -0
- package/dist/generated/gtksource/gutter-renderer.d.ts +94 -0
- package/dist/generated/gtksource/gutter-renderer.js +128 -0
- package/dist/generated/gtksource/gutter.d.ts +31 -0
- package/dist/generated/gtksource/gutter.js +31 -0
- package/dist/generated/gtksource/hover-context.d.ts +31 -0
- package/dist/generated/gtksource/hover-context.js +31 -0
- package/dist/generated/gtksource/hover-display.d.ts +10 -0
- package/dist/generated/gtksource/hover-display.js +10 -0
- package/dist/generated/gtksource/hover-provider.d.ts +12 -0
- package/dist/generated/gtksource/hover-provider.js +12 -0
- package/dist/generated/gtksource/hover.d.ts +15 -0
- package/dist/generated/gtksource/hover.js +15 -0
- package/dist/generated/gtksource/indenter.d.ts +66 -0
- package/dist/generated/gtksource/indenter.js +66 -0
- package/dist/generated/gtksource/language-manager.d.ts +117 -0
- package/dist/generated/gtksource/language-manager.js +117 -0
- package/dist/generated/gtksource/language.d.ts +58 -0
- package/dist/generated/gtksource/language.js +58 -0
- package/dist/generated/gtksource/map.d.ts +35 -0
- package/dist/generated/gtksource/map.js +35 -0
- package/dist/generated/gtksource/mark-attributes.d.ts +63 -0
- package/dist/generated/gtksource/mark-attributes.js +96 -0
- package/dist/generated/gtksource/mark.d.ts +47 -0
- package/dist/generated/gtksource/mark.js +36 -0
- package/dist/generated/gtksource/print-compositor.d.ts +417 -0
- package/dist/generated/gtksource/print-compositor.js +413 -0
- package/dist/generated/gtksource/region.d.ts +119 -0
- package/dist/generated/gtksource/region.js +116 -0
- package/dist/generated/gtksource/search-context.d.ts +179 -0
- package/dist/generated/gtksource/search-context.js +170 -0
- package/dist/generated/gtksource/search-settings.d.ts +65 -0
- package/dist/generated/gtksource/search-settings.js +65 -0
- package/dist/generated/gtksource/snippet-chunk.d.ts +85 -0
- package/dist/generated/gtksource/snippet-chunk.js +85 -0
- package/dist/generated/gtksource/snippet-context.d.ts +31 -0
- package/dist/generated/gtksource/snippet-context.js +42 -0
- package/dist/generated/gtksource/snippet-manager.d.ts +65 -0
- package/dist/generated/gtksource/snippet-manager.js +65 -0
- package/dist/generated/gtksource/snippet.d.ts +86 -0
- package/dist/generated/gtksource/snippet.js +81 -0
- package/dist/generated/gtksource/space-drawer.d.ts +123 -0
- package/dist/generated/gtksource/space-drawer.js +123 -0
- package/dist/generated/gtksource/style-scheme-chooser-button.d.ts +21 -0
- package/dist/generated/gtksource/style-scheme-chooser-button.js +21 -0
- package/dist/generated/gtksource/style-scheme-chooser-widget.d.ts +22 -0
- package/dist/generated/gtksource/style-scheme-chooser-widget.js +22 -0
- package/dist/generated/gtksource/style-scheme-chooser.d.ts +16 -0
- package/dist/generated/gtksource/style-scheme-chooser.js +16 -0
- package/dist/generated/gtksource/style-scheme-manager.d.ts +53 -0
- package/dist/generated/gtksource/style-scheme-manager.js +53 -0
- package/dist/generated/gtksource/style-scheme-preview.d.ts +8 -0
- package/dist/generated/gtksource/style-scheme-preview.js +11 -0
- package/dist/generated/gtksource/style-scheme.d.ts +22 -0
- package/dist/generated/gtksource/style-scheme.js +22 -0
- package/dist/generated/gtksource/style.d.ts +20 -0
- package/dist/generated/gtksource/style.js +20 -0
- package/dist/generated/gtksource/tag.d.ts +18 -0
- package/dist/generated/gtksource/tag.js +9 -0
- package/dist/generated/gtksource/view.d.ts +248 -0
- package/dist/generated/gtksource/view.js +312 -0
- package/dist/generated/gtksource/vim-imcontext.d.ts +12 -0
- package/dist/generated/gtksource/vim-imcontext.js +85 -0
- package/dist/generated/harfbuzz/blob-t.d.ts +5 -0
- package/dist/generated/harfbuzz/blob-t.js +5 -0
- package/dist/generated/harfbuzz/buffer-t.d.ts +4 -0
- package/dist/generated/harfbuzz/buffer-t.js +4 -0
- package/dist/generated/harfbuzz/color-line-t.d.ts +1 -0
- package/dist/generated/harfbuzz/color-line-t.js +1 -0
- package/dist/generated/harfbuzz/color-stop-t.d.ts +14 -0
- package/dist/generated/harfbuzz/color-stop-t.js +14 -0
- package/dist/generated/harfbuzz/draw-funcs-t.d.ts +8 -0
- package/dist/generated/harfbuzz/draw-funcs-t.js +8 -0
- package/dist/generated/harfbuzz/draw-state-t.d.ts +6 -0
- package/dist/generated/harfbuzz/draw-state-t.js +6 -0
- package/dist/generated/harfbuzz/enums.d.ts +1241 -0
- package/dist/generated/harfbuzz/enums.js +1241 -0
- package/dist/generated/harfbuzz/face-t.d.ts +1 -0
- package/dist/generated/harfbuzz/face-t.js +1 -0
- package/dist/generated/harfbuzz/feature-t.d.ts +25 -0
- package/dist/generated/harfbuzz/feature-t.js +25 -0
- package/dist/generated/harfbuzz/font-funcs-t.d.ts +10 -0
- package/dist/generated/harfbuzz/font-funcs-t.js +10 -0
- package/dist/generated/harfbuzz/font-t.d.ts +1 -0
- package/dist/generated/harfbuzz/font-t.js +1 -0
- package/dist/generated/harfbuzz/functions.d.ts +3816 -0
- package/dist/generated/harfbuzz/functions.js +3816 -0
- package/dist/generated/harfbuzz/glyph-info-t.d.ts +21 -0
- package/dist/generated/harfbuzz/glyph-info-t.js +21 -0
- package/dist/generated/harfbuzz/glyph-position-t.d.ts +21 -0
- package/dist/generated/harfbuzz/glyph-position-t.js +21 -0
- package/dist/generated/harfbuzz/map-t.d.ts +1 -0
- package/dist/generated/harfbuzz/map-t.js +1 -0
- package/dist/generated/harfbuzz/ot-math-glyph-part-t.d.ts +10 -0
- package/dist/generated/harfbuzz/ot-math-glyph-part-t.js +10 -0
- package/dist/generated/harfbuzz/ot-math-glyph-variant-t.d.ts +3 -0
- package/dist/generated/harfbuzz/ot-math-glyph-variant-t.js +3 -0
- package/dist/generated/harfbuzz/ot-var-axis-info-t.d.ts +15 -0
- package/dist/generated/harfbuzz/ot-var-axis-info-t.js +15 -0
- package/dist/generated/harfbuzz/paint-funcs-t.d.ts +22 -0
- package/dist/generated/harfbuzz/paint-funcs-t.js +22 -0
- package/dist/generated/harfbuzz/segment-properties-t.d.ts +8 -0
- package/dist/generated/harfbuzz/segment-properties-t.js +8 -0
- package/dist/generated/harfbuzz/set-t.d.ts +6 -0
- package/dist/generated/harfbuzz/set-t.js +6 -0
- package/dist/generated/harfbuzz/shape-plan-t.d.ts +11 -0
- package/dist/generated/harfbuzz/shape-plan-t.js +11 -0
- package/dist/generated/harfbuzz/unicode-funcs-t.d.ts +10 -0
- package/dist/generated/harfbuzz/unicode-funcs-t.js +10 -0
- package/dist/generated/harfbuzz/user-data-key-t.d.ts +1 -0
- package/dist/generated/harfbuzz/user-data-key-t.js +1 -0
- package/dist/generated/pango/attr-iterator.d.ts +48 -0
- package/dist/generated/pango/attr-iterator.js +48 -0
- package/dist/generated/pango/attr-list.d.ts +168 -0
- package/dist/generated/pango/attr-list.js +168 -0
- package/dist/generated/pango/attribute.d.ts +82 -0
- package/dist/generated/pango/attribute.js +82 -0
- package/dist/generated/pango/color.d.ts +55 -0
- package/dist/generated/pango/color.js +55 -0
- package/dist/generated/pango/context.d.ts +188 -0
- package/dist/generated/pango/context.js +188 -0
- package/dist/generated/pango/coverage.d.ts +50 -0
- package/dist/generated/pango/coverage.js +50 -0
- package/dist/generated/pango/enums.d.ts +589 -0
- package/dist/generated/pango/enums.js +589 -0
- package/dist/generated/pango/font-description.d.ts +374 -0
- package/dist/generated/pango/font-description.js +374 -0
- package/dist/generated/pango/font-face.d.ts +38 -0
- package/dist/generated/pango/font-face.js +38 -0
- package/dist/generated/pango/font-family.d.ts +55 -0
- package/dist/generated/pango/font-family.js +55 -0
- package/dist/generated/pango/font-map.d.ts +88 -0
- package/dist/generated/pango/font-map.js +88 -0
- package/dist/generated/pango/font-metrics.d.ts +78 -0
- package/dist/generated/pango/font-metrics.js +78 -0
- package/dist/generated/pango/font.d.ts +119 -0
- package/dist/generated/pango/font.js +119 -0
- package/dist/generated/pango/fontset-simple.d.ts +20 -0
- package/dist/generated/pango/fontset-simple.js +16 -0
- package/dist/generated/pango/fontset.d.ts +24 -0
- package/dist/generated/pango/fontset.js +24 -0
- package/dist/generated/pango/functions.d.ts +1009 -0
- package/dist/generated/pango/functions.js +1009 -0
- package/dist/generated/pango/glyph-item-iter.d.ts +72 -0
- package/dist/generated/pango/glyph-item-iter.js +72 -0
- package/dist/generated/pango/glyph-item.d.ts +82 -0
- package/dist/generated/pango/glyph-item.js +82 -0
- package/dist/generated/pango/glyph-string.d.ts +114 -0
- package/dist/generated/pango/glyph-string.js +114 -0
- package/dist/generated/pango/item.d.ts +57 -0
- package/dist/generated/pango/item.js +57 -0
- package/dist/generated/pango/language.d.ts +145 -0
- package/dist/generated/pango/language.js +145 -0
- package/dist/generated/pango/layout-iter.d.ts +153 -0
- package/dist/generated/pango/layout-iter.js +153 -0
- package/dist/generated/pango/layout-line.d.ts +99 -0
- package/dist/generated/pango/layout-line.js +99 -0
- package/dist/generated/pango/layout.d.ts +662 -0
- package/dist/generated/pango/layout.js +657 -0
- package/dist/generated/pango/matrix.d.ts +136 -0
- package/dist/generated/pango/matrix.js +136 -0
- package/dist/generated/pango/renderer.d.ts +188 -0
- package/dist/generated/pango/renderer.js +188 -0
- package/dist/generated/pango/script-iter.d.ts +37 -0
- package/dist/generated/pango/script-iter.js +27 -0
- package/dist/generated/pango/tab-array.d.ts +114 -0
- package/dist/generated/pango/tab-array.js +106 -0
- package/dist/generated/pangocairo/font-map.d.ts +41 -0
- package/dist/generated/pangocairo/font-map.js +41 -0
- package/dist/generated/pangocairo/font.d.ts +12 -0
- package/dist/generated/pangocairo/font.js +12 -0
- package/dist/generated/pangocairo/functions.d.ts +227 -0
- package/dist/generated/pangocairo/functions.js +227 -0
- package/dist/gl/constants.d.ts +4 -0
- package/dist/gl/constants.js +4 -0
- package/dist/gl/gl.d.ts +144 -0
- package/dist/gl/gl.js +144 -0
- package/dist/gl/index.d.ts +12 -0
- package/dist/gl/index.js +12 -0
- package/dist/native-error.d.ts +11 -0
- package/dist/native-error.js +11 -0
- package/dist/native.d.ts +29 -0
- package/dist/native.js +29 -0
- package/dist/types.d.ts +5 -0
- package/package.json +3 -3
|
@@ -22,6 +22,16 @@ import { TlsFileDatabase } from "./tls-file-database.js";
|
|
|
22
22
|
import { TlsServerConnection } from "./tls-server-connection.js";
|
|
23
23
|
import * as GLib from "../glib/index.js";
|
|
24
24
|
import * as GObject from "../gobject/index.js";
|
|
25
|
+
/**
|
|
26
|
+
* Checks if `action_name` is valid.
|
|
27
|
+
*
|
|
28
|
+
* `action_name` is valid if it consists only of alphanumeric characters,
|
|
29
|
+
* plus `-` and `.`. The empty string is not a valid action name.
|
|
30
|
+
*
|
|
31
|
+
* It is an error to call this function with a non-UTF-8 @action_name.
|
|
32
|
+
* `action_name` must not be `NULL`.
|
|
33
|
+
* @param actionName - a potential action name
|
|
34
|
+
*/
|
|
25
35
|
export const actionNameIsValid = (actionName) => {
|
|
26
36
|
return call("libgio-2.0.so.0", "g_action_name_is_valid", [
|
|
27
37
|
{
|
|
@@ -30,6 +40,41 @@ export const actionNameIsValid = (actionName) => {
|
|
|
30
40
|
},
|
|
31
41
|
], { type: "boolean" });
|
|
32
42
|
};
|
|
43
|
+
/**
|
|
44
|
+
* Parses a detailed action name into its separate name and target
|
|
45
|
+
* components.
|
|
46
|
+
*
|
|
47
|
+
* Detailed action names can have three formats.
|
|
48
|
+
*
|
|
49
|
+
* The first format is used to represent an action name with no target
|
|
50
|
+
* value and consists of just an action name containing no whitespace
|
|
51
|
+
* nor the characters `:`, `(` or `)`. For example: `app.action`.
|
|
52
|
+
*
|
|
53
|
+
* The second format is used to represent an action with a target value
|
|
54
|
+
* that is a non-empty string consisting only of alphanumerics, plus `-`
|
|
55
|
+
* and `.`. In that case, the action name and target value are
|
|
56
|
+
* separated by a double colon (`::`). For example:
|
|
57
|
+
* `app.action::target`.
|
|
58
|
+
*
|
|
59
|
+
* The third format is used to represent an action with any type of
|
|
60
|
+
* target value, including strings. The target value follows the action
|
|
61
|
+
* name, surrounded in parens. For example: `app.action(42)`. The
|
|
62
|
+
* target value is parsed using [func@GLib.Variant.parse]. If a tuple-typed
|
|
63
|
+
* value is desired, it must be specified in the same way, resulting in
|
|
64
|
+
* two sets of parens, for example: `app.action((1,2,3))`. A string
|
|
65
|
+
* target can be specified this way as well: `app.action('target')`.
|
|
66
|
+
* For strings, this third format must be used if target value is
|
|
67
|
+
* empty or contains characters other than alphanumerics, `-` and `.`.
|
|
68
|
+
*
|
|
69
|
+
* If this function returns `TRUE`, a non-`NULL` value is guaranteed to be returned
|
|
70
|
+
* in `action_name` (if a pointer is passed in). A `NULL` value may still be
|
|
71
|
+
* returned in @target_value, as the `detailed_name` may not contain a target.
|
|
72
|
+
*
|
|
73
|
+
* If returned, the [type@GLib.Variant] in `target_value` is guaranteed to not be floating.
|
|
74
|
+
* @param detailedName - a detailed action name
|
|
75
|
+
* @param actionName - the action name
|
|
76
|
+
* @param targetValue - the target value,
|
|
77
|
+
*/
|
|
33
78
|
export const actionParseDetailedName = (detailedName, actionName, targetValue) => {
|
|
34
79
|
const error = { value: null };
|
|
35
80
|
const result = call("libgio-2.0.so.0", "g_action_parse_detailed_name", [
|
|
@@ -71,6 +116,19 @@ export const actionParseDetailedName = (detailedName, actionName, targetValue) =
|
|
|
71
116
|
}
|
|
72
117
|
return result;
|
|
73
118
|
};
|
|
119
|
+
/**
|
|
120
|
+
* Formats a detailed action name from `action_name` and @target_value.
|
|
121
|
+
*
|
|
122
|
+
* It is an error to call this function with an invalid action name.
|
|
123
|
+
*
|
|
124
|
+
* This function is the opposite of [func@Gio.Action.parse_detailed_name].
|
|
125
|
+
* It will produce a string that can be parsed back to the `action_name` and `target_value` by that function.
|
|
126
|
+
*
|
|
127
|
+
* See that function for the types of strings that will be printed by
|
|
128
|
+
* this function.
|
|
129
|
+
* @param actionName - a valid action name
|
|
130
|
+
* @param targetValue - a [type@GLib.Variant] target value, or `NULL`
|
|
131
|
+
*/
|
|
74
132
|
export const actionPrintDetailedName = (actionName, targetValue) => {
|
|
75
133
|
return call("libgio-2.0.so.0", "g_action_print_detailed_name", [
|
|
76
134
|
{
|
|
@@ -89,6 +147,20 @@ export const actionPrintDetailedName = (actionName, targetValue) => {
|
|
|
89
147
|
},
|
|
90
148
|
], { type: "string" });
|
|
91
149
|
};
|
|
150
|
+
/**
|
|
151
|
+
* Creates a new [iface@Gio.AppInfo] from the given information.
|
|
152
|
+
*
|
|
153
|
+
* Note that for @commandline, the quoting rules of the `Exec` key of the
|
|
154
|
+
* [freedesktop.org Desktop Entry Specification](http://freedesktop.org/Standards/desktop-entry-spec)
|
|
155
|
+
* are applied. For example, if the `commandline` contains
|
|
156
|
+
* percent-encoded URIs, the percent-character must be doubled in order to prevent it from
|
|
157
|
+
* being swallowed by `Exec` key unquoting. See
|
|
158
|
+
* the specification
|
|
159
|
+
* for exact quoting rules.
|
|
160
|
+
* @param commandline - the command line to use
|
|
161
|
+
* @param applicationName - the application name, or `NULL` to use @commandline
|
|
162
|
+
* @param flags - flags that can specify details of the created [iface@Gio.AppInfo]
|
|
163
|
+
*/
|
|
92
164
|
export const appInfoCreateFromCommandline = (commandline, flags, applicationName) => {
|
|
93
165
|
const error = { value: null };
|
|
94
166
|
const ptr = call("libgio-2.0.so.0", "g_app_info_create_from_commandline", [
|
|
@@ -122,6 +194,21 @@ export const appInfoCreateFromCommandline = (commandline, flags, applicationName
|
|
|
122
194
|
}
|
|
123
195
|
return getObject(ptr, AppInfo);
|
|
124
196
|
};
|
|
197
|
+
/**
|
|
198
|
+
* Gets a list of all of the applications currently registered
|
|
199
|
+
* on this system.
|
|
200
|
+
*
|
|
201
|
+
* For desktop files, this includes applications that have
|
|
202
|
+
* `NoDisplay=true`
|
|
203
|
+
* set or are excluded from display by means of
|
|
204
|
+
* `OnlyShowIn`
|
|
205
|
+
* or `NotShowIn`.
|
|
206
|
+
* See [method@Gio.AppInfo.should_show].
|
|
207
|
+
*
|
|
208
|
+
* The returned list does not include applications which have the
|
|
209
|
+
* `Hidden` key
|
|
210
|
+
* set.
|
|
211
|
+
*/
|
|
125
212
|
export const appInfoGetAll = () => {
|
|
126
213
|
return call("libgio-2.0.so.0", "g_app_info_get_all", [], {
|
|
127
214
|
type: "array",
|
|
@@ -130,6 +217,13 @@ export const appInfoGetAll = () => {
|
|
|
130
217
|
borrowed: true,
|
|
131
218
|
});
|
|
132
219
|
};
|
|
220
|
+
/**
|
|
221
|
+
* Gets a list of all [iface@Gio.AppInfo]s for a given content type,
|
|
222
|
+
* including the recommended and fallback [iface@Gio.AppInfo]s. See
|
|
223
|
+
* [func@Gio.AppInfo.get_recommended_for_type] and
|
|
224
|
+
* [func@Gio.AppInfo.get_fallback_for_type].
|
|
225
|
+
* @param contentType - the content type to find a [iface@Gio.AppInfo] for
|
|
226
|
+
*/
|
|
133
227
|
export const appInfoGetAllForType = (contentType) => {
|
|
134
228
|
return call("libgio-2.0.so.0", "g_app_info_get_all_for_type", [
|
|
135
229
|
{
|
|
@@ -143,6 +237,11 @@ export const appInfoGetAllForType = (contentType) => {
|
|
|
143
237
|
borrowed: true,
|
|
144
238
|
});
|
|
145
239
|
};
|
|
240
|
+
/**
|
|
241
|
+
* Gets the default [iface@Gio.AppInfo] for a given content type.
|
|
242
|
+
* @param contentType - the content type to find a [iface@Gio.AppInfo] for
|
|
243
|
+
* @param mustSupportUris - if `TRUE`, the [iface@Gio.AppInfo] is expected to
|
|
244
|
+
*/
|
|
146
245
|
export const appInfoGetDefaultForType = (contentType, mustSupportUris) => {
|
|
147
246
|
const ptr = call("libgio-2.0.so.0", "g_app_info_get_default_for_type", [
|
|
148
247
|
{
|
|
@@ -158,6 +257,15 @@ export const appInfoGetDefaultForType = (contentType, mustSupportUris) => {
|
|
|
158
257
|
return null;
|
|
159
258
|
return getObject(ptr, AppInfo);
|
|
160
259
|
};
|
|
260
|
+
/**
|
|
261
|
+
* Asynchronously gets the default [iface@Gio.AppInfo] for a given content
|
|
262
|
+
* type.
|
|
263
|
+
* @param contentType - the content type to find a [iface@Gio.AppInfo] for
|
|
264
|
+
* @param mustSupportUris - if `TRUE`, the [iface@Gio.AppInfo] is expected to
|
|
265
|
+
* @param cancellable - a [class@Gio.Cancellable]
|
|
266
|
+
* @param callback - a [type@Gio.AsyncReadyCallback] to call
|
|
267
|
+
* @param userData - data to pass to @callback
|
|
268
|
+
*/
|
|
161
269
|
export const appInfoGetDefaultForTypeAsync = (contentType, mustSupportUris, cancellable, callback, userData) => {
|
|
162
270
|
call("libgio-2.0.so.0", "g_app_info_get_default_for_type_async", [
|
|
163
271
|
{
|
|
@@ -185,6 +293,14 @@ export const appInfoGetDefaultForTypeAsync = (contentType, mustSupportUris, canc
|
|
|
185
293
|
},
|
|
186
294
|
], { type: "undefined" });
|
|
187
295
|
};
|
|
296
|
+
/**
|
|
297
|
+
* Finishes a default [iface@Gio.AppInfo] lookup started by
|
|
298
|
+
* [func@Gio.AppInfo.get_default_for_type_async].
|
|
299
|
+
*
|
|
300
|
+
* If no #[iface@Gio.AppInfo] is found, then `error` will be set to
|
|
301
|
+
* [error@Gio.IOErrorEnum.NOT_FOUND].
|
|
302
|
+
* @param result - the async result
|
|
303
|
+
*/
|
|
188
304
|
export const appInfoGetDefaultForTypeFinish = (result) => {
|
|
189
305
|
const error = { value: null };
|
|
190
306
|
const ptr = call("libgio-2.0.so.0", "g_app_info_get_default_for_type_finish", [
|
|
@@ -209,6 +325,13 @@ export const appInfoGetDefaultForTypeFinish = (result) => {
|
|
|
209
325
|
}
|
|
210
326
|
return getObject(ptr, AppInfo);
|
|
211
327
|
};
|
|
328
|
+
/**
|
|
329
|
+
* Gets the default application for handling URIs with the given URI scheme.
|
|
330
|
+
*
|
|
331
|
+
* A URI scheme is the initial part of the URI, up to but not including the `:`.
|
|
332
|
+
* For example, `http`, `ftp` or `sip`.
|
|
333
|
+
* @param uriScheme - a string containing a URI scheme.
|
|
334
|
+
*/
|
|
212
335
|
export const appInfoGetDefaultForUriScheme = (uriScheme) => {
|
|
213
336
|
const ptr = call("libgio-2.0.so.0", "g_app_info_get_default_for_uri_scheme", [
|
|
214
337
|
{
|
|
@@ -220,6 +343,16 @@ export const appInfoGetDefaultForUriScheme = (uriScheme) => {
|
|
|
220
343
|
return null;
|
|
221
344
|
return getObject(ptr, AppInfo);
|
|
222
345
|
};
|
|
346
|
+
/**
|
|
347
|
+
* Asynchronously gets the default application for handling URIs with
|
|
348
|
+
* the given URI scheme. A URI scheme is the initial part
|
|
349
|
+
* of the URI, up to but not including the `:`, e.g. `http`,
|
|
350
|
+
* `ftp` or `sip`.
|
|
351
|
+
* @param uriScheme - a string containing a URI scheme.
|
|
352
|
+
* @param cancellable - a [class@Gio.Cancellable]
|
|
353
|
+
* @param callback - a [type@Gio.AsyncReadyCallback] to call
|
|
354
|
+
* @param userData - data to pass to @callback
|
|
355
|
+
*/
|
|
223
356
|
export const appInfoGetDefaultForUriSchemeAsync = (uriScheme, cancellable, callback, userData) => {
|
|
224
357
|
call("libgio-2.0.so.0", "g_app_info_get_default_for_uri_scheme_async", [
|
|
225
358
|
{
|
|
@@ -243,6 +376,14 @@ export const appInfoGetDefaultForUriSchemeAsync = (uriScheme, cancellable, callb
|
|
|
243
376
|
},
|
|
244
377
|
], { type: "undefined" });
|
|
245
378
|
};
|
|
379
|
+
/**
|
|
380
|
+
* Finishes a default [iface@Gio.AppInfo] lookup started by
|
|
381
|
+
* [func@Gio.AppInfo.get_default_for_uri_scheme_async].
|
|
382
|
+
*
|
|
383
|
+
* If no [iface@Gio.AppInfo] is found, then `error` will be set to
|
|
384
|
+
* [error@Gio.IOErrorEnum.NOT_FOUND].
|
|
385
|
+
* @param result - the async result
|
|
386
|
+
*/
|
|
246
387
|
export const appInfoGetDefaultForUriSchemeFinish = (result) => {
|
|
247
388
|
const error = { value: null };
|
|
248
389
|
const ptr = call("libgio-2.0.so.0", "g_app_info_get_default_for_uri_scheme_finish", [
|
|
@@ -267,6 +408,12 @@ export const appInfoGetDefaultForUriSchemeFinish = (result) => {
|
|
|
267
408
|
}
|
|
268
409
|
return getObject(ptr, AppInfo);
|
|
269
410
|
};
|
|
411
|
+
/**
|
|
412
|
+
* Gets a list of fallback [iface@Gio.AppInfo]s for a given content type, i.e.
|
|
413
|
+
* those applications which claim to support the given content type by MIME
|
|
414
|
+
* type subclassing and not directly.
|
|
415
|
+
* @param contentType - the content type to find a [iface@Gio.AppInfo] for
|
|
416
|
+
*/
|
|
270
417
|
export const appInfoGetFallbackForType = (contentType) => {
|
|
271
418
|
return call("libgio-2.0.so.0", "g_app_info_get_fallback_for_type", [
|
|
272
419
|
{
|
|
@@ -280,6 +427,16 @@ export const appInfoGetFallbackForType = (contentType) => {
|
|
|
280
427
|
borrowed: true,
|
|
281
428
|
});
|
|
282
429
|
};
|
|
430
|
+
/**
|
|
431
|
+
* Gets a list of recommended [iface@Gio.AppInfo]s for a given content type,
|
|
432
|
+
* i.e. those applications which claim to support the given content type
|
|
433
|
+
* exactly, and not by MIME type subclassing.
|
|
434
|
+
*
|
|
435
|
+
* Note that the first application of the list is the last used one, i.e.
|
|
436
|
+
* the last one for which [method@Gio.AppInfo.set_as_last_used_for_type] has
|
|
437
|
+
* been called.
|
|
438
|
+
* @param contentType - the content type to find a [iface@Gio.AppInfo] for
|
|
439
|
+
*/
|
|
283
440
|
export const appInfoGetRecommendedForType = (contentType) => {
|
|
284
441
|
return call("libgio-2.0.so.0", "g_app_info_get_recommended_for_type", [
|
|
285
442
|
{
|
|
@@ -293,6 +450,17 @@ export const appInfoGetRecommendedForType = (contentType) => {
|
|
|
293
450
|
borrowed: true,
|
|
294
451
|
});
|
|
295
452
|
};
|
|
453
|
+
/**
|
|
454
|
+
* Utility function that launches the default application registered to handle
|
|
455
|
+
* the specified uri. Synchronous I/O is done on the uri to detect the type of
|
|
456
|
+
* the file if required.
|
|
457
|
+
*
|
|
458
|
+
* The D-Bus–activated applications don’t have to be started if your application
|
|
459
|
+
* terminates too soon after this function. To prevent this, use
|
|
460
|
+
* [func@Gio.AppInfo.launch_default_for_uri_async] instead.
|
|
461
|
+
* @param uri - the uri to show
|
|
462
|
+
* @param context - optional launch context
|
|
463
|
+
*/
|
|
296
464
|
export const appInfoLaunchDefaultForUri = (uri, context) => {
|
|
297
465
|
const error = { value: null };
|
|
298
466
|
const result = call("libgio-2.0.so.0", "g_app_info_launch_default_for_uri", [
|
|
@@ -322,6 +490,22 @@ export const appInfoLaunchDefaultForUri = (uri, context) => {
|
|
|
322
490
|
}
|
|
323
491
|
return result;
|
|
324
492
|
};
|
|
493
|
+
/**
|
|
494
|
+
* Async version of [func@Gio.AppInfo.launch_default_for_uri].
|
|
495
|
+
*
|
|
496
|
+
* This version is useful if you are interested in receiving error information
|
|
497
|
+
* in the case where the application is sandboxed and the portal may present an
|
|
498
|
+
* application chooser dialog to the user.
|
|
499
|
+
*
|
|
500
|
+
* This is also useful if you want to be sure that the D-Bus–activated
|
|
501
|
+
* applications are really started before termination and if you are interested
|
|
502
|
+
* in receiving error information from their activation.
|
|
503
|
+
* @param uri - the uri to show
|
|
504
|
+
* @param context - optional launch context
|
|
505
|
+
* @param cancellable - a [class@Gio.Cancellable]
|
|
506
|
+
* @param callback - a [type@Gio.AsyncReadyCallback] to call
|
|
507
|
+
* @param userData - data to pass to @callback
|
|
508
|
+
*/
|
|
325
509
|
export const appInfoLaunchDefaultForUriAsync = (uri, context, cancellable, callback, userData) => {
|
|
326
510
|
call("libgio-2.0.so.0", "g_app_info_launch_default_for_uri_async", [
|
|
327
511
|
{
|
|
@@ -350,6 +534,10 @@ export const appInfoLaunchDefaultForUriAsync = (uri, context, cancellable, callb
|
|
|
350
534
|
},
|
|
351
535
|
], { type: "undefined" });
|
|
352
536
|
};
|
|
537
|
+
/**
|
|
538
|
+
* Finishes an asynchronous launch-default-for-uri operation.
|
|
539
|
+
* @param result - the async result
|
|
540
|
+
*/
|
|
353
541
|
export const appInfoLaunchDefaultForUriFinish = (result) => {
|
|
354
542
|
const error = { value: null };
|
|
355
543
|
const _result = call("libgio-2.0.so.0", "g_app_info_launch_default_for_uri_finish", [
|
|
@@ -374,6 +562,14 @@ export const appInfoLaunchDefaultForUriFinish = (result) => {
|
|
|
374
562
|
}
|
|
375
563
|
return _result;
|
|
376
564
|
};
|
|
565
|
+
/**
|
|
566
|
+
* Removes all changes to the type associations done by
|
|
567
|
+
* [method@Gio.AppInfo.set_as_default_for_type],
|
|
568
|
+
* [method@Gio.AppInfo.set_as_default_for_extension],
|
|
569
|
+
* [method@Gio.AppInfo.add_supports_type] or
|
|
570
|
+
* [method@Gio.AppInfo.remove_supports_type].
|
|
571
|
+
* @param contentType - a content type
|
|
572
|
+
*/
|
|
377
573
|
export const appInfoResetTypeAssociations = (contentType) => {
|
|
378
574
|
call("libgio-2.0.so.0", "g_app_info_reset_type_associations", [
|
|
379
575
|
{
|
|
@@ -382,6 +578,21 @@ export const appInfoResetTypeAssociations = (contentType) => {
|
|
|
382
578
|
},
|
|
383
579
|
], { type: "undefined" });
|
|
384
580
|
};
|
|
581
|
+
/**
|
|
582
|
+
* Helper function for constructing #GAsyncInitable object. This is
|
|
583
|
+
* similar to g_object_newv() but also initializes the object asynchronously.
|
|
584
|
+
*
|
|
585
|
+
* When the initialization is finished, `callback` will be called. You can
|
|
586
|
+
* then call g_async_initable_new_finish() to get the new object and check
|
|
587
|
+
* for any errors.
|
|
588
|
+
* @param objectType - a #GType supporting #GAsyncInitable.
|
|
589
|
+
* @param nParameters - the number of parameters in @parameters
|
|
590
|
+
* @param parameters - the parameters to use to construct the object
|
|
591
|
+
* @param ioPriority - the I/O priority of the operation
|
|
592
|
+
* @param cancellable - optional #GCancellable object, %NULL to ignore.
|
|
593
|
+
* @param callback - a #GAsyncReadyCallback to call when the initialization is
|
|
594
|
+
* @param userData - the data to pass to callback function
|
|
595
|
+
*/
|
|
385
596
|
export const asyncInitableNewvAsync = (objectType, nParameters, parameters, ioPriority, cancellable, callback, userData) => {
|
|
386
597
|
call("libgio-2.0.so.0", "g_async_initable_newv_async", [
|
|
387
598
|
{
|
|
@@ -417,6 +628,19 @@ export const asyncInitableNewvAsync = (objectType, nParameters, parameters, ioPr
|
|
|
417
628
|
},
|
|
418
629
|
], { type: "undefined" });
|
|
419
630
|
};
|
|
631
|
+
/**
|
|
632
|
+
* Asynchronously connects to the message bus specified by @bus_type.
|
|
633
|
+
*
|
|
634
|
+
* When the operation is finished, `callback` will be invoked. You can
|
|
635
|
+
* then call g_bus_get_finish() to get the result of the operation.
|
|
636
|
+
*
|
|
637
|
+
* This is an asynchronous failable function. See g_bus_get_sync() for
|
|
638
|
+
* the synchronous version.
|
|
639
|
+
* @param busType - a #GBusType
|
|
640
|
+
* @param cancellable - a #GCancellable or %NULL
|
|
641
|
+
* @param callback - a #GAsyncReadyCallback to call when the request is satisfied
|
|
642
|
+
* @param userData - the data to pass to @callback
|
|
643
|
+
*/
|
|
420
644
|
export const busGet = (busType, cancellable, callback, userData) => {
|
|
421
645
|
call("libgio-2.0.so.0", "g_bus_get", [
|
|
422
646
|
{
|
|
@@ -440,6 +664,21 @@ export const busGet = (busType, cancellable, callback, userData) => {
|
|
|
440
664
|
},
|
|
441
665
|
], { type: "undefined" });
|
|
442
666
|
};
|
|
667
|
+
/**
|
|
668
|
+
* Finishes an operation started with g_bus_get().
|
|
669
|
+
*
|
|
670
|
+
* The returned object is a singleton, that is, shared with other
|
|
671
|
+
* callers of g_bus_get() and g_bus_get_sync() for @bus_type. In the
|
|
672
|
+
* event that you need a private message bus connection, use
|
|
673
|
+
* g_dbus_address_get_for_bus_sync() and
|
|
674
|
+
* g_dbus_connection_new_for_address() with
|
|
675
|
+
* G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_CLIENT and
|
|
676
|
+
* G_DBUS_CONNECTION_FLAGS_MESSAGE_BUS_CONNECTION flags.
|
|
677
|
+
*
|
|
678
|
+
* Note that the returned #GDBusConnection object will (usually) have
|
|
679
|
+
* the #GDBusConnection:exit-on-close property set to %TRUE.
|
|
680
|
+
* @param res - a #GAsyncResult obtained from the #GAsyncReadyCallback passed
|
|
681
|
+
*/
|
|
443
682
|
export const busGetFinish = (res) => {
|
|
444
683
|
const error = { value: null };
|
|
445
684
|
const ptr = call("libgio-2.0.so.0", "g_bus_get_finish", [
|
|
@@ -464,6 +703,28 @@ export const busGetFinish = (res) => {
|
|
|
464
703
|
}
|
|
465
704
|
return getObject(ptr, DBusConnection);
|
|
466
705
|
};
|
|
706
|
+
/**
|
|
707
|
+
* Synchronously connects to the message bus specified by @bus_type.
|
|
708
|
+
* Note that the returned object may shared with other callers,
|
|
709
|
+
* e.g. if two separate parts of a process calls this function with
|
|
710
|
+
* the same @bus_type, they will share the same object.
|
|
711
|
+
*
|
|
712
|
+
* This is a synchronous failable function. See g_bus_get() and
|
|
713
|
+
* g_bus_get_finish() for the asynchronous version.
|
|
714
|
+
*
|
|
715
|
+
* The returned object is a singleton, that is, shared with other
|
|
716
|
+
* callers of g_bus_get() and g_bus_get_sync() for @bus_type. In the
|
|
717
|
+
* event that you need a private message bus connection, use
|
|
718
|
+
* g_dbus_address_get_for_bus_sync() and
|
|
719
|
+
* g_dbus_connection_new_for_address() with
|
|
720
|
+
* G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_CLIENT and
|
|
721
|
+
* G_DBUS_CONNECTION_FLAGS_MESSAGE_BUS_CONNECTION flags.
|
|
722
|
+
*
|
|
723
|
+
* Note that the returned #GDBusConnection object will (usually) have
|
|
724
|
+
* the #GDBusConnection:exit-on-close property set to %TRUE.
|
|
725
|
+
* @param busType - a #GBusType
|
|
726
|
+
* @param cancellable - a #GCancellable or %NULL
|
|
727
|
+
*/
|
|
467
728
|
export const busGetSync = (busType, cancellable) => {
|
|
468
729
|
const error = { value: null };
|
|
469
730
|
const ptr = call("libgio-2.0.so.0", "g_bus_get_sync", [
|
|
@@ -493,6 +754,64 @@ export const busGetSync = (busType, cancellable) => {
|
|
|
493
754
|
}
|
|
494
755
|
return getObject(ptr, DBusConnection);
|
|
495
756
|
};
|
|
757
|
+
/**
|
|
758
|
+
* Requests ownership of `name` on the bus specified by @bus_type.
|
|
759
|
+
*
|
|
760
|
+
* It asynchronously calls `name_acquired_handler` and `name_lost_handler` when
|
|
761
|
+
* the name is acquired and lost, respectively.
|
|
762
|
+
*
|
|
763
|
+
* Callbacks will be invoked in the thread-default
|
|
764
|
+
* main context (see [method@GLib.MainContext.push_thread_default])
|
|
765
|
+
* of the thread you are calling this function from.
|
|
766
|
+
*
|
|
767
|
+
* You are guaranteed that one of the `name_acquired_handler` and `name_lost_handler` callbacks will be invoked after calling this function — there are three
|
|
768
|
+
* possible cases:
|
|
769
|
+
*
|
|
770
|
+
* - `name_lost_handler` with a `NULL` connection (if a connection to the bus
|
|
771
|
+
* can’t be made).
|
|
772
|
+
* - `bus_acquired_handler` then `name_lost_handler` (if the name can’t be
|
|
773
|
+
* obtained).
|
|
774
|
+
* - `bus_acquired_handler` then `name_acquired_handler` (if the name was
|
|
775
|
+
* obtained).
|
|
776
|
+
*
|
|
777
|
+
* When you are done owning the name, call [func@Gio.bus_unown_name] with the
|
|
778
|
+
* owner ID this function returns.
|
|
779
|
+
*
|
|
780
|
+
* If the name is acquired or lost (for example another application
|
|
781
|
+
* could acquire the name if you allow replacement or the application
|
|
782
|
+
* currently owning the name exits), the handlers are also invoked.
|
|
783
|
+
* If the [class@Gio.DBusConnection] that is used for attempting to own the name
|
|
784
|
+
* closes, then `name_lost_handler` is invoked since it is no longer
|
|
785
|
+
* possible for other processes to access the process.
|
|
786
|
+
*
|
|
787
|
+
* You cannot use [func@Gio.bus_own_name] several times for the same name (unless
|
|
788
|
+
* interleaved with calls to [func@Gio.bus_unown_name]) — only the first call
|
|
789
|
+
* will work.
|
|
790
|
+
*
|
|
791
|
+
* Another guarantee is that invocations of `name_acquired_handler` and `name_lost_handler` are guaranteed to alternate; that
|
|
792
|
+
* is, if `name_acquired_handler` is invoked then you are
|
|
793
|
+
* guaranteed that the next time one of the handlers is invoked, it
|
|
794
|
+
* will be @name_lost_handler. The reverse is also true.
|
|
795
|
+
*
|
|
796
|
+
* If you plan on exporting objects (using, for example,
|
|
797
|
+
* [method@Gio.DBusConnection.register_object]), note that it is generally too late
|
|
798
|
+
* to export the objects in @name_acquired_handler. Instead, you can do this
|
|
799
|
+
* in `bus_acquired_handler` since you are guaranteed that this will run
|
|
800
|
+
* before `name` is requested from the bus.
|
|
801
|
+
*
|
|
802
|
+
* This behavior makes it very simple to write applications that want
|
|
803
|
+
* to own names and export objects.
|
|
804
|
+
* Simply register objects to be exported in `bus_acquired_handler` and
|
|
805
|
+
* unregister the objects (if any) in @name_lost_handler.
|
|
806
|
+
* @param busType - the type of bus to own a name on
|
|
807
|
+
* @param name - the well-known name to own
|
|
808
|
+
* @param flags - a set of flags with ownership options
|
|
809
|
+
* @param busAcquiredHandler - handler to invoke when
|
|
810
|
+
* @param nameAcquiredHandler - handler to invoke when
|
|
811
|
+
* @param nameLostHandler - handler to invoke when `name` is lost, or `NULL` to ignore
|
|
812
|
+
* @param userData - user data to pass to handlers
|
|
813
|
+
* @param userDataFreeFunc - function for freeing @user_data
|
|
814
|
+
*/
|
|
496
815
|
export const busOwnName = (busType, name, flags, busAcquiredHandler, nameAcquiredHandler, nameLostHandler, userData, userDataFreeFunc) => {
|
|
497
816
|
return call("libgio-2.0.so.0", "g_bus_own_name", [
|
|
498
817
|
{
|
|
@@ -534,6 +853,17 @@ export const busOwnName = (busType, name, flags, busAcquiredHandler, nameAcquire
|
|
|
534
853
|
},
|
|
535
854
|
], { type: "int", size: 32, unsigned: true });
|
|
536
855
|
};
|
|
856
|
+
/**
|
|
857
|
+
* Like [func@Gio.bus_own_name] but takes a [class@Gio.DBusConnection] instead
|
|
858
|
+
* of a [enum@Gio.BusType].
|
|
859
|
+
* @param connection - a bus connection
|
|
860
|
+
* @param name - the well-known name to own
|
|
861
|
+
* @param flags - a set of flags with ownership options
|
|
862
|
+
* @param nameAcquiredHandler - handler to invoke when
|
|
863
|
+
* @param nameLostHandler - handler to invoke when `name` is lost, or `NULL` to ignore
|
|
864
|
+
* @param userData - user data to pass to handlers
|
|
865
|
+
* @param userDataFreeFunc - function for freeing @user_data
|
|
866
|
+
*/
|
|
537
867
|
export const busOwnNameOnConnection = (connection, name, flags, nameAcquiredHandler, nameLostHandler, userData, userDataFreeFunc) => {
|
|
538
868
|
return call("libgio-2.0.so.0", "g_bus_own_name_on_connection", [
|
|
539
869
|
{
|
|
@@ -570,6 +900,15 @@ export const busOwnNameOnConnection = (connection, name, flags, nameAcquiredHand
|
|
|
570
900
|
},
|
|
571
901
|
], { type: "int", size: 32, unsigned: true });
|
|
572
902
|
};
|
|
903
|
+
/**
|
|
904
|
+
* Version of [func@Gio.bus_own_name_on_connection] using closures instead of
|
|
905
|
+
* callbacks for easier binding in other languages.
|
|
906
|
+
* @param connection - a bus connection
|
|
907
|
+
* @param name - the well-known name to own
|
|
908
|
+
* @param flags - a set of flags with ownership options
|
|
909
|
+
* @param nameAcquiredClosure - closure to invoke when `name` is
|
|
910
|
+
* @param nameLostClosure - closure to invoke when `name` is lost,
|
|
911
|
+
*/
|
|
573
912
|
export const busOwnNameOnConnectionWithClosures = (connection, name, flags, nameAcquiredClosure, nameLostClosure) => {
|
|
574
913
|
return call("libgio-2.0.so.0", "g_bus_own_name_on_connection_with_closures", [
|
|
575
914
|
{
|
|
@@ -606,6 +945,16 @@ export const busOwnNameOnConnectionWithClosures = (connection, name, flags, name
|
|
|
606
945
|
},
|
|
607
946
|
], { type: "int", size: 32, unsigned: true });
|
|
608
947
|
};
|
|
948
|
+
/**
|
|
949
|
+
* Version of [func@Gio.bus_own_name using closures instead of callbacks for
|
|
950
|
+
* easier binding in other languages.
|
|
951
|
+
* @param busType - the type of bus to own a name on
|
|
952
|
+
* @param name - the well-known name to own
|
|
953
|
+
* @param flags - a set of flags with ownership options
|
|
954
|
+
* @param busAcquiredClosure - closure to invoke when connected to
|
|
955
|
+
* @param nameAcquiredClosure - closure to invoke when `name` is
|
|
956
|
+
* @param nameLostClosure - closure to invoke when `name` is lost, or
|
|
957
|
+
*/
|
|
609
958
|
export const busOwnNameWithClosures = (busType, name, flags, busAcquiredClosure, nameAcquiredClosure, nameLostClosure) => {
|
|
610
959
|
return call("libgio-2.0.so.0", "g_bus_own_name_with_closures", [
|
|
611
960
|
{
|
|
@@ -652,6 +1001,18 @@ export const busOwnNameWithClosures = (busType, name, flags, busAcquiredClosure,
|
|
|
652
1001
|
},
|
|
653
1002
|
], { type: "int", size: 32, unsigned: true });
|
|
654
1003
|
};
|
|
1004
|
+
/**
|
|
1005
|
+
* Stops owning a name.
|
|
1006
|
+
*
|
|
1007
|
+
* Note that there may still be D-Bus traffic to process (relating to owning
|
|
1008
|
+
* and unowning the name) in the current thread-default
|
|
1009
|
+
* [struct@GLib.MainContext] after this function has returned. You should
|
|
1010
|
+
* continue to iterate the [struct@GLib.MainContext] until the
|
|
1011
|
+
* [callback@GLib.DestroyNotify] function passed to [func@Gio.bus_own_name] is
|
|
1012
|
+
* called, in order to avoid memory leaks through callbacks queued on the
|
|
1013
|
+
* [struct@GLib.MainContext] after it’s stopped being iterated.
|
|
1014
|
+
* @param ownerId - an identifier obtained from [func@Gio.bus_own_name]
|
|
1015
|
+
*/
|
|
655
1016
|
export const busUnownName = (ownerId) => {
|
|
656
1017
|
call("libgio-2.0.so.0", "g_bus_unown_name", [
|
|
657
1018
|
{
|
|
@@ -660,6 +1021,17 @@ export const busUnownName = (ownerId) => {
|
|
|
660
1021
|
},
|
|
661
1022
|
], { type: "undefined" });
|
|
662
1023
|
};
|
|
1024
|
+
/**
|
|
1025
|
+
* Stops watching a name.
|
|
1026
|
+
*
|
|
1027
|
+
* Note that there may still be D-Bus traffic to process (relating to watching
|
|
1028
|
+
* and unwatching the name) in the current thread-default #GMainContext after
|
|
1029
|
+
* this function has returned. You should continue to iterate the #GMainContext
|
|
1030
|
+
* until the #GDestroyNotify function passed to g_bus_watch_name() is called, in
|
|
1031
|
+
* order to avoid memory leaks through callbacks queued on the #GMainContext
|
|
1032
|
+
* after it’s stopped being iterated.
|
|
1033
|
+
* @param watcherId - An identifier obtained from g_bus_watch_name()
|
|
1034
|
+
*/
|
|
663
1035
|
export const busUnwatchName = (watcherId) => {
|
|
664
1036
|
call("libgio-2.0.so.0", "g_bus_unwatch_name", [
|
|
665
1037
|
{
|
|
@@ -668,6 +1040,43 @@ export const busUnwatchName = (watcherId) => {
|
|
|
668
1040
|
},
|
|
669
1041
|
], { type: "undefined" });
|
|
670
1042
|
};
|
|
1043
|
+
/**
|
|
1044
|
+
* Starts watching `name` on the bus specified by `bus_type` and calls
|
|
1045
|
+
* `name_appeared_handler` and `name_vanished_handler` when the name is
|
|
1046
|
+
* known to have an owner respectively known to lose its
|
|
1047
|
+
* owner. Callbacks will be invoked in the thread-default main context
|
|
1048
|
+
* (see [method@GLib.MainContext.push_thread_default])
|
|
1049
|
+
* of the thread you are calling this function from.
|
|
1050
|
+
*
|
|
1051
|
+
* You are guaranteed that one of the handlers will be invoked after
|
|
1052
|
+
* calling this function. When you are done watching the name, just
|
|
1053
|
+
* call g_bus_unwatch_name() with the watcher id this function
|
|
1054
|
+
* returns.
|
|
1055
|
+
*
|
|
1056
|
+
* If the name vanishes or appears (for example the application owning
|
|
1057
|
+
* the name could restart), the handlers are also invoked. If the
|
|
1058
|
+
* #GDBusConnection that is used for watching the name disconnects, then
|
|
1059
|
+
* `name_vanished_handler` is invoked since it is no longer
|
|
1060
|
+
* possible to access the name.
|
|
1061
|
+
*
|
|
1062
|
+
* Another guarantee is that invocations of `name_appeared_handler` and `name_vanished_handler` are guaranteed to alternate; that
|
|
1063
|
+
* is, if `name_appeared_handler` is invoked then you are
|
|
1064
|
+
* guaranteed that the next time one of the handlers is invoked, it
|
|
1065
|
+
* will be @name_vanished_handler. The reverse is also true.
|
|
1066
|
+
*
|
|
1067
|
+
* This behavior makes it very simple to write applications that want
|
|
1068
|
+
* to take action when a certain name exists.
|
|
1069
|
+
* Basically, the application should create object proxies in
|
|
1070
|
+
* `name_appeared_handler` and destroy them again (if any) in
|
|
1071
|
+
* @name_vanished_handler.
|
|
1072
|
+
* @param busType - The type of bus to watch a name on.
|
|
1073
|
+
* @param name - The name (well-known or unique) to watch.
|
|
1074
|
+
* @param flags - Flags from the #GBusNameWatcherFlags enumeration.
|
|
1075
|
+
* @param nameAppearedHandler - Handler to invoke when
|
|
1076
|
+
* @param nameVanishedHandler - Handler to invoke when
|
|
1077
|
+
* @param userData - User data to pass to handlers.
|
|
1078
|
+
* @param userDataFreeFunc - Function for freeing `user_data` or %NULL.
|
|
1079
|
+
*/
|
|
671
1080
|
export const busWatchName = (busType, name, flags, nameAppearedHandler, nameVanishedHandler, userData, userDataFreeFunc) => {
|
|
672
1081
|
return call("libgio-2.0.so.0", "g_bus_watch_name", [
|
|
673
1082
|
{
|
|
@@ -704,6 +1113,17 @@ export const busWatchName = (busType, name, flags, nameAppearedHandler, nameVani
|
|
|
704
1113
|
},
|
|
705
1114
|
], { type: "int", size: 32, unsigned: true });
|
|
706
1115
|
};
|
|
1116
|
+
/**
|
|
1117
|
+
* Like g_bus_watch_name() but takes a #GDBusConnection instead of a
|
|
1118
|
+
* #GBusType.
|
|
1119
|
+
* @param connection - A #GDBusConnection.
|
|
1120
|
+
* @param name - The name (well-known or unique) to watch.
|
|
1121
|
+
* @param flags - Flags from the #GBusNameWatcherFlags enumeration.
|
|
1122
|
+
* @param nameAppearedHandler - Handler to invoke when
|
|
1123
|
+
* @param nameVanishedHandler - Handler to invoke when
|
|
1124
|
+
* @param userData - User data to pass to handlers.
|
|
1125
|
+
* @param userDataFreeFunc - Function for freeing `user_data` or %NULL.
|
|
1126
|
+
*/
|
|
707
1127
|
export const busWatchNameOnConnection = (connection, name, flags, nameAppearedHandler, nameVanishedHandler, userData, userDataFreeFunc) => {
|
|
708
1128
|
return call("libgio-2.0.so.0", "g_bus_watch_name_on_connection", [
|
|
709
1129
|
{
|
|
@@ -740,6 +1160,15 @@ export const busWatchNameOnConnection = (connection, name, flags, nameAppearedHa
|
|
|
740
1160
|
},
|
|
741
1161
|
], { type: "int", size: 32, unsigned: true });
|
|
742
1162
|
};
|
|
1163
|
+
/**
|
|
1164
|
+
* Version of g_bus_watch_name_on_connection() using closures instead of callbacks for
|
|
1165
|
+
* easier binding in other languages.
|
|
1166
|
+
* @param connection - A #GDBusConnection.
|
|
1167
|
+
* @param name - The name (well-known or unique) to watch.
|
|
1168
|
+
* @param flags - Flags from the #GBusNameWatcherFlags enumeration.
|
|
1169
|
+
* @param nameAppearedClosure - #GClosure to invoke when `name` is known
|
|
1170
|
+
* @param nameVanishedClosure - #GClosure to invoke when `name` is known
|
|
1171
|
+
*/
|
|
743
1172
|
export const busWatchNameOnConnectionWithClosures = (connection, name, flags, nameAppearedClosure, nameVanishedClosure) => {
|
|
744
1173
|
return call("libgio-2.0.so.0", "g_bus_watch_name_on_connection_with_closures", [
|
|
745
1174
|
{
|
|
@@ -776,6 +1205,15 @@ export const busWatchNameOnConnectionWithClosures = (connection, name, flags, na
|
|
|
776
1205
|
},
|
|
777
1206
|
], { type: "int", size: 32, unsigned: true });
|
|
778
1207
|
};
|
|
1208
|
+
/**
|
|
1209
|
+
* Version of g_bus_watch_name() using closures instead of callbacks for
|
|
1210
|
+
* easier binding in other languages.
|
|
1211
|
+
* @param busType - The type of bus to watch a name on.
|
|
1212
|
+
* @param name - The name (well-known or unique) to watch.
|
|
1213
|
+
* @param flags - Flags from the #GBusNameWatcherFlags enumeration.
|
|
1214
|
+
* @param nameAppearedClosure - #GClosure to invoke when `name` is known
|
|
1215
|
+
* @param nameVanishedClosure - #GClosure to invoke when `name` is known
|
|
1216
|
+
*/
|
|
779
1217
|
export const busWatchNameWithClosures = (busType, name, flags, nameAppearedClosure, nameVanishedClosure) => {
|
|
780
1218
|
return call("libgio-2.0.so.0", "g_bus_watch_name_with_closures", [
|
|
781
1219
|
{
|
|
@@ -812,6 +1250,11 @@ export const busWatchNameWithClosures = (busType, name, flags, nameAppearedClosu
|
|
|
812
1250
|
},
|
|
813
1251
|
], { type: "int", size: 32, unsigned: true });
|
|
814
1252
|
};
|
|
1253
|
+
/**
|
|
1254
|
+
* Checks if a content type can be executable. Note that for instance
|
|
1255
|
+
* things like text files can be executables (i.e. scripts and batch files).
|
|
1256
|
+
* @param type - a content type string
|
|
1257
|
+
*/
|
|
815
1258
|
export const contentTypeCanBeExecutable = (type) => {
|
|
816
1259
|
return call("libgio-2.0.so.0", "g_content_type_can_be_executable", [
|
|
817
1260
|
{
|
|
@@ -820,6 +1263,11 @@ export const contentTypeCanBeExecutable = (type) => {
|
|
|
820
1263
|
},
|
|
821
1264
|
], { type: "boolean" });
|
|
822
1265
|
};
|
|
1266
|
+
/**
|
|
1267
|
+
* Compares two content types for equality.
|
|
1268
|
+
* @param type1 - a content type string
|
|
1269
|
+
* @param type2 - a content type string
|
|
1270
|
+
*/
|
|
823
1271
|
export const contentTypeEquals = (type1, type2) => {
|
|
824
1272
|
return call("libgio-2.0.so.0", "g_content_type_equals", [
|
|
825
1273
|
{
|
|
@@ -832,6 +1280,10 @@ export const contentTypeEquals = (type1, type2) => {
|
|
|
832
1280
|
},
|
|
833
1281
|
], { type: "boolean" });
|
|
834
1282
|
};
|
|
1283
|
+
/**
|
|
1284
|
+
* Tries to find a content type based on the mime type name.
|
|
1285
|
+
* @param mimeType - a mime type string
|
|
1286
|
+
*/
|
|
835
1287
|
export const contentTypeFromMimeType = (mimeType) => {
|
|
836
1288
|
return call("libgio-2.0.so.0", "g_content_type_from_mime_type", [
|
|
837
1289
|
{
|
|
@@ -840,6 +1292,10 @@ export const contentTypeFromMimeType = (mimeType) => {
|
|
|
840
1292
|
},
|
|
841
1293
|
], { type: "string" });
|
|
842
1294
|
};
|
|
1295
|
+
/**
|
|
1296
|
+
* Gets the human readable description of the content type.
|
|
1297
|
+
* @param type - a content type string
|
|
1298
|
+
*/
|
|
843
1299
|
export const contentTypeGetDescription = (type) => {
|
|
844
1300
|
return call("libgio-2.0.so.0", "g_content_type_get_description", [
|
|
845
1301
|
{
|
|
@@ -848,6 +1304,14 @@ export const contentTypeGetDescription = (type) => {
|
|
|
848
1304
|
},
|
|
849
1305
|
], { type: "string" });
|
|
850
1306
|
};
|
|
1307
|
+
/**
|
|
1308
|
+
* Gets the generic icon name for a content type.
|
|
1309
|
+
*
|
|
1310
|
+
* See the
|
|
1311
|
+
* [shared-mime-info](http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec)
|
|
1312
|
+
* specification for more on the generic icon name.
|
|
1313
|
+
* @param type - a content type string
|
|
1314
|
+
*/
|
|
851
1315
|
export const contentTypeGetGenericIconName = (type) => {
|
|
852
1316
|
return call("libgio-2.0.so.0", "g_content_type_get_generic_icon_name", [
|
|
853
1317
|
{
|
|
@@ -856,6 +1320,10 @@ export const contentTypeGetGenericIconName = (type) => {
|
|
|
856
1320
|
},
|
|
857
1321
|
], { type: "string" });
|
|
858
1322
|
};
|
|
1323
|
+
/**
|
|
1324
|
+
* Gets the icon for a content type.
|
|
1325
|
+
* @param type - a content type string
|
|
1326
|
+
*/
|
|
859
1327
|
export const contentTypeGetIcon = (type) => {
|
|
860
1328
|
const ptr = call("libgio-2.0.so.0", "g_content_type_get_icon", [
|
|
861
1329
|
{
|
|
@@ -865,12 +1333,20 @@ export const contentTypeGetIcon = (type) => {
|
|
|
865
1333
|
], { type: "gobject", borrowed: true });
|
|
866
1334
|
return getObject(ptr, Icon);
|
|
867
1335
|
};
|
|
1336
|
+
/**
|
|
1337
|
+
* Get the list of directories which MIME data is loaded from. See
|
|
1338
|
+
* g_content_type_set_mime_dirs() for details.
|
|
1339
|
+
*/
|
|
868
1340
|
export const contentTypeGetMimeDirs = () => {
|
|
869
1341
|
return call("libgio-2.0.so.0", "g_content_type_get_mime_dirs", [], {
|
|
870
1342
|
type: "array",
|
|
871
1343
|
itemType: { type: "string" },
|
|
872
1344
|
});
|
|
873
1345
|
};
|
|
1346
|
+
/**
|
|
1347
|
+
* Gets the mime type for the content type, if one is registered.
|
|
1348
|
+
* @param type - a content type string
|
|
1349
|
+
*/
|
|
874
1350
|
export const contentTypeGetMimeType = (type) => {
|
|
875
1351
|
return call("libgio-2.0.so.0", "g_content_type_get_mime_type", [
|
|
876
1352
|
{
|
|
@@ -879,6 +1355,10 @@ export const contentTypeGetMimeType = (type) => {
|
|
|
879
1355
|
},
|
|
880
1356
|
], { type: "string" });
|
|
881
1357
|
};
|
|
1358
|
+
/**
|
|
1359
|
+
* Gets the symbolic icon for a content type.
|
|
1360
|
+
* @param type - a content type string
|
|
1361
|
+
*/
|
|
882
1362
|
export const contentTypeGetSymbolicIcon = (type) => {
|
|
883
1363
|
const ptr = call("libgio-2.0.so.0", "g_content_type_get_symbolic_icon", [
|
|
884
1364
|
{
|
|
@@ -888,6 +1368,15 @@ export const contentTypeGetSymbolicIcon = (type) => {
|
|
|
888
1368
|
], { type: "gobject", borrowed: true });
|
|
889
1369
|
return getObject(ptr, Icon);
|
|
890
1370
|
};
|
|
1371
|
+
/**
|
|
1372
|
+
* Guesses the content type based on example data. If the function is
|
|
1373
|
+
* uncertain, `result_uncertain` will be set to %TRUE. Either `filename` or `data` may be %NULL, in which case the guess will be based solely
|
|
1374
|
+
* on the other argument.
|
|
1375
|
+
* @param filename - a path, or %NULL
|
|
1376
|
+
* @param data - a stream of data, or %NULL
|
|
1377
|
+
* @param dataSize - the size of @data
|
|
1378
|
+
* @param resultUncertain - return location for the certainty
|
|
1379
|
+
*/
|
|
891
1380
|
export const contentTypeGuess = (dataSize, filename, data, resultUncertain) => {
|
|
892
1381
|
return call("libgio-2.0.so.0", "g_content_type_guess", [
|
|
893
1382
|
{
|
|
@@ -914,6 +1403,21 @@ export const contentTypeGuess = (dataSize, filename, data, resultUncertain) => {
|
|
|
914
1403
|
},
|
|
915
1404
|
], { type: "string" });
|
|
916
1405
|
};
|
|
1406
|
+
/**
|
|
1407
|
+
* Tries to guess the type of the tree with root @root, by
|
|
1408
|
+
* looking at the files it contains. The result is an array
|
|
1409
|
+
* of content types, with the best guess coming first.
|
|
1410
|
+
*
|
|
1411
|
+
* The types returned all have the form x-content/foo, e.g.
|
|
1412
|
+
* x-content/audio-cdda (for audio CDs) or x-content/image-dcf
|
|
1413
|
+
* (for a camera memory card). See the
|
|
1414
|
+
* [shared-mime-info](http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec)
|
|
1415
|
+
* specification for more on x-content types.
|
|
1416
|
+
*
|
|
1417
|
+
* This function is useful in the implementation of
|
|
1418
|
+
* g_mount_guess_content_type().
|
|
1419
|
+
* @param root - the root of the tree to guess a type for
|
|
1420
|
+
*/
|
|
917
1421
|
export const contentTypeGuessForTree = (root) => {
|
|
918
1422
|
return call("libgio-2.0.so.0", "g_content_type_guess_for_tree", [
|
|
919
1423
|
{
|
|
@@ -922,6 +1426,11 @@ export const contentTypeGuessForTree = (root) => {
|
|
|
922
1426
|
},
|
|
923
1427
|
], { type: "array", itemType: { type: "string" } });
|
|
924
1428
|
};
|
|
1429
|
+
/**
|
|
1430
|
+
* Determines if `type` is a subset of @supertype.
|
|
1431
|
+
* @param type - a content type string
|
|
1432
|
+
* @param supertype - a content type string
|
|
1433
|
+
*/
|
|
925
1434
|
export const contentTypeIsA = (type, supertype) => {
|
|
926
1435
|
return call("libgio-2.0.so.0", "g_content_type_is_a", [
|
|
927
1436
|
{
|
|
@@ -934,6 +1443,12 @@ export const contentTypeIsA = (type, supertype) => {
|
|
|
934
1443
|
},
|
|
935
1444
|
], { type: "boolean" });
|
|
936
1445
|
};
|
|
1446
|
+
/**
|
|
1447
|
+
* Determines if `type` is a subset of @mime_type.
|
|
1448
|
+
* Convenience wrapper around g_content_type_is_a().
|
|
1449
|
+
* @param type - a content type string
|
|
1450
|
+
* @param mimeType - a mime type string
|
|
1451
|
+
*/
|
|
937
1452
|
export const contentTypeIsMimeType = (type, mimeType) => {
|
|
938
1453
|
return call("libgio-2.0.so.0", "g_content_type_is_mime_type", [
|
|
939
1454
|
{
|
|
@@ -946,6 +1461,13 @@ export const contentTypeIsMimeType = (type, mimeType) => {
|
|
|
946
1461
|
},
|
|
947
1462
|
], { type: "boolean" });
|
|
948
1463
|
};
|
|
1464
|
+
/**
|
|
1465
|
+
* Checks if the content type is the generic "unknown" type.
|
|
1466
|
+
* On UNIX this is the "application/octet-stream" mimetype,
|
|
1467
|
+
* while on win32 it is "*" and on OSX it is a dynamic type
|
|
1468
|
+
* or octet-stream.
|
|
1469
|
+
* @param type - a content type string
|
|
1470
|
+
*/
|
|
949
1471
|
export const contentTypeIsUnknown = (type) => {
|
|
950
1472
|
return call("libgio-2.0.so.0", "g_content_type_is_unknown", [
|
|
951
1473
|
{
|
|
@@ -954,6 +1476,32 @@ export const contentTypeIsUnknown = (type) => {
|
|
|
954
1476
|
},
|
|
955
1477
|
], { type: "boolean" });
|
|
956
1478
|
};
|
|
1479
|
+
/**
|
|
1480
|
+
* Set the list of directories used by GIO to load the MIME database.
|
|
1481
|
+
* If `dirs` is %NULL, the directories used are the default:
|
|
1482
|
+
*
|
|
1483
|
+
* - the `mime` subdirectory of the directory in `$XDG_DATA_HOME`
|
|
1484
|
+
* - the `mime` subdirectory of every directory in `$XDG_DATA_DIRS`
|
|
1485
|
+
*
|
|
1486
|
+
* This function is intended to be used when writing tests that depend on
|
|
1487
|
+
* information stored in the MIME database, in order to control the data.
|
|
1488
|
+
*
|
|
1489
|
+
* Typically, in case your tests use %G_TEST_OPTION_ISOLATE_DIRS, but they
|
|
1490
|
+
* depend on the system’s MIME database, you should call this function
|
|
1491
|
+
* with `dirs` set to %NULL before calling g_test_init(), for instance:
|
|
1492
|
+
*
|
|
1493
|
+
* |[<!-- language="C" -->
|
|
1494
|
+
* // Load MIME data from the system
|
|
1495
|
+
* g_content_type_set_mime_dirs (NULL);
|
|
1496
|
+
* // Isolate the environment
|
|
1497
|
+
* g_test_init (&argc, &argv, G_TEST_OPTION_ISOLATE_DIRS, NULL);
|
|
1498
|
+
*
|
|
1499
|
+
* …
|
|
1500
|
+
*
|
|
1501
|
+
* return g_test_run ();
|
|
1502
|
+
* ]|
|
|
1503
|
+
* @param dirs - %NULL-terminated list of
|
|
1504
|
+
*/
|
|
957
1505
|
export const contentTypeSetMimeDirs = (dirs) => {
|
|
958
1506
|
call("libgio-2.0.so.0", "g_content_type_set_mime_dirs", [
|
|
959
1507
|
{
|
|
@@ -963,6 +1511,11 @@ export const contentTypeSetMimeDirs = (dirs) => {
|
|
|
963
1511
|
},
|
|
964
1512
|
], { type: "undefined" });
|
|
965
1513
|
};
|
|
1514
|
+
/**
|
|
1515
|
+
* Gets a list of strings containing all the registered content types
|
|
1516
|
+
* known to the system. The list and its data should be freed using
|
|
1517
|
+
* `g_list_free_full (list, g_free)`.
|
|
1518
|
+
*/
|
|
966
1519
|
export const contentTypesGetRegistered = () => {
|
|
967
1520
|
return call("libgio-2.0.so.0", "g_content_types_get_registered", [], {
|
|
968
1521
|
type: "array",
|
|
@@ -971,6 +1524,16 @@ export const contentTypesGetRegistered = () => {
|
|
|
971
1524
|
borrowed: true,
|
|
972
1525
|
});
|
|
973
1526
|
};
|
|
1527
|
+
/**
|
|
1528
|
+
* Escape `string` so it can appear in a D-Bus address as the value
|
|
1529
|
+
* part of a key-value pair.
|
|
1530
|
+
*
|
|
1531
|
+
* For instance, if `string` is `/run/bus-for-:0`,
|
|
1532
|
+
* this function would return `/run/bus-for-%3A0`,
|
|
1533
|
+
* which could be used in a D-Bus address like
|
|
1534
|
+
* `unix:nonce-tcp:host=127.0.0.1,port=42,noncefile=/run/bus-for-%3A0`.
|
|
1535
|
+
* @param string - an unescaped string to be included in a D-Bus address
|
|
1536
|
+
*/
|
|
974
1537
|
export const dbusAddressEscapeValue = (string) => {
|
|
975
1538
|
return call("libgio-2.0.so.0", "g_dbus_address_escape_value", [
|
|
976
1539
|
{
|
|
@@ -979,6 +1542,16 @@ export const dbusAddressEscapeValue = (string) => {
|
|
|
979
1542
|
},
|
|
980
1543
|
], { type: "string" });
|
|
981
1544
|
};
|
|
1545
|
+
/**
|
|
1546
|
+
* Synchronously looks up the D-Bus address for the well-known message
|
|
1547
|
+
* bus instance specified by @bus_type. This may involve using various
|
|
1548
|
+
* platform specific mechanisms.
|
|
1549
|
+
*
|
|
1550
|
+
* The returned address will be in the
|
|
1551
|
+
* D-Bus address format.
|
|
1552
|
+
* @param busType - a #GBusType
|
|
1553
|
+
* @param cancellable - a #GCancellable or %NULL
|
|
1554
|
+
*/
|
|
982
1555
|
export const dbusAddressGetForBusSync = (busType, cancellable) => {
|
|
983
1556
|
const error = { value: null };
|
|
984
1557
|
const result = call("libgio-2.0.so.0", "g_dbus_address_get_for_bus_sync", [
|
|
@@ -1008,6 +1581,23 @@ export const dbusAddressGetForBusSync = (busType, cancellable) => {
|
|
|
1008
1581
|
}
|
|
1009
1582
|
return result;
|
|
1010
1583
|
};
|
|
1584
|
+
/**
|
|
1585
|
+
* Asynchronously connects to an endpoint specified by `address` and
|
|
1586
|
+
* sets up the connection so it is in a state to run the client-side
|
|
1587
|
+
* of the D-Bus authentication conversation. `address` must be in the
|
|
1588
|
+
* D-Bus address format.
|
|
1589
|
+
*
|
|
1590
|
+
* When the operation is finished, `callback` will be invoked. You can
|
|
1591
|
+
* then call g_dbus_address_get_stream_finish() to get the result of
|
|
1592
|
+
* the operation.
|
|
1593
|
+
*
|
|
1594
|
+
* This is an asynchronous failable function. See
|
|
1595
|
+
* g_dbus_address_get_stream_sync() for the synchronous version.
|
|
1596
|
+
* @param address - A valid D-Bus address.
|
|
1597
|
+
* @param cancellable - A #GCancellable or %NULL.
|
|
1598
|
+
* @param callback - A #GAsyncReadyCallback to call when the request is satisfied.
|
|
1599
|
+
* @param userData - Data to pass to @callback.
|
|
1600
|
+
*/
|
|
1011
1601
|
export const dbusAddressGetStream = (address, cancellable, callback, userData) => {
|
|
1012
1602
|
call("libgio-2.0.so.0", "g_dbus_address_get_stream", [
|
|
1013
1603
|
{
|
|
@@ -1031,6 +1621,14 @@ export const dbusAddressGetStream = (address, cancellable, callback, userData) =
|
|
|
1031
1621
|
},
|
|
1032
1622
|
], { type: "undefined" });
|
|
1033
1623
|
};
|
|
1624
|
+
/**
|
|
1625
|
+
* Finishes an operation started with g_dbus_address_get_stream().
|
|
1626
|
+
*
|
|
1627
|
+
* A server is not required to set a GUID, so `out_guid` may be set to %NULL
|
|
1628
|
+
* even on success.
|
|
1629
|
+
* @param res - A #GAsyncResult obtained from the GAsyncReadyCallback passed to g_dbus_address_get_stream().
|
|
1630
|
+
* @param outGuid - %NULL or return location to store the GUID extracted from @address, if any.
|
|
1631
|
+
*/
|
|
1034
1632
|
export const dbusAddressGetStreamFinish = (res, outGuid) => {
|
|
1035
1633
|
const error = { value: null };
|
|
1036
1634
|
const ptr = call("libgio-2.0.so.0", "g_dbus_address_get_stream_finish", [
|
|
@@ -1060,6 +1658,21 @@ export const dbusAddressGetStreamFinish = (res, outGuid) => {
|
|
|
1060
1658
|
}
|
|
1061
1659
|
return getObject(ptr, IOStream);
|
|
1062
1660
|
};
|
|
1661
|
+
/**
|
|
1662
|
+
* Synchronously connects to an endpoint specified by `address` and
|
|
1663
|
+
* sets up the connection so it is in a state to run the client-side
|
|
1664
|
+
* of the D-Bus authentication conversation. `address` must be in the
|
|
1665
|
+
* D-Bus address format.
|
|
1666
|
+
*
|
|
1667
|
+
* A server is not required to set a GUID, so `out_guid` may be set to %NULL
|
|
1668
|
+
* even on success.
|
|
1669
|
+
*
|
|
1670
|
+
* This is a synchronous failable function. See
|
|
1671
|
+
* g_dbus_address_get_stream() for the asynchronous version.
|
|
1672
|
+
* @param address - A valid D-Bus address.
|
|
1673
|
+
* @param outGuid - %NULL or return location to store the GUID extracted from @address, if any.
|
|
1674
|
+
* @param cancellable - A #GCancellable or %NULL.
|
|
1675
|
+
*/
|
|
1063
1676
|
export const dbusAddressGetStreamSync = (address, outGuid, cancellable) => {
|
|
1064
1677
|
const error = { value: null };
|
|
1065
1678
|
const ptr = call("libgio-2.0.so.0", "g_dbus_address_get_stream_sync", [
|
|
@@ -1094,6 +1707,13 @@ export const dbusAddressGetStreamSync = (address, outGuid, cancellable) => {
|
|
|
1094
1707
|
}
|
|
1095
1708
|
return getObject(ptr, IOStream);
|
|
1096
1709
|
};
|
|
1710
|
+
/**
|
|
1711
|
+
* Looks up the value of an annotation.
|
|
1712
|
+
*
|
|
1713
|
+
* The cost of this function is O(n) in number of annotations.
|
|
1714
|
+
* @param annotations - A %NULL-terminated array of annotations or %NULL.
|
|
1715
|
+
* @param name - The name of the annotation to look up.
|
|
1716
|
+
*/
|
|
1097
1717
|
export const dbusAnnotationInfoLookup = (name, annotations) => {
|
|
1098
1718
|
return call("libgio-2.0.so.0", "g_dbus_annotation_info_lookup", [
|
|
1099
1719
|
{
|
|
@@ -1114,6 +1734,23 @@ export const dbusAnnotationInfoLookup = (name, annotations) => {
|
|
|
1114
1734
|
},
|
|
1115
1735
|
], { type: "string", borrowed: true });
|
|
1116
1736
|
};
|
|
1737
|
+
/**
|
|
1738
|
+
* Creates a D-Bus error name to use for @error.
|
|
1739
|
+
*
|
|
1740
|
+
* If `error` matches a registered error (see
|
|
1741
|
+
* [func@Gio.DBusError.register_error]), the corresponding D-Bus error name
|
|
1742
|
+
* will be returned.
|
|
1743
|
+
*
|
|
1744
|
+
* Otherwise the a name of the form
|
|
1745
|
+
* `org.gtk.GDBus.UnmappedGError.Quark._ESCAPED_QUARK_NAME.Code_ERROR_CODE`
|
|
1746
|
+
* will be used. This allows other GDBus applications to map the error
|
|
1747
|
+
* on the wire back to a [type@GLib.Error] using
|
|
1748
|
+
* [func@Gio.DBusError.new_for_dbus_error].
|
|
1749
|
+
*
|
|
1750
|
+
* This function is typically only used in object mappings to put a
|
|
1751
|
+
* [type@GLib.Error] on the wire. Regular applications should not use it.
|
|
1752
|
+
* @param error - an error
|
|
1753
|
+
*/
|
|
1117
1754
|
export const dbusErrorEncodeGerror = (error) => {
|
|
1118
1755
|
return call("libgio-2.0.so.0", "g_dbus_error_encode_gerror", [
|
|
1119
1756
|
{
|
|
@@ -1127,6 +1764,15 @@ export const dbusErrorEncodeGerror = (error) => {
|
|
|
1127
1764
|
},
|
|
1128
1765
|
], { type: "string" });
|
|
1129
1766
|
};
|
|
1767
|
+
/**
|
|
1768
|
+
* Gets the D-Bus error name used for @error, if any.
|
|
1769
|
+
*
|
|
1770
|
+
* This function is guaranteed to return a D-Bus error name for all
|
|
1771
|
+
* [type@GLib.Error]s returned from functions handling remote method calls
|
|
1772
|
+
* (for example, [method@Gio.DBusConnection.call_finish]) unless
|
|
1773
|
+
* [func@Gio.DBusError.strip_remote_error] has already been used on @error.
|
|
1774
|
+
* @param error - an error
|
|
1775
|
+
*/
|
|
1130
1776
|
export const dbusErrorGetRemoteError = (error) => {
|
|
1131
1777
|
return call("libgio-2.0.so.0", "g_dbus_error_get_remote_error", [
|
|
1132
1778
|
{
|
|
@@ -1140,6 +1786,12 @@ export const dbusErrorGetRemoteError = (error) => {
|
|
|
1140
1786
|
},
|
|
1141
1787
|
], { type: "string" });
|
|
1142
1788
|
};
|
|
1789
|
+
/**
|
|
1790
|
+
* Checks if `error` represents an error received via D-Bus from a remote peer.
|
|
1791
|
+
*
|
|
1792
|
+
* If so, use [func@Gio.DBusError.get_remote_error] to get the name of the error.
|
|
1793
|
+
* @param error - an error
|
|
1794
|
+
*/
|
|
1143
1795
|
export const dbusErrorIsRemoteError = (error) => {
|
|
1144
1796
|
return call("libgio-2.0.so.0", "g_dbus_error_is_remote_error", [
|
|
1145
1797
|
{
|
|
@@ -1153,6 +1805,39 @@ export const dbusErrorIsRemoteError = (error) => {
|
|
|
1153
1805
|
},
|
|
1154
1806
|
], { type: "boolean" });
|
|
1155
1807
|
};
|
|
1808
|
+
/**
|
|
1809
|
+
* Creates a [type@GLib.Error] based on the contents of `dbus_error_name` and
|
|
1810
|
+
* @dbus_error_message.
|
|
1811
|
+
*
|
|
1812
|
+
* Errors registered with [func@Gio.DBusError.register_error] will be looked
|
|
1813
|
+
* up using `dbus_error_name` and if a match is found, the error domain
|
|
1814
|
+
* and code is used. Applications can use [func@Gio.DBusError.get_remote_error]
|
|
1815
|
+
* to recover @dbus_error_name.
|
|
1816
|
+
*
|
|
1817
|
+
* If a match against a registered error is not found and the D-Bus
|
|
1818
|
+
* error name is in a form as returned by [func@Gio.DBusError.encode_gerror]
|
|
1819
|
+
* the error domain and code encoded in the name is used to
|
|
1820
|
+
* create the [type@GLib.Error]. Also, `dbus_error_name` is added to the error
|
|
1821
|
+
* message such that it can be recovered with
|
|
1822
|
+
* [func@Gio.DBusError.get_remote_error].
|
|
1823
|
+
*
|
|
1824
|
+
* Otherwise, a [type@GLib.Error] with the error code
|
|
1825
|
+
* [error@Gio.IOErrorEnum.DBUS_ERROR]
|
|
1826
|
+
* in the [error@Gio.IOErrorEnum] error domain is returned. Also, `dbus_error_name` is
|
|
1827
|
+
* added to the error message such that it can be recovered with
|
|
1828
|
+
* [func@Gio.DBusError.get_remote_error].
|
|
1829
|
+
*
|
|
1830
|
+
* In all three cases, `dbus_error_name` can always be recovered from the
|
|
1831
|
+
* returned [type@GLib.Error] using the [func@Gio.DBusError.get_remote_error]
|
|
1832
|
+
* function (unless [func@Gio.DBusError.strip_remote_error] hasn’t been used on
|
|
1833
|
+
* the returned error).
|
|
1834
|
+
*
|
|
1835
|
+
* This function is typically only used in object mappings to prepare
|
|
1836
|
+
* [type@GLib.Error] instances for applications. Regular applications should not
|
|
1837
|
+
* use it.
|
|
1838
|
+
* @param dbusErrorName - D-Bus error name
|
|
1839
|
+
* @param dbusErrorMessage - D-Bus error message
|
|
1840
|
+
*/
|
|
1156
1841
|
export const dbusErrorNewForDbusError = (dbusErrorName, dbusErrorMessage) => {
|
|
1157
1842
|
const ptr = call("libgio-2.0.so.0", "g_dbus_error_new_for_dbus_error", [
|
|
1158
1843
|
{
|
|
@@ -1178,6 +1863,16 @@ export const dbusErrorQuark = () => {
|
|
|
1178
1863
|
unsigned: true,
|
|
1179
1864
|
});
|
|
1180
1865
|
};
|
|
1866
|
+
/**
|
|
1867
|
+
* Creates an association mapping between `dbus_error_name` and
|
|
1868
|
+
* [type@GLib.Error]s specified by `error_domain` and @error_code.
|
|
1869
|
+
*
|
|
1870
|
+
* This is typically done in the function that returns the [type@GLib.Quark] for
|
|
1871
|
+
* an error domain.
|
|
1872
|
+
* @param errorDomain - a [type@GLib.Quark] for an error domain
|
|
1873
|
+
* @param errorCode - an error code
|
|
1874
|
+
* @param dbusErrorName - a D-Bus error name
|
|
1875
|
+
*/
|
|
1181
1876
|
export const dbusErrorRegisterError = (errorDomain, errorCode, dbusErrorName) => {
|
|
1182
1877
|
return call("libgio-2.0.so.0", "g_dbus_error_register_error", [
|
|
1183
1878
|
{
|
|
@@ -1194,6 +1889,17 @@ export const dbusErrorRegisterError = (errorDomain, errorCode, dbusErrorName) =>
|
|
|
1194
1889
|
},
|
|
1195
1890
|
], { type: "boolean" });
|
|
1196
1891
|
};
|
|
1892
|
+
/**
|
|
1893
|
+
* Helper function for associating a [type@GLib.Error] error domain with D-Bus
|
|
1894
|
+
* error names.
|
|
1895
|
+
*
|
|
1896
|
+
* While `quark_volatile` has a `volatile` qualifier, this is a historical
|
|
1897
|
+
* artifact and the argument passed to it should not be `volatile`.
|
|
1898
|
+
* @param errorDomainQuarkName - the error domain name
|
|
1899
|
+
* @param quarkVolatile - return location for the [type@GLib.Quark] representing the
|
|
1900
|
+
* @param entries - items to register
|
|
1901
|
+
* @param numEntries - number of items to register
|
|
1902
|
+
*/
|
|
1197
1903
|
export const dbusErrorRegisterErrorDomain = (errorDomainQuarkName, quarkVolatile, entries, numEntries) => {
|
|
1198
1904
|
call("libgio-2.0.so.0", "g_dbus_error_register_error_domain", [
|
|
1199
1905
|
{
|
|
@@ -1217,6 +1923,17 @@ export const dbusErrorRegisterErrorDomain = (errorDomainQuarkName, quarkVolatile
|
|
|
1217
1923
|
},
|
|
1218
1924
|
], { type: "undefined" });
|
|
1219
1925
|
};
|
|
1926
|
+
/**
|
|
1927
|
+
* Looks for extra information in the error message used to recover
|
|
1928
|
+
* the D-Bus error name and strips it if found.
|
|
1929
|
+
*
|
|
1930
|
+
* If stripped, the
|
|
1931
|
+
* message field in `error` will correspond exactly to what was
|
|
1932
|
+
* received on the wire.
|
|
1933
|
+
*
|
|
1934
|
+
* This is typically used when presenting errors to the end user.
|
|
1935
|
+
* @param error - an error
|
|
1936
|
+
*/
|
|
1220
1937
|
export const dbusErrorStripRemoteError = (error) => {
|
|
1221
1938
|
return call("libgio-2.0.so.0", "g_dbus_error_strip_remote_error", [
|
|
1222
1939
|
{
|
|
@@ -1230,6 +1947,13 @@ export const dbusErrorStripRemoteError = (error) => {
|
|
|
1230
1947
|
},
|
|
1231
1948
|
], { type: "boolean" });
|
|
1232
1949
|
};
|
|
1950
|
+
/**
|
|
1951
|
+
* Destroys an association previously set up with
|
|
1952
|
+
* [func@Gio.DBusError.register_error].
|
|
1953
|
+
* @param errorDomain - a [type@GLib.Quark] for an error domain
|
|
1954
|
+
* @param errorCode - an error code
|
|
1955
|
+
* @param dbusErrorName - a D-Bus error name
|
|
1956
|
+
*/
|
|
1233
1957
|
export const dbusErrorUnregisterError = (errorDomain, errorCode, dbusErrorName) => {
|
|
1234
1958
|
return call("libgio-2.0.so.0", "g_dbus_error_unregister_error", [
|
|
1235
1959
|
{
|
|
@@ -1246,6 +1970,10 @@ export const dbusErrorUnregisterError = (errorDomain, errorCode, dbusErrorName)
|
|
|
1246
1970
|
},
|
|
1247
1971
|
], { type: "boolean" });
|
|
1248
1972
|
};
|
|
1973
|
+
/**
|
|
1974
|
+
* This is a language binding friendly version of g_dbus_escape_object_path_bytestring().
|
|
1975
|
+
* @param s - the string to escape
|
|
1976
|
+
*/
|
|
1249
1977
|
export const dbusEscapeObjectPath = (s) => {
|
|
1250
1978
|
return call("libgio-2.0.so.0", "g_dbus_escape_object_path", [
|
|
1251
1979
|
{
|
|
@@ -1254,6 +1982,25 @@ export const dbusEscapeObjectPath = (s) => {
|
|
|
1254
1982
|
},
|
|
1255
1983
|
], { type: "string" });
|
|
1256
1984
|
};
|
|
1985
|
+
/**
|
|
1986
|
+
* Escapes `bytes` for use in a D-Bus object path component.
|
|
1987
|
+
* `bytes` is an array of zero or more nonzero bytes in an
|
|
1988
|
+
* unspecified encoding, followed by a single zero byte.
|
|
1989
|
+
*
|
|
1990
|
+
* The escaping method consists of replacing all non-alphanumeric
|
|
1991
|
+
* characters (see g_ascii_isalnum()) with their hexadecimal value
|
|
1992
|
+
* preceded by an underscore (`_`). For example:
|
|
1993
|
+
* `foo.bar.baz` will become `foo_2ebar_2ebaz`.
|
|
1994
|
+
*
|
|
1995
|
+
* This method is appropriate to use when the input is nearly
|
|
1996
|
+
* a valid object path component but is not when your input
|
|
1997
|
+
* is far from being a valid object path component.
|
|
1998
|
+
* Other escaping algorithms are also valid to use with
|
|
1999
|
+
* D-Bus object paths.
|
|
2000
|
+
*
|
|
2001
|
+
* This can be reversed with g_dbus_unescape_object_path().
|
|
2002
|
+
* @param bytes - the string of bytes to escape
|
|
2003
|
+
*/
|
|
1257
2004
|
export const dbusEscapeObjectPathBytestring = (bytes) => {
|
|
1258
2005
|
return call("libgio-2.0.so.0", "g_dbus_escape_object_path_bytestring", [
|
|
1259
2006
|
{
|
|
@@ -1265,11 +2012,54 @@ export const dbusEscapeObjectPathBytestring = (bytes) => {
|
|
|
1265
2012
|
},
|
|
1266
2013
|
], { type: "string" });
|
|
1267
2014
|
};
|
|
2015
|
+
/**
|
|
2016
|
+
* Generate a D-Bus GUID that can be used with
|
|
2017
|
+
* e.g. g_dbus_connection_new().
|
|
2018
|
+
*
|
|
2019
|
+
* See the
|
|
2020
|
+
* D-Bus specification
|
|
2021
|
+
* regarding what strings are valid D-Bus GUIDs. The specification refers to
|
|
2022
|
+
* these as ‘UUIDs’ whereas GLib (for historical reasons) refers to them as
|
|
2023
|
+
* ‘GUIDs’. The terms are interchangeable.
|
|
2024
|
+
*
|
|
2025
|
+
* Note that D-Bus GUIDs do not follow
|
|
2026
|
+
* [RFC 4122](https://datatracker.ietf.org/doc/html/rfc4122).
|
|
2027
|
+
*/
|
|
1268
2028
|
export const dbusGenerateGuid = () => {
|
|
1269
2029
|
return call("libgio-2.0.so.0", "g_dbus_generate_guid", [], {
|
|
1270
2030
|
type: "string",
|
|
1271
2031
|
});
|
|
1272
2032
|
};
|
|
2033
|
+
/**
|
|
2034
|
+
* Converts a #GValue to a #GVariant of the type indicated by the `type` parameter.
|
|
2035
|
+
*
|
|
2036
|
+
* The conversion is using the following rules:
|
|
2037
|
+
*
|
|
2038
|
+
* - `G_TYPE_STRING`: 's', 'o', 'g' or 'ay'
|
|
2039
|
+
* - `G_TYPE_STRV`: 'as', 'ao' or 'aay'
|
|
2040
|
+
* - `G_TYPE_BOOLEAN`: 'b'
|
|
2041
|
+
* - `G_TYPE_UCHAR`: 'y'
|
|
2042
|
+
* - `G_TYPE_INT`: 'i', 'n'
|
|
2043
|
+
* - `G_TYPE_UINT`: 'u', 'q'
|
|
2044
|
+
* - `G_TYPE_INT64`: 'x'
|
|
2045
|
+
* - `G_TYPE_UINT64`: 't'
|
|
2046
|
+
* - `G_TYPE_DOUBLE`: 'd'
|
|
2047
|
+
* - `G_TYPE_VARIANT`: Any #GVariantType
|
|
2048
|
+
*
|
|
2049
|
+
* This can fail if e.g. `gvalue` is of type %G_TYPE_STRING and `type` is 'i', i.e. %G_VARIANT_TYPE_INT32. It will also fail for any #GType
|
|
2050
|
+
* (including e.g. %G_TYPE_OBJECT and %G_TYPE_BOXED derived-types) not
|
|
2051
|
+
* in the table above.
|
|
2052
|
+
*
|
|
2053
|
+
* Note that if `gvalue` is of type %G_TYPE_VARIANT and its value is
|
|
2054
|
+
* %NULL, the empty #GVariant instance (never %NULL) for `type` is
|
|
2055
|
+
* returned (e.g. 0 for scalar types, the empty string for string types,
|
|
2056
|
+
* '/' for object path types, the empty array for any array type and so on).
|
|
2057
|
+
*
|
|
2058
|
+
* See the g_dbus_gvariant_to_gvalue() function for how to convert a
|
|
2059
|
+
* #GVariant to a #GValue.
|
|
2060
|
+
* @param gvalue - A #GValue to convert to a #GVariant
|
|
2061
|
+
* @param type - A #GVariantType
|
|
2062
|
+
*/
|
|
1273
2063
|
export const dbusGvalueToGvariant = (gvalue, type) => {
|
|
1274
2064
|
const ptr = call("libgio-2.0.so.0", "g_dbus_gvalue_to_gvariant", [
|
|
1275
2065
|
{
|
|
@@ -1298,6 +2088,21 @@ export const dbusGvalueToGvariant = (gvalue, type) => {
|
|
|
1298
2088
|
});
|
|
1299
2089
|
return getObject(ptr, GLib.Variant);
|
|
1300
2090
|
};
|
|
2091
|
+
/**
|
|
2092
|
+
* Converts a #GVariant to a #GValue. If `value` is floating, it is consumed.
|
|
2093
|
+
*
|
|
2094
|
+
* The rules specified in the g_dbus_gvalue_to_gvariant() function are
|
|
2095
|
+
* used - this function is essentially its reverse form. So, a #GVariant
|
|
2096
|
+
* containing any basic or string array type will be converted to a #GValue
|
|
2097
|
+
* containing a basic value or string array. Any other #GVariant (handle,
|
|
2098
|
+
* variant, tuple, dict entry) will be converted to a #GValue containing that
|
|
2099
|
+
* #GVariant.
|
|
2100
|
+
*
|
|
2101
|
+
* The conversion never fails - a valid #GValue is always returned in
|
|
2102
|
+
* @out_gvalue.
|
|
2103
|
+
* @param value - A #GVariant.
|
|
2104
|
+
* @param outGvalue - Return location pointing to a zero-filled (uninitialized) #GValue.
|
|
2105
|
+
*/
|
|
1301
2106
|
export const dbusGvariantToGvalue = (value, outGvalue) => {
|
|
1302
2107
|
call("libgio-2.0.so.0", "g_dbus_gvariant_to_gvalue", [
|
|
1303
2108
|
{
|
|
@@ -1322,6 +2127,15 @@ export const dbusGvariantToGvalue = (value, outGvalue) => {
|
|
|
1322
2127
|
},
|
|
1323
2128
|
], { type: "undefined" });
|
|
1324
2129
|
};
|
|
2130
|
+
/**
|
|
2131
|
+
* Checks if `string` is a
|
|
2132
|
+
* D-Bus address.
|
|
2133
|
+
*
|
|
2134
|
+
* This doesn't check if `string` is actually supported by #GDBusServer
|
|
2135
|
+
* or #GDBusConnection - use g_dbus_is_supported_address() to do more
|
|
2136
|
+
* checks.
|
|
2137
|
+
* @param string - A string.
|
|
2138
|
+
*/
|
|
1325
2139
|
export const dbusIsAddress = (string) => {
|
|
1326
2140
|
return call("libgio-2.0.so.0", "g_dbus_is_address", [
|
|
1327
2141
|
{
|
|
@@ -1330,6 +2144,14 @@ export const dbusIsAddress = (string) => {
|
|
|
1330
2144
|
},
|
|
1331
2145
|
], { type: "boolean" });
|
|
1332
2146
|
};
|
|
2147
|
+
/**
|
|
2148
|
+
* Check whether `string` is a valid D-Bus error name.
|
|
2149
|
+
*
|
|
2150
|
+
* This function returns the same result as g_dbus_is_interface_name(),
|
|
2151
|
+
* because D-Bus error names are defined to have exactly the
|
|
2152
|
+
* same syntax as interface names.
|
|
2153
|
+
* @param string - The string to check.
|
|
2154
|
+
*/
|
|
1333
2155
|
export const dbusIsErrorName = (string) => {
|
|
1334
2156
|
return call("libgio-2.0.so.0", "g_dbus_is_error_name", [
|
|
1335
2157
|
{
|
|
@@ -1338,6 +2160,13 @@ export const dbusIsErrorName = (string) => {
|
|
|
1338
2160
|
},
|
|
1339
2161
|
], { type: "boolean" });
|
|
1340
2162
|
};
|
|
2163
|
+
/**
|
|
2164
|
+
* Checks if `string` is a D-Bus GUID.
|
|
2165
|
+
*
|
|
2166
|
+
* See the documentation for g_dbus_generate_guid() for more information about
|
|
2167
|
+
* the format of a GUID.
|
|
2168
|
+
* @param string - The string to check.
|
|
2169
|
+
*/
|
|
1341
2170
|
export const dbusIsGuid = (string) => {
|
|
1342
2171
|
return call("libgio-2.0.so.0", "g_dbus_is_guid", [
|
|
1343
2172
|
{
|
|
@@ -1346,6 +2175,10 @@ export const dbusIsGuid = (string) => {
|
|
|
1346
2175
|
},
|
|
1347
2176
|
], { type: "boolean" });
|
|
1348
2177
|
};
|
|
2178
|
+
/**
|
|
2179
|
+
* Checks if `string` is a valid D-Bus interface name.
|
|
2180
|
+
* @param string - The string to check.
|
|
2181
|
+
*/
|
|
1349
2182
|
export const dbusIsInterfaceName = (string) => {
|
|
1350
2183
|
return call("libgio-2.0.so.0", "g_dbus_is_interface_name", [
|
|
1351
2184
|
{
|
|
@@ -1354,6 +2187,10 @@ export const dbusIsInterfaceName = (string) => {
|
|
|
1354
2187
|
},
|
|
1355
2188
|
], { type: "boolean" });
|
|
1356
2189
|
};
|
|
2190
|
+
/**
|
|
2191
|
+
* Checks if `string` is a valid D-Bus member (e.g. signal or method) name.
|
|
2192
|
+
* @param string - The string to check.
|
|
2193
|
+
*/
|
|
1357
2194
|
export const dbusIsMemberName = (string) => {
|
|
1358
2195
|
return call("libgio-2.0.so.0", "g_dbus_is_member_name", [
|
|
1359
2196
|
{
|
|
@@ -1362,6 +2199,10 @@ export const dbusIsMemberName = (string) => {
|
|
|
1362
2199
|
},
|
|
1363
2200
|
], { type: "boolean" });
|
|
1364
2201
|
};
|
|
2202
|
+
/**
|
|
2203
|
+
* Checks if `string` is a valid D-Bus bus name (either unique or well-known).
|
|
2204
|
+
* @param string - The string to check.
|
|
2205
|
+
*/
|
|
1365
2206
|
export const dbusIsName = (string) => {
|
|
1366
2207
|
return call("libgio-2.0.so.0", "g_dbus_is_name", [
|
|
1367
2208
|
{
|
|
@@ -1370,6 +2211,13 @@ export const dbusIsName = (string) => {
|
|
|
1370
2211
|
},
|
|
1371
2212
|
], { type: "boolean" });
|
|
1372
2213
|
};
|
|
2214
|
+
/**
|
|
2215
|
+
* Like g_dbus_is_address() but also checks if the library supports the
|
|
2216
|
+
* transports in `string` and that key/value pairs for each transport
|
|
2217
|
+
* are valid. See the specification of the
|
|
2218
|
+
* D-Bus address format.
|
|
2219
|
+
* @param string - A string.
|
|
2220
|
+
*/
|
|
1373
2221
|
export const dbusIsSupportedAddress = (string) => {
|
|
1374
2222
|
const error = { value: null };
|
|
1375
2223
|
const result = call("libgio-2.0.so.0", "g_dbus_is_supported_address", [
|
|
@@ -1394,6 +2242,10 @@ export const dbusIsSupportedAddress = (string) => {
|
|
|
1394
2242
|
}
|
|
1395
2243
|
return result;
|
|
1396
2244
|
};
|
|
2245
|
+
/**
|
|
2246
|
+
* Checks if `string` is a valid D-Bus unique bus name.
|
|
2247
|
+
* @param string - The string to check.
|
|
2248
|
+
*/
|
|
1397
2249
|
export const dbusIsUniqueName = (string) => {
|
|
1398
2250
|
return call("libgio-2.0.so.0", "g_dbus_is_unique_name", [
|
|
1399
2251
|
{
|
|
@@ -1402,6 +2254,17 @@ export const dbusIsUniqueName = (string) => {
|
|
|
1402
2254
|
},
|
|
1403
2255
|
], { type: "boolean" });
|
|
1404
2256
|
};
|
|
2257
|
+
/**
|
|
2258
|
+
* Unescapes an string that was previously escaped with
|
|
2259
|
+
* g_dbus_escape_object_path(). If the string is in a format that could
|
|
2260
|
+
* not have been returned by g_dbus_escape_object_path(), this function
|
|
2261
|
+
* returns %NULL.
|
|
2262
|
+
*
|
|
2263
|
+
* Encoding alphanumeric characters which do not need to be
|
|
2264
|
+
* encoded is not allowed (e.g `_63` is not valid, the string
|
|
2265
|
+
* should contain `c` instead).
|
|
2266
|
+
* @param s - the string to unescape
|
|
2267
|
+
*/
|
|
1405
2268
|
export const dbusUnescapeObjectPath = (s) => {
|
|
1406
2269
|
return call("libgio-2.0.so.0", "g_dbus_unescape_object_path", [
|
|
1407
2270
|
{
|
|
@@ -1410,6 +2273,12 @@ export const dbusUnescapeObjectPath = (s) => {
|
|
|
1410
2273
|
},
|
|
1411
2274
|
], { type: "array", itemType: { type: "int", size: 8, unsigned: true } });
|
|
1412
2275
|
};
|
|
2276
|
+
/**
|
|
2277
|
+
* Creates a new #GDtlsClientConnection wrapping `base_socket` which is
|
|
2278
|
+
* assumed to communicate with the server identified by @server_identity.
|
|
2279
|
+
* @param baseSocket - the #GDatagramBased to wrap
|
|
2280
|
+
* @param serverIdentity - the expected identity of the server
|
|
2281
|
+
*/
|
|
1413
2282
|
export const dtlsClientConnectionNew = (baseSocket, serverIdentity) => {
|
|
1414
2283
|
const error = { value: null };
|
|
1415
2284
|
const ptr = call("libgio-2.0.so.0", "g_dtls_client_connection_new", [
|
|
@@ -1439,6 +2308,11 @@ export const dtlsClientConnectionNew = (baseSocket, serverIdentity) => {
|
|
|
1439
2308
|
}
|
|
1440
2309
|
return getObject(ptr, DtlsClientConnection);
|
|
1441
2310
|
};
|
|
2311
|
+
/**
|
|
2312
|
+
* Creates a new #GDtlsServerConnection wrapping @base_socket.
|
|
2313
|
+
* @param baseSocket - the #GDatagramBased to wrap
|
|
2314
|
+
* @param certificate - the default server certificate, or %NULL
|
|
2315
|
+
*/
|
|
1442
2316
|
export const dtlsServerConnectionNew = (baseSocket, certificate) => {
|
|
1443
2317
|
const error = { value: null };
|
|
1444
2318
|
const ptr = call("libgio-2.0.so.0", "g_dtls_server_connection_new", [
|
|
@@ -1468,6 +2342,14 @@ export const dtlsServerConnectionNew = (baseSocket, certificate) => {
|
|
|
1468
2342
|
}
|
|
1469
2343
|
return getObject(ptr, DtlsServerConnection);
|
|
1470
2344
|
};
|
|
2345
|
+
/**
|
|
2346
|
+
* Constructs a #GFile from a vector of elements using the correct
|
|
2347
|
+
* separator for filenames.
|
|
2348
|
+
*
|
|
2349
|
+
* Using this function is equivalent to calling g_build_filenamev(),
|
|
2350
|
+
* followed by g_file_new_for_path() on the result.
|
|
2351
|
+
* @param args - %NULL-terminated
|
|
2352
|
+
*/
|
|
1471
2353
|
export const fileNewBuildFilenamev = (args) => {
|
|
1472
2354
|
const ptr = call("libgio-2.0.so.0", "g_file_new_build_filenamev", [
|
|
1473
2355
|
{
|
|
@@ -1477,6 +2359,23 @@ export const fileNewBuildFilenamev = (args) => {
|
|
|
1477
2359
|
], { type: "gobject", borrowed: true });
|
|
1478
2360
|
return getObject(ptr, File);
|
|
1479
2361
|
};
|
|
2362
|
+
/**
|
|
2363
|
+
* Creates a #GFile with the given argument from the command line.
|
|
2364
|
+
* The value of `arg` can be either a URI, an absolute path or a
|
|
2365
|
+
* relative path resolved relative to the current working directory.
|
|
2366
|
+
* This operation never fails, but the returned object might not
|
|
2367
|
+
* support any I/O operation if `arg` points to a malformed path.
|
|
2368
|
+
*
|
|
2369
|
+
* Note that on Windows, this function expects its argument to be in
|
|
2370
|
+
* UTF-8 -- not the system code page. This means that you
|
|
2371
|
+
* should not use this function with string from argv as it is passed
|
|
2372
|
+
* to main(). g_win32_get_command_line() will return a UTF-8 version of
|
|
2373
|
+
* the commandline. #GApplication also uses UTF-8 but
|
|
2374
|
+
* g_application_command_line_create_file_for_arg() may be more useful
|
|
2375
|
+
* for you there. It is also always possible to use this function with
|
|
2376
|
+
* #GOptionContext arguments of type %G_OPTION_ARG_FILENAME.
|
|
2377
|
+
* @param arg - a command line string
|
|
2378
|
+
*/
|
|
1480
2379
|
export const fileNewForCommandlineArg = (arg) => {
|
|
1481
2380
|
const ptr = call("libgio-2.0.so.0", "g_file_new_for_commandline_arg", [
|
|
1482
2381
|
{
|
|
@@ -1486,6 +2385,21 @@ export const fileNewForCommandlineArg = (arg) => {
|
|
|
1486
2385
|
], { type: "gobject", borrowed: true });
|
|
1487
2386
|
return getObject(ptr, File);
|
|
1488
2387
|
};
|
|
2388
|
+
/**
|
|
2389
|
+
* Creates a #GFile with the given argument from the command line.
|
|
2390
|
+
*
|
|
2391
|
+
* This function is similar to g_file_new_for_commandline_arg() except
|
|
2392
|
+
* that it allows for passing the current working directory as an
|
|
2393
|
+
* argument instead of using the current working directory of the
|
|
2394
|
+
* process.
|
|
2395
|
+
*
|
|
2396
|
+
* This is useful if the commandline argument was given in a context
|
|
2397
|
+
* other than the invocation of the current process.
|
|
2398
|
+
*
|
|
2399
|
+
* See also g_application_command_line_create_file_for_arg().
|
|
2400
|
+
* @param arg - a command line string
|
|
2401
|
+
* @param cwd - the current working directory of the commandline
|
|
2402
|
+
*/
|
|
1489
2403
|
export const fileNewForCommandlineArgAndCwd = (arg, cwd) => {
|
|
1490
2404
|
const ptr = call("libgio-2.0.so.0", "g_file_new_for_commandline_arg_and_cwd", [
|
|
1491
2405
|
{
|
|
@@ -1499,6 +2413,12 @@ export const fileNewForCommandlineArgAndCwd = (arg, cwd) => {
|
|
|
1499
2413
|
], { type: "gobject", borrowed: true });
|
|
1500
2414
|
return getObject(ptr, File);
|
|
1501
2415
|
};
|
|
2416
|
+
/**
|
|
2417
|
+
* Constructs a #GFile for a given path. This operation never
|
|
2418
|
+
* fails, but the returned object might not support any I/O
|
|
2419
|
+
* operation if `path` is malformed.
|
|
2420
|
+
* @param path - a string containing a relative or absolute path.
|
|
2421
|
+
*/
|
|
1502
2422
|
export const fileNewForPath = (path) => {
|
|
1503
2423
|
const ptr = call("libgio-2.0.so.0", "g_file_new_for_path", [
|
|
1504
2424
|
{
|
|
@@ -1508,6 +2428,13 @@ export const fileNewForPath = (path) => {
|
|
|
1508
2428
|
], { type: "gobject", borrowed: true });
|
|
1509
2429
|
return getObject(ptr, File);
|
|
1510
2430
|
};
|
|
2431
|
+
/**
|
|
2432
|
+
* Constructs a #GFile for a given URI. This operation never
|
|
2433
|
+
* fails, but the returned object might not support any I/O
|
|
2434
|
+
* operation if `uri` is malformed or if the uri type is
|
|
2435
|
+
* not supported.
|
|
2436
|
+
* @param uri - a UTF-8 string containing a URI
|
|
2437
|
+
*/
|
|
1511
2438
|
export const fileNewForUri = (uri) => {
|
|
1512
2439
|
const ptr = call("libgio-2.0.so.0", "g_file_new_for_uri", [
|
|
1513
2440
|
{
|
|
@@ -1517,6 +2444,20 @@ export const fileNewForUri = (uri) => {
|
|
|
1517
2444
|
], { type: "gobject", borrowed: true });
|
|
1518
2445
|
return getObject(ptr, File);
|
|
1519
2446
|
};
|
|
2447
|
+
/**
|
|
2448
|
+
* Opens a file in the preferred directory for temporary files (as
|
|
2449
|
+
* returned by g_get_tmp_dir()) and returns a #GFile and
|
|
2450
|
+
* #GFileIOStream pointing to it.
|
|
2451
|
+
*
|
|
2452
|
+
* `tmpl` should be a string in the GLib file name encoding
|
|
2453
|
+
* containing a sequence of six 'X' characters, and containing no
|
|
2454
|
+
* directory components. If it is %NULL, a default template is used.
|
|
2455
|
+
*
|
|
2456
|
+
* Unlike the other #GFile constructors, this will return %NULL if
|
|
2457
|
+
* a temporary file could not be created.
|
|
2458
|
+
* @param tmpl - Template for the file
|
|
2459
|
+
* @param iostream - on return, a #GFileIOStream for the created file
|
|
2460
|
+
*/
|
|
1520
2461
|
export const fileNewTmp = (iostream, tmpl) => {
|
|
1521
2462
|
const error = { value: null };
|
|
1522
2463
|
const ptr = call("libgio-2.0.so.0", "g_file_new_tmp", [
|
|
@@ -1546,6 +2487,19 @@ export const fileNewTmp = (iostream, tmpl) => {
|
|
|
1546
2487
|
}
|
|
1547
2488
|
return getObject(ptr, File);
|
|
1548
2489
|
};
|
|
2490
|
+
/**
|
|
2491
|
+
* Asynchronously opens a file in the preferred directory for temporary files
|
|
2492
|
+
* (as returned by g_get_tmp_dir()) as g_file_new_tmp().
|
|
2493
|
+
*
|
|
2494
|
+
* `tmpl` should be a string in the GLib file name encoding
|
|
2495
|
+
* containing a sequence of six 'X' characters, and containing no
|
|
2496
|
+
* directory components. If it is %NULL, a default template is used.
|
|
2497
|
+
* @param tmpl - Template for the file
|
|
2498
|
+
* @param ioPriority - the I/O priority of the request
|
|
2499
|
+
* @param cancellable - optional #GCancellable object, %NULL to ignore
|
|
2500
|
+
* @param callback - a #GAsyncReadyCallback to call when the request is done
|
|
2501
|
+
* @param userData - data to pass to @callback
|
|
2502
|
+
*/
|
|
1549
2503
|
export const fileNewTmpAsync = (ioPriority, tmpl, cancellable, callback, userData) => {
|
|
1550
2504
|
call("libgio-2.0.so.0", "g_file_new_tmp_async", [
|
|
1551
2505
|
{
|
|
@@ -1574,6 +2528,19 @@ export const fileNewTmpAsync = (ioPriority, tmpl, cancellable, callback, userDat
|
|
|
1574
2528
|
},
|
|
1575
2529
|
], { type: "undefined" });
|
|
1576
2530
|
};
|
|
2531
|
+
/**
|
|
2532
|
+
* Asynchronously creates a directory in the preferred directory for
|
|
2533
|
+
* temporary files (as returned by g_get_tmp_dir()) as g_dir_make_tmp().
|
|
2534
|
+
*
|
|
2535
|
+
* `tmpl` should be a string in the GLib file name encoding
|
|
2536
|
+
* containing a sequence of six 'X' characters, and containing no
|
|
2537
|
+
* directory components. If it is %NULL, a default template is used.
|
|
2538
|
+
* @param tmpl - Template for the file
|
|
2539
|
+
* @param ioPriority - the I/O priority of the request
|
|
2540
|
+
* @param cancellable - optional #GCancellable object, %NULL to ignore
|
|
2541
|
+
* @param callback - a #GAsyncReadyCallback to call when the request is done
|
|
2542
|
+
* @param userData - data to pass to @callback
|
|
2543
|
+
*/
|
|
1577
2544
|
export const fileNewTmpDirAsync = (ioPriority, tmpl, cancellable, callback, userData) => {
|
|
1578
2545
|
call("libgio-2.0.so.0", "g_file_new_tmp_dir_async", [
|
|
1579
2546
|
{
|
|
@@ -1602,6 +2569,11 @@ export const fileNewTmpDirAsync = (ioPriority, tmpl, cancellable, callback, user
|
|
|
1602
2569
|
},
|
|
1603
2570
|
], { type: "undefined" });
|
|
1604
2571
|
};
|
|
2572
|
+
/**
|
|
2573
|
+
* Finishes a temporary directory creation started by
|
|
2574
|
+
* g_file_new_tmp_dir_async().
|
|
2575
|
+
* @param result - a #GAsyncResult
|
|
2576
|
+
*/
|
|
1605
2577
|
export const fileNewTmpDirFinish = (result) => {
|
|
1606
2578
|
const error = { value: null };
|
|
1607
2579
|
const ptr = call("libgio-2.0.so.0", "g_file_new_tmp_dir_finish", [
|
|
@@ -1626,6 +2598,11 @@ export const fileNewTmpDirFinish = (result) => {
|
|
|
1626
2598
|
}
|
|
1627
2599
|
return getObject(ptr, File);
|
|
1628
2600
|
};
|
|
2601
|
+
/**
|
|
2602
|
+
* Finishes a temporary file creation started by g_file_new_tmp_async().
|
|
2603
|
+
* @param result - a #GAsyncResult
|
|
2604
|
+
* @param iostream - on return, a #GFileIOStream for the created file
|
|
2605
|
+
*/
|
|
1629
2606
|
export const fileNewTmpFinish = (result, iostream) => {
|
|
1630
2607
|
const error = { value: null };
|
|
1631
2608
|
const ptr = call("libgio-2.0.so.0", "g_file_new_tmp_finish", [
|
|
@@ -1654,6 +2631,13 @@ export const fileNewTmpFinish = (result, iostream) => {
|
|
|
1654
2631
|
}
|
|
1655
2632
|
return getObject(ptr, File);
|
|
1656
2633
|
};
|
|
2634
|
+
/**
|
|
2635
|
+
* Constructs a #GFile with the given `parse_name` (i.e. something
|
|
2636
|
+
* given by g_file_get_parse_name()). This operation never fails,
|
|
2637
|
+
* but the returned object might not support any I/O operation if
|
|
2638
|
+
* the `parse_name` cannot be parsed.
|
|
2639
|
+
* @param parseName - a file name or path to be parsed
|
|
2640
|
+
*/
|
|
1657
2641
|
export const fileParseName = (parseName) => {
|
|
1658
2642
|
const ptr = call("libgio-2.0.so.0", "g_file_parse_name", [
|
|
1659
2643
|
{
|
|
@@ -1663,6 +2647,10 @@ export const fileParseName = (parseName) => {
|
|
|
1663
2647
|
], { type: "gobject", borrowed: true });
|
|
1664
2648
|
return getObject(ptr, File);
|
|
1665
2649
|
};
|
|
2650
|
+
/**
|
|
2651
|
+
* Deserializes a #GIcon previously serialized using g_icon_serialize().
|
|
2652
|
+
* @param value - a #GVariant created with g_icon_serialize()
|
|
2653
|
+
*/
|
|
1666
2654
|
export const iconDeserialize = (value) => {
|
|
1667
2655
|
const ptr = call("libgio-2.0.so.0", "g_icon_deserialize", [
|
|
1668
2656
|
{
|
|
@@ -1679,6 +2667,15 @@ export const iconDeserialize = (value) => {
|
|
|
1679
2667
|
return null;
|
|
1680
2668
|
return getObject(ptr, Icon);
|
|
1681
2669
|
};
|
|
2670
|
+
/**
|
|
2671
|
+
* Generate a #GIcon instance from @str. This function can fail if
|
|
2672
|
+
* `str` is not valid - see g_icon_to_string() for discussion.
|
|
2673
|
+
*
|
|
2674
|
+
* If your application or library provides one or more #GIcon
|
|
2675
|
+
* implementations you need to ensure that each #GType is registered
|
|
2676
|
+
* with the type system prior to calling g_icon_new_for_string().
|
|
2677
|
+
* @param str - A string obtained via g_icon_to_string().
|
|
2678
|
+
*/
|
|
1682
2679
|
export const iconNewForString = (str) => {
|
|
1683
2680
|
const error = { value: null };
|
|
1684
2681
|
const ptr = call("libgio-2.0.so.0", "g_icon_new_for_string", [
|
|
@@ -1703,6 +2700,15 @@ export const iconNewForString = (str) => {
|
|
|
1703
2700
|
}
|
|
1704
2701
|
return getObject(ptr, Icon);
|
|
1705
2702
|
};
|
|
2703
|
+
/**
|
|
2704
|
+
* Helper function for constructing #GInitable object. This is
|
|
2705
|
+
* similar to g_object_newv() but also initializes the object
|
|
2706
|
+
* and returns %NULL, setting an error on failure.
|
|
2707
|
+
* @param objectType - a #GType supporting #GInitable.
|
|
2708
|
+
* @param nParameters - the number of parameters in @parameters
|
|
2709
|
+
* @param parameters - the parameters to use to construct the object
|
|
2710
|
+
* @param cancellable - optional #GCancellable object, %NULL to ignore.
|
|
2711
|
+
*/
|
|
1706
2712
|
export const initableNewv = (objectType, nParameters, parameters, cancellable) => {
|
|
1707
2713
|
const error = { value: null };
|
|
1708
2714
|
const ptr = call("libgio-2.0.so.0", "g_initable_newv", [
|
|
@@ -1743,6 +2749,28 @@ export const initableNewv = (objectType, nParameters, parameters, cancellable) =
|
|
|
1743
2749
|
}
|
|
1744
2750
|
return getObject(ptr, GObject.GObject);
|
|
1745
2751
|
};
|
|
2752
|
+
/**
|
|
2753
|
+
* Converts `errno.h` error codes into GIO error codes.
|
|
2754
|
+
*
|
|
2755
|
+
* The fallback value %G_IO_ERROR_FAILED is returned for error codes not
|
|
2756
|
+
* currently handled (but note that future GLib releases may return a more
|
|
2757
|
+
* specific value instead).
|
|
2758
|
+
*
|
|
2759
|
+
* As `errno` is global and may be modified by intermediate function
|
|
2760
|
+
* calls, you should save its value immediately after the call returns,
|
|
2761
|
+
* and use the saved value instead of `errno`:
|
|
2762
|
+
*
|
|
2763
|
+
*
|
|
2764
|
+
* |[<!-- language="C" -->
|
|
2765
|
+
* int saved_errno;
|
|
2766
|
+
*
|
|
2767
|
+
* ret = read (blah);
|
|
2768
|
+
* saved_errno = errno;
|
|
2769
|
+
*
|
|
2770
|
+
* g_io_error_from_errno (saved_errno);
|
|
2771
|
+
* ]|
|
|
2772
|
+
* @param errNo - Error number as defined in errno.h.
|
|
2773
|
+
*/
|
|
1746
2774
|
export const ioErrorFromErrno = (errNo) => {
|
|
1747
2775
|
return call("libgio-2.0.so.0", "g_io_error_from_errno", [
|
|
1748
2776
|
{
|
|
@@ -1751,6 +2779,10 @@ export const ioErrorFromErrno = (errNo) => {
|
|
|
1751
2779
|
},
|
|
1752
2780
|
], { type: "int", size: 32, unsigned: false });
|
|
1753
2781
|
};
|
|
2782
|
+
/**
|
|
2783
|
+
* Converts #GFileError error codes into GIO error codes.
|
|
2784
|
+
* @param fileError - a #GFileError.
|
|
2785
|
+
*/
|
|
1754
2786
|
export const ioErrorFromFileError = (fileError) => {
|
|
1755
2787
|
return call("libgio-2.0.so.0", "g_io_error_from_file_error", [
|
|
1756
2788
|
{
|
|
@@ -1759,6 +2791,9 @@ export const ioErrorFromFileError = (fileError) => {
|
|
|
1759
2791
|
},
|
|
1760
2792
|
], { type: "int", size: 32, unsigned: false });
|
|
1761
2793
|
};
|
|
2794
|
+
/**
|
|
2795
|
+
* Gets the GIO Error Quark.
|
|
2796
|
+
*/
|
|
1762
2797
|
export const ioErrorQuark = () => {
|
|
1763
2798
|
return call("libgio-2.0.so.0", "g_io_error_quark", [], {
|
|
1764
2799
|
type: "int",
|
|
@@ -1766,6 +2801,17 @@ export const ioErrorQuark = () => {
|
|
|
1766
2801
|
unsigned: true,
|
|
1767
2802
|
});
|
|
1768
2803
|
};
|
|
2804
|
+
/**
|
|
2805
|
+
* Registers `type` as extension for the extension point with name
|
|
2806
|
+
* @extension_point_name.
|
|
2807
|
+
*
|
|
2808
|
+
* If `type` has already been registered as an extension for this
|
|
2809
|
+
* extension point, the existing #GIOExtension object is returned.
|
|
2810
|
+
* @param extensionPointName - the name of the extension point
|
|
2811
|
+
* @param type - the #GType to register as extension
|
|
2812
|
+
* @param extensionName - the name for the extension
|
|
2813
|
+
* @param priority - the priority for the extension
|
|
2814
|
+
*/
|
|
1769
2815
|
export const ioExtensionPointImplement = (extensionPointName, type, extensionName, priority) => {
|
|
1770
2816
|
return call("libgio-2.0.so.0", "g_io_extension_point_implement", [
|
|
1771
2817
|
{
|
|
@@ -1786,6 +2832,10 @@ export const ioExtensionPointImplement = (extensionPointName, type, extensionNam
|
|
|
1786
2832
|
},
|
|
1787
2833
|
], { type: "int", size: 64, unsigned: true });
|
|
1788
2834
|
};
|
|
2835
|
+
/**
|
|
2836
|
+
* Looks up an existing extension point.
|
|
2837
|
+
* @param name - the name of the extension point
|
|
2838
|
+
*/
|
|
1789
2839
|
export const ioExtensionPointLookup = (name) => {
|
|
1790
2840
|
return call("libgio-2.0.so.0", "g_io_extension_point_lookup", [
|
|
1791
2841
|
{
|
|
@@ -1794,6 +2844,10 @@ export const ioExtensionPointLookup = (name) => {
|
|
|
1794
2844
|
},
|
|
1795
2845
|
], { type: "int", size: 64, unsigned: true });
|
|
1796
2846
|
};
|
|
2847
|
+
/**
|
|
2848
|
+
* Registers an extension point.
|
|
2849
|
+
* @param name - The name of the extension point
|
|
2850
|
+
*/
|
|
1797
2851
|
export const ioExtensionPointRegister = (name) => {
|
|
1798
2852
|
return call("libgio-2.0.so.0", "g_io_extension_point_register", [
|
|
1799
2853
|
{
|
|
@@ -1802,6 +2856,14 @@ export const ioExtensionPointRegister = (name) => {
|
|
|
1802
2856
|
},
|
|
1803
2857
|
], { type: "int", size: 64, unsigned: true });
|
|
1804
2858
|
};
|
|
2859
|
+
/**
|
|
2860
|
+
* Loads all the modules in the specified directory.
|
|
2861
|
+
*
|
|
2862
|
+
* If don't require all modules to be initialized (and thus registering
|
|
2863
|
+
* all gtypes) then you can use g_io_modules_scan_all_in_directory()
|
|
2864
|
+
* which allows delayed/lazy loading of modules.
|
|
2865
|
+
* @param dirname - pathname for a directory containing modules
|
|
2866
|
+
*/
|
|
1805
2867
|
export const ioModulesLoadAllInDirectory = (dirname) => {
|
|
1806
2868
|
return call("libgio-2.0.so.0", "g_io_modules_load_all_in_directory", [
|
|
1807
2869
|
{
|
|
@@ -1815,6 +2877,15 @@ export const ioModulesLoadAllInDirectory = (dirname) => {
|
|
|
1815
2877
|
borrowed: true,
|
|
1816
2878
|
});
|
|
1817
2879
|
};
|
|
2880
|
+
/**
|
|
2881
|
+
* Loads all the modules in the specified directory.
|
|
2882
|
+
*
|
|
2883
|
+
* If don't require all modules to be initialized (and thus registering
|
|
2884
|
+
* all gtypes) then you can use g_io_modules_scan_all_in_directory()
|
|
2885
|
+
* which allows delayed/lazy loading of modules.
|
|
2886
|
+
* @param dirname - pathname for a directory containing modules
|
|
2887
|
+
* @param scope - a scope to use when scanning the modules.
|
|
2888
|
+
*/
|
|
1818
2889
|
export const ioModulesLoadAllInDirectoryWithScope = (dirname, scope) => {
|
|
1819
2890
|
return call("libgio-2.0.so.0", "g_io_modules_load_all_in_directory_with_scope", [
|
|
1820
2891
|
{
|
|
@@ -1832,6 +2903,20 @@ export const ioModulesLoadAllInDirectoryWithScope = (dirname, scope) => {
|
|
|
1832
2903
|
borrowed: true,
|
|
1833
2904
|
});
|
|
1834
2905
|
};
|
|
2906
|
+
/**
|
|
2907
|
+
* Scans all the modules in the specified directory, ensuring that
|
|
2908
|
+
* any extension point implemented by a module is registered.
|
|
2909
|
+
*
|
|
2910
|
+
* This may not actually load and initialize all the types in each
|
|
2911
|
+
* module, some modules may be lazily loaded and initialized when
|
|
2912
|
+
* an extension point it implements is used with e.g.
|
|
2913
|
+
* g_io_extension_point_get_extensions() or
|
|
2914
|
+
* g_io_extension_point_get_extension_by_name().
|
|
2915
|
+
*
|
|
2916
|
+
* If you need to guarantee that all types are loaded in all the modules,
|
|
2917
|
+
* use g_io_modules_load_all_in_directory().
|
|
2918
|
+
* @param dirname - pathname for a directory containing modules
|
|
2919
|
+
*/
|
|
1835
2920
|
export const ioModulesScanAllInDirectory = (dirname) => {
|
|
1836
2921
|
call("libgio-2.0.so.0", "g_io_modules_scan_all_in_directory", [
|
|
1837
2922
|
{
|
|
@@ -1840,6 +2925,21 @@ export const ioModulesScanAllInDirectory = (dirname) => {
|
|
|
1840
2925
|
},
|
|
1841
2926
|
], { type: "undefined" });
|
|
1842
2927
|
};
|
|
2928
|
+
/**
|
|
2929
|
+
* Scans all the modules in the specified directory, ensuring that
|
|
2930
|
+
* any extension point implemented by a module is registered.
|
|
2931
|
+
*
|
|
2932
|
+
* This may not actually load and initialize all the types in each
|
|
2933
|
+
* module, some modules may be lazily loaded and initialized when
|
|
2934
|
+
* an extension point it implements is used with e.g.
|
|
2935
|
+
* g_io_extension_point_get_extensions() or
|
|
2936
|
+
* g_io_extension_point_get_extension_by_name().
|
|
2937
|
+
*
|
|
2938
|
+
* If you need to guarantee that all types are loaded in all the modules,
|
|
2939
|
+
* use g_io_modules_load_all_in_directory().
|
|
2940
|
+
* @param dirname - pathname for a directory containing modules
|
|
2941
|
+
* @param scope - a scope to use when scanning the modules
|
|
2942
|
+
*/
|
|
1843
2943
|
export const ioModulesScanAllInDirectoryWithScope = (dirname, scope) => {
|
|
1844
2944
|
call("libgio-2.0.so.0", "g_io_modules_scan_all_in_directory_with_scope", [
|
|
1845
2945
|
{
|
|
@@ -1852,11 +2952,32 @@ export const ioModulesScanAllInDirectoryWithScope = (dirname, scope) => {
|
|
|
1852
2952
|
},
|
|
1853
2953
|
], { type: "undefined" });
|
|
1854
2954
|
};
|
|
2955
|
+
/**
|
|
2956
|
+
* Cancels all cancellable I/O jobs.
|
|
2957
|
+
*
|
|
2958
|
+
* A job is cancellable if a #GCancellable was passed into
|
|
2959
|
+
* g_io_scheduler_push_job().
|
|
2960
|
+
*/
|
|
1855
2961
|
export const ioSchedulerCancelAllJobs = () => {
|
|
1856
2962
|
call("libgio-2.0.so.0", "g_io_scheduler_cancel_all_jobs", [], {
|
|
1857
2963
|
type: "undefined",
|
|
1858
2964
|
});
|
|
1859
2965
|
};
|
|
2966
|
+
/**
|
|
2967
|
+
* Schedules the I/O job to run in another thread.
|
|
2968
|
+
*
|
|
2969
|
+
* `notify` will be called on `user_data` after `job_func` has returned,
|
|
2970
|
+
* regardless whether the job was cancelled or has run to completion.
|
|
2971
|
+
*
|
|
2972
|
+
* If `cancellable` is not %NULL, it can be used to cancel the I/O job
|
|
2973
|
+
* by calling g_cancellable_cancel() or by calling
|
|
2974
|
+
* g_io_scheduler_cancel_all_jobs().
|
|
2975
|
+
* @param jobFunc - a #GIOSchedulerJobFunc.
|
|
2976
|
+
* @param userData - data to pass to @job_func
|
|
2977
|
+
* @param notify - a #GDestroyNotify for @user_data, or %NULL
|
|
2978
|
+
* @param ioPriority - the I/O priority
|
|
2979
|
+
* @param cancellable - optional #GCancellable object, %NULL to ignore.
|
|
2980
|
+
*/
|
|
1860
2981
|
export const ioSchedulerPushJob = (jobFunc, ioPriority, userData, notify, cancellable) => {
|
|
1861
2982
|
call("libgio-2.0.so.0", "g_io_scheduler_push_job", [
|
|
1862
2983
|
{
|
|
@@ -1884,6 +3005,60 @@ export const ioSchedulerPushJob = (jobFunc, ioPriority, userData, notify, cancel
|
|
|
1884
3005
|
},
|
|
1885
3006
|
], { type: "undefined" });
|
|
1886
3007
|
};
|
|
3008
|
+
/**
|
|
3009
|
+
* Creates a keyfile-backed [class@Gio.SettingsBackend].
|
|
3010
|
+
*
|
|
3011
|
+
* The filename of the keyfile to use is given by @filename.
|
|
3012
|
+
*
|
|
3013
|
+
* All settings read to or written from the backend must fall under the
|
|
3014
|
+
* path given in `root_path` (which must start and end with a slash and
|
|
3015
|
+
* not contain two consecutive slashes). `root_path` may be `"/"`.
|
|
3016
|
+
*
|
|
3017
|
+
* If `root_group` is non-`NULL` then it specifies the name of the keyfile
|
|
3018
|
+
* group used for keys that are written directly below @root_path. For
|
|
3019
|
+
* example, if `root_path` is `"/apps/example/"` and `root_group` is
|
|
3020
|
+
* `"toplevel"`, then setting the key `"/apps/example/enabled"` to true will
|
|
3021
|
+
* cause the following to appear in the keyfile:
|
|
3022
|
+
*
|
|
3023
|
+
* ```
|
|
3024
|
+
* [toplevel]
|
|
3025
|
+
* enabled=true
|
|
3026
|
+
* ```
|
|
3027
|
+
*
|
|
3028
|
+
* If `root_group` is `NULL` then it is not permitted to store keys
|
|
3029
|
+
* directly below the @root_path.
|
|
3030
|
+
*
|
|
3031
|
+
* For keys not stored directly below `root_path` (ie: in a sub-path),
|
|
3032
|
+
* the name of the subpath (with the final slash stripped) is used as
|
|
3033
|
+
* the name of the keyfile group. To continue the example, if
|
|
3034
|
+
* `"/apps/example/profiles/default/font-size"` were set to
|
|
3035
|
+
* `12` then the following would appear in the keyfile:
|
|
3036
|
+
*
|
|
3037
|
+
* ```
|
|
3038
|
+
* [profiles/default]
|
|
3039
|
+
* font-size=12
|
|
3040
|
+
* ```
|
|
3041
|
+
*
|
|
3042
|
+
* The backend will refuse writes (and return writability as being
|
|
3043
|
+
* false) for keys outside of `root_path` and, in the event that
|
|
3044
|
+
* `root_group` is `NULL`, also for keys directly under @root_path.
|
|
3045
|
+
* Writes will also be refused if the backend detects that it has the
|
|
3046
|
+
* inability to rewrite the keyfile (ie: the containing directory is not
|
|
3047
|
+
* writable).
|
|
3048
|
+
*
|
|
3049
|
+
* There is no checking done for your key namespace clashing with the
|
|
3050
|
+
* syntax of the key file format. For example, if you have `[` or `]`
|
|
3051
|
+
* characters in your path names or `=` in your key names you may be in
|
|
3052
|
+
* trouble.
|
|
3053
|
+
*
|
|
3054
|
+
* The backend reads default values from a keyfile called `defaults` in
|
|
3055
|
+
* the directory specified by the `GKeyfileSettingsBackend:defaults-dir`
|
|
3056
|
+
* property, and a list of locked keys from a text file with the name `locks` in
|
|
3057
|
+
* the same location.
|
|
3058
|
+
* @param filename - the filename of the keyfile
|
|
3059
|
+
* @param rootPath - the path under which all settings keys appear
|
|
3060
|
+
* @param rootGroup - the group name corresponding to @root_path, or
|
|
3061
|
+
*/
|
|
1887
3062
|
export const keyfileSettingsBackendNew = (filename, rootPath, rootGroup) => {
|
|
1888
3063
|
const ptr = call("libgio-2.0.so.0", "g_keyfile_settings_backend_new", [
|
|
1889
3064
|
{
|
|
@@ -1902,6 +3077,9 @@ export const keyfileSettingsBackendNew = (filename, rootPath, rootGroup) => {
|
|
|
1902
3077
|
], { type: "gobject", borrowed: true });
|
|
1903
3078
|
return getObject(ptr, SettingsBackend);
|
|
1904
3079
|
};
|
|
3080
|
+
/**
|
|
3081
|
+
* Gets a reference to the default #GMemoryMonitor for the system.
|
|
3082
|
+
*/
|
|
1905
3083
|
export const memoryMonitorDupDefault = () => {
|
|
1906
3084
|
const ptr = call("libgio-2.0.so.0", "g_memory_monitor_dup_default", [], {
|
|
1907
3085
|
type: "gobject",
|
|
@@ -1909,6 +3087,13 @@ export const memoryMonitorDupDefault = () => {
|
|
|
1909
3087
|
});
|
|
1910
3088
|
return getObject(ptr, MemoryMonitor);
|
|
1911
3089
|
};
|
|
3090
|
+
/**
|
|
3091
|
+
* Creates a memory-backed #GSettingsBackend.
|
|
3092
|
+
*
|
|
3093
|
+
* This backend allows changes to settings, but does not write them
|
|
3094
|
+
* to any backing storage, so the next time you run your application,
|
|
3095
|
+
* the memory backend will start out with the default values again.
|
|
3096
|
+
*/
|
|
1912
3097
|
export const memorySettingsBackendNew = () => {
|
|
1913
3098
|
const ptr = call("libgio-2.0.so.0", "g_memory_settings_backend_new", [], {
|
|
1914
3099
|
type: "gobject",
|
|
@@ -1916,6 +3101,9 @@ export const memorySettingsBackendNew = () => {
|
|
|
1916
3101
|
});
|
|
1917
3102
|
return getObject(ptr, SettingsBackend);
|
|
1918
3103
|
};
|
|
3104
|
+
/**
|
|
3105
|
+
* Gets the default #GNetworkMonitor for the system.
|
|
3106
|
+
*/
|
|
1919
3107
|
export const networkMonitorGetDefault = () => {
|
|
1920
3108
|
const ptr = call("libgio-2.0.so.0", "g_network_monitor_get_default", [], {
|
|
1921
3109
|
type: "gobject",
|
|
@@ -1923,9 +3111,21 @@ export const networkMonitorGetDefault = () => {
|
|
|
1923
3111
|
});
|
|
1924
3112
|
return getObject(ptr, NetworkMonitor);
|
|
1925
3113
|
};
|
|
3114
|
+
/**
|
|
3115
|
+
* Initializes the platform networking libraries (eg, on Windows, this
|
|
3116
|
+
* calls WSAStartup()). GLib will call this itself if it is needed, so
|
|
3117
|
+
* you only need to call it if you directly call system networking
|
|
3118
|
+
* functions (without calling any GLib networking functions first).
|
|
3119
|
+
*/
|
|
1926
3120
|
export const networkingInit = () => {
|
|
1927
3121
|
call("libgio-2.0.so.0", "g_networking_init", [], { type: "undefined" });
|
|
1928
3122
|
};
|
|
3123
|
+
/**
|
|
3124
|
+
* Creates a readonly #GSettingsBackend.
|
|
3125
|
+
*
|
|
3126
|
+
* This backend does not allow changes to settings, so all settings
|
|
3127
|
+
* will always have their default values.
|
|
3128
|
+
*/
|
|
1929
3129
|
export const nullSettingsBackendNew = () => {
|
|
1930
3130
|
const ptr = call("libgio-2.0.so.0", "g_null_settings_backend_new", [], {
|
|
1931
3131
|
type: "gobject",
|
|
@@ -1933,6 +3133,14 @@ export const nullSettingsBackendNew = () => {
|
|
|
1933
3133
|
});
|
|
1934
3134
|
return getObject(ptr, SettingsBackend);
|
|
1935
3135
|
};
|
|
3136
|
+
/**
|
|
3137
|
+
* Utility method for #GPollableInputStream and #GPollableOutputStream
|
|
3138
|
+
* implementations. Creates a new #GSource that expects a callback of
|
|
3139
|
+
* type #GPollableSourceFunc. The new source does not actually do
|
|
3140
|
+
* anything on its own; use g_source_add_child_source() to add other
|
|
3141
|
+
* sources to it to cause it to trigger.
|
|
3142
|
+
* @param pollableStream - the stream associated with the new source
|
|
3143
|
+
*/
|
|
1936
3144
|
export const pollableSourceNew = (pollableStream) => {
|
|
1937
3145
|
const ptr = call("libgio-2.0.so.0", "g_pollable_source_new", [
|
|
1938
3146
|
{
|
|
@@ -1947,6 +3155,15 @@ export const pollableSourceNew = (pollableStream) => {
|
|
|
1947
3155
|
});
|
|
1948
3156
|
return getObject(ptr, GLib.Source);
|
|
1949
3157
|
};
|
|
3158
|
+
/**
|
|
3159
|
+
* Utility method for #GPollableInputStream and #GPollableOutputStream
|
|
3160
|
+
* implementations. Creates a new #GSource, as with
|
|
3161
|
+
* g_pollable_source_new(), but also attaching `child_source` (with a
|
|
3162
|
+
* dummy callback), and @cancellable, if they are non-%NULL.
|
|
3163
|
+
* @param pollableStream - the stream associated with the
|
|
3164
|
+
* @param childSource - optional child source to attach
|
|
3165
|
+
* @param cancellable - optional #GCancellable to attach
|
|
3166
|
+
*/
|
|
1950
3167
|
export const pollableSourceNewFull = (pollableStream, childSource, cancellable) => {
|
|
1951
3168
|
const ptr = call("libgio-2.0.so.0", "g_pollable_source_new_full", [
|
|
1952
3169
|
{
|
|
@@ -1976,6 +3193,22 @@ export const pollableSourceNewFull = (pollableStream, childSource, cancellable)
|
|
|
1976
3193
|
});
|
|
1977
3194
|
return getObject(ptr, GLib.Source);
|
|
1978
3195
|
};
|
|
3196
|
+
/**
|
|
3197
|
+
* Tries to read from @stream, as with g_input_stream_read() (if
|
|
3198
|
+
* `blocking` is %TRUE) or g_pollable_input_stream_read_nonblocking()
|
|
3199
|
+
* (if `blocking` is %FALSE). This can be used to more easily share
|
|
3200
|
+
* code between blocking and non-blocking implementations of a method.
|
|
3201
|
+
*
|
|
3202
|
+
* If `blocking` is %FALSE, then `stream` must be a
|
|
3203
|
+
* #GPollableInputStream for which g_pollable_input_stream_can_poll()
|
|
3204
|
+
* returns %TRUE, or else the behavior is undefined. If `blocking` is
|
|
3205
|
+
* %TRUE, then `stream` does not need to be a #GPollableInputStream.
|
|
3206
|
+
* @param stream - a #GInputStream
|
|
3207
|
+
* @param buffer - a buffer to
|
|
3208
|
+
* @param count - the number of bytes to read
|
|
3209
|
+
* @param blocking - whether to do blocking I/O
|
|
3210
|
+
* @param cancellable - optional #GCancellable object, %NULL to ignore.
|
|
3211
|
+
*/
|
|
1979
3212
|
export const pollableStreamRead = (stream, buffer, count, blocking, cancellable) => {
|
|
1980
3213
|
const error = { value: null };
|
|
1981
3214
|
const result = call("libgio-2.0.so.0", "g_pollable_stream_read", [
|
|
@@ -2020,6 +3253,23 @@ export const pollableStreamRead = (stream, buffer, count, blocking, cancellable)
|
|
|
2020
3253
|
}
|
|
2021
3254
|
return result;
|
|
2022
3255
|
};
|
|
3256
|
+
/**
|
|
3257
|
+
* Tries to write to @stream, as with g_output_stream_write() (if
|
|
3258
|
+
* `blocking` is %TRUE) or g_pollable_output_stream_write_nonblocking()
|
|
3259
|
+
* (if `blocking` is %FALSE). This can be used to more easily share
|
|
3260
|
+
* code between blocking and non-blocking implementations of a method.
|
|
3261
|
+
*
|
|
3262
|
+
* If `blocking` is %FALSE, then `stream` must be a
|
|
3263
|
+
* #GPollableOutputStream for which
|
|
3264
|
+
* g_pollable_output_stream_can_poll() returns %TRUE or else the
|
|
3265
|
+
* behavior is undefined. If `blocking` is %TRUE, then `stream` does not
|
|
3266
|
+
* need to be a #GPollableOutputStream.
|
|
3267
|
+
* @param stream - a #GOutputStream.
|
|
3268
|
+
* @param buffer - the buffer
|
|
3269
|
+
* @param count - the number of bytes to write
|
|
3270
|
+
* @param blocking - whether to do blocking I/O
|
|
3271
|
+
* @param cancellable - optional #GCancellable object, %NULL to ignore.
|
|
3272
|
+
*/
|
|
2023
3273
|
export const pollableStreamWrite = (stream, buffer, count, blocking, cancellable) => {
|
|
2024
3274
|
const error = { value: null };
|
|
2025
3275
|
const result = call("libgio-2.0.so.0", "g_pollable_stream_write", [
|
|
@@ -2064,6 +3314,32 @@ export const pollableStreamWrite = (stream, buffer, count, blocking, cancellable
|
|
|
2064
3314
|
}
|
|
2065
3315
|
return result;
|
|
2066
3316
|
};
|
|
3317
|
+
/**
|
|
3318
|
+
* Tries to write `count` bytes to @stream, as with
|
|
3319
|
+
* g_output_stream_write_all(), but using g_pollable_stream_write()
|
|
3320
|
+
* rather than g_output_stream_write().
|
|
3321
|
+
*
|
|
3322
|
+
* On a successful write of `count` bytes, %TRUE is returned, and
|
|
3323
|
+
* `bytes_written` is set to @count.
|
|
3324
|
+
*
|
|
3325
|
+
* If there is an error during the operation (including
|
|
3326
|
+
* %G_IO_ERROR_WOULD_BLOCK in the non-blocking case), %FALSE is
|
|
3327
|
+
* returned and `error` is set to indicate the error status,
|
|
3328
|
+
* `bytes_written` is updated to contain the number of bytes written
|
|
3329
|
+
* into the stream before the error occurred.
|
|
3330
|
+
*
|
|
3331
|
+
* As with g_pollable_stream_write(), if `blocking` is %FALSE, then
|
|
3332
|
+
* `stream` must be a #GPollableOutputStream for which
|
|
3333
|
+
* g_pollable_output_stream_can_poll() returns %TRUE or else the
|
|
3334
|
+
* behavior is undefined. If `blocking` is %TRUE, then `stream` does not
|
|
3335
|
+
* need to be a #GPollableOutputStream.
|
|
3336
|
+
* @param stream - a #GOutputStream.
|
|
3337
|
+
* @param buffer - the buffer
|
|
3338
|
+
* @param count - the number of bytes to write
|
|
3339
|
+
* @param blocking - whether to do blocking I/O
|
|
3340
|
+
* @param bytesWritten - location to store the number of bytes that was
|
|
3341
|
+
* @param cancellable - optional #GCancellable object, %NULL to ignore.
|
|
3342
|
+
*/
|
|
2067
3343
|
export const pollableStreamWriteAll = (stream, buffer, count, blocking, bytesWritten, cancellable) => {
|
|
2068
3344
|
const error = { value: null };
|
|
2069
3345
|
const result = call("libgio-2.0.so.0", "g_pollable_stream_write_all", [
|
|
@@ -2115,10 +3391,18 @@ export const pollableStreamWriteAll = (stream, buffer, count, blocking, bytesWri
|
|
|
2115
3391
|
}
|
|
2116
3392
|
return result;
|
|
2117
3393
|
};
|
|
3394
|
+
/**
|
|
3395
|
+
* Gets a reference to the default #GPowerProfileMonitor for the system.
|
|
3396
|
+
*/
|
|
2118
3397
|
export const powerProfileMonitorDupDefault = () => {
|
|
2119
3398
|
const ptr = call("libgio-2.0.so.0", "g_power_profile_monitor_dup_default", [], { type: "gobject", borrowed: true });
|
|
2120
3399
|
return getObject(ptr, PowerProfileMonitor);
|
|
2121
3400
|
};
|
|
3401
|
+
/**
|
|
3402
|
+
* Find the `gio-proxy` extension point for a proxy implementation that supports
|
|
3403
|
+
* the specified protocol.
|
|
3404
|
+
* @param protocol - the proxy protocol name (e.g. http, socks, etc)
|
|
3405
|
+
*/
|
|
2122
3406
|
export const proxyGetDefaultForProtocol = (protocol) => {
|
|
2123
3407
|
const ptr = call("libgio-2.0.so.0", "g_proxy_get_default_for_protocol", [
|
|
2124
3408
|
{
|
|
@@ -2130,6 +3414,9 @@ export const proxyGetDefaultForProtocol = (protocol) => {
|
|
|
2130
3414
|
return null;
|
|
2131
3415
|
return getObject(ptr, Proxy);
|
|
2132
3416
|
};
|
|
3417
|
+
/**
|
|
3418
|
+
* Gets the default #GProxyResolver for the system.
|
|
3419
|
+
*/
|
|
2133
3420
|
export const proxyResolverGetDefault = () => {
|
|
2134
3421
|
const ptr = call("libgio-2.0.so.0", "g_proxy_resolver_get_default", [], {
|
|
2135
3422
|
type: "gobject",
|
|
@@ -2137,6 +3424,9 @@ export const proxyResolverGetDefault = () => {
|
|
|
2137
3424
|
});
|
|
2138
3425
|
return getObject(ptr, ProxyResolver);
|
|
2139
3426
|
};
|
|
3427
|
+
/**
|
|
3428
|
+
* Gets the #GResolver Error Quark.
|
|
3429
|
+
*/
|
|
2140
3430
|
export const resolverErrorQuark = () => {
|
|
2141
3431
|
return call("libgio-2.0.so.0", "g_resolver_error_quark", [], {
|
|
2142
3432
|
type: "int",
|
|
@@ -2144,6 +3434,9 @@ export const resolverErrorQuark = () => {
|
|
|
2144
3434
|
unsigned: true,
|
|
2145
3435
|
});
|
|
2146
3436
|
};
|
|
3437
|
+
/**
|
|
3438
|
+
* Gets the [struct@Gio.Resource] Error Quark.
|
|
3439
|
+
*/
|
|
2147
3440
|
export const resourceErrorQuark = () => {
|
|
2148
3441
|
return call("libgio-2.0.so.0", "g_resource_error_quark", [], {
|
|
2149
3442
|
type: "int",
|
|
@@ -2151,6 +3444,19 @@ export const resourceErrorQuark = () => {
|
|
|
2151
3444
|
unsigned: true,
|
|
2152
3445
|
});
|
|
2153
3446
|
};
|
|
3447
|
+
/**
|
|
3448
|
+
* Loads a binary resource bundle and creates a [struct@Gio.Resource]
|
|
3449
|
+
* representation of it, allowing you to query it for data.
|
|
3450
|
+
*
|
|
3451
|
+
* If you want to use this resource in the global resource namespace you need
|
|
3452
|
+
* to register it with [func@Gio.resources_register].
|
|
3453
|
+
*
|
|
3454
|
+
* If `filename` is empty or the data in it is corrupt,
|
|
3455
|
+
* %G_RESOURCE_ERROR_INTERNAL will be returned. If `filename` doesn’t exist, or
|
|
3456
|
+
* there is an error in reading it, an error from [ctor@GLib.MappedFile.new]
|
|
3457
|
+
* will be returned.
|
|
3458
|
+
* @param filename - the path of a filename to load, in the GLib filename encoding
|
|
3459
|
+
*/
|
|
2154
3460
|
export const resourceLoad = (filename) => {
|
|
2155
3461
|
const error = { value: null };
|
|
2156
3462
|
const ptr = call("libgio-2.0.so.0", "g_resource_load", [
|
|
@@ -2180,6 +3486,17 @@ export const resourceLoad = (filename) => {
|
|
|
2180
3486
|
}
|
|
2181
3487
|
return getObject(ptr, Resource);
|
|
2182
3488
|
};
|
|
3489
|
+
/**
|
|
3490
|
+
* Returns all the names of children at the specified `path` in the set of
|
|
3491
|
+
* globally registered resources.
|
|
3492
|
+
*
|
|
3493
|
+
* The return result is a `NULL` terminated list of strings which should
|
|
3494
|
+
* be released with [func@GLib.strfreev].
|
|
3495
|
+
*
|
|
3496
|
+
* `lookup_flags` controls the behaviour of the lookup.
|
|
3497
|
+
* @param path - A path name inside the resource
|
|
3498
|
+
* @param lookupFlags - A [flags@Gio.ResourceLookupFlags]
|
|
3499
|
+
*/
|
|
2183
3500
|
export const resourcesEnumerateChildren = (path, lookupFlags) => {
|
|
2184
3501
|
const error = { value: null };
|
|
2185
3502
|
const result = call("libgio-2.0.so.0", "g_resources_enumerate_children", [
|
|
@@ -2208,6 +3525,16 @@ export const resourcesEnumerateChildren = (path, lookupFlags) => {
|
|
|
2208
3525
|
}
|
|
2209
3526
|
return result;
|
|
2210
3527
|
};
|
|
3528
|
+
/**
|
|
3529
|
+
* Looks for a file at the specified `path` in the set of
|
|
3530
|
+
* globally registered resources and if found returns information about it.
|
|
3531
|
+
*
|
|
3532
|
+
* `lookup_flags` controls the behaviour of the lookup.
|
|
3533
|
+
* @param path - A path name inside the resource
|
|
3534
|
+
* @param lookupFlags - A [flags@Gio.ResourceLookupFlags]
|
|
3535
|
+
* @param size - a location to place the length of the contents of the file,
|
|
3536
|
+
* @param flags - a location to place the [flags@Gio.ResourceFlags] about the file,
|
|
3537
|
+
*/
|
|
2211
3538
|
export const resourcesGetInfo = (path, lookupFlags, size, flags) => {
|
|
2212
3539
|
const error = { value: null };
|
|
2213
3540
|
const result = call("libgio-2.0.so.0", "g_resources_get_info", [
|
|
@@ -2252,6 +3579,11 @@ export const resourcesGetInfo = (path, lookupFlags, size, flags) => {
|
|
|
2252
3579
|
}
|
|
2253
3580
|
return result;
|
|
2254
3581
|
};
|
|
3582
|
+
/**
|
|
3583
|
+
* Returns whether the specified `path` in the set of
|
|
3584
|
+
* globally registered resources has children.
|
|
3585
|
+
* @param path - A pathname
|
|
3586
|
+
*/
|
|
2255
3587
|
export const resourcesHasChildren = (path) => {
|
|
2256
3588
|
return call("libgio-2.0.so.0", "g_resources_has_children", [
|
|
2257
3589
|
{
|
|
@@ -2260,6 +3592,24 @@ export const resourcesHasChildren = (path) => {
|
|
|
2260
3592
|
},
|
|
2261
3593
|
], { type: "boolean" });
|
|
2262
3594
|
};
|
|
3595
|
+
/**
|
|
3596
|
+
* Looks for a file at the specified `path` in the set of
|
|
3597
|
+
* globally registered resources and returns a [struct@GLib.Bytes] that
|
|
3598
|
+
* lets you directly access the data in memory.
|
|
3599
|
+
*
|
|
3600
|
+
* The data is always followed by a zero byte, so you
|
|
3601
|
+
* can safely use the data as a C string. However, that byte
|
|
3602
|
+
* is not included in the size of the [struct@GLib.Bytes].
|
|
3603
|
+
*
|
|
3604
|
+
* For uncompressed resource files this is a pointer directly into
|
|
3605
|
+
* the resource bundle, which is typically in some read-only data section
|
|
3606
|
+
* in the program binary. For compressed files we allocate memory on
|
|
3607
|
+
* the heap and automatically uncompress the data.
|
|
3608
|
+
*
|
|
3609
|
+
* `lookup_flags` controls the behaviour of the lookup.
|
|
3610
|
+
* @param path - A path name inside the resource
|
|
3611
|
+
* @param lookupFlags - A [flags@Gio.ResourceLookupFlags]
|
|
3612
|
+
*/
|
|
2263
3613
|
export const resourcesLookupData = (path, lookupFlags) => {
|
|
2264
3614
|
const error = { value: null };
|
|
2265
3615
|
const ptr = call("libgio-2.0.so.0", "g_resources_lookup_data", [
|
|
@@ -2293,6 +3643,15 @@ export const resourcesLookupData = (path, lookupFlags) => {
|
|
|
2293
3643
|
}
|
|
2294
3644
|
return getObject(ptr, GLib.Bytes);
|
|
2295
3645
|
};
|
|
3646
|
+
/**
|
|
3647
|
+
* Looks for a file at the specified `path` in the set of
|
|
3648
|
+
* globally registered resources and returns a [class@Gio.InputStream]
|
|
3649
|
+
* that lets you read the data.
|
|
3650
|
+
*
|
|
3651
|
+
* `lookup_flags` controls the behaviour of the lookup.
|
|
3652
|
+
* @param path - A path name inside the resource
|
|
3653
|
+
* @param lookupFlags - A [flags@Gio.ResourceLookupFlags]
|
|
3654
|
+
*/
|
|
2296
3655
|
export const resourcesOpenStream = (path, lookupFlags) => {
|
|
2297
3656
|
const error = { value: null };
|
|
2298
3657
|
const ptr = call("libgio-2.0.so.0", "g_resources_open_stream", [
|
|
@@ -2321,6 +3680,14 @@ export const resourcesOpenStream = (path, lookupFlags) => {
|
|
|
2321
3680
|
}
|
|
2322
3681
|
return getObject(ptr, InputStream);
|
|
2323
3682
|
};
|
|
3683
|
+
/**
|
|
3684
|
+
* Registers the resource with the process-global set of resources.
|
|
3685
|
+
*
|
|
3686
|
+
* Once a resource is registered the files in it can be accessed
|
|
3687
|
+
* with the global resource lookup functions like
|
|
3688
|
+
* [func@Gio.resources_lookup_data].
|
|
3689
|
+
* @param resource - A [struct@Gio.Resource]
|
|
3690
|
+
*/
|
|
2324
3691
|
export const resourcesRegister = (resource) => {
|
|
2325
3692
|
call("libgio-2.0.so.0", "g_resources_register", [
|
|
2326
3693
|
{
|
|
@@ -2334,6 +3701,10 @@ export const resourcesRegister = (resource) => {
|
|
|
2334
3701
|
},
|
|
2335
3702
|
], { type: "undefined" });
|
|
2336
3703
|
};
|
|
3704
|
+
/**
|
|
3705
|
+
* Unregisters the resource from the process-global set of resources.
|
|
3706
|
+
* @param resource - A [struct@Gio.Resource]
|
|
3707
|
+
*/
|
|
2337
3708
|
export const resourcesUnregister = (resource) => {
|
|
2338
3709
|
call("libgio-2.0.so.0", "g_resources_unregister", [
|
|
2339
3710
|
{
|
|
@@ -2347,6 +3718,21 @@ export const resourcesUnregister = (resource) => {
|
|
|
2347
3718
|
},
|
|
2348
3719
|
], { type: "undefined" });
|
|
2349
3720
|
};
|
|
3721
|
+
/**
|
|
3722
|
+
* Gets the default system schema source.
|
|
3723
|
+
*
|
|
3724
|
+
* This function is not required for normal uses of #GSettings but it
|
|
3725
|
+
* may be useful to authors of plugin management systems or to those who
|
|
3726
|
+
* want to introspect the content of schemas.
|
|
3727
|
+
*
|
|
3728
|
+
* If no schemas are installed, %NULL will be returned.
|
|
3729
|
+
*
|
|
3730
|
+
* The returned source may actually consist of multiple schema sources
|
|
3731
|
+
* from different directories, depending on which directories were given
|
|
3732
|
+
* in `XDG_DATA_DIRS` and `GSETTINGS_SCHEMA_DIR`. For this reason, all
|
|
3733
|
+
* lookups performed against the default source should probably be done
|
|
3734
|
+
* recursively.
|
|
3735
|
+
*/
|
|
2350
3736
|
export const settingsSchemaSourceGetDefault = () => {
|
|
2351
3737
|
const ptr = call("libgio-2.0.so.0", "g_settings_schema_source_get_default", [], {
|
|
2352
3738
|
type: "boxed",
|
|
@@ -2358,6 +3744,15 @@ export const settingsSchemaSourceGetDefault = () => {
|
|
|
2358
3744
|
return null;
|
|
2359
3745
|
return getObject(ptr, SettingsSchemaSource);
|
|
2360
3746
|
};
|
|
3747
|
+
/**
|
|
3748
|
+
* Reports an error in an idle function. Similar to
|
|
3749
|
+
* g_simple_async_report_error_in_idle(), but takes a #GError rather
|
|
3750
|
+
* than building a new one.
|
|
3751
|
+
* @param object - a #GObject, or %NULL
|
|
3752
|
+
* @param callback - a #GAsyncReadyCallback.
|
|
3753
|
+
* @param userData - user data passed to @callback.
|
|
3754
|
+
* @param error - the #GError to report
|
|
3755
|
+
*/
|
|
2361
3756
|
export const simpleAsyncReportGerrorInIdle = (error, object, callback, userData) => {
|
|
2362
3757
|
call("libgio-2.0.so.0", "g_simple_async_report_gerror_in_idle", [
|
|
2363
3758
|
{
|
|
@@ -2386,6 +3781,9 @@ export const simpleAsyncReportGerrorInIdle = (error, object, callback, userData)
|
|
|
2386
3781
|
},
|
|
2387
3782
|
], { type: "undefined" });
|
|
2388
3783
|
};
|
|
3784
|
+
/**
|
|
3785
|
+
* Gets the default #GTlsBackend for the system.
|
|
3786
|
+
*/
|
|
2389
3787
|
export const tlsBackendGetDefault = () => {
|
|
2390
3788
|
const ptr = call("libgio-2.0.so.0", "g_tls_backend_get_default", [], {
|
|
2391
3789
|
type: "gobject",
|
|
@@ -2393,6 +3791,9 @@ export const tlsBackendGetDefault = () => {
|
|
|
2393
3791
|
});
|
|
2394
3792
|
return getObject(ptr, TlsBackend);
|
|
2395
3793
|
};
|
|
3794
|
+
/**
|
|
3795
|
+
* Gets the TLS channel binding error quark.
|
|
3796
|
+
*/
|
|
2396
3797
|
export const tlsChannelBindingErrorQuark = () => {
|
|
2397
3798
|
return call("libgio-2.0.so.0", "g_tls_channel_binding_error_quark", [], {
|
|
2398
3799
|
type: "int",
|
|
@@ -2400,6 +3801,17 @@ export const tlsChannelBindingErrorQuark = () => {
|
|
|
2400
3801
|
unsigned: true,
|
|
2401
3802
|
});
|
|
2402
3803
|
};
|
|
3804
|
+
/**
|
|
3805
|
+
* Creates a new #GTlsClientConnection wrapping `base_io_stream` (which
|
|
3806
|
+
* must have pollable input and output streams) which is assumed to
|
|
3807
|
+
* communicate with the server identified by @server_identity.
|
|
3808
|
+
*
|
|
3809
|
+
* See the documentation for #GTlsConnection:base-io-stream for restrictions
|
|
3810
|
+
* on when application code can run operations on the `base_io_stream` after
|
|
3811
|
+
* this function has returned.
|
|
3812
|
+
* @param baseIoStream - the #GIOStream to wrap
|
|
3813
|
+
* @param serverIdentity - the expected identity of the server
|
|
3814
|
+
*/
|
|
2403
3815
|
export const tlsClientConnectionNew = (baseIoStream, serverIdentity) => {
|
|
2404
3816
|
const error = { value: null };
|
|
2405
3817
|
const ptr = call("libgio-2.0.so.0", "g_tls_client_connection_new", [
|
|
@@ -2429,6 +3841,9 @@ export const tlsClientConnectionNew = (baseIoStream, serverIdentity) => {
|
|
|
2429
3841
|
}
|
|
2430
3842
|
return getObject(ptr, TlsClientConnection);
|
|
2431
3843
|
};
|
|
3844
|
+
/**
|
|
3845
|
+
* Gets the TLS error quark.
|
|
3846
|
+
*/
|
|
2432
3847
|
export const tlsErrorQuark = () => {
|
|
2433
3848
|
return call("libgio-2.0.so.0", "g_tls_error_quark", [], {
|
|
2434
3849
|
type: "int",
|
|
@@ -2436,6 +3851,13 @@ export const tlsErrorQuark = () => {
|
|
|
2436
3851
|
unsigned: true,
|
|
2437
3852
|
});
|
|
2438
3853
|
};
|
|
3854
|
+
/**
|
|
3855
|
+
* Creates a new #GTlsFileDatabase which uses anchor certificate authorities
|
|
3856
|
+
* in `anchors` to verify certificate chains.
|
|
3857
|
+
*
|
|
3858
|
+
* The certificates in `anchors` must be PEM encoded.
|
|
3859
|
+
* @param anchors - filename of anchor certificate authorities.
|
|
3860
|
+
*/
|
|
2439
3861
|
export const tlsFileDatabaseNew = (anchors) => {
|
|
2440
3862
|
const error = { value: null };
|
|
2441
3863
|
const ptr = call("libgio-2.0.so.0", "g_tls_file_database_new", [
|
|
@@ -2460,6 +3882,16 @@ export const tlsFileDatabaseNew = (anchors) => {
|
|
|
2460
3882
|
}
|
|
2461
3883
|
return getObject(ptr, TlsFileDatabase);
|
|
2462
3884
|
};
|
|
3885
|
+
/**
|
|
3886
|
+
* Creates a new #GTlsServerConnection wrapping `base_io_stream` (which
|
|
3887
|
+
* must have pollable input and output streams).
|
|
3888
|
+
*
|
|
3889
|
+
* See the documentation for #GTlsConnection:base-io-stream for restrictions
|
|
3890
|
+
* on when application code can run operations on the `base_io_stream` after
|
|
3891
|
+
* this function has returned.
|
|
3892
|
+
* @param baseIoStream - the #GIOStream to wrap
|
|
3893
|
+
* @param certificate - the default server certificate, or %NULL
|
|
3894
|
+
*/
|
|
2463
3895
|
export const tlsServerConnectionNew = (baseIoStream, certificate) => {
|
|
2464
3896
|
const error = { value: null };
|
|
2465
3897
|
const ptr = call("libgio-2.0.so.0", "g_tls_server_connection_new", [
|