Merge pull request #349 from bnema/fix/rollback-lazy-puregotk
fix(deps): emergency rollback puregotk lazy registration regression
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
| @@ -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 | ) | |
| 10 | 11 | ||
| @@ -45,8 +46,6 @@ var xIConvGIconv func(uintptr, string, *uint, string, *uint) uint | |||
| 45 | 46 | // See [`iconv(3posix)`](man:iconv(3posix)) and [`iconv(3)`](man:iconv(3)) for more details about behavior when an | |
| 46 | 47 | // error occurs. | |
| 47 | 48 | func (x *IConv) GIconv(InbufVar string, InbytesLeftVar *uint, OutbufVar string, OutbytesLeftVar *uint) uint { | |
| 48 | - | core.LazyRegister(&xIConvGIconv, "GLIB", "g_iconv", false) | |
| 49 | - | ||
| 50 | 49 | cret := xIConvGIconv(x.GoPointer(), InbufVar, InbytesLeftVar, OutbufVar, OutbytesLeftVar) | |
| 51 | 50 | return cret | |
| 52 | 51 | } | |
| @@ -62,8 +61,6 @@ var xIConvClose func(uintptr) int | |||
| 62 | 61 | // GLib provides g_convert() and g_locale_to_utf8() which are likely | |
| 63 | 62 | // more convenient than the raw iconv wrappers. | |
| 64 | 63 | func (x *IConv) Close() int { | |
| 65 | - | core.LazyRegister(&xIConvClose, "GLIB", "g_iconv_close", false) | |
| 66 | - | ||
| 67 | 64 | cret := xIConvClose(x.GoPointer()) | |
| 68 | 65 | return cret | |
| 69 | 66 | } | |
| @@ -113,7 +110,6 @@ var xConvert func([]byte, int, string, string, *uint, *uint, **Error) uintptr | |||
| 113 | 110 | // Using extensions such as "//TRANSLIT" may not work (or may not work | |
| 114 | 111 | // well) on many platforms. Consider using g_str_to_ascii() instead. | |
| 115 | 112 | func Convert(StrVar []byte, LenVar int, ToCodesetVar string, FromCodesetVar string, BytesReadVar *uint, BytesWrittenVar *uint) (uintptr, error) { | |
| 116 | - | core.LazyRegister(&xConvert, "GLIB", "g_convert", false) | |
| 117 | 113 | var cerr *Error | |
| 118 | 114 | ||
| 119 | 115 | cret := xConvert(StrVar, LenVar, ToCodesetVar, FromCodesetVar, BytesReadVar, BytesWrittenVar, &cerr) | |
| @@ -143,7 +139,6 @@ var xConvertWithFallback func([]byte, int, string, string, string, *uint, *uint, | |||
| 143 | 139 | // character until it knows that the next character is not a mark that | |
| 144 | 140 | // could combine with the base character.) | |
| 145 | 141 | func ConvertWithFallback(StrVar []byte, LenVar int, ToCodesetVar string, FromCodesetVar string, FallbackVar string, BytesReadVar *uint, BytesWrittenVar *uint) (uintptr, error) { | |
| 146 | - | core.LazyRegister(&xConvertWithFallback, "GLIB", "g_convert_with_fallback", false) | |
| 147 | 142 | var cerr *Error | |
| 148 | 143 | ||
| 149 | 144 | cret := xConvertWithFallback(StrVar, LenVar, ToCodesetVar, FromCodesetVar, FallbackVar, BytesReadVar, BytesWrittenVar, &cerr) | |
| @@ -175,7 +170,6 @@ var xConvertWithIconv func([]byte, int, uintptr, *uint, *uint, **Error) uintptr | |||
| 175 | 170 | // the input character set. To get defined behaviour for conversion of | |
| 176 | 171 | // unrepresentable characters, use g_convert_with_fallback(). | |
| 177 | 172 | func ConvertWithIconv(StrVar []byte, LenVar int, ConverterVar uintptr, BytesReadVar *uint, BytesWrittenVar *uint) (uintptr, error) { | |
| 178 | - | core.LazyRegister(&xConvertWithIconv, "GLIB", "g_convert_with_iconv", false) | |
| 179 | 173 | var cerr *Error | |
| 180 | 174 | ||
| 181 | 175 | cret := xConvertWithIconv(StrVar, LenVar, ConverterVar, BytesReadVar, BytesWrittenVar, &cerr) | |
| @@ -204,8 +198,6 @@ var xFilenameDisplayBasename func(string) string | |||
| 204 | 198 | // This function is preferred over g_filename_display_name() if you know the | |
| 205 | 199 | // whole path, as it allows translation. | |
| 206 | 200 | func FilenameDisplayBasename(FilenameVar string) string { | |
| 207 | - | core.LazyRegister(&xFilenameDisplayBasename, "GLIB", "g_filename_display_basename", false) | |
| 208 | - | ||
| 209 | 201 | cret := xFilenameDisplayBasename(FilenameVar) | |
| 210 | 202 | return cret | |
| 211 | 203 | } | |
| @@ -228,8 +220,6 @@ var xFilenameDisplayName func(string) string | |||
| 228 | 220 | // g_filename_display_basename(), since that allows location-based | |
| 229 | 221 | // translation of filenames. | |
| 230 | 222 | func FilenameDisplayName(FilenameVar string) string { | |
| 231 | - | core.LazyRegister(&xFilenameDisplayName, "GLIB", "g_filename_display_name", false) | |
| 232 | - | ||
| 233 | 223 | cret := xFilenameDisplayName(FilenameVar) | |
| 234 | 224 | return cret | |
| 235 | 225 | } | |
| @@ -244,7 +234,6 @@ var xFilenameFromUri func(string, *string, **Error) string | |||
| 244 | 234 | // We take inspiration from https://url.spec.whatwg.org/#file-state, | |
| 245 | 235 | // but we don't support the entire standard. | |
| 246 | 236 | func FilenameFromUri(UriVar string, HostnameVar *string) (string, error) { | |
| 247 | - | core.LazyRegister(&xFilenameFromUri, "GLIB", "g_filename_from_uri", false) | |
| 248 | 237 | var cerr *Error | |
| 249 | 238 | ||
| 250 | 239 | cret := xFilenameFromUri(UriVar, HostnameVar, &cerr) | |
| @@ -267,7 +256,6 @@ var xFilenameFromUtf8 func(string, int, *uint, *uint, **Error) string | |||
| 267 | 256 | // not UTF-8 and the conversion output contains a nul character, the error | |
| 268 | 257 | // %G_CONVERT_ERROR_EMBEDDED_NUL is set and the function returns %NULL. | |
| 269 | 258 | func FilenameFromUtf8(Utf8stringVar string, LenVar int, BytesReadVar *uint, BytesWrittenVar *uint) (string, error) { | |
| 270 | - | core.LazyRegister(&xFilenameFromUtf8, "GLIB", "g_filename_from_utf8", false) | |
| 271 | 259 | var cerr *Error | |
| 272 | 260 | ||
| 273 | 261 | cret := xFilenameFromUtf8(Utf8stringVar, LenVar, BytesReadVar, BytesWrittenVar, &cerr) | |
| @@ -282,7 +270,6 @@ var xFilenameToUri func(string, uintptr, **Error) string | |||
| 282 | 270 | // Converts an absolute filename to an escaped ASCII-encoded URI, with the path | |
| 283 | 271 | // component following Section 3.3. of RFC 2396. | |
| 284 | 272 | func FilenameToUri(FilenameVar string, HostnameVar *string) (string, error) { | |
| 285 | - | core.LazyRegister(&xFilenameToUri, "GLIB", "g_filename_to_uri", false) | |
| 286 | 273 | var cerr *Error | |
| 287 | 274 | ||
| 288 | 275 | HostnameVarPtr := core.GStrdupNullable(HostnameVar) | |
| @@ -310,7 +297,6 @@ var xFilenameToUtf8 func(string, int, *uint, *uint, **Error) string | |||
| 310 | 297 | // function returns %NULL. Use g_convert() to produce output that | |
| 311 | 298 | // may contain embedded nul characters. | |
| 312 | 299 | func FilenameToUtf8(OpsysstringVar string, LenVar int, BytesReadVar *uint, BytesWrittenVar *uint) (string, error) { | |
| 313 | - | core.LazyRegister(&xFilenameToUtf8, "GLIB", "g_filename_to_utf8", false) | |
| 314 | 300 | var cerr *Error | |
| 315 | 301 | ||
| 316 | 302 | cret := xFilenameToUtf8(OpsysstringVar, LenVar, BytesReadVar, BytesWrittenVar, &cerr) | |
| @@ -347,8 +333,6 @@ var xGetFilenameCharsets func(*[]string) bool | |||
| 347 | 333 | // `G_FILENAME_ENCODING` value, the actual file names present | |
| 348 | 334 | // on a system might be in any random encoding or just gibberish. | |
| 349 | 335 | func GetFilenameCharsets(FilenameCharsetsVar *[]string) bool { | |
| 350 | - | core.LazyRegister(&xGetFilenameCharsets, "GLIB", "g_get_filename_charsets", false) | |
| 351 | - | ||
| 352 | 336 | cret := xGetFilenameCharsets(FilenameCharsetsVar) | |
| 353 | 337 | return cret | |
| 354 | 338 | } | |
| @@ -372,8 +356,6 @@ var xIconv func(uintptr, string, *uint, string, *uint) uint | |||
| 372 | 356 | // See [`iconv(3posix)`](man:iconv(3posix)) and [`iconv(3)`](man:iconv(3)) for more details about behavior when an | |
| 373 | 357 | // error occurs. | |
| 374 | 358 | func Iconv(ConverterVar uintptr, InbufVar string, InbytesLeftVar *uint, OutbufVar string, OutbytesLeftVar *uint) uint { | |
| 375 | - | core.LazyRegister(&xIconv, "GLIB", "g_iconv", false) | |
| 376 | - | ||
| 377 | 359 | cret := xIconv(ConverterVar, InbufVar, InbytesLeftVar, OutbufVar, OutbytesLeftVar) | |
| 378 | 360 | return cret | |
| 379 | 361 | } | |
| @@ -387,8 +369,6 @@ var xIconvOpen func(string, string) uintptr | |||
| 387 | 369 | // GLib provides g_convert() and g_locale_to_utf8() which are likely | |
| 388 | 370 | // more convenient than the raw iconv wrappers. | |
| 389 | 371 | func IconvOpen(ToCodesetVar string, FromCodesetVar string) uintptr { | |
| 390 | - | core.LazyRegister(&xIconvOpen, "GLIB", "g_iconv_open", false) | |
| 391 | - | ||
| 392 | 372 | cret := xIconvOpen(ToCodesetVar, FromCodesetVar) | |
| 393 | 373 | return cret | |
| 394 | 374 | } | |
| @@ -405,7 +385,6 @@ var xLocaleFromUtf8 func(string, int, *uint, *uint, **Error) uintptr | |||
| 405 | 385 | // in error %G_CONVERT_ERROR_ILLEGAL_SEQUENCE. Use g_convert() to convert | |
| 406 | 386 | // input that may contain embedded nul characters. | |
| 407 | 387 | func LocaleFromUtf8(Utf8stringVar string, LenVar int, BytesReadVar *uint, BytesWrittenVar *uint) (uintptr, error) { | |
| 408 | - | core.LazyRegister(&xLocaleFromUtf8, "GLIB", "g_locale_from_utf8", false) | |
| 409 | 388 | var cerr *Error | |
| 410 | 389 | ||
| 411 | 390 | cret := xLocaleFromUtf8(Utf8stringVar, LenVar, BytesReadVar, BytesWrittenVar, &cerr) | |
| @@ -429,7 +408,6 @@ var xLocaleToUtf8 func([]byte, int, *uint, *uint, **Error) string | |||
| 429 | 408 | // earlier versions of this library. Use g_convert() to produce output that | |
| 430 | 409 | // may contain embedded nul characters. | |
| 431 | 410 | func LocaleToUtf8(OpsysstringVar []byte, LenVar int, BytesReadVar *uint, BytesWrittenVar *uint) (string, error) { | |
| 432 | - | core.LazyRegister(&xLocaleToUtf8, "GLIB", "g_locale_to_utf8", false) | |
| 433 | 411 | var cerr *Error | |
| 434 | 412 | ||
| 435 | 413 | cret := xLocaleToUtf8(OpsysstringVar, LenVar, BytesReadVar, BytesWrittenVar, &cerr) | |
| @@ -445,8 +423,6 @@ var xUriListExtractUris func(string) []string | |||
| 445 | 423 | // mime type defined in RFC 2483 into individual URIs, | |
| 446 | 424 | // discarding any comments. The URIs are not validated. | |
| 447 | 425 | func UriListExtractUris(UriListVar string) []string { | |
| 448 | - | core.LazyRegister(&xUriListExtractUris, "GLIB", "g_uri_list_extract_uris", false) | |
| 449 | - | ||
| 450 | 426 | cret := xUriListExtractUris(UriListVar) | |
| 451 | 427 | return cret | |
| 452 | 428 | } | |
| @@ -454,4 +430,31 @@ func UriListExtractUris(UriListVar string) []string { | |||
| 454 | 430 | func init() { | |
| 455 | 431 | core.SetPackageName("GLIB", "glib-2.0") | |
| 456 | 432 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | |
| 433 | + | var libs []uintptr | |
| 434 | + | for _, libPath := range core.GetPaths("GLIB") { | |
| 435 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 436 | + | if err != nil { | |
| 437 | + | panic(err) | |
| 438 | + | } | |
| 439 | + | libs = append(libs, lib) | |
| 440 | + | } | |
| 441 | + | ||
| 442 | + | core.PuregoSafeRegister(&xConvert, libs, "g_convert") | |
| 443 | + | core.PuregoSafeRegister(&xConvertWithFallback, libs, "g_convert_with_fallback") | |
| 444 | + | core.PuregoSafeRegister(&xConvertWithIconv, libs, "g_convert_with_iconv") | |
| 445 | + | core.PuregoSafeRegister(&xFilenameDisplayBasename, libs, "g_filename_display_basename") | |
| 446 | + | core.PuregoSafeRegister(&xFilenameDisplayName, libs, "g_filename_display_name") | |
| 447 | + | core.PuregoSafeRegister(&xFilenameFromUri, libs, "g_filename_from_uri") | |
| 448 | + | core.PuregoSafeRegister(&xFilenameFromUtf8, libs, "g_filename_from_utf8") | |
| 449 | + | core.PuregoSafeRegister(&xFilenameToUri, libs, "g_filename_to_uri") | |
| 450 | + | core.PuregoSafeRegister(&xFilenameToUtf8, libs, "g_filename_to_utf8") | |
| 451 | + | core.PuregoSafeRegister(&xGetFilenameCharsets, libs, "g_get_filename_charsets") | |
| 452 | + | core.PuregoSafeRegister(&xIconv, libs, "g_iconv") | |
| 453 | + | core.PuregoSafeRegister(&xIconvOpen, libs, "g_iconv_open") | |
| 454 | + | core.PuregoSafeRegister(&xLocaleFromUtf8, libs, "g_locale_from_utf8") | |
| 455 | + | core.PuregoSafeRegister(&xLocaleToUtf8, libs, "g_locale_to_utf8") | |
| 456 | + | core.PuregoSafeRegister(&xUriListExtractUris, libs, "g_uri_list_extract_uris") | |
| 457 | + | ||
| 458 | + | core.PuregoSafeRegister(&xIConvGIconv, libs, "g_iconv") | |
| 459 | + | core.PuregoSafeRegister(&xIConvClose, libs, "g_iconv_close") | |
| 457 | 460 | } | |
| @@ -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 | ) | 10 | ) | ||
| 10 | 11 | ||||
| @@ -45,8 +46,6 @@ var xIConvGIconv func(uintptr, string, *uint, string, *uint) uint | |||||
| 45 | // See [`iconv(3posix)`](man:iconv(3posix)) and [`iconv(3)`](man:iconv(3)) for more details about behavior when an | 46 | // See [`iconv(3posix)`](man:iconv(3posix)) and [`iconv(3)`](man:iconv(3)) for more details about behavior when an | ||
| 46 | // error occurs. | 47 | // error occurs. | ||
| 47 | func (x *IConv) GIconv(InbufVar string, InbytesLeftVar *uint, OutbufVar string, OutbytesLeftVar *uint) uint { | 48 | func (x *IConv) GIconv(InbufVar string, InbytesLeftVar *uint, OutbufVar string, OutbytesLeftVar *uint) uint { | ||
| 48 | - | core.LazyRegister(&xIConvGIconv, "GLIB", "g_iconv", false) | |||
| 49 | - | ||||
| 50 | cret := xIConvGIconv(x.GoPointer(), InbufVar, InbytesLeftVar, OutbufVar, OutbytesLeftVar) | 49 | cret := xIConvGIconv(x.GoPointer(), InbufVar, InbytesLeftVar, OutbufVar, OutbytesLeftVar) | ||
| 51 | return cret | 50 | return cret | ||
| 52 | } | 51 | } | ||
| @@ -62,8 +61,6 @@ var xIConvClose func(uintptr) int | |||||
| 62 | // GLib provides g_convert() and g_locale_to_utf8() which are likely | 61 | // GLib provides g_convert() and g_locale_to_utf8() which are likely | ||
| 63 | // more convenient than the raw iconv wrappers. | 62 | // more convenient than the raw iconv wrappers. | ||
| 64 | func (x *IConv) Close() int { | 63 | func (x *IConv) Close() int { | ||
| 65 | - | core.LazyRegister(&xIConvClose, "GLIB", "g_iconv_close", false) | |||
| 66 | - | ||||
| 67 | cret := xIConvClose(x.GoPointer()) | 64 | cret := xIConvClose(x.GoPointer()) | ||
| 68 | return cret | 65 | return cret | ||
| 69 | } | 66 | } | ||
| @@ -113,7 +110,6 @@ var xConvert func([]byte, int, string, string, *uint, *uint, **Error) uintptr | |||||
| 113 | // Using extensions such as "//TRANSLIT" may not work (or may not work | 110 | // Using extensions such as "//TRANSLIT" may not work (or may not work | ||
| 114 | // well) on many platforms. Consider using g_str_to_ascii() instead. | 111 | // well) on many platforms. Consider using g_str_to_ascii() instead. | ||
| 115 | func Convert(StrVar []byte, LenVar int, ToCodesetVar string, FromCodesetVar string, BytesReadVar *uint, BytesWrittenVar *uint) (uintptr, error) { | 112 | func Convert(StrVar []byte, LenVar int, ToCodesetVar string, FromCodesetVar string, BytesReadVar *uint, BytesWrittenVar *uint) (uintptr, error) { | ||
| 116 | - | core.LazyRegister(&xConvert, "GLIB", "g_convert", false) | |||
| 117 | var cerr *Error | 113 | var cerr *Error | ||
| 118 | 114 | ||||
| 119 | cret := xConvert(StrVar, LenVar, ToCodesetVar, FromCodesetVar, BytesReadVar, BytesWrittenVar, &cerr) | 115 | cret := xConvert(StrVar, LenVar, ToCodesetVar, FromCodesetVar, BytesReadVar, BytesWrittenVar, &cerr) | ||
| @@ -143,7 +139,6 @@ var xConvertWithFallback func([]byte, int, string, string, string, *uint, *uint, | |||||
| 143 | // character until it knows that the next character is not a mark that | 139 | // character until it knows that the next character is not a mark that | ||
| 144 | // could combine with the base character.) | 140 | // could combine with the base character.) | ||
| 145 | func ConvertWithFallback(StrVar []byte, LenVar int, ToCodesetVar string, FromCodesetVar string, FallbackVar string, BytesReadVar *uint, BytesWrittenVar *uint) (uintptr, error) { | 141 | func ConvertWithFallback(StrVar []byte, LenVar int, ToCodesetVar string, FromCodesetVar string, FallbackVar string, BytesReadVar *uint, BytesWrittenVar *uint) (uintptr, error) { | ||
| 146 | - | core.LazyRegister(&xConvertWithFallback, "GLIB", "g_convert_with_fallback", false) | |||
| 147 | var cerr *Error | 142 | var cerr *Error | ||
| 148 | 143 | ||||
| 149 | cret := xConvertWithFallback(StrVar, LenVar, ToCodesetVar, FromCodesetVar, FallbackVar, BytesReadVar, BytesWrittenVar, &cerr) | 144 | cret := xConvertWithFallback(StrVar, LenVar, ToCodesetVar, FromCodesetVar, FallbackVar, BytesReadVar, BytesWrittenVar, &cerr) | ||
| @@ -175,7 +170,6 @@ var xConvertWithIconv func([]byte, int, uintptr, *uint, *uint, **Error) uintptr | |||||
| 175 | // the input character set. To get defined behaviour for conversion of | 170 | // the input character set. To get defined behaviour for conversion of | ||
| 176 | // unrepresentable characters, use g_convert_with_fallback(). | 171 | // unrepresentable characters, use g_convert_with_fallback(). | ||
| 177 | func ConvertWithIconv(StrVar []byte, LenVar int, ConverterVar uintptr, BytesReadVar *uint, BytesWrittenVar *uint) (uintptr, error) { | 172 | func ConvertWithIconv(StrVar []byte, LenVar int, ConverterVar uintptr, BytesReadVar *uint, BytesWrittenVar *uint) (uintptr, error) { | ||
| 178 | - | core.LazyRegister(&xConvertWithIconv, "GLIB", "g_convert_with_iconv", false) | |||
| 179 | var cerr *Error | 173 | var cerr *Error | ||
| 180 | 174 | ||||
| 181 | cret := xConvertWithIconv(StrVar, LenVar, ConverterVar, BytesReadVar, BytesWrittenVar, &cerr) | 175 | cret := xConvertWithIconv(StrVar, LenVar, ConverterVar, BytesReadVar, BytesWrittenVar, &cerr) | ||
| @@ -204,8 +198,6 @@ var xFilenameDisplayBasename func(string) string | |||||
| 204 | // This function is preferred over g_filename_display_name() if you know the | 198 | // This function is preferred over g_filename_display_name() if you know the | ||
| 205 | // whole path, as it allows translation. | 199 | // whole path, as it allows translation. | ||
| 206 | func FilenameDisplayBasename(FilenameVar string) string { | 200 | func FilenameDisplayBasename(FilenameVar string) string { | ||
| 207 | - | core.LazyRegister(&xFilenameDisplayBasename, "GLIB", "g_filename_display_basename", false) | |||
| 208 | - | ||||
| 209 | cret := xFilenameDisplayBasename(FilenameVar) | 201 | cret := xFilenameDisplayBasename(FilenameVar) | ||
| 210 | return cret | 202 | return cret | ||
| 211 | } | 203 | } | ||
| @@ -228,8 +220,6 @@ var xFilenameDisplayName func(string) string | |||||
| 228 | // g_filename_display_basename(), since that allows location-based | 220 | // g_filename_display_basename(), since that allows location-based | ||
| 229 | // translation of filenames. | 221 | // translation of filenames. | ||
| 230 | func FilenameDisplayName(FilenameVar string) string { | 222 | func FilenameDisplayName(FilenameVar string) string { | ||
| 231 | - | core.LazyRegister(&xFilenameDisplayName, "GLIB", "g_filename_display_name", false) | |||
| 232 | - | ||||
| 233 | cret := xFilenameDisplayName(FilenameVar) | 223 | cret := xFilenameDisplayName(FilenameVar) | ||
| 234 | return cret | 224 | return cret | ||
| 235 | } | 225 | } | ||
| @@ -244,7 +234,6 @@ var xFilenameFromUri func(string, *string, **Error) string | |||||
| 244 | // We take inspiration from https://url.spec.whatwg.org/#file-state, | 234 | // We take inspiration from https://url.spec.whatwg.org/#file-state, | ||
| 245 | // but we don't support the entire standard. | 235 | // but we don't support the entire standard. | ||
| 246 | func FilenameFromUri(UriVar string, HostnameVar *string) (string, error) { | 236 | func FilenameFromUri(UriVar string, HostnameVar *string) (string, error) { | ||
| 247 | - | core.LazyRegister(&xFilenameFromUri, "GLIB", "g_filename_from_uri", false) | |||
| 248 | var cerr *Error | 237 | var cerr *Error | ||
| 249 | 238 | ||||
| 250 | cret := xFilenameFromUri(UriVar, HostnameVar, &cerr) | 239 | cret := xFilenameFromUri(UriVar, HostnameVar, &cerr) | ||
| @@ -267,7 +256,6 @@ var xFilenameFromUtf8 func(string, int, *uint, *uint, **Error) string | |||||
| 267 | // not UTF-8 and the conversion output contains a nul character, the error | 256 | // not UTF-8 and the conversion output contains a nul character, the error | ||
| 268 | // %G_CONVERT_ERROR_EMBEDDED_NUL is set and the function returns %NULL. | 257 | // %G_CONVERT_ERROR_EMBEDDED_NUL is set and the function returns %NULL. | ||
| 269 | func FilenameFromUtf8(Utf8stringVar string, LenVar int, BytesReadVar *uint, BytesWrittenVar *uint) (string, error) { | 258 | func FilenameFromUtf8(Utf8stringVar string, LenVar int, BytesReadVar *uint, BytesWrittenVar *uint) (string, error) { | ||
| 270 | - | core.LazyRegister(&xFilenameFromUtf8, "GLIB", "g_filename_from_utf8", false) | |||
| 271 | var cerr *Error | 259 | var cerr *Error | ||
| 272 | 260 | ||||
| 273 | cret := xFilenameFromUtf8(Utf8stringVar, LenVar, BytesReadVar, BytesWrittenVar, &cerr) | 261 | cret := xFilenameFromUtf8(Utf8stringVar, LenVar, BytesReadVar, BytesWrittenVar, &cerr) | ||
| @@ -282,7 +270,6 @@ var xFilenameToUri func(string, uintptr, **Error) string | |||||
| 282 | // Converts an absolute filename to an escaped ASCII-encoded URI, with the path | 270 | // Converts an absolute filename to an escaped ASCII-encoded URI, with the path | ||
| 283 | // component following Section 3.3. of RFC 2396. | 271 | // component following Section 3.3. of RFC 2396. | ||
| 284 | func FilenameToUri(FilenameVar string, HostnameVar *string) (string, error) { | 272 | func FilenameToUri(FilenameVar string, HostnameVar *string) (string, error) { | ||
| 285 | - | core.LazyRegister(&xFilenameToUri, "GLIB", "g_filename_to_uri", false) | |||
| 286 | var cerr *Error | 273 | var cerr *Error | ||
| 287 | 274 | ||||
| 288 | HostnameVarPtr := core.GStrdupNullable(HostnameVar) | 275 | HostnameVarPtr := core.GStrdupNullable(HostnameVar) | ||
| @@ -310,7 +297,6 @@ var xFilenameToUtf8 func(string, int, *uint, *uint, **Error) string | |||||
| 310 | // function returns %NULL. Use g_convert() to produce output that | 297 | // function returns %NULL. Use g_convert() to produce output that | ||
| 311 | // may contain embedded nul characters. | 298 | // may contain embedded nul characters. | ||
| 312 | func FilenameToUtf8(OpsysstringVar string, LenVar int, BytesReadVar *uint, BytesWrittenVar *uint) (string, error) { | 299 | func FilenameToUtf8(OpsysstringVar string, LenVar int, BytesReadVar *uint, BytesWrittenVar *uint) (string, error) { | ||
| 313 | - | core.LazyRegister(&xFilenameToUtf8, "GLIB", "g_filename_to_utf8", false) | |||
| 314 | var cerr *Error | 300 | var cerr *Error | ||
| 315 | 301 | ||||
| 316 | cret := xFilenameToUtf8(OpsysstringVar, LenVar, BytesReadVar, BytesWrittenVar, &cerr) | 302 | cret := xFilenameToUtf8(OpsysstringVar, LenVar, BytesReadVar, BytesWrittenVar, &cerr) | ||
| @@ -347,8 +333,6 @@ var xGetFilenameCharsets func(*[]string) bool | |||||
| 347 | // `G_FILENAME_ENCODING` value, the actual file names present | 333 | // `G_FILENAME_ENCODING` value, the actual file names present | ||
| 348 | // on a system might be in any random encoding or just gibberish. | 334 | // on a system might be in any random encoding or just gibberish. | ||
| 349 | func GetFilenameCharsets(FilenameCharsetsVar *[]string) bool { | 335 | func GetFilenameCharsets(FilenameCharsetsVar *[]string) bool { | ||
| 350 | - | core.LazyRegister(&xGetFilenameCharsets, "GLIB", "g_get_filename_charsets", false) | |||
| 351 | - | ||||
| 352 | cret := xGetFilenameCharsets(FilenameCharsetsVar) | 336 | cret := xGetFilenameCharsets(FilenameCharsetsVar) | ||
| 353 | return cret | 337 | return cret | ||
| 354 | } | 338 | } | ||
| @@ -372,8 +356,6 @@ var xIconv func(uintptr, string, *uint, string, *uint) uint | |||||
| 372 | // See [`iconv(3posix)`](man:iconv(3posix)) and [`iconv(3)`](man:iconv(3)) for more details about behavior when an | 356 | // See [`iconv(3posix)`](man:iconv(3posix)) and [`iconv(3)`](man:iconv(3)) for more details about behavior when an | ||
| 373 | // error occurs. | 357 | // error occurs. | ||
| 374 | func Iconv(ConverterVar uintptr, InbufVar string, InbytesLeftVar *uint, OutbufVar string, OutbytesLeftVar *uint) uint { | 358 | func Iconv(ConverterVar uintptr, InbufVar string, InbytesLeftVar *uint, OutbufVar string, OutbytesLeftVar *uint) uint { | ||
| 375 | - | core.LazyRegister(&xIconv, "GLIB", "g_iconv", false) | |||
| 376 | - | ||||
| 377 | cret := xIconv(ConverterVar, InbufVar, InbytesLeftVar, OutbufVar, OutbytesLeftVar) | 359 | cret := xIconv(ConverterVar, InbufVar, InbytesLeftVar, OutbufVar, OutbytesLeftVar) | ||
| 378 | return cret | 360 | return cret | ||
| 379 | } | 361 | } | ||
| @@ -387,8 +369,6 @@ var xIconvOpen func(string, string) uintptr | |||||
| 387 | // GLib provides g_convert() and g_locale_to_utf8() which are likely | 369 | // GLib provides g_convert() and g_locale_to_utf8() which are likely | ||
| 388 | // more convenient than the raw iconv wrappers. | 370 | // more convenient than the raw iconv wrappers. | ||
| 389 | func IconvOpen(ToCodesetVar string, FromCodesetVar string) uintptr { | 371 | func IconvOpen(ToCodesetVar string, FromCodesetVar string) uintptr { | ||
| 390 | - | core.LazyRegister(&xIconvOpen, "GLIB", "g_iconv_open", false) | |||
| 391 | - | ||||
| 392 | cret := xIconvOpen(ToCodesetVar, FromCodesetVar) | 372 | cret := xIconvOpen(ToCodesetVar, FromCodesetVar) | ||
| 393 | return cret | 373 | return cret | ||
| 394 | } | 374 | } | ||
| @@ -405,7 +385,6 @@ var xLocaleFromUtf8 func(string, int, *uint, *uint, **Error) uintptr | |||||
| 405 | // in error %G_CONVERT_ERROR_ILLEGAL_SEQUENCE. Use g_convert() to convert | 385 | // in error %G_CONVERT_ERROR_ILLEGAL_SEQUENCE. Use g_convert() to convert | ||
| 406 | // input that may contain embedded nul characters. | 386 | // input that may contain embedded nul characters. | ||
| 407 | func LocaleFromUtf8(Utf8stringVar string, LenVar int, BytesReadVar *uint, BytesWrittenVar *uint) (uintptr, error) { | 387 | func LocaleFromUtf8(Utf8stringVar string, LenVar int, BytesReadVar *uint, BytesWrittenVar *uint) (uintptr, error) { | ||
| 408 | - | core.LazyRegister(&xLocaleFromUtf8, "GLIB", "g_locale_from_utf8", false) | |||
| 409 | var cerr *Error | 388 | var cerr *Error | ||
| 410 | 389 | ||||
| 411 | cret := xLocaleFromUtf8(Utf8stringVar, LenVar, BytesReadVar, BytesWrittenVar, &cerr) | 390 | cret := xLocaleFromUtf8(Utf8stringVar, LenVar, BytesReadVar, BytesWrittenVar, &cerr) | ||
| @@ -429,7 +408,6 @@ var xLocaleToUtf8 func([]byte, int, *uint, *uint, **Error) string | |||||
| 429 | // earlier versions of this library. Use g_convert() to produce output that | 408 | // earlier versions of this library. Use g_convert() to produce output that | ||
| 430 | // may contain embedded nul characters. | 409 | // may contain embedded nul characters. | ||
| 431 | func LocaleToUtf8(OpsysstringVar []byte, LenVar int, BytesReadVar *uint, BytesWrittenVar *uint) (string, error) { | 410 | func LocaleToUtf8(OpsysstringVar []byte, LenVar int, BytesReadVar *uint, BytesWrittenVar *uint) (string, error) { | ||
| 432 | - | core.LazyRegister(&xLocaleToUtf8, "GLIB", "g_locale_to_utf8", false) | |||
| 433 | var cerr *Error | 411 | var cerr *Error | ||
| 434 | 412 | ||||
| 435 | cret := xLocaleToUtf8(OpsysstringVar, LenVar, BytesReadVar, BytesWrittenVar, &cerr) | 413 | cret := xLocaleToUtf8(OpsysstringVar, LenVar, BytesReadVar, BytesWrittenVar, &cerr) | ||
| @@ -445,8 +423,6 @@ var xUriListExtractUris func(string) []string | |||||
| 445 | // mime type defined in RFC 2483 into individual URIs, | 423 | // mime type defined in RFC 2483 into individual URIs, | ||
| 446 | // discarding any comments. The URIs are not validated. | 424 | // discarding any comments. The URIs are not validated. | ||
| 447 | func UriListExtractUris(UriListVar string) []string { | 425 | func UriListExtractUris(UriListVar string) []string { | ||
| 448 | - | core.LazyRegister(&xUriListExtractUris, "GLIB", "g_uri_list_extract_uris", false) | |||
| 449 | - | ||||
| 450 | cret := xUriListExtractUris(UriListVar) | 426 | cret := xUriListExtractUris(UriListVar) | ||
| 451 | return cret | 427 | return cret | ||
| 452 | } | 428 | } | ||
| @@ -454,4 +430,31 @@ func UriListExtractUris(UriListVar string) []string { | |||||
| 454 | func init() { | 430 | func init() { | ||
| 455 | core.SetPackageName("GLIB", "glib-2.0") | 431 | core.SetPackageName("GLIB", "glib-2.0") | ||
| 456 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | 432 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | ||
| 433 | + | var libs []uintptr | |||
| 434 | + | for _, libPath := range core.GetPaths("GLIB") { | |||
| 435 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 436 | + | if err != nil { | |||
| 437 | + | panic(err) | |||
| 438 | + | } | |||
| 439 | + | libs = append(libs, lib) | |||
| 440 | + | } | |||
| 441 | + | ||||
| 442 | + | core.PuregoSafeRegister(&xConvert, libs, "g_convert") | |||
| 443 | + | core.PuregoSafeRegister(&xConvertWithFallback, libs, "g_convert_with_fallback") | |||
| 444 | + | core.PuregoSafeRegister(&xConvertWithIconv, libs, "g_convert_with_iconv") | |||
| 445 | + | core.PuregoSafeRegister(&xFilenameDisplayBasename, libs, "g_filename_display_basename") | |||
| 446 | + | core.PuregoSafeRegister(&xFilenameDisplayName, libs, "g_filename_display_name") | |||
| 447 | + | core.PuregoSafeRegister(&xFilenameFromUri, libs, "g_filename_from_uri") | |||
| 448 | + | core.PuregoSafeRegister(&xFilenameFromUtf8, libs, "g_filename_from_utf8") | |||
| 449 | + | core.PuregoSafeRegister(&xFilenameToUri, libs, "g_filename_to_uri") | |||
| 450 | + | core.PuregoSafeRegister(&xFilenameToUtf8, libs, "g_filename_to_utf8") | |||
| 451 | + | core.PuregoSafeRegister(&xGetFilenameCharsets, libs, "g_get_filename_charsets") | |||
| 452 | + | core.PuregoSafeRegister(&xIconv, libs, "g_iconv") | |||
| 453 | + | core.PuregoSafeRegister(&xIconvOpen, libs, "g_iconv_open") | |||
| 454 | + | core.PuregoSafeRegister(&xLocaleFromUtf8, libs, "g_locale_from_utf8") | |||
| 455 | + | core.PuregoSafeRegister(&xLocaleToUtf8, libs, "g_locale_to_utf8") | |||
| 456 | + | core.PuregoSafeRegister(&xUriListExtractUris, libs, "g_uri_list_extract_uris") | |||
| 457 | + | ||||
| 458 | + | core.PuregoSafeRegister(&xIConvGIconv, libs, "g_iconv") | |||
| 459 | + | core.PuregoSafeRegister(&xIConvClose, libs, "g_iconv_close") | |||
| 457 | } | 460 | } | ||