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
| @@ -5,6 +5,7 @@ import ( | |||
| 5 | 5 | "structs" | |
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | + | "github.com/bnema/purego" | |
| 8 | 9 | "github.com/bnema/puregotk/pkg/core" | |
| 9 | 10 | ) | |
| 10 | 11 | ||
| @@ -38,8 +39,6 @@ var xAsyncQueueLength func(uintptr) int | |||
| 38 | 39 | // in the queue and n threads waiting. This can happen due to locking | |
| 39 | 40 | // of the queue or due to scheduling. | |
| 40 | 41 | func (x *AsyncQueue) Length() int { | |
| 41 | - | core.LazyRegister(&xAsyncQueueLength, "GLIB", "g_async_queue_length", false) | |
| 42 | - | ||
| 43 | 42 | cret := xAsyncQueueLength(x.GoPointer()) | |
| 44 | 43 | return cret | |
| 45 | 44 | } | |
| @@ -57,8 +56,6 @@ var xAsyncQueueLengthUnlocked func(uintptr) int | |||
| 57 | 56 | // | |
| 58 | 57 | // This function must be called while holding the @queue's lock. | |
| 59 | 58 | func (x *AsyncQueue) LengthUnlocked() int { | |
| 60 | - | core.LazyRegister(&xAsyncQueueLengthUnlocked, "GLIB", "g_async_queue_length_unlocked", false) | |
| 61 | - | ||
| 62 | 59 | cret := xAsyncQueueLengthUnlocked(x.GoPointer()) | |
| 63 | 60 | return cret | |
| 64 | 61 | } | |
| @@ -75,8 +72,6 @@ var xAsyncQueueLock func(uintptr) | |||
| 75 | 72 | // g_async_queue_*_unlocked() functions on @queue. Otherwise, | |
| 76 | 73 | // deadlock may occur. | |
| 77 | 74 | func (x *AsyncQueue) Lock() { | |
| 78 | - | core.LazyRegister(&xAsyncQueueLock, "GLIB", "g_async_queue_lock", false) | |
| 79 | - | ||
| 80 | 75 | xAsyncQueueLock(x.GoPointer()) | |
| 81 | 76 | } | |
| 82 | 77 | ||
| @@ -85,8 +80,6 @@ var xAsyncQueuePop func(uintptr) uintptr | |||
| 85 | 80 | // Pops data from the @queue. If @queue is empty, this function | |
| 86 | 81 | // blocks until data becomes available. | |
| 87 | 82 | func (x *AsyncQueue) Pop() uintptr { | |
| 88 | - | core.LazyRegister(&xAsyncQueuePop, "GLIB", "g_async_queue_pop", false) | |
| 89 | - | ||
| 90 | 83 | cret := xAsyncQueuePop(x.GoPointer()) | |
| 91 | 84 | return cret | |
| 92 | 85 | } | |
| @@ -98,8 +91,6 @@ var xAsyncQueuePopUnlocked func(uintptr) uintptr | |||
| 98 | 91 | // | |
| 99 | 92 | // This function must be called while holding the @queue's lock. | |
| 100 | 93 | func (x *AsyncQueue) PopUnlocked() uintptr { | |
| 101 | - | core.LazyRegister(&xAsyncQueuePopUnlocked, "GLIB", "g_async_queue_pop_unlocked", false) | |
| 102 | - | ||
| 103 | 94 | cret := xAsyncQueuePopUnlocked(x.GoPointer()) | |
| 104 | 95 | return cret | |
| 105 | 96 | } | |
| @@ -110,8 +101,6 @@ var xAsyncQueuePush func(uintptr, uintptr) | |||
| 110 | 101 | // | |
| 111 | 102 | // The @data parameter must not be %NULL. | |
| 112 | 103 | func (x *AsyncQueue) Push(DataVar uintptr) { | |
| 113 | - | core.LazyRegister(&xAsyncQueuePush, "GLIB", "g_async_queue_push", false) | |
| 114 | - | ||
| 115 | 104 | xAsyncQueuePush(x.GoPointer(), DataVar) | |
| 116 | 105 | } | |
| 117 | 106 | ||
| @@ -122,8 +111,6 @@ var xAsyncQueuePushFront func(uintptr, uintptr) | |||
| 122 | 111 | // pushes the new item ahead of the items already in the queue, | |
| 123 | 112 | // so that it will be the next one to be popped off the queue. | |
| 124 | 113 | func (x *AsyncQueue) PushFront(ItemVar uintptr) { | |
| 125 | - | core.LazyRegister(&xAsyncQueuePushFront, "GLIB", "g_async_queue_push_front", false) | |
| 126 | - | ||
| 127 | 114 | xAsyncQueuePushFront(x.GoPointer(), ItemVar) | |
| 128 | 115 | } | |
| 129 | 116 | ||
| @@ -136,8 +123,6 @@ var xAsyncQueuePushFrontUnlocked func(uintptr, uintptr) | |||
| 136 | 123 | // | |
| 137 | 124 | // This function must be called while holding the @queue's lock. | |
| 138 | 125 | func (x *AsyncQueue) PushFrontUnlocked(ItemVar uintptr) { | |
| 139 | - | core.LazyRegister(&xAsyncQueuePushFrontUnlocked, "GLIB", "g_async_queue_push_front_unlocked", false) | |
| 140 | - | ||
| 141 | 126 | xAsyncQueuePushFrontUnlocked(x.GoPointer(), ItemVar) | |
| 142 | 127 | } | |
| 143 | 128 | ||
| @@ -154,8 +139,6 @@ var xAsyncQueuePushSorted func(uintptr, uintptr, uintptr, uintptr) | |||
| 154 | 139 | // | |
| 155 | 140 | // For an example of @func see g_async_queue_sort(). | |
| 156 | 141 | func (x *AsyncQueue) PushSorted(DataVar uintptr, FuncVar *CompareDataFunc, UserDataVar uintptr) { | |
| 157 | - | core.LazyRegister(&xAsyncQueuePushSorted, "GLIB", "g_async_queue_push_sorted", false) | |
| 158 | - | ||
| 159 | 142 | xAsyncQueuePushSorted(x.GoPointer(), DataVar, NewCallback(FuncVar), UserDataVar) | |
| 160 | 143 | } | |
| 161 | 144 | ||
| @@ -177,8 +160,6 @@ var xAsyncQueuePushSortedUnlocked func(uintptr, uintptr, uintptr, uintptr) | |||
| 177 | 160 | // | |
| 178 | 161 | // For an example of @func see g_async_queue_sort(). | |
| 179 | 162 | func (x *AsyncQueue) PushSortedUnlocked(DataVar uintptr, FuncVar *CompareDataFunc, UserDataVar uintptr) { | |
| 180 | - | core.LazyRegister(&xAsyncQueuePushSortedUnlocked, "GLIB", "g_async_queue_push_sorted_unlocked", false) | |
| 181 | - | ||
| 182 | 163 | xAsyncQueuePushSortedUnlocked(x.GoPointer(), DataVar, NewCallback(FuncVar), UserDataVar) | |
| 183 | 164 | } | |
| 184 | 165 | ||
| @@ -190,8 +171,6 @@ var xAsyncQueuePushUnlocked func(uintptr, uintptr) | |||
| 190 | 171 | // | |
| 191 | 172 | // This function must be called while holding the @queue's lock. | |
| 192 | 173 | func (x *AsyncQueue) PushUnlocked(DataVar uintptr) { | |
| 193 | - | core.LazyRegister(&xAsyncQueuePushUnlocked, "GLIB", "g_async_queue_push_unlocked", false) | |
| 194 | - | ||
| 195 | 174 | xAsyncQueuePushUnlocked(x.GoPointer(), DataVar) | |
| 196 | 175 | } | |
| 197 | 176 | ||
| @@ -200,8 +179,6 @@ var xAsyncQueueRef func(uintptr) uintptr | |||
| 200 | 179 | // Increases the reference count of the asynchronous @queue by 1. | |
| 201 | 180 | // You do not need to hold the lock to call this function. | |
| 202 | 181 | func (x *AsyncQueue) Ref() *AsyncQueue { | |
| 203 | - | core.LazyRegister(&xAsyncQueueRef, "GLIB", "g_async_queue_ref", false) | |
| 204 | - | ||
| 205 | 182 | cret := xAsyncQueueRef(x.GoPointer()) | |
| 206 | 183 | if cret == 0 { | |
| 207 | 184 | return nil | |
| @@ -213,8 +190,6 @@ var xAsyncQueueRefUnlocked func(uintptr) | |||
| 213 | 190 | ||
| 214 | 191 | // Increases the reference count of the asynchronous @queue by 1. | |
| 215 | 192 | func (x *AsyncQueue) RefUnlocked() { | |
| 216 | - | core.LazyRegister(&xAsyncQueueRefUnlocked, "GLIB", "g_async_queue_ref_unlocked", false) | |
| 217 | - | ||
| 218 | 193 | xAsyncQueueRefUnlocked(x.GoPointer()) | |
| 219 | 194 | } | |
| 220 | 195 | ||
| @@ -222,8 +197,6 @@ var xAsyncQueueRemove func(uintptr, uintptr) bool | |||
| 222 | 197 | ||
| 223 | 198 | // Remove an item from the queue. | |
| 224 | 199 | func (x *AsyncQueue) Remove(ItemVar uintptr) bool { | |
| 225 | - | core.LazyRegister(&xAsyncQueueRemove, "GLIB", "g_async_queue_remove", false) | |
| 226 | - | ||
| 227 | 200 | cret := xAsyncQueueRemove(x.GoPointer(), ItemVar) | |
| 228 | 201 | return cret | |
| 229 | 202 | } | |
| @@ -234,8 +207,6 @@ var xAsyncQueueRemoveUnlocked func(uintptr, uintptr) bool | |||
| 234 | 207 | // | |
| 235 | 208 | // This function must be called while holding the @queue's lock. | |
| 236 | 209 | func (x *AsyncQueue) RemoveUnlocked(ItemVar uintptr) bool { | |
| 237 | - | core.LazyRegister(&xAsyncQueueRemoveUnlocked, "GLIB", "g_async_queue_remove_unlocked", false) | |
| 238 | - | ||
| 239 | 210 | cret := xAsyncQueueRemoveUnlocked(x.GoPointer(), ItemVar) | |
| 240 | 211 | return cret | |
| 241 | 212 | } | |
| @@ -267,8 +238,6 @@ var xAsyncQueueSort func(uintptr, uintptr, uintptr) | |||
| 267 | 238 | // | |
| 268 | 239 | // ]| | |
| 269 | 240 | func (x *AsyncQueue) Sort(FuncVar *CompareDataFunc, UserDataVar uintptr) { | |
| 270 | - | core.LazyRegister(&xAsyncQueueSort, "GLIB", "g_async_queue_sort", false) | |
| 271 | - | ||
| 272 | 241 | xAsyncQueueSort(x.GoPointer(), NewCallback(FuncVar), UserDataVar) | |
| 273 | 242 | } | |
| 274 | 243 | ||
| @@ -284,8 +253,6 @@ var xAsyncQueueSortUnlocked func(uintptr, uintptr, uintptr) | |||
| 284 | 253 | // | |
| 285 | 254 | // This function must be called while holding the @queue's lock. | |
| 286 | 255 | func (x *AsyncQueue) SortUnlocked(FuncVar *CompareDataFunc, UserDataVar uintptr) { | |
| 287 | - | core.LazyRegister(&xAsyncQueueSortUnlocked, "GLIB", "g_async_queue_sort_unlocked", false) | |
| 288 | - | ||
| 289 | 256 | xAsyncQueueSortUnlocked(x.GoPointer(), NewCallback(FuncVar), UserDataVar) | |
| 290 | 257 | } | |
| 291 | 258 | ||
| @@ -299,8 +266,6 @@ var xAsyncQueueTimedPop func(uintptr, *TimeVal) uintptr | |||
| 299 | 266 | // To easily calculate @end_time, a combination of g_get_real_time() | |
| 300 | 267 | // and g_time_val_add() can be used. | |
| 301 | 268 | func (x *AsyncQueue) TimedPop(EndTimeVar *TimeVal) uintptr { | |
| 302 | - | core.LazyRegister(&xAsyncQueueTimedPop, "GLIB", "g_async_queue_timed_pop", false) | |
| 303 | - | ||
| 304 | 269 | cret := xAsyncQueueTimedPop(x.GoPointer(), EndTimeVar) | |
| 305 | 270 | return cret | |
| 306 | 271 | } | |
| @@ -317,8 +282,6 @@ var xAsyncQueueTimedPopUnlocked func(uintptr, *TimeVal) uintptr | |||
| 317 | 282 | // | |
| 318 | 283 | // This function must be called while holding the @queue's lock. | |
| 319 | 284 | func (x *AsyncQueue) TimedPopUnlocked(EndTimeVar *TimeVal) uintptr { | |
| 320 | - | core.LazyRegister(&xAsyncQueueTimedPopUnlocked, "GLIB", "g_async_queue_timed_pop_unlocked", false) | |
| 321 | - | ||
| 322 | 285 | cret := xAsyncQueueTimedPopUnlocked(x.GoPointer(), EndTimeVar) | |
| 323 | 286 | return cret | |
| 324 | 287 | } | |
| @@ -330,8 +293,6 @@ var xAsyncQueueTimeoutPop func(uintptr, uint64) uintptr | |||
| 330 | 293 | // | |
| 331 | 294 | // If no data is received before the timeout, %NULL is returned. | |
| 332 | 295 | func (x *AsyncQueue) TimeoutPop(TimeoutVar uint64) uintptr { | |
| 333 | - | core.LazyRegister(&xAsyncQueueTimeoutPop, "GLIB", "g_async_queue_timeout_pop", false) | |
| 334 | - | ||
| 335 | 296 | cret := xAsyncQueueTimeoutPop(x.GoPointer(), TimeoutVar) | |
| 336 | 297 | return cret | |
| 337 | 298 | } | |
| @@ -345,8 +306,6 @@ var xAsyncQueueTimeoutPopUnlocked func(uintptr, uint64) uintptr | |||
| 345 | 306 | // | |
| 346 | 307 | // This function must be called while holding the @queue's lock. | |
| 347 | 308 | func (x *AsyncQueue) TimeoutPopUnlocked(TimeoutVar uint64) uintptr { | |
| 348 | - | core.LazyRegister(&xAsyncQueueTimeoutPopUnlocked, "GLIB", "g_async_queue_timeout_pop_unlocked", false) | |
| 349 | - | ||
| 350 | 309 | cret := xAsyncQueueTimeoutPopUnlocked(x.GoPointer(), TimeoutVar) | |
| 351 | 310 | return cret | |
| 352 | 311 | } | |
| @@ -356,8 +315,6 @@ var xAsyncQueueTryPop func(uintptr) uintptr | |||
| 356 | 315 | // Tries to pop data from the @queue. If no data is available, | |
| 357 | 316 | // %NULL is returned. | |
| 358 | 317 | func (x *AsyncQueue) TryPop() uintptr { | |
| 359 | - | core.LazyRegister(&xAsyncQueueTryPop, "GLIB", "g_async_queue_try_pop", false) | |
| 360 | - | ||
| 361 | 318 | cret := xAsyncQueueTryPop(x.GoPointer()) | |
| 362 | 319 | return cret | |
| 363 | 320 | } | |
| @@ -369,8 +326,6 @@ var xAsyncQueueTryPopUnlocked func(uintptr) uintptr | |||
| 369 | 326 | // | |
| 370 | 327 | // This function must be called while holding the @queue's lock. | |
| 371 | 328 | func (x *AsyncQueue) TryPopUnlocked() uintptr { | |
| 372 | - | core.LazyRegister(&xAsyncQueueTryPopUnlocked, "GLIB", "g_async_queue_try_pop_unlocked", false) | |
| 373 | - | ||
| 374 | 329 | cret := xAsyncQueueTryPopUnlocked(x.GoPointer()) | |
| 375 | 330 | return cret | |
| 376 | 331 | } | |
| @@ -383,8 +338,6 @@ var xAsyncQueueUnlock func(uintptr) | |||
| 383 | 338 | // the with g_async_queue_lock() leads to undefined | |
| 384 | 339 | // behaviour. | |
| 385 | 340 | func (x *AsyncQueue) Unlock() { | |
| 386 | - | core.LazyRegister(&xAsyncQueueUnlock, "GLIB", "g_async_queue_unlock", false) | |
| 387 | - | ||
| 388 | 341 | xAsyncQueueUnlock(x.GoPointer()) | |
| 389 | 342 | } | |
| 390 | 343 | ||
| @@ -397,8 +350,6 @@ var xAsyncQueueUnref func(uintptr) | |||
| 397 | 350 | // to use the @queue afterwards, as it might have disappeared. | |
| 398 | 351 | // You do not need to hold the lock to call this function. | |
| 399 | 352 | func (x *AsyncQueue) Unref() { | |
| 400 | - | core.LazyRegister(&xAsyncQueueUnref, "GLIB", "g_async_queue_unref", false) | |
| 401 | - | ||
| 402 | 353 | xAsyncQueueUnref(x.GoPointer()) | |
| 403 | 354 | } | |
| 404 | 355 | ||
| @@ -409,8 +360,6 @@ var xAsyncQueueUnrefAndUnlock func(uintptr) | |||
| 409 | 360 | // the @queue's lock. If the reference count went to 0, the @queue | |
| 410 | 361 | // will be destroyed and the memory allocated will be freed. | |
| 411 | 362 | func (x *AsyncQueue) UnrefAndUnlock() { | |
| 412 | - | core.LazyRegister(&xAsyncQueueUnrefAndUnlock, "GLIB", "g_async_queue_unref_and_unlock", false) | |
| 413 | - | ||
| 414 | 363 | xAsyncQueueUnrefAndUnlock(x.GoPointer()) | |
| 415 | 364 | } | |
| 416 | 365 | ||
| @@ -418,8 +367,6 @@ var xAsyncQueueNew func() uintptr | |||
| 418 | 367 | ||
| 419 | 368 | // Creates a new asynchronous queue. | |
| 420 | 369 | func AsyncQueueNew() *AsyncQueue { | |
| 421 | - | core.LazyRegister(&xAsyncQueueNew, "GLIB", "g_async_queue_new", false) | |
| 422 | - | ||
| 423 | 370 | cret := xAsyncQueueNew() | |
| 424 | 371 | if cret == 0 { | |
| 425 | 372 | return nil | |
| @@ -433,8 +380,6 @@ var xAsyncQueueNewFull func(uintptr) uintptr | |||
| 433 | 380 | // function that is used to free any remaining queue items when | |
| 434 | 381 | // the queue is destroyed after the final unref. | |
| 435 | 382 | func AsyncQueueNewFull(ItemFreeFuncVar *DestroyNotify) *AsyncQueue { | |
| 436 | - | core.LazyRegister(&xAsyncQueueNewFull, "GLIB", "g_async_queue_new_full", false) | |
| 437 | - | ||
| 438 | 383 | cret := xAsyncQueueNewFull(NewCallbackNullable(ItemFreeFuncVar)) | |
| 439 | 384 | if cret == 0 { | |
| 440 | 385 | return nil | |
| @@ -445,4 +390,42 @@ func AsyncQueueNewFull(ItemFreeFuncVar *DestroyNotify) *AsyncQueue { | |||
| 445 | 390 | func init() { | |
| 446 | 391 | core.SetPackageName("GLIB", "glib-2.0") | |
| 447 | 392 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | |
| 393 | + | var libs []uintptr | |
| 394 | + | for _, libPath := range core.GetPaths("GLIB") { | |
| 395 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 396 | + | if err != nil { | |
| 397 | + | panic(err) | |
| 398 | + | } | |
| 399 | + | libs = append(libs, lib) | |
| 400 | + | } | |
| 401 | + | ||
| 402 | + | core.PuregoSafeRegister(&xAsyncQueueNew, libs, "g_async_queue_new") | |
| 403 | + | core.PuregoSafeRegister(&xAsyncQueueNewFull, libs, "g_async_queue_new_full") | |
| 404 | + | ||
| 405 | + | core.PuregoSafeRegister(&xAsyncQueueLength, libs, "g_async_queue_length") | |
| 406 | + | core.PuregoSafeRegister(&xAsyncQueueLengthUnlocked, libs, "g_async_queue_length_unlocked") | |
| 407 | + | core.PuregoSafeRegister(&xAsyncQueueLock, libs, "g_async_queue_lock") | |
| 408 | + | core.PuregoSafeRegister(&xAsyncQueuePop, libs, "g_async_queue_pop") | |
| 409 | + | core.PuregoSafeRegister(&xAsyncQueuePopUnlocked, libs, "g_async_queue_pop_unlocked") | |
| 410 | + | core.PuregoSafeRegister(&xAsyncQueuePush, libs, "g_async_queue_push") | |
| 411 | + | core.PuregoSafeRegister(&xAsyncQueuePushFront, libs, "g_async_queue_push_front") | |
| 412 | + | core.PuregoSafeRegister(&xAsyncQueuePushFrontUnlocked, libs, "g_async_queue_push_front_unlocked") | |
| 413 | + | core.PuregoSafeRegister(&xAsyncQueuePushSorted, libs, "g_async_queue_push_sorted") | |
| 414 | + | core.PuregoSafeRegister(&xAsyncQueuePushSortedUnlocked, libs, "g_async_queue_push_sorted_unlocked") | |
| 415 | + | core.PuregoSafeRegister(&xAsyncQueuePushUnlocked, libs, "g_async_queue_push_unlocked") | |
| 416 | + | core.PuregoSafeRegister(&xAsyncQueueRef, libs, "g_async_queue_ref") | |
| 417 | + | core.PuregoSafeRegister(&xAsyncQueueRefUnlocked, libs, "g_async_queue_ref_unlocked") | |
| 418 | + | core.PuregoSafeRegister(&xAsyncQueueRemove, libs, "g_async_queue_remove") | |
| 419 | + | core.PuregoSafeRegister(&xAsyncQueueRemoveUnlocked, libs, "g_async_queue_remove_unlocked") | |
| 420 | + | core.PuregoSafeRegister(&xAsyncQueueSort, libs, "g_async_queue_sort") | |
| 421 | + | core.PuregoSafeRegister(&xAsyncQueueSortUnlocked, libs, "g_async_queue_sort_unlocked") | |
| 422 | + | core.PuregoSafeRegister(&xAsyncQueueTimedPop, libs, "g_async_queue_timed_pop") | |
| 423 | + | core.PuregoSafeRegister(&xAsyncQueueTimedPopUnlocked, libs, "g_async_queue_timed_pop_unlocked") | |
| 424 | + | core.PuregoSafeRegister(&xAsyncQueueTimeoutPop, libs, "g_async_queue_timeout_pop") | |
| 425 | + | core.PuregoSafeRegister(&xAsyncQueueTimeoutPopUnlocked, libs, "g_async_queue_timeout_pop_unlocked") | |
| 426 | + | core.PuregoSafeRegister(&xAsyncQueueTryPop, libs, "g_async_queue_try_pop") | |
| 427 | + | core.PuregoSafeRegister(&xAsyncQueueTryPopUnlocked, libs, "g_async_queue_try_pop_unlocked") | |
| 428 | + | core.PuregoSafeRegister(&xAsyncQueueUnlock, libs, "g_async_queue_unlock") | |
| 429 | + | core.PuregoSafeRegister(&xAsyncQueueUnref, libs, "g_async_queue_unref") | |
| 430 | + | core.PuregoSafeRegister(&xAsyncQueueUnrefAndUnlock, libs, "g_async_queue_unref_and_unlock") | |
| 448 | 431 | } | |
| @@ -5,6 +5,7 @@ import ( | |||||
| 5 | "structs" | 5 | "structs" | ||
| 6 | "unsafe" | 6 | "unsafe" | ||
| 7 | 7 | ||||
| 8 | + | "github.com/bnema/purego" | |||
| 8 | "github.com/bnema/puregotk/pkg/core" | 9 | "github.com/bnema/puregotk/pkg/core" | ||
| 9 | ) | 10 | ) | ||
| 10 | 11 | ||||
| @@ -38,8 +39,6 @@ var xAsyncQueueLength func(uintptr) int | |||||
| 38 | // in the queue and n threads waiting. This can happen due to locking | 39 | // in the queue and n threads waiting. This can happen due to locking | ||
| 39 | // of the queue or due to scheduling. | 40 | // of the queue or due to scheduling. | ||
| 40 | func (x *AsyncQueue) Length() int { | 41 | func (x *AsyncQueue) Length() int { | ||
| 41 | - | core.LazyRegister(&xAsyncQueueLength, "GLIB", "g_async_queue_length", false) | |||
| 42 | - | ||||
| 43 | cret := xAsyncQueueLength(x.GoPointer()) | 42 | cret := xAsyncQueueLength(x.GoPointer()) | ||
| 44 | return cret | 43 | return cret | ||
| 45 | } | 44 | } | ||
| @@ -57,8 +56,6 @@ var xAsyncQueueLengthUnlocked func(uintptr) int | |||||
| 57 | // | 56 | // | ||
| 58 | // This function must be called while holding the @queue's lock. | 57 | // This function must be called while holding the @queue's lock. | ||
| 59 | func (x *AsyncQueue) LengthUnlocked() int { | 58 | func (x *AsyncQueue) LengthUnlocked() int { | ||
| 60 | - | core.LazyRegister(&xAsyncQueueLengthUnlocked, "GLIB", "g_async_queue_length_unlocked", false) | |||
| 61 | - | ||||
| 62 | cret := xAsyncQueueLengthUnlocked(x.GoPointer()) | 59 | cret := xAsyncQueueLengthUnlocked(x.GoPointer()) | ||
| 63 | return cret | 60 | return cret | ||
| 64 | } | 61 | } | ||
| @@ -75,8 +72,6 @@ var xAsyncQueueLock func(uintptr) | |||||
| 75 | // g_async_queue_*_unlocked() functions on @queue. Otherwise, | 72 | // g_async_queue_*_unlocked() functions on @queue. Otherwise, | ||
| 76 | // deadlock may occur. | 73 | // deadlock may occur. | ||
| 77 | func (x *AsyncQueue) Lock() { | 74 | func (x *AsyncQueue) Lock() { | ||
| 78 | - | core.LazyRegister(&xAsyncQueueLock, "GLIB", "g_async_queue_lock", false) | |||
| 79 | - | ||||
| 80 | xAsyncQueueLock(x.GoPointer()) | 75 | xAsyncQueueLock(x.GoPointer()) | ||
| 81 | } | 76 | } | ||
| 82 | 77 | ||||
| @@ -85,8 +80,6 @@ var xAsyncQueuePop func(uintptr) uintptr | |||||
| 85 | // Pops data from the @queue. If @queue is empty, this function | 80 | // Pops data from the @queue. If @queue is empty, this function | ||
| 86 | // blocks until data becomes available. | 81 | // blocks until data becomes available. | ||
| 87 | func (x *AsyncQueue) Pop() uintptr { | 82 | func (x *AsyncQueue) Pop() uintptr { | ||
| 88 | - | core.LazyRegister(&xAsyncQueuePop, "GLIB", "g_async_queue_pop", false) | |||
| 89 | - | ||||
| 90 | cret := xAsyncQueuePop(x.GoPointer()) | 83 | cret := xAsyncQueuePop(x.GoPointer()) | ||
| 91 | return cret | 84 | return cret | ||
| 92 | } | 85 | } | ||
| @@ -98,8 +91,6 @@ var xAsyncQueuePopUnlocked func(uintptr) uintptr | |||||
| 98 | // | 91 | // | ||
| 99 | // This function must be called while holding the @queue's lock. | 92 | // This function must be called while holding the @queue's lock. | ||
| 100 | func (x *AsyncQueue) PopUnlocked() uintptr { | 93 | func (x *AsyncQueue) PopUnlocked() uintptr { | ||
| 101 | - | core.LazyRegister(&xAsyncQueuePopUnlocked, "GLIB", "g_async_queue_pop_unlocked", false) | |||
| 102 | - | ||||
| 103 | cret := xAsyncQueuePopUnlocked(x.GoPointer()) | 94 | cret := xAsyncQueuePopUnlocked(x.GoPointer()) | ||
| 104 | return cret | 95 | return cret | ||
| 105 | } | 96 | } | ||
| @@ -110,8 +101,6 @@ var xAsyncQueuePush func(uintptr, uintptr) | |||||
| 110 | // | 101 | // | ||
| 111 | // The @data parameter must not be %NULL. | 102 | // The @data parameter must not be %NULL. | ||
| 112 | func (x *AsyncQueue) Push(DataVar uintptr) { | 103 | func (x *AsyncQueue) Push(DataVar uintptr) { | ||
| 113 | - | core.LazyRegister(&xAsyncQueuePush, "GLIB", "g_async_queue_push", false) | |||
| 114 | - | ||||
| 115 | xAsyncQueuePush(x.GoPointer(), DataVar) | 104 | xAsyncQueuePush(x.GoPointer(), DataVar) | ||
| 116 | } | 105 | } | ||
| 117 | 106 | ||||
| @@ -122,8 +111,6 @@ var xAsyncQueuePushFront func(uintptr, uintptr) | |||||
| 122 | // pushes the new item ahead of the items already in the queue, | 111 | // pushes the new item ahead of the items already in the queue, | ||
| 123 | // so that it will be the next one to be popped off the queue. | 112 | // so that it will be the next one to be popped off the queue. | ||
| 124 | func (x *AsyncQueue) PushFront(ItemVar uintptr) { | 113 | func (x *AsyncQueue) PushFront(ItemVar uintptr) { | ||
| 125 | - | core.LazyRegister(&xAsyncQueuePushFront, "GLIB", "g_async_queue_push_front", false) | |||
| 126 | - | ||||
| 127 | xAsyncQueuePushFront(x.GoPointer(), ItemVar) | 114 | xAsyncQueuePushFront(x.GoPointer(), ItemVar) | ||
| 128 | } | 115 | } | ||
| 129 | 116 | ||||
| @@ -136,8 +123,6 @@ var xAsyncQueuePushFrontUnlocked func(uintptr, uintptr) | |||||
| 136 | // | 123 | // | ||
| 137 | // This function must be called while holding the @queue's lock. | 124 | // This function must be called while holding the @queue's lock. | ||
| 138 | func (x *AsyncQueue) PushFrontUnlocked(ItemVar uintptr) { | 125 | func (x *AsyncQueue) PushFrontUnlocked(ItemVar uintptr) { | ||
| 139 | - | core.LazyRegister(&xAsyncQueuePushFrontUnlocked, "GLIB", "g_async_queue_push_front_unlocked", false) | |||
| 140 | - | ||||
| 141 | xAsyncQueuePushFrontUnlocked(x.GoPointer(), ItemVar) | 126 | xAsyncQueuePushFrontUnlocked(x.GoPointer(), ItemVar) | ||
| 142 | } | 127 | } | ||
| 143 | 128 | ||||
| @@ -154,8 +139,6 @@ var xAsyncQueuePushSorted func(uintptr, uintptr, uintptr, uintptr) | |||||
| 154 | // | 139 | // | ||
| 155 | // For an example of @func see g_async_queue_sort(). | 140 | // For an example of @func see g_async_queue_sort(). | ||
| 156 | func (x *AsyncQueue) PushSorted(DataVar uintptr, FuncVar *CompareDataFunc, UserDataVar uintptr) { | 141 | func (x *AsyncQueue) PushSorted(DataVar uintptr, FuncVar *CompareDataFunc, UserDataVar uintptr) { | ||
| 157 | - | core.LazyRegister(&xAsyncQueuePushSorted, "GLIB", "g_async_queue_push_sorted", false) | |||
| 158 | - | ||||
| 159 | xAsyncQueuePushSorted(x.GoPointer(), DataVar, NewCallback(FuncVar), UserDataVar) | 142 | xAsyncQueuePushSorted(x.GoPointer(), DataVar, NewCallback(FuncVar), UserDataVar) | ||
| 160 | } | 143 | } | ||
| 161 | 144 | ||||
| @@ -177,8 +160,6 @@ var xAsyncQueuePushSortedUnlocked func(uintptr, uintptr, uintptr, uintptr) | |||||
| 177 | // | 160 | // | ||
| 178 | // For an example of @func see g_async_queue_sort(). | 161 | // For an example of @func see g_async_queue_sort(). | ||
| 179 | func (x *AsyncQueue) PushSortedUnlocked(DataVar uintptr, FuncVar *CompareDataFunc, UserDataVar uintptr) { | 162 | func (x *AsyncQueue) PushSortedUnlocked(DataVar uintptr, FuncVar *CompareDataFunc, UserDataVar uintptr) { | ||
| 180 | - | core.LazyRegister(&xAsyncQueuePushSortedUnlocked, "GLIB", "g_async_queue_push_sorted_unlocked", false) | |||
| 181 | - | ||||
| 182 | xAsyncQueuePushSortedUnlocked(x.GoPointer(), DataVar, NewCallback(FuncVar), UserDataVar) | 163 | xAsyncQueuePushSortedUnlocked(x.GoPointer(), DataVar, NewCallback(FuncVar), UserDataVar) | ||
| 183 | } | 164 | } | ||
| 184 | 165 | ||||
| @@ -190,8 +171,6 @@ var xAsyncQueuePushUnlocked func(uintptr, uintptr) | |||||
| 190 | // | 171 | // | ||
| 191 | // This function must be called while holding the @queue's lock. | 172 | // This function must be called while holding the @queue's lock. | ||
| 192 | func (x *AsyncQueue) PushUnlocked(DataVar uintptr) { | 173 | func (x *AsyncQueue) PushUnlocked(DataVar uintptr) { | ||
| 193 | - | core.LazyRegister(&xAsyncQueuePushUnlocked, "GLIB", "g_async_queue_push_unlocked", false) | |||
| 194 | - | ||||
| 195 | xAsyncQueuePushUnlocked(x.GoPointer(), DataVar) | 174 | xAsyncQueuePushUnlocked(x.GoPointer(), DataVar) | ||
| 196 | } | 175 | } | ||
| 197 | 176 | ||||
| @@ -200,8 +179,6 @@ var xAsyncQueueRef func(uintptr) uintptr | |||||
| 200 | // Increases the reference count of the asynchronous @queue by 1. | 179 | // Increases the reference count of the asynchronous @queue by 1. | ||
| 201 | // You do not need to hold the lock to call this function. | 180 | // You do not need to hold the lock to call this function. | ||
| 202 | func (x *AsyncQueue) Ref() *AsyncQueue { | 181 | func (x *AsyncQueue) Ref() *AsyncQueue { | ||
| 203 | - | core.LazyRegister(&xAsyncQueueRef, "GLIB", "g_async_queue_ref", false) | |||
| 204 | - | ||||
| 205 | cret := xAsyncQueueRef(x.GoPointer()) | 182 | cret := xAsyncQueueRef(x.GoPointer()) | ||
| 206 | if cret == 0 { | 183 | if cret == 0 { | ||
| 207 | return nil | 184 | return nil | ||
| @@ -213,8 +190,6 @@ var xAsyncQueueRefUnlocked func(uintptr) | |||||
| 213 | 190 | ||||
| 214 | // Increases the reference count of the asynchronous @queue by 1. | 191 | // Increases the reference count of the asynchronous @queue by 1. | ||
| 215 | func (x *AsyncQueue) RefUnlocked() { | 192 | func (x *AsyncQueue) RefUnlocked() { | ||
| 216 | - | core.LazyRegister(&xAsyncQueueRefUnlocked, "GLIB", "g_async_queue_ref_unlocked", false) | |||
| 217 | - | ||||
| 218 | xAsyncQueueRefUnlocked(x.GoPointer()) | 193 | xAsyncQueueRefUnlocked(x.GoPointer()) | ||
| 219 | } | 194 | } | ||
| 220 | 195 | ||||
| @@ -222,8 +197,6 @@ var xAsyncQueueRemove func(uintptr, uintptr) bool | |||||
| 222 | 197 | ||||
| 223 | // Remove an item from the queue. | 198 | // Remove an item from the queue. | ||
| 224 | func (x *AsyncQueue) Remove(ItemVar uintptr) bool { | 199 | func (x *AsyncQueue) Remove(ItemVar uintptr) bool { | ||
| 225 | - | core.LazyRegister(&xAsyncQueueRemove, "GLIB", "g_async_queue_remove", false) | |||
| 226 | - | ||||
| 227 | cret := xAsyncQueueRemove(x.GoPointer(), ItemVar) | 200 | cret := xAsyncQueueRemove(x.GoPointer(), ItemVar) | ||
| 228 | return cret | 201 | return cret | ||
| 229 | } | 202 | } | ||
| @@ -234,8 +207,6 @@ var xAsyncQueueRemoveUnlocked func(uintptr, uintptr) bool | |||||
| 234 | // | 207 | // | ||
| 235 | // This function must be called while holding the @queue's lock. | 208 | // This function must be called while holding the @queue's lock. | ||
| 236 | func (x *AsyncQueue) RemoveUnlocked(ItemVar uintptr) bool { | 209 | func (x *AsyncQueue) RemoveUnlocked(ItemVar uintptr) bool { | ||
| 237 | - | core.LazyRegister(&xAsyncQueueRemoveUnlocked, "GLIB", "g_async_queue_remove_unlocked", false) | |||
| 238 | - | ||||
| 239 | cret := xAsyncQueueRemoveUnlocked(x.GoPointer(), ItemVar) | 210 | cret := xAsyncQueueRemoveUnlocked(x.GoPointer(), ItemVar) | ||
| 240 | return cret | 211 | return cret | ||
| 241 | } | 212 | } | ||
| @@ -267,8 +238,6 @@ var xAsyncQueueSort func(uintptr, uintptr, uintptr) | |||||
| 267 | // | 238 | // | ||
| 268 | // ]| | 239 | // ]| | ||
| 269 | func (x *AsyncQueue) Sort(FuncVar *CompareDataFunc, UserDataVar uintptr) { | 240 | func (x *AsyncQueue) Sort(FuncVar *CompareDataFunc, UserDataVar uintptr) { | ||
| 270 | - | core.LazyRegister(&xAsyncQueueSort, "GLIB", "g_async_queue_sort", false) | |||
| 271 | - | ||||
| 272 | xAsyncQueueSort(x.GoPointer(), NewCallback(FuncVar), UserDataVar) | 241 | xAsyncQueueSort(x.GoPointer(), NewCallback(FuncVar), UserDataVar) | ||
| 273 | } | 242 | } | ||
| 274 | 243 | ||||
| @@ -284,8 +253,6 @@ var xAsyncQueueSortUnlocked func(uintptr, uintptr, uintptr) | |||||
| 284 | // | 253 | // | ||
| 285 | // This function must be called while holding the @queue's lock. | 254 | // This function must be called while holding the @queue's lock. | ||
| 286 | func (x *AsyncQueue) SortUnlocked(FuncVar *CompareDataFunc, UserDataVar uintptr) { | 255 | func (x *AsyncQueue) SortUnlocked(FuncVar *CompareDataFunc, UserDataVar uintptr) { | ||
| 287 | - | core.LazyRegister(&xAsyncQueueSortUnlocked, "GLIB", "g_async_queue_sort_unlocked", false) | |||
| 288 | - | ||||
| 289 | xAsyncQueueSortUnlocked(x.GoPointer(), NewCallback(FuncVar), UserDataVar) | 256 | xAsyncQueueSortUnlocked(x.GoPointer(), NewCallback(FuncVar), UserDataVar) | ||
| 290 | } | 257 | } | ||
| 291 | 258 | ||||
| @@ -299,8 +266,6 @@ var xAsyncQueueTimedPop func(uintptr, *TimeVal) uintptr | |||||
| 299 | // To easily calculate @end_time, a combination of g_get_real_time() | 266 | // To easily calculate @end_time, a combination of g_get_real_time() | ||
| 300 | // and g_time_val_add() can be used. | 267 | // and g_time_val_add() can be used. | ||
| 301 | func (x *AsyncQueue) TimedPop(EndTimeVar *TimeVal) uintptr { | 268 | func (x *AsyncQueue) TimedPop(EndTimeVar *TimeVal) uintptr { | ||
| 302 | - | core.LazyRegister(&xAsyncQueueTimedPop, "GLIB", "g_async_queue_timed_pop", false) | |||
| 303 | - | ||||
| 304 | cret := xAsyncQueueTimedPop(x.GoPointer(), EndTimeVar) | 269 | cret := xAsyncQueueTimedPop(x.GoPointer(), EndTimeVar) | ||
| 305 | return cret | 270 | return cret | ||
| 306 | } | 271 | } | ||
| @@ -317,8 +282,6 @@ var xAsyncQueueTimedPopUnlocked func(uintptr, *TimeVal) uintptr | |||||
| 317 | // | 282 | // | ||
| 318 | // This function must be called while holding the @queue's lock. | 283 | // This function must be called while holding the @queue's lock. | ||
| 319 | func (x *AsyncQueue) TimedPopUnlocked(EndTimeVar *TimeVal) uintptr { | 284 | func (x *AsyncQueue) TimedPopUnlocked(EndTimeVar *TimeVal) uintptr { | ||
| 320 | - | core.LazyRegister(&xAsyncQueueTimedPopUnlocked, "GLIB", "g_async_queue_timed_pop_unlocked", false) | |||
| 321 | - | ||||
| 322 | cret := xAsyncQueueTimedPopUnlocked(x.GoPointer(), EndTimeVar) | 285 | cret := xAsyncQueueTimedPopUnlocked(x.GoPointer(), EndTimeVar) | ||
| 323 | return cret | 286 | return cret | ||
| 324 | } | 287 | } | ||
| @@ -330,8 +293,6 @@ var xAsyncQueueTimeoutPop func(uintptr, uint64) uintptr | |||||
| 330 | // | 293 | // | ||
| 331 | // If no data is received before the timeout, %NULL is returned. | 294 | // If no data is received before the timeout, %NULL is returned. | ||
| 332 | func (x *AsyncQueue) TimeoutPop(TimeoutVar uint64) uintptr { | 295 | func (x *AsyncQueue) TimeoutPop(TimeoutVar uint64) uintptr { | ||
| 333 | - | core.LazyRegister(&xAsyncQueueTimeoutPop, "GLIB", "g_async_queue_timeout_pop", false) | |||
| 334 | - | ||||
| 335 | cret := xAsyncQueueTimeoutPop(x.GoPointer(), TimeoutVar) | 296 | cret := xAsyncQueueTimeoutPop(x.GoPointer(), TimeoutVar) | ||
| 336 | return cret | 297 | return cret | ||
| 337 | } | 298 | } | ||
| @@ -345,8 +306,6 @@ var xAsyncQueueTimeoutPopUnlocked func(uintptr, uint64) uintptr | |||||
| 345 | // | 306 | // | ||
| 346 | // This function must be called while holding the @queue's lock. | 307 | // This function must be called while holding the @queue's lock. | ||
| 347 | func (x *AsyncQueue) TimeoutPopUnlocked(TimeoutVar uint64) uintptr { | 308 | func (x *AsyncQueue) TimeoutPopUnlocked(TimeoutVar uint64) uintptr { | ||
| 348 | - | core.LazyRegister(&xAsyncQueueTimeoutPopUnlocked, "GLIB", "g_async_queue_timeout_pop_unlocked", false) | |||
| 349 | - | ||||
| 350 | cret := xAsyncQueueTimeoutPopUnlocked(x.GoPointer(), TimeoutVar) | 309 | cret := xAsyncQueueTimeoutPopUnlocked(x.GoPointer(), TimeoutVar) | ||
| 351 | return cret | 310 | return cret | ||
| 352 | } | 311 | } | ||
| @@ -356,8 +315,6 @@ var xAsyncQueueTryPop func(uintptr) uintptr | |||||
| 356 | // Tries to pop data from the @queue. If no data is available, | 315 | // Tries to pop data from the @queue. If no data is available, | ||
| 357 | // %NULL is returned. | 316 | // %NULL is returned. | ||
| 358 | func (x *AsyncQueue) TryPop() uintptr { | 317 | func (x *AsyncQueue) TryPop() uintptr { | ||
| 359 | - | core.LazyRegister(&xAsyncQueueTryPop, "GLIB", "g_async_queue_try_pop", false) | |||
| 360 | - | ||||
| 361 | cret := xAsyncQueueTryPop(x.GoPointer()) | 318 | cret := xAsyncQueueTryPop(x.GoPointer()) | ||
| 362 | return cret | 319 | return cret | ||
| 363 | } | 320 | } | ||
| @@ -369,8 +326,6 @@ var xAsyncQueueTryPopUnlocked func(uintptr) uintptr | |||||
| 369 | // | 326 | // | ||
| 370 | // This function must be called while holding the @queue's lock. | 327 | // This function must be called while holding the @queue's lock. | ||
| 371 | func (x *AsyncQueue) TryPopUnlocked() uintptr { | 328 | func (x *AsyncQueue) TryPopUnlocked() uintptr { | ||
| 372 | - | core.LazyRegister(&xAsyncQueueTryPopUnlocked, "GLIB", "g_async_queue_try_pop_unlocked", false) | |||
| 373 | - | ||||
| 374 | cret := xAsyncQueueTryPopUnlocked(x.GoPointer()) | 329 | cret := xAsyncQueueTryPopUnlocked(x.GoPointer()) | ||
| 375 | return cret | 330 | return cret | ||
| 376 | } | 331 | } | ||
| @@ -383,8 +338,6 @@ var xAsyncQueueUnlock func(uintptr) | |||||
| 383 | // the with g_async_queue_lock() leads to undefined | 338 | // the with g_async_queue_lock() leads to undefined | ||
| 384 | // behaviour. | 339 | // behaviour. | ||
| 385 | func (x *AsyncQueue) Unlock() { | 340 | func (x *AsyncQueue) Unlock() { | ||
| 386 | - | core.LazyRegister(&xAsyncQueueUnlock, "GLIB", "g_async_queue_unlock", false) | |||
| 387 | - | ||||
| 388 | xAsyncQueueUnlock(x.GoPointer()) | 341 | xAsyncQueueUnlock(x.GoPointer()) | ||
| 389 | } | 342 | } | ||
| 390 | 343 | ||||
| @@ -397,8 +350,6 @@ var xAsyncQueueUnref func(uintptr) | |||||
| 397 | // to use the @queue afterwards, as it might have disappeared. | 350 | // to use the @queue afterwards, as it might have disappeared. | ||
| 398 | // You do not need to hold the lock to call this function. | 351 | // You do not need to hold the lock to call this function. | ||
| 399 | func (x *AsyncQueue) Unref() { | 352 | func (x *AsyncQueue) Unref() { | ||
| 400 | - | core.LazyRegister(&xAsyncQueueUnref, "GLIB", "g_async_queue_unref", false) | |||
| 401 | - | ||||
| 402 | xAsyncQueueUnref(x.GoPointer()) | 353 | xAsyncQueueUnref(x.GoPointer()) | ||
| 403 | } | 354 | } | ||
| 404 | 355 | ||||
| @@ -409,8 +360,6 @@ var xAsyncQueueUnrefAndUnlock func(uintptr) | |||||
| 409 | // the @queue's lock. If the reference count went to 0, the @queue | 360 | // the @queue's lock. If the reference count went to 0, the @queue | ||
| 410 | // will be destroyed and the memory allocated will be freed. | 361 | // will be destroyed and the memory allocated will be freed. | ||
| 411 | func (x *AsyncQueue) UnrefAndUnlock() { | 362 | func (x *AsyncQueue) UnrefAndUnlock() { | ||
| 412 | - | core.LazyRegister(&xAsyncQueueUnrefAndUnlock, "GLIB", "g_async_queue_unref_and_unlock", false) | |||
| 413 | - | ||||
| 414 | xAsyncQueueUnrefAndUnlock(x.GoPointer()) | 363 | xAsyncQueueUnrefAndUnlock(x.GoPointer()) | ||
| 415 | } | 364 | } | ||
| 416 | 365 | ||||
| @@ -418,8 +367,6 @@ var xAsyncQueueNew func() uintptr | |||||
| 418 | 367 | ||||
| 419 | // Creates a new asynchronous queue. | 368 | // Creates a new asynchronous queue. | ||
| 420 | func AsyncQueueNew() *AsyncQueue { | 369 | func AsyncQueueNew() *AsyncQueue { | ||
| 421 | - | core.LazyRegister(&xAsyncQueueNew, "GLIB", "g_async_queue_new", false) | |||
| 422 | - | ||||
| 423 | cret := xAsyncQueueNew() | 370 | cret := xAsyncQueueNew() | ||
| 424 | if cret == 0 { | 371 | if cret == 0 { | ||
| 425 | return nil | 372 | return nil | ||
| @@ -433,8 +380,6 @@ var xAsyncQueueNewFull func(uintptr) uintptr | |||||
| 433 | // function that is used to free any remaining queue items when | 380 | // function that is used to free any remaining queue items when | ||
| 434 | // the queue is destroyed after the final unref. | 381 | // the queue is destroyed after the final unref. | ||
| 435 | func AsyncQueueNewFull(ItemFreeFuncVar *DestroyNotify) *AsyncQueue { | 382 | func AsyncQueueNewFull(ItemFreeFuncVar *DestroyNotify) *AsyncQueue { | ||
| 436 | - | core.LazyRegister(&xAsyncQueueNewFull, "GLIB", "g_async_queue_new_full", false) | |||
| 437 | - | ||||
| 438 | cret := xAsyncQueueNewFull(NewCallbackNullable(ItemFreeFuncVar)) | 383 | cret := xAsyncQueueNewFull(NewCallbackNullable(ItemFreeFuncVar)) | ||
| 439 | if cret == 0 { | 384 | if cret == 0 { | ||
| 440 | return nil | 385 | return nil | ||
| @@ -445,4 +390,42 @@ func AsyncQueueNewFull(ItemFreeFuncVar *DestroyNotify) *AsyncQueue { | |||||
| 445 | func init() { | 390 | func init() { | ||
| 446 | core.SetPackageName("GLIB", "glib-2.0") | 391 | core.SetPackageName("GLIB", "glib-2.0") | ||
| 447 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | 392 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | ||
| 393 | + | var libs []uintptr | |||
| 394 | + | for _, libPath := range core.GetPaths("GLIB") { | |||
| 395 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 396 | + | if err != nil { | |||
| 397 | + | panic(err) | |||
| 398 | + | } | |||
| 399 | + | libs = append(libs, lib) | |||
| 400 | + | } | |||
| 401 | + | ||||
| 402 | + | core.PuregoSafeRegister(&xAsyncQueueNew, libs, "g_async_queue_new") | |||
| 403 | + | core.PuregoSafeRegister(&xAsyncQueueNewFull, libs, "g_async_queue_new_full") | |||
| 404 | + | ||||
| 405 | + | core.PuregoSafeRegister(&xAsyncQueueLength, libs, "g_async_queue_length") | |||
| 406 | + | core.PuregoSafeRegister(&xAsyncQueueLengthUnlocked, libs, "g_async_queue_length_unlocked") | |||
| 407 | + | core.PuregoSafeRegister(&xAsyncQueueLock, libs, "g_async_queue_lock") | |||
| 408 | + | core.PuregoSafeRegister(&xAsyncQueuePop, libs, "g_async_queue_pop") | |||
| 409 | + | core.PuregoSafeRegister(&xAsyncQueuePopUnlocked, libs, "g_async_queue_pop_unlocked") | |||
| 410 | + | core.PuregoSafeRegister(&xAsyncQueuePush, libs, "g_async_queue_push") | |||
| 411 | + | core.PuregoSafeRegister(&xAsyncQueuePushFront, libs, "g_async_queue_push_front") | |||
| 412 | + | core.PuregoSafeRegister(&xAsyncQueuePushFrontUnlocked, libs, "g_async_queue_push_front_unlocked") | |||
| 413 | + | core.PuregoSafeRegister(&xAsyncQueuePushSorted, libs, "g_async_queue_push_sorted") | |||
| 414 | + | core.PuregoSafeRegister(&xAsyncQueuePushSortedUnlocked, libs, "g_async_queue_push_sorted_unlocked") | |||
| 415 | + | core.PuregoSafeRegister(&xAsyncQueuePushUnlocked, libs, "g_async_queue_push_unlocked") | |||
| 416 | + | core.PuregoSafeRegister(&xAsyncQueueRef, libs, "g_async_queue_ref") | |||
| 417 | + | core.PuregoSafeRegister(&xAsyncQueueRefUnlocked, libs, "g_async_queue_ref_unlocked") | |||
| 418 | + | core.PuregoSafeRegister(&xAsyncQueueRemove, libs, "g_async_queue_remove") | |||
| 419 | + | core.PuregoSafeRegister(&xAsyncQueueRemoveUnlocked, libs, "g_async_queue_remove_unlocked") | |||
| 420 | + | core.PuregoSafeRegister(&xAsyncQueueSort, libs, "g_async_queue_sort") | |||
| 421 | + | core.PuregoSafeRegister(&xAsyncQueueSortUnlocked, libs, "g_async_queue_sort_unlocked") | |||
| 422 | + | core.PuregoSafeRegister(&xAsyncQueueTimedPop, libs, "g_async_queue_timed_pop") | |||
| 423 | + | core.PuregoSafeRegister(&xAsyncQueueTimedPopUnlocked, libs, "g_async_queue_timed_pop_unlocked") | |||
| 424 | + | core.PuregoSafeRegister(&xAsyncQueueTimeoutPop, libs, "g_async_queue_timeout_pop") | |||
| 425 | + | core.PuregoSafeRegister(&xAsyncQueueTimeoutPopUnlocked, libs, "g_async_queue_timeout_pop_unlocked") | |||
| 426 | + | core.PuregoSafeRegister(&xAsyncQueueTryPop, libs, "g_async_queue_try_pop") | |||
| 427 | + | core.PuregoSafeRegister(&xAsyncQueueTryPopUnlocked, libs, "g_async_queue_try_pop_unlocked") | |||
| 428 | + | core.PuregoSafeRegister(&xAsyncQueueUnlock, libs, "g_async_queue_unlock") | |||
| 429 | + | core.PuregoSafeRegister(&xAsyncQueueUnref, libs, "g_async_queue_unref") | |||
| 430 | + | core.PuregoSafeRegister(&xAsyncQueueUnrefAndUnlock, libs, "g_async_queue_unref_and_unlock") | |||
| 448 | } | 431 | } | ||