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 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsdatabase.go +48 -51 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsfiledatabase.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsinteraction.go +31 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlspassword.go +22 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsserverconnection.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixconnection.go +20 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixcredentialsmessage.go +17 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixfdlist.go +19 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixsocketaddress.go +22 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvfs.go +24 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvolume.go +58 -143 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvolumemonitor.go +19 -11 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gzlibcompressor.go +18 -9 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gzlibdecompressor.go +15 -3 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/main.go +11 -2 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gallocator.go +28 -32 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/garray.go +59 -82 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gasyncqueue.go +39 -56 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gatomic.go +34 -43 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbacktrace.go +15 -5 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbase64.go +19 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbitlock.go +24 -23 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbookmarkfile.go +61 -69 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcache.go +15 -10 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcharset.go +19 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gchecksum.go +25 -23 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcompletion.go +17 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gconvert.go +28 -25 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdataset.go +28 -36 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdate.go +65 -103 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdatetime.go +66 -107 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdir.go +19 -12 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/genviron.go +21 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gerror.go +29 -30 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gfileutils.go +38 -45 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ggettext.go +19 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghash.go +53 -81 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghmac.go +24 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghook.go +26 -28 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghostutils.go +18 -11 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/giochannel.go +67 -83 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gkeyfile.go +62 -72 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/glib-types.go +12 -4 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/glist.go +11 -2 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmain.go +117 -181 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmappedfile.go +21 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmarkup.go +43 -51 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmem.go +31 -44 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmessages.go +45 -70 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gnode.go +35 -50 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/goption.go +43 -57 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gpathbuf.go +24 -26 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gpattern.go +23 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gpoll.go +13 -3 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gprimes.go +14 -3 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gprintf.go +20 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gqsort.go +15 -5 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gquark.go +19 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gqueue.go +52 -84 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grand.go +30 -33 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grcbox.go +27 -29 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grefcount.go +21 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grefstring.go +20 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gregex.go +57 -72 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grel.go +21 -20 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gscanner.go +30 -40 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gsequence.go +49 -74 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gshell.go +16 -5 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gslice.go +21 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gslist.go +11 -2 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gspawn.go +23 -12 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstdio.go +27 -33 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstrfuncs.go +71 -115 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstring.go +51 -77 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstringchunk.go +15 -10 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstrvbuilder.go +22 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtestutils.go +80 -132 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gthread.go +97 -146 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gthreadpool.go +25 -26 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtimer.go +20 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtimezone.go +26 -27 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtrashstack.go +14 -8 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtree.go +45 -63 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtypes.go +12 -4 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gunicode.go +85 -132 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/guri.go +50 -63
| @@ -5,6 +5,7 @@ import ( | |||
| 5 | 5 | "structs" | |
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | + | "github.com/bnema/purego" | |
| 8 | 9 | "github.com/bnema/puregotk/pkg/core" | |
| 9 | 10 | "github.com/bnema/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| @@ -177,7 +178,6 @@ type Uri struct { | |||
| 177 | 178 | var xUriGLibType func() types.GType | |
| 178 | 179 | ||
| 179 | 180 | func UriGLibType() types.GType { | |
| 180 | - | core.LazyRegister(&xUriGLibType, "GLIB", "g_uri_get_type", false) | |
| 181 | 181 | return xUriGLibType() | |
| 182 | 182 | } | |
| 183 | 183 | ||
| @@ -203,8 +203,6 @@ var xUriGetAuthParams func(uintptr) string | |||
| 203 | 203 | // Depending on the URI scheme, g_uri_parse_params() may be useful for | |
| 204 | 204 | // further parsing this information. | |
| 205 | 205 | func (x *Uri) GetAuthParams() string { | |
| 206 | - | core.LazyRegister(&xUriGetAuthParams, "GLIB", "g_uri_get_auth_params", false) | |
| 207 | - | ||
| 208 | 206 | cret := xUriGetAuthParams(x.GoPointer()) | |
| 209 | 207 | return cret | |
| 210 | 208 | } | |
| @@ -213,8 +211,6 @@ var xUriGetFlags func(uintptr) UriFlags | |||
| 213 | 211 | ||
| 214 | 212 | // Gets @uri's flags set upon construction. | |
| 215 | 213 | func (x *Uri) GetFlags() UriFlags { | |
| 216 | - | core.LazyRegister(&xUriGetFlags, "GLIB", "g_uri_get_flags", false) | |
| 217 | - | ||
| 218 | 214 | cret := xUriGetFlags(x.GoPointer()) | |
| 219 | 215 | return cret | |
| 220 | 216 | } | |
| @@ -224,8 +220,6 @@ var xUriGetFragment func(uintptr) string | |||
| 224 | 220 | // Gets @uri's fragment, which may contain `%`-encoding, depending on | |
| 225 | 221 | // the flags with which @uri was created. | |
| 226 | 222 | func (x *Uri) GetFragment() string { | |
| 227 | - | core.LazyRegister(&xUriGetFragment, "GLIB", "g_uri_get_fragment", false) | |
| 228 | - | ||
| 229 | 223 | cret := xUriGetFragment(x.GoPointer()) | |
| 230 | 224 | return cret | |
| 231 | 225 | } | |
| @@ -242,8 +236,6 @@ var xUriGetHost func(uintptr) string | |||
| 242 | 236 | // be a scope ID attached to the address. Eg, `fe80::1234%“em1` (or | |
| 243 | 237 | // `fe80::1234%“25em1` if the string is still encoded). | |
| 244 | 238 | func (x *Uri) GetHost() string { | |
| 245 | - | core.LazyRegister(&xUriGetHost, "GLIB", "g_uri_get_host", false) | |
| 246 | - | ||
| 247 | 239 | cret := xUriGetHost(x.GoPointer()) | |
| 248 | 240 | return cret | |
| 249 | 241 | } | |
| @@ -254,8 +246,6 @@ var xUriGetPassword func(uintptr) string | |||
| 254 | 246 | // the flags with which @uri was created. (If @uri was not created | |
| 255 | 247 | // with %G_URI_FLAGS_HAS_PASSWORD then this will be %NULL.) | |
| 256 | 248 | func (x *Uri) GetPassword() string { | |
| 257 | - | core.LazyRegister(&xUriGetPassword, "GLIB", "g_uri_get_password", false) | |
| 258 | - | ||
| 259 | 249 | cret := xUriGetPassword(x.GoPointer()) | |
| 260 | 250 | return cret | |
| 261 | 251 | } | |
| @@ -265,8 +255,6 @@ var xUriGetPath func(uintptr) string | |||
| 265 | 255 | // Gets @uri's path, which may contain `%`-encoding, depending on the | |
| 266 | 256 | // flags with which @uri was created. | |
| 267 | 257 | func (x *Uri) GetPath() string { | |
| 268 | - | core.LazyRegister(&xUriGetPath, "GLIB", "g_uri_get_path", false) | |
| 269 | - | ||
| 270 | 258 | cret := xUriGetPath(x.GoPointer()) | |
| 271 | 259 | return cret | |
| 272 | 260 | } | |
| @@ -275,8 +263,6 @@ var xUriGetPort func(uintptr) int | |||
| 275 | 263 | ||
| 276 | 264 | // Gets @uri's port. | |
| 277 | 265 | func (x *Uri) GetPort() int { | |
| 278 | - | core.LazyRegister(&xUriGetPort, "GLIB", "g_uri_get_port", false) | |
| 279 | - | ||
| 280 | 266 | cret := xUriGetPort(x.GoPointer()) | |
| 281 | 267 | return cret | |
| 282 | 268 | } | |
| @@ -289,8 +275,6 @@ var xUriGetQuery func(uintptr) string | |||
| 289 | 275 | // For queries consisting of a series of `name=value` parameters, | |
| 290 | 276 | // #GUriParamsIter or g_uri_parse_params() may be useful. | |
| 291 | 277 | func (x *Uri) GetQuery() string { | |
| 292 | - | core.LazyRegister(&xUriGetQuery, "GLIB", "g_uri_get_query", false) | |
| 293 | - | ||
| 294 | 278 | cret := xUriGetQuery(x.GoPointer()) | |
| 295 | 279 | return cret | |
| 296 | 280 | } | |
| @@ -300,8 +284,6 @@ var xUriGetScheme func(uintptr) string | |||
| 300 | 284 | // Gets @uri's scheme. Note that this will always be all-lowercase, | |
| 301 | 285 | // regardless of the string or strings that @uri was created from. | |
| 302 | 286 | func (x *Uri) GetScheme() string { | |
| 303 | - | core.LazyRegister(&xUriGetScheme, "GLIB", "g_uri_get_scheme", false) | |
| 304 | - | ||
| 305 | 287 | cret := xUriGetScheme(x.GoPointer()) | |
| 306 | 288 | return cret | |
| 307 | 289 | } | |
| @@ -313,8 +295,6 @@ var xUriGetUser func(uintptr) string | |||
| 313 | 295 | // If @uri was not created with %G_URI_FLAGS_HAS_PASSWORD or | |
| 314 | 296 | // %G_URI_FLAGS_HAS_AUTH_PARAMS, this is the same as g_uri_get_userinfo(). | |
| 315 | 297 | func (x *Uri) GetUser() string { | |
| 316 | - | core.LazyRegister(&xUriGetUser, "GLIB", "g_uri_get_user", false) | |
| 317 | - | ||
| 318 | 298 | cret := xUriGetUser(x.GoPointer()) | |
| 319 | 299 | return cret | |
| 320 | 300 | } | |
| @@ -324,8 +304,6 @@ var xUriGetUserinfo func(uintptr) string | |||
| 324 | 304 | // Gets @uri's userinfo, which may contain `%`-encoding, depending on | |
| 325 | 305 | // the flags with which @uri was created. | |
| 326 | 306 | func (x *Uri) GetUserinfo() string { | |
| 327 | - | core.LazyRegister(&xUriGetUserinfo, "GLIB", "g_uri_get_userinfo", false) | |
| 328 | - | ||
| 329 | 307 | cret := xUriGetUserinfo(x.GoPointer()) | |
| 330 | 308 | return cret | |
| 331 | 309 | } | |
| @@ -337,7 +315,6 @@ var xUriParseRelative func(uintptr, string, UriFlags, **Error) uintptr | |||
| 337 | 315 | // If the result is not a valid absolute URI, it will be discarded, and an error | |
| 338 | 316 | // returned. | |
| 339 | 317 | func (x *Uri) ParseRelative(UriRefVar string, FlagsVar UriFlags) (*Uri, error) { | |
| 340 | - | core.LazyRegister(&xUriParseRelative, "GLIB", "g_uri_parse_relative", false) | |
| 341 | 318 | var cerr *Error | |
| 342 | 319 | ||
| 343 | 320 | cret := xUriParseRelative(x.GoPointer(), UriRefVar, FlagsVar, &cerr) | |
| @@ -354,8 +331,6 @@ var xUriRef func(uintptr) uintptr | |||
| 354 | 331 | ||
| 355 | 332 | // Increments the reference count of @uri by one. | |
| 356 | 333 | func (x *Uri) Ref() *Uri { | |
| 357 | - | core.LazyRegister(&xUriRef, "GLIB", "g_uri_ref", false) | |
| 358 | - | ||
| 359 | 334 | cret := xUriRef(x.GoPointer()) | |
| 360 | 335 | if cret == 0 { | |
| 361 | 336 | return nil | |
| @@ -378,8 +353,6 @@ var xUriToString func(uintptr) string | |||
| 378 | 353 | // or private data in its query string, and the returned string is going to be | |
| 379 | 354 | // logged, then consider using g_uri_to_string_partial() to redact parts. | |
| 380 | 355 | func (x *Uri) ToString() string { | |
| 381 | - | core.LazyRegister(&xUriToString, "GLIB", "g_uri_to_string", false) | |
| 382 | - | ||
| 383 | 356 | cret := xUriToString(x.GoPointer()) | |
| 384 | 357 | return cret | |
| 385 | 358 | } | |
| @@ -389,8 +362,6 @@ var xUriToStringPartial func(uintptr, UriHideFlags) string | |||
| 389 | 362 | // Returns a string representing @uri, subject to the options in | |
| 390 | 363 | // @flags. See g_uri_to_string() and #GUriHideFlags for more details. | |
| 391 | 364 | func (x *Uri) ToStringPartial(FlagsVar UriHideFlags) string { | |
| 392 | - | core.LazyRegister(&xUriToStringPartial, "GLIB", "g_uri_to_string_partial", false) | |
| 393 | - | ||
| 394 | 365 | cret := xUriToStringPartial(x.GoPointer(), FlagsVar) | |
| 395 | 366 | return cret | |
| 396 | 367 | } | |
| @@ -402,8 +373,6 @@ var xUriUnref func(uintptr) | |||
| 402 | 373 | // When the reference count reaches zero, the resources allocated by | |
| 403 | 374 | // @uri are freed | |
| 404 | 375 | func (x *Uri) Unref() { | |
| 405 | - | core.LazyRegister(&xUriUnref, "GLIB", "g_uri_unref", false) | |
| 406 | - | ||
| 407 | 376 | xUriUnref(x.GoPointer()) | |
| 408 | 377 | } | |
| 409 | 378 | ||
| @@ -480,8 +449,6 @@ var xUriParamsIterInit func(uintptr, string, int, string, UriParamsFlags) | |||
| 480 | 449 | // | |
| 481 | 450 | // ]| | |
| 482 | 451 | func (x *UriParamsIter) Init(ParamsVar string, LengthVar int, SeparatorsVar string, FlagsVar UriParamsFlags) { | |
| 483 | - | core.LazyRegister(&xUriParamsIterInit, "GLIB", "g_uri_params_iter_init", false) | |
| 484 | - | ||
| 485 | 452 | xUriParamsIterInit(x.GoPointer(), ParamsVar, LengthVar, SeparatorsVar, FlagsVar) | |
| 486 | 453 | } | |
| 487 | 454 | ||
| @@ -497,7 +464,6 @@ var xUriParamsIterNext func(uintptr, *string, *string, **Error) bool | |||
| 497 | 464 | // Note that the same @attribute may be returned multiple times, since URIs | |
| 498 | 465 | // allow repeated attributes. | |
| 499 | 466 | func (x *UriParamsIter) Next(AttributeVar *string, ValueVar *string) (bool, error) { | |
| 500 | - | core.LazyRegister(&xUriParamsIterNext, "GLIB", "g_uri_params_iter_next", false) | |
| 501 | 467 | var cerr *Error | |
| 502 | 468 | ||
| 503 | 469 | cret := xUriParamsIterNext(x.GoPointer(), AttributeVar, ValueVar, &cerr) | |
| @@ -641,8 +607,6 @@ var xUriBuild func(UriFlags, string, uintptr, uintptr, int, string, uintptr, uin | |||
| 641 | 607 | // See also g_uri_build_with_user(), which allows specifying the | |
| 642 | 608 | // components of the "userinfo" separately. | |
| 643 | 609 | func UriBuild(FlagsVar UriFlags, SchemeVar string, UserinfoVar *string, HostVar *string, PortVar int, PathVar string, QueryVar *string, FragmentVar *string) *Uri { | |
| 644 | - | core.LazyRegister(&xUriBuild, "GLIB", "g_uri_build", false) | |
| 645 | - | ||
| 646 | 610 | UserinfoVarPtr := core.GStrdupNullable(UserinfoVar) | |
| 647 | 611 | defer core.GFreeNullable(UserinfoVarPtr) | |
| 648 | 612 | ||
| @@ -673,8 +637,6 @@ var xUriBuildWithUser func(UriFlags, string, uintptr, uintptr, uintptr, uintptr, | |||
| 673 | 637 | // of the ‘userinfo’ field separately. Note that @user must be non-%NULL | |
| 674 | 638 | // if either @password or @auth_params is non-%NULL. | |
| 675 | 639 | func UriBuildWithUser(FlagsVar UriFlags, SchemeVar string, UserVar *string, PasswordVar *string, AuthParamsVar *string, HostVar *string, PortVar int, PathVar string, QueryVar *string, FragmentVar *string) *Uri { | |
| 676 | - | core.LazyRegister(&xUriBuildWithUser, "GLIB", "g_uri_build_with_user", false) | |
| 677 | - | ||
| 678 | 640 | UserVarPtr := core.GStrdupNullable(UserVar) | |
| 679 | 641 | defer core.GFreeNullable(UserVarPtr) | |
| 680 | 642 | ||
| @@ -714,8 +676,6 @@ var xUriEscapeBytes func([]byte, uint, uintptr) string | |||
| 714 | 676 | // Though technically incorrect, this will also allow escaping nul | |
| 715 | 677 | // bytes as `%“00`. | |
| 716 | 678 | func UriEscapeBytes(UnescapedVar []byte, LengthVar uint, ReservedCharsAllowedVar *string) string { | |
| 717 | - | core.LazyRegister(&xUriEscapeBytes, "GLIB", "g_uri_escape_bytes", false) | |
| 718 | - | ||
| 719 | 679 | ReservedCharsAllowedVarPtr := core.GStrdupNullable(ReservedCharsAllowedVar) | |
| 720 | 680 | defer core.GFreeNullable(ReservedCharsAllowedVarPtr) | |
| 721 | 681 | ||
| @@ -734,8 +694,6 @@ var xUriEscapeString func(string, uintptr, bool) string | |||
| 734 | 694 | // in the URI specification, since those are allowed unescaped in some | |
| 735 | 695 | // portions of a URI. | |
| 736 | 696 | func UriEscapeString(UnescapedVar string, ReservedCharsAllowedVar *string, AllowUtf8Var bool) string { | |
| 737 | - | core.LazyRegister(&xUriEscapeString, "GLIB", "g_uri_escape_string", false) | |
| 738 | - | ||
| 739 | 697 | ReservedCharsAllowedVarPtr := core.GStrdupNullable(ReservedCharsAllowedVar) | |
| 740 | 698 | defer core.GFreeNullable(ReservedCharsAllowedVarPtr) | |
| 741 | 699 | ||
| @@ -754,7 +712,6 @@ var xUriIsValid func(string, UriFlags, **Error) bool | |||
| 754 | 712 | // See g_uri_split(), and the definition of #GUriFlags, for more | |
| 755 | 713 | // information on the effect of @flags. | |
| 756 | 714 | func UriIsValid(UriStringVar string, FlagsVar UriFlags) (bool, error) { | |
| 757 | - | core.LazyRegister(&xUriIsValid, "GLIB", "g_uri_is_valid", false) | |
| 758 | 715 | var cerr *Error | |
| 759 | 716 | ||
| 760 | 717 | cret := xUriIsValid(UriStringVar, FlagsVar, &cerr) | |
| @@ -781,8 +738,6 @@ var xUriJoin func(UriFlags, uintptr, uintptr, uintptr, int, string, uintptr, uin | |||
| 781 | 738 | // %G_URI_FLAGS_HAS_PASSWORD and %G_URI_FLAGS_HAS_AUTH_PARAMS are ignored if set | |
| 782 | 739 | // in @flags. | |
| 783 | 740 | func UriJoin(FlagsVar UriFlags, SchemeVar *string, UserinfoVar *string, HostVar *string, PortVar int, PathVar string, QueryVar *string, FragmentVar *string) string { | |
| 784 | - | core.LazyRegister(&xUriJoin, "GLIB", "g_uri_join", false) | |
| 785 | - | ||
| 786 | 741 | SchemeVarPtr := core.GStrdupNullable(SchemeVar) | |
| 787 | 742 | defer core.GFreeNullable(SchemeVarPtr) | |
| 788 | 743 | ||
| @@ -814,8 +769,6 @@ var xUriJoinWithUser func(UriFlags, uintptr, uintptr, uintptr, uintptr, uintptr, | |||
| 814 | 769 | // %G_URI_FLAGS_HAS_PASSWORD and %G_URI_FLAGS_HAS_AUTH_PARAMS are ignored if set | |
| 815 | 770 | // in @flags. | |
| 816 | 771 | func UriJoinWithUser(FlagsVar UriFlags, SchemeVar *string, UserVar *string, PasswordVar *string, AuthParamsVar *string, HostVar *string, PortVar int, PathVar string, QueryVar *string, FragmentVar *string) string { | |
| 817 | - | core.LazyRegister(&xUriJoinWithUser, "GLIB", "g_uri_join_with_user", false) | |
| 818 | - | ||
| 819 | 772 | SchemeVarPtr := core.GStrdupNullable(SchemeVar) | |
| 820 | 773 | defer core.GFreeNullable(SchemeVarPtr) | |
| 821 | 774 | ||
| @@ -847,7 +800,6 @@ var xUriParse func(string, UriFlags, **Error) uintptr | |||
| 847 | 800 | // valid [absolute URI](#relative-and-absolute-uris), it will be discarded, and an | |
| 848 | 801 | // error returned. | |
| 849 | 802 | func UriParse(UriStringVar string, FlagsVar UriFlags) (*Uri, error) { | |
| 850 | - | core.LazyRegister(&xUriParse, "GLIB", "g_uri_parse", false) | |
| 851 | 803 | var cerr *Error | |
| 852 | 804 | ||
| 853 | 805 | cret := xUriParse(UriStringVar, FlagsVar, &cerr) | |
| @@ -887,7 +839,6 @@ var xUriParseParams func(string, int, string, UriParamsFlags, **Error) uintptr | |||
| 887 | 839 | // If @params cannot be parsed (for example, it contains two @separators | |
| 888 | 840 | // characters in a row), then @error is set and %NULL is returned. | |
| 889 | 841 | func UriParseParams(ParamsVar string, LengthVar int, SeparatorsVar string, FlagsVar UriParamsFlags) (*HashTable, error) { | |
| 890 | - | core.LazyRegister(&xUriParseParams, "GLIB", "g_uri_parse_params", false) | |
| 891 | 842 | var cerr *Error | |
| 892 | 843 | ||
| 893 | 844 | cret := xUriParseParams(ParamsVar, LengthVar, SeparatorsVar, FlagsVar, &cerr) | |
| @@ -910,8 +861,6 @@ var xUriParseScheme func(string) string | |||
| 910 | 861 | // ]| | |
| 911 | 862 | // Common schemes include `file`, `https`, `svn+ssh`, etc. | |
| 912 | 863 | func UriParseScheme(UriVar string) string { | |
| 913 | - | core.LazyRegister(&xUriParseScheme, "GLIB", "g_uri_parse_scheme", false) | |
| 914 | - | ||
| 915 | 864 | cret := xUriParseScheme(UriVar) | |
| 916 | 865 | return cret | |
| 917 | 866 | } | |
| @@ -929,8 +878,6 @@ var xUriPeekScheme func(string) string | |||
| 929 | 878 | // Unlike g_uri_parse_scheme(), the returned scheme is normalized to | |
| 930 | 879 | // all-lowercase and does not need to be freed. | |
| 931 | 880 | func UriPeekScheme(UriVar string) string { | |
| 932 | - | core.LazyRegister(&xUriPeekScheme, "GLIB", "g_uri_peek_scheme", false) | |
| 933 | - | ||
| 934 | 881 | cret := xUriPeekScheme(UriVar) | |
| 935 | 882 | return cret | |
| 936 | 883 | } | |
| @@ -945,7 +892,6 @@ var xUriResolveRelative func(uintptr, string, UriFlags, **Error) string | |||
| 945 | 892 | // (If @base_uri_string is %NULL, this just returns @uri_ref, or | |
| 946 | 893 | // %NULL if @uri_ref is invalid or not absolute.) | |
| 947 | 894 | func UriResolveRelative(BaseUriStringVar *string, UriRefVar string, FlagsVar UriFlags) (string, error) { | |
| 948 | - | core.LazyRegister(&xUriResolveRelative, "GLIB", "g_uri_resolve_relative", false) | |
| 949 | 895 | var cerr *Error | |
| 950 | 896 | ||
| 951 | 897 | BaseUriStringVarPtr := core.GStrdupNullable(BaseUriStringVar) | |
| @@ -977,7 +923,6 @@ var xUriSplit func(string, UriFlags, *string, *string, *string, *int, *string, * | |||
| 977 | 923 | // since it always returns only the full userinfo; use | |
| 978 | 924 | // g_uri_split_with_user() if you want it split up. | |
| 979 | 925 | func UriSplit(UriRefVar string, FlagsVar UriFlags, SchemeVar *string, UserinfoVar *string, HostVar *string, PortVar *int, PathVar *string, QueryVar *string, FragmentVar *string) (bool, error) { | |
| 980 | - | core.LazyRegister(&xUriSplit, "GLIB", "g_uri_split", false) | |
| 981 | 926 | var cerr *Error | |
| 982 | 927 | ||
| 983 | 928 | cret := xUriSplit(UriRefVar, FlagsVar, SchemeVar, UserinfoVar, HostVar, PortVar, PathVar, QueryVar, FragmentVar, &cerr) | |
| @@ -996,7 +941,6 @@ var xUriSplitNetwork func(string, UriFlags, *string, *string, *int, **Error) boo | |||
| 996 | 941 | // However, it will return an error if @uri_string is a relative URI, | |
| 997 | 942 | // or does not contain a hostname component. | |
| 998 | 943 | func UriSplitNetwork(UriStringVar string, FlagsVar UriFlags, SchemeVar *string, HostVar *string, PortVar *int) (bool, error) { | |
| 999 | - | core.LazyRegister(&xUriSplitNetwork, "GLIB", "g_uri_split_network", false) | |
| 1000 | 944 | var cerr *Error | |
| 1001 | 945 | ||
| 1002 | 946 | cret := xUriSplitNetwork(UriStringVar, FlagsVar, SchemeVar, HostVar, PortVar, &cerr) | |
| @@ -1020,7 +964,6 @@ var xUriSplitWithUser func(string, UriFlags, *string, *string, *string, *string, | |||
| 1020 | 964 | // @auth_params will only be parsed out if @flags contains | |
| 1021 | 965 | // %G_URI_FLAGS_HAS_AUTH_PARAMS. | |
| 1022 | 966 | func UriSplitWithUser(UriRefVar string, FlagsVar UriFlags, SchemeVar *string, UserVar *string, PasswordVar *string, AuthParamsVar *string, HostVar *string, PortVar *int, PathVar *string, QueryVar *string, FragmentVar *string) (bool, error) { | |
| 1023 | - | core.LazyRegister(&xUriSplitWithUser, "GLIB", "g_uri_split_with_user", false) | |
| 1024 | 967 | var cerr *Error | |
| 1025 | 968 | ||
| 1026 | 969 | cret := xUriSplitWithUser(UriRefVar, FlagsVar, SchemeVar, UserVar, PasswordVar, AuthParamsVar, HostVar, PortVar, PathVar, QueryVar, FragmentVar, &cerr) | |
| @@ -1043,7 +986,6 @@ var xUriUnescapeBytes func(string, int, uintptr, **Error) uintptr | |||
| 1043 | 986 | // being expanded in an escaped path element, which might confuse pathname | |
| 1044 | 987 | // handling. | |
| 1045 | 988 | func UriUnescapeBytes(EscapedStringVar string, LengthVar int, IllegalCharactersVar *string) (*Bytes, error) { | |
| 1046 | - | core.LazyRegister(&xUriUnescapeBytes, "GLIB", "g_uri_unescape_bytes", false) | |
| 1047 | 989 | var cerr *Error | |
| 1048 | 990 | ||
| 1049 | 991 | IllegalCharactersVarPtr := core.GStrdupNullable(IllegalCharactersVar) | |
| @@ -1072,8 +1014,6 @@ var xUriUnescapeSegment func(uintptr, uintptr, uintptr) string | |||
| 1072 | 1014 | // Note: `NUL` byte is not accepted in the output, in contrast to | |
| 1073 | 1015 | // g_uri_unescape_bytes(). | |
| 1074 | 1016 | func UriUnescapeSegment(EscapedStringVar *string, EscapedStringEndVar *string, IllegalCharactersVar *string) string { | |
| 1075 | - | core.LazyRegister(&xUriUnescapeSegment, "GLIB", "g_uri_unescape_segment", false) | |
| 1076 | - | ||
| 1077 | 1017 | EscapedStringVarPtr := core.GStrdupNullable(EscapedStringVar) | |
| 1078 | 1018 | defer core.GFreeNullable(EscapedStringVarPtr) | |
| 1079 | 1019 | ||
| @@ -1097,8 +1037,6 @@ var xUriUnescapeString func(string, uintptr) string | |||
| 1097 | 1037 | // want to avoid for instance having a slash being expanded in an | |
| 1098 | 1038 | // escaped path element, which might confuse pathname handling. | |
| 1099 | 1039 | func UriUnescapeString(EscapedStringVar string, IllegalCharactersVar *string) string { | |
| 1100 | - | core.LazyRegister(&xUriUnescapeString, "GLIB", "g_uri_unescape_string", false) | |
| 1101 | - | ||
| 1102 | 1040 | IllegalCharactersVarPtr := core.GStrdupNullable(IllegalCharactersVar) | |
| 1103 | 1041 | defer core.GFreeNullable(IllegalCharactersVarPtr) | |
| 1104 | 1042 | ||
| @@ -1109,4 +1047,53 @@ func UriUnescapeString(EscapedStringVar string, IllegalCharactersVar *string) st | |||
| 1109 | 1047 | func init() { | |
| 1110 | 1048 | core.SetPackageName("GLIB", "glib-2.0") | |
| 1111 | 1049 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | |
| 1050 | + | var libs []uintptr | |
| 1051 | + | for _, libPath := range core.GetPaths("GLIB") { | |
| 1052 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 1053 | + | if err != nil { | |
| 1054 | + | panic(err) | |
| 1055 | + | } | |
| 1056 | + | libs = append(libs, lib) | |
| 1057 | + | } | |
| 1058 | + | ||
| 1059 | + | core.PuregoSafeRegister(&xUriBuild, libs, "g_uri_build") | |
| 1060 | + | core.PuregoSafeRegister(&xUriBuildWithUser, libs, "g_uri_build_with_user") | |
| 1061 | + | core.PuregoSafeRegister(&xUriEscapeBytes, libs, "g_uri_escape_bytes") | |
| 1062 | + | core.PuregoSafeRegister(&xUriEscapeString, libs, "g_uri_escape_string") | |
| 1063 | + | core.PuregoSafeRegister(&xUriIsValid, libs, "g_uri_is_valid") | |
| 1064 | + | core.PuregoSafeRegister(&xUriJoin, libs, "g_uri_join") | |
| 1065 | + | core.PuregoSafeRegister(&xUriJoinWithUser, libs, "g_uri_join_with_user") | |
| 1066 | + | core.PuregoSafeRegister(&xUriParse, libs, "g_uri_parse") | |
| 1067 | + | core.PuregoSafeRegister(&xUriParseParams, libs, "g_uri_parse_params") | |
| 1068 | + | core.PuregoSafeRegister(&xUriParseScheme, libs, "g_uri_parse_scheme") | |
| 1069 | + | core.PuregoSafeRegister(&xUriPeekScheme, libs, "g_uri_peek_scheme") | |
| 1070 | + | core.PuregoSafeRegister(&xUriResolveRelative, libs, "g_uri_resolve_relative") | |
| 1071 | + | core.PuregoSafeRegister(&xUriSplit, libs, "g_uri_split") | |
| 1072 | + | core.PuregoSafeRegister(&xUriSplitNetwork, libs, "g_uri_split_network") | |
| 1073 | + | core.PuregoSafeRegister(&xUriSplitWithUser, libs, "g_uri_split_with_user") | |
| 1074 | + | core.PuregoSafeRegister(&xUriUnescapeBytes, libs, "g_uri_unescape_bytes") | |
| 1075 | + | core.PuregoSafeRegister(&xUriUnescapeSegment, libs, "g_uri_unescape_segment") | |
| 1076 | + | core.PuregoSafeRegister(&xUriUnescapeString, libs, "g_uri_unescape_string") | |
| 1077 | + | ||
| 1078 | + | core.PuregoSafeRegister(&xUriGLibType, libs, "g_uri_get_type") | |
| 1079 | + | ||
| 1080 | + | core.PuregoSafeRegister(&xUriGetAuthParams, libs, "g_uri_get_auth_params") | |
| 1081 | + | core.PuregoSafeRegister(&xUriGetFlags, libs, "g_uri_get_flags") | |
| 1082 | + | core.PuregoSafeRegister(&xUriGetFragment, libs, "g_uri_get_fragment") | |
| 1083 | + | core.PuregoSafeRegister(&xUriGetHost, libs, "g_uri_get_host") | |
| 1084 | + | core.PuregoSafeRegister(&xUriGetPassword, libs, "g_uri_get_password") | |
| 1085 | + | core.PuregoSafeRegister(&xUriGetPath, libs, "g_uri_get_path") | |
| 1086 | + | core.PuregoSafeRegister(&xUriGetPort, libs, "g_uri_get_port") | |
| 1087 | + | core.PuregoSafeRegister(&xUriGetQuery, libs, "g_uri_get_query") | |
| 1088 | + | core.PuregoSafeRegister(&xUriGetScheme, libs, "g_uri_get_scheme") | |
| 1089 | + | core.PuregoSafeRegister(&xUriGetUser, libs, "g_uri_get_user") | |
| 1090 | + | core.PuregoSafeRegister(&xUriGetUserinfo, libs, "g_uri_get_userinfo") | |
| 1091 | + | core.PuregoSafeRegister(&xUriParseRelative, libs, "g_uri_parse_relative") | |
| 1092 | + | core.PuregoSafeRegister(&xUriRef, libs, "g_uri_ref") | |
| 1093 | + | core.PuregoSafeRegister(&xUriToString, libs, "g_uri_to_string") | |
| 1094 | + | core.PuregoSafeRegister(&xUriToStringPartial, libs, "g_uri_to_string_partial") | |
| 1095 | + | core.PuregoSafeRegister(&xUriUnref, libs, "g_uri_unref") | |
| 1096 | + | ||
| 1097 | + | core.PuregoSafeRegister(&xUriParamsIterInit, libs, "g_uri_params_iter_init") | |
| 1098 | + | core.PuregoSafeRegister(&xUriParamsIterNext, libs, "g_uri_params_iter_next") | |
| 1112 | 1099 | } | |
| @@ -5,6 +5,7 @@ import ( | |||||
| 5 | "structs" | 5 | "structs" | ||
| 6 | "unsafe" | 6 | "unsafe" | ||
| 7 | 7 | ||||
| 8 | + | "github.com/bnema/purego" | |||
| 8 | "github.com/bnema/puregotk/pkg/core" | 9 | "github.com/bnema/puregotk/pkg/core" | ||
| 9 | "github.com/bnema/puregotk/v4/gobject/types" | 10 | "github.com/bnema/puregotk/v4/gobject/types" | ||
| 10 | ) | 11 | ) | ||
| @@ -177,7 +178,6 @@ type Uri struct { | |||||
| 177 | var xUriGLibType func() types.GType | 178 | var xUriGLibType func() types.GType | ||
| 178 | 179 | ||||
| 179 | func UriGLibType() types.GType { | 180 | func UriGLibType() types.GType { | ||
| 180 | - | core.LazyRegister(&xUriGLibType, "GLIB", "g_uri_get_type", false) | |||
| 181 | return xUriGLibType() | 181 | return xUriGLibType() | ||
| 182 | } | 182 | } | ||
| 183 | 183 | ||||
| @@ -203,8 +203,6 @@ var xUriGetAuthParams func(uintptr) string | |||||
| 203 | // Depending on the URI scheme, g_uri_parse_params() may be useful for | 203 | // Depending on the URI scheme, g_uri_parse_params() may be useful for | ||
| 204 | // further parsing this information. | 204 | // further parsing this information. | ||
| 205 | func (x *Uri) GetAuthParams() string { | 205 | func (x *Uri) GetAuthParams() string { | ||
| 206 | - | core.LazyRegister(&xUriGetAuthParams, "GLIB", "g_uri_get_auth_params", false) | |||
| 207 | - | ||||
| 208 | cret := xUriGetAuthParams(x.GoPointer()) | 206 | cret := xUriGetAuthParams(x.GoPointer()) | ||
| 209 | return cret | 207 | return cret | ||
| 210 | } | 208 | } | ||
| @@ -213,8 +211,6 @@ var xUriGetFlags func(uintptr) UriFlags | |||||
| 213 | 211 | ||||
| 214 | // Gets @uri's flags set upon construction. | 212 | // Gets @uri's flags set upon construction. | ||
| 215 | func (x *Uri) GetFlags() UriFlags { | 213 | func (x *Uri) GetFlags() UriFlags { | ||
| 216 | - | core.LazyRegister(&xUriGetFlags, "GLIB", "g_uri_get_flags", false) | |||
| 217 | - | ||||
| 218 | cret := xUriGetFlags(x.GoPointer()) | 214 | cret := xUriGetFlags(x.GoPointer()) | ||
| 219 | return cret | 215 | return cret | ||
| 220 | } | 216 | } | ||
| @@ -224,8 +220,6 @@ var xUriGetFragment func(uintptr) string | |||||
| 224 | // Gets @uri's fragment, which may contain `%`-encoding, depending on | 220 | // Gets @uri's fragment, which may contain `%`-encoding, depending on | ||
| 225 | // the flags with which @uri was created. | 221 | // the flags with which @uri was created. | ||
| 226 | func (x *Uri) GetFragment() string { | 222 | func (x *Uri) GetFragment() string { | ||
| 227 | - | core.LazyRegister(&xUriGetFragment, "GLIB", "g_uri_get_fragment", false) | |||
| 228 | - | ||||
| 229 | cret := xUriGetFragment(x.GoPointer()) | 223 | cret := xUriGetFragment(x.GoPointer()) | ||
| 230 | return cret | 224 | return cret | ||
| 231 | } | 225 | } | ||
| @@ -242,8 +236,6 @@ var xUriGetHost func(uintptr) string | |||||
| 242 | // be a scope ID attached to the address. Eg, `fe80::1234%“em1` (or | 236 | // be a scope ID attached to the address. Eg, `fe80::1234%“em1` (or | ||
| 243 | // `fe80::1234%“25em1` if the string is still encoded). | 237 | // `fe80::1234%“25em1` if the string is still encoded). | ||
| 244 | func (x *Uri) GetHost() string { | 238 | func (x *Uri) GetHost() string { | ||
| 245 | - | core.LazyRegister(&xUriGetHost, "GLIB", "g_uri_get_host", false) | |||
| 246 | - | ||||
| 247 | cret := xUriGetHost(x.GoPointer()) | 239 | cret := xUriGetHost(x.GoPointer()) | ||
| 248 | return cret | 240 | return cret | ||
| 249 | } | 241 | } | ||
| @@ -254,8 +246,6 @@ var xUriGetPassword func(uintptr) string | |||||
| 254 | // the flags with which @uri was created. (If @uri was not created | 246 | // the flags with which @uri was created. (If @uri was not created | ||
| 255 | // with %G_URI_FLAGS_HAS_PASSWORD then this will be %NULL.) | 247 | // with %G_URI_FLAGS_HAS_PASSWORD then this will be %NULL.) | ||
| 256 | func (x *Uri) GetPassword() string { | 248 | func (x *Uri) GetPassword() string { | ||
| 257 | - | core.LazyRegister(&xUriGetPassword, "GLIB", "g_uri_get_password", false) | |||
| 258 | - | ||||
| 259 | cret := xUriGetPassword(x.GoPointer()) | 249 | cret := xUriGetPassword(x.GoPointer()) | ||
| 260 | return cret | 250 | return cret | ||
| 261 | } | 251 | } | ||
| @@ -265,8 +255,6 @@ var xUriGetPath func(uintptr) string | |||||
| 265 | // Gets @uri's path, which may contain `%`-encoding, depending on the | 255 | // Gets @uri's path, which may contain `%`-encoding, depending on the | ||
| 266 | // flags with which @uri was created. | 256 | // flags with which @uri was created. | ||
| 267 | func (x *Uri) GetPath() string { | 257 | func (x *Uri) GetPath() string { | ||
| 268 | - | core.LazyRegister(&xUriGetPath, "GLIB", "g_uri_get_path", false) | |||
| 269 | - | ||||
| 270 | cret := xUriGetPath(x.GoPointer()) | 258 | cret := xUriGetPath(x.GoPointer()) | ||
| 271 | return cret | 259 | return cret | ||
| 272 | } | 260 | } | ||
| @@ -275,8 +263,6 @@ var xUriGetPort func(uintptr) int | |||||
| 275 | 263 | ||||
| 276 | // Gets @uri's port. | 264 | // Gets @uri's port. | ||
| 277 | func (x *Uri) GetPort() int { | 265 | func (x *Uri) GetPort() int { | ||
| 278 | - | core.LazyRegister(&xUriGetPort, "GLIB", "g_uri_get_port", false) | |||
| 279 | - | ||||
| 280 | cret := xUriGetPort(x.GoPointer()) | 266 | cret := xUriGetPort(x.GoPointer()) | ||
| 281 | return cret | 267 | return cret | ||
| 282 | } | 268 | } | ||
| @@ -289,8 +275,6 @@ var xUriGetQuery func(uintptr) string | |||||
| 289 | // For queries consisting of a series of `name=value` parameters, | 275 | // For queries consisting of a series of `name=value` parameters, | ||
| 290 | // #GUriParamsIter or g_uri_parse_params() may be useful. | 276 | // #GUriParamsIter or g_uri_parse_params() may be useful. | ||
| 291 | func (x *Uri) GetQuery() string { | 277 | func (x *Uri) GetQuery() string { | ||
| 292 | - | core.LazyRegister(&xUriGetQuery, "GLIB", "g_uri_get_query", false) | |||
| 293 | - | ||||
| 294 | cret := xUriGetQuery(x.GoPointer()) | 278 | cret := xUriGetQuery(x.GoPointer()) | ||
| 295 | return cret | 279 | return cret | ||
| 296 | } | 280 | } | ||
| @@ -300,8 +284,6 @@ var xUriGetScheme func(uintptr) string | |||||
| 300 | // Gets @uri's scheme. Note that this will always be all-lowercase, | 284 | // Gets @uri's scheme. Note that this will always be all-lowercase, | ||
| 301 | // regardless of the string or strings that @uri was created from. | 285 | // regardless of the string or strings that @uri was created from. | ||
| 302 | func (x *Uri) GetScheme() string { | 286 | func (x *Uri) GetScheme() string { | ||
| 303 | - | core.LazyRegister(&xUriGetScheme, "GLIB", "g_uri_get_scheme", false) | |||
| 304 | - | ||||
| 305 | cret := xUriGetScheme(x.GoPointer()) | 287 | cret := xUriGetScheme(x.GoPointer()) | ||
| 306 | return cret | 288 | return cret | ||
| 307 | } | 289 | } | ||
| @@ -313,8 +295,6 @@ var xUriGetUser func(uintptr) string | |||||
| 313 | // If @uri was not created with %G_URI_FLAGS_HAS_PASSWORD or | 295 | // If @uri was not created with %G_URI_FLAGS_HAS_PASSWORD or | ||
| 314 | // %G_URI_FLAGS_HAS_AUTH_PARAMS, this is the same as g_uri_get_userinfo(). | 296 | // %G_URI_FLAGS_HAS_AUTH_PARAMS, this is the same as g_uri_get_userinfo(). | ||
| 315 | func (x *Uri) GetUser() string { | 297 | func (x *Uri) GetUser() string { | ||
| 316 | - | core.LazyRegister(&xUriGetUser, "GLIB", "g_uri_get_user", false) | |||
| 317 | - | ||||
| 318 | cret := xUriGetUser(x.GoPointer()) | 298 | cret := xUriGetUser(x.GoPointer()) | ||
| 319 | return cret | 299 | return cret | ||
| 320 | } | 300 | } | ||
| @@ -324,8 +304,6 @@ var xUriGetUserinfo func(uintptr) string | |||||
| 324 | // Gets @uri's userinfo, which may contain `%`-encoding, depending on | 304 | // Gets @uri's userinfo, which may contain `%`-encoding, depending on | ||
| 325 | // the flags with which @uri was created. | 305 | // the flags with which @uri was created. | ||
| 326 | func (x *Uri) GetUserinfo() string { | 306 | func (x *Uri) GetUserinfo() string { | ||
| 327 | - | core.LazyRegister(&xUriGetUserinfo, "GLIB", "g_uri_get_userinfo", false) | |||
| 328 | - | ||||
| 329 | cret := xUriGetUserinfo(x.GoPointer()) | 307 | cret := xUriGetUserinfo(x.GoPointer()) | ||
| 330 | return cret | 308 | return cret | ||
| 331 | } | 309 | } | ||
| @@ -337,7 +315,6 @@ var xUriParseRelative func(uintptr, string, UriFlags, **Error) uintptr | |||||
| 337 | // If the result is not a valid absolute URI, it will be discarded, and an error | 315 | // If the result is not a valid absolute URI, it will be discarded, and an error | ||
| 338 | // returned. | 316 | // returned. | ||
| 339 | func (x *Uri) ParseRelative(UriRefVar string, FlagsVar UriFlags) (*Uri, error) { | 317 | func (x *Uri) ParseRelative(UriRefVar string, FlagsVar UriFlags) (*Uri, error) { | ||
| 340 | - | core.LazyRegister(&xUriParseRelative, "GLIB", "g_uri_parse_relative", false) | |||
| 341 | var cerr *Error | 318 | var cerr *Error | ||
| 342 | 319 | ||||
| 343 | cret := xUriParseRelative(x.GoPointer(), UriRefVar, FlagsVar, &cerr) | 320 | cret := xUriParseRelative(x.GoPointer(), UriRefVar, FlagsVar, &cerr) | ||
| @@ -354,8 +331,6 @@ var xUriRef func(uintptr) uintptr | |||||
| 354 | 331 | ||||
| 355 | // Increments the reference count of @uri by one. | 332 | // Increments the reference count of @uri by one. | ||
| 356 | func (x *Uri) Ref() *Uri { | 333 | func (x *Uri) Ref() *Uri { | ||
| 357 | - | core.LazyRegister(&xUriRef, "GLIB", "g_uri_ref", false) | |||
| 358 | - | ||||
| 359 | cret := xUriRef(x.GoPointer()) | 334 | cret := xUriRef(x.GoPointer()) | ||
| 360 | if cret == 0 { | 335 | if cret == 0 { | ||
| 361 | return nil | 336 | return nil | ||
| @@ -378,8 +353,6 @@ var xUriToString func(uintptr) string | |||||
| 378 | // or private data in its query string, and the returned string is going to be | 353 | // or private data in its query string, and the returned string is going to be | ||
| 379 | // logged, then consider using g_uri_to_string_partial() to redact parts. | 354 | // logged, then consider using g_uri_to_string_partial() to redact parts. | ||
| 380 | func (x *Uri) ToString() string { | 355 | func (x *Uri) ToString() string { | ||
| 381 | - | core.LazyRegister(&xUriToString, "GLIB", "g_uri_to_string", false) | |||
| 382 | - | ||||
| 383 | cret := xUriToString(x.GoPointer()) | 356 | cret := xUriToString(x.GoPointer()) | ||
| 384 | return cret | 357 | return cret | ||
| 385 | } | 358 | } | ||
| @@ -389,8 +362,6 @@ var xUriToStringPartial func(uintptr, UriHideFlags) string | |||||
| 389 | // Returns a string representing @uri, subject to the options in | 362 | // Returns a string representing @uri, subject to the options in | ||
| 390 | // @flags. See g_uri_to_string() and #GUriHideFlags for more details. | 363 | // @flags. See g_uri_to_string() and #GUriHideFlags for more details. | ||
| 391 | func (x *Uri) ToStringPartial(FlagsVar UriHideFlags) string { | 364 | func (x *Uri) ToStringPartial(FlagsVar UriHideFlags) string { | ||
| 392 | - | core.LazyRegister(&xUriToStringPartial, "GLIB", "g_uri_to_string_partial", false) | |||
| 393 | - | ||||
| 394 | cret := xUriToStringPartial(x.GoPointer(), FlagsVar) | 365 | cret := xUriToStringPartial(x.GoPointer(), FlagsVar) | ||
| 395 | return cret | 366 | return cret | ||
| 396 | } | 367 | } | ||
| @@ -402,8 +373,6 @@ var xUriUnref func(uintptr) | |||||
| 402 | // When the reference count reaches zero, the resources allocated by | 373 | // When the reference count reaches zero, the resources allocated by | ||
| 403 | // @uri are freed | 374 | // @uri are freed | ||
| 404 | func (x *Uri) Unref() { | 375 | func (x *Uri) Unref() { | ||
| 405 | - | core.LazyRegister(&xUriUnref, "GLIB", "g_uri_unref", false) | |||
| 406 | - | ||||
| 407 | xUriUnref(x.GoPointer()) | 376 | xUriUnref(x.GoPointer()) | ||
| 408 | } | 377 | } | ||
| 409 | 378 | ||||
| @@ -480,8 +449,6 @@ var xUriParamsIterInit func(uintptr, string, int, string, UriParamsFlags) | |||||
| 480 | // | 449 | // | ||
| 481 | // ]| | 450 | // ]| | ||
| 482 | func (x *UriParamsIter) Init(ParamsVar string, LengthVar int, SeparatorsVar string, FlagsVar UriParamsFlags) { | 451 | func (x *UriParamsIter) Init(ParamsVar string, LengthVar int, SeparatorsVar string, FlagsVar UriParamsFlags) { | ||
| 483 | - | core.LazyRegister(&xUriParamsIterInit, "GLIB", "g_uri_params_iter_init", false) | |||
| 484 | - | ||||
| 485 | xUriParamsIterInit(x.GoPointer(), ParamsVar, LengthVar, SeparatorsVar, FlagsVar) | 452 | xUriParamsIterInit(x.GoPointer(), ParamsVar, LengthVar, SeparatorsVar, FlagsVar) | ||
| 486 | } | 453 | } | ||
| 487 | 454 | ||||
| @@ -497,7 +464,6 @@ var xUriParamsIterNext func(uintptr, *string, *string, **Error) bool | |||||
| 497 | // Note that the same @attribute may be returned multiple times, since URIs | 464 | // Note that the same @attribute may be returned multiple times, since URIs | ||
| 498 | // allow repeated attributes. | 465 | // allow repeated attributes. | ||
| 499 | func (x *UriParamsIter) Next(AttributeVar *string, ValueVar *string) (bool, error) { | 466 | func (x *UriParamsIter) Next(AttributeVar *string, ValueVar *string) (bool, error) { | ||
| 500 | - | core.LazyRegister(&xUriParamsIterNext, "GLIB", "g_uri_params_iter_next", false) | |||
| 501 | var cerr *Error | 467 | var cerr *Error | ||
| 502 | 468 | ||||
| 503 | cret := xUriParamsIterNext(x.GoPointer(), AttributeVar, ValueVar, &cerr) | 469 | cret := xUriParamsIterNext(x.GoPointer(), AttributeVar, ValueVar, &cerr) | ||
| @@ -641,8 +607,6 @@ var xUriBuild func(UriFlags, string, uintptr, uintptr, int, string, uintptr, uin | |||||
| 641 | // See also g_uri_build_with_user(), which allows specifying the | 607 | // See also g_uri_build_with_user(), which allows specifying the | ||
| 642 | // components of the "userinfo" separately. | 608 | // components of the "userinfo" separately. | ||
| 643 | func UriBuild(FlagsVar UriFlags, SchemeVar string, UserinfoVar *string, HostVar *string, PortVar int, PathVar string, QueryVar *string, FragmentVar *string) *Uri { | 609 | func UriBuild(FlagsVar UriFlags, SchemeVar string, UserinfoVar *string, HostVar *string, PortVar int, PathVar string, QueryVar *string, FragmentVar *string) *Uri { | ||
| 644 | - | core.LazyRegister(&xUriBuild, "GLIB", "g_uri_build", false) | |||
| 645 | - | ||||
| 646 | UserinfoVarPtr := core.GStrdupNullable(UserinfoVar) | 610 | UserinfoVarPtr := core.GStrdupNullable(UserinfoVar) | ||
| 647 | defer core.GFreeNullable(UserinfoVarPtr) | 611 | defer core.GFreeNullable(UserinfoVarPtr) | ||
| 648 | 612 | ||||
| @@ -673,8 +637,6 @@ var xUriBuildWithUser func(UriFlags, string, uintptr, uintptr, uintptr, uintptr, | |||||
| 673 | // of the ‘userinfo’ field separately. Note that @user must be non-%NULL | 637 | // of the ‘userinfo’ field separately. Note that @user must be non-%NULL | ||
| 674 | // if either @password or @auth_params is non-%NULL. | 638 | // if either @password or @auth_params is non-%NULL. | ||
| 675 | func UriBuildWithUser(FlagsVar UriFlags, SchemeVar string, UserVar *string, PasswordVar *string, AuthParamsVar *string, HostVar *string, PortVar int, PathVar string, QueryVar *string, FragmentVar *string) *Uri { | 639 | func UriBuildWithUser(FlagsVar UriFlags, SchemeVar string, UserVar *string, PasswordVar *string, AuthParamsVar *string, HostVar *string, PortVar int, PathVar string, QueryVar *string, FragmentVar *string) *Uri { | ||
| 676 | - | core.LazyRegister(&xUriBuildWithUser, "GLIB", "g_uri_build_with_user", false) | |||
| 677 | - | ||||
| 678 | UserVarPtr := core.GStrdupNullable(UserVar) | 640 | UserVarPtr := core.GStrdupNullable(UserVar) | ||
| 679 | defer core.GFreeNullable(UserVarPtr) | 641 | defer core.GFreeNullable(UserVarPtr) | ||
| 680 | 642 | ||||
| @@ -714,8 +676,6 @@ var xUriEscapeBytes func([]byte, uint, uintptr) string | |||||
| 714 | // Though technically incorrect, this will also allow escaping nul | 676 | // Though technically incorrect, this will also allow escaping nul | ||
| 715 | // bytes as `%“00`. | 677 | // bytes as `%“00`. | ||
| 716 | func UriEscapeBytes(UnescapedVar []byte, LengthVar uint, ReservedCharsAllowedVar *string) string { | 678 | func UriEscapeBytes(UnescapedVar []byte, LengthVar uint, ReservedCharsAllowedVar *string) string { | ||
| 717 | - | core.LazyRegister(&xUriEscapeBytes, "GLIB", "g_uri_escape_bytes", false) | |||
| 718 | - | ||||
| 719 | ReservedCharsAllowedVarPtr := core.GStrdupNullable(ReservedCharsAllowedVar) | 679 | ReservedCharsAllowedVarPtr := core.GStrdupNullable(ReservedCharsAllowedVar) | ||
| 720 | defer core.GFreeNullable(ReservedCharsAllowedVarPtr) | 680 | defer core.GFreeNullable(ReservedCharsAllowedVarPtr) | ||
| 721 | 681 | ||||
| @@ -734,8 +694,6 @@ var xUriEscapeString func(string, uintptr, bool) string | |||||
| 734 | // in the URI specification, since those are allowed unescaped in some | 694 | // in the URI specification, since those are allowed unescaped in some | ||
| 735 | // portions of a URI. | 695 | // portions of a URI. | ||
| 736 | func UriEscapeString(UnescapedVar string, ReservedCharsAllowedVar *string, AllowUtf8Var bool) string { | 696 | func UriEscapeString(UnescapedVar string, ReservedCharsAllowedVar *string, AllowUtf8Var bool) string { | ||
| 737 | - | core.LazyRegister(&xUriEscapeString, "GLIB", "g_uri_escape_string", false) | |||
| 738 | - | ||||
| 739 | ReservedCharsAllowedVarPtr := core.GStrdupNullable(ReservedCharsAllowedVar) | 697 | ReservedCharsAllowedVarPtr := core.GStrdupNullable(ReservedCharsAllowedVar) | ||
| 740 | defer core.GFreeNullable(ReservedCharsAllowedVarPtr) | 698 | defer core.GFreeNullable(ReservedCharsAllowedVarPtr) | ||
| 741 | 699 | ||||
| @@ -754,7 +712,6 @@ var xUriIsValid func(string, UriFlags, **Error) bool | |||||
| 754 | // See g_uri_split(), and the definition of #GUriFlags, for more | 712 | // See g_uri_split(), and the definition of #GUriFlags, for more | ||
| 755 | // information on the effect of @flags. | 713 | // information on the effect of @flags. | ||
| 756 | func UriIsValid(UriStringVar string, FlagsVar UriFlags) (bool, error) { | 714 | func UriIsValid(UriStringVar string, FlagsVar UriFlags) (bool, error) { | ||
| 757 | - | core.LazyRegister(&xUriIsValid, "GLIB", "g_uri_is_valid", false) | |||
| 758 | var cerr *Error | 715 | var cerr *Error | ||
| 759 | 716 | ||||
| 760 | cret := xUriIsValid(UriStringVar, FlagsVar, &cerr) | 717 | cret := xUriIsValid(UriStringVar, FlagsVar, &cerr) | ||
| @@ -781,8 +738,6 @@ var xUriJoin func(UriFlags, uintptr, uintptr, uintptr, int, string, uintptr, uin | |||||
| 781 | // %G_URI_FLAGS_HAS_PASSWORD and %G_URI_FLAGS_HAS_AUTH_PARAMS are ignored if set | 738 | // %G_URI_FLAGS_HAS_PASSWORD and %G_URI_FLAGS_HAS_AUTH_PARAMS are ignored if set | ||
| 782 | // in @flags. | 739 | // in @flags. | ||
| 783 | func UriJoin(FlagsVar UriFlags, SchemeVar *string, UserinfoVar *string, HostVar *string, PortVar int, PathVar string, QueryVar *string, FragmentVar *string) string { | 740 | func UriJoin(FlagsVar UriFlags, SchemeVar *string, UserinfoVar *string, HostVar *string, PortVar int, PathVar string, QueryVar *string, FragmentVar *string) string { | ||
| 784 | - | core.LazyRegister(&xUriJoin, "GLIB", "g_uri_join", false) | |||
| 785 | - | ||||
| 786 | SchemeVarPtr := core.GStrdupNullable(SchemeVar) | 741 | SchemeVarPtr := core.GStrdupNullable(SchemeVar) | ||
| 787 | defer core.GFreeNullable(SchemeVarPtr) | 742 | defer core.GFreeNullable(SchemeVarPtr) | ||
| 788 | 743 | ||||
| @@ -814,8 +769,6 @@ var xUriJoinWithUser func(UriFlags, uintptr, uintptr, uintptr, uintptr, uintptr, | |||||
| 814 | // %G_URI_FLAGS_HAS_PASSWORD and %G_URI_FLAGS_HAS_AUTH_PARAMS are ignored if set | 769 | // %G_URI_FLAGS_HAS_PASSWORD and %G_URI_FLAGS_HAS_AUTH_PARAMS are ignored if set | ||
| 815 | // in @flags. | 770 | // in @flags. | ||
| 816 | func UriJoinWithUser(FlagsVar UriFlags, SchemeVar *string, UserVar *string, PasswordVar *string, AuthParamsVar *string, HostVar *string, PortVar int, PathVar string, QueryVar *string, FragmentVar *string) string { | 771 | func UriJoinWithUser(FlagsVar UriFlags, SchemeVar *string, UserVar *string, PasswordVar *string, AuthParamsVar *string, HostVar *string, PortVar int, PathVar string, QueryVar *string, FragmentVar *string) string { | ||
| 817 | - | core.LazyRegister(&xUriJoinWithUser, "GLIB", "g_uri_join_with_user", false) | |||
| 818 | - | ||||
| 819 | SchemeVarPtr := core.GStrdupNullable(SchemeVar) | 772 | SchemeVarPtr := core.GStrdupNullable(SchemeVar) | ||
| 820 | defer core.GFreeNullable(SchemeVarPtr) | 773 | defer core.GFreeNullable(SchemeVarPtr) | ||
| 821 | 774 | ||||
| @@ -847,7 +800,6 @@ var xUriParse func(string, UriFlags, **Error) uintptr | |||||
| 847 | // valid [absolute URI](#relative-and-absolute-uris), it will be discarded, and an | 800 | // valid [absolute URI](#relative-and-absolute-uris), it will be discarded, and an | ||
| 848 | // error returned. | 801 | // error returned. | ||
| 849 | func UriParse(UriStringVar string, FlagsVar UriFlags) (*Uri, error) { | 802 | func UriParse(UriStringVar string, FlagsVar UriFlags) (*Uri, error) { | ||
| 850 | - | core.LazyRegister(&xUriParse, "GLIB", "g_uri_parse", false) | |||
| 851 | var cerr *Error | 803 | var cerr *Error | ||
| 852 | 804 | ||||
| 853 | cret := xUriParse(UriStringVar, FlagsVar, &cerr) | 805 | cret := xUriParse(UriStringVar, FlagsVar, &cerr) | ||
| @@ -887,7 +839,6 @@ var xUriParseParams func(string, int, string, UriParamsFlags, **Error) uintptr | |||||
| 887 | // If @params cannot be parsed (for example, it contains two @separators | 839 | // If @params cannot be parsed (for example, it contains two @separators | ||
| 888 | // characters in a row), then @error is set and %NULL is returned. | 840 | // characters in a row), then @error is set and %NULL is returned. | ||
| 889 | func UriParseParams(ParamsVar string, LengthVar int, SeparatorsVar string, FlagsVar UriParamsFlags) (*HashTable, error) { | 841 | func UriParseParams(ParamsVar string, LengthVar int, SeparatorsVar string, FlagsVar UriParamsFlags) (*HashTable, error) { | ||
| 890 | - | core.LazyRegister(&xUriParseParams, "GLIB", "g_uri_parse_params", false) | |||
| 891 | var cerr *Error | 842 | var cerr *Error | ||
| 892 | 843 | ||||
| 893 | cret := xUriParseParams(ParamsVar, LengthVar, SeparatorsVar, FlagsVar, &cerr) | 844 | cret := xUriParseParams(ParamsVar, LengthVar, SeparatorsVar, FlagsVar, &cerr) | ||
| @@ -910,8 +861,6 @@ var xUriParseScheme func(string) string | |||||
| 910 | // ]| | 861 | // ]| | ||
| 911 | // Common schemes include `file`, `https`, `svn+ssh`, etc. | 862 | // Common schemes include `file`, `https`, `svn+ssh`, etc. | ||
| 912 | func UriParseScheme(UriVar string) string { | 863 | func UriParseScheme(UriVar string) string { | ||
| 913 | - | core.LazyRegister(&xUriParseScheme, "GLIB", "g_uri_parse_scheme", false) | |||
| 914 | - | ||||
| 915 | cret := xUriParseScheme(UriVar) | 864 | cret := xUriParseScheme(UriVar) | ||
| 916 | return cret | 865 | return cret | ||
| 917 | } | 866 | } | ||
| @@ -929,8 +878,6 @@ var xUriPeekScheme func(string) string | |||||
| 929 | // Unlike g_uri_parse_scheme(), the returned scheme is normalized to | 878 | // Unlike g_uri_parse_scheme(), the returned scheme is normalized to | ||
| 930 | // all-lowercase and does not need to be freed. | 879 | // all-lowercase and does not need to be freed. | ||
| 931 | func UriPeekScheme(UriVar string) string { | 880 | func UriPeekScheme(UriVar string) string { | ||
| 932 | - | core.LazyRegister(&xUriPeekScheme, "GLIB", "g_uri_peek_scheme", false) | |||
| 933 | - | ||||
| 934 | cret := xUriPeekScheme(UriVar) | 881 | cret := xUriPeekScheme(UriVar) | ||
| 935 | return cret | 882 | return cret | ||
| 936 | } | 883 | } | ||
| @@ -945,7 +892,6 @@ var xUriResolveRelative func(uintptr, string, UriFlags, **Error) string | |||||
| 945 | // (If @base_uri_string is %NULL, this just returns @uri_ref, or | 892 | // (If @base_uri_string is %NULL, this just returns @uri_ref, or | ||
| 946 | // %NULL if @uri_ref is invalid or not absolute.) | 893 | // %NULL if @uri_ref is invalid or not absolute.) | ||
| 947 | func UriResolveRelative(BaseUriStringVar *string, UriRefVar string, FlagsVar UriFlags) (string, error) { | 894 | func UriResolveRelative(BaseUriStringVar *string, UriRefVar string, FlagsVar UriFlags) (string, error) { | ||
| 948 | - | core.LazyRegister(&xUriResolveRelative, "GLIB", "g_uri_resolve_relative", false) | |||
| 949 | var cerr *Error | 895 | var cerr *Error | ||
| 950 | 896 | ||||
| 951 | BaseUriStringVarPtr := core.GStrdupNullable(BaseUriStringVar) | 897 | BaseUriStringVarPtr := core.GStrdupNullable(BaseUriStringVar) | ||
| @@ -977,7 +923,6 @@ var xUriSplit func(string, UriFlags, *string, *string, *string, *int, *string, * | |||||
| 977 | // since it always returns only the full userinfo; use | 923 | // since it always returns only the full userinfo; use | ||
| 978 | // g_uri_split_with_user() if you want it split up. | 924 | // g_uri_split_with_user() if you want it split up. | ||
| 979 | func UriSplit(UriRefVar string, FlagsVar UriFlags, SchemeVar *string, UserinfoVar *string, HostVar *string, PortVar *int, PathVar *string, QueryVar *string, FragmentVar *string) (bool, error) { | 925 | func UriSplit(UriRefVar string, FlagsVar UriFlags, SchemeVar *string, UserinfoVar *string, HostVar *string, PortVar *int, PathVar *string, QueryVar *string, FragmentVar *string) (bool, error) { | ||
| 980 | - | core.LazyRegister(&xUriSplit, "GLIB", "g_uri_split", false) | |||
| 981 | var cerr *Error | 926 | var cerr *Error | ||
| 982 | 927 | ||||
| 983 | cret := xUriSplit(UriRefVar, FlagsVar, SchemeVar, UserinfoVar, HostVar, PortVar, PathVar, QueryVar, FragmentVar, &cerr) | 928 | cret := xUriSplit(UriRefVar, FlagsVar, SchemeVar, UserinfoVar, HostVar, PortVar, PathVar, QueryVar, FragmentVar, &cerr) | ||
| @@ -996,7 +941,6 @@ var xUriSplitNetwork func(string, UriFlags, *string, *string, *int, **Error) boo | |||||
| 996 | // However, it will return an error if @uri_string is a relative URI, | 941 | // However, it will return an error if @uri_string is a relative URI, | ||
| 997 | // or does not contain a hostname component. | 942 | // or does not contain a hostname component. | ||
| 998 | func UriSplitNetwork(UriStringVar string, FlagsVar UriFlags, SchemeVar *string, HostVar *string, PortVar *int) (bool, error) { | 943 | func UriSplitNetwork(UriStringVar string, FlagsVar UriFlags, SchemeVar *string, HostVar *string, PortVar *int) (bool, error) { | ||
| 999 | - | core.LazyRegister(&xUriSplitNetwork, "GLIB", "g_uri_split_network", false) | |||
| 1000 | var cerr *Error | 944 | var cerr *Error | ||
| 1001 | 945 | ||||
| 1002 | cret := xUriSplitNetwork(UriStringVar, FlagsVar, SchemeVar, HostVar, PortVar, &cerr) | 946 | cret := xUriSplitNetwork(UriStringVar, FlagsVar, SchemeVar, HostVar, PortVar, &cerr) | ||
| @@ -1020,7 +964,6 @@ var xUriSplitWithUser func(string, UriFlags, *string, *string, *string, *string, | |||||
| 1020 | // @auth_params will only be parsed out if @flags contains | 964 | // @auth_params will only be parsed out if @flags contains | ||
| 1021 | // %G_URI_FLAGS_HAS_AUTH_PARAMS. | 965 | // %G_URI_FLAGS_HAS_AUTH_PARAMS. | ||
| 1022 | func UriSplitWithUser(UriRefVar string, FlagsVar UriFlags, SchemeVar *string, UserVar *string, PasswordVar *string, AuthParamsVar *string, HostVar *string, PortVar *int, PathVar *string, QueryVar *string, FragmentVar *string) (bool, error) { | 966 | func UriSplitWithUser(UriRefVar string, FlagsVar UriFlags, SchemeVar *string, UserVar *string, PasswordVar *string, AuthParamsVar *string, HostVar *string, PortVar *int, PathVar *string, QueryVar *string, FragmentVar *string) (bool, error) { | ||
| 1023 | - | core.LazyRegister(&xUriSplitWithUser, "GLIB", "g_uri_split_with_user", false) | |||
| 1024 | var cerr *Error | 967 | var cerr *Error | ||
| 1025 | 968 | ||||
| 1026 | cret := xUriSplitWithUser(UriRefVar, FlagsVar, SchemeVar, UserVar, PasswordVar, AuthParamsVar, HostVar, PortVar, PathVar, QueryVar, FragmentVar, &cerr) | 969 | cret := xUriSplitWithUser(UriRefVar, FlagsVar, SchemeVar, UserVar, PasswordVar, AuthParamsVar, HostVar, PortVar, PathVar, QueryVar, FragmentVar, &cerr) | ||
| @@ -1043,7 +986,6 @@ var xUriUnescapeBytes func(string, int, uintptr, **Error) uintptr | |||||
| 1043 | // being expanded in an escaped path element, which might confuse pathname | 986 | // being expanded in an escaped path element, which might confuse pathname | ||
| 1044 | // handling. | 987 | // handling. | ||
| 1045 | func UriUnescapeBytes(EscapedStringVar string, LengthVar int, IllegalCharactersVar *string) (*Bytes, error) { | 988 | func UriUnescapeBytes(EscapedStringVar string, LengthVar int, IllegalCharactersVar *string) (*Bytes, error) { | ||
| 1046 | - | core.LazyRegister(&xUriUnescapeBytes, "GLIB", "g_uri_unescape_bytes", false) | |||
| 1047 | var cerr *Error | 989 | var cerr *Error | ||
| 1048 | 990 | ||||
| 1049 | IllegalCharactersVarPtr := core.GStrdupNullable(IllegalCharactersVar) | 991 | IllegalCharactersVarPtr := core.GStrdupNullable(IllegalCharactersVar) | ||
| @@ -1072,8 +1014,6 @@ var xUriUnescapeSegment func(uintptr, uintptr, uintptr) string | |||||
| 1072 | // Note: `NUL` byte is not accepted in the output, in contrast to | 1014 | // Note: `NUL` byte is not accepted in the output, in contrast to | ||
| 1073 | // g_uri_unescape_bytes(). | 1015 | // g_uri_unescape_bytes(). | ||
| 1074 | func UriUnescapeSegment(EscapedStringVar *string, EscapedStringEndVar *string, IllegalCharactersVar *string) string { | 1016 | func UriUnescapeSegment(EscapedStringVar *string, EscapedStringEndVar *string, IllegalCharactersVar *string) string { | ||
| 1075 | - | core.LazyRegister(&xUriUnescapeSegment, "GLIB", "g_uri_unescape_segment", false) | |||
| 1076 | - | ||||
| 1077 | EscapedStringVarPtr := core.GStrdupNullable(EscapedStringVar) | 1017 | EscapedStringVarPtr := core.GStrdupNullable(EscapedStringVar) | ||
| 1078 | defer core.GFreeNullable(EscapedStringVarPtr) | 1018 | defer core.GFreeNullable(EscapedStringVarPtr) | ||
| 1079 | 1019 | ||||
| @@ -1097,8 +1037,6 @@ var xUriUnescapeString func(string, uintptr) string | |||||
| 1097 | // want to avoid for instance having a slash being expanded in an | 1037 | // want to avoid for instance having a slash being expanded in an | ||
| 1098 | // escaped path element, which might confuse pathname handling. | 1038 | // escaped path element, which might confuse pathname handling. | ||
| 1099 | func UriUnescapeString(EscapedStringVar string, IllegalCharactersVar *string) string { | 1039 | func UriUnescapeString(EscapedStringVar string, IllegalCharactersVar *string) string { | ||
| 1100 | - | core.LazyRegister(&xUriUnescapeString, "GLIB", "g_uri_unescape_string", false) | |||
| 1101 | - | ||||
| 1102 | IllegalCharactersVarPtr := core.GStrdupNullable(IllegalCharactersVar) | 1040 | IllegalCharactersVarPtr := core.GStrdupNullable(IllegalCharactersVar) | ||
| 1103 | defer core.GFreeNullable(IllegalCharactersVarPtr) | 1041 | defer core.GFreeNullable(IllegalCharactersVarPtr) | ||
| 1104 | 1042 | ||||
| @@ -1109,4 +1047,53 @@ func UriUnescapeString(EscapedStringVar string, IllegalCharactersVar *string) st | |||||
| 1109 | func init() { | 1047 | func init() { | ||
| 1110 | core.SetPackageName("GLIB", "glib-2.0") | 1048 | core.SetPackageName("GLIB", "glib-2.0") | ||
| 1111 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | 1049 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | ||
| 1050 | + | var libs []uintptr | |||
| 1051 | + | for _, libPath := range core.GetPaths("GLIB") { | |||
| 1052 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 1053 | + | if err != nil { | |||
| 1054 | + | panic(err) | |||
| 1055 | + | } | |||
| 1056 | + | libs = append(libs, lib) | |||
| 1057 | + | } | |||
| 1058 | + | ||||
| 1059 | + | core.PuregoSafeRegister(&xUriBuild, libs, "g_uri_build") | |||
| 1060 | + | core.PuregoSafeRegister(&xUriBuildWithUser, libs, "g_uri_build_with_user") | |||
| 1061 | + | core.PuregoSafeRegister(&xUriEscapeBytes, libs, "g_uri_escape_bytes") | |||
| 1062 | + | core.PuregoSafeRegister(&xUriEscapeString, libs, "g_uri_escape_string") | |||
| 1063 | + | core.PuregoSafeRegister(&xUriIsValid, libs, "g_uri_is_valid") | |||
| 1064 | + | core.PuregoSafeRegister(&xUriJoin, libs, "g_uri_join") | |||
| 1065 | + | core.PuregoSafeRegister(&xUriJoinWithUser, libs, "g_uri_join_with_user") | |||
| 1066 | + | core.PuregoSafeRegister(&xUriParse, libs, "g_uri_parse") | |||
| 1067 | + | core.PuregoSafeRegister(&xUriParseParams, libs, "g_uri_parse_params") | |||
| 1068 | + | core.PuregoSafeRegister(&xUriParseScheme, libs, "g_uri_parse_scheme") | |||
| 1069 | + | core.PuregoSafeRegister(&xUriPeekScheme, libs, "g_uri_peek_scheme") | |||
| 1070 | + | core.PuregoSafeRegister(&xUriResolveRelative, libs, "g_uri_resolve_relative") | |||
| 1071 | + | core.PuregoSafeRegister(&xUriSplit, libs, "g_uri_split") | |||
| 1072 | + | core.PuregoSafeRegister(&xUriSplitNetwork, libs, "g_uri_split_network") | |||
| 1073 | + | core.PuregoSafeRegister(&xUriSplitWithUser, libs, "g_uri_split_with_user") | |||
| 1074 | + | core.PuregoSafeRegister(&xUriUnescapeBytes, libs, "g_uri_unescape_bytes") | |||
| 1075 | + | core.PuregoSafeRegister(&xUriUnescapeSegment, libs, "g_uri_unescape_segment") | |||
| 1076 | + | core.PuregoSafeRegister(&xUriUnescapeString, libs, "g_uri_unescape_string") | |||
| 1077 | + | ||||
| 1078 | + | core.PuregoSafeRegister(&xUriGLibType, libs, "g_uri_get_type") | |||
| 1079 | + | ||||
| 1080 | + | core.PuregoSafeRegister(&xUriGetAuthParams, libs, "g_uri_get_auth_params") | |||
| 1081 | + | core.PuregoSafeRegister(&xUriGetFlags, libs, "g_uri_get_flags") | |||
| 1082 | + | core.PuregoSafeRegister(&xUriGetFragment, libs, "g_uri_get_fragment") | |||
| 1083 | + | core.PuregoSafeRegister(&xUriGetHost, libs, "g_uri_get_host") | |||
| 1084 | + | core.PuregoSafeRegister(&xUriGetPassword, libs, "g_uri_get_password") | |||
| 1085 | + | core.PuregoSafeRegister(&xUriGetPath, libs, "g_uri_get_path") | |||
| 1086 | + | core.PuregoSafeRegister(&xUriGetPort, libs, "g_uri_get_port") | |||
| 1087 | + | core.PuregoSafeRegister(&xUriGetQuery, libs, "g_uri_get_query") | |||
| 1088 | + | core.PuregoSafeRegister(&xUriGetScheme, libs, "g_uri_get_scheme") | |||
| 1089 | + | core.PuregoSafeRegister(&xUriGetUser, libs, "g_uri_get_user") | |||
| 1090 | + | core.PuregoSafeRegister(&xUriGetUserinfo, libs, "g_uri_get_userinfo") | |||
| 1091 | + | core.PuregoSafeRegister(&xUriParseRelative, libs, "g_uri_parse_relative") | |||
| 1092 | + | core.PuregoSafeRegister(&xUriRef, libs, "g_uri_ref") | |||
| 1093 | + | core.PuregoSafeRegister(&xUriToString, libs, "g_uri_to_string") | |||
| 1094 | + | core.PuregoSafeRegister(&xUriToStringPartial, libs, "g_uri_to_string_partial") | |||
| 1095 | + | core.PuregoSafeRegister(&xUriUnref, libs, "g_uri_unref") | |||
| 1096 | + | ||||
| 1097 | + | core.PuregoSafeRegister(&xUriParamsIterInit, libs, "g_uri_params_iter_init") | |||
| 1098 | + | core.PuregoSafeRegister(&xUriParamsIterNext, libs, "g_uri_params_iter_next") | |||
| 1112 | } | 1099 | } | ||