Revert "chore(deps): pin puregotk nil-signal fix"
This reverts commit a161e348e2093172038390b0906448f0ae979a0d.
- commit
- 40378d5e4fd2372d054e49168ab2a6f67aedd0fd
- author
- brice · · 2026-07-14 17:59 UTC
- parent
- 8d647bb
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
905 files · +25263 -27842
M go.mod +1 -1
| @@ -11,7 +11,7 @@ require ( | |||
| 11 | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | |
| 12 | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | |
| 13 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | |
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | |
| 14 | + | github.com/bnema/puregotk v0.7.0 | |
| 15 | 15 | github.com/charmbracelet/bubbles v1.0.0 | |
| 16 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | |
| 17 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | |
| @@ -11,7 +11,7 @@ require ( | |||||
| 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | ||
| 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | ||
| 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | ||
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | 14 | + | github.com/bnema/puregotk v0.7.0 |
| 15 | github.com/charmbracelet/bubbles v1.0.0 | 15 | github.com/charmbracelet/bubbles v1.0.0 | ||
| 16 | github.com/charmbracelet/bubbletea v1.3.10 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | ||
| 17 | github.com/charmbracelet/lipgloss v1.1.0 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | ||
M go.sum +0 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/internal/core/core.go +4 -197 generated file: collapsed
M vendor/github.com/bnema/puregotk/pkg/core/core.go +0 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-dialog.go +64 -99 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-window.go +62 -95 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-accent-color.go +15 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-action-row.go +29 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-alert-dialog.go +47 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-target.go +27 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-util.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation.go +26 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application-window.go +22 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-avatar.go +25 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-banner.go +26 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bin.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bottom-sheet.go +38 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint-bin.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint.go +37 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-content.go +22 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-row.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-dots.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-lines.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel.go +37 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-layout.go +20 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-scrollable.go +22 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp.go +22 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-combo-row.go +33 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-dialog.go +38 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-easing.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-entry-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-enum-list-model.go +22 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-expander-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-flap.go +48 -61 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-fold-threshold-policy.go +1 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-header-bar.go +33 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-inline-view-switcher.go +24 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout-slot.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout.go +17 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-leaflet.go +56 -69 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-length-unit.go +14 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-main.go +15 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-message-dialog.go +44 -63 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-multi-layout-view.go +23 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-direction.go +1 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-split-view.go +32 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-view.go +49 -60 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-overlay-split-view.go +38 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-password-entry-row.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-dialog.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-group.go +26 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-page.go +33 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-row.go +22 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-window.go +29 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcut-label.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-dialog.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-item.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-section.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-item.go +37 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-section.go +27 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar.go +39 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spin-row.go +34 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner-paintable.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-split-button.go +34 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-animation.go +30 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-params.go +21 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-squeezer.go +44 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-status-page.go +24 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-style-manager.go +28 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipe-tracker.go +30 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipeable.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-switch-row.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-bar.go +32 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-button.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-overview.go +37 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-view.go +87 -123 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-timed-animation.go +28 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast-overlay.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast.go +36 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toggle-group.go +51 -64 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toolbar-view.go +35 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-version.go +16 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-stack.go +62 -78 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-bar.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-sidebar.go +22 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-title.go +23 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher.go +20 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window-title.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window.go +22 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-box.go +46 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-layout.go +46 -57 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/cairo/main.go +79 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkapplaunchcontext.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairo.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairocontext.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcicpparams.go +25 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkclipboard.go +32 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcolorstate.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentdeserializer.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentformats.go +31 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentprovider.go +28 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentserializer.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcursor.go +21 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevice.go +33 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicepad.go +22 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicetool.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplay.go +43 -51 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplaymanager.go +20 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexture.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexturebuilder.go +41 -53 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrag.go +28 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurface.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurfacesize.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrawcontext.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrop.go +24 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkenums.go +1 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkevents.go +118 -120 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframeclock.go +24 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframetimings.go +20 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkglcontext.go +36 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexture.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexturebuilder.go +35 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkkeys.go +22 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexture.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexturebuilder.go +35 -42 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmonitor.go +27 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpaintable.go +33 -63 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpango.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpixbuf.go +12 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopup.go +26 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopuplayout.go +32 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkrgba.go +21 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkseat.go +20 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksnapshot.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksurface.go +40 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktexture.go +31 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevel.go +66 -157 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevellayout.go +25 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevelsize.go +16 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktypes.go +72 -95 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkvulkancontext.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-animation.go +32 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-core.go +0 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-io.go +23 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-loader.go +22 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-simple-anim.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-transform.go +1 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf.go +79 -102 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/main.go +17 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gaction.go +31 -59 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactiongroup.go +39 -96 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactionmap.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gappinfo.go +116 -244 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplication.go +55 -79 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplicationcommandline.go +27 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncinitable.go +22 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncresult.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedinputstream.go +29 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedoutputstream.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbytesicon.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcancellable.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcharsetconverter.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcontenttype.go +26 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverter.go +20 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverterinputstream.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverteroutputstream.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcredentials.go +21 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatagrambased.go +30 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatainputstream.go +35 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdataoutputstream.go +23 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusactiongroup.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusaddress.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusauthobserver.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusconnection.go +66 -77 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbuserror.go +18 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusinterface.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusinterfaceskeleton.go +24 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusintrospection.go +56 -54 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmenumodel.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmessage.go +64 -88 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmethodinvocation.go +30 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusnameowning.go +15 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusnamewatching.go +15 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobject.go +17 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanager.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerclient.go +23 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerserver.go +20 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectproxy.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectskeleton.go +18 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusproxy.go +38 -42 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusserver.go +20 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusutils.go +22 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdebugcontroller.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdebugcontrollerdbus.go +14 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdrive.go +82 -214 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsclientconnection.go +24 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsconnection.go +80 -207 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsserverconnection.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gemblem.go +17 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gemblemedicon.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfile.go +450 -1148 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileattribute.go +19 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileenumerator.go +35 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileicon.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileinfo.go +84 -138 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileinputstream.go +23 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileiostream.go +27 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilemonitor.go +15 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilenamecompleter.go +16 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileoutputstream.go +27 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilterinputstream.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilteroutputstream.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gicon.go +25 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetaddress.go +34 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetaddressmask.go +21 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetsocketaddress.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginitable.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginputstream.go +48 -52 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioenums.go +1 -90 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioerror.go +13 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giomodule.go +29 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioscheduler.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giostream.go +29 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giotypes.go +60 -70 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giptosmessage.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gipv6tclassmessage.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/glistmodel.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gliststore.go +24 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gloadableicon.go +23 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemoryinputstream.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemorymonitor.go +12 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemoryoutputstream.go +19 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmenu.go +50 -62 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmenumodel.go +33 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmount.go +86 -215 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmountoperation.go +32 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnativesocketaddress.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnativevolumemonitor.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkaddress.go +21 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworking.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkmonitor.go +31 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkservice.go +19 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnotification.go +26 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/goutputstream.go +72 -86 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpermission.go +33 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableinputstream.go +22 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableoutputstream.go +27 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableutils.go +15 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpowerprofilemonitor.go +16 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpropertyaction.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxy.go +27 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyaddress.go +21 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyaddressenumerator.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyresolver.go +27 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gremoteactiongroup.go +15 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gresolver.go +67 -75 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gresource.go +23 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gseekable.go +27 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettings.go +67 -99 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettingsbackend.go +24 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettingsschema.go +43 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleaction.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleactiongroup.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleasyncresult.go +40 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleiostream.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimplepermission.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleproxyresolver.go +16 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocket.go +72 -87 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketaddress.go +19 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketaddressenumerator.go +20 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketclient.go +44 -54 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketconnectable.go +17 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketconnection.go +21 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketcontrolmessage.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketlistener.go +25 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketservice.go +16 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsrvtarget.go +11 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsubprocess.go +39 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsubprocesslauncher.go +31 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtask.go +52 -70 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtcpconnection.go +14 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtcpwrapperconnection.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtestdbus.go +22 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gthemedicon.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gthreadedresolver.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gthreadedsocketservice.go +12 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsbackend.go +33 -69 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlscertificate.go +29 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsclientconnection.go +29 -55 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsconnection.go +46 -56 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsdatabase.go +48 -51 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsfiledatabase.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsinteraction.go +31 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlspassword.go +22 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsserverconnection.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixconnection.go +20 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixcredentialsmessage.go +17 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixfdlist.go +19 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixsocketaddress.go +22 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvfs.go +24 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvolume.go +58 -143 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvolumemonitor.go +19 -11 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gzlibcompressor.go +18 -9 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gzlibdecompressor.go +15 -3 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/main.go +11 -2 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gallocator.go +28 -32 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/garray.go +59 -82 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gasyncqueue.go +39 -56 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gatomic.go +34 -43 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbacktrace.go +15 -5 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbase64.go +19 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbitlock.go +24 -23 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbookmarkfile.go +61 -69 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcache.go +15 -10 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcharset.go +19 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gchecksum.go +25 -23 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcompletion.go +17 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gconvert.go +28 -25 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdataset.go +28 -36 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdate.go +65 -103 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdatetime.go +66 -107 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdir.go +19 -12 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/genviron.go +21 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gerror.go +29 -30 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gfileutils.go +38 -45 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ggettext.go +19 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghash.go +53 -81 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghmac.go +24 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghook.go +26 -28 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghostutils.go +18 -11 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/giochannel.go +67 -83 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gkeyfile.go +62 -72 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/glib-types.go +12 -4 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/glist.go +11 -2 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmain.go +117 -181 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmappedfile.go +21 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmarkup.go +43 -51 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmem.go +31 -44 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmessages.go +45 -70 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gnode.go +35 -50 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/goption.go +43 -57 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gpathbuf.go +24 -26 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gpattern.go +23 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gpoll.go +13 -3 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gprimes.go +14 -3 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gprintf.go +20 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gqsort.go +15 -5 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gquark.go +19 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gqueue.go +52 -84 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grand.go +30 -33 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grcbox.go +27 -29 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grefcount.go +21 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grefstring.go +20 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gregex.go +57 -72 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grel.go +21 -20 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gscanner.go +30 -40 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gsequence.go +49 -74
| @@ -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 | ||
| @@ -35,8 +36,6 @@ var xSequenceAppend func(uintptr, uintptr) uintptr | |||
| 35 | 36 | ||
| 36 | 37 | // Adds a new item to the end of @seq. | |
| 37 | 38 | func (x *Sequence) Append(DataVar uintptr) *SequenceIter { | |
| 38 | - | core.LazyRegister(&xSequenceAppend, "GLIB", "g_sequence_append", false) | |
| 39 | - | ||
| 40 | 39 | cret := xSequenceAppend(x.GoPointer(), DataVar) | |
| 41 | 40 | if cret == 0 { | |
| 42 | 41 | return nil | |
| @@ -49,8 +48,6 @@ var xSequenceForeach func(uintptr, uintptr, uintptr) | |||
| 49 | 48 | // Calls @func for each item in the sequence passing @user_data | |
| 50 | 49 | // to the function. @func must not modify the sequence itself. | |
| 51 | 50 | func (x *Sequence) Foreach(FuncVar *Func, UserDataVar uintptr) { | |
| 52 | - | core.LazyRegister(&xSequenceForeach, "GLIB", "g_sequence_foreach", false) | |
| 53 | - | ||
| 54 | 51 | xSequenceForeach(x.GoPointer(), NewCallback(FuncVar), UserDataVar) | |
| 55 | 52 | } | |
| 56 | 53 | ||
| @@ -60,8 +57,6 @@ var xSequenceFree func(uintptr) | |||
| 60 | 57 | // function associated with it, that function is called on all items | |
| 61 | 58 | // in @seq. | |
| 62 | 59 | func (x *Sequence) Free() { | |
| 63 | - | core.LazyRegister(&xSequenceFree, "GLIB", "g_sequence_free", false) | |
| 64 | - | ||
| 65 | 60 | xSequenceFree(x.GoPointer()) | |
| 66 | 61 | } | |
| 67 | 62 | ||
| @@ -69,8 +64,6 @@ var xSequenceGetBeginIter func(uintptr) uintptr | |||
| 69 | 64 | ||
| 70 | 65 | // Returns the begin iterator for @seq. | |
| 71 | 66 | func (x *Sequence) GetBeginIter() *SequenceIter { | |
| 72 | - | core.LazyRegister(&xSequenceGetBeginIter, "GLIB", "g_sequence_get_begin_iter", false) | |
| 73 | - | ||
| 74 | 67 | cret := xSequenceGetBeginIter(x.GoPointer()) | |
| 75 | 68 | if cret == 0 { | |
| 76 | 69 | return nil | |
| @@ -82,8 +75,6 @@ var xSequenceGetEndIter func(uintptr) uintptr | |||
| 82 | 75 | ||
| 83 | 76 | // Returns the end iterator for @seg | |
| 84 | 77 | func (x *Sequence) GetEndIter() *SequenceIter { | |
| 85 | - | core.LazyRegister(&xSequenceGetEndIter, "GLIB", "g_sequence_get_end_iter", false) | |
| 86 | - | ||
| 87 | 78 | cret := xSequenceGetEndIter(x.GoPointer()) | |
| 88 | 79 | if cret == 0 { | |
| 89 | 80 | return nil | |
| @@ -96,8 +87,6 @@ var xSequenceGetIterAtPos func(uintptr, int) uintptr | |||
| 96 | 87 | // Returns the iterator at position @pos. If @pos is negative or larger | |
| 97 | 88 | // than the number of items in @seq, the end iterator is returned. | |
| 98 | 89 | func (x *Sequence) GetIterAtPos(PosVar int) *SequenceIter { | |
| 99 | - | core.LazyRegister(&xSequenceGetIterAtPos, "GLIB", "g_sequence_get_iter_at_pos", false) | |
| 100 | - | ||
| 101 | 90 | cret := xSequenceGetIterAtPos(x.GoPointer(), PosVar) | |
| 102 | 91 | if cret == 0 { | |
| 103 | 92 | return nil | |
| @@ -111,8 +100,6 @@ var xSequenceGetLength func(uintptr) int | |||
| 111 | 100 | // O(h) where `h' is the height of the tree. It is thus more efficient | |
| 112 | 101 | // to use g_sequence_is_empty() when comparing the length to zero. | |
| 113 | 102 | func (x *Sequence) GetLength() int { | |
| 114 | - | core.LazyRegister(&xSequenceGetLength, "GLIB", "g_sequence_get_length", false) | |
| 115 | - | ||
| 116 | 103 | cret := xSequenceGetLength(x.GoPointer()) | |
| 117 | 104 | return cret | |
| 118 | 105 | } | |
| @@ -132,8 +119,6 @@ var xSequenceInsertSorted func(uintptr, uintptr, uintptr, uintptr) uintptr | |||
| 132 | 119 | // it is more efficient to do unsorted insertions and then call | |
| 133 | 120 | // g_sequence_sort() or g_sequence_sort_iter(). | |
| 134 | 121 | func (x *Sequence) InsertSorted(DataVar uintptr, CmpFuncVar *CompareDataFunc, CmpDataVar uintptr) *SequenceIter { | |
| 135 | - | core.LazyRegister(&xSequenceInsertSorted, "GLIB", "g_sequence_insert_sorted", false) | |
| 136 | - | ||
| 137 | 122 | cret := xSequenceInsertSorted(x.GoPointer(), DataVar, NewCallback(CmpFuncVar), CmpDataVar) | |
| 138 | 123 | if cret == 0 { | |
| 139 | 124 | return nil | |
| @@ -156,8 +141,6 @@ var xSequenceInsertSortedIter func(uintptr, uintptr, uintptr, uintptr) uintptr | |||
| 156 | 141 | // it is more efficient to do unsorted insertions and then call | |
| 157 | 142 | // g_sequence_sort() or g_sequence_sort_iter(). | |
| 158 | 143 | func (x *Sequence) InsertSortedIter(DataVar uintptr, IterCmpVar *SequenceIterCompareFunc, CmpDataVar uintptr) *SequenceIter { | |
| 159 | - | core.LazyRegister(&xSequenceInsertSortedIter, "GLIB", "g_sequence_insert_sorted_iter", false) | |
| 160 | - | ||
| 161 | 144 | cret := xSequenceInsertSortedIter(x.GoPointer(), DataVar, NewCallback(IterCmpVar), CmpDataVar) | |
| 162 | 145 | if cret == 0 { | |
| 163 | 146 | return nil | |
| @@ -173,8 +156,6 @@ var xSequenceIsEmpty func(uintptr) bool | |||
| 173 | 156 | // g_sequence_get_length() being equal to zero. However this function is | |
| 174 | 157 | // implemented in O(1) running time. | |
| 175 | 158 | func (x *Sequence) IsEmpty() bool { | |
| 176 | - | core.LazyRegister(&xSequenceIsEmpty, "GLIB", "g_sequence_is_empty", false) | |
| 177 | - | ||
| 178 | 159 | cret := xSequenceIsEmpty(x.GoPointer()) | |
| 179 | 160 | return cret | |
| 180 | 161 | } | |
| @@ -195,8 +176,6 @@ var xSequenceLookup func(uintptr, uintptr, uintptr, uintptr) uintptr | |||
| 195 | 176 | // This function will fail if the data contained in the sequence is | |
| 196 | 177 | // unsorted. | |
| 197 | 178 | func (x *Sequence) Lookup(DataVar uintptr, CmpFuncVar *CompareDataFunc, CmpDataVar uintptr) *SequenceIter { | |
| 198 | - | core.LazyRegister(&xSequenceLookup, "GLIB", "g_sequence_lookup", false) | |
| 199 | - | ||
| 200 | 179 | cret := xSequenceLookup(x.GoPointer(), DataVar, NewCallback(CmpFuncVar), CmpDataVar) | |
| 201 | 180 | if cret == 0 { | |
| 202 | 181 | return nil | |
| @@ -217,8 +196,6 @@ var xSequenceLookupIter func(uintptr, uintptr, uintptr, uintptr) uintptr | |||
| 217 | 196 | // This function will fail if the data contained in the sequence is | |
| 218 | 197 | // unsorted. | |
| 219 | 198 | func (x *Sequence) LookupIter(DataVar uintptr, IterCmpVar *SequenceIterCompareFunc, CmpDataVar uintptr) *SequenceIter { | |
| 220 | - | core.LazyRegister(&xSequenceLookupIter, "GLIB", "g_sequence_lookup_iter", false) | |
| 221 | - | ||
| 222 | 199 | cret := xSequenceLookupIter(x.GoPointer(), DataVar, NewCallback(IterCmpVar), CmpDataVar) | |
| 223 | 200 | if cret == 0 { | |
| 224 | 201 | return nil | |
| @@ -230,8 +207,6 @@ var xSequencePrepend func(uintptr, uintptr) uintptr | |||
| 230 | 207 | ||
| 231 | 208 | // Adds a new item to the front of @seq | |
| 232 | 209 | func (x *Sequence) Prepend(DataVar uintptr) *SequenceIter { | |
| 233 | - | core.LazyRegister(&xSequencePrepend, "GLIB", "g_sequence_prepend", false) | |
| 234 | - | ||
| 235 | 210 | cret := xSequencePrepend(x.GoPointer(), DataVar) | |
| 236 | 211 | if cret == 0 { | |
| 237 | 212 | return nil | |
| @@ -255,8 +230,6 @@ var xSequenceSearch func(uintptr, uintptr, uintptr, uintptr) uintptr | |||
| 255 | 230 | // This function will fail if the data contained in the sequence is | |
| 256 | 231 | // unsorted. | |
| 257 | 232 | func (x *Sequence) Search(DataVar uintptr, CmpFuncVar *CompareDataFunc, CmpDataVar uintptr) *SequenceIter { | |
| 258 | - | core.LazyRegister(&xSequenceSearch, "GLIB", "g_sequence_search", false) | |
| 259 | - | ||
| 260 | 233 | cret := xSequenceSearch(x.GoPointer(), DataVar, NewCallback(CmpFuncVar), CmpDataVar) | |
| 261 | 234 | if cret == 0 { | |
| 262 | 235 | return nil | |
| @@ -280,8 +253,6 @@ var xSequenceSearchIter func(uintptr, uintptr, uintptr, uintptr) uintptr | |||
| 280 | 253 | // This function will fail if the data contained in the sequence is | |
| 281 | 254 | // unsorted. | |
| 282 | 255 | func (x *Sequence) SearchIter(DataVar uintptr, IterCmpVar *SequenceIterCompareFunc, CmpDataVar uintptr) *SequenceIter { | |
| 283 | - | core.LazyRegister(&xSequenceSearchIter, "GLIB", "g_sequence_search_iter", false) | |
| 284 | - | ||
| 285 | 256 | cret := xSequenceSearchIter(x.GoPointer(), DataVar, NewCallback(IterCmpVar), CmpDataVar) | |
| 286 | 257 | if cret == 0 { | |
| 287 | 258 | return nil | |
| @@ -298,8 +269,6 @@ var xSequenceSort func(uintptr, uintptr, uintptr) | |||
| 298 | 269 | // first comes before the second, and a positive value | |
| 299 | 270 | // if the second comes before the first. | |
| 300 | 271 | func (x *Sequence) Sort(CmpFuncVar *CompareDataFunc, CmpDataVar uintptr) { | |
| 301 | - | core.LazyRegister(&xSequenceSort, "GLIB", "g_sequence_sort", false) | |
| 302 | - | ||
| 303 | 272 | xSequenceSort(x.GoPointer(), NewCallback(CmpFuncVar), CmpDataVar) | |
| 304 | 273 | } | |
| 305 | 274 | ||
| @@ -313,8 +282,6 @@ var xSequenceSortIter func(uintptr, uintptr, uintptr) | |||
| 313 | 282 | // iterator comes before the second, and a positive value if the second | |
| 314 | 283 | // iterator comes before the first. | |
| 315 | 284 | func (x *Sequence) SortIter(CmpFuncVar *SequenceIterCompareFunc, CmpDataVar uintptr) { | |
| 316 | - | core.LazyRegister(&xSequenceSortIter, "GLIB", "g_sequence_sort_iter", false) | |
| 317 | - | ||
| 318 | 285 | xSequenceSortIter(x.GoPointer(), NewCallback(CmpFuncVar), CmpDataVar) | |
| 319 | 286 | } | |
| 320 | 287 | ||
| @@ -343,8 +310,6 @@ var xSequenceIterCompare func(uintptr, *SequenceIter) int | |||
| 343 | 310 | // | |
| 344 | 311 | // The @a and @b iterators must point into the same sequence. | |
| 345 | 312 | func (x *SequenceIter) Compare(BVar *SequenceIter) int { | |
| 346 | - | core.LazyRegister(&xSequenceIterCompare, "GLIB", "g_sequence_iter_compare", false) | |
| 347 | - | ||
| 348 | 313 | cret := xSequenceIterCompare(x.GoPointer(), BVar) | |
| 349 | 314 | return cret | |
| 350 | 315 | } | |
| @@ -353,8 +318,6 @@ var xSequenceIterGetPosition func(uintptr) int | |||
| 353 | 318 | ||
| 354 | 319 | // Returns the position of @iter | |
| 355 | 320 | func (x *SequenceIter) GetPosition() int { | |
| 356 | - | core.LazyRegister(&xSequenceIterGetPosition, "GLIB", "g_sequence_iter_get_position", false) | |
| 357 | - | ||
| 358 | 321 | cret := xSequenceIterGetPosition(x.GoPointer()) | |
| 359 | 322 | return cret | |
| 360 | 323 | } | |
| @@ -363,8 +326,6 @@ var xSequenceIterGetSequence func(uintptr) uintptr | |||
| 363 | 326 | ||
| 364 | 327 | // Returns the #GSequence that @iter points into. | |
| 365 | 328 | func (x *SequenceIter) GetSequence() *Sequence { | |
| 366 | - | core.LazyRegister(&xSequenceIterGetSequence, "GLIB", "g_sequence_iter_get_sequence", false) | |
| 367 | - | ||
| 368 | 329 | cret := xSequenceIterGetSequence(x.GoPointer()) | |
| 369 | 330 | if cret == 0 { | |
| 370 | 331 | return nil | |
| @@ -376,8 +337,6 @@ var xSequenceIterIsBegin func(uintptr) bool | |||
| 376 | 337 | ||
| 377 | 338 | // Returns whether @iter is the begin iterator | |
| 378 | 339 | func (x *SequenceIter) IsBegin() bool { | |
| 379 | - | core.LazyRegister(&xSequenceIterIsBegin, "GLIB", "g_sequence_iter_is_begin", false) | |
| 380 | - | ||
| 381 | 340 | cret := xSequenceIterIsBegin(x.GoPointer()) | |
| 382 | 341 | return cret | |
| 383 | 342 | } | |
| @@ -386,8 +345,6 @@ var xSequenceIterIsEnd func(uintptr) bool | |||
| 386 | 345 | ||
| 387 | 346 | // Returns whether @iter is the end iterator | |
| 388 | 347 | func (x *SequenceIter) IsEnd() bool { | |
| 389 | - | core.LazyRegister(&xSequenceIterIsEnd, "GLIB", "g_sequence_iter_is_end", false) | |
| 390 | - | ||
| 391 | 348 | cret := xSequenceIterIsEnd(x.GoPointer()) | |
| 392 | 349 | return cret | |
| 393 | 350 | } | |
| @@ -399,8 +356,6 @@ var xSequenceIterMove func(uintptr, int) uintptr | |||
| 399 | 356 | // the begin iterator is returned. If @iter is closer than @delta positions | |
| 400 | 357 | // to the end of the sequence, the end iterator is returned. | |
| 401 | 358 | func (x *SequenceIter) Move(DeltaVar int) *SequenceIter { | |
| 402 | - | core.LazyRegister(&xSequenceIterMove, "GLIB", "g_sequence_iter_move", false) | |
| 403 | - | ||
| 404 | 359 | cret := xSequenceIterMove(x.GoPointer(), DeltaVar) | |
| 405 | 360 | if cret == 0 { | |
| 406 | 361 | return nil | |
| @@ -413,8 +368,6 @@ var xSequenceIterNext func(uintptr) uintptr | |||
| 413 | 368 | // Returns an iterator pointing to the next position after @iter. | |
| 414 | 369 | // If @iter is the end iterator, the end iterator is returned. | |
| 415 | 370 | func (x *SequenceIter) Next() *SequenceIter { | |
| 416 | - | core.LazyRegister(&xSequenceIterNext, "GLIB", "g_sequence_iter_next", false) | |
| 417 | - | ||
| 418 | 371 | cret := xSequenceIterNext(x.GoPointer()) | |
| 419 | 372 | if cret == 0 { | |
| 420 | 373 | return nil | |
| @@ -427,8 +380,6 @@ var xSequenceIterPrev func(uintptr) uintptr | |||
| 427 | 380 | // Returns an iterator pointing to the previous position before @iter. | |
| 428 | 381 | // If @iter is the begin iterator, the begin iterator is returned. | |
| 429 | 382 | func (x *SequenceIter) Prev() *SequenceIter { | |
| 430 | - | core.LazyRegister(&xSequenceIterPrev, "GLIB", "g_sequence_iter_prev", false) | |
| 431 | - | ||
| 432 | 383 | cret := xSequenceIterPrev(x.GoPointer()) | |
| 433 | 384 | if cret == 0 { | |
| 434 | 385 | return nil | |
| @@ -442,8 +393,6 @@ var xSequenceForeachRange func(*SequenceIter, *SequenceIter, uintptr, uintptr) | |||
| 442 | 393 | // @user_data to the function. @func must not modify the sequence | |
| 443 | 394 | // itself. | |
| 444 | 395 | func SequenceForeachRange(BeginVar *SequenceIter, EndVar *SequenceIter, FuncVar *Func, UserDataVar uintptr) { | |
| 445 | - | core.LazyRegister(&xSequenceForeachRange, "GLIB", "g_sequence_foreach_range", false) | |
| 446 | - | ||
| 447 | 396 | xSequenceForeachRange(BeginVar, EndVar, NewCallback(FuncVar), UserDataVar) | |
| 448 | 397 | } | |
| 449 | 398 | ||
| @@ -451,8 +400,6 @@ var xSequenceGet func(*SequenceIter) uintptr | |||
| 451 | 400 | ||
| 452 | 401 | // Returns the data that @iter points to. | |
| 453 | 402 | func SequenceGet(IterVar *SequenceIter) uintptr { | |
| 454 | - | core.LazyRegister(&xSequenceGet, "GLIB", "g_sequence_get", false) | |
| 455 | - | ||
| 456 | 403 | cret := xSequenceGet(IterVar) | |
| 457 | 404 | return cret | |
| 458 | 405 | } | |
| @@ -461,8 +408,6 @@ var xSequenceInsertBefore func(*SequenceIter, uintptr) uintptr | |||
| 461 | 408 | ||
| 462 | 409 | // Inserts a new item just before the item pointed to by @iter. | |
| 463 | 410 | func SequenceInsertBefore(IterVar *SequenceIter, DataVar uintptr) *SequenceIter { | |
| 464 | - | core.LazyRegister(&xSequenceInsertBefore, "GLIB", "g_sequence_insert_before", false) | |
| 465 | - | ||
| 466 | 411 | cret := xSequenceInsertBefore(IterVar, DataVar) | |
| 467 | 412 | if cret == 0 { | |
| 468 | 413 | return nil | |
| @@ -477,8 +422,6 @@ var xSequenceMove func(*SequenceIter, *SequenceIter) | |||
| 477 | 422 | // after @src. It is allowed for @src and @dest to point into different | |
| 478 | 423 | // sequences. | |
| 479 | 424 | func SequenceMove(SrcVar *SequenceIter, DestVar *SequenceIter) { | |
| 480 | - | core.LazyRegister(&xSequenceMove, "GLIB", "g_sequence_move", false) | |
| 481 | - | ||
| 482 | 425 | xSequenceMove(SrcVar, DestVar) | |
| 483 | 426 | } | |
| 484 | 427 | ||
| @@ -493,8 +436,6 @@ var xSequenceMoveRange func(*SequenceIter, *SequenceIter, *SequenceIter) | |||
| 493 | 436 | // removed from the sequence. If @dest points to a place within | |
| 494 | 437 | // the (@begin, @end) range, the range does not move. | |
| 495 | 438 | func SequenceMoveRange(DestVar *SequenceIter, BeginVar *SequenceIter, EndVar *SequenceIter) { | |
| 496 | - | core.LazyRegister(&xSequenceMoveRange, "GLIB", "g_sequence_move_range", false) | |
| 497 | - | ||
| 498 | 439 | xSequenceMoveRange(DestVar, BeginVar, EndVar) | |
| 499 | 440 | } | |
| 500 | 441 | ||
| @@ -507,8 +448,6 @@ var xSequenceRangeGetMidpoint func(*SequenceIter, *SequenceIter) uintptr | |||
| 507 | 448 | // The @begin and @end iterators must both point to the same sequence | |
| 508 | 449 | // and @begin must come before or be equal to @end in the sequence. | |
| 509 | 450 | func SequenceRangeGetMidpoint(BeginVar *SequenceIter, EndVar *SequenceIter) *SequenceIter { | |
| 510 | - | core.LazyRegister(&xSequenceRangeGetMidpoint, "GLIB", "g_sequence_range_get_midpoint", false) | |
| 511 | - | ||
| 512 | 451 | cret := xSequenceRangeGetMidpoint(BeginVar, EndVar) | |
| 513 | 452 | if cret == 0 { | |
| 514 | 453 | return nil | |
| @@ -524,8 +463,6 @@ var xSequenceRemove func(*SequenceIter) | |||
| 524 | 463 | // If the sequence has a data destroy function associated with it, this | |
| 525 | 464 | // function is called on the data for the removed item. | |
| 526 | 465 | func SequenceRemove(IterVar *SequenceIter) { | |
| 527 | - | core.LazyRegister(&xSequenceRemove, "GLIB", "g_sequence_remove", false) | |
| 528 | - | ||
| 529 | 466 | xSequenceRemove(IterVar) | |
| 530 | 467 | } | |
| 531 | 468 | ||
| @@ -536,8 +473,6 @@ var xSequenceRemoveRange func(*SequenceIter, *SequenceIter) | |||
| 536 | 473 | // If the sequence has a data destroy function associated with it, this | |
| 537 | 474 | // function is called on the data for the removed items. | |
| 538 | 475 | func SequenceRemoveRange(BeginVar *SequenceIter, EndVar *SequenceIter) { | |
| 539 | - | core.LazyRegister(&xSequenceRemoveRange, "GLIB", "g_sequence_remove_range", false) | |
| 540 | - | ||
| 541 | 476 | xSequenceRemoveRange(BeginVar, EndVar) | |
| 542 | 477 | } | |
| 543 | 478 | ||
| @@ -547,8 +482,6 @@ var xSequenceSet func(*SequenceIter, uintptr) | |||
| 547 | 482 | // the sequence has a data destroy function associated with it, that | |
| 548 | 483 | // function is called on the existing data that @iter pointed to. | |
| 549 | 484 | func SequenceSet(IterVar *SequenceIter, DataVar uintptr) { | |
| 550 | - | core.LazyRegister(&xSequenceSet, "GLIB", "g_sequence_set", false) | |
| 551 | - | ||
| 552 | 485 | xSequenceSet(IterVar, DataVar) | |
| 553 | 486 | } | |
| 554 | 487 | ||
| @@ -565,8 +498,6 @@ var xSequenceSortChanged func(*SequenceIter, uintptr, uintptr) | |||
| 565 | 498 | // the first item comes before the second, and a positive value if | |
| 566 | 499 | // the second item comes before the first. | |
| 567 | 500 | func SequenceSortChanged(IterVar *SequenceIter, CmpFuncVar *CompareDataFunc, CmpDataVar uintptr) { | |
| 568 | - | core.LazyRegister(&xSequenceSortChanged, "GLIB", "g_sequence_sort_changed", false) | |
| 569 | - | ||
| 570 | 501 | xSequenceSortChanged(IterVar, NewCallback(CmpFuncVar), CmpDataVar) | |
| 571 | 502 | } | |
| 572 | 503 | ||
| @@ -582,8 +513,6 @@ var xSequenceSortChangedIter func(*SequenceIter, uintptr, uintptr) | |||
| 582 | 513 | // iterator comes before the second, and a positive value if the second | |
| 583 | 514 | // iterator comes before the first. | |
| 584 | 515 | func SequenceSortChangedIter(IterVar *SequenceIter, IterCmpVar *SequenceIterCompareFunc, CmpDataVar uintptr) { | |
| 585 | - | core.LazyRegister(&xSequenceSortChangedIter, "GLIB", "g_sequence_sort_changed_iter", false) | |
| 586 | - | ||
| 587 | 516 | xSequenceSortChangedIter(IterVar, NewCallback(IterCmpVar), CmpDataVar) | |
| 588 | 517 | } | |
| 589 | 518 | ||
| @@ -592,12 +521,58 @@ var xSequenceSwap func(*SequenceIter, *SequenceIter) | |||
| 592 | 521 | // Swaps the items pointed to by @a and @b. It is allowed for @a and @b | |
| 593 | 522 | // to point into difference sequences. | |
| 594 | 523 | func SequenceSwap(AVar *SequenceIter, BVar *SequenceIter) { | |
| 595 | - | core.LazyRegister(&xSequenceSwap, "GLIB", "g_sequence_swap", false) | |
| 596 | - | ||
| 597 | 524 | xSequenceSwap(AVar, BVar) | |
| 598 | 525 | } | |
| 599 | 526 | ||
| 600 | 527 | func init() { | |
| 601 | 528 | core.SetPackageName("GLIB", "glib-2.0") | |
| 602 | 529 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | |
| 530 | + | var libs []uintptr | |
| 531 | + | for _, libPath := range core.GetPaths("GLIB") { | |
| 532 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 533 | + | if err != nil { | |
| 534 | + | panic(err) | |
| 535 | + | } | |
| 536 | + | libs = append(libs, lib) | |
| 537 | + | } | |
| 538 | + | ||
| 539 | + | core.PuregoSafeRegister(&xSequenceForeachRange, libs, "g_sequence_foreach_range") | |
| 540 | + | core.PuregoSafeRegister(&xSequenceGet, libs, "g_sequence_get") | |
| 541 | + | core.PuregoSafeRegister(&xSequenceInsertBefore, libs, "g_sequence_insert_before") | |
| 542 | + | core.PuregoSafeRegister(&xSequenceMove, libs, "g_sequence_move") | |
| 543 | + | core.PuregoSafeRegister(&xSequenceMoveRange, libs, "g_sequence_move_range") | |
| 544 | + | core.PuregoSafeRegister(&xSequenceRangeGetMidpoint, libs, "g_sequence_range_get_midpoint") | |
| 545 | + | core.PuregoSafeRegister(&xSequenceRemove, libs, "g_sequence_remove") | |
| 546 | + | core.PuregoSafeRegister(&xSequenceRemoveRange, libs, "g_sequence_remove_range") | |
| 547 | + | core.PuregoSafeRegister(&xSequenceSet, libs, "g_sequence_set") | |
| 548 | + | core.PuregoSafeRegister(&xSequenceSortChanged, libs, "g_sequence_sort_changed") | |
| 549 | + | core.PuregoSafeRegister(&xSequenceSortChangedIter, libs, "g_sequence_sort_changed_iter") | |
| 550 | + | core.PuregoSafeRegister(&xSequenceSwap, libs, "g_sequence_swap") | |
| 551 | + | ||
| 552 | + | core.PuregoSafeRegister(&xSequenceAppend, libs, "g_sequence_append") | |
| 553 | + | core.PuregoSafeRegister(&xSequenceForeach, libs, "g_sequence_foreach") | |
| 554 | + | core.PuregoSafeRegister(&xSequenceFree, libs, "g_sequence_free") | |
| 555 | + | core.PuregoSafeRegister(&xSequenceGetBeginIter, libs, "g_sequence_get_begin_iter") | |
| 556 | + | core.PuregoSafeRegister(&xSequenceGetEndIter, libs, "g_sequence_get_end_iter") | |
| 557 | + | core.PuregoSafeRegister(&xSequenceGetIterAtPos, libs, "g_sequence_get_iter_at_pos") | |
| 558 | + | core.PuregoSafeRegister(&xSequenceGetLength, libs, "g_sequence_get_length") | |
| 559 | + | core.PuregoSafeRegister(&xSequenceInsertSorted, libs, "g_sequence_insert_sorted") | |
| 560 | + | core.PuregoSafeRegister(&xSequenceInsertSortedIter, libs, "g_sequence_insert_sorted_iter") | |
| 561 | + | core.PuregoSafeRegister(&xSequenceIsEmpty, libs, "g_sequence_is_empty") | |
| 562 | + | core.PuregoSafeRegister(&xSequenceLookup, libs, "g_sequence_lookup") | |
| 563 | + | core.PuregoSafeRegister(&xSequenceLookupIter, libs, "g_sequence_lookup_iter") | |
| 564 | + | core.PuregoSafeRegister(&xSequencePrepend, libs, "g_sequence_prepend") | |
| 565 | + | core.PuregoSafeRegister(&xSequenceSearch, libs, "g_sequence_search") | |
| 566 | + | core.PuregoSafeRegister(&xSequenceSearchIter, libs, "g_sequence_search_iter") | |
| 567 | + | core.PuregoSafeRegister(&xSequenceSort, libs, "g_sequence_sort") | |
| 568 | + | core.PuregoSafeRegister(&xSequenceSortIter, libs, "g_sequence_sort_iter") | |
| 569 | + | ||
| 570 | + | core.PuregoSafeRegister(&xSequenceIterCompare, libs, "g_sequence_iter_compare") | |
| 571 | + | core.PuregoSafeRegister(&xSequenceIterGetPosition, libs, "g_sequence_iter_get_position") | |
| 572 | + | core.PuregoSafeRegister(&xSequenceIterGetSequence, libs, "g_sequence_iter_get_sequence") | |
| 573 | + | core.PuregoSafeRegister(&xSequenceIterIsBegin, libs, "g_sequence_iter_is_begin") | |
| 574 | + | core.PuregoSafeRegister(&xSequenceIterIsEnd, libs, "g_sequence_iter_is_end") | |
| 575 | + | core.PuregoSafeRegister(&xSequenceIterMove, libs, "g_sequence_iter_move") | |
| 576 | + | core.PuregoSafeRegister(&xSequenceIterNext, libs, "g_sequence_iter_next") | |
| 577 | + | core.PuregoSafeRegister(&xSequenceIterPrev, libs, "g_sequence_iter_prev") | |
| 603 | 578 | } | |
| @@ -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 | ||||
| @@ -35,8 +36,6 @@ var xSequenceAppend func(uintptr, uintptr) uintptr | |||||
| 35 | 36 | ||||
| 36 | // Adds a new item to the end of @seq. | 37 | // Adds a new item to the end of @seq. | ||
| 37 | func (x *Sequence) Append(DataVar uintptr) *SequenceIter { | 38 | func (x *Sequence) Append(DataVar uintptr) *SequenceIter { | ||
| 38 | - | core.LazyRegister(&xSequenceAppend, "GLIB", "g_sequence_append", false) | |||
| 39 | - | ||||
| 40 | cret := xSequenceAppend(x.GoPointer(), DataVar) | 39 | cret := xSequenceAppend(x.GoPointer(), DataVar) | ||
| 41 | if cret == 0 { | 40 | if cret == 0 { | ||
| 42 | return nil | 41 | return nil | ||
| @@ -49,8 +48,6 @@ var xSequenceForeach func(uintptr, uintptr, uintptr) | |||||
| 49 | // Calls @func for each item in the sequence passing @user_data | 48 | // Calls @func for each item in the sequence passing @user_data | ||
| 50 | // to the function. @func must not modify the sequence itself. | 49 | // to the function. @func must not modify the sequence itself. | ||
| 51 | func (x *Sequence) Foreach(FuncVar *Func, UserDataVar uintptr) { | 50 | func (x *Sequence) Foreach(FuncVar *Func, UserDataVar uintptr) { | ||
| 52 | - | core.LazyRegister(&xSequenceForeach, "GLIB", "g_sequence_foreach", false) | |||
| 53 | - | ||||
| 54 | xSequenceForeach(x.GoPointer(), NewCallback(FuncVar), UserDataVar) | 51 | xSequenceForeach(x.GoPointer(), NewCallback(FuncVar), UserDataVar) | ||
| 55 | } | 52 | } | ||
| 56 | 53 | ||||
| @@ -60,8 +57,6 @@ var xSequenceFree func(uintptr) | |||||
| 60 | // function associated with it, that function is called on all items | 57 | // function associated with it, that function is called on all items | ||
| 61 | // in @seq. | 58 | // in @seq. | ||
| 62 | func (x *Sequence) Free() { | 59 | func (x *Sequence) Free() { | ||
| 63 | - | core.LazyRegister(&xSequenceFree, "GLIB", "g_sequence_free", false) | |||
| 64 | - | ||||
| 65 | xSequenceFree(x.GoPointer()) | 60 | xSequenceFree(x.GoPointer()) | ||
| 66 | } | 61 | } | ||
| 67 | 62 | ||||
| @@ -69,8 +64,6 @@ var xSequenceGetBeginIter func(uintptr) uintptr | |||||
| 69 | 64 | ||||
| 70 | // Returns the begin iterator for @seq. | 65 | // Returns the begin iterator for @seq. | ||
| 71 | func (x *Sequence) GetBeginIter() *SequenceIter { | 66 | func (x *Sequence) GetBeginIter() *SequenceIter { | ||
| 72 | - | core.LazyRegister(&xSequenceGetBeginIter, "GLIB", "g_sequence_get_begin_iter", false) | |||
| 73 | - | ||||
| 74 | cret := xSequenceGetBeginIter(x.GoPointer()) | 67 | cret := xSequenceGetBeginIter(x.GoPointer()) | ||
| 75 | if cret == 0 { | 68 | if cret == 0 { | ||
| 76 | return nil | 69 | return nil | ||
| @@ -82,8 +75,6 @@ var xSequenceGetEndIter func(uintptr) uintptr | |||||
| 82 | 75 | ||||
| 83 | // Returns the end iterator for @seg | 76 | // Returns the end iterator for @seg | ||
| 84 | func (x *Sequence) GetEndIter() *SequenceIter { | 77 | func (x *Sequence) GetEndIter() *SequenceIter { | ||
| 85 | - | core.LazyRegister(&xSequenceGetEndIter, "GLIB", "g_sequence_get_end_iter", false) | |||
| 86 | - | ||||
| 87 | cret := xSequenceGetEndIter(x.GoPointer()) | 78 | cret := xSequenceGetEndIter(x.GoPointer()) | ||
| 88 | if cret == 0 { | 79 | if cret == 0 { | ||
| 89 | return nil | 80 | return nil | ||
| @@ -96,8 +87,6 @@ var xSequenceGetIterAtPos func(uintptr, int) uintptr | |||||
| 96 | // Returns the iterator at position @pos. If @pos is negative or larger | 87 | // Returns the iterator at position @pos. If @pos is negative or larger | ||
| 97 | // than the number of items in @seq, the end iterator is returned. | 88 | // than the number of items in @seq, the end iterator is returned. | ||
| 98 | func (x *Sequence) GetIterAtPos(PosVar int) *SequenceIter { | 89 | func (x *Sequence) GetIterAtPos(PosVar int) *SequenceIter { | ||
| 99 | - | core.LazyRegister(&xSequenceGetIterAtPos, "GLIB", "g_sequence_get_iter_at_pos", false) | |||
| 100 | - | ||||
| 101 | cret := xSequenceGetIterAtPos(x.GoPointer(), PosVar) | 90 | cret := xSequenceGetIterAtPos(x.GoPointer(), PosVar) | ||
| 102 | if cret == 0 { | 91 | if cret == 0 { | ||
| 103 | return nil | 92 | return nil | ||
| @@ -111,8 +100,6 @@ var xSequenceGetLength func(uintptr) int | |||||
| 111 | // O(h) where `h' is the height of the tree. It is thus more efficient | 100 | // O(h) where `h' is the height of the tree. It is thus more efficient | ||
| 112 | // to use g_sequence_is_empty() when comparing the length to zero. | 101 | // to use g_sequence_is_empty() when comparing the length to zero. | ||
| 113 | func (x *Sequence) GetLength() int { | 102 | func (x *Sequence) GetLength() int { | ||
| 114 | - | core.LazyRegister(&xSequenceGetLength, "GLIB", "g_sequence_get_length", false) | |||
| 115 | - | ||||
| 116 | cret := xSequenceGetLength(x.GoPointer()) | 103 | cret := xSequenceGetLength(x.GoPointer()) | ||
| 117 | return cret | 104 | return cret | ||
| 118 | } | 105 | } | ||
| @@ -132,8 +119,6 @@ var xSequenceInsertSorted func(uintptr, uintptr, uintptr, uintptr) uintptr | |||||
| 132 | // it is more efficient to do unsorted insertions and then call | 119 | // it is more efficient to do unsorted insertions and then call | ||
| 133 | // g_sequence_sort() or g_sequence_sort_iter(). | 120 | // g_sequence_sort() or g_sequence_sort_iter(). | ||
| 134 | func (x *Sequence) InsertSorted(DataVar uintptr, CmpFuncVar *CompareDataFunc, CmpDataVar uintptr) *SequenceIter { | 121 | func (x *Sequence) InsertSorted(DataVar uintptr, CmpFuncVar *CompareDataFunc, CmpDataVar uintptr) *SequenceIter { | ||
| 135 | - | core.LazyRegister(&xSequenceInsertSorted, "GLIB", "g_sequence_insert_sorted", false) | |||
| 136 | - | ||||
| 137 | cret := xSequenceInsertSorted(x.GoPointer(), DataVar, NewCallback(CmpFuncVar), CmpDataVar) | 122 | cret := xSequenceInsertSorted(x.GoPointer(), DataVar, NewCallback(CmpFuncVar), CmpDataVar) | ||
| 138 | if cret == 0 { | 123 | if cret == 0 { | ||
| 139 | return nil | 124 | return nil | ||
| @@ -156,8 +141,6 @@ var xSequenceInsertSortedIter func(uintptr, uintptr, uintptr, uintptr) uintptr | |||||
| 156 | // it is more efficient to do unsorted insertions and then call | 141 | // it is more efficient to do unsorted insertions and then call | ||
| 157 | // g_sequence_sort() or g_sequence_sort_iter(). | 142 | // g_sequence_sort() or g_sequence_sort_iter(). | ||
| 158 | func (x *Sequence) InsertSortedIter(DataVar uintptr, IterCmpVar *SequenceIterCompareFunc, CmpDataVar uintptr) *SequenceIter { | 143 | func (x *Sequence) InsertSortedIter(DataVar uintptr, IterCmpVar *SequenceIterCompareFunc, CmpDataVar uintptr) *SequenceIter { | ||
| 159 | - | core.LazyRegister(&xSequenceInsertSortedIter, "GLIB", "g_sequence_insert_sorted_iter", false) | |||
| 160 | - | ||||
| 161 | cret := xSequenceInsertSortedIter(x.GoPointer(), DataVar, NewCallback(IterCmpVar), CmpDataVar) | 144 | cret := xSequenceInsertSortedIter(x.GoPointer(), DataVar, NewCallback(IterCmpVar), CmpDataVar) | ||
| 162 | if cret == 0 { | 145 | if cret == 0 { | ||
| 163 | return nil | 146 | return nil | ||
| @@ -173,8 +156,6 @@ var xSequenceIsEmpty func(uintptr) bool | |||||
| 173 | // g_sequence_get_length() being equal to zero. However this function is | 156 | // g_sequence_get_length() being equal to zero. However this function is | ||
| 174 | // implemented in O(1) running time. | 157 | // implemented in O(1) running time. | ||
| 175 | func (x *Sequence) IsEmpty() bool { | 158 | func (x *Sequence) IsEmpty() bool { | ||
| 176 | - | core.LazyRegister(&xSequenceIsEmpty, "GLIB", "g_sequence_is_empty", false) | |||
| 177 | - | ||||
| 178 | cret := xSequenceIsEmpty(x.GoPointer()) | 159 | cret := xSequenceIsEmpty(x.GoPointer()) | ||
| 179 | return cret | 160 | return cret | ||
| 180 | } | 161 | } | ||
| @@ -195,8 +176,6 @@ var xSequenceLookup func(uintptr, uintptr, uintptr, uintptr) uintptr | |||||
| 195 | // This function will fail if the data contained in the sequence is | 176 | // This function will fail if the data contained in the sequence is | ||
| 196 | // unsorted. | 177 | // unsorted. | ||
| 197 | func (x *Sequence) Lookup(DataVar uintptr, CmpFuncVar *CompareDataFunc, CmpDataVar uintptr) *SequenceIter { | 178 | func (x *Sequence) Lookup(DataVar uintptr, CmpFuncVar *CompareDataFunc, CmpDataVar uintptr) *SequenceIter { | ||
| 198 | - | core.LazyRegister(&xSequenceLookup, "GLIB", "g_sequence_lookup", false) | |||
| 199 | - | ||||
| 200 | cret := xSequenceLookup(x.GoPointer(), DataVar, NewCallback(CmpFuncVar), CmpDataVar) | 179 | cret := xSequenceLookup(x.GoPointer(), DataVar, NewCallback(CmpFuncVar), CmpDataVar) | ||
| 201 | if cret == 0 { | 180 | if cret == 0 { | ||
| 202 | return nil | 181 | return nil | ||
| @@ -217,8 +196,6 @@ var xSequenceLookupIter func(uintptr, uintptr, uintptr, uintptr) uintptr | |||||
| 217 | // This function will fail if the data contained in the sequence is | 196 | // This function will fail if the data contained in the sequence is | ||
| 218 | // unsorted. | 197 | // unsorted. | ||
| 219 | func (x *Sequence) LookupIter(DataVar uintptr, IterCmpVar *SequenceIterCompareFunc, CmpDataVar uintptr) *SequenceIter { | 198 | func (x *Sequence) LookupIter(DataVar uintptr, IterCmpVar *SequenceIterCompareFunc, CmpDataVar uintptr) *SequenceIter { | ||
| 220 | - | core.LazyRegister(&xSequenceLookupIter, "GLIB", "g_sequence_lookup_iter", false) | |||
| 221 | - | ||||
| 222 | cret := xSequenceLookupIter(x.GoPointer(), DataVar, NewCallback(IterCmpVar), CmpDataVar) | 199 | cret := xSequenceLookupIter(x.GoPointer(), DataVar, NewCallback(IterCmpVar), CmpDataVar) | ||
| 223 | if cret == 0 { | 200 | if cret == 0 { | ||
| 224 | return nil | 201 | return nil | ||
| @@ -230,8 +207,6 @@ var xSequencePrepend func(uintptr, uintptr) uintptr | |||||
| 230 | 207 | ||||
| 231 | // Adds a new item to the front of @seq | 208 | // Adds a new item to the front of @seq | ||
| 232 | func (x *Sequence) Prepend(DataVar uintptr) *SequenceIter { | 209 | func (x *Sequence) Prepend(DataVar uintptr) *SequenceIter { | ||
| 233 | - | core.LazyRegister(&xSequencePrepend, "GLIB", "g_sequence_prepend", false) | |||
| 234 | - | ||||
| 235 | cret := xSequencePrepend(x.GoPointer(), DataVar) | 210 | cret := xSequencePrepend(x.GoPointer(), DataVar) | ||
| 236 | if cret == 0 { | 211 | if cret == 0 { | ||
| 237 | return nil | 212 | return nil | ||
| @@ -255,8 +230,6 @@ var xSequenceSearch func(uintptr, uintptr, uintptr, uintptr) uintptr | |||||
| 255 | // This function will fail if the data contained in the sequence is | 230 | // This function will fail if the data contained in the sequence is | ||
| 256 | // unsorted. | 231 | // unsorted. | ||
| 257 | func (x *Sequence) Search(DataVar uintptr, CmpFuncVar *CompareDataFunc, CmpDataVar uintptr) *SequenceIter { | 232 | func (x *Sequence) Search(DataVar uintptr, CmpFuncVar *CompareDataFunc, CmpDataVar uintptr) *SequenceIter { | ||
| 258 | - | core.LazyRegister(&xSequenceSearch, "GLIB", "g_sequence_search", false) | |||
| 259 | - | ||||
| 260 | cret := xSequenceSearch(x.GoPointer(), DataVar, NewCallback(CmpFuncVar), CmpDataVar) | 233 | cret := xSequenceSearch(x.GoPointer(), DataVar, NewCallback(CmpFuncVar), CmpDataVar) | ||
| 261 | if cret == 0 { | 234 | if cret == 0 { | ||
| 262 | return nil | 235 | return nil | ||
| @@ -280,8 +253,6 @@ var xSequenceSearchIter func(uintptr, uintptr, uintptr, uintptr) uintptr | |||||
| 280 | // This function will fail if the data contained in the sequence is | 253 | // This function will fail if the data contained in the sequence is | ||
| 281 | // unsorted. | 254 | // unsorted. | ||
| 282 | func (x *Sequence) SearchIter(DataVar uintptr, IterCmpVar *SequenceIterCompareFunc, CmpDataVar uintptr) *SequenceIter { | 255 | func (x *Sequence) SearchIter(DataVar uintptr, IterCmpVar *SequenceIterCompareFunc, CmpDataVar uintptr) *SequenceIter { | ||
| 283 | - | core.LazyRegister(&xSequenceSearchIter, "GLIB", "g_sequence_search_iter", false) | |||
| 284 | - | ||||
| 285 | cret := xSequenceSearchIter(x.GoPointer(), DataVar, NewCallback(IterCmpVar), CmpDataVar) | 256 | cret := xSequenceSearchIter(x.GoPointer(), DataVar, NewCallback(IterCmpVar), CmpDataVar) | ||
| 286 | if cret == 0 { | 257 | if cret == 0 { | ||
| 287 | return nil | 258 | return nil | ||
| @@ -298,8 +269,6 @@ var xSequenceSort func(uintptr, uintptr, uintptr) | |||||
| 298 | // first comes before the second, and a positive value | 269 | // first comes before the second, and a positive value | ||
| 299 | // if the second comes before the first. | 270 | // if the second comes before the first. | ||
| 300 | func (x *Sequence) Sort(CmpFuncVar *CompareDataFunc, CmpDataVar uintptr) { | 271 | func (x *Sequence) Sort(CmpFuncVar *CompareDataFunc, CmpDataVar uintptr) { | ||
| 301 | - | core.LazyRegister(&xSequenceSort, "GLIB", "g_sequence_sort", false) | |||
| 302 | - | ||||
| 303 | xSequenceSort(x.GoPointer(), NewCallback(CmpFuncVar), CmpDataVar) | 272 | xSequenceSort(x.GoPointer(), NewCallback(CmpFuncVar), CmpDataVar) | ||
| 304 | } | 273 | } | ||
| 305 | 274 | ||||
| @@ -313,8 +282,6 @@ var xSequenceSortIter func(uintptr, uintptr, uintptr) | |||||
| 313 | // iterator comes before the second, and a positive value if the second | 282 | // iterator comes before the second, and a positive value if the second | ||
| 314 | // iterator comes before the first. | 283 | // iterator comes before the first. | ||
| 315 | func (x *Sequence) SortIter(CmpFuncVar *SequenceIterCompareFunc, CmpDataVar uintptr) { | 284 | func (x *Sequence) SortIter(CmpFuncVar *SequenceIterCompareFunc, CmpDataVar uintptr) { | ||
| 316 | - | core.LazyRegister(&xSequenceSortIter, "GLIB", "g_sequence_sort_iter", false) | |||
| 317 | - | ||||
| 318 | xSequenceSortIter(x.GoPointer(), NewCallback(CmpFuncVar), CmpDataVar) | 285 | xSequenceSortIter(x.GoPointer(), NewCallback(CmpFuncVar), CmpDataVar) | ||
| 319 | } | 286 | } | ||
| 320 | 287 | ||||
| @@ -343,8 +310,6 @@ var xSequenceIterCompare func(uintptr, *SequenceIter) int | |||||
| 343 | // | 310 | // | ||
| 344 | // The @a and @b iterators must point into the same sequence. | 311 | // The @a and @b iterators must point into the same sequence. | ||
| 345 | func (x *SequenceIter) Compare(BVar *SequenceIter) int { | 312 | func (x *SequenceIter) Compare(BVar *SequenceIter) int { | ||
| 346 | - | core.LazyRegister(&xSequenceIterCompare, "GLIB", "g_sequence_iter_compare", false) | |||
| 347 | - | ||||
| 348 | cret := xSequenceIterCompare(x.GoPointer(), BVar) | 313 | cret := xSequenceIterCompare(x.GoPointer(), BVar) | ||
| 349 | return cret | 314 | return cret | ||
| 350 | } | 315 | } | ||
| @@ -353,8 +318,6 @@ var xSequenceIterGetPosition func(uintptr) int | |||||
| 353 | 318 | ||||
| 354 | // Returns the position of @iter | 319 | // Returns the position of @iter | ||
| 355 | func (x *SequenceIter) GetPosition() int { | 320 | func (x *SequenceIter) GetPosition() int { | ||
| 356 | - | core.LazyRegister(&xSequenceIterGetPosition, "GLIB", "g_sequence_iter_get_position", false) | |||
| 357 | - | ||||
| 358 | cret := xSequenceIterGetPosition(x.GoPointer()) | 321 | cret := xSequenceIterGetPosition(x.GoPointer()) | ||
| 359 | return cret | 322 | return cret | ||
| 360 | } | 323 | } | ||
| @@ -363,8 +326,6 @@ var xSequenceIterGetSequence func(uintptr) uintptr | |||||
| 363 | 326 | ||||
| 364 | // Returns the #GSequence that @iter points into. | 327 | // Returns the #GSequence that @iter points into. | ||
| 365 | func (x *SequenceIter) GetSequence() *Sequence { | 328 | func (x *SequenceIter) GetSequence() *Sequence { | ||
| 366 | - | core.LazyRegister(&xSequenceIterGetSequence, "GLIB", "g_sequence_iter_get_sequence", false) | |||
| 367 | - | ||||
| 368 | cret := xSequenceIterGetSequence(x.GoPointer()) | 329 | cret := xSequenceIterGetSequence(x.GoPointer()) | ||
| 369 | if cret == 0 { | 330 | if cret == 0 { | ||
| 370 | return nil | 331 | return nil | ||
| @@ -376,8 +337,6 @@ var xSequenceIterIsBegin func(uintptr) bool | |||||
| 376 | 337 | ||||
| 377 | // Returns whether @iter is the begin iterator | 338 | // Returns whether @iter is the begin iterator | ||
| 378 | func (x *SequenceIter) IsBegin() bool { | 339 | func (x *SequenceIter) IsBegin() bool { | ||
| 379 | - | core.LazyRegister(&xSequenceIterIsBegin, "GLIB", "g_sequence_iter_is_begin", false) | |||
| 380 | - | ||||
| 381 | cret := xSequenceIterIsBegin(x.GoPointer()) | 340 | cret := xSequenceIterIsBegin(x.GoPointer()) | ||
| 382 | return cret | 341 | return cret | ||
| 383 | } | 342 | } | ||
| @@ -386,8 +345,6 @@ var xSequenceIterIsEnd func(uintptr) bool | |||||
| 386 | 345 | ||||
| 387 | // Returns whether @iter is the end iterator | 346 | // Returns whether @iter is the end iterator | ||
| 388 | func (x *SequenceIter) IsEnd() bool { | 347 | func (x *SequenceIter) IsEnd() bool { | ||
| 389 | - | core.LazyRegister(&xSequenceIterIsEnd, "GLIB", "g_sequence_iter_is_end", false) | |||
| 390 | - | ||||
| 391 | cret := xSequenceIterIsEnd(x.GoPointer()) | 348 | cret := xSequenceIterIsEnd(x.GoPointer()) | ||
| 392 | return cret | 349 | return cret | ||
| 393 | } | 350 | } | ||
| @@ -399,8 +356,6 @@ var xSequenceIterMove func(uintptr, int) uintptr | |||||
| 399 | // the begin iterator is returned. If @iter is closer than @delta positions | 356 | // the begin iterator is returned. If @iter is closer than @delta positions | ||
| 400 | // to the end of the sequence, the end iterator is returned. | 357 | // to the end of the sequence, the end iterator is returned. | ||
| 401 | func (x *SequenceIter) Move(DeltaVar int) *SequenceIter { | 358 | func (x *SequenceIter) Move(DeltaVar int) *SequenceIter { | ||
| 402 | - | core.LazyRegister(&xSequenceIterMove, "GLIB", "g_sequence_iter_move", false) | |||
| 403 | - | ||||
| 404 | cret := xSequenceIterMove(x.GoPointer(), DeltaVar) | 359 | cret := xSequenceIterMove(x.GoPointer(), DeltaVar) | ||
| 405 | if cret == 0 { | 360 | if cret == 0 { | ||
| 406 | return nil | 361 | return nil | ||
| @@ -413,8 +368,6 @@ var xSequenceIterNext func(uintptr) uintptr | |||||
| 413 | // Returns an iterator pointing to the next position after @iter. | 368 | // Returns an iterator pointing to the next position after @iter. | ||
| 414 | // If @iter is the end iterator, the end iterator is returned. | 369 | // If @iter is the end iterator, the end iterator is returned. | ||
| 415 | func (x *SequenceIter) Next() *SequenceIter { | 370 | func (x *SequenceIter) Next() *SequenceIter { | ||
| 416 | - | core.LazyRegister(&xSequenceIterNext, "GLIB", "g_sequence_iter_next", false) | |||
| 417 | - | ||||
| 418 | cret := xSequenceIterNext(x.GoPointer()) | 371 | cret := xSequenceIterNext(x.GoPointer()) | ||
| 419 | if cret == 0 { | 372 | if cret == 0 { | ||
| 420 | return nil | 373 | return nil | ||
| @@ -427,8 +380,6 @@ var xSequenceIterPrev func(uintptr) uintptr | |||||
| 427 | // Returns an iterator pointing to the previous position before @iter. | 380 | // Returns an iterator pointing to the previous position before @iter. | ||
| 428 | // If @iter is the begin iterator, the begin iterator is returned. | 381 | // If @iter is the begin iterator, the begin iterator is returned. | ||
| 429 | func (x *SequenceIter) Prev() *SequenceIter { | 382 | func (x *SequenceIter) Prev() *SequenceIter { | ||
| 430 | - | core.LazyRegister(&xSequenceIterPrev, "GLIB", "g_sequence_iter_prev", false) | |||
| 431 | - | ||||
| 432 | cret := xSequenceIterPrev(x.GoPointer()) | 383 | cret := xSequenceIterPrev(x.GoPointer()) | ||
| 433 | if cret == 0 { | 384 | if cret == 0 { | ||
| 434 | return nil | 385 | return nil | ||
| @@ -442,8 +393,6 @@ var xSequenceForeachRange func(*SequenceIter, *SequenceIter, uintptr, uintptr) | |||||
| 442 | // @user_data to the function. @func must not modify the sequence | 393 | // @user_data to the function. @func must not modify the sequence | ||
| 443 | // itself. | 394 | // itself. | ||
| 444 | func SequenceForeachRange(BeginVar *SequenceIter, EndVar *SequenceIter, FuncVar *Func, UserDataVar uintptr) { | 395 | func SequenceForeachRange(BeginVar *SequenceIter, EndVar *SequenceIter, FuncVar *Func, UserDataVar uintptr) { | ||
| 445 | - | core.LazyRegister(&xSequenceForeachRange, "GLIB", "g_sequence_foreach_range", false) | |||
| 446 | - | ||||
| 447 | xSequenceForeachRange(BeginVar, EndVar, NewCallback(FuncVar), UserDataVar) | 396 | xSequenceForeachRange(BeginVar, EndVar, NewCallback(FuncVar), UserDataVar) | ||
| 448 | } | 397 | } | ||
| 449 | 398 | ||||
| @@ -451,8 +400,6 @@ var xSequenceGet func(*SequenceIter) uintptr | |||||
| 451 | 400 | ||||
| 452 | // Returns the data that @iter points to. | 401 | // Returns the data that @iter points to. | ||
| 453 | func SequenceGet(IterVar *SequenceIter) uintptr { | 402 | func SequenceGet(IterVar *SequenceIter) uintptr { | ||
| 454 | - | core.LazyRegister(&xSequenceGet, "GLIB", "g_sequence_get", false) | |||
| 455 | - | ||||
| 456 | cret := xSequenceGet(IterVar) | 403 | cret := xSequenceGet(IterVar) | ||
| 457 | return cret | 404 | return cret | ||
| 458 | } | 405 | } | ||
| @@ -461,8 +408,6 @@ var xSequenceInsertBefore func(*SequenceIter, uintptr) uintptr | |||||
| 461 | 408 | ||||
| 462 | // Inserts a new item just before the item pointed to by @iter. | 409 | // Inserts a new item just before the item pointed to by @iter. | ||
| 463 | func SequenceInsertBefore(IterVar *SequenceIter, DataVar uintptr) *SequenceIter { | 410 | func SequenceInsertBefore(IterVar *SequenceIter, DataVar uintptr) *SequenceIter { | ||
| 464 | - | core.LazyRegister(&xSequenceInsertBefore, "GLIB", "g_sequence_insert_before", false) | |||
| 465 | - | ||||
| 466 | cret := xSequenceInsertBefore(IterVar, DataVar) | 411 | cret := xSequenceInsertBefore(IterVar, DataVar) | ||
| 467 | if cret == 0 { | 412 | if cret == 0 { | ||
| 468 | return nil | 413 | return nil | ||
| @@ -477,8 +422,6 @@ var xSequenceMove func(*SequenceIter, *SequenceIter) | |||||
| 477 | // after @src. It is allowed for @src and @dest to point into different | 422 | // after @src. It is allowed for @src and @dest to point into different | ||
| 478 | // sequences. | 423 | // sequences. | ||
| 479 | func SequenceMove(SrcVar *SequenceIter, DestVar *SequenceIter) { | 424 | func SequenceMove(SrcVar *SequenceIter, DestVar *SequenceIter) { | ||
| 480 | - | core.LazyRegister(&xSequenceMove, "GLIB", "g_sequence_move", false) | |||
| 481 | - | ||||
| 482 | xSequenceMove(SrcVar, DestVar) | 425 | xSequenceMove(SrcVar, DestVar) | ||
| 483 | } | 426 | } | ||
| 484 | 427 | ||||
| @@ -493,8 +436,6 @@ var xSequenceMoveRange func(*SequenceIter, *SequenceIter, *SequenceIter) | |||||
| 493 | // removed from the sequence. If @dest points to a place within | 436 | // removed from the sequence. If @dest points to a place within | ||
| 494 | // the (@begin, @end) range, the range does not move. | 437 | // the (@begin, @end) range, the range does not move. | ||
| 495 | func SequenceMoveRange(DestVar *SequenceIter, BeginVar *SequenceIter, EndVar *SequenceIter) { | 438 | func SequenceMoveRange(DestVar *SequenceIter, BeginVar *SequenceIter, EndVar *SequenceIter) { | ||
| 496 | - | core.LazyRegister(&xSequenceMoveRange, "GLIB", "g_sequence_move_range", false) | |||
| 497 | - | ||||
| 498 | xSequenceMoveRange(DestVar, BeginVar, EndVar) | 439 | xSequenceMoveRange(DestVar, BeginVar, EndVar) | ||
| 499 | } | 440 | } | ||
| 500 | 441 | ||||
| @@ -507,8 +448,6 @@ var xSequenceRangeGetMidpoint func(*SequenceIter, *SequenceIter) uintptr | |||||
| 507 | // The @begin and @end iterators must both point to the same sequence | 448 | // The @begin and @end iterators must both point to the same sequence | ||
| 508 | // and @begin must come before or be equal to @end in the sequence. | 449 | // and @begin must come before or be equal to @end in the sequence. | ||
| 509 | func SequenceRangeGetMidpoint(BeginVar *SequenceIter, EndVar *SequenceIter) *SequenceIter { | 450 | func SequenceRangeGetMidpoint(BeginVar *SequenceIter, EndVar *SequenceIter) *SequenceIter { | ||
| 510 | - | core.LazyRegister(&xSequenceRangeGetMidpoint, "GLIB", "g_sequence_range_get_midpoint", false) | |||
| 511 | - | ||||
| 512 | cret := xSequenceRangeGetMidpoint(BeginVar, EndVar) | 451 | cret := xSequenceRangeGetMidpoint(BeginVar, EndVar) | ||
| 513 | if cret == 0 { | 452 | if cret == 0 { | ||
| 514 | return nil | 453 | return nil | ||
| @@ -524,8 +463,6 @@ var xSequenceRemove func(*SequenceIter) | |||||
| 524 | // If the sequence has a data destroy function associated with it, this | 463 | // If the sequence has a data destroy function associated with it, this | ||
| 525 | // function is called on the data for the removed item. | 464 | // function is called on the data for the removed item. | ||
| 526 | func SequenceRemove(IterVar *SequenceIter) { | 465 | func SequenceRemove(IterVar *SequenceIter) { | ||
| 527 | - | core.LazyRegister(&xSequenceRemove, "GLIB", "g_sequence_remove", false) | |||
| 528 | - | ||||
| 529 | xSequenceRemove(IterVar) | 466 | xSequenceRemove(IterVar) | ||
| 530 | } | 467 | } | ||
| 531 | 468 | ||||
| @@ -536,8 +473,6 @@ var xSequenceRemoveRange func(*SequenceIter, *SequenceIter) | |||||
| 536 | // If the sequence has a data destroy function associated with it, this | 473 | // If the sequence has a data destroy function associated with it, this | ||
| 537 | // function is called on the data for the removed items. | 474 | // function is called on the data for the removed items. | ||
| 538 | func SequenceRemoveRange(BeginVar *SequenceIter, EndVar *SequenceIter) { | 475 | func SequenceRemoveRange(BeginVar *SequenceIter, EndVar *SequenceIter) { | ||
| 539 | - | core.LazyRegister(&xSequenceRemoveRange, "GLIB", "g_sequence_remove_range", false) | |||
| 540 | - | ||||
| 541 | xSequenceRemoveRange(BeginVar, EndVar) | 476 | xSequenceRemoveRange(BeginVar, EndVar) | ||
| 542 | } | 477 | } | ||
| 543 | 478 | ||||
| @@ -547,8 +482,6 @@ var xSequenceSet func(*SequenceIter, uintptr) | |||||
| 547 | // the sequence has a data destroy function associated with it, that | 482 | // the sequence has a data destroy function associated with it, that | ||
| 548 | // function is called on the existing data that @iter pointed to. | 483 | // function is called on the existing data that @iter pointed to. | ||
| 549 | func SequenceSet(IterVar *SequenceIter, DataVar uintptr) { | 484 | func SequenceSet(IterVar *SequenceIter, DataVar uintptr) { | ||
| 550 | - | core.LazyRegister(&xSequenceSet, "GLIB", "g_sequence_set", false) | |||
| 551 | - | ||||
| 552 | xSequenceSet(IterVar, DataVar) | 485 | xSequenceSet(IterVar, DataVar) | ||
| 553 | } | 486 | } | ||
| 554 | 487 | ||||
| @@ -565,8 +498,6 @@ var xSequenceSortChanged func(*SequenceIter, uintptr, uintptr) | |||||
| 565 | // the first item comes before the second, and a positive value if | 498 | // the first item comes before the second, and a positive value if | ||
| 566 | // the second item comes before the first. | 499 | // the second item comes before the first. | ||
| 567 | func SequenceSortChanged(IterVar *SequenceIter, CmpFuncVar *CompareDataFunc, CmpDataVar uintptr) { | 500 | func SequenceSortChanged(IterVar *SequenceIter, CmpFuncVar *CompareDataFunc, CmpDataVar uintptr) { | ||
| 568 | - | core.LazyRegister(&xSequenceSortChanged, "GLIB", "g_sequence_sort_changed", false) | |||
| 569 | - | ||||
| 570 | xSequenceSortChanged(IterVar, NewCallback(CmpFuncVar), CmpDataVar) | 501 | xSequenceSortChanged(IterVar, NewCallback(CmpFuncVar), CmpDataVar) | ||
| 571 | } | 502 | } | ||
| 572 | 503 | ||||
| @@ -582,8 +513,6 @@ var xSequenceSortChangedIter func(*SequenceIter, uintptr, uintptr) | |||||
| 582 | // iterator comes before the second, and a positive value if the second | 513 | // iterator comes before the second, and a positive value if the second | ||
| 583 | // iterator comes before the first. | 514 | // iterator comes before the first. | ||
| 584 | func SequenceSortChangedIter(IterVar *SequenceIter, IterCmpVar *SequenceIterCompareFunc, CmpDataVar uintptr) { | 515 | func SequenceSortChangedIter(IterVar *SequenceIter, IterCmpVar *SequenceIterCompareFunc, CmpDataVar uintptr) { | ||
| 585 | - | core.LazyRegister(&xSequenceSortChangedIter, "GLIB", "g_sequence_sort_changed_iter", false) | |||
| 586 | - | ||||
| 587 | xSequenceSortChangedIter(IterVar, NewCallback(IterCmpVar), CmpDataVar) | 516 | xSequenceSortChangedIter(IterVar, NewCallback(IterCmpVar), CmpDataVar) | ||
| 588 | } | 517 | } | ||
| 589 | 518 | ||||
| @@ -592,12 +521,58 @@ var xSequenceSwap func(*SequenceIter, *SequenceIter) | |||||
| 592 | // Swaps the items pointed to by @a and @b. It is allowed for @a and @b | 521 | // Swaps the items pointed to by @a and @b. It is allowed for @a and @b | ||
| 593 | // to point into difference sequences. | 522 | // to point into difference sequences. | ||
| 594 | func SequenceSwap(AVar *SequenceIter, BVar *SequenceIter) { | 523 | func SequenceSwap(AVar *SequenceIter, BVar *SequenceIter) { | ||
| 595 | - | core.LazyRegister(&xSequenceSwap, "GLIB", "g_sequence_swap", false) | |||
| 596 | - | ||||
| 597 | xSequenceSwap(AVar, BVar) | 524 | xSequenceSwap(AVar, BVar) | ||
| 598 | } | 525 | } | ||
| 599 | 526 | ||||
| 600 | func init() { | 527 | func init() { | ||
| 601 | core.SetPackageName("GLIB", "glib-2.0") | 528 | core.SetPackageName("GLIB", "glib-2.0") | ||
| 602 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | 529 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | ||
| 530 | + | var libs []uintptr | |||
| 531 | + | for _, libPath := range core.GetPaths("GLIB") { | |||
| 532 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 533 | + | if err != nil { | |||
| 534 | + | panic(err) | |||
| 535 | + | } | |||
| 536 | + | libs = append(libs, lib) | |||
| 537 | + | } | |||
| 538 | + | ||||
| 539 | + | core.PuregoSafeRegister(&xSequenceForeachRange, libs, "g_sequence_foreach_range") | |||
| 540 | + | core.PuregoSafeRegister(&xSequenceGet, libs, "g_sequence_get") | |||
| 541 | + | core.PuregoSafeRegister(&xSequenceInsertBefore, libs, "g_sequence_insert_before") | |||
| 542 | + | core.PuregoSafeRegister(&xSequenceMove, libs, "g_sequence_move") | |||
| 543 | + | core.PuregoSafeRegister(&xSequenceMoveRange, libs, "g_sequence_move_range") | |||
| 544 | + | core.PuregoSafeRegister(&xSequenceRangeGetMidpoint, libs, "g_sequence_range_get_midpoint") | |||
| 545 | + | core.PuregoSafeRegister(&xSequenceRemove, libs, "g_sequence_remove") | |||
| 546 | + | core.PuregoSafeRegister(&xSequenceRemoveRange, libs, "g_sequence_remove_range") | |||
| 547 | + | core.PuregoSafeRegister(&xSequenceSet, libs, "g_sequence_set") | |||
| 548 | + | core.PuregoSafeRegister(&xSequenceSortChanged, libs, "g_sequence_sort_changed") | |||
| 549 | + | core.PuregoSafeRegister(&xSequenceSortChangedIter, libs, "g_sequence_sort_changed_iter") | |||
| 550 | + | core.PuregoSafeRegister(&xSequenceSwap, libs, "g_sequence_swap") | |||
| 551 | + | ||||
| 552 | + | core.PuregoSafeRegister(&xSequenceAppend, libs, "g_sequence_append") | |||
| 553 | + | core.PuregoSafeRegister(&xSequenceForeach, libs, "g_sequence_foreach") | |||
| 554 | + | core.PuregoSafeRegister(&xSequenceFree, libs, "g_sequence_free") | |||
| 555 | + | core.PuregoSafeRegister(&xSequenceGetBeginIter, libs, "g_sequence_get_begin_iter") | |||
| 556 | + | core.PuregoSafeRegister(&xSequenceGetEndIter, libs, "g_sequence_get_end_iter") | |||
| 557 | + | core.PuregoSafeRegister(&xSequenceGetIterAtPos, libs, "g_sequence_get_iter_at_pos") | |||
| 558 | + | core.PuregoSafeRegister(&xSequenceGetLength, libs, "g_sequence_get_length") | |||
| 559 | + | core.PuregoSafeRegister(&xSequenceInsertSorted, libs, "g_sequence_insert_sorted") | |||
| 560 | + | core.PuregoSafeRegister(&xSequenceInsertSortedIter, libs, "g_sequence_insert_sorted_iter") | |||
| 561 | + | core.PuregoSafeRegister(&xSequenceIsEmpty, libs, "g_sequence_is_empty") | |||
| 562 | + | core.PuregoSafeRegister(&xSequenceLookup, libs, "g_sequence_lookup") | |||
| 563 | + | core.PuregoSafeRegister(&xSequenceLookupIter, libs, "g_sequence_lookup_iter") | |||
| 564 | + | core.PuregoSafeRegister(&xSequencePrepend, libs, "g_sequence_prepend") | |||
| 565 | + | core.PuregoSafeRegister(&xSequenceSearch, libs, "g_sequence_search") | |||
| 566 | + | core.PuregoSafeRegister(&xSequenceSearchIter, libs, "g_sequence_search_iter") | |||
| 567 | + | core.PuregoSafeRegister(&xSequenceSort, libs, "g_sequence_sort") | |||
| 568 | + | core.PuregoSafeRegister(&xSequenceSortIter, libs, "g_sequence_sort_iter") | |||
| 569 | + | ||||
| 570 | + | core.PuregoSafeRegister(&xSequenceIterCompare, libs, "g_sequence_iter_compare") | |||
| 571 | + | core.PuregoSafeRegister(&xSequenceIterGetPosition, libs, "g_sequence_iter_get_position") | |||
| 572 | + | core.PuregoSafeRegister(&xSequenceIterGetSequence, libs, "g_sequence_iter_get_sequence") | |||
| 573 | + | core.PuregoSafeRegister(&xSequenceIterIsBegin, libs, "g_sequence_iter_is_begin") | |||
| 574 | + | core.PuregoSafeRegister(&xSequenceIterIsEnd, libs, "g_sequence_iter_is_end") | |||
| 575 | + | core.PuregoSafeRegister(&xSequenceIterMove, libs, "g_sequence_iter_move") | |||
| 576 | + | core.PuregoSafeRegister(&xSequenceIterNext, libs, "g_sequence_iter_next") | |||
| 577 | + | core.PuregoSafeRegister(&xSequenceIterPrev, libs, "g_sequence_iter_prev") | |||
| 603 | } | 578 | } | ||