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
| @@ -1,7 +1,10 @@ | |||
| 1 | 1 | // Package glib was automatically generated by github.com/bnema/puregotk DO NOT EDIT | |
| 2 | 2 | package glib | |
| 3 | 3 | ||
| 4 | - | import "github.com/bnema/puregotk/pkg/core" | |
| 4 | + | import ( | |
| 5 | + | "github.com/bnema/purego" | |
| 6 | + | "github.com/bnema/puregotk/pkg/core" | |
| 7 | + | ) | |
| 5 | 8 | ||
| 6 | 9 | var xAtomicIntAdd func(uintptr, int) int | |
| 7 | 10 | ||
| @@ -18,8 +21,6 @@ var xAtomicIntAdd func(uintptr, int) int | |||
| 18 | 21 | // While @atomic has a `volatile` qualifier, this is a historical artifact and | |
| 19 | 22 | // the pointer passed to it should not be `volatile`. | |
| 20 | 23 | func AtomicIntAdd(AtomicVar uintptr, ValVar int) int { | |
| 21 | - | core.LazyRegister(&xAtomicIntAdd, "GLIB", "g_atomic_int_add", false) | |
| 22 | - | ||
| 23 | 24 | cret := xAtomicIntAdd(AtomicVar, ValVar) | |
| 24 | 25 | return cret | |
| 25 | 26 | } | |
| @@ -37,8 +38,6 @@ var xAtomicIntAnd func(uintptr, uint) uint | |||
| 37 | 38 | // While @atomic has a `volatile` qualifier, this is a historical artifact and | |
| 38 | 39 | // the pointer passed to it should not be `volatile`. | |
| 39 | 40 | func AtomicIntAnd(AtomicVar uintptr, ValVar uint) uint { | |
| 40 | - | core.LazyRegister(&xAtomicIntAnd, "GLIB", "g_atomic_int_and", false) | |
| 41 | - | ||
| 42 | 41 | cret := xAtomicIntAnd(AtomicVar, ValVar) | |
| 43 | 42 | return cret | |
| 44 | 43 | } | |
| @@ -58,8 +57,6 @@ var xAtomicIntCompareAndExchange func(uintptr, int, int) bool | |||
| 58 | 57 | // While @atomic has a `volatile` qualifier, this is a historical artifact and | |
| 59 | 58 | // the pointer passed to it should not be `volatile`. | |
| 60 | 59 | func AtomicIntCompareAndExchange(AtomicVar uintptr, OldvalVar int, NewvalVar int) bool { | |
| 61 | - | core.LazyRegister(&xAtomicIntCompareAndExchange, "GLIB", "g_atomic_int_compare_and_exchange", false) | |
| 62 | - | ||
| 63 | 60 | cret := xAtomicIntCompareAndExchange(AtomicVar, OldvalVar, NewvalVar) | |
| 64 | 61 | return cret | |
| 65 | 62 | } | |
| @@ -79,8 +76,6 @@ var xAtomicIntCompareAndExchangeFull func(uintptr, int, int, *int) bool | |||
| 79 | 76 | // | |
| 80 | 77 | // See also g_atomic_int_compare_and_exchange() | |
| 81 | 78 | func AtomicIntCompareAndExchangeFull(AtomicVar uintptr, OldvalVar int, NewvalVar int, PrevalVar *int) bool { | |
| 82 | - | core.LazyRegister(&xAtomicIntCompareAndExchangeFull, "GLIB", "g_atomic_int_compare_and_exchange_full", false) | |
| 83 | - | ||
| 84 | 79 | cret := xAtomicIntCompareAndExchangeFull(AtomicVar, OldvalVar, NewvalVar, PrevalVar) | |
| 85 | 80 | return cret | |
| 86 | 81 | } | |
| @@ -97,8 +92,6 @@ var xAtomicIntDecAndTest func(uintptr) bool | |||
| 97 | 92 | // While @atomic has a `volatile` qualifier, this is a historical artifact and | |
| 98 | 93 | // the pointer passed to it should not be `volatile`. | |
| 99 | 94 | func AtomicIntDecAndTest(AtomicVar uintptr) bool { | |
| 100 | - | core.LazyRegister(&xAtomicIntDecAndTest, "GLIB", "g_atomic_int_dec_and_test", false) | |
| 101 | - | ||
| 102 | 95 | cret := xAtomicIntDecAndTest(AtomicVar) | |
| 103 | 96 | return cret | |
| 104 | 97 | } | |
| @@ -114,8 +107,6 @@ var xAtomicIntExchange func(uintptr, int) int | |||
| 114 | 107 | // | |
| 115 | 108 | // This call acts as a full compiler and hardware memory barrier. | |
| 116 | 109 | func AtomicIntExchange(AtomicVar uintptr, NewvalVar int) int { | |
| 117 | - | core.LazyRegister(&xAtomicIntExchange, "GLIB", "g_atomic_int_exchange", false) | |
| 118 | - | ||
| 119 | 110 | cret := xAtomicIntExchange(AtomicVar, NewvalVar) | |
| 120 | 111 | return cret | |
| 121 | 112 | } | |
| @@ -126,8 +117,6 @@ var xAtomicIntExchangeAndAdd func(uintptr, int) int | |||
| 126 | 117 | // value of the integer (which it now does). It is retained only for | |
| 127 | 118 | // compatibility reasons. Don't use this function in new code. | |
| 128 | 119 | func AtomicIntExchangeAndAdd(AtomicVar uintptr, ValVar int) int { | |
| 129 | - | core.LazyRegister(&xAtomicIntExchangeAndAdd, "GLIB", "g_atomic_int_exchange_and_add", false) | |
| 130 | - | ||
| 131 | 120 | cret := xAtomicIntExchangeAndAdd(AtomicVar, ValVar) | |
| 132 | 121 | return cret | |
| 133 | 122 | } | |
| @@ -142,8 +131,6 @@ var xAtomicIntGet func(uintptr) int | |||
| 142 | 131 | // While @atomic has a `volatile` qualifier, this is a historical artifact and | |
| 143 | 132 | // the pointer passed to it should not be `volatile`. | |
| 144 | 133 | func AtomicIntGet(AtomicVar uintptr) int { | |
| 145 | - | core.LazyRegister(&xAtomicIntGet, "GLIB", "g_atomic_int_get", false) | |
| 146 | - | ||
| 147 | 134 | cret := xAtomicIntGet(AtomicVar) | |
| 148 | 135 | return cret | |
| 149 | 136 | } | |
| @@ -159,8 +146,6 @@ var xAtomicIntInc func(uintptr) | |||
| 159 | 146 | // While @atomic has a `volatile` qualifier, this is a historical artifact and | |
| 160 | 147 | // the pointer passed to it should not be `volatile`. | |
| 161 | 148 | func AtomicIntInc(AtomicVar uintptr) { | |
| 162 | - | core.LazyRegister(&xAtomicIntInc, "GLIB", "g_atomic_int_inc", false) | |
| 163 | - | ||
| 164 | 149 | xAtomicIntInc(AtomicVar) | |
| 165 | 150 | } | |
| 166 | 151 | ||
| @@ -177,8 +162,6 @@ var xAtomicIntOr func(uintptr, uint) uint | |||
| 177 | 162 | // While @atomic has a `volatile` qualifier, this is a historical artifact and | |
| 178 | 163 | // the pointer passed to it should not be `volatile`. | |
| 179 | 164 | func AtomicIntOr(AtomicVar uintptr, ValVar uint) uint { | |
| 180 | - | core.LazyRegister(&xAtomicIntOr, "GLIB", "g_atomic_int_or", false) | |
| 181 | - | ||
| 182 | 165 | cret := xAtomicIntOr(AtomicVar, ValVar) | |
| 183 | 166 | return cret | |
| 184 | 167 | } | |
| @@ -193,8 +176,6 @@ var xAtomicIntSet func(uintptr, int) | |||
| 193 | 176 | // While @atomic has a `volatile` qualifier, this is a historical artifact and | |
| 194 | 177 | // the pointer passed to it should not be `volatile`. | |
| 195 | 178 | func AtomicIntSet(AtomicVar uintptr, NewvalVar int) { | |
| 196 | - | core.LazyRegister(&xAtomicIntSet, "GLIB", "g_atomic_int_set", false) | |
| 197 | - | ||
| 198 | 179 | xAtomicIntSet(AtomicVar, NewvalVar) | |
| 199 | 180 | } | |
| 200 | 181 | ||
| @@ -211,8 +192,6 @@ var xAtomicIntXor func(uintptr, uint) uint | |||
| 211 | 192 | // While @atomic has a `volatile` qualifier, this is a historical artifact and | |
| 212 | 193 | // the pointer passed to it should not be `volatile`. | |
| 213 | 194 | func AtomicIntXor(AtomicVar uintptr, ValVar uint) uint { | |
| 214 | - | core.LazyRegister(&xAtomicIntXor, "GLIB", "g_atomic_int_xor", false) | |
| 215 | - | ||
| 216 | 195 | cret := xAtomicIntXor(AtomicVar, ValVar) | |
| 217 | 196 | return cret | |
| 218 | 197 | } | |
| @@ -233,8 +212,6 @@ var xAtomicPointerAdd func(uintptr, int) int | |||
| 233 | 212 | // support for platforms with 128-bit pointers. This should not affect existing | |
| 234 | 213 | // code. | |
| 235 | 214 | func AtomicPointerAdd(AtomicVar uintptr, ValVar int) int { | |
| 236 | - | core.LazyRegister(&xAtomicPointerAdd, "GLIB", "g_atomic_pointer_add", false) | |
| 237 | - | ||
| 238 | 215 | cret := xAtomicPointerAdd(AtomicVar, ValVar) | |
| 239 | 216 | return cret | |
| 240 | 217 | } | |
| @@ -256,8 +233,6 @@ var xAtomicPointerAnd func(uintptr, uint) uintptr | |||
| 256 | 233 | // support for platforms with 128-bit pointers. This should not affect existing | |
| 257 | 234 | // code. | |
| 258 | 235 | func AtomicPointerAnd(AtomicVar uintptr, ValVar uint) uintptr { | |
| 259 | - | core.LazyRegister(&xAtomicPointerAnd, "GLIB", "g_atomic_pointer_and", false) | |
| 260 | - | ||
| 261 | 236 | cret := xAtomicPointerAnd(AtomicVar, ValVar) | |
| 262 | 237 | return cret | |
| 263 | 238 | } | |
| @@ -277,8 +252,6 @@ var xAtomicPointerCompareAndExchange func(uintptr, uintptr, uintptr) bool | |||
| 277 | 252 | // While @atomic has a `volatile` qualifier, this is a historical artifact and | |
| 278 | 253 | // the pointer passed to it should not be `volatile`. | |
| 279 | 254 | func AtomicPointerCompareAndExchange(AtomicVar uintptr, OldvalVar uintptr, NewvalVar uintptr) bool { | |
| 280 | - | core.LazyRegister(&xAtomicPointerCompareAndExchange, "GLIB", "g_atomic_pointer_compare_and_exchange", false) | |
| 281 | - | ||
| 282 | 255 | cret := xAtomicPointerCompareAndExchange(AtomicVar, OldvalVar, NewvalVar) | |
| 283 | 256 | return cret | |
| 284 | 257 | } | |
| @@ -298,8 +271,6 @@ var xAtomicPointerCompareAndExchangeFull func(uintptr, uintptr, uintptr, *uintpt | |||
| 298 | 271 | // | |
| 299 | 272 | // See also g_atomic_pointer_compare_and_exchange() | |
| 300 | 273 | func AtomicPointerCompareAndExchangeFull(AtomicVar uintptr, OldvalVar uintptr, NewvalVar uintptr, PrevalVar *uintptr) bool { | |
| 301 | - | core.LazyRegister(&xAtomicPointerCompareAndExchangeFull, "GLIB", "g_atomic_pointer_compare_and_exchange_full", false) | |
| 302 | - | ||
| 303 | 274 | cret := xAtomicPointerCompareAndExchangeFull(AtomicVar, OldvalVar, NewvalVar, PrevalVar) | |
| 304 | 275 | return cret | |
| 305 | 276 | } | |
| @@ -315,8 +286,6 @@ var xAtomicPointerExchange func(uintptr, uintptr) uintptr | |||
| 315 | 286 | // | |
| 316 | 287 | // This call acts as a full compiler and hardware memory barrier. | |
| 317 | 288 | func AtomicPointerExchange(AtomicVar uintptr, NewvalVar uintptr) uintptr { | |
| 318 | - | core.LazyRegister(&xAtomicPointerExchange, "GLIB", "g_atomic_pointer_exchange", false) | |
| 319 | - | ||
| 320 | 289 | cret := xAtomicPointerExchange(AtomicVar, NewvalVar) | |
| 321 | 290 | return cret | |
| 322 | 291 | } | |
| @@ -331,8 +300,6 @@ var xAtomicPointerGet func(uintptr) uintptr | |||
| 331 | 300 | // While @atomic has a `volatile` qualifier, this is a historical artifact and | |
| 332 | 301 | // the pointer passed to it should not be `volatile`. | |
| 333 | 302 | func AtomicPointerGet(AtomicVar uintptr) uintptr { | |
| 334 | - | core.LazyRegister(&xAtomicPointerGet, "GLIB", "g_atomic_pointer_get", false) | |
| 335 | - | ||
| 336 | 303 | cret := xAtomicPointerGet(AtomicVar) | |
| 337 | 304 | return cret | |
| 338 | 305 | } | |
| @@ -354,8 +321,6 @@ var xAtomicPointerOr func(uintptr, uint) uintptr | |||
| 354 | 321 | // support for platforms with 128-bit pointers. This should not affect existing | |
| 355 | 322 | // code. | |
| 356 | 323 | func AtomicPointerOr(AtomicVar uintptr, ValVar uint) uintptr { | |
| 357 | - | core.LazyRegister(&xAtomicPointerOr, "GLIB", "g_atomic_pointer_or", false) | |
| 358 | - | ||
| 359 | 324 | cret := xAtomicPointerOr(AtomicVar, ValVar) | |
| 360 | 325 | return cret | |
| 361 | 326 | } | |
| @@ -370,8 +335,6 @@ var xAtomicPointerSet func(uintptr, uintptr) | |||
| 370 | 335 | // While @atomic has a `volatile` qualifier, this is a historical artifact and | |
| 371 | 336 | // the pointer passed to it should not be `volatile`. | |
| 372 | 337 | func AtomicPointerSet(AtomicVar uintptr, NewvalVar uintptr) { | |
| 373 | - | core.LazyRegister(&xAtomicPointerSet, "GLIB", "g_atomic_pointer_set", false) | |
| 374 | - | ||
| 375 | 338 | xAtomicPointerSet(AtomicVar, NewvalVar) | |
| 376 | 339 | } | |
| 377 | 340 | ||
| @@ -392,8 +355,6 @@ var xAtomicPointerXor func(uintptr, uint) uintptr | |||
| 392 | 355 | // support for platforms with 128-bit pointers. This should not affect existing | |
| 393 | 356 | // code. | |
| 394 | 357 | func AtomicPointerXor(AtomicVar uintptr, ValVar uint) uintptr { | |
| 395 | - | core.LazyRegister(&xAtomicPointerXor, "GLIB", "g_atomic_pointer_xor", false) | |
| 396 | - | ||
| 397 | 358 | cret := xAtomicPointerXor(AtomicVar, ValVar) | |
| 398 | 359 | return cret | |
| 399 | 360 | } | |
| @@ -401,4 +362,34 @@ func AtomicPointerXor(AtomicVar uintptr, ValVar uint) uintptr { | |||
| 401 | 362 | func init() { | |
| 402 | 363 | core.SetPackageName("GLIB", "glib-2.0") | |
| 403 | 364 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | |
| 365 | + | var libs []uintptr | |
| 366 | + | for _, libPath := range core.GetPaths("GLIB") { | |
| 367 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 368 | + | if err != nil { | |
| 369 | + | panic(err) | |
| 370 | + | } | |
| 371 | + | libs = append(libs, lib) | |
| 372 | + | } | |
| 373 | + | ||
| 374 | + | core.PuregoSafeRegister(&xAtomicIntAdd, libs, "g_atomic_int_add") | |
| 375 | + | core.PuregoSafeRegister(&xAtomicIntAnd, libs, "g_atomic_int_and") | |
| 376 | + | core.PuregoSafeRegister(&xAtomicIntCompareAndExchange, libs, "g_atomic_int_compare_and_exchange") | |
| 377 | + | core.PuregoSafeRegister(&xAtomicIntCompareAndExchangeFull, libs, "g_atomic_int_compare_and_exchange_full") | |
| 378 | + | core.PuregoSafeRegister(&xAtomicIntDecAndTest, libs, "g_atomic_int_dec_and_test") | |
| 379 | + | core.PuregoSafeRegister(&xAtomicIntExchange, libs, "g_atomic_int_exchange") | |
| 380 | + | core.PuregoSafeRegister(&xAtomicIntExchangeAndAdd, libs, "g_atomic_int_exchange_and_add") | |
| 381 | + | core.PuregoSafeRegister(&xAtomicIntGet, libs, "g_atomic_int_get") | |
| 382 | + | core.PuregoSafeRegister(&xAtomicIntInc, libs, "g_atomic_int_inc") | |
| 383 | + | core.PuregoSafeRegister(&xAtomicIntOr, libs, "g_atomic_int_or") | |
| 384 | + | core.PuregoSafeRegister(&xAtomicIntSet, libs, "g_atomic_int_set") | |
| 385 | + | core.PuregoSafeRegister(&xAtomicIntXor, libs, "g_atomic_int_xor") | |
| 386 | + | core.PuregoSafeRegister(&xAtomicPointerAdd, libs, "g_atomic_pointer_add") | |
| 387 | + | core.PuregoSafeRegister(&xAtomicPointerAnd, libs, "g_atomic_pointer_and") | |
| 388 | + | core.PuregoSafeRegister(&xAtomicPointerCompareAndExchange, libs, "g_atomic_pointer_compare_and_exchange") | |
| 389 | + | core.PuregoSafeRegister(&xAtomicPointerCompareAndExchangeFull, libs, "g_atomic_pointer_compare_and_exchange_full") | |
| 390 | + | core.PuregoSafeRegister(&xAtomicPointerExchange, libs, "g_atomic_pointer_exchange") | |
| 391 | + | core.PuregoSafeRegister(&xAtomicPointerGet, libs, "g_atomic_pointer_get") | |
| 392 | + | core.PuregoSafeRegister(&xAtomicPointerOr, libs, "g_atomic_pointer_or") | |
| 393 | + | core.PuregoSafeRegister(&xAtomicPointerSet, libs, "g_atomic_pointer_set") | |
| 394 | + | core.PuregoSafeRegister(&xAtomicPointerXor, libs, "g_atomic_pointer_xor") | |
| 404 | 395 | } | |
| @@ -1,7 +1,10 @@ | |||||
| 1 | // Package glib was automatically generated by github.com/bnema/puregotk DO NOT EDIT | 1 | // Package glib was automatically generated by github.com/bnema/puregotk DO NOT EDIT | ||
| 2 | package glib | 2 | package glib | ||
| 3 | 3 | ||||
| 4 | - | import "github.com/bnema/puregotk/pkg/core" | 4 | + | import ( |
| 5 | + | "github.com/bnema/purego" | |||
| 6 | + | "github.com/bnema/puregotk/pkg/core" | |||
| 7 | + | ) | |||
| 5 | 8 | ||||
| 6 | var xAtomicIntAdd func(uintptr, int) int | 9 | var xAtomicIntAdd func(uintptr, int) int | ||
| 7 | 10 | ||||
| @@ -18,8 +21,6 @@ var xAtomicIntAdd func(uintptr, int) int | |||||
| 18 | // While @atomic has a `volatile` qualifier, this is a historical artifact and | 21 | // While @atomic has a `volatile` qualifier, this is a historical artifact and | ||
| 19 | // the pointer passed to it should not be `volatile`. | 22 | // the pointer passed to it should not be `volatile`. | ||
| 20 | func AtomicIntAdd(AtomicVar uintptr, ValVar int) int { | 23 | func AtomicIntAdd(AtomicVar uintptr, ValVar int) int { | ||
| 21 | - | core.LazyRegister(&xAtomicIntAdd, "GLIB", "g_atomic_int_add", false) | |||
| 22 | - | ||||
| 23 | cret := xAtomicIntAdd(AtomicVar, ValVar) | 24 | cret := xAtomicIntAdd(AtomicVar, ValVar) | ||
| 24 | return cret | 25 | return cret | ||
| 25 | } | 26 | } | ||
| @@ -37,8 +38,6 @@ var xAtomicIntAnd func(uintptr, uint) uint | |||||
| 37 | // While @atomic has a `volatile` qualifier, this is a historical artifact and | 38 | // While @atomic has a `volatile` qualifier, this is a historical artifact and | ||
| 38 | // the pointer passed to it should not be `volatile`. | 39 | // the pointer passed to it should not be `volatile`. | ||
| 39 | func AtomicIntAnd(AtomicVar uintptr, ValVar uint) uint { | 40 | func AtomicIntAnd(AtomicVar uintptr, ValVar uint) uint { | ||
| 40 | - | core.LazyRegister(&xAtomicIntAnd, "GLIB", "g_atomic_int_and", false) | |||
| 41 | - | ||||
| 42 | cret := xAtomicIntAnd(AtomicVar, ValVar) | 41 | cret := xAtomicIntAnd(AtomicVar, ValVar) | ||
| 43 | return cret | 42 | return cret | ||
| 44 | } | 43 | } | ||
| @@ -58,8 +57,6 @@ var xAtomicIntCompareAndExchange func(uintptr, int, int) bool | |||||
| 58 | // While @atomic has a `volatile` qualifier, this is a historical artifact and | 57 | // While @atomic has a `volatile` qualifier, this is a historical artifact and | ||
| 59 | // the pointer passed to it should not be `volatile`. | 58 | // the pointer passed to it should not be `volatile`. | ||
| 60 | func AtomicIntCompareAndExchange(AtomicVar uintptr, OldvalVar int, NewvalVar int) bool { | 59 | func AtomicIntCompareAndExchange(AtomicVar uintptr, OldvalVar int, NewvalVar int) bool { | ||
| 61 | - | core.LazyRegister(&xAtomicIntCompareAndExchange, "GLIB", "g_atomic_int_compare_and_exchange", false) | |||
| 62 | - | ||||
| 63 | cret := xAtomicIntCompareAndExchange(AtomicVar, OldvalVar, NewvalVar) | 60 | cret := xAtomicIntCompareAndExchange(AtomicVar, OldvalVar, NewvalVar) | ||
| 64 | return cret | 61 | return cret | ||
| 65 | } | 62 | } | ||
| @@ -79,8 +76,6 @@ var xAtomicIntCompareAndExchangeFull func(uintptr, int, int, *int) bool | |||||
| 79 | // | 76 | // | ||
| 80 | // See also g_atomic_int_compare_and_exchange() | 77 | // See also g_atomic_int_compare_and_exchange() | ||
| 81 | func AtomicIntCompareAndExchangeFull(AtomicVar uintptr, OldvalVar int, NewvalVar int, PrevalVar *int) bool { | 78 | func AtomicIntCompareAndExchangeFull(AtomicVar uintptr, OldvalVar int, NewvalVar int, PrevalVar *int) bool { | ||
| 82 | - | core.LazyRegister(&xAtomicIntCompareAndExchangeFull, "GLIB", "g_atomic_int_compare_and_exchange_full", false) | |||
| 83 | - | ||||
| 84 | cret := xAtomicIntCompareAndExchangeFull(AtomicVar, OldvalVar, NewvalVar, PrevalVar) | 79 | cret := xAtomicIntCompareAndExchangeFull(AtomicVar, OldvalVar, NewvalVar, PrevalVar) | ||
| 85 | return cret | 80 | return cret | ||
| 86 | } | 81 | } | ||
| @@ -97,8 +92,6 @@ var xAtomicIntDecAndTest func(uintptr) bool | |||||
| 97 | // While @atomic has a `volatile` qualifier, this is a historical artifact and | 92 | // While @atomic has a `volatile` qualifier, this is a historical artifact and | ||
| 98 | // the pointer passed to it should not be `volatile`. | 93 | // the pointer passed to it should not be `volatile`. | ||
| 99 | func AtomicIntDecAndTest(AtomicVar uintptr) bool { | 94 | func AtomicIntDecAndTest(AtomicVar uintptr) bool { | ||
| 100 | - | core.LazyRegister(&xAtomicIntDecAndTest, "GLIB", "g_atomic_int_dec_and_test", false) | |||
| 101 | - | ||||
| 102 | cret := xAtomicIntDecAndTest(AtomicVar) | 95 | cret := xAtomicIntDecAndTest(AtomicVar) | ||
| 103 | return cret | 96 | return cret | ||
| 104 | } | 97 | } | ||
| @@ -114,8 +107,6 @@ var xAtomicIntExchange func(uintptr, int) int | |||||
| 114 | // | 107 | // | ||
| 115 | // This call acts as a full compiler and hardware memory barrier. | 108 | // This call acts as a full compiler and hardware memory barrier. | ||
| 116 | func AtomicIntExchange(AtomicVar uintptr, NewvalVar int) int { | 109 | func AtomicIntExchange(AtomicVar uintptr, NewvalVar int) int { | ||
| 117 | - | core.LazyRegister(&xAtomicIntExchange, "GLIB", "g_atomic_int_exchange", false) | |||
| 118 | - | ||||
| 119 | cret := xAtomicIntExchange(AtomicVar, NewvalVar) | 110 | cret := xAtomicIntExchange(AtomicVar, NewvalVar) | ||
| 120 | return cret | 111 | return cret | ||
| 121 | } | 112 | } | ||
| @@ -126,8 +117,6 @@ var xAtomicIntExchangeAndAdd func(uintptr, int) int | |||||
| 126 | // value of the integer (which it now does). It is retained only for | 117 | // value of the integer (which it now does). It is retained only for | ||
| 127 | // compatibility reasons. Don't use this function in new code. | 118 | // compatibility reasons. Don't use this function in new code. | ||
| 128 | func AtomicIntExchangeAndAdd(AtomicVar uintptr, ValVar int) int { | 119 | func AtomicIntExchangeAndAdd(AtomicVar uintptr, ValVar int) int { | ||
| 129 | - | core.LazyRegister(&xAtomicIntExchangeAndAdd, "GLIB", "g_atomic_int_exchange_and_add", false) | |||
| 130 | - | ||||
| 131 | cret := xAtomicIntExchangeAndAdd(AtomicVar, ValVar) | 120 | cret := xAtomicIntExchangeAndAdd(AtomicVar, ValVar) | ||
| 132 | return cret | 121 | return cret | ||
| 133 | } | 122 | } | ||
| @@ -142,8 +131,6 @@ var xAtomicIntGet func(uintptr) int | |||||
| 142 | // While @atomic has a `volatile` qualifier, this is a historical artifact and | 131 | // While @atomic has a `volatile` qualifier, this is a historical artifact and | ||
| 143 | // the pointer passed to it should not be `volatile`. | 132 | // the pointer passed to it should not be `volatile`. | ||
| 144 | func AtomicIntGet(AtomicVar uintptr) int { | 133 | func AtomicIntGet(AtomicVar uintptr) int { | ||
| 145 | - | core.LazyRegister(&xAtomicIntGet, "GLIB", "g_atomic_int_get", false) | |||
| 146 | - | ||||
| 147 | cret := xAtomicIntGet(AtomicVar) | 134 | cret := xAtomicIntGet(AtomicVar) | ||
| 148 | return cret | 135 | return cret | ||
| 149 | } | 136 | } | ||
| @@ -159,8 +146,6 @@ var xAtomicIntInc func(uintptr) | |||||
| 159 | // While @atomic has a `volatile` qualifier, this is a historical artifact and | 146 | // While @atomic has a `volatile` qualifier, this is a historical artifact and | ||
| 160 | // the pointer passed to it should not be `volatile`. | 147 | // the pointer passed to it should not be `volatile`. | ||
| 161 | func AtomicIntInc(AtomicVar uintptr) { | 148 | func AtomicIntInc(AtomicVar uintptr) { | ||
| 162 | - | core.LazyRegister(&xAtomicIntInc, "GLIB", "g_atomic_int_inc", false) | |||
| 163 | - | ||||
| 164 | xAtomicIntInc(AtomicVar) | 149 | xAtomicIntInc(AtomicVar) | ||
| 165 | } | 150 | } | ||
| 166 | 151 | ||||
| @@ -177,8 +162,6 @@ var xAtomicIntOr func(uintptr, uint) uint | |||||
| 177 | // While @atomic has a `volatile` qualifier, this is a historical artifact and | 162 | // While @atomic has a `volatile` qualifier, this is a historical artifact and | ||
| 178 | // the pointer passed to it should not be `volatile`. | 163 | // the pointer passed to it should not be `volatile`. | ||
| 179 | func AtomicIntOr(AtomicVar uintptr, ValVar uint) uint { | 164 | func AtomicIntOr(AtomicVar uintptr, ValVar uint) uint { | ||
| 180 | - | core.LazyRegister(&xAtomicIntOr, "GLIB", "g_atomic_int_or", false) | |||
| 181 | - | ||||
| 182 | cret := xAtomicIntOr(AtomicVar, ValVar) | 165 | cret := xAtomicIntOr(AtomicVar, ValVar) | ||
| 183 | return cret | 166 | return cret | ||
| 184 | } | 167 | } | ||
| @@ -193,8 +176,6 @@ var xAtomicIntSet func(uintptr, int) | |||||
| 193 | // While @atomic has a `volatile` qualifier, this is a historical artifact and | 176 | // While @atomic has a `volatile` qualifier, this is a historical artifact and | ||
| 194 | // the pointer passed to it should not be `volatile`. | 177 | // the pointer passed to it should not be `volatile`. | ||
| 195 | func AtomicIntSet(AtomicVar uintptr, NewvalVar int) { | 178 | func AtomicIntSet(AtomicVar uintptr, NewvalVar int) { | ||
| 196 | - | core.LazyRegister(&xAtomicIntSet, "GLIB", "g_atomic_int_set", false) | |||
| 197 | - | ||||
| 198 | xAtomicIntSet(AtomicVar, NewvalVar) | 179 | xAtomicIntSet(AtomicVar, NewvalVar) | ||
| 199 | } | 180 | } | ||
| 200 | 181 | ||||
| @@ -211,8 +192,6 @@ var xAtomicIntXor func(uintptr, uint) uint | |||||
| 211 | // While @atomic has a `volatile` qualifier, this is a historical artifact and | 192 | // While @atomic has a `volatile` qualifier, this is a historical artifact and | ||
| 212 | // the pointer passed to it should not be `volatile`. | 193 | // the pointer passed to it should not be `volatile`. | ||
| 213 | func AtomicIntXor(AtomicVar uintptr, ValVar uint) uint { | 194 | func AtomicIntXor(AtomicVar uintptr, ValVar uint) uint { | ||
| 214 | - | core.LazyRegister(&xAtomicIntXor, "GLIB", "g_atomic_int_xor", false) | |||
| 215 | - | ||||
| 216 | cret := xAtomicIntXor(AtomicVar, ValVar) | 195 | cret := xAtomicIntXor(AtomicVar, ValVar) | ||
| 217 | return cret | 196 | return cret | ||
| 218 | } | 197 | } | ||
| @@ -233,8 +212,6 @@ var xAtomicPointerAdd func(uintptr, int) int | |||||
| 233 | // support for platforms with 128-bit pointers. This should not affect existing | 212 | // support for platforms with 128-bit pointers. This should not affect existing | ||
| 234 | // code. | 213 | // code. | ||
| 235 | func AtomicPointerAdd(AtomicVar uintptr, ValVar int) int { | 214 | func AtomicPointerAdd(AtomicVar uintptr, ValVar int) int { | ||
| 236 | - | core.LazyRegister(&xAtomicPointerAdd, "GLIB", "g_atomic_pointer_add", false) | |||
| 237 | - | ||||
| 238 | cret := xAtomicPointerAdd(AtomicVar, ValVar) | 215 | cret := xAtomicPointerAdd(AtomicVar, ValVar) | ||
| 239 | return cret | 216 | return cret | ||
| 240 | } | 217 | } | ||
| @@ -256,8 +233,6 @@ var xAtomicPointerAnd func(uintptr, uint) uintptr | |||||
| 256 | // support for platforms with 128-bit pointers. This should not affect existing | 233 | // support for platforms with 128-bit pointers. This should not affect existing | ||
| 257 | // code. | 234 | // code. | ||
| 258 | func AtomicPointerAnd(AtomicVar uintptr, ValVar uint) uintptr { | 235 | func AtomicPointerAnd(AtomicVar uintptr, ValVar uint) uintptr { | ||
| 259 | - | core.LazyRegister(&xAtomicPointerAnd, "GLIB", "g_atomic_pointer_and", false) | |||
| 260 | - | ||||
| 261 | cret := xAtomicPointerAnd(AtomicVar, ValVar) | 236 | cret := xAtomicPointerAnd(AtomicVar, ValVar) | ||
| 262 | return cret | 237 | return cret | ||
| 263 | } | 238 | } | ||
| @@ -277,8 +252,6 @@ var xAtomicPointerCompareAndExchange func(uintptr, uintptr, uintptr) bool | |||||
| 277 | // While @atomic has a `volatile` qualifier, this is a historical artifact and | 252 | // While @atomic has a `volatile` qualifier, this is a historical artifact and | ||
| 278 | // the pointer passed to it should not be `volatile`. | 253 | // the pointer passed to it should not be `volatile`. | ||
| 279 | func AtomicPointerCompareAndExchange(AtomicVar uintptr, OldvalVar uintptr, NewvalVar uintptr) bool { | 254 | func AtomicPointerCompareAndExchange(AtomicVar uintptr, OldvalVar uintptr, NewvalVar uintptr) bool { | ||
| 280 | - | core.LazyRegister(&xAtomicPointerCompareAndExchange, "GLIB", "g_atomic_pointer_compare_and_exchange", false) | |||
| 281 | - | ||||
| 282 | cret := xAtomicPointerCompareAndExchange(AtomicVar, OldvalVar, NewvalVar) | 255 | cret := xAtomicPointerCompareAndExchange(AtomicVar, OldvalVar, NewvalVar) | ||
| 283 | return cret | 256 | return cret | ||
| 284 | } | 257 | } | ||
| @@ -298,8 +271,6 @@ var xAtomicPointerCompareAndExchangeFull func(uintptr, uintptr, uintptr, *uintpt | |||||
| 298 | // | 271 | // | ||
| 299 | // See also g_atomic_pointer_compare_and_exchange() | 272 | // See also g_atomic_pointer_compare_and_exchange() | ||
| 300 | func AtomicPointerCompareAndExchangeFull(AtomicVar uintptr, OldvalVar uintptr, NewvalVar uintptr, PrevalVar *uintptr) bool { | 273 | func AtomicPointerCompareAndExchangeFull(AtomicVar uintptr, OldvalVar uintptr, NewvalVar uintptr, PrevalVar *uintptr) bool { | ||
| 301 | - | core.LazyRegister(&xAtomicPointerCompareAndExchangeFull, "GLIB", "g_atomic_pointer_compare_and_exchange_full", false) | |||
| 302 | - | ||||
| 303 | cret := xAtomicPointerCompareAndExchangeFull(AtomicVar, OldvalVar, NewvalVar, PrevalVar) | 274 | cret := xAtomicPointerCompareAndExchangeFull(AtomicVar, OldvalVar, NewvalVar, PrevalVar) | ||
| 304 | return cret | 275 | return cret | ||
| 305 | } | 276 | } | ||
| @@ -315,8 +286,6 @@ var xAtomicPointerExchange func(uintptr, uintptr) uintptr | |||||
| 315 | // | 286 | // | ||
| 316 | // This call acts as a full compiler and hardware memory barrier. | 287 | // This call acts as a full compiler and hardware memory barrier. | ||
| 317 | func AtomicPointerExchange(AtomicVar uintptr, NewvalVar uintptr) uintptr { | 288 | func AtomicPointerExchange(AtomicVar uintptr, NewvalVar uintptr) uintptr { | ||
| 318 | - | core.LazyRegister(&xAtomicPointerExchange, "GLIB", "g_atomic_pointer_exchange", false) | |||
| 319 | - | ||||
| 320 | cret := xAtomicPointerExchange(AtomicVar, NewvalVar) | 289 | cret := xAtomicPointerExchange(AtomicVar, NewvalVar) | ||
| 321 | return cret | 290 | return cret | ||
| 322 | } | 291 | } | ||
| @@ -331,8 +300,6 @@ var xAtomicPointerGet func(uintptr) uintptr | |||||
| 331 | // While @atomic has a `volatile` qualifier, this is a historical artifact and | 300 | // While @atomic has a `volatile` qualifier, this is a historical artifact and | ||
| 332 | // the pointer passed to it should not be `volatile`. | 301 | // the pointer passed to it should not be `volatile`. | ||
| 333 | func AtomicPointerGet(AtomicVar uintptr) uintptr { | 302 | func AtomicPointerGet(AtomicVar uintptr) uintptr { | ||
| 334 | - | core.LazyRegister(&xAtomicPointerGet, "GLIB", "g_atomic_pointer_get", false) | |||
| 335 | - | ||||
| 336 | cret := xAtomicPointerGet(AtomicVar) | 303 | cret := xAtomicPointerGet(AtomicVar) | ||
| 337 | return cret | 304 | return cret | ||
| 338 | } | 305 | } | ||
| @@ -354,8 +321,6 @@ var xAtomicPointerOr func(uintptr, uint) uintptr | |||||
| 354 | // support for platforms with 128-bit pointers. This should not affect existing | 321 | // support for platforms with 128-bit pointers. This should not affect existing | ||
| 355 | // code. | 322 | // code. | ||
| 356 | func AtomicPointerOr(AtomicVar uintptr, ValVar uint) uintptr { | 323 | func AtomicPointerOr(AtomicVar uintptr, ValVar uint) uintptr { | ||
| 357 | - | core.LazyRegister(&xAtomicPointerOr, "GLIB", "g_atomic_pointer_or", false) | |||
| 358 | - | ||||
| 359 | cret := xAtomicPointerOr(AtomicVar, ValVar) | 324 | cret := xAtomicPointerOr(AtomicVar, ValVar) | ||
| 360 | return cret | 325 | return cret | ||
| 361 | } | 326 | } | ||
| @@ -370,8 +335,6 @@ var xAtomicPointerSet func(uintptr, uintptr) | |||||
| 370 | // While @atomic has a `volatile` qualifier, this is a historical artifact and | 335 | // While @atomic has a `volatile` qualifier, this is a historical artifact and | ||
| 371 | // the pointer passed to it should not be `volatile`. | 336 | // the pointer passed to it should not be `volatile`. | ||
| 372 | func AtomicPointerSet(AtomicVar uintptr, NewvalVar uintptr) { | 337 | func AtomicPointerSet(AtomicVar uintptr, NewvalVar uintptr) { | ||
| 373 | - | core.LazyRegister(&xAtomicPointerSet, "GLIB", "g_atomic_pointer_set", false) | |||
| 374 | - | ||||
| 375 | xAtomicPointerSet(AtomicVar, NewvalVar) | 338 | xAtomicPointerSet(AtomicVar, NewvalVar) | ||
| 376 | } | 339 | } | ||
| 377 | 340 | ||||
| @@ -392,8 +355,6 @@ var xAtomicPointerXor func(uintptr, uint) uintptr | |||||
| 392 | // support for platforms with 128-bit pointers. This should not affect existing | 355 | // support for platforms with 128-bit pointers. This should not affect existing | ||
| 393 | // code. | 356 | // code. | ||
| 394 | func AtomicPointerXor(AtomicVar uintptr, ValVar uint) uintptr { | 357 | func AtomicPointerXor(AtomicVar uintptr, ValVar uint) uintptr { | ||
| 395 | - | core.LazyRegister(&xAtomicPointerXor, "GLIB", "g_atomic_pointer_xor", false) | |||
| 396 | - | ||||
| 397 | cret := xAtomicPointerXor(AtomicVar, ValVar) | 358 | cret := xAtomicPointerXor(AtomicVar, ValVar) | ||
| 398 | return cret | 359 | return cret | ||
| 399 | } | 360 | } | ||
| @@ -401,4 +362,34 @@ func AtomicPointerXor(AtomicVar uintptr, ValVar uint) uintptr { | |||||
| 401 | func init() { | 362 | func init() { | ||
| 402 | core.SetPackageName("GLIB", "glib-2.0") | 363 | core.SetPackageName("GLIB", "glib-2.0") | ||
| 403 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | 364 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | ||
| 365 | + | var libs []uintptr | |||
| 366 | + | for _, libPath := range core.GetPaths("GLIB") { | |||
| 367 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 368 | + | if err != nil { | |||
| 369 | + | panic(err) | |||
| 370 | + | } | |||
| 371 | + | libs = append(libs, lib) | |||
| 372 | + | } | |||
| 373 | + | ||||
| 374 | + | core.PuregoSafeRegister(&xAtomicIntAdd, libs, "g_atomic_int_add") | |||
| 375 | + | core.PuregoSafeRegister(&xAtomicIntAnd, libs, "g_atomic_int_and") | |||
| 376 | + | core.PuregoSafeRegister(&xAtomicIntCompareAndExchange, libs, "g_atomic_int_compare_and_exchange") | |||
| 377 | + | core.PuregoSafeRegister(&xAtomicIntCompareAndExchangeFull, libs, "g_atomic_int_compare_and_exchange_full") | |||
| 378 | + | core.PuregoSafeRegister(&xAtomicIntDecAndTest, libs, "g_atomic_int_dec_and_test") | |||
| 379 | + | core.PuregoSafeRegister(&xAtomicIntExchange, libs, "g_atomic_int_exchange") | |||
| 380 | + | core.PuregoSafeRegister(&xAtomicIntExchangeAndAdd, libs, "g_atomic_int_exchange_and_add") | |||
| 381 | + | core.PuregoSafeRegister(&xAtomicIntGet, libs, "g_atomic_int_get") | |||
| 382 | + | core.PuregoSafeRegister(&xAtomicIntInc, libs, "g_atomic_int_inc") | |||
| 383 | + | core.PuregoSafeRegister(&xAtomicIntOr, libs, "g_atomic_int_or") | |||
| 384 | + | core.PuregoSafeRegister(&xAtomicIntSet, libs, "g_atomic_int_set") | |||
| 385 | + | core.PuregoSafeRegister(&xAtomicIntXor, libs, "g_atomic_int_xor") | |||
| 386 | + | core.PuregoSafeRegister(&xAtomicPointerAdd, libs, "g_atomic_pointer_add") | |||
| 387 | + | core.PuregoSafeRegister(&xAtomicPointerAnd, libs, "g_atomic_pointer_and") | |||
| 388 | + | core.PuregoSafeRegister(&xAtomicPointerCompareAndExchange, libs, "g_atomic_pointer_compare_and_exchange") | |||
| 389 | + | core.PuregoSafeRegister(&xAtomicPointerCompareAndExchangeFull, libs, "g_atomic_pointer_compare_and_exchange_full") | |||
| 390 | + | core.PuregoSafeRegister(&xAtomicPointerExchange, libs, "g_atomic_pointer_exchange") | |||
| 391 | + | core.PuregoSafeRegister(&xAtomicPointerGet, libs, "g_atomic_pointer_get") | |||
| 392 | + | core.PuregoSafeRegister(&xAtomicPointerOr, libs, "g_atomic_pointer_or") | |||
| 393 | + | core.PuregoSafeRegister(&xAtomicPointerSet, libs, "g_atomic_pointer_set") | |||
| 394 | + | core.PuregoSafeRegister(&xAtomicPointerXor, libs, "g_atomic_pointer_xor") | |||
| 404 | } | 395 | } | ||