Revert "chore(deps): pin puregotk nil-signal fix"
This reverts commit a161e348e2093172038390b0906448f0ae979a0d.
- commit
- 40378d5e4fd2372d054e49168ab2a6f67aedd0fd
- author
- brice · · 2026-07-14 17:59 UTC
- parent
- 8d647bb
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
905 files · +25263 -27842
M go.mod +1 -1
| @@ -11,7 +11,7 @@ require ( | |||
| 11 | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | |
| 12 | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | |
| 13 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | |
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | |
| 14 | + | github.com/bnema/puregotk v0.7.0 | |
| 15 | 15 | github.com/charmbracelet/bubbles v1.0.0 | |
| 16 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | |
| 17 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | |
| @@ -11,7 +11,7 @@ require ( | |||||
| 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | ||
| 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | ||
| 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | ||
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | 14 | + | github.com/bnema/puregotk v0.7.0 |
| 15 | github.com/charmbracelet/bubbles v1.0.0 | 15 | github.com/charmbracelet/bubbles v1.0.0 | ||
| 16 | github.com/charmbracelet/bubbletea v1.3.10 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | ||
| 17 | github.com/charmbracelet/lipgloss v1.1.0 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | ||
M go.sum +0 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/internal/core/core.go +4 -197 generated file: collapsed
M vendor/github.com/bnema/puregotk/pkg/core/core.go +0 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-dialog.go +64 -99 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-window.go +62 -95 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-accent-color.go +15 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-action-row.go +29 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-alert-dialog.go +47 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-target.go +27 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-util.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation.go +26 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application-window.go +22 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-avatar.go +25 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-banner.go +26 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bin.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bottom-sheet.go +38 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint-bin.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint.go +37 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-content.go +22 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-row.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-dots.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-lines.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel.go +37 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-layout.go +20 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-scrollable.go +22 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp.go +22 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-combo-row.go +33 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-dialog.go +38 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-easing.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-entry-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-enum-list-model.go +22 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-expander-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-flap.go +48 -61 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-fold-threshold-policy.go +1 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-header-bar.go +33 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-inline-view-switcher.go +24 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout-slot.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout.go +17 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-leaflet.go +56 -69 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-length-unit.go +14 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-main.go +15 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-message-dialog.go +44 -63 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-multi-layout-view.go +23 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-direction.go +1 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-split-view.go +32 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-view.go +49 -60 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-overlay-split-view.go +38 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-password-entry-row.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-dialog.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-group.go +26 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-page.go +33 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-row.go +22 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-window.go +29 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcut-label.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-dialog.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-item.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-section.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-item.go +37 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-section.go +27 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar.go +39 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spin-row.go +34 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner-paintable.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-split-button.go +34 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-animation.go +30 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-params.go +21 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-squeezer.go +44 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-status-page.go +24 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-style-manager.go +28 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipe-tracker.go +30 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipeable.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-switch-row.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-bar.go +32 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-button.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-overview.go +37 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-view.go +87 -123 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-timed-animation.go +28 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast-overlay.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast.go +36 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toggle-group.go +51 -64 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toolbar-view.go +35 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-version.go +16 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-stack.go +62 -78 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-bar.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-sidebar.go +22 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-title.go +23 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher.go +20 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window-title.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window.go +22 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-box.go +46 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-layout.go +46 -57 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/cairo/main.go +79 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkapplaunchcontext.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairo.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairocontext.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcicpparams.go +25 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkclipboard.go +32 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcolorstate.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentdeserializer.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentformats.go +31 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentprovider.go +28 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentserializer.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcursor.go +21 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevice.go +33 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicepad.go +22 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicetool.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplay.go +43 -51 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplaymanager.go +20 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexture.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexturebuilder.go +41 -53 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrag.go +28 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurface.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurfacesize.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrawcontext.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrop.go +24 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkenums.go +1 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkevents.go +118 -120 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframeclock.go +24 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframetimings.go +20 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkglcontext.go +36 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexture.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexturebuilder.go +35 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkkeys.go +22 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexture.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexturebuilder.go +35 -42 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmonitor.go +27 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpaintable.go +33 -63 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpango.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpixbuf.go +12 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopup.go +26 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopuplayout.go +32 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkrgba.go +21 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkseat.go +20 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksnapshot.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksurface.go +40 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktexture.go +31 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevel.go +66 -157 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevellayout.go +25 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevelsize.go +16 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktypes.go +72 -95 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkvulkancontext.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-animation.go +32 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-core.go +0 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-io.go +23 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-loader.go +22 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-simple-anim.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-transform.go +1 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf.go +79 -102 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/main.go +17 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gaction.go +31 -59 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactiongroup.go +39 -96 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactionmap.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gappinfo.go +116 -244 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplication.go +55 -79 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplicationcommandline.go +27 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncinitable.go +22 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncresult.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedinputstream.go +29 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedoutputstream.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbytesicon.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcancellable.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcharsetconverter.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcontenttype.go +26 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverter.go +20 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverterinputstream.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverteroutputstream.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcredentials.go +21 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatagrambased.go +30 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatainputstream.go +35 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdataoutputstream.go +23 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusactiongroup.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusaddress.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusauthobserver.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusconnection.go +66 -77 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbuserror.go +18 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusinterface.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusinterfaceskeleton.go +24 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusintrospection.go +56 -54 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmenumodel.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmessage.go +64 -88 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmethodinvocation.go +30 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusnameowning.go +15 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusnamewatching.go +15 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobject.go +17 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanager.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerclient.go +23 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerserver.go +20 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectproxy.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectskeleton.go +18 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusproxy.go +38 -42 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusserver.go +20 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusutils.go +22 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdebugcontroller.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdebugcontrollerdbus.go +14 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdrive.go +82 -214 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsclientconnection.go +24 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsconnection.go +80 -207 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsserverconnection.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gemblem.go +17 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gemblemedicon.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfile.go +450 -1148 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileattribute.go +19 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileenumerator.go +35 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileicon.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileinfo.go +84 -138 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileinputstream.go +23 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileiostream.go +27 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilemonitor.go +15 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilenamecompleter.go +16 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileoutputstream.go +27 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilterinputstream.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilteroutputstream.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gicon.go +25 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetaddress.go +34 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetaddressmask.go +21 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetsocketaddress.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginitable.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginputstream.go +48 -52 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioenums.go +1 -90 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioerror.go +13 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giomodule.go +29 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioscheduler.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giostream.go +29 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giotypes.go +60 -70 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giptosmessage.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gipv6tclassmessage.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/glistmodel.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gliststore.go +24 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gloadableicon.go +23 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemoryinputstream.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemorymonitor.go +12 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemoryoutputstream.go +19 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmenu.go +50 -62 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmenumodel.go +33 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmount.go +86 -215 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmountoperation.go +32 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnativesocketaddress.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnativevolumemonitor.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkaddress.go +21 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworking.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkmonitor.go +31 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkservice.go +19 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnotification.go +26 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/goutputstream.go +72 -86 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpermission.go +33 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableinputstream.go +22 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableoutputstream.go +27 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableutils.go +15 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpowerprofilemonitor.go +16 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpropertyaction.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxy.go +27 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyaddress.go +21 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyaddressenumerator.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyresolver.go +27 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gremoteactiongroup.go +15 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gresolver.go +67 -75 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gresource.go +23 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gseekable.go +27 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettings.go +67 -99 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettingsbackend.go +24 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettingsschema.go +43 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleaction.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleactiongroup.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleasyncresult.go +40 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleiostream.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimplepermission.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleproxyresolver.go +16 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocket.go +72 -87 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketaddress.go +19 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketaddressenumerator.go +20 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketclient.go +44 -54 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketconnectable.go +17 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketconnection.go +21 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketcontrolmessage.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketlistener.go +25 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketservice.go +16 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsrvtarget.go +11 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsubprocess.go +39 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsubprocesslauncher.go +31 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtask.go +52 -70 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtcpconnection.go +14 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtcpwrapperconnection.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtestdbus.go +22 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gthemedicon.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gthreadedresolver.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gthreadedsocketservice.go +12 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsbackend.go +33 -69 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlscertificate.go +29 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsclientconnection.go +29 -55 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsconnection.go +46 -56 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsdatabase.go +48 -51 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsfiledatabase.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsinteraction.go +31 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlspassword.go +22 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsserverconnection.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixconnection.go +20 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixcredentialsmessage.go +17 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixfdlist.go +19 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixsocketaddress.go +22 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvfs.go +24 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvolume.go +58 -143 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvolumemonitor.go +19 -11 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gzlibcompressor.go +18 -9 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gzlibdecompressor.go +15 -3 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/main.go +11 -2 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gallocator.go +28 -32 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/garray.go +59 -82 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gasyncqueue.go +39 -56 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gatomic.go +34 -43 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbacktrace.go +15 -5 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbase64.go +19 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbitlock.go +24 -23 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbookmarkfile.go +61 -69 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcache.go +15 -10 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcharset.go +19 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gchecksum.go +25 -23 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcompletion.go +17 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gconvert.go +28 -25 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdataset.go +28 -36 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdate.go +65 -103 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdatetime.go +66 -107 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdir.go +19 -12 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/genviron.go +21 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gerror.go +29 -30 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gfileutils.go +38 -45 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ggettext.go +19 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghash.go +53 -81
| @@ -5,6 +5,7 @@ import ( | |||
| 5 | 5 | "structs" | |
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | + | "github.com/bnema/purego" | |
| 8 | 9 | "github.com/bnema/puregotk/pkg/core" | |
| 9 | 10 | "github.com/bnema/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| @@ -31,7 +32,6 @@ type HashTable struct { | |||
| 31 | 32 | var xHashTableGLibType func() types.GType | |
| 32 | 33 | ||
| 33 | 34 | func HashTableGLibType() types.GType { | |
| 34 | - | core.LazyRegister(&xHashTableGLibType, "GLIB", "g_hash_table_get_type", false) | |
| 35 | 35 | return xHashTableGLibType() | |
| 36 | 36 | } | |
| 37 | 37 | ||
| @@ -86,8 +86,6 @@ var xHashTableIterGetHashTable func(uintptr) uintptr | |||
| 86 | 86 | ||
| 87 | 87 | // Returns the #GHashTable associated with @iter. | |
| 88 | 88 | func (x *HashTableIter) GetHashTable() *HashTable { | |
| 89 | - | core.LazyRegister(&xHashTableIterGetHashTable, "GLIB", "g_hash_table_iter_get_hash_table", false) | |
| 90 | - | ||
| 91 | 89 | cret := xHashTableIterGetHashTable(x.GoPointer()) | |
| 92 | 90 | if cret == 0 { | |
| 93 | 91 | return nil | |
| @@ -117,8 +115,6 @@ var xHashTableIterInit func(uintptr, *HashTable) | |||
| 117 | 115 | // | |
| 118 | 116 | // ]| | |
| 119 | 117 | func (x *HashTableIter) Init(HashTableVar *HashTable) { | |
| 120 | - | core.LazyRegister(&xHashTableIterInit, "GLIB", "g_hash_table_iter_init", false) | |
| 121 | - | ||
| 122 | 118 | xHashTableIterInit(x.GoPointer(), HashTableVar) | |
| 123 | 119 | } | |
| 124 | 120 | ||
| @@ -128,8 +124,6 @@ var xHashTableIterNext func(uintptr, *uintptr, *uintptr) bool | |||
| 128 | 124 | // pointed to as a result of this advancement. If %FALSE is returned, | |
| 129 | 125 | // @key and @value are not set, and the iterator becomes invalid. | |
| 130 | 126 | func (x *HashTableIter) Next(KeyVar *uintptr, ValueVar *uintptr) bool { | |
| 131 | - | core.LazyRegister(&xHashTableIterNext, "GLIB", "g_hash_table_iter_next", false) | |
| 132 | - | ||
| 133 | 127 | cret := xHashTableIterNext(x.GoPointer(), KeyVar, ValueVar) | |
| 134 | 128 | return cret | |
| 135 | 129 | } | |
| @@ -157,8 +151,6 @@ var xHashTableIterRemove func(uintptr) | |||
| 157 | 151 | // | |
| 158 | 152 | // ]| | |
| 159 | 153 | func (x *HashTableIter) Remove() { | |
| 160 | - | core.LazyRegister(&xHashTableIterRemove, "GLIB", "g_hash_table_iter_remove", false) | |
| 161 | - | ||
| 162 | 154 | xHashTableIterRemove(x.GoPointer()) | |
| 163 | 155 | } | |
| 164 | 156 | ||
| @@ -171,8 +163,6 @@ var xHashTableIterReplace func(uintptr, uintptr) | |||
| 171 | 163 | // If you supplied a @value_destroy_func when creating the | |
| 172 | 164 | // #GHashTable, the old value is freed using that function. | |
| 173 | 165 | func (x *HashTableIter) Replace(ValueVar uintptr) { | |
| 174 | - | core.LazyRegister(&xHashTableIterReplace, "GLIB", "g_hash_table_iter_replace", false) | |
| 175 | - | ||
| 176 | 166 | xHashTableIterReplace(x.GoPointer(), ValueVar) | |
| 177 | 167 | } | |
| 178 | 168 | ||
| @@ -184,8 +174,6 @@ var xHashTableIterSteal func(uintptr) | |||
| 184 | 174 | // after g_hash_table_iter_next() returned %TRUE, and cannot | |
| 185 | 175 | // be called more than once for the same key/value pair. | |
| 186 | 176 | func (x *HashTableIter) Steal() { | |
| 187 | - | core.LazyRegister(&xHashTableIterSteal, "GLIB", "g_hash_table_iter_steal", false) | |
| 188 | - | ||
| 189 | 177 | xHashTableIterSteal(x.GoPointer()) | |
| 190 | 178 | } | |
| 191 | 179 | ||
| @@ -199,8 +187,6 @@ var xDirectEqual func(uintptr, uintptr) bool | |||
| 199 | 187 | // This equality function is also appropriate for keys that are integers | |
| 200 | 188 | // stored in pointers, such as `GINT_TO_POINTER (n)`. | |
| 201 | 189 | func DirectEqual(V1Var uintptr, V2Var uintptr) bool { | |
| 202 | - | core.LazyRegister(&xDirectEqual, "GLIB", "g_direct_equal", false) | |
| 203 | - | ||
| 204 | 190 | cret := xDirectEqual(V1Var, V2Var) | |
| 205 | 191 | return cret | |
| 206 | 192 | } | |
| @@ -215,8 +201,6 @@ var xDirectHash func(uintptr) uint | |||
| 215 | 201 | // This hash function is also appropriate for keys that are integers | |
| 216 | 202 | // stored in pointers, such as `GINT_TO_POINTER (n)`. | |
| 217 | 203 | func DirectHash(VVar uintptr) uint { | |
| 218 | - | core.LazyRegister(&xDirectHash, "GLIB", "g_direct_hash", false) | |
| 219 | - | ||
| 220 | 204 | cret := xDirectHash(VVar) | |
| 221 | 205 | return cret | |
| 222 | 206 | } | |
| @@ -229,8 +213,6 @@ var xDoubleEqual func(uintptr, uintptr) bool | |||
| 229 | 213 | // parameter, when using non-%NULL pointers to doubles as keys in a | |
| 230 | 214 | // #GHashTable. | |
| 231 | 215 | func DoubleEqual(V1Var uintptr, V2Var uintptr) bool { | |
| 232 | - | core.LazyRegister(&xDoubleEqual, "GLIB", "g_double_equal", false) | |
| 233 | - | ||
| 234 | 216 | cret := xDoubleEqual(V1Var, V2Var) | |
| 235 | 217 | return cret | |
| 236 | 218 | } | |
| @@ -242,8 +224,6 @@ var xDoubleHash func(uintptr) uint | |||
| 242 | 224 | // It can be passed to g_hash_table_new() as the @hash_func parameter, | |
| 243 | 225 | // when using non-%NULL pointers to doubles as keys in a #GHashTable. | |
| 244 | 226 | func DoubleHash(VVar uintptr) uint { | |
| 245 | - | core.LazyRegister(&xDoubleHash, "GLIB", "g_double_hash", false) | |
| 246 | - | ||
| 247 | 227 | cret := xDoubleHash(VVar) | |
| 248 | 228 | return cret | |
| 249 | 229 | } | |
| @@ -266,8 +246,6 @@ var xHashTableAdd func(*HashTable, uintptr) bool | |||
| 266 | 246 | // indicate whether the newly added value was already in the hash table | |
| 267 | 247 | // or not. | |
| 268 | 248 | func HashTableAdd(HashTableVar *HashTable, KeyVar uintptr) bool { | |
| 269 | - | core.LazyRegister(&xHashTableAdd, "GLIB", "g_hash_table_add", false) | |
| 270 | - | ||
| 271 | 249 | cret := xHashTableAdd(HashTableVar, KeyVar) | |
| 272 | 250 | return cret | |
| 273 | 251 | } | |
| @@ -276,8 +254,6 @@ var xHashTableContains func(*HashTable, uintptr) bool | |||
| 276 | 254 | ||
| 277 | 255 | // Checks if @key is in @hash_table. | |
| 278 | 256 | func HashTableContains(HashTableVar *HashTable, KeyVar uintptr) bool { | |
| 279 | - | core.LazyRegister(&xHashTableContains, "GLIB", "g_hash_table_contains", false) | |
| 280 | - | ||
| 281 | 257 | cret := xHashTableContains(HashTableVar, KeyVar) | |
| 282 | 258 | return cret | |
| 283 | 259 | } | |
| @@ -291,8 +267,6 @@ var xHashTableDestroy func(*HashTable) | |||
| 291 | 267 | // functions you supplied will be called on all keys and values during the | |
| 292 | 268 | // destruction phase. | |
| 293 | 269 | func HashTableDestroy(HashTableVar *HashTable) { | |
| 294 | - | core.LazyRegister(&xHashTableDestroy, "GLIB", "g_hash_table_destroy", false) | |
| 295 | - | ||
| 296 | 270 | xHashTableDestroy(HashTableVar) | |
| 297 | 271 | } | |
| 298 | 272 | ||
| @@ -312,8 +286,6 @@ var xHashTableFind func(*HashTable, uintptr, uintptr) uintptr | |||
| 312 | 286 | // (keep in mind that an O(n) find/foreach operation issued for all n | |
| 313 | 287 | // values in a hash table ends up needing O(n*n) operations). | |
| 314 | 288 | func HashTableFind(HashTableVar *HashTable, PredicateVar *HRFunc, UserDataVar uintptr) uintptr { | |
| 315 | - | core.LazyRegister(&xHashTableFind, "GLIB", "g_hash_table_find", false) | |
| 316 | - | ||
| 317 | 289 | cret := xHashTableFind(HashTableVar, NewCallback(PredicateVar), UserDataVar) | |
| 318 | 290 | return cret | |
| 319 | 291 | } | |
| @@ -333,8 +305,6 @@ var xHashTableForeach func(*HashTable, uintptr, uintptr) | |||
| 333 | 305 | // See g_hash_table_find() for performance caveats for linear | |
| 334 | 306 | // order searches in contrast to g_hash_table_lookup(). | |
| 335 | 307 | func HashTableForeach(HashTableVar *HashTable, FuncVar *HFunc, UserDataVar uintptr) { | |
| 336 | - | core.LazyRegister(&xHashTableForeach, "GLIB", "g_hash_table_foreach", false) | |
| 337 | - | ||
| 338 | 308 | xHashTableForeach(HashTableVar, NewCallback(FuncVar), UserDataVar) | |
| 339 | 309 | } | |
| 340 | 310 | ||
| @@ -349,8 +319,6 @@ var xHashTableForeachRemove func(*HashTable, uintptr, uintptr) uint | |||
| 349 | 319 | // See #GHashTableIter for an alternative way to loop over the | |
| 350 | 320 | // key/value pairs in the hash table. | |
| 351 | 321 | func HashTableForeachRemove(HashTableVar *HashTable, FuncVar *HRFunc, UserDataVar uintptr) uint { | |
| 352 | - | core.LazyRegister(&xHashTableForeachRemove, "GLIB", "g_hash_table_foreach_remove", false) | |
| 353 | - | ||
| 354 | 322 | cret := xHashTableForeachRemove(HashTableVar, NewCallback(FuncVar), UserDataVar) | |
| 355 | 323 | return cret | |
| 356 | 324 | } | |
| @@ -365,8 +333,6 @@ var xHashTableForeachSteal func(*HashTable, uintptr, uintptr) uint | |||
| 365 | 333 | // See #GHashTableIter for an alternative way to loop over the | |
| 366 | 334 | // key/value pairs in the hash table. | |
| 367 | 335 | func HashTableForeachSteal(HashTableVar *HashTable, FuncVar *HRFunc, UserDataVar uintptr) uint { | |
| 368 | - | core.LazyRegister(&xHashTableForeachSteal, "GLIB", "g_hash_table_foreach_steal", false) | |
| 369 | - | ||
| 370 | 336 | cret := xHashTableForeachSteal(HashTableVar, NewCallback(FuncVar), UserDataVar) | |
| 371 | 337 | return cret | |
| 372 | 338 | } | |
| @@ -382,8 +348,6 @@ var xHashTableGetKeysAsPtrArray func(*HashTable) uintptr | |||
| 382 | 348 | // | |
| 383 | 349 | // You should always unref the returned array with g_ptr_array_unref(). | |
| 384 | 350 | func HashTableGetKeysAsPtrArray(HashTableVar *HashTable) uintptr { | |
| 385 | - | core.LazyRegister(&xHashTableGetKeysAsPtrArray, "GLIB", "g_hash_table_get_keys_as_ptr_array", false) | |
| 386 | - | ||
| 387 | 351 | cret := xHashTableGetKeysAsPtrArray(HashTableVar) | |
| 388 | 352 | return cret | |
| 389 | 353 | } | |
| @@ -399,8 +363,6 @@ var xHashTableGetValuesAsPtrArray func(*HashTable) uintptr | |||
| 399 | 363 | // | |
| 400 | 364 | // You should always unref the returned array with g_ptr_array_unref(). | |
| 401 | 365 | func HashTableGetValuesAsPtrArray(HashTableVar *HashTable) uintptr { | |
| 402 | - | core.LazyRegister(&xHashTableGetValuesAsPtrArray, "GLIB", "g_hash_table_get_values_as_ptr_array", false) | |
| 403 | - | ||
| 404 | 366 | cret := xHashTableGetValuesAsPtrArray(HashTableVar) | |
| 405 | 367 | return cret | |
| 406 | 368 | } | |
| @@ -420,8 +382,6 @@ var xHashTableInsert func(*HashTable, uintptr, uintptr) bool | |||
| 420 | 382 | // indicate whether the newly added value was already in the hash table | |
| 421 | 383 | // or not. | |
| 422 | 384 | func HashTableInsert(HashTableVar *HashTable, KeyVar uintptr, ValueVar uintptr) bool { | |
| 423 | - | core.LazyRegister(&xHashTableInsert, "GLIB", "g_hash_table_insert", false) | |
| 424 | - | ||
| 425 | 385 | cret := xHashTableInsert(HashTableVar, KeyVar, ValueVar) | |
| 426 | 386 | return cret | |
| 427 | 387 | } | |
| @@ -433,8 +393,6 @@ var xHashTableLookup func(*HashTable, uintptr) uintptr | |||
| 433 | 393 | // and has the value %NULL. If you need this distinction, use | |
| 434 | 394 | // g_hash_table_lookup_extended(). | |
| 435 | 395 | func HashTableLookup(HashTableVar *HashTable, KeyVar uintptr) uintptr { | |
| 436 | - | core.LazyRegister(&xHashTableLookup, "GLIB", "g_hash_table_lookup", false) | |
| 437 | - | ||
| 438 | 396 | cret := xHashTableLookup(HashTableVar, KeyVar) | |
| 439 | 397 | return cret | |
| 440 | 398 | } | |
| @@ -450,8 +408,6 @@ var xHashTableLookupExtended func(*HashTable, uintptr, *uintptr, *uintptr) bool | |||
| 450 | 408 | // whether the %NULL key exists, provided the hash and equal functions | |
| 451 | 409 | // of @hash_table are %NULL-safe. | |
| 452 | 410 | func HashTableLookupExtended(HashTableVar *HashTable, LookupKeyVar uintptr, OrigKeyVar *uintptr, ValueVar *uintptr) bool { | |
| 453 | - | core.LazyRegister(&xHashTableLookupExtended, "GLIB", "g_hash_table_lookup_extended", false) | |
| 454 | - | ||
| 455 | 411 | cret := xHashTableLookupExtended(HashTableVar, LookupKeyVar, OrigKeyVar, ValueVar) | |
| 456 | 412 | return cret | |
| 457 | 413 | } | |
| @@ -467,8 +423,6 @@ var xHashTableNewSimilar func(*HashTable) uintptr | |||
| 467 | 423 | // The returned hash table will be empty; it will not contain the keys | |
| 468 | 424 | // or values from @other_hash_table. | |
| 469 | 425 | func HashTableNewSimilar(OtherHashTableVar *HashTable) *HashTable { | |
| 470 | - | core.LazyRegister(&xHashTableNewSimilar, "GLIB", "g_hash_table_new_similar", false) | |
| 471 | - | ||
| 472 | 426 | cret := xHashTableNewSimilar(OtherHashTableVar) | |
| 473 | 427 | if cret == 0 { | |
| 474 | 428 | return nil | |
| @@ -481,8 +435,6 @@ var xHashTableRef func(*HashTable) uintptr | |||
| 481 | 435 | // Atomically increments the reference count of @hash_table by one. | |
| 482 | 436 | // This function is MT-safe and may be called from any thread. | |
| 483 | 437 | func HashTableRef(HashTableVar *HashTable) *HashTable { | |
| 484 | - | core.LazyRegister(&xHashTableRef, "GLIB", "g_hash_table_ref", false) | |
| 485 | - | ||
| 486 | 438 | cret := xHashTableRef(HashTableVar) | |
| 487 | 439 | if cret == 0 { | |
| 488 | 440 | return nil | |
| @@ -499,8 +451,6 @@ var xHashTableRemove func(*HashTable, uintptr) bool | |||
| 499 | 451 | // you have to make sure that any dynamically allocated values are freed | |
| 500 | 452 | // yourself. | |
| 501 | 453 | func HashTableRemove(HashTableVar *HashTable, KeyVar uintptr) bool { | |
| 502 | - | core.LazyRegister(&xHashTableRemove, "GLIB", "g_hash_table_remove", false) | |
| 503 | - | ||
| 504 | 454 | cret := xHashTableRemove(HashTableVar, KeyVar) | |
| 505 | 455 | return cret | |
| 506 | 456 | } | |
| @@ -514,8 +464,6 @@ var xHashTableRemoveAll func(*HashTable) | |||
| 514 | 464 | // otherwise you have to make sure that any dynamically allocated | |
| 515 | 465 | // values are freed yourself. | |
| 516 | 466 | func HashTableRemoveAll(HashTableVar *HashTable) { | |
| 517 | - | core.LazyRegister(&xHashTableRemoveAll, "GLIB", "g_hash_table_remove_all", false) | |
| 518 | - | ||
| 519 | 467 | xHashTableRemoveAll(HashTableVar) | |
| 520 | 468 | } | |
| 521 | 469 | ||
| @@ -533,8 +481,6 @@ var xHashTableReplace func(*HashTable, uintptr, uintptr) bool | |||
| 533 | 481 | // indicate whether the newly added value was already in the hash table | |
| 534 | 482 | // or not. | |
| 535 | 483 | func HashTableReplace(HashTableVar *HashTable, KeyVar uintptr, ValueVar uintptr) bool { | |
| 536 | - | core.LazyRegister(&xHashTableReplace, "GLIB", "g_hash_table_replace", false) | |
| 537 | - | ||
| 538 | 484 | cret := xHashTableReplace(HashTableVar, KeyVar, ValueVar) | |
| 539 | 485 | return cret | |
| 540 | 486 | } | |
| @@ -543,8 +489,6 @@ var xHashTableSize func(*HashTable) uint | |||
| 543 | 489 | ||
| 544 | 490 | // Returns the number of elements contained in the #GHashTable. | |
| 545 | 491 | func HashTableSize(HashTableVar *HashTable) uint { | |
| 546 | - | core.LazyRegister(&xHashTableSize, "GLIB", "g_hash_table_size", false) | |
| 547 | - | ||
| 548 | 492 | cret := xHashTableSize(HashTableVar) | |
| 549 | 493 | return cret | |
| 550 | 494 | } | |
| @@ -554,8 +498,6 @@ var xHashTableSteal func(*HashTable, uintptr) bool | |||
| 554 | 498 | // Removes a key and its associated value from a #GHashTable without | |
| 555 | 499 | // calling the key and value destroy functions. | |
| 556 | 500 | func HashTableSteal(HashTableVar *HashTable, KeyVar uintptr) bool { | |
| 557 | - | core.LazyRegister(&xHashTableSteal, "GLIB", "g_hash_table_steal", false) | |
| 558 | - | ||
| 559 | 501 | cret := xHashTableSteal(HashTableVar, KeyVar) | |
| 560 | 502 | return cret | |
| 561 | 503 | } | |
| @@ -565,8 +507,6 @@ var xHashTableStealAll func(*HashTable) | |||
| 565 | 507 | // Removes all keys and their associated values from a #GHashTable | |
| 566 | 508 | // without calling the key and value destroy functions. | |
| 567 | 509 | func HashTableStealAll(HashTableVar *HashTable) { | |
| 568 | - | core.LazyRegister(&xHashTableStealAll, "GLIB", "g_hash_table_steal_all", false) | |
| 569 | - | ||
| 570 | 510 | xHashTableStealAll(HashTableVar) | |
| 571 | 511 | } | |
| 572 | 512 | ||
| @@ -577,8 +517,6 @@ var xHashTableStealAllKeys func(*HashTable) uintptr | |||
| 577 | 517 | // as a #GPtrArray with the free func set to the @hash_table key | |
| 578 | 518 | // destroy function. | |
| 579 | 519 | func HashTableStealAllKeys(HashTableVar *HashTable) uintptr { | |
| 580 | - | core.LazyRegister(&xHashTableStealAllKeys, "GLIB", "g_hash_table_steal_all_keys", false) | |
| 581 | - | ||
| 582 | 520 | cret := xHashTableStealAllKeys(HashTableVar) | |
| 583 | 521 | return cret | |
| 584 | 522 | } | |
| @@ -590,8 +528,6 @@ var xHashTableStealAllValues func(*HashTable) uintptr | |||
| 590 | 528 | // as a #GPtrArray with the free func set to the @hash_table value | |
| 591 | 529 | // destroy function. | |
| 592 | 530 | func HashTableStealAllValues(HashTableVar *HashTable) uintptr { | |
| 593 | - | core.LazyRegister(&xHashTableStealAllValues, "GLIB", "g_hash_table_steal_all_values", false) | |
| 594 | - | ||
| 595 | 531 | cret := xHashTableStealAllValues(HashTableVar) | |
| 596 | 532 | return cret | |
| 597 | 533 | } | |
| @@ -616,8 +552,6 @@ var xHashTableStealExtended func(*HashTable, uintptr, *uintptr, *uintptr) bool | |||
| 616 | 552 | // stealing both the key and the value from such a dictionary, the value was | |
| 617 | 553 | // %NULL. Since 2.82, the returned value and key will be the same. | |
| 618 | 554 | func HashTableStealExtended(HashTableVar *HashTable, LookupKeyVar uintptr, StolenKeyVar *uintptr, StolenValueVar *uintptr) bool { | |
| 619 | - | core.LazyRegister(&xHashTableStealExtended, "GLIB", "g_hash_table_steal_extended", false) | |
| 620 | - | ||
| 621 | 555 | cret := xHashTableStealExtended(HashTableVar, LookupKeyVar, StolenKeyVar, StolenValueVar) | |
| 622 | 556 | return cret | |
| 623 | 557 | } | |
| @@ -629,8 +563,6 @@ var xHashTableUnref func(*HashTable) | |||
| 629 | 563 | // destroyed, and all memory allocated by the hash table is released. | |
| 630 | 564 | // This function is MT-safe and may be called from any thread. | |
| 631 | 565 | func HashTableUnref(HashTableVar *HashTable) { | |
| 632 | - | core.LazyRegister(&xHashTableUnref, "GLIB", "g_hash_table_unref", false) | |
| 633 | - | ||
| 634 | 566 | xHashTableUnref(HashTableVar) | |
| 635 | 567 | } | |
| 636 | 568 | ||
| @@ -642,8 +574,6 @@ var xInt64Equal func(uintptr, uintptr) bool | |||
| 642 | 574 | // parameter, when using non-%NULL pointers to 64-bit integers as keys in a | |
| 643 | 575 | // #GHashTable. | |
| 644 | 576 | func Int64Equal(V1Var uintptr, V2Var uintptr) bool { | |
| 645 | - | core.LazyRegister(&xInt64Equal, "GLIB", "g_int64_equal", false) | |
| 646 | - | ||
| 647 | 577 | cret := xInt64Equal(V1Var, V2Var) | |
| 648 | 578 | return cret | |
| 649 | 579 | } | |
| @@ -656,8 +586,6 @@ var xInt64Hash func(uintptr) uint | |||
| 656 | 586 | // when using non-%NULL pointers to 64-bit integer values as keys in a | |
| 657 | 587 | // #GHashTable. | |
| 658 | 588 | func Int64Hash(VVar uintptr) uint { | |
| 659 | - | core.LazyRegister(&xInt64Hash, "GLIB", "g_int64_hash", false) | |
| 660 | - | ||
| 661 | 589 | cret := xInt64Hash(VVar) | |
| 662 | 590 | return cret | |
| 663 | 591 | } | |
| @@ -674,8 +602,6 @@ var xIntEqual func(uintptr, uintptr) bool | |||
| 674 | 602 | // directly: if your hash table's keys are of the form | |
| 675 | 603 | // `GINT_TO_POINTER (n)`, use g_direct_equal() instead. | |
| 676 | 604 | func IntEqual(V1Var uintptr, V2Var uintptr) bool { | |
| 677 | - | core.LazyRegister(&xIntEqual, "GLIB", "g_int_equal", false) | |
| 678 | - | ||
| 679 | 605 | cret := xIntEqual(V1Var, V2Var) | |
| 680 | 606 | return cret | |
| 681 | 607 | } | |
| @@ -690,8 +616,6 @@ var xIntHash func(uintptr) uint | |||
| 690 | 616 | // directly: if your hash table's keys are of the form | |
| 691 | 617 | // `GINT_TO_POINTER (n)`, use g_direct_hash() instead. | |
| 692 | 618 | func IntHash(VVar uintptr) uint { | |
| 693 | - | core.LazyRegister(&xIntHash, "GLIB", "g_int_hash", false) | |
| 694 | - | ||
| 695 | 619 | cret := xIntHash(VVar) | |
| 696 | 620 | return cret | |
| 697 | 621 | } | |
| @@ -707,8 +631,6 @@ var xStrEqual func(uintptr, uintptr) bool | |||
| 707 | 631 | // for general purpose comparisons of non-%NULL strings. For a %NULL-safe string | |
| 708 | 632 | // comparison function, see g_strcmp0(). | |
| 709 | 633 | func StrEqual(V1Var uintptr, V2Var uintptr) bool { | |
| 710 | - | core.LazyRegister(&xStrEqual, "GLIB", "g_str_equal", false) | |
| 711 | - | ||
| 712 | 634 | cret := xStrEqual(V1Var, V2Var) | |
| 713 | 635 | return cret | |
| 714 | 636 | } | |
| @@ -730,8 +652,6 @@ var xStrHash func(uintptr) uint | |||
| 730 | 652 | // For example, it produces some hash collisions with strings as short | |
| 731 | 653 | // as 2. | |
| 732 | 654 | func StrHash(VVar uintptr) uint { | |
| 733 | - | core.LazyRegister(&xStrHash, "GLIB", "g_str_hash", false) | |
| 734 | - | ||
| 735 | 655 | cret := xStrHash(VVar) | |
| 736 | 656 | return cret | |
| 737 | 657 | } | |
| @@ -739,4 +659,56 @@ func StrHash(VVar uintptr) uint { | |||
| 739 | 659 | func init() { | |
| 740 | 660 | core.SetPackageName("GLIB", "glib-2.0") | |
| 741 | 661 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | |
| 662 | + | var libs []uintptr | |
| 663 | + | for _, libPath := range core.GetPaths("GLIB") { | |
| 664 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 665 | + | if err != nil { | |
| 666 | + | panic(err) | |
| 667 | + | } | |
| 668 | + | libs = append(libs, lib) | |
| 669 | + | } | |
| 670 | + | ||
| 671 | + | core.PuregoSafeRegister(&xDirectEqual, libs, "g_direct_equal") | |
| 672 | + | core.PuregoSafeRegister(&xDirectHash, libs, "g_direct_hash") | |
| 673 | + | core.PuregoSafeRegister(&xDoubleEqual, libs, "g_double_equal") | |
| 674 | + | core.PuregoSafeRegister(&xDoubleHash, libs, "g_double_hash") | |
| 675 | + | core.PuregoSafeRegister(&xHashTableAdd, libs, "g_hash_table_add") | |
| 676 | + | core.PuregoSafeRegister(&xHashTableContains, libs, "g_hash_table_contains") | |
| 677 | + | core.PuregoSafeRegister(&xHashTableDestroy, libs, "g_hash_table_destroy") | |
| 678 | + | core.PuregoSafeRegister(&xHashTableFind, libs, "g_hash_table_find") | |
| 679 | + | core.PuregoSafeRegister(&xHashTableForeach, libs, "g_hash_table_foreach") | |
| 680 | + | core.PuregoSafeRegister(&xHashTableForeachRemove, libs, "g_hash_table_foreach_remove") | |
| 681 | + | core.PuregoSafeRegister(&xHashTableForeachSteal, libs, "g_hash_table_foreach_steal") | |
| 682 | + | core.PuregoSafeRegister(&xHashTableGetKeysAsPtrArray, libs, "g_hash_table_get_keys_as_ptr_array") | |
| 683 | + | core.PuregoSafeRegister(&xHashTableGetValuesAsPtrArray, libs, "g_hash_table_get_values_as_ptr_array") | |
| 684 | + | core.PuregoSafeRegister(&xHashTableInsert, libs, "g_hash_table_insert") | |
| 685 | + | core.PuregoSafeRegister(&xHashTableLookup, libs, "g_hash_table_lookup") | |
| 686 | + | core.PuregoSafeRegister(&xHashTableLookupExtended, libs, "g_hash_table_lookup_extended") | |
| 687 | + | core.PuregoSafeRegister(&xHashTableNewSimilar, libs, "g_hash_table_new_similar") | |
| 688 | + | core.PuregoSafeRegister(&xHashTableRef, libs, "g_hash_table_ref") | |
| 689 | + | core.PuregoSafeRegister(&xHashTableRemove, libs, "g_hash_table_remove") | |
| 690 | + | core.PuregoSafeRegister(&xHashTableRemoveAll, libs, "g_hash_table_remove_all") | |
| 691 | + | core.PuregoSafeRegister(&xHashTableReplace, libs, "g_hash_table_replace") | |
| 692 | + | core.PuregoSafeRegister(&xHashTableSize, libs, "g_hash_table_size") | |
| 693 | + | core.PuregoSafeRegister(&xHashTableSteal, libs, "g_hash_table_steal") | |
| 694 | + | core.PuregoSafeRegister(&xHashTableStealAll, libs, "g_hash_table_steal_all") | |
| 695 | + | core.PuregoSafeRegister(&xHashTableStealAllKeys, libs, "g_hash_table_steal_all_keys") | |
| 696 | + | core.PuregoSafeRegister(&xHashTableStealAllValues, libs, "g_hash_table_steal_all_values") | |
| 697 | + | core.PuregoSafeRegister(&xHashTableStealExtended, libs, "g_hash_table_steal_extended") | |
| 698 | + | core.PuregoSafeRegister(&xHashTableUnref, libs, "g_hash_table_unref") | |
| 699 | + | core.PuregoSafeRegister(&xInt64Equal, libs, "g_int64_equal") | |
| 700 | + | core.PuregoSafeRegister(&xInt64Hash, libs, "g_int64_hash") | |
| 701 | + | core.PuregoSafeRegister(&xIntEqual, libs, "g_int_equal") | |
| 702 | + | core.PuregoSafeRegister(&xIntHash, libs, "g_int_hash") | |
| 703 | + | core.PuregoSafeRegister(&xStrEqual, libs, "g_str_equal") | |
| 704 | + | core.PuregoSafeRegister(&xStrHash, libs, "g_str_hash") | |
| 705 | + | ||
| 706 | + | core.PuregoSafeRegister(&xHashTableGLibType, libs, "g_hash_table_get_type") | |
| 707 | + | ||
| 708 | + | core.PuregoSafeRegister(&xHashTableIterGetHashTable, libs, "g_hash_table_iter_get_hash_table") | |
| 709 | + | core.PuregoSafeRegister(&xHashTableIterInit, libs, "g_hash_table_iter_init") | |
| 710 | + | core.PuregoSafeRegister(&xHashTableIterNext, libs, "g_hash_table_iter_next") | |
| 711 | + | core.PuregoSafeRegister(&xHashTableIterRemove, libs, "g_hash_table_iter_remove") | |
| 712 | + | core.PuregoSafeRegister(&xHashTableIterReplace, libs, "g_hash_table_iter_replace") | |
| 713 | + | core.PuregoSafeRegister(&xHashTableIterSteal, libs, "g_hash_table_iter_steal") | |
| 742 | 714 | } | |
| @@ -5,6 +5,7 @@ import ( | |||||
| 5 | "structs" | 5 | "structs" | ||
| 6 | "unsafe" | 6 | "unsafe" | ||
| 7 | 7 | ||||
| 8 | + | "github.com/bnema/purego" | |||
| 8 | "github.com/bnema/puregotk/pkg/core" | 9 | "github.com/bnema/puregotk/pkg/core" | ||
| 9 | "github.com/bnema/puregotk/v4/gobject/types" | 10 | "github.com/bnema/puregotk/v4/gobject/types" | ||
| 10 | ) | 11 | ) | ||
| @@ -31,7 +32,6 @@ type HashTable struct { | |||||
| 31 | var xHashTableGLibType func() types.GType | 32 | var xHashTableGLibType func() types.GType | ||
| 32 | 33 | ||||
| 33 | func HashTableGLibType() types.GType { | 34 | func HashTableGLibType() types.GType { | ||
| 34 | - | core.LazyRegister(&xHashTableGLibType, "GLIB", "g_hash_table_get_type", false) | |||
| 35 | return xHashTableGLibType() | 35 | return xHashTableGLibType() | ||
| 36 | } | 36 | } | ||
| 37 | 37 | ||||
| @@ -86,8 +86,6 @@ var xHashTableIterGetHashTable func(uintptr) uintptr | |||||
| 86 | 86 | ||||
| 87 | // Returns the #GHashTable associated with @iter. | 87 | // Returns the #GHashTable associated with @iter. | ||
| 88 | func (x *HashTableIter) GetHashTable() *HashTable { | 88 | func (x *HashTableIter) GetHashTable() *HashTable { | ||
| 89 | - | core.LazyRegister(&xHashTableIterGetHashTable, "GLIB", "g_hash_table_iter_get_hash_table", false) | |||
| 90 | - | ||||
| 91 | cret := xHashTableIterGetHashTable(x.GoPointer()) | 89 | cret := xHashTableIterGetHashTable(x.GoPointer()) | ||
| 92 | if cret == 0 { | 90 | if cret == 0 { | ||
| 93 | return nil | 91 | return nil | ||
| @@ -117,8 +115,6 @@ var xHashTableIterInit func(uintptr, *HashTable) | |||||
| 117 | // | 115 | // | ||
| 118 | // ]| | 116 | // ]| | ||
| 119 | func (x *HashTableIter) Init(HashTableVar *HashTable) { | 117 | func (x *HashTableIter) Init(HashTableVar *HashTable) { | ||
| 120 | - | core.LazyRegister(&xHashTableIterInit, "GLIB", "g_hash_table_iter_init", false) | |||
| 121 | - | ||||
| 122 | xHashTableIterInit(x.GoPointer(), HashTableVar) | 118 | xHashTableIterInit(x.GoPointer(), HashTableVar) | ||
| 123 | } | 119 | } | ||
| 124 | 120 | ||||
| @@ -128,8 +124,6 @@ var xHashTableIterNext func(uintptr, *uintptr, *uintptr) bool | |||||
| 128 | // pointed to as a result of this advancement. If %FALSE is returned, | 124 | // pointed to as a result of this advancement. If %FALSE is returned, | ||
| 129 | // @key and @value are not set, and the iterator becomes invalid. | 125 | // @key and @value are not set, and the iterator becomes invalid. | ||
| 130 | func (x *HashTableIter) Next(KeyVar *uintptr, ValueVar *uintptr) bool { | 126 | func (x *HashTableIter) Next(KeyVar *uintptr, ValueVar *uintptr) bool { | ||
| 131 | - | core.LazyRegister(&xHashTableIterNext, "GLIB", "g_hash_table_iter_next", false) | |||
| 132 | - | ||||
| 133 | cret := xHashTableIterNext(x.GoPointer(), KeyVar, ValueVar) | 127 | cret := xHashTableIterNext(x.GoPointer(), KeyVar, ValueVar) | ||
| 134 | return cret | 128 | return cret | ||
| 135 | } | 129 | } | ||
| @@ -157,8 +151,6 @@ var xHashTableIterRemove func(uintptr) | |||||
| 157 | // | 151 | // | ||
| 158 | // ]| | 152 | // ]| | ||
| 159 | func (x *HashTableIter) Remove() { | 153 | func (x *HashTableIter) Remove() { | ||
| 160 | - | core.LazyRegister(&xHashTableIterRemove, "GLIB", "g_hash_table_iter_remove", false) | |||
| 161 | - | ||||
| 162 | xHashTableIterRemove(x.GoPointer()) | 154 | xHashTableIterRemove(x.GoPointer()) | ||
| 163 | } | 155 | } | ||
| 164 | 156 | ||||
| @@ -171,8 +163,6 @@ var xHashTableIterReplace func(uintptr, uintptr) | |||||
| 171 | // If you supplied a @value_destroy_func when creating the | 163 | // If you supplied a @value_destroy_func when creating the | ||
| 172 | // #GHashTable, the old value is freed using that function. | 164 | // #GHashTable, the old value is freed using that function. | ||
| 173 | func (x *HashTableIter) Replace(ValueVar uintptr) { | 165 | func (x *HashTableIter) Replace(ValueVar uintptr) { | ||
| 174 | - | core.LazyRegister(&xHashTableIterReplace, "GLIB", "g_hash_table_iter_replace", false) | |||
| 175 | - | ||||
| 176 | xHashTableIterReplace(x.GoPointer(), ValueVar) | 166 | xHashTableIterReplace(x.GoPointer(), ValueVar) | ||
| 177 | } | 167 | } | ||
| 178 | 168 | ||||
| @@ -184,8 +174,6 @@ var xHashTableIterSteal func(uintptr) | |||||
| 184 | // after g_hash_table_iter_next() returned %TRUE, and cannot | 174 | // after g_hash_table_iter_next() returned %TRUE, and cannot | ||
| 185 | // be called more than once for the same key/value pair. | 175 | // be called more than once for the same key/value pair. | ||
| 186 | func (x *HashTableIter) Steal() { | 176 | func (x *HashTableIter) Steal() { | ||
| 187 | - | core.LazyRegister(&xHashTableIterSteal, "GLIB", "g_hash_table_iter_steal", false) | |||
| 188 | - | ||||
| 189 | xHashTableIterSteal(x.GoPointer()) | 177 | xHashTableIterSteal(x.GoPointer()) | ||
| 190 | } | 178 | } | ||
| 191 | 179 | ||||
| @@ -199,8 +187,6 @@ var xDirectEqual func(uintptr, uintptr) bool | |||||
| 199 | // This equality function is also appropriate for keys that are integers | 187 | // This equality function is also appropriate for keys that are integers | ||
| 200 | // stored in pointers, such as `GINT_TO_POINTER (n)`. | 188 | // stored in pointers, such as `GINT_TO_POINTER (n)`. | ||
| 201 | func DirectEqual(V1Var uintptr, V2Var uintptr) bool { | 189 | func DirectEqual(V1Var uintptr, V2Var uintptr) bool { | ||
| 202 | - | core.LazyRegister(&xDirectEqual, "GLIB", "g_direct_equal", false) | |||
| 203 | - | ||||
| 204 | cret := xDirectEqual(V1Var, V2Var) | 190 | cret := xDirectEqual(V1Var, V2Var) | ||
| 205 | return cret | 191 | return cret | ||
| 206 | } | 192 | } | ||
| @@ -215,8 +201,6 @@ var xDirectHash func(uintptr) uint | |||||
| 215 | // This hash function is also appropriate for keys that are integers | 201 | // This hash function is also appropriate for keys that are integers | ||
| 216 | // stored in pointers, such as `GINT_TO_POINTER (n)`. | 202 | // stored in pointers, such as `GINT_TO_POINTER (n)`. | ||
| 217 | func DirectHash(VVar uintptr) uint { | 203 | func DirectHash(VVar uintptr) uint { | ||
| 218 | - | core.LazyRegister(&xDirectHash, "GLIB", "g_direct_hash", false) | |||
| 219 | - | ||||
| 220 | cret := xDirectHash(VVar) | 204 | cret := xDirectHash(VVar) | ||
| 221 | return cret | 205 | return cret | ||
| 222 | } | 206 | } | ||
| @@ -229,8 +213,6 @@ var xDoubleEqual func(uintptr, uintptr) bool | |||||
| 229 | // parameter, when using non-%NULL pointers to doubles as keys in a | 213 | // parameter, when using non-%NULL pointers to doubles as keys in a | ||
| 230 | // #GHashTable. | 214 | // #GHashTable. | ||
| 231 | func DoubleEqual(V1Var uintptr, V2Var uintptr) bool { | 215 | func DoubleEqual(V1Var uintptr, V2Var uintptr) bool { | ||
| 232 | - | core.LazyRegister(&xDoubleEqual, "GLIB", "g_double_equal", false) | |||
| 233 | - | ||||
| 234 | cret := xDoubleEqual(V1Var, V2Var) | 216 | cret := xDoubleEqual(V1Var, V2Var) | ||
| 235 | return cret | 217 | return cret | ||
| 236 | } | 218 | } | ||
| @@ -242,8 +224,6 @@ var xDoubleHash func(uintptr) uint | |||||
| 242 | // It can be passed to g_hash_table_new() as the @hash_func parameter, | 224 | // It can be passed to g_hash_table_new() as the @hash_func parameter, | ||
| 243 | // when using non-%NULL pointers to doubles as keys in a #GHashTable. | 225 | // when using non-%NULL pointers to doubles as keys in a #GHashTable. | ||
| 244 | func DoubleHash(VVar uintptr) uint { | 226 | func DoubleHash(VVar uintptr) uint { | ||
| 245 | - | core.LazyRegister(&xDoubleHash, "GLIB", "g_double_hash", false) | |||
| 246 | - | ||||
| 247 | cret := xDoubleHash(VVar) | 227 | cret := xDoubleHash(VVar) | ||
| 248 | return cret | 228 | return cret | ||
| 249 | } | 229 | } | ||
| @@ -266,8 +246,6 @@ var xHashTableAdd func(*HashTable, uintptr) bool | |||||
| 266 | // indicate whether the newly added value was already in the hash table | 246 | // indicate whether the newly added value was already in the hash table | ||
| 267 | // or not. | 247 | // or not. | ||
| 268 | func HashTableAdd(HashTableVar *HashTable, KeyVar uintptr) bool { | 248 | func HashTableAdd(HashTableVar *HashTable, KeyVar uintptr) bool { | ||
| 269 | - | core.LazyRegister(&xHashTableAdd, "GLIB", "g_hash_table_add", false) | |||
| 270 | - | ||||
| 271 | cret := xHashTableAdd(HashTableVar, KeyVar) | 249 | cret := xHashTableAdd(HashTableVar, KeyVar) | ||
| 272 | return cret | 250 | return cret | ||
| 273 | } | 251 | } | ||
| @@ -276,8 +254,6 @@ var xHashTableContains func(*HashTable, uintptr) bool | |||||
| 276 | 254 | ||||
| 277 | // Checks if @key is in @hash_table. | 255 | // Checks if @key is in @hash_table. | ||
| 278 | func HashTableContains(HashTableVar *HashTable, KeyVar uintptr) bool { | 256 | func HashTableContains(HashTableVar *HashTable, KeyVar uintptr) bool { | ||
| 279 | - | core.LazyRegister(&xHashTableContains, "GLIB", "g_hash_table_contains", false) | |||
| 280 | - | ||||
| 281 | cret := xHashTableContains(HashTableVar, KeyVar) | 257 | cret := xHashTableContains(HashTableVar, KeyVar) | ||
| 282 | return cret | 258 | return cret | ||
| 283 | } | 259 | } | ||
| @@ -291,8 +267,6 @@ var xHashTableDestroy func(*HashTable) | |||||
| 291 | // functions you supplied will be called on all keys and values during the | 267 | // functions you supplied will be called on all keys and values during the | ||
| 292 | // destruction phase. | 268 | // destruction phase. | ||
| 293 | func HashTableDestroy(HashTableVar *HashTable) { | 269 | func HashTableDestroy(HashTableVar *HashTable) { | ||
| 294 | - | core.LazyRegister(&xHashTableDestroy, "GLIB", "g_hash_table_destroy", false) | |||
| 295 | - | ||||
| 296 | xHashTableDestroy(HashTableVar) | 270 | xHashTableDestroy(HashTableVar) | ||
| 297 | } | 271 | } | ||
| 298 | 272 | ||||
| @@ -312,8 +286,6 @@ var xHashTableFind func(*HashTable, uintptr, uintptr) uintptr | |||||
| 312 | // (keep in mind that an O(n) find/foreach operation issued for all n | 286 | // (keep in mind that an O(n) find/foreach operation issued for all n | ||
| 313 | // values in a hash table ends up needing O(n*n) operations). | 287 | // values in a hash table ends up needing O(n*n) operations). | ||
| 314 | func HashTableFind(HashTableVar *HashTable, PredicateVar *HRFunc, UserDataVar uintptr) uintptr { | 288 | func HashTableFind(HashTableVar *HashTable, PredicateVar *HRFunc, UserDataVar uintptr) uintptr { | ||
| 315 | - | core.LazyRegister(&xHashTableFind, "GLIB", "g_hash_table_find", false) | |||
| 316 | - | ||||
| 317 | cret := xHashTableFind(HashTableVar, NewCallback(PredicateVar), UserDataVar) | 289 | cret := xHashTableFind(HashTableVar, NewCallback(PredicateVar), UserDataVar) | ||
| 318 | return cret | 290 | return cret | ||
| 319 | } | 291 | } | ||
| @@ -333,8 +305,6 @@ var xHashTableForeach func(*HashTable, uintptr, uintptr) | |||||
| 333 | // See g_hash_table_find() for performance caveats for linear | 305 | // See g_hash_table_find() for performance caveats for linear | ||
| 334 | // order searches in contrast to g_hash_table_lookup(). | 306 | // order searches in contrast to g_hash_table_lookup(). | ||
| 335 | func HashTableForeach(HashTableVar *HashTable, FuncVar *HFunc, UserDataVar uintptr) { | 307 | func HashTableForeach(HashTableVar *HashTable, FuncVar *HFunc, UserDataVar uintptr) { | ||
| 336 | - | core.LazyRegister(&xHashTableForeach, "GLIB", "g_hash_table_foreach", false) | |||
| 337 | - | ||||
| 338 | xHashTableForeach(HashTableVar, NewCallback(FuncVar), UserDataVar) | 308 | xHashTableForeach(HashTableVar, NewCallback(FuncVar), UserDataVar) | ||
| 339 | } | 309 | } | ||
| 340 | 310 | ||||
| @@ -349,8 +319,6 @@ var xHashTableForeachRemove func(*HashTable, uintptr, uintptr) uint | |||||
| 349 | // See #GHashTableIter for an alternative way to loop over the | 319 | // See #GHashTableIter for an alternative way to loop over the | ||
| 350 | // key/value pairs in the hash table. | 320 | // key/value pairs in the hash table. | ||
| 351 | func HashTableForeachRemove(HashTableVar *HashTable, FuncVar *HRFunc, UserDataVar uintptr) uint { | 321 | func HashTableForeachRemove(HashTableVar *HashTable, FuncVar *HRFunc, UserDataVar uintptr) uint { | ||
| 352 | - | core.LazyRegister(&xHashTableForeachRemove, "GLIB", "g_hash_table_foreach_remove", false) | |||
| 353 | - | ||||
| 354 | cret := xHashTableForeachRemove(HashTableVar, NewCallback(FuncVar), UserDataVar) | 322 | cret := xHashTableForeachRemove(HashTableVar, NewCallback(FuncVar), UserDataVar) | ||
| 355 | return cret | 323 | return cret | ||
| 356 | } | 324 | } | ||
| @@ -365,8 +333,6 @@ var xHashTableForeachSteal func(*HashTable, uintptr, uintptr) uint | |||||
| 365 | // See #GHashTableIter for an alternative way to loop over the | 333 | // See #GHashTableIter for an alternative way to loop over the | ||
| 366 | // key/value pairs in the hash table. | 334 | // key/value pairs in the hash table. | ||
| 367 | func HashTableForeachSteal(HashTableVar *HashTable, FuncVar *HRFunc, UserDataVar uintptr) uint { | 335 | func HashTableForeachSteal(HashTableVar *HashTable, FuncVar *HRFunc, UserDataVar uintptr) uint { | ||
| 368 | - | core.LazyRegister(&xHashTableForeachSteal, "GLIB", "g_hash_table_foreach_steal", false) | |||
| 369 | - | ||||
| 370 | cret := xHashTableForeachSteal(HashTableVar, NewCallback(FuncVar), UserDataVar) | 336 | cret := xHashTableForeachSteal(HashTableVar, NewCallback(FuncVar), UserDataVar) | ||
| 371 | return cret | 337 | return cret | ||
| 372 | } | 338 | } | ||
| @@ -382,8 +348,6 @@ var xHashTableGetKeysAsPtrArray func(*HashTable) uintptr | |||||
| 382 | // | 348 | // | ||
| 383 | // You should always unref the returned array with g_ptr_array_unref(). | 349 | // You should always unref the returned array with g_ptr_array_unref(). | ||
| 384 | func HashTableGetKeysAsPtrArray(HashTableVar *HashTable) uintptr { | 350 | func HashTableGetKeysAsPtrArray(HashTableVar *HashTable) uintptr { | ||
| 385 | - | core.LazyRegister(&xHashTableGetKeysAsPtrArray, "GLIB", "g_hash_table_get_keys_as_ptr_array", false) | |||
| 386 | - | ||||
| 387 | cret := xHashTableGetKeysAsPtrArray(HashTableVar) | 351 | cret := xHashTableGetKeysAsPtrArray(HashTableVar) | ||
| 388 | return cret | 352 | return cret | ||
| 389 | } | 353 | } | ||
| @@ -399,8 +363,6 @@ var xHashTableGetValuesAsPtrArray func(*HashTable) uintptr | |||||
| 399 | // | 363 | // | ||
| 400 | // You should always unref the returned array with g_ptr_array_unref(). | 364 | // You should always unref the returned array with g_ptr_array_unref(). | ||
| 401 | func HashTableGetValuesAsPtrArray(HashTableVar *HashTable) uintptr { | 365 | func HashTableGetValuesAsPtrArray(HashTableVar *HashTable) uintptr { | ||
| 402 | - | core.LazyRegister(&xHashTableGetValuesAsPtrArray, "GLIB", "g_hash_table_get_values_as_ptr_array", false) | |||
| 403 | - | ||||
| 404 | cret := xHashTableGetValuesAsPtrArray(HashTableVar) | 366 | cret := xHashTableGetValuesAsPtrArray(HashTableVar) | ||
| 405 | return cret | 367 | return cret | ||
| 406 | } | 368 | } | ||
| @@ -420,8 +382,6 @@ var xHashTableInsert func(*HashTable, uintptr, uintptr) bool | |||||
| 420 | // indicate whether the newly added value was already in the hash table | 382 | // indicate whether the newly added value was already in the hash table | ||
| 421 | // or not. | 383 | // or not. | ||
| 422 | func HashTableInsert(HashTableVar *HashTable, KeyVar uintptr, ValueVar uintptr) bool { | 384 | func HashTableInsert(HashTableVar *HashTable, KeyVar uintptr, ValueVar uintptr) bool { | ||
| 423 | - | core.LazyRegister(&xHashTableInsert, "GLIB", "g_hash_table_insert", false) | |||
| 424 | - | ||||
| 425 | cret := xHashTableInsert(HashTableVar, KeyVar, ValueVar) | 385 | cret := xHashTableInsert(HashTableVar, KeyVar, ValueVar) | ||
| 426 | return cret | 386 | return cret | ||
| 427 | } | 387 | } | ||
| @@ -433,8 +393,6 @@ var xHashTableLookup func(*HashTable, uintptr) uintptr | |||||
| 433 | // and has the value %NULL. If you need this distinction, use | 393 | // and has the value %NULL. If you need this distinction, use | ||
| 434 | // g_hash_table_lookup_extended(). | 394 | // g_hash_table_lookup_extended(). | ||
| 435 | func HashTableLookup(HashTableVar *HashTable, KeyVar uintptr) uintptr { | 395 | func HashTableLookup(HashTableVar *HashTable, KeyVar uintptr) uintptr { | ||
| 436 | - | core.LazyRegister(&xHashTableLookup, "GLIB", "g_hash_table_lookup", false) | |||
| 437 | - | ||||
| 438 | cret := xHashTableLookup(HashTableVar, KeyVar) | 396 | cret := xHashTableLookup(HashTableVar, KeyVar) | ||
| 439 | return cret | 397 | return cret | ||
| 440 | } | 398 | } | ||
| @@ -450,8 +408,6 @@ var xHashTableLookupExtended func(*HashTable, uintptr, *uintptr, *uintptr) bool | |||||
| 450 | // whether the %NULL key exists, provided the hash and equal functions | 408 | // whether the %NULL key exists, provided the hash and equal functions | ||
| 451 | // of @hash_table are %NULL-safe. | 409 | // of @hash_table are %NULL-safe. | ||
| 452 | func HashTableLookupExtended(HashTableVar *HashTable, LookupKeyVar uintptr, OrigKeyVar *uintptr, ValueVar *uintptr) bool { | 410 | func HashTableLookupExtended(HashTableVar *HashTable, LookupKeyVar uintptr, OrigKeyVar *uintptr, ValueVar *uintptr) bool { | ||
| 453 | - | core.LazyRegister(&xHashTableLookupExtended, "GLIB", "g_hash_table_lookup_extended", false) | |||
| 454 | - | ||||
| 455 | cret := xHashTableLookupExtended(HashTableVar, LookupKeyVar, OrigKeyVar, ValueVar) | 411 | cret := xHashTableLookupExtended(HashTableVar, LookupKeyVar, OrigKeyVar, ValueVar) | ||
| 456 | return cret | 412 | return cret | ||
| 457 | } | 413 | } | ||
| @@ -467,8 +423,6 @@ var xHashTableNewSimilar func(*HashTable) uintptr | |||||
| 467 | // The returned hash table will be empty; it will not contain the keys | 423 | // The returned hash table will be empty; it will not contain the keys | ||
| 468 | // or values from @other_hash_table. | 424 | // or values from @other_hash_table. | ||
| 469 | func HashTableNewSimilar(OtherHashTableVar *HashTable) *HashTable { | 425 | func HashTableNewSimilar(OtherHashTableVar *HashTable) *HashTable { | ||
| 470 | - | core.LazyRegister(&xHashTableNewSimilar, "GLIB", "g_hash_table_new_similar", false) | |||
| 471 | - | ||||
| 472 | cret := xHashTableNewSimilar(OtherHashTableVar) | 426 | cret := xHashTableNewSimilar(OtherHashTableVar) | ||
| 473 | if cret == 0 { | 427 | if cret == 0 { | ||
| 474 | return nil | 428 | return nil | ||
| @@ -481,8 +435,6 @@ var xHashTableRef func(*HashTable) uintptr | |||||
| 481 | // Atomically increments the reference count of @hash_table by one. | 435 | // Atomically increments the reference count of @hash_table by one. | ||
| 482 | // This function is MT-safe and may be called from any thread. | 436 | // This function is MT-safe and may be called from any thread. | ||
| 483 | func HashTableRef(HashTableVar *HashTable) *HashTable { | 437 | func HashTableRef(HashTableVar *HashTable) *HashTable { | ||
| 484 | - | core.LazyRegister(&xHashTableRef, "GLIB", "g_hash_table_ref", false) | |||
| 485 | - | ||||
| 486 | cret := xHashTableRef(HashTableVar) | 438 | cret := xHashTableRef(HashTableVar) | ||
| 487 | if cret == 0 { | 439 | if cret == 0 { | ||
| 488 | return nil | 440 | return nil | ||
| @@ -499,8 +451,6 @@ var xHashTableRemove func(*HashTable, uintptr) bool | |||||
| 499 | // you have to make sure that any dynamically allocated values are freed | 451 | // you have to make sure that any dynamically allocated values are freed | ||
| 500 | // yourself. | 452 | // yourself. | ||
| 501 | func HashTableRemove(HashTableVar *HashTable, KeyVar uintptr) bool { | 453 | func HashTableRemove(HashTableVar *HashTable, KeyVar uintptr) bool { | ||
| 502 | - | core.LazyRegister(&xHashTableRemove, "GLIB", "g_hash_table_remove", false) | |||
| 503 | - | ||||
| 504 | cret := xHashTableRemove(HashTableVar, KeyVar) | 454 | cret := xHashTableRemove(HashTableVar, KeyVar) | ||
| 505 | return cret | 455 | return cret | ||
| 506 | } | 456 | } | ||
| @@ -514,8 +464,6 @@ var xHashTableRemoveAll func(*HashTable) | |||||
| 514 | // otherwise you have to make sure that any dynamically allocated | 464 | // otherwise you have to make sure that any dynamically allocated | ||
| 515 | // values are freed yourself. | 465 | // values are freed yourself. | ||
| 516 | func HashTableRemoveAll(HashTableVar *HashTable) { | 466 | func HashTableRemoveAll(HashTableVar *HashTable) { | ||
| 517 | - | core.LazyRegister(&xHashTableRemoveAll, "GLIB", "g_hash_table_remove_all", false) | |||
| 518 | - | ||||
| 519 | xHashTableRemoveAll(HashTableVar) | 467 | xHashTableRemoveAll(HashTableVar) | ||
| 520 | } | 468 | } | ||
| 521 | 469 | ||||
| @@ -533,8 +481,6 @@ var xHashTableReplace func(*HashTable, uintptr, uintptr) bool | |||||
| 533 | // indicate whether the newly added value was already in the hash table | 481 | // indicate whether the newly added value was already in the hash table | ||
| 534 | // or not. | 482 | // or not. | ||
| 535 | func HashTableReplace(HashTableVar *HashTable, KeyVar uintptr, ValueVar uintptr) bool { | 483 | func HashTableReplace(HashTableVar *HashTable, KeyVar uintptr, ValueVar uintptr) bool { | ||
| 536 | - | core.LazyRegister(&xHashTableReplace, "GLIB", "g_hash_table_replace", false) | |||
| 537 | - | ||||
| 538 | cret := xHashTableReplace(HashTableVar, KeyVar, ValueVar) | 484 | cret := xHashTableReplace(HashTableVar, KeyVar, ValueVar) | ||
| 539 | return cret | 485 | return cret | ||
| 540 | } | 486 | } | ||
| @@ -543,8 +489,6 @@ var xHashTableSize func(*HashTable) uint | |||||
| 543 | 489 | ||||
| 544 | // Returns the number of elements contained in the #GHashTable. | 490 | // Returns the number of elements contained in the #GHashTable. | ||
| 545 | func HashTableSize(HashTableVar *HashTable) uint { | 491 | func HashTableSize(HashTableVar *HashTable) uint { | ||
| 546 | - | core.LazyRegister(&xHashTableSize, "GLIB", "g_hash_table_size", false) | |||
| 547 | - | ||||
| 548 | cret := xHashTableSize(HashTableVar) | 492 | cret := xHashTableSize(HashTableVar) | ||
| 549 | return cret | 493 | return cret | ||
| 550 | } | 494 | } | ||
| @@ -554,8 +498,6 @@ var xHashTableSteal func(*HashTable, uintptr) bool | |||||
| 554 | // Removes a key and its associated value from a #GHashTable without | 498 | // Removes a key and its associated value from a #GHashTable without | ||
| 555 | // calling the key and value destroy functions. | 499 | // calling the key and value destroy functions. | ||
| 556 | func HashTableSteal(HashTableVar *HashTable, KeyVar uintptr) bool { | 500 | func HashTableSteal(HashTableVar *HashTable, KeyVar uintptr) bool { | ||
| 557 | - | core.LazyRegister(&xHashTableSteal, "GLIB", "g_hash_table_steal", false) | |||
| 558 | - | ||||
| 559 | cret := xHashTableSteal(HashTableVar, KeyVar) | 501 | cret := xHashTableSteal(HashTableVar, KeyVar) | ||
| 560 | return cret | 502 | return cret | ||
| 561 | } | 503 | } | ||
| @@ -565,8 +507,6 @@ var xHashTableStealAll func(*HashTable) | |||||
| 565 | // Removes all keys and their associated values from a #GHashTable | 507 | // Removes all keys and their associated values from a #GHashTable | ||
| 566 | // without calling the key and value destroy functions. | 508 | // without calling the key and value destroy functions. | ||
| 567 | func HashTableStealAll(HashTableVar *HashTable) { | 509 | func HashTableStealAll(HashTableVar *HashTable) { | ||
| 568 | - | core.LazyRegister(&xHashTableStealAll, "GLIB", "g_hash_table_steal_all", false) | |||
| 569 | - | ||||
| 570 | xHashTableStealAll(HashTableVar) | 510 | xHashTableStealAll(HashTableVar) | ||
| 571 | } | 511 | } | ||
| 572 | 512 | ||||
| @@ -577,8 +517,6 @@ var xHashTableStealAllKeys func(*HashTable) uintptr | |||||
| 577 | // as a #GPtrArray with the free func set to the @hash_table key | 517 | // as a #GPtrArray with the free func set to the @hash_table key | ||
| 578 | // destroy function. | 518 | // destroy function. | ||
| 579 | func HashTableStealAllKeys(HashTableVar *HashTable) uintptr { | 519 | func HashTableStealAllKeys(HashTableVar *HashTable) uintptr { | ||
| 580 | - | core.LazyRegister(&xHashTableStealAllKeys, "GLIB", "g_hash_table_steal_all_keys", false) | |||
| 581 | - | ||||
| 582 | cret := xHashTableStealAllKeys(HashTableVar) | 520 | cret := xHashTableStealAllKeys(HashTableVar) | ||
| 583 | return cret | 521 | return cret | ||
| 584 | } | 522 | } | ||
| @@ -590,8 +528,6 @@ var xHashTableStealAllValues func(*HashTable) uintptr | |||||
| 590 | // as a #GPtrArray with the free func set to the @hash_table value | 528 | // as a #GPtrArray with the free func set to the @hash_table value | ||
| 591 | // destroy function. | 529 | // destroy function. | ||
| 592 | func HashTableStealAllValues(HashTableVar *HashTable) uintptr { | 530 | func HashTableStealAllValues(HashTableVar *HashTable) uintptr { | ||
| 593 | - | core.LazyRegister(&xHashTableStealAllValues, "GLIB", "g_hash_table_steal_all_values", false) | |||
| 594 | - | ||||
| 595 | cret := xHashTableStealAllValues(HashTableVar) | 531 | cret := xHashTableStealAllValues(HashTableVar) | ||
| 596 | return cret | 532 | return cret | ||
| 597 | } | 533 | } | ||
| @@ -616,8 +552,6 @@ var xHashTableStealExtended func(*HashTable, uintptr, *uintptr, *uintptr) bool | |||||
| 616 | // stealing both the key and the value from such a dictionary, the value was | 552 | // stealing both the key and the value from such a dictionary, the value was | ||
| 617 | // %NULL. Since 2.82, the returned value and key will be the same. | 553 | // %NULL. Since 2.82, the returned value and key will be the same. | ||
| 618 | func HashTableStealExtended(HashTableVar *HashTable, LookupKeyVar uintptr, StolenKeyVar *uintptr, StolenValueVar *uintptr) bool { | 554 | func HashTableStealExtended(HashTableVar *HashTable, LookupKeyVar uintptr, StolenKeyVar *uintptr, StolenValueVar *uintptr) bool { | ||
| 619 | - | core.LazyRegister(&xHashTableStealExtended, "GLIB", "g_hash_table_steal_extended", false) | |||
| 620 | - | ||||
| 621 | cret := xHashTableStealExtended(HashTableVar, LookupKeyVar, StolenKeyVar, StolenValueVar) | 555 | cret := xHashTableStealExtended(HashTableVar, LookupKeyVar, StolenKeyVar, StolenValueVar) | ||
| 622 | return cret | 556 | return cret | ||
| 623 | } | 557 | } | ||
| @@ -629,8 +563,6 @@ var xHashTableUnref func(*HashTable) | |||||
| 629 | // destroyed, and all memory allocated by the hash table is released. | 563 | // destroyed, and all memory allocated by the hash table is released. | ||
| 630 | // This function is MT-safe and may be called from any thread. | 564 | // This function is MT-safe and may be called from any thread. | ||
| 631 | func HashTableUnref(HashTableVar *HashTable) { | 565 | func HashTableUnref(HashTableVar *HashTable) { | ||
| 632 | - | core.LazyRegister(&xHashTableUnref, "GLIB", "g_hash_table_unref", false) | |||
| 633 | - | ||||
| 634 | xHashTableUnref(HashTableVar) | 566 | xHashTableUnref(HashTableVar) | ||
| 635 | } | 567 | } | ||
| 636 | 568 | ||||
| @@ -642,8 +574,6 @@ var xInt64Equal func(uintptr, uintptr) bool | |||||
| 642 | // parameter, when using non-%NULL pointers to 64-bit integers as keys in a | 574 | // parameter, when using non-%NULL pointers to 64-bit integers as keys in a | ||
| 643 | // #GHashTable. | 575 | // #GHashTable. | ||
| 644 | func Int64Equal(V1Var uintptr, V2Var uintptr) bool { | 576 | func Int64Equal(V1Var uintptr, V2Var uintptr) bool { | ||
| 645 | - | core.LazyRegister(&xInt64Equal, "GLIB", "g_int64_equal", false) | |||
| 646 | - | ||||
| 647 | cret := xInt64Equal(V1Var, V2Var) | 577 | cret := xInt64Equal(V1Var, V2Var) | ||
| 648 | return cret | 578 | return cret | ||
| 649 | } | 579 | } | ||
| @@ -656,8 +586,6 @@ var xInt64Hash func(uintptr) uint | |||||
| 656 | // when using non-%NULL pointers to 64-bit integer values as keys in a | 586 | // when using non-%NULL pointers to 64-bit integer values as keys in a | ||
| 657 | // #GHashTable. | 587 | // #GHashTable. | ||
| 658 | func Int64Hash(VVar uintptr) uint { | 588 | func Int64Hash(VVar uintptr) uint { | ||
| 659 | - | core.LazyRegister(&xInt64Hash, "GLIB", "g_int64_hash", false) | |||
| 660 | - | ||||
| 661 | cret := xInt64Hash(VVar) | 589 | cret := xInt64Hash(VVar) | ||
| 662 | return cret | 590 | return cret | ||
| 663 | } | 591 | } | ||
| @@ -674,8 +602,6 @@ var xIntEqual func(uintptr, uintptr) bool | |||||
| 674 | // directly: if your hash table's keys are of the form | 602 | // directly: if your hash table's keys are of the form | ||
| 675 | // `GINT_TO_POINTER (n)`, use g_direct_equal() instead. | 603 | // `GINT_TO_POINTER (n)`, use g_direct_equal() instead. | ||
| 676 | func IntEqual(V1Var uintptr, V2Var uintptr) bool { | 604 | func IntEqual(V1Var uintptr, V2Var uintptr) bool { | ||
| 677 | - | core.LazyRegister(&xIntEqual, "GLIB", "g_int_equal", false) | |||
| 678 | - | ||||
| 679 | cret := xIntEqual(V1Var, V2Var) | 605 | cret := xIntEqual(V1Var, V2Var) | ||
| 680 | return cret | 606 | return cret | ||
| 681 | } | 607 | } | ||
| @@ -690,8 +616,6 @@ var xIntHash func(uintptr) uint | |||||
| 690 | // directly: if your hash table's keys are of the form | 616 | // directly: if your hash table's keys are of the form | ||
| 691 | // `GINT_TO_POINTER (n)`, use g_direct_hash() instead. | 617 | // `GINT_TO_POINTER (n)`, use g_direct_hash() instead. | ||
| 692 | func IntHash(VVar uintptr) uint { | 618 | func IntHash(VVar uintptr) uint { | ||
| 693 | - | core.LazyRegister(&xIntHash, "GLIB", "g_int_hash", false) | |||
| 694 | - | ||||
| 695 | cret := xIntHash(VVar) | 619 | cret := xIntHash(VVar) | ||
| 696 | return cret | 620 | return cret | ||
| 697 | } | 621 | } | ||
| @@ -707,8 +631,6 @@ var xStrEqual func(uintptr, uintptr) bool | |||||
| 707 | // for general purpose comparisons of non-%NULL strings. For a %NULL-safe string | 631 | // for general purpose comparisons of non-%NULL strings. For a %NULL-safe string | ||
| 708 | // comparison function, see g_strcmp0(). | 632 | // comparison function, see g_strcmp0(). | ||
| 709 | func StrEqual(V1Var uintptr, V2Var uintptr) bool { | 633 | func StrEqual(V1Var uintptr, V2Var uintptr) bool { | ||
| 710 | - | core.LazyRegister(&xStrEqual, "GLIB", "g_str_equal", false) | |||
| 711 | - | ||||
| 712 | cret := xStrEqual(V1Var, V2Var) | 634 | cret := xStrEqual(V1Var, V2Var) | ||
| 713 | return cret | 635 | return cret | ||
| 714 | } | 636 | } | ||
| @@ -730,8 +652,6 @@ var xStrHash func(uintptr) uint | |||||
| 730 | // For example, it produces some hash collisions with strings as short | 652 | // For example, it produces some hash collisions with strings as short | ||
| 731 | // as 2. | 653 | // as 2. | ||
| 732 | func StrHash(VVar uintptr) uint { | 654 | func StrHash(VVar uintptr) uint { | ||
| 733 | - | core.LazyRegister(&xStrHash, "GLIB", "g_str_hash", false) | |||
| 734 | - | ||||
| 735 | cret := xStrHash(VVar) | 655 | cret := xStrHash(VVar) | ||
| 736 | return cret | 656 | return cret | ||
| 737 | } | 657 | } | ||
| @@ -739,4 +659,56 @@ func StrHash(VVar uintptr) uint { | |||||
| 739 | func init() { | 659 | func init() { | ||
| 740 | core.SetPackageName("GLIB", "glib-2.0") | 660 | core.SetPackageName("GLIB", "glib-2.0") | ||
| 741 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | 661 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | ||
| 662 | + | var libs []uintptr | |||
| 663 | + | for _, libPath := range core.GetPaths("GLIB") { | |||
| 664 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 665 | + | if err != nil { | |||
| 666 | + | panic(err) | |||
| 667 | + | } | |||
| 668 | + | libs = append(libs, lib) | |||
| 669 | + | } | |||
| 670 | + | ||||
| 671 | + | core.PuregoSafeRegister(&xDirectEqual, libs, "g_direct_equal") | |||
| 672 | + | core.PuregoSafeRegister(&xDirectHash, libs, "g_direct_hash") | |||
| 673 | + | core.PuregoSafeRegister(&xDoubleEqual, libs, "g_double_equal") | |||
| 674 | + | core.PuregoSafeRegister(&xDoubleHash, libs, "g_double_hash") | |||
| 675 | + | core.PuregoSafeRegister(&xHashTableAdd, libs, "g_hash_table_add") | |||
| 676 | + | core.PuregoSafeRegister(&xHashTableContains, libs, "g_hash_table_contains") | |||
| 677 | + | core.PuregoSafeRegister(&xHashTableDestroy, libs, "g_hash_table_destroy") | |||
| 678 | + | core.PuregoSafeRegister(&xHashTableFind, libs, "g_hash_table_find") | |||
| 679 | + | core.PuregoSafeRegister(&xHashTableForeach, libs, "g_hash_table_foreach") | |||
| 680 | + | core.PuregoSafeRegister(&xHashTableForeachRemove, libs, "g_hash_table_foreach_remove") | |||
| 681 | + | core.PuregoSafeRegister(&xHashTableForeachSteal, libs, "g_hash_table_foreach_steal") | |||
| 682 | + | core.PuregoSafeRegister(&xHashTableGetKeysAsPtrArray, libs, "g_hash_table_get_keys_as_ptr_array") | |||
| 683 | + | core.PuregoSafeRegister(&xHashTableGetValuesAsPtrArray, libs, "g_hash_table_get_values_as_ptr_array") | |||
| 684 | + | core.PuregoSafeRegister(&xHashTableInsert, libs, "g_hash_table_insert") | |||
| 685 | + | core.PuregoSafeRegister(&xHashTableLookup, libs, "g_hash_table_lookup") | |||
| 686 | + | core.PuregoSafeRegister(&xHashTableLookupExtended, libs, "g_hash_table_lookup_extended") | |||
| 687 | + | core.PuregoSafeRegister(&xHashTableNewSimilar, libs, "g_hash_table_new_similar") | |||
| 688 | + | core.PuregoSafeRegister(&xHashTableRef, libs, "g_hash_table_ref") | |||
| 689 | + | core.PuregoSafeRegister(&xHashTableRemove, libs, "g_hash_table_remove") | |||
| 690 | + | core.PuregoSafeRegister(&xHashTableRemoveAll, libs, "g_hash_table_remove_all") | |||
| 691 | + | core.PuregoSafeRegister(&xHashTableReplace, libs, "g_hash_table_replace") | |||
| 692 | + | core.PuregoSafeRegister(&xHashTableSize, libs, "g_hash_table_size") | |||
| 693 | + | core.PuregoSafeRegister(&xHashTableSteal, libs, "g_hash_table_steal") | |||
| 694 | + | core.PuregoSafeRegister(&xHashTableStealAll, libs, "g_hash_table_steal_all") | |||
| 695 | + | core.PuregoSafeRegister(&xHashTableStealAllKeys, libs, "g_hash_table_steal_all_keys") | |||
| 696 | + | core.PuregoSafeRegister(&xHashTableStealAllValues, libs, "g_hash_table_steal_all_values") | |||
| 697 | + | core.PuregoSafeRegister(&xHashTableStealExtended, libs, "g_hash_table_steal_extended") | |||
| 698 | + | core.PuregoSafeRegister(&xHashTableUnref, libs, "g_hash_table_unref") | |||
| 699 | + | core.PuregoSafeRegister(&xInt64Equal, libs, "g_int64_equal") | |||
| 700 | + | core.PuregoSafeRegister(&xInt64Hash, libs, "g_int64_hash") | |||
| 701 | + | core.PuregoSafeRegister(&xIntEqual, libs, "g_int_equal") | |||
| 702 | + | core.PuregoSafeRegister(&xIntHash, libs, "g_int_hash") | |||
| 703 | + | core.PuregoSafeRegister(&xStrEqual, libs, "g_str_equal") | |||
| 704 | + | core.PuregoSafeRegister(&xStrHash, libs, "g_str_hash") | |||
| 705 | + | ||||
| 706 | + | core.PuregoSafeRegister(&xHashTableGLibType, libs, "g_hash_table_get_type") | |||
| 707 | + | ||||
| 708 | + | core.PuregoSafeRegister(&xHashTableIterGetHashTable, libs, "g_hash_table_iter_get_hash_table") | |||
| 709 | + | core.PuregoSafeRegister(&xHashTableIterInit, libs, "g_hash_table_iter_init") | |||
| 710 | + | core.PuregoSafeRegister(&xHashTableIterNext, libs, "g_hash_table_iter_next") | |||
| 711 | + | core.PuregoSafeRegister(&xHashTableIterRemove, libs, "g_hash_table_iter_remove") | |||
| 712 | + | core.PuregoSafeRegister(&xHashTableIterReplace, libs, "g_hash_table_iter_replace") | |||
| 713 | + | core.PuregoSafeRegister(&xHashTableIterSteal, libs, "g_hash_table_iter_steal") | |||
| 742 | } | 714 | } | ||