Revert "chore(deps): pin puregotk nil-signal fix"
This reverts commit a161e348e2093172038390b0906448f0ae979a0d.
- commit
- 40378d5e4fd2372d054e49168ab2a6f67aedd0fd
- author
- brice · · 2026-07-14 17:59 UTC
- parent
- 8d647bb
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
905 files · +25263 -27842
M go.mod +1 -1
| @@ -11,7 +11,7 @@ require ( | |||
| 11 | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | |
| 12 | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | |
| 13 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | |
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | |
| 14 | + | github.com/bnema/puregotk v0.7.0 | |
| 15 | 15 | github.com/charmbracelet/bubbles v1.0.0 | |
| 16 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | |
| 17 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | |
| @@ -11,7 +11,7 @@ require ( | |||||
| 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | ||
| 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | ||
| 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | ||
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | 14 | + | github.com/bnema/puregotk v0.7.0 |
| 15 | github.com/charmbracelet/bubbles v1.0.0 | 15 | github.com/charmbracelet/bubbles v1.0.0 | ||
| 16 | github.com/charmbracelet/bubbletea v1.3.10 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | ||
| 17 | github.com/charmbracelet/lipgloss v1.1.0 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | ||
M go.sum +0 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/internal/core/core.go +4 -197 generated file: collapsed
M vendor/github.com/bnema/puregotk/pkg/core/core.go +0 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-dialog.go +64 -99 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-window.go +62 -95 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-accent-color.go +15 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-action-row.go +29 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-alert-dialog.go +47 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-target.go +27 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-util.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation.go +26 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application-window.go +22 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-avatar.go +25 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-banner.go +26 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bin.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bottom-sheet.go +38 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint-bin.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint.go +37 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-content.go +22 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-row.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-dots.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-lines.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel.go +37 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-layout.go +20 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-scrollable.go +22 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp.go +22 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-combo-row.go +33 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-dialog.go +38 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-easing.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-entry-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-enum-list-model.go +22 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-expander-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-flap.go +48 -61 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-fold-threshold-policy.go +1 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-header-bar.go +33 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-inline-view-switcher.go +24 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout-slot.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout.go +17 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-leaflet.go +56 -69 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-length-unit.go +14 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-main.go +15 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-message-dialog.go +44 -63 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-multi-layout-view.go +23 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-direction.go +1 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-split-view.go +32 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-view.go +49 -60 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-overlay-split-view.go +38 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-password-entry-row.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-dialog.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-group.go +26 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-page.go +33 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-row.go +22 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-window.go +29 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcut-label.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-dialog.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-item.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-section.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-item.go +37 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-section.go +27 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar.go +39 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spin-row.go +34 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner-paintable.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-split-button.go +34 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-animation.go +30 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-params.go +21 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-squeezer.go +44 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-status-page.go +24 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-style-manager.go +28 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipe-tracker.go +30 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipeable.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-switch-row.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-bar.go +32 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-button.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-overview.go +37 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-view.go +87 -123 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-timed-animation.go +28 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast-overlay.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast.go +36 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toggle-group.go +51 -64 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toolbar-view.go +35 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-version.go +16 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-stack.go +62 -78 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-bar.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-sidebar.go +22 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-title.go +23 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher.go +20 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window-title.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window.go +22 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-box.go +46 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-layout.go +46 -57 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/cairo/main.go +79 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkapplaunchcontext.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairo.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairocontext.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcicpparams.go +25 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkclipboard.go +32 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcolorstate.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentdeserializer.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentformats.go +31 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentprovider.go +28 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentserializer.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcursor.go +21 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevice.go +33 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicepad.go +22 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicetool.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplay.go +43 -51 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplaymanager.go +20 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexture.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexturebuilder.go +41 -53 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrag.go +28 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurface.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurfacesize.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrawcontext.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrop.go +24 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkenums.go +1 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkevents.go +118 -120 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframeclock.go +24 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframetimings.go +20 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkglcontext.go +36 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexture.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexturebuilder.go +35 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkkeys.go +22 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexture.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexturebuilder.go +35 -42 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmonitor.go +27 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpaintable.go +33 -63 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpango.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpixbuf.go +12 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopup.go +26 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopuplayout.go +32 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkrgba.go +21 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkseat.go +20 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksnapshot.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksurface.go +40 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktexture.go +31 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevel.go +66 -157 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevellayout.go +25 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevelsize.go +16 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktypes.go +72 -95 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkvulkancontext.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-animation.go +32 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-core.go +0 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-io.go +23 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-loader.go +22 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-simple-anim.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-transform.go +1 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf.go +79 -102 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/main.go +17 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gaction.go +31 -59 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactiongroup.go +39 -96 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactionmap.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gappinfo.go +116 -244 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplication.go +55 -79 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplicationcommandline.go +27 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncinitable.go +22 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncresult.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedinputstream.go +29 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedoutputstream.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbytesicon.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcancellable.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcharsetconverter.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcontenttype.go +26 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverter.go +20 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverterinputstream.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverteroutputstream.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcredentials.go +21 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatagrambased.go +30 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatainputstream.go +35 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdataoutputstream.go +23 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusactiongroup.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusaddress.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusauthobserver.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusconnection.go +66 -77 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbuserror.go +18 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusinterface.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusinterfaceskeleton.go +24 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusintrospection.go +56 -54 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmenumodel.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmessage.go +64 -88 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmethodinvocation.go +30 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusnameowning.go +15 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusnamewatching.go +15 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobject.go +17 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanager.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerclient.go +23 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerserver.go +20 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectproxy.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectskeleton.go +18 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusproxy.go +38 -42 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusserver.go +20 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusutils.go +22 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdebugcontroller.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdebugcontrollerdbus.go +14 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdrive.go +82 -214 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsclientconnection.go +24 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsconnection.go +80 -207 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsserverconnection.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gemblem.go +17 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gemblemedicon.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfile.go +450 -1148 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileattribute.go +19 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileenumerator.go +35 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileicon.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileinfo.go +84 -138 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileinputstream.go +23 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileiostream.go +27 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilemonitor.go +15 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilenamecompleter.go +16 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileoutputstream.go +27 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilterinputstream.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilteroutputstream.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gicon.go +25 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetaddress.go +34 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetaddressmask.go +21 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetsocketaddress.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginitable.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginputstream.go +48 -52 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioenums.go +1 -90 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioerror.go +13 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giomodule.go +29 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioscheduler.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giostream.go +29 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giotypes.go +60 -70 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giptosmessage.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gipv6tclassmessage.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/glistmodel.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gliststore.go +24 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gloadableicon.go +23 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemoryinputstream.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemorymonitor.go +12 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemoryoutputstream.go +19 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmenu.go +50 -62 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmenumodel.go +33 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmount.go +86 -215 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmountoperation.go +32 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnativesocketaddress.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnativevolumemonitor.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkaddress.go +21 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworking.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkmonitor.go +31 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkservice.go +19 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnotification.go +26 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/goutputstream.go +72 -86 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpermission.go +33 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableinputstream.go +22 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableoutputstream.go +27 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableutils.go +15 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpowerprofilemonitor.go +16 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpropertyaction.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxy.go +27 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyaddress.go +21 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyaddressenumerator.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyresolver.go +27 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gremoteactiongroup.go +15 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gresolver.go +67 -75 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gresource.go +23 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gseekable.go +27 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettings.go +67 -99 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettingsbackend.go +24 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettingsschema.go +43 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleaction.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleactiongroup.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleasyncresult.go +40 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleiostream.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimplepermission.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleproxyresolver.go +16 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocket.go +72 -87 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketaddress.go +19 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketaddressenumerator.go +20 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketclient.go +44 -54 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketconnectable.go +17 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketconnection.go +21 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketcontrolmessage.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketlistener.go +25 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketservice.go +16 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsrvtarget.go +11 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsubprocess.go +39 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsubprocesslauncher.go +31 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtask.go +52 -70 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtcpconnection.go +14 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtcpwrapperconnection.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtestdbus.go +22 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gthemedicon.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gthreadedresolver.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gthreadedsocketservice.go +12 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsbackend.go +33 -69 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlscertificate.go +29 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsclientconnection.go +29 -55 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsconnection.go +46 -56
| @@ -76,7 +76,7 @@ func (x *TlsConnectionClass) OverrideHandshake(cb func(*TlsConnection, *Cancella | |||
| 76 | 76 | if cb == nil { | |
| 77 | 77 | x.xHandshake = 0 | |
| 78 | 78 | } else { | |
| 79 | - | x.xHandshake = purego.NewCallback(func(ConnVarp uintptr, CancellableVarp uintptr, cerrp **glib.Error) bool { | |
| 79 | + | x.xHandshake = purego.NewCallback(func(ConnVarp uintptr, CancellableVarp uintptr) bool { | |
| 80 | 80 | return cb(TlsConnectionNewFromInternalPtr(ConnVarp), CancellableNewFromInternalPtr(CancellableVarp)) | |
| 81 | 81 | }) | |
| 82 | 82 | } | |
| @@ -88,11 +88,10 @@ func (x *TlsConnectionClass) GetHandshake() func(*TlsConnection, *Cancellable) b | |||
| 88 | 88 | if x.xHandshake == 0 { | |
| 89 | 89 | return nil | |
| 90 | 90 | } | |
| 91 | - | var rawCallback func(ConnVarp uintptr, CancellableVarp uintptr, cerrp **glib.Error) bool | |
| 91 | + | var rawCallback func(ConnVarp uintptr, CancellableVarp uintptr) bool | |
| 92 | 92 | purego.RegisterFunc(&rawCallback, x.xHandshake) | |
| 93 | 93 | return func(ConnVar *TlsConnection, CancellableVar *Cancellable) bool { | |
| 94 | - | var cerr *glib.Error | |
| 95 | - | return rawCallback(ConnVar.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| 94 | + | return rawCallback(ConnVar.GoPointer(), CancellableVar.GoPointer()) | |
| 96 | 95 | } | |
| 97 | 96 | } | |
| 98 | 97 | ||
| @@ -127,7 +126,7 @@ func (x *TlsConnectionClass) OverrideHandshakeFinish(cb func(*TlsConnection, Asy | |||
| 127 | 126 | if cb == nil { | |
| 128 | 127 | x.xHandshakeFinish = 0 | |
| 129 | 128 | } else { | |
| 130 | - | x.xHandshakeFinish = purego.NewCallback(func(ConnVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) bool { | |
| 129 | + | x.xHandshakeFinish = purego.NewCallback(func(ConnVarp uintptr, ResultVarp uintptr) bool { | |
| 131 | 130 | return cb(TlsConnectionNewFromInternalPtr(ConnVarp), &AsyncResultBase{Ptr: ResultVarp}) | |
| 132 | 131 | }) | |
| 133 | 132 | } | |
| @@ -139,11 +138,10 @@ func (x *TlsConnectionClass) GetHandshakeFinish() func(*TlsConnection, AsyncResu | |||
| 139 | 138 | if x.xHandshakeFinish == 0 { | |
| 140 | 139 | return nil | |
| 141 | 140 | } | |
| 142 | - | var rawCallback func(ConnVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) bool | |
| 141 | + | var rawCallback func(ConnVarp uintptr, ResultVarp uintptr) bool | |
| 143 | 142 | purego.RegisterFunc(&rawCallback, x.xHandshakeFinish) | |
| 144 | 143 | return func(ConnVar *TlsConnection, ResultVar AsyncResult) bool { | |
| 145 | - | var cerr *glib.Error | |
| 146 | - | return rawCallback(ConnVar.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 144 | + | return rawCallback(ConnVar.GoPointer(), ResultVar.GoPointer()) | |
| 147 | 145 | } | |
| 148 | 146 | } | |
| 149 | 147 | ||
| @@ -153,7 +151,7 @@ func (x *TlsConnectionClass) OverrideGetBindingData(cb func(*TlsConnection, TlsC | |||
| 153 | 151 | if cb == nil { | |
| 154 | 152 | x.xGetBindingData = 0 | |
| 155 | 153 | } else { | |
| 156 | - | x.xGetBindingData = purego.NewCallback(func(ConnVarp uintptr, TypeVarp TlsChannelBindingType, DataVarp []byte, cerrp **glib.Error) bool { | |
| 154 | + | x.xGetBindingData = purego.NewCallback(func(ConnVarp uintptr, TypeVarp TlsChannelBindingType, DataVarp []byte) bool { | |
| 157 | 155 | return cb(TlsConnectionNewFromInternalPtr(ConnVarp), TypeVarp, DataVarp) | |
| 158 | 156 | }) | |
| 159 | 157 | } | |
| @@ -165,11 +163,10 @@ func (x *TlsConnectionClass) GetGetBindingData() func(*TlsConnection, TlsChannel | |||
| 165 | 163 | if x.xGetBindingData == 0 { | |
| 166 | 164 | return nil | |
| 167 | 165 | } | |
| 168 | - | var rawCallback func(ConnVarp uintptr, TypeVarp TlsChannelBindingType, DataVarp []byte, cerrp **glib.Error) bool | |
| 166 | + | var rawCallback func(ConnVarp uintptr, TypeVarp TlsChannelBindingType, DataVarp []byte) bool | |
| 169 | 167 | purego.RegisterFunc(&rawCallback, x.xGetBindingData) | |
| 170 | 168 | return func(ConnVar *TlsConnection, TypeVar TlsChannelBindingType, DataVar []byte) bool { | |
| 171 | - | var cerr *glib.Error | |
| 172 | - | return rawCallback(ConnVar.GoPointer(), TypeVar, DataVar, &cerr) | |
| 169 | + | return rawCallback(ConnVar.GoPointer(), TypeVar, DataVar) | |
| 173 | 170 | } | |
| 174 | 171 | } | |
| 175 | 172 | ||
| @@ -218,8 +215,6 @@ var xTlsChannelBindingErrorQuark func() glib.Quark | |||
| 218 | 215 | ||
| 219 | 216 | // Gets the TLS channel binding error quark. | |
| 220 | 217 | func TlsChannelBindingErrorQuark() glib.Quark { | |
| 221 | - | core.LazyRegister(&xTlsChannelBindingErrorQuark, "GIO", "g_tls_channel_binding_error_quark", false) | |
| 222 | - | ||
| 223 | 218 | cret := xTlsChannelBindingErrorQuark() | |
| 224 | 219 | return cret | |
| 225 | 220 | } | |
| @@ -228,8 +223,6 @@ var xTlsErrorQuark func() glib.Quark | |||
| 228 | 223 | ||
| 229 | 224 | // Gets the TLS error quark. | |
| 230 | 225 | func TlsErrorQuark() glib.Quark { | |
| 231 | - | core.LazyRegister(&xTlsErrorQuark, "GIO", "g_tls_error_quark", false) | |
| 232 | - | ||
| 233 | 226 | cret := xTlsErrorQuark() | |
| 234 | 227 | return cret | |
| 235 | 228 | } | |
| @@ -248,7 +241,6 @@ type TlsConnection struct { | |||
| 248 | 241 | var xTlsConnectionGLibType func() types.GType | |
| 249 | 242 | ||
| 250 | 243 | func TlsConnectionGLibType() types.GType { | |
| 251 | - | core.LazyRegister(&xTlsConnectionGLibType, "GIO", "g_tls_connection_get_type", false) | |
| 252 | 244 | return xTlsConnectionGLibType() | |
| 253 | 245 | } | |
| 254 | 246 | ||
| @@ -263,8 +255,6 @@ var xTlsConnectionEmitAcceptCertificate func(uintptr, uintptr, TlsCertificateFla | |||
| 263 | 255 | // Used by #GTlsConnection implementations to emit the | |
| 264 | 256 | // #GTlsConnection::accept-certificate signal. | |
| 265 | 257 | func (x *TlsConnection) EmitAcceptCertificate(PeerCertVar *TlsCertificate, ErrorsVar TlsCertificateFlags) bool { | |
| 266 | - | core.LazyRegister(&xTlsConnectionEmitAcceptCertificate, "GIO", "g_tls_connection_emit_accept_certificate", false) | |
| 267 | - | ||
| 268 | 258 | cret := xTlsConnectionEmitAcceptCertificate(x.GoPointer(), PeerCertVar.GoPointer(), ErrorsVar) | |
| 269 | 259 | return cret | |
| 270 | 260 | } | |
| @@ -274,7 +264,6 @@ var xTlsConnectionGetCertificate func(uintptr) uintptr | |||
| 274 | 264 | // Gets @conn's certificate, as set by | |
| 275 | 265 | // g_tls_connection_set_certificate(). | |
| 276 | 266 | func (x *TlsConnection) GetCertificate() *TlsCertificate { | |
| 277 | - | core.LazyRegister(&xTlsConnectionGetCertificate, "GIO", "g_tls_connection_get_certificate", false) | |
| 278 | 267 | var cls *TlsCertificate | |
| 279 | 268 | ||
| 280 | 269 | cret := xTlsConnectionGetCertificate(x.GoPointer()) | |
| @@ -304,7 +293,6 @@ var xTlsConnectionGetChannelBindingData func(uintptr, TlsChannelBindingType, *[] | |||
| 304 | 293 | // support @type or the binding data is not available yet due to additional | |
| 305 | 294 | // negotiation or input required. | |
| 306 | 295 | func (x *TlsConnection) GetChannelBindingData(TypeVar TlsChannelBindingType, DataVar *[]byte) (bool, error) { | |
| 307 | - | core.LazyRegister(&xTlsConnectionGetChannelBindingData, "GIO", "g_tls_connection_get_channel_binding_data", false) | |
| 308 | 296 | var cerr *glib.Error | |
| 309 | 297 | ||
| 310 | 298 | cret := xTlsConnectionGetChannelBindingData(x.GoPointer(), TypeVar, DataVar, &cerr) | |
| @@ -325,8 +313,6 @@ var xTlsConnectionGetCiphersuiteName func(uintptr) string | |||
| 325 | 313 | // displayed to the user for informative purposes only, and parsing it | |
| 326 | 314 | // is not recommended. | |
| 327 | 315 | func (x *TlsConnection) GetCiphersuiteName() string { | |
| 328 | - | core.LazyRegister(&xTlsConnectionGetCiphersuiteName, "GIO", "g_tls_connection_get_ciphersuite_name", false) | |
| 329 | - | ||
| 330 | 316 | cret := xTlsConnectionGetCiphersuiteName(x.GoPointer()) | |
| 331 | 317 | return cret | |
| 332 | 318 | } | |
| @@ -336,7 +322,6 @@ var xTlsConnectionGetDatabase func(uintptr) uintptr | |||
| 336 | 322 | // Gets the certificate database that @conn uses to verify | |
| 337 | 323 | // peer certificates. See g_tls_connection_set_database(). | |
| 338 | 324 | func (x *TlsConnection) GetDatabase() *TlsDatabase { | |
| 339 | - | core.LazyRegister(&xTlsConnectionGetDatabase, "GIO", "g_tls_connection_get_database", false) | |
| 340 | 325 | var cls *TlsDatabase | |
| 341 | 326 | ||
| 342 | 327 | cret := xTlsConnectionGetDatabase(x.GoPointer()) | |
| @@ -356,7 +341,6 @@ var xTlsConnectionGetInteraction func(uintptr) uintptr | |||
| 356 | 341 | // for things like prompting the user for passwords. If %NULL is returned, then | |
| 357 | 342 | // no user interaction will occur for this connection. | |
| 358 | 343 | func (x *TlsConnection) GetInteraction() *TlsInteraction { | |
| 359 | - | core.LazyRegister(&xTlsConnectionGetInteraction, "GIO", "g_tls_connection_get_interaction", false) | |
| 360 | 344 | var cls *TlsInteraction | |
| 361 | 345 | ||
| 362 | 346 | cret := xTlsConnectionGetInteraction(x.GoPointer()) | |
| @@ -380,8 +364,6 @@ var xTlsConnectionGetNegotiatedProtocol func(uintptr) string | |||
| 380 | 364 | // does not support ALPN, then this will be %NULL. See | |
| 381 | 365 | // g_tls_connection_set_advertised_protocols(). | |
| 382 | 366 | func (x *TlsConnection) GetNegotiatedProtocol() string { | |
| 383 | - | core.LazyRegister(&xTlsConnectionGetNegotiatedProtocol, "GIO", "g_tls_connection_get_negotiated_protocol", false) | |
| 384 | - | ||
| 385 | 367 | cret := xTlsConnectionGetNegotiatedProtocol(x.GoPointer()) | |
| 386 | 368 | return cret | |
| 387 | 369 | } | |
| @@ -392,7 +374,6 @@ var xTlsConnectionGetPeerCertificate func(uintptr) uintptr | |||
| 392 | 374 | // or failed. (It is not set during the emission of | |
| 393 | 375 | // #GTlsConnection::accept-certificate.) | |
| 394 | 376 | func (x *TlsConnection) GetPeerCertificate() *TlsCertificate { | |
| 395 | - | core.LazyRegister(&xTlsConnectionGetPeerCertificate, "GIO", "g_tls_connection_get_peer_certificate", false) | |
| 396 | 377 | var cls *TlsCertificate | |
| 397 | 378 | ||
| 398 | 379 | cret := xTlsConnectionGetPeerCertificate(x.GoPointer()) | |
| @@ -414,8 +395,6 @@ var xTlsConnectionGetPeerCertificateErrors func(uintptr) TlsCertificateFlags | |||
| 414 | 395 | // | |
| 415 | 396 | // See #GTlsConnection:peer-certificate-errors for more information. | |
| 416 | 397 | func (x *TlsConnection) GetPeerCertificateErrors() TlsCertificateFlags { | |
| 417 | - | core.LazyRegister(&xTlsConnectionGetPeerCertificateErrors, "GIO", "g_tls_connection_get_peer_certificate_errors", false) | |
| 418 | - | ||
| 419 | 398 | cret := xTlsConnectionGetPeerCertificateErrors(x.GoPointer()) | |
| 420 | 399 | return cret | |
| 421 | 400 | } | |
| @@ -427,8 +406,6 @@ var xTlsConnectionGetProtocolVersion func(uintptr) TlsProtocolVersion | |||
| 427 | 406 | // has been closed, or if the TLS backend has implemented a protocol version | |
| 428 | 407 | // that is not a recognized #GTlsProtocolVersion. | |
| 429 | 408 | func (x *TlsConnection) GetProtocolVersion() TlsProtocolVersion { | |
| 430 | - | core.LazyRegister(&xTlsConnectionGetProtocolVersion, "GIO", "g_tls_connection_get_protocol_version", false) | |
| 431 | - | ||
| 432 | 409 | cret := xTlsConnectionGetProtocolVersion(x.GoPointer()) | |
| 433 | 410 | return cret | |
| 434 | 411 | } | |
| @@ -438,8 +415,6 @@ var xTlsConnectionGetRehandshakeMode func(uintptr) TlsRehandshakeMode | |||
| 438 | 415 | // Gets @conn rehandshaking mode. See | |
| 439 | 416 | // g_tls_connection_set_rehandshake_mode() for details. | |
| 440 | 417 | func (x *TlsConnection) GetRehandshakeMode() TlsRehandshakeMode { | |
| 441 | - | core.LazyRegister(&xTlsConnectionGetRehandshakeMode, "GIO", "g_tls_connection_get_rehandshake_mode", false) | |
| 442 | - | ||
| 443 | 418 | cret := xTlsConnectionGetRehandshakeMode(x.GoPointer()) | |
| 444 | 419 | return cret | |
| 445 | 420 | } | |
| @@ -450,8 +425,6 @@ var xTlsConnectionGetRequireCloseNotify func(uintptr) bool | |||
| 450 | 425 | // when the connection is closed. See | |
| 451 | 426 | // g_tls_connection_set_require_close_notify() for details. | |
| 452 | 427 | func (x *TlsConnection) GetRequireCloseNotify() bool { | |
| 453 | - | core.LazyRegister(&xTlsConnectionGetRequireCloseNotify, "GIO", "g_tls_connection_get_require_close_notify", false) | |
| 454 | - | ||
| 455 | 428 | cret := xTlsConnectionGetRequireCloseNotify(x.GoPointer()) | |
| 456 | 429 | return cret | |
| 457 | 430 | } | |
| @@ -461,8 +434,6 @@ var xTlsConnectionGetUseSystemCertdb func(uintptr) bool | |||
| 461 | 434 | // Gets whether @conn uses the system certificate database to verify | |
| 462 | 435 | // peer certificates. See g_tls_connection_set_use_system_certdb(). | |
| 463 | 436 | func (x *TlsConnection) GetUseSystemCertdb() bool { | |
| 464 | - | core.LazyRegister(&xTlsConnectionGetUseSystemCertdb, "GIO", "g_tls_connection_get_use_system_certdb", false) | |
| 465 | - | ||
| 466 | 437 | cret := xTlsConnectionGetUseSystemCertdb(x.GoPointer()) | |
| 467 | 438 | return cret | |
| 468 | 439 | } | |
| @@ -501,7 +472,6 @@ var xTlsConnectionHandshake func(uintptr, uintptr, **glib.Error) bool | |||
| 501 | 472 | // #GTlsConnection::accept_certificate may be emitted during the | |
| 502 | 473 | // handshake. | |
| 503 | 474 | func (x *TlsConnection) Handshake(CancellableVar *Cancellable) (bool, error) { | |
| 504 | - | core.LazyRegister(&xTlsConnectionHandshake, "GIO", "g_tls_connection_handshake", false) | |
| 505 | 475 | var cerr *glib.Error | |
| 506 | 476 | ||
| 507 | 477 | cret := xTlsConnectionHandshake(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| @@ -516,8 +486,6 @@ var xTlsConnectionHandshakeAsync func(uintptr, int, uintptr, uintptr, uintptr) | |||
| 516 | 486 | // Asynchronously performs a TLS handshake on @conn. See | |
| 517 | 487 | // g_tls_connection_handshake() for more information. | |
| 518 | 488 | func (x *TlsConnection) HandshakeAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 519 | - | core.LazyRegister(&xTlsConnectionHandshakeAsync, "GIO", "g_tls_connection_handshake_async", false) | |
| 520 | - | ||
| 521 | 489 | xTlsConnectionHandshakeAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 522 | 490 | } | |
| 523 | 491 | ||
| @@ -526,7 +494,6 @@ var xTlsConnectionHandshakeFinish func(uintptr, uintptr, **glib.Error) bool | |||
| 526 | 494 | // Finish an asynchronous TLS handshake operation. See | |
| 527 | 495 | // g_tls_connection_handshake() for more information. | |
| 528 | 496 | func (x *TlsConnection) HandshakeFinish(ResultVar AsyncResult) (bool, error) { | |
| 529 | - | core.LazyRegister(&xTlsConnectionHandshakeFinish, "GIO", "g_tls_connection_handshake_finish", false) | |
| 530 | 497 | var cerr *glib.Error | |
| 531 | 498 | ||
| 532 | 499 | cret := xTlsConnectionHandshakeFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| @@ -549,8 +516,6 @@ var xTlsConnectionSetAdvertisedProtocols func(uintptr, []string) | |||
| 549 | 516 | // See [IANA TLS ALPN Protocol IDs](https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids) | |
| 550 | 517 | // for a list of registered protocol IDs. | |
| 551 | 518 | func (x *TlsConnection) SetAdvertisedProtocols(ProtocolsVar []string) { | |
| 552 | - | core.LazyRegister(&xTlsConnectionSetAdvertisedProtocols, "GIO", "g_tls_connection_set_advertised_protocols", false) | |
| 553 | - | ||
| 554 | 519 | xTlsConnectionSetAdvertisedProtocols(x.GoPointer(), ProtocolsVar) | |
| 555 | 520 | } | |
| 556 | 521 | ||
| @@ -575,8 +540,6 @@ var xTlsConnectionSetCertificate func(uintptr, uintptr) | |||
| 575 | 540 | // that g_tls_client_connection_get_accepted_cas() will return | |
| 576 | 541 | // non-%NULL.) | |
| 577 | 542 | func (x *TlsConnection) SetCertificate(CertificateVar *TlsCertificate) { | |
| 578 | - | core.LazyRegister(&xTlsConnectionSetCertificate, "GIO", "g_tls_connection_set_certificate", false) | |
| 579 | - | ||
| 580 | 543 | xTlsConnectionSetCertificate(x.GoPointer(), CertificateVar.GoPointer()) | |
| 581 | 544 | } | |
| 582 | 545 | ||
| @@ -594,8 +557,6 @@ var xTlsConnectionSetDatabase func(uintptr, uintptr) | |||
| 594 | 557 | // There are nonintuitive security implications when using a non-default | |
| 595 | 558 | // database. See #GTlsConnection:database for details. | |
| 596 | 559 | func (x *TlsConnection) SetDatabase(DatabaseVar *TlsDatabase) { | |
| 597 | - | core.LazyRegister(&xTlsConnectionSetDatabase, "GIO", "g_tls_connection_set_database", false) | |
| 598 | - | ||
| 599 | 560 | xTlsConnectionSetDatabase(x.GoPointer(), DatabaseVar.GoPointer()) | |
| 600 | 561 | } | |
| 601 | 562 | ||
| @@ -608,8 +569,6 @@ var xTlsConnectionSetInteraction func(uintptr, uintptr) | |||
| 608 | 569 | // #GTlsInteraction. %NULL can also be provided if no user interaction | |
| 609 | 570 | // should occur for this connection. | |
| 610 | 571 | func (x *TlsConnection) SetInteraction(InteractionVar *TlsInteraction) { | |
| 611 | - | core.LazyRegister(&xTlsConnectionSetInteraction, "GIO", "g_tls_connection_set_interaction", false) | |
| 612 | - | ||
| 613 | 572 | xTlsConnectionSetInteraction(x.GoPointer(), InteractionVar.GoPointer()) | |
| 614 | 573 | } | |
| 615 | 574 | ||
| @@ -620,8 +579,6 @@ var xTlsConnectionSetRehandshakeMode func(uintptr, TlsRehandshakeMode) | |||
| 620 | 579 | // the TLS protocol, replaced by separate post-handshake authentication and | |
| 621 | 580 | // rekey operations. | |
| 622 | 581 | func (x *TlsConnection) SetRehandshakeMode(ModeVar TlsRehandshakeMode) { | |
| 623 | - | core.LazyRegister(&xTlsConnectionSetRehandshakeMode, "GIO", "g_tls_connection_set_rehandshake_mode", false) | |
| 624 | - | ||
| 625 | 582 | xTlsConnectionSetRehandshakeMode(x.GoPointer(), ModeVar) | |
| 626 | 583 | } | |
| 627 | 584 | ||
| @@ -655,8 +612,6 @@ var xTlsConnectionSetRequireCloseNotify func(uintptr, bool) | |||
| 655 | 612 | // than closing @conn itself, but note that this may only be done when no other | |
| 656 | 613 | // operations are pending on @conn or the base I/O stream. | |
| 657 | 614 | func (x *TlsConnection) SetRequireCloseNotify(RequireCloseNotifyVar bool) { | |
| 658 | - | core.LazyRegister(&xTlsConnectionSetRequireCloseNotify, "GIO", "g_tls_connection_set_require_close_notify", false) | |
| 659 | - | ||
| 660 | 615 | xTlsConnectionSetRequireCloseNotify(x.GoPointer(), RequireCloseNotifyVar) | |
| 661 | 616 | } | |
| 662 | 617 | ||
| @@ -670,8 +625,6 @@ var xTlsConnectionSetUseSystemCertdb func(uintptr, bool) | |||
| 670 | 625 | // client-side connections, unless that bit is not set in | |
| 671 | 626 | // #GTlsClientConnection:validation-flags). | |
| 672 | 627 | func (x *TlsConnection) SetUseSystemCertdb(UseSystemCertdbVar bool) { | |
| 673 | - | core.LazyRegister(&xTlsConnectionSetUseSystemCertdb, "GIO", "g_tls_connection_set_use_system_certdb", false) | |
| 674 | - | ||
| 675 | 628 | xTlsConnectionSetUseSystemCertdb(x.GoPointer(), UseSystemCertdbVar) | |
| 676 | 629 | } | |
| 677 | 630 | ||
| @@ -833,4 +786,41 @@ func (x *TlsConnection) ConnectAcceptCertificate(cb *func(TlsConnection, uintptr | |||
| 833 | 786 | func init() { | |
| 834 | 787 | core.SetPackageName("GIO", "gio-2.0") | |
| 835 | 788 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | |
| 789 | + | var libs []uintptr | |
| 790 | + | for _, libPath := range core.GetPaths("GIO") { | |
| 791 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 792 | + | if err != nil { | |
| 793 | + | panic(err) | |
| 794 | + | } | |
| 795 | + | libs = append(libs, lib) | |
| 796 | + | } | |
| 797 | + | ||
| 798 | + | core.PuregoSafeRegister(&xTlsChannelBindingErrorQuark, libs, "g_tls_channel_binding_error_quark") | |
| 799 | + | core.PuregoSafeRegister(&xTlsErrorQuark, libs, "g_tls_error_quark") | |
| 800 | + | ||
| 801 | + | core.PuregoSafeRegister(&xTlsConnectionGLibType, libs, "g_tls_connection_get_type") | |
| 802 | + | ||
| 803 | + | core.PuregoSafeRegister(&xTlsConnectionEmitAcceptCertificate, libs, "g_tls_connection_emit_accept_certificate") | |
| 804 | + | core.PuregoSafeRegister(&xTlsConnectionGetCertificate, libs, "g_tls_connection_get_certificate") | |
| 805 | + | core.PuregoSafeRegister(&xTlsConnectionGetChannelBindingData, libs, "g_tls_connection_get_channel_binding_data") | |
| 806 | + | core.PuregoSafeRegister(&xTlsConnectionGetCiphersuiteName, libs, "g_tls_connection_get_ciphersuite_name") | |
| 807 | + | core.PuregoSafeRegister(&xTlsConnectionGetDatabase, libs, "g_tls_connection_get_database") | |
| 808 | + | core.PuregoSafeRegister(&xTlsConnectionGetInteraction, libs, "g_tls_connection_get_interaction") | |
| 809 | + | core.PuregoSafeRegister(&xTlsConnectionGetNegotiatedProtocol, libs, "g_tls_connection_get_negotiated_protocol") | |
| 810 | + | core.PuregoSafeRegister(&xTlsConnectionGetPeerCertificate, libs, "g_tls_connection_get_peer_certificate") | |
| 811 | + | core.PuregoSafeRegister(&xTlsConnectionGetPeerCertificateErrors, libs, "g_tls_connection_get_peer_certificate_errors") | |
| 812 | + | core.PuregoSafeRegister(&xTlsConnectionGetProtocolVersion, libs, "g_tls_connection_get_protocol_version") | |
| 813 | + | core.PuregoSafeRegister(&xTlsConnectionGetRehandshakeMode, libs, "g_tls_connection_get_rehandshake_mode") | |
| 814 | + | core.PuregoSafeRegister(&xTlsConnectionGetRequireCloseNotify, libs, "g_tls_connection_get_require_close_notify") | |
| 815 | + | core.PuregoSafeRegister(&xTlsConnectionGetUseSystemCertdb, libs, "g_tls_connection_get_use_system_certdb") | |
| 816 | + | core.PuregoSafeRegister(&xTlsConnectionHandshake, libs, "g_tls_connection_handshake") | |
| 817 | + | core.PuregoSafeRegister(&xTlsConnectionHandshakeAsync, libs, "g_tls_connection_handshake_async") | |
| 818 | + | core.PuregoSafeRegister(&xTlsConnectionHandshakeFinish, libs, "g_tls_connection_handshake_finish") | |
| 819 | + | core.PuregoSafeRegister(&xTlsConnectionSetAdvertisedProtocols, libs, "g_tls_connection_set_advertised_protocols") | |
| 820 | + | core.PuregoSafeRegister(&xTlsConnectionSetCertificate, libs, "g_tls_connection_set_certificate") | |
| 821 | + | core.PuregoSafeRegister(&xTlsConnectionSetDatabase, libs, "g_tls_connection_set_database") | |
| 822 | + | core.PuregoSafeRegister(&xTlsConnectionSetInteraction, libs, "g_tls_connection_set_interaction") | |
| 823 | + | core.PuregoSafeRegister(&xTlsConnectionSetRehandshakeMode, libs, "g_tls_connection_set_rehandshake_mode") | |
| 824 | + | core.PuregoSafeRegister(&xTlsConnectionSetRequireCloseNotify, libs, "g_tls_connection_set_require_close_notify") | |
| 825 | + | core.PuregoSafeRegister(&xTlsConnectionSetUseSystemCertdb, libs, "g_tls_connection_set_use_system_certdb") | |
| 836 | 826 | } | |
| @@ -76,7 +76,7 @@ func (x *TlsConnectionClass) OverrideHandshake(cb func(*TlsConnection, *Cancella | |||||
| 76 | if cb == nil { | 76 | if cb == nil { | ||
| 77 | x.xHandshake = 0 | 77 | x.xHandshake = 0 | ||
| 78 | } else { | 78 | } else { | ||
| 79 | - | x.xHandshake = purego.NewCallback(func(ConnVarp uintptr, CancellableVarp uintptr, cerrp **glib.Error) bool { | 79 | + | x.xHandshake = purego.NewCallback(func(ConnVarp uintptr, CancellableVarp uintptr) bool { |
| 80 | return cb(TlsConnectionNewFromInternalPtr(ConnVarp), CancellableNewFromInternalPtr(CancellableVarp)) | 80 | return cb(TlsConnectionNewFromInternalPtr(ConnVarp), CancellableNewFromInternalPtr(CancellableVarp)) | ||
| 81 | }) | 81 | }) | ||
| 82 | } | 82 | } | ||
| @@ -88,11 +88,10 @@ func (x *TlsConnectionClass) GetHandshake() func(*TlsConnection, *Cancellable) b | |||||
| 88 | if x.xHandshake == 0 { | 88 | if x.xHandshake == 0 { | ||
| 89 | return nil | 89 | return nil | ||
| 90 | } | 90 | } | ||
| 91 | - | var rawCallback func(ConnVarp uintptr, CancellableVarp uintptr, cerrp **glib.Error) bool | 91 | + | var rawCallback func(ConnVarp uintptr, CancellableVarp uintptr) bool |
| 92 | purego.RegisterFunc(&rawCallback, x.xHandshake) | 92 | purego.RegisterFunc(&rawCallback, x.xHandshake) | ||
| 93 | return func(ConnVar *TlsConnection, CancellableVar *Cancellable) bool { | 93 | return func(ConnVar *TlsConnection, CancellableVar *Cancellable) bool { | ||
| 94 | - | var cerr *glib.Error | 94 | + | return rawCallback(ConnVar.GoPointer(), CancellableVar.GoPointer()) |
| 95 | - | return rawCallback(ConnVar.GoPointer(), CancellableVar.GoPointer(), &cerr) | |||
| 96 | } | 95 | } | ||
| 97 | } | 96 | } | ||
| 98 | 97 | ||||
| @@ -127,7 +126,7 @@ func (x *TlsConnectionClass) OverrideHandshakeFinish(cb func(*TlsConnection, Asy | |||||
| 127 | if cb == nil { | 126 | if cb == nil { | ||
| 128 | x.xHandshakeFinish = 0 | 127 | x.xHandshakeFinish = 0 | ||
| 129 | } else { | 128 | } else { | ||
| 130 | - | x.xHandshakeFinish = purego.NewCallback(func(ConnVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) bool { | 129 | + | x.xHandshakeFinish = purego.NewCallback(func(ConnVarp uintptr, ResultVarp uintptr) bool { |
| 131 | return cb(TlsConnectionNewFromInternalPtr(ConnVarp), &AsyncResultBase{Ptr: ResultVarp}) | 130 | return cb(TlsConnectionNewFromInternalPtr(ConnVarp), &AsyncResultBase{Ptr: ResultVarp}) | ||
| 132 | }) | 131 | }) | ||
| 133 | } | 132 | } | ||
| @@ -139,11 +138,10 @@ func (x *TlsConnectionClass) GetHandshakeFinish() func(*TlsConnection, AsyncResu | |||||
| 139 | if x.xHandshakeFinish == 0 { | 138 | if x.xHandshakeFinish == 0 { | ||
| 140 | return nil | 139 | return nil | ||
| 141 | } | 140 | } | ||
| 142 | - | var rawCallback func(ConnVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) bool | 141 | + | var rawCallback func(ConnVarp uintptr, ResultVarp uintptr) bool |
| 143 | purego.RegisterFunc(&rawCallback, x.xHandshakeFinish) | 142 | purego.RegisterFunc(&rawCallback, x.xHandshakeFinish) | ||
| 144 | return func(ConnVar *TlsConnection, ResultVar AsyncResult) bool { | 143 | return func(ConnVar *TlsConnection, ResultVar AsyncResult) bool { | ||
| 145 | - | var cerr *glib.Error | 144 | + | return rawCallback(ConnVar.GoPointer(), ResultVar.GoPointer()) |
| 146 | - | return rawCallback(ConnVar.GoPointer(), ResultVar.GoPointer(), &cerr) | |||
| 147 | } | 145 | } | ||
| 148 | } | 146 | } | ||
| 149 | 147 | ||||
| @@ -153,7 +151,7 @@ func (x *TlsConnectionClass) OverrideGetBindingData(cb func(*TlsConnection, TlsC | |||||
| 153 | if cb == nil { | 151 | if cb == nil { | ||
| 154 | x.xGetBindingData = 0 | 152 | x.xGetBindingData = 0 | ||
| 155 | } else { | 153 | } else { | ||
| 156 | - | x.xGetBindingData = purego.NewCallback(func(ConnVarp uintptr, TypeVarp TlsChannelBindingType, DataVarp []byte, cerrp **glib.Error) bool { | 154 | + | x.xGetBindingData = purego.NewCallback(func(ConnVarp uintptr, TypeVarp TlsChannelBindingType, DataVarp []byte) bool { |
| 157 | return cb(TlsConnectionNewFromInternalPtr(ConnVarp), TypeVarp, DataVarp) | 155 | return cb(TlsConnectionNewFromInternalPtr(ConnVarp), TypeVarp, DataVarp) | ||
| 158 | }) | 156 | }) | ||
| 159 | } | 157 | } | ||
| @@ -165,11 +163,10 @@ func (x *TlsConnectionClass) GetGetBindingData() func(*TlsConnection, TlsChannel | |||||
| 165 | if x.xGetBindingData == 0 { | 163 | if x.xGetBindingData == 0 { | ||
| 166 | return nil | 164 | return nil | ||
| 167 | } | 165 | } | ||
| 168 | - | var rawCallback func(ConnVarp uintptr, TypeVarp TlsChannelBindingType, DataVarp []byte, cerrp **glib.Error) bool | 166 | + | var rawCallback func(ConnVarp uintptr, TypeVarp TlsChannelBindingType, DataVarp []byte) bool |
| 169 | purego.RegisterFunc(&rawCallback, x.xGetBindingData) | 167 | purego.RegisterFunc(&rawCallback, x.xGetBindingData) | ||
| 170 | return func(ConnVar *TlsConnection, TypeVar TlsChannelBindingType, DataVar []byte) bool { | 168 | return func(ConnVar *TlsConnection, TypeVar TlsChannelBindingType, DataVar []byte) bool { | ||
| 171 | - | var cerr *glib.Error | 169 | + | return rawCallback(ConnVar.GoPointer(), TypeVar, DataVar) |
| 172 | - | return rawCallback(ConnVar.GoPointer(), TypeVar, DataVar, &cerr) | |||
| 173 | } | 170 | } | ||
| 174 | } | 171 | } | ||
| 175 | 172 | ||||
| @@ -218,8 +215,6 @@ var xTlsChannelBindingErrorQuark func() glib.Quark | |||||
| 218 | 215 | ||||
| 219 | // Gets the TLS channel binding error quark. | 216 | // Gets the TLS channel binding error quark. | ||
| 220 | func TlsChannelBindingErrorQuark() glib.Quark { | 217 | func TlsChannelBindingErrorQuark() glib.Quark { | ||
| 221 | - | core.LazyRegister(&xTlsChannelBindingErrorQuark, "GIO", "g_tls_channel_binding_error_quark", false) | |||
| 222 | - | ||||
| 223 | cret := xTlsChannelBindingErrorQuark() | 218 | cret := xTlsChannelBindingErrorQuark() | ||
| 224 | return cret | 219 | return cret | ||
| 225 | } | 220 | } | ||
| @@ -228,8 +223,6 @@ var xTlsErrorQuark func() glib.Quark | |||||
| 228 | 223 | ||||
| 229 | // Gets the TLS error quark. | 224 | // Gets the TLS error quark. | ||
| 230 | func TlsErrorQuark() glib.Quark { | 225 | func TlsErrorQuark() glib.Quark { | ||
| 231 | - | core.LazyRegister(&xTlsErrorQuark, "GIO", "g_tls_error_quark", false) | |||
| 232 | - | ||||
| 233 | cret := xTlsErrorQuark() | 226 | cret := xTlsErrorQuark() | ||
| 234 | return cret | 227 | return cret | ||
| 235 | } | 228 | } | ||
| @@ -248,7 +241,6 @@ type TlsConnection struct { | |||||
| 248 | var xTlsConnectionGLibType func() types.GType | 241 | var xTlsConnectionGLibType func() types.GType | ||
| 249 | 242 | ||||
| 250 | func TlsConnectionGLibType() types.GType { | 243 | func TlsConnectionGLibType() types.GType { | ||
| 251 | - | core.LazyRegister(&xTlsConnectionGLibType, "GIO", "g_tls_connection_get_type", false) | |||
| 252 | return xTlsConnectionGLibType() | 244 | return xTlsConnectionGLibType() | ||
| 253 | } | 245 | } | ||
| 254 | 246 | ||||
| @@ -263,8 +255,6 @@ var xTlsConnectionEmitAcceptCertificate func(uintptr, uintptr, TlsCertificateFla | |||||
| 263 | // Used by #GTlsConnection implementations to emit the | 255 | // Used by #GTlsConnection implementations to emit the | ||
| 264 | // #GTlsConnection::accept-certificate signal. | 256 | // #GTlsConnection::accept-certificate signal. | ||
| 265 | func (x *TlsConnection) EmitAcceptCertificate(PeerCertVar *TlsCertificate, ErrorsVar TlsCertificateFlags) bool { | 257 | func (x *TlsConnection) EmitAcceptCertificate(PeerCertVar *TlsCertificate, ErrorsVar TlsCertificateFlags) bool { | ||
| 266 | - | core.LazyRegister(&xTlsConnectionEmitAcceptCertificate, "GIO", "g_tls_connection_emit_accept_certificate", false) | |||
| 267 | - | ||||
| 268 | cret := xTlsConnectionEmitAcceptCertificate(x.GoPointer(), PeerCertVar.GoPointer(), ErrorsVar) | 258 | cret := xTlsConnectionEmitAcceptCertificate(x.GoPointer(), PeerCertVar.GoPointer(), ErrorsVar) | ||
| 269 | return cret | 259 | return cret | ||
| 270 | } | 260 | } | ||
| @@ -274,7 +264,6 @@ var xTlsConnectionGetCertificate func(uintptr) uintptr | |||||
| 274 | // Gets @conn's certificate, as set by | 264 | // Gets @conn's certificate, as set by | ||
| 275 | // g_tls_connection_set_certificate(). | 265 | // g_tls_connection_set_certificate(). | ||
| 276 | func (x *TlsConnection) GetCertificate() *TlsCertificate { | 266 | func (x *TlsConnection) GetCertificate() *TlsCertificate { | ||
| 277 | - | core.LazyRegister(&xTlsConnectionGetCertificate, "GIO", "g_tls_connection_get_certificate", false) | |||
| 278 | var cls *TlsCertificate | 267 | var cls *TlsCertificate | ||
| 279 | 268 | ||||
| 280 | cret := xTlsConnectionGetCertificate(x.GoPointer()) | 269 | cret := xTlsConnectionGetCertificate(x.GoPointer()) | ||
| @@ -304,7 +293,6 @@ var xTlsConnectionGetChannelBindingData func(uintptr, TlsChannelBindingType, *[] | |||||
| 304 | // support @type or the binding data is not available yet due to additional | 293 | // support @type or the binding data is not available yet due to additional | ||
| 305 | // negotiation or input required. | 294 | // negotiation or input required. | ||
| 306 | func (x *TlsConnection) GetChannelBindingData(TypeVar TlsChannelBindingType, DataVar *[]byte) (bool, error) { | 295 | func (x *TlsConnection) GetChannelBindingData(TypeVar TlsChannelBindingType, DataVar *[]byte) (bool, error) { | ||
| 307 | - | core.LazyRegister(&xTlsConnectionGetChannelBindingData, "GIO", "g_tls_connection_get_channel_binding_data", false) | |||
| 308 | var cerr *glib.Error | 296 | var cerr *glib.Error | ||
| 309 | 297 | ||||
| 310 | cret := xTlsConnectionGetChannelBindingData(x.GoPointer(), TypeVar, DataVar, &cerr) | 298 | cret := xTlsConnectionGetChannelBindingData(x.GoPointer(), TypeVar, DataVar, &cerr) | ||
| @@ -325,8 +313,6 @@ var xTlsConnectionGetCiphersuiteName func(uintptr) string | |||||
| 325 | // displayed to the user for informative purposes only, and parsing it | 313 | // displayed to the user for informative purposes only, and parsing it | ||
| 326 | // is not recommended. | 314 | // is not recommended. | ||
| 327 | func (x *TlsConnection) GetCiphersuiteName() string { | 315 | func (x *TlsConnection) GetCiphersuiteName() string { | ||
| 328 | - | core.LazyRegister(&xTlsConnectionGetCiphersuiteName, "GIO", "g_tls_connection_get_ciphersuite_name", false) | |||
| 329 | - | ||||
| 330 | cret := xTlsConnectionGetCiphersuiteName(x.GoPointer()) | 316 | cret := xTlsConnectionGetCiphersuiteName(x.GoPointer()) | ||
| 331 | return cret | 317 | return cret | ||
| 332 | } | 318 | } | ||
| @@ -336,7 +322,6 @@ var xTlsConnectionGetDatabase func(uintptr) uintptr | |||||
| 336 | // Gets the certificate database that @conn uses to verify | 322 | // Gets the certificate database that @conn uses to verify | ||
| 337 | // peer certificates. See g_tls_connection_set_database(). | 323 | // peer certificates. See g_tls_connection_set_database(). | ||
| 338 | func (x *TlsConnection) GetDatabase() *TlsDatabase { | 324 | func (x *TlsConnection) GetDatabase() *TlsDatabase { | ||
| 339 | - | core.LazyRegister(&xTlsConnectionGetDatabase, "GIO", "g_tls_connection_get_database", false) | |||
| 340 | var cls *TlsDatabase | 325 | var cls *TlsDatabase | ||
| 341 | 326 | ||||
| 342 | cret := xTlsConnectionGetDatabase(x.GoPointer()) | 327 | cret := xTlsConnectionGetDatabase(x.GoPointer()) | ||
| @@ -356,7 +341,6 @@ var xTlsConnectionGetInteraction func(uintptr) uintptr | |||||
| 356 | // for things like prompting the user for passwords. If %NULL is returned, then | 341 | // for things like prompting the user for passwords. If %NULL is returned, then | ||
| 357 | // no user interaction will occur for this connection. | 342 | // no user interaction will occur for this connection. | ||
| 358 | func (x *TlsConnection) GetInteraction() *TlsInteraction { | 343 | func (x *TlsConnection) GetInteraction() *TlsInteraction { | ||
| 359 | - | core.LazyRegister(&xTlsConnectionGetInteraction, "GIO", "g_tls_connection_get_interaction", false) | |||
| 360 | var cls *TlsInteraction | 344 | var cls *TlsInteraction | ||
| 361 | 345 | ||||
| 362 | cret := xTlsConnectionGetInteraction(x.GoPointer()) | 346 | cret := xTlsConnectionGetInteraction(x.GoPointer()) | ||
| @@ -380,8 +364,6 @@ var xTlsConnectionGetNegotiatedProtocol func(uintptr) string | |||||
| 380 | // does not support ALPN, then this will be %NULL. See | 364 | // does not support ALPN, then this will be %NULL. See | ||
| 381 | // g_tls_connection_set_advertised_protocols(). | 365 | // g_tls_connection_set_advertised_protocols(). | ||
| 382 | func (x *TlsConnection) GetNegotiatedProtocol() string { | 366 | func (x *TlsConnection) GetNegotiatedProtocol() string { | ||
| 383 | - | core.LazyRegister(&xTlsConnectionGetNegotiatedProtocol, "GIO", "g_tls_connection_get_negotiated_protocol", false) | |||
| 384 | - | ||||
| 385 | cret := xTlsConnectionGetNegotiatedProtocol(x.GoPointer()) | 367 | cret := xTlsConnectionGetNegotiatedProtocol(x.GoPointer()) | ||
| 386 | return cret | 368 | return cret | ||
| 387 | } | 369 | } | ||
| @@ -392,7 +374,6 @@ var xTlsConnectionGetPeerCertificate func(uintptr) uintptr | |||||
| 392 | // or failed. (It is not set during the emission of | 374 | // or failed. (It is not set during the emission of | ||
| 393 | // #GTlsConnection::accept-certificate.) | 375 | // #GTlsConnection::accept-certificate.) | ||
| 394 | func (x *TlsConnection) GetPeerCertificate() *TlsCertificate { | 376 | func (x *TlsConnection) GetPeerCertificate() *TlsCertificate { | ||
| 395 | - | core.LazyRegister(&xTlsConnectionGetPeerCertificate, "GIO", "g_tls_connection_get_peer_certificate", false) | |||
| 396 | var cls *TlsCertificate | 377 | var cls *TlsCertificate | ||
| 397 | 378 | ||||
| 398 | cret := xTlsConnectionGetPeerCertificate(x.GoPointer()) | 379 | cret := xTlsConnectionGetPeerCertificate(x.GoPointer()) | ||
| @@ -414,8 +395,6 @@ var xTlsConnectionGetPeerCertificateErrors func(uintptr) TlsCertificateFlags | |||||
| 414 | // | 395 | // | ||
| 415 | // See #GTlsConnection:peer-certificate-errors for more information. | 396 | // See #GTlsConnection:peer-certificate-errors for more information. | ||
| 416 | func (x *TlsConnection) GetPeerCertificateErrors() TlsCertificateFlags { | 397 | func (x *TlsConnection) GetPeerCertificateErrors() TlsCertificateFlags { | ||
| 417 | - | core.LazyRegister(&xTlsConnectionGetPeerCertificateErrors, "GIO", "g_tls_connection_get_peer_certificate_errors", false) | |||
| 418 | - | ||||
| 419 | cret := xTlsConnectionGetPeerCertificateErrors(x.GoPointer()) | 398 | cret := xTlsConnectionGetPeerCertificateErrors(x.GoPointer()) | ||
| 420 | return cret | 399 | return cret | ||
| 421 | } | 400 | } | ||
| @@ -427,8 +406,6 @@ var xTlsConnectionGetProtocolVersion func(uintptr) TlsProtocolVersion | |||||
| 427 | // has been closed, or if the TLS backend has implemented a protocol version | 406 | // has been closed, or if the TLS backend has implemented a protocol version | ||
| 428 | // that is not a recognized #GTlsProtocolVersion. | 407 | // that is not a recognized #GTlsProtocolVersion. | ||
| 429 | func (x *TlsConnection) GetProtocolVersion() TlsProtocolVersion { | 408 | func (x *TlsConnection) GetProtocolVersion() TlsProtocolVersion { | ||
| 430 | - | core.LazyRegister(&xTlsConnectionGetProtocolVersion, "GIO", "g_tls_connection_get_protocol_version", false) | |||
| 431 | - | ||||
| 432 | cret := xTlsConnectionGetProtocolVersion(x.GoPointer()) | 409 | cret := xTlsConnectionGetProtocolVersion(x.GoPointer()) | ||
| 433 | return cret | 410 | return cret | ||
| 434 | } | 411 | } | ||
| @@ -438,8 +415,6 @@ var xTlsConnectionGetRehandshakeMode func(uintptr) TlsRehandshakeMode | |||||
| 438 | // Gets @conn rehandshaking mode. See | 415 | // Gets @conn rehandshaking mode. See | ||
| 439 | // g_tls_connection_set_rehandshake_mode() for details. | 416 | // g_tls_connection_set_rehandshake_mode() for details. | ||
| 440 | func (x *TlsConnection) GetRehandshakeMode() TlsRehandshakeMode { | 417 | func (x *TlsConnection) GetRehandshakeMode() TlsRehandshakeMode { | ||
| 441 | - | core.LazyRegister(&xTlsConnectionGetRehandshakeMode, "GIO", "g_tls_connection_get_rehandshake_mode", false) | |||
| 442 | - | ||||
| 443 | cret := xTlsConnectionGetRehandshakeMode(x.GoPointer()) | 418 | cret := xTlsConnectionGetRehandshakeMode(x.GoPointer()) | ||
| 444 | return cret | 419 | return cret | ||
| 445 | } | 420 | } | ||
| @@ -450,8 +425,6 @@ var xTlsConnectionGetRequireCloseNotify func(uintptr) bool | |||||
| 450 | // when the connection is closed. See | 425 | // when the connection is closed. See | ||
| 451 | // g_tls_connection_set_require_close_notify() for details. | 426 | // g_tls_connection_set_require_close_notify() for details. | ||
| 452 | func (x *TlsConnection) GetRequireCloseNotify() bool { | 427 | func (x *TlsConnection) GetRequireCloseNotify() bool { | ||
| 453 | - | core.LazyRegister(&xTlsConnectionGetRequireCloseNotify, "GIO", "g_tls_connection_get_require_close_notify", false) | |||
| 454 | - | ||||
| 455 | cret := xTlsConnectionGetRequireCloseNotify(x.GoPointer()) | 428 | cret := xTlsConnectionGetRequireCloseNotify(x.GoPointer()) | ||
| 456 | return cret | 429 | return cret | ||
| 457 | } | 430 | } | ||
| @@ -461,8 +434,6 @@ var xTlsConnectionGetUseSystemCertdb func(uintptr) bool | |||||
| 461 | // Gets whether @conn uses the system certificate database to verify | 434 | // Gets whether @conn uses the system certificate database to verify | ||
| 462 | // peer certificates. See g_tls_connection_set_use_system_certdb(). | 435 | // peer certificates. See g_tls_connection_set_use_system_certdb(). | ||
| 463 | func (x *TlsConnection) GetUseSystemCertdb() bool { | 436 | func (x *TlsConnection) GetUseSystemCertdb() bool { | ||
| 464 | - | core.LazyRegister(&xTlsConnectionGetUseSystemCertdb, "GIO", "g_tls_connection_get_use_system_certdb", false) | |||
| 465 | - | ||||
| 466 | cret := xTlsConnectionGetUseSystemCertdb(x.GoPointer()) | 437 | cret := xTlsConnectionGetUseSystemCertdb(x.GoPointer()) | ||
| 467 | return cret | 438 | return cret | ||
| 468 | } | 439 | } | ||
| @@ -501,7 +472,6 @@ var xTlsConnectionHandshake func(uintptr, uintptr, **glib.Error) bool | |||||
| 501 | // #GTlsConnection::accept_certificate may be emitted during the | 472 | // #GTlsConnection::accept_certificate may be emitted during the | ||
| 502 | // handshake. | 473 | // handshake. | ||
| 503 | func (x *TlsConnection) Handshake(CancellableVar *Cancellable) (bool, error) { | 474 | func (x *TlsConnection) Handshake(CancellableVar *Cancellable) (bool, error) { | ||
| 504 | - | core.LazyRegister(&xTlsConnectionHandshake, "GIO", "g_tls_connection_handshake", false) | |||
| 505 | var cerr *glib.Error | 475 | var cerr *glib.Error | ||
| 506 | 476 | ||||
| 507 | cret := xTlsConnectionHandshake(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | 477 | cret := xTlsConnectionHandshake(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | ||
| @@ -516,8 +486,6 @@ var xTlsConnectionHandshakeAsync func(uintptr, int, uintptr, uintptr, uintptr) | |||||
| 516 | // Asynchronously performs a TLS handshake on @conn. See | 486 | // Asynchronously performs a TLS handshake on @conn. See | ||
| 517 | // g_tls_connection_handshake() for more information. | 487 | // g_tls_connection_handshake() for more information. | ||
| 518 | func (x *TlsConnection) HandshakeAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 488 | func (x *TlsConnection) HandshakeAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 519 | - | core.LazyRegister(&xTlsConnectionHandshakeAsync, "GIO", "g_tls_connection_handshake_async", false) | |||
| 520 | - | ||||
| 521 | xTlsConnectionHandshakeAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | 489 | xTlsConnectionHandshakeAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | ||
| 522 | } | 490 | } | ||
| 523 | 491 | ||||
| @@ -526,7 +494,6 @@ var xTlsConnectionHandshakeFinish func(uintptr, uintptr, **glib.Error) bool | |||||
| 526 | // Finish an asynchronous TLS handshake operation. See | 494 | // Finish an asynchronous TLS handshake operation. See | ||
| 527 | // g_tls_connection_handshake() for more information. | 495 | // g_tls_connection_handshake() for more information. | ||
| 528 | func (x *TlsConnection) HandshakeFinish(ResultVar AsyncResult) (bool, error) { | 496 | func (x *TlsConnection) HandshakeFinish(ResultVar AsyncResult) (bool, error) { | ||
| 529 | - | core.LazyRegister(&xTlsConnectionHandshakeFinish, "GIO", "g_tls_connection_handshake_finish", false) | |||
| 530 | var cerr *glib.Error | 497 | var cerr *glib.Error | ||
| 531 | 498 | ||||
| 532 | cret := xTlsConnectionHandshakeFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | 499 | cret := xTlsConnectionHandshakeFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | ||
| @@ -549,8 +516,6 @@ var xTlsConnectionSetAdvertisedProtocols func(uintptr, []string) | |||||
| 549 | // See [IANA TLS ALPN Protocol IDs](https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids) | 516 | // See [IANA TLS ALPN Protocol IDs](https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids) | ||
| 550 | // for a list of registered protocol IDs. | 517 | // for a list of registered protocol IDs. | ||
| 551 | func (x *TlsConnection) SetAdvertisedProtocols(ProtocolsVar []string) { | 518 | func (x *TlsConnection) SetAdvertisedProtocols(ProtocolsVar []string) { | ||
| 552 | - | core.LazyRegister(&xTlsConnectionSetAdvertisedProtocols, "GIO", "g_tls_connection_set_advertised_protocols", false) | |||
| 553 | - | ||||
| 554 | xTlsConnectionSetAdvertisedProtocols(x.GoPointer(), ProtocolsVar) | 519 | xTlsConnectionSetAdvertisedProtocols(x.GoPointer(), ProtocolsVar) | ||
| 555 | } | 520 | } | ||
| 556 | 521 | ||||
| @@ -575,8 +540,6 @@ var xTlsConnectionSetCertificate func(uintptr, uintptr) | |||||
| 575 | // that g_tls_client_connection_get_accepted_cas() will return | 540 | // that g_tls_client_connection_get_accepted_cas() will return | ||
| 576 | // non-%NULL.) | 541 | // non-%NULL.) | ||
| 577 | func (x *TlsConnection) SetCertificate(CertificateVar *TlsCertificate) { | 542 | func (x *TlsConnection) SetCertificate(CertificateVar *TlsCertificate) { | ||
| 578 | - | core.LazyRegister(&xTlsConnectionSetCertificate, "GIO", "g_tls_connection_set_certificate", false) | |||
| 579 | - | ||||
| 580 | xTlsConnectionSetCertificate(x.GoPointer(), CertificateVar.GoPointer()) | 543 | xTlsConnectionSetCertificate(x.GoPointer(), CertificateVar.GoPointer()) | ||
| 581 | } | 544 | } | ||
| 582 | 545 | ||||
| @@ -594,8 +557,6 @@ var xTlsConnectionSetDatabase func(uintptr, uintptr) | |||||
| 594 | // There are nonintuitive security implications when using a non-default | 557 | // There are nonintuitive security implications when using a non-default | ||
| 595 | // database. See #GTlsConnection:database for details. | 558 | // database. See #GTlsConnection:database for details. | ||
| 596 | func (x *TlsConnection) SetDatabase(DatabaseVar *TlsDatabase) { | 559 | func (x *TlsConnection) SetDatabase(DatabaseVar *TlsDatabase) { | ||
| 597 | - | core.LazyRegister(&xTlsConnectionSetDatabase, "GIO", "g_tls_connection_set_database", false) | |||
| 598 | - | ||||
| 599 | xTlsConnectionSetDatabase(x.GoPointer(), DatabaseVar.GoPointer()) | 560 | xTlsConnectionSetDatabase(x.GoPointer(), DatabaseVar.GoPointer()) | ||
| 600 | } | 561 | } | ||
| 601 | 562 | ||||
| @@ -608,8 +569,6 @@ var xTlsConnectionSetInteraction func(uintptr, uintptr) | |||||
| 608 | // #GTlsInteraction. %NULL can also be provided if no user interaction | 569 | // #GTlsInteraction. %NULL can also be provided if no user interaction | ||
| 609 | // should occur for this connection. | 570 | // should occur for this connection. | ||
| 610 | func (x *TlsConnection) SetInteraction(InteractionVar *TlsInteraction) { | 571 | func (x *TlsConnection) SetInteraction(InteractionVar *TlsInteraction) { | ||
| 611 | - | core.LazyRegister(&xTlsConnectionSetInteraction, "GIO", "g_tls_connection_set_interaction", false) | |||
| 612 | - | ||||
| 613 | xTlsConnectionSetInteraction(x.GoPointer(), InteractionVar.GoPointer()) | 572 | xTlsConnectionSetInteraction(x.GoPointer(), InteractionVar.GoPointer()) | ||
| 614 | } | 573 | } | ||
| 615 | 574 | ||||
| @@ -620,8 +579,6 @@ var xTlsConnectionSetRehandshakeMode func(uintptr, TlsRehandshakeMode) | |||||
| 620 | // the TLS protocol, replaced by separate post-handshake authentication and | 579 | // the TLS protocol, replaced by separate post-handshake authentication and | ||
| 621 | // rekey operations. | 580 | // rekey operations. | ||
| 622 | func (x *TlsConnection) SetRehandshakeMode(ModeVar TlsRehandshakeMode) { | 581 | func (x *TlsConnection) SetRehandshakeMode(ModeVar TlsRehandshakeMode) { | ||
| 623 | - | core.LazyRegister(&xTlsConnectionSetRehandshakeMode, "GIO", "g_tls_connection_set_rehandshake_mode", false) | |||
| 624 | - | ||||
| 625 | xTlsConnectionSetRehandshakeMode(x.GoPointer(), ModeVar) | 582 | xTlsConnectionSetRehandshakeMode(x.GoPointer(), ModeVar) | ||
| 626 | } | 583 | } | ||
| 627 | 584 | ||||
| @@ -655,8 +612,6 @@ var xTlsConnectionSetRequireCloseNotify func(uintptr, bool) | |||||
| 655 | // than closing @conn itself, but note that this may only be done when no other | 612 | // than closing @conn itself, but note that this may only be done when no other | ||
| 656 | // operations are pending on @conn or the base I/O stream. | 613 | // operations are pending on @conn or the base I/O stream. | ||
| 657 | func (x *TlsConnection) SetRequireCloseNotify(RequireCloseNotifyVar bool) { | 614 | func (x *TlsConnection) SetRequireCloseNotify(RequireCloseNotifyVar bool) { | ||
| 658 | - | core.LazyRegister(&xTlsConnectionSetRequireCloseNotify, "GIO", "g_tls_connection_set_require_close_notify", false) | |||
| 659 | - | ||||
| 660 | xTlsConnectionSetRequireCloseNotify(x.GoPointer(), RequireCloseNotifyVar) | 615 | xTlsConnectionSetRequireCloseNotify(x.GoPointer(), RequireCloseNotifyVar) | ||
| 661 | } | 616 | } | ||
| 662 | 617 | ||||
| @@ -670,8 +625,6 @@ var xTlsConnectionSetUseSystemCertdb func(uintptr, bool) | |||||
| 670 | // client-side connections, unless that bit is not set in | 625 | // client-side connections, unless that bit is not set in | ||
| 671 | // #GTlsClientConnection:validation-flags). | 626 | // #GTlsClientConnection:validation-flags). | ||
| 672 | func (x *TlsConnection) SetUseSystemCertdb(UseSystemCertdbVar bool) { | 627 | func (x *TlsConnection) SetUseSystemCertdb(UseSystemCertdbVar bool) { | ||
| 673 | - | core.LazyRegister(&xTlsConnectionSetUseSystemCertdb, "GIO", "g_tls_connection_set_use_system_certdb", false) | |||
| 674 | - | ||||
| 675 | xTlsConnectionSetUseSystemCertdb(x.GoPointer(), UseSystemCertdbVar) | 628 | xTlsConnectionSetUseSystemCertdb(x.GoPointer(), UseSystemCertdbVar) | ||
| 676 | } | 629 | } | ||
| 677 | 630 | ||||
| @@ -833,4 +786,41 @@ func (x *TlsConnection) ConnectAcceptCertificate(cb *func(TlsConnection, uintptr | |||||
| 833 | func init() { | 786 | func init() { | ||
| 834 | core.SetPackageName("GIO", "gio-2.0") | 787 | core.SetPackageName("GIO", "gio-2.0") | ||
| 835 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | 788 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | ||
| 789 | + | var libs []uintptr | |||
| 790 | + | for _, libPath := range core.GetPaths("GIO") { | |||
| 791 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 792 | + | if err != nil { | |||
| 793 | + | panic(err) | |||
| 794 | + | } | |||
| 795 | + | libs = append(libs, lib) | |||
| 796 | + | } | |||
| 797 | + | ||||
| 798 | + | core.PuregoSafeRegister(&xTlsChannelBindingErrorQuark, libs, "g_tls_channel_binding_error_quark") | |||
| 799 | + | core.PuregoSafeRegister(&xTlsErrorQuark, libs, "g_tls_error_quark") | |||
| 800 | + | ||||
| 801 | + | core.PuregoSafeRegister(&xTlsConnectionGLibType, libs, "g_tls_connection_get_type") | |||
| 802 | + | ||||
| 803 | + | core.PuregoSafeRegister(&xTlsConnectionEmitAcceptCertificate, libs, "g_tls_connection_emit_accept_certificate") | |||
| 804 | + | core.PuregoSafeRegister(&xTlsConnectionGetCertificate, libs, "g_tls_connection_get_certificate") | |||
| 805 | + | core.PuregoSafeRegister(&xTlsConnectionGetChannelBindingData, libs, "g_tls_connection_get_channel_binding_data") | |||
| 806 | + | core.PuregoSafeRegister(&xTlsConnectionGetCiphersuiteName, libs, "g_tls_connection_get_ciphersuite_name") | |||
| 807 | + | core.PuregoSafeRegister(&xTlsConnectionGetDatabase, libs, "g_tls_connection_get_database") | |||
| 808 | + | core.PuregoSafeRegister(&xTlsConnectionGetInteraction, libs, "g_tls_connection_get_interaction") | |||
| 809 | + | core.PuregoSafeRegister(&xTlsConnectionGetNegotiatedProtocol, libs, "g_tls_connection_get_negotiated_protocol") | |||
| 810 | + | core.PuregoSafeRegister(&xTlsConnectionGetPeerCertificate, libs, "g_tls_connection_get_peer_certificate") | |||
| 811 | + | core.PuregoSafeRegister(&xTlsConnectionGetPeerCertificateErrors, libs, "g_tls_connection_get_peer_certificate_errors") | |||
| 812 | + | core.PuregoSafeRegister(&xTlsConnectionGetProtocolVersion, libs, "g_tls_connection_get_protocol_version") | |||
| 813 | + | core.PuregoSafeRegister(&xTlsConnectionGetRehandshakeMode, libs, "g_tls_connection_get_rehandshake_mode") | |||
| 814 | + | core.PuregoSafeRegister(&xTlsConnectionGetRequireCloseNotify, libs, "g_tls_connection_get_require_close_notify") | |||
| 815 | + | core.PuregoSafeRegister(&xTlsConnectionGetUseSystemCertdb, libs, "g_tls_connection_get_use_system_certdb") | |||
| 816 | + | core.PuregoSafeRegister(&xTlsConnectionHandshake, libs, "g_tls_connection_handshake") | |||
| 817 | + | core.PuregoSafeRegister(&xTlsConnectionHandshakeAsync, libs, "g_tls_connection_handshake_async") | |||
| 818 | + | core.PuregoSafeRegister(&xTlsConnectionHandshakeFinish, libs, "g_tls_connection_handshake_finish") | |||
| 819 | + | core.PuregoSafeRegister(&xTlsConnectionSetAdvertisedProtocols, libs, "g_tls_connection_set_advertised_protocols") | |||
| 820 | + | core.PuregoSafeRegister(&xTlsConnectionSetCertificate, libs, "g_tls_connection_set_certificate") | |||
| 821 | + | core.PuregoSafeRegister(&xTlsConnectionSetDatabase, libs, "g_tls_connection_set_database") | |||
| 822 | + | core.PuregoSafeRegister(&xTlsConnectionSetInteraction, libs, "g_tls_connection_set_interaction") | |||
| 823 | + | core.PuregoSafeRegister(&xTlsConnectionSetRehandshakeMode, libs, "g_tls_connection_set_rehandshake_mode") | |||
| 824 | + | core.PuregoSafeRegister(&xTlsConnectionSetRequireCloseNotify, libs, "g_tls_connection_set_require_close_notify") | |||
| 825 | + | core.PuregoSafeRegister(&xTlsConnectionSetUseSystemCertdb, libs, "g_tls_connection_set_use_system_certdb") | |||
| 836 | } | 826 | } | ||