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
| @@ -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 | ||
| @@ -89,8 +90,6 @@ var xScannerCurLine func(uintptr) uint | |||
| 89 | 90 | // from 1). This is the line of the last token parsed via | |
| 90 | 91 | // g_scanner_get_next_token(). | |
| 91 | 92 | func (x *Scanner) CurLine() uint { | |
| 92 | - | core.LazyRegister(&xScannerCurLine, "GLIB", "g_scanner_cur_line", false) | |
| 93 | - | ||
| 94 | 93 | cret := xScannerCurLine(x.GoPointer()) | |
| 95 | 94 | return cret | |
| 96 | 95 | } | |
| @@ -101,8 +100,6 @@ var xScannerCurPosition func(uintptr) uint | |||
| 101 | 100 | // from 0). This is the position of the last token parsed via | |
| 102 | 101 | // g_scanner_get_next_token(). | |
| 103 | 102 | func (x *Scanner) CurPosition() uint { | |
| 104 | - | core.LazyRegister(&xScannerCurPosition, "GLIB", "g_scanner_cur_position", false) | |
| 105 | - | ||
| 106 | 103 | cret := xScannerCurPosition(x.GoPointer()) | |
| 107 | 104 | return cret | |
| 108 | 105 | } | |
| @@ -112,8 +109,6 @@ var xScannerCurToken func(uintptr) TokenType | |||
| 112 | 109 | // Gets the current token type. This is simply the @token | |
| 113 | 110 | // field in the #GScanner structure. | |
| 114 | 111 | func (x *Scanner) CurToken() TokenType { | |
| 115 | - | core.LazyRegister(&xScannerCurToken, "GLIB", "g_scanner_cur_token", false) | |
| 116 | - | ||
| 117 | 112 | cret := xScannerCurToken(x.GoPointer()) | |
| 118 | 113 | return cret | |
| 119 | 114 | } | |
| @@ -123,8 +118,6 @@ var xScannerCurValue func(uintptr) TokenValue | |||
| 123 | 118 | // Gets the current token value. This is simply the @value | |
| 124 | 119 | // field in the #GScanner structure. | |
| 125 | 120 | func (x *Scanner) CurValue() TokenValue { | |
| 126 | - | core.LazyRegister(&xScannerCurValue, "GLIB", "g_scanner_cur_value", false) | |
| 127 | - | ||
| 128 | 121 | cret := xScannerCurValue(x.GoPointer()) | |
| 129 | 122 | return cret | |
| 130 | 123 | } | |
| @@ -133,8 +126,6 @@ var xScannerDestroy func(uintptr) | |||
| 133 | 126 | ||
| 134 | 127 | // Frees all memory used by the #GScanner. | |
| 135 | 128 | func (x *Scanner) Destroy() { | |
| 136 | - | core.LazyRegister(&xScannerDestroy, "GLIB", "g_scanner_destroy", false) | |
| 137 | - | ||
| 138 | 129 | xScannerDestroy(x.GoPointer()) | |
| 139 | 130 | } | |
| 140 | 131 | ||
| @@ -143,8 +134,6 @@ var xScannerEof func(uintptr) bool | |||
| 143 | 134 | // Returns %TRUE if the scanner has reached the end of | |
| 144 | 135 | // the file or text buffer. | |
| 145 | 136 | func (x *Scanner) Eof() bool { | |
| 146 | - | core.LazyRegister(&xScannerEof, "GLIB", "g_scanner_eof", false) | |
| 147 | - | ||
| 148 | 137 | cret := xScannerEof(x.GoPointer()) | |
| 149 | 138 | return cret | |
| 150 | 139 | } | |
| @@ -153,8 +142,6 @@ var xScannerError func(uintptr, string, ...interface{}) | |||
| 153 | 142 | ||
| 154 | 143 | // Outputs an error message, via the #GScanner message handler. | |
| 155 | 144 | func (x *Scanner) Error(FormatVar string, varArgs ...interface{}) { | |
| 156 | - | core.LazyRegister(&xScannerError, "GLIB", "g_scanner_error", false) | |
| 157 | - | ||
| 158 | 145 | xScannerError(x.GoPointer(), FormatVar, varArgs...) | |
| 159 | 146 | } | |
| 160 | 147 | ||
| @@ -165,8 +152,6 @@ var xScannerGetNextToken func(uintptr) TokenType | |||
| 165 | 152 | // placed in the @token, @value, @line, and @position fields of | |
| 166 | 153 | // the #GScanner structure. | |
| 167 | 154 | func (x *Scanner) GetNextToken() TokenType { | |
| 168 | - | core.LazyRegister(&xScannerGetNextToken, "GLIB", "g_scanner_get_next_token", false) | |
| 169 | - | ||
| 170 | 155 | cret := xScannerGetNextToken(x.GoPointer()) | |
| 171 | 156 | return cret | |
| 172 | 157 | } | |
| @@ -175,8 +160,6 @@ var xScannerInputFile func(uintptr, int) | |||
| 175 | 160 | ||
| 176 | 161 | // Prepares to scan a file. | |
| 177 | 162 | func (x *Scanner) InputFile(InputFdVar int) { | |
| 178 | - | core.LazyRegister(&xScannerInputFile, "GLIB", "g_scanner_input_file", false) | |
| 179 | - | ||
| 180 | 163 | xScannerInputFile(x.GoPointer(), InputFdVar) | |
| 181 | 164 | } | |
| 182 | 165 | ||
| @@ -184,8 +167,6 @@ var xScannerInputText func(uintptr, string, uint) | |||
| 184 | 167 | ||
| 185 | 168 | // Prepares to scan a text buffer. | |
| 186 | 169 | func (x *Scanner) InputText(TextVar string, TextLenVar uint) { | |
| 187 | - | core.LazyRegister(&xScannerInputText, "GLIB", "g_scanner_input_text", false) | |
| 188 | - | ||
| 189 | 170 | xScannerInputText(x.GoPointer(), TextVar, TextLenVar) | |
| 190 | 171 | } | |
| 191 | 172 | ||
| @@ -195,8 +176,6 @@ var xScannerLookupSymbol func(uintptr, string) uintptr | |||
| 195 | 176 | // If the symbol is not bound in the current scope, %NULL is | |
| 196 | 177 | // returned. | |
| 197 | 178 | func (x *Scanner) LookupSymbol(SymbolVar string) uintptr { | |
| 198 | - | core.LazyRegister(&xScannerLookupSymbol, "GLIB", "g_scanner_lookup_symbol", false) | |
| 199 | - | ||
| 200 | 179 | cret := xScannerLookupSymbol(x.GoPointer(), SymbolVar) | |
| 201 | 180 | return cret | |
| 202 | 181 | } | |
| @@ -215,8 +194,6 @@ var xScannerPeekNextToken func(uintptr) TokenType | |||
| 215 | 194 | // configuration will return whatever was peeked before, regardless of | |
| 216 | 195 | // any symbols that may have been added or removed in the new scope. | |
| 217 | 196 | func (x *Scanner) PeekNextToken() TokenType { | |
| 218 | - | core.LazyRegister(&xScannerPeekNextToken, "GLIB", "g_scanner_peek_next_token", false) | |
| 219 | - | ||
| 220 | 197 | cret := xScannerPeekNextToken(x.GoPointer()) | |
| 221 | 198 | return cret | |
| 222 | 199 | } | |
| @@ -225,8 +202,6 @@ var xScannerScopeAddSymbol func(uintptr, uint, string, uintptr) | |||
| 225 | 202 | ||
| 226 | 203 | // Adds a symbol to the given scope. | |
| 227 | 204 | func (x *Scanner) ScopeAddSymbol(ScopeIdVar uint, SymbolVar string, ValueVar uintptr) { | |
| 228 | - | core.LazyRegister(&xScannerScopeAddSymbol, "GLIB", "g_scanner_scope_add_symbol", false) | |
| 229 | - | ||
| 230 | 205 | xScannerScopeAddSymbol(x.GoPointer(), ScopeIdVar, SymbolVar, ValueVar) | |
| 231 | 206 | } | |
| 232 | 207 | ||
| @@ -237,8 +212,6 @@ var xScannerScopeForeachSymbol func(uintptr, uint, uintptr, uintptr) | |||
| 237 | 212 | // the symbol and value of each pair, and the given @user_data | |
| 238 | 213 | // parameter. | |
| 239 | 214 | func (x *Scanner) ScopeForeachSymbol(ScopeIdVar uint, FuncVar *HFunc, UserDataVar uintptr) { | |
| 240 | - | core.LazyRegister(&xScannerScopeForeachSymbol, "GLIB", "g_scanner_scope_foreach_symbol", false) | |
| 241 | - | ||
| 242 | 215 | xScannerScopeForeachSymbol(x.GoPointer(), ScopeIdVar, NewCallback(FuncVar), UserDataVar) | |
| 243 | 216 | } | |
| 244 | 217 | ||
| @@ -247,8 +220,6 @@ var xScannerScopeLookupSymbol func(uintptr, uint, string) uintptr | |||
| 247 | 220 | // Looks up a symbol in a scope and return its value. If the | |
| 248 | 221 | // symbol is not bound in the scope, %NULL is returned. | |
| 249 | 222 | func (x *Scanner) ScopeLookupSymbol(ScopeIdVar uint, SymbolVar string) uintptr { | |
| 250 | - | core.LazyRegister(&xScannerScopeLookupSymbol, "GLIB", "g_scanner_scope_lookup_symbol", false) | |
| 251 | - | ||
| 252 | 223 | cret := xScannerScopeLookupSymbol(x.GoPointer(), ScopeIdVar, SymbolVar) | |
| 253 | 224 | return cret | |
| 254 | 225 | } | |
| @@ -257,8 +228,6 @@ var xScannerScopeRemoveSymbol func(uintptr, uint, string) | |||
| 257 | 228 | ||
| 258 | 229 | // Removes a symbol from a scope. | |
| 259 | 230 | func (x *Scanner) ScopeRemoveSymbol(ScopeIdVar uint, SymbolVar string) { | |
| 260 | - | core.LazyRegister(&xScannerScopeRemoveSymbol, "GLIB", "g_scanner_scope_remove_symbol", false) | |
| 261 | - | ||
| 262 | 231 | xScannerScopeRemoveSymbol(x.GoPointer(), ScopeIdVar, SymbolVar) | |
| 263 | 232 | } | |
| 264 | 233 | ||
| @@ -266,8 +235,6 @@ var xScannerSetScope func(uintptr, uint) uint | |||
| 266 | 235 | ||
| 267 | 236 | // Sets the current scope. | |
| 268 | 237 | func (x *Scanner) SetScope(ScopeIdVar uint) uint { | |
| 269 | - | core.LazyRegister(&xScannerSetScope, "GLIB", "g_scanner_set_scope", false) | |
| 270 | - | ||
| 271 | 238 | cret := xScannerSetScope(x.GoPointer(), ScopeIdVar) | |
| 272 | 239 | return cret | |
| 273 | 240 | } | |
| @@ -279,8 +246,6 @@ var xScannerSyncFileOffset func(uintptr) | |||
| 279 | 246 | // third party uses of the scanners filedescriptor, which hooks | |
| 280 | 247 | // onto the current scanning position. | |
| 281 | 248 | func (x *Scanner) SyncFileOffset() { | |
| 282 | - | core.LazyRegister(&xScannerSyncFileOffset, "GLIB", "g_scanner_sync_file_offset", false) | |
| 283 | - | ||
| 284 | 249 | xScannerSyncFileOffset(x.GoPointer()) | |
| 285 | 250 | } | |
| 286 | 251 | ||
| @@ -294,8 +259,6 @@ var xScannerUnexpToken func(uintptr, TokenType, string, string, string, string, | |||
| 294 | 259 | // evaluates the scanner's current token (not the peeked token) | |
| 295 | 260 | // to construct part of the message. | |
| 296 | 261 | func (x *Scanner) UnexpToken(ExpectedTokenVar TokenType, IdentifierSpecVar string, SymbolSpecVar string, SymbolNameVar string, MessageVar string, IsErrorVar int) { | |
| 297 | - | core.LazyRegister(&xScannerUnexpToken, "GLIB", "g_scanner_unexp_token", false) | |
| 298 | - | ||
| 299 | 262 | xScannerUnexpToken(x.GoPointer(), ExpectedTokenVar, IdentifierSpecVar, SymbolSpecVar, SymbolNameVar, MessageVar, IsErrorVar) | |
| 300 | 263 | } | |
| 301 | 264 | ||
| @@ -303,8 +266,6 @@ var xScannerWarn func(uintptr, string, ...interface{}) | |||
| 303 | 266 | ||
| 304 | 267 | // Outputs a warning message, via the #GScanner message handler. | |
| 305 | 268 | func (x *Scanner) Warn(FormatVar string, varArgs ...interface{}) { | |
| 306 | - | core.LazyRegister(&xScannerWarn, "GLIB", "g_scanner_warn", false) | |
| 307 | - | ||
| 308 | 269 | xScannerWarn(x.GoPointer(), FormatVar, varArgs...) | |
| 309 | 270 | } | |
| 310 | 271 | ||
| @@ -480,4 +441,33 @@ const ( | |||
| 480 | 441 | func init() { | |
| 481 | 442 | core.SetPackageName("GLIB", "glib-2.0") | |
| 482 | 443 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | |
| 444 | + | var libs []uintptr | |
| 445 | + | for _, libPath := range core.GetPaths("GLIB") { | |
| 446 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 447 | + | if err != nil { | |
| 448 | + | panic(err) | |
| 449 | + | } | |
| 450 | + | libs = append(libs, lib) | |
| 451 | + | } | |
| 452 | + | ||
| 453 | + | core.PuregoSafeRegister(&xScannerCurLine, libs, "g_scanner_cur_line") | |
| 454 | + | core.PuregoSafeRegister(&xScannerCurPosition, libs, "g_scanner_cur_position") | |
| 455 | + | core.PuregoSafeRegister(&xScannerCurToken, libs, "g_scanner_cur_token") | |
| 456 | + | core.PuregoSafeRegister(&xScannerCurValue, libs, "g_scanner_cur_value") | |
| 457 | + | core.PuregoSafeRegister(&xScannerDestroy, libs, "g_scanner_destroy") | |
| 458 | + | core.PuregoSafeRegister(&xScannerEof, libs, "g_scanner_eof") | |
| 459 | + | core.PuregoSafeRegister(&xScannerError, libs, "g_scanner_error") | |
| 460 | + | core.PuregoSafeRegister(&xScannerGetNextToken, libs, "g_scanner_get_next_token") | |
| 461 | + | core.PuregoSafeRegister(&xScannerInputFile, libs, "g_scanner_input_file") | |
| 462 | + | core.PuregoSafeRegister(&xScannerInputText, libs, "g_scanner_input_text") | |
| 463 | + | core.PuregoSafeRegister(&xScannerLookupSymbol, libs, "g_scanner_lookup_symbol") | |
| 464 | + | core.PuregoSafeRegister(&xScannerPeekNextToken, libs, "g_scanner_peek_next_token") | |
| 465 | + | core.PuregoSafeRegister(&xScannerScopeAddSymbol, libs, "g_scanner_scope_add_symbol") | |
| 466 | + | core.PuregoSafeRegister(&xScannerScopeForeachSymbol, libs, "g_scanner_scope_foreach_symbol") | |
| 467 | + | core.PuregoSafeRegister(&xScannerScopeLookupSymbol, libs, "g_scanner_scope_lookup_symbol") | |
| 468 | + | core.PuregoSafeRegister(&xScannerScopeRemoveSymbol, libs, "g_scanner_scope_remove_symbol") | |
| 469 | + | core.PuregoSafeRegister(&xScannerSetScope, libs, "g_scanner_set_scope") | |
| 470 | + | core.PuregoSafeRegister(&xScannerSyncFileOffset, libs, "g_scanner_sync_file_offset") | |
| 471 | + | core.PuregoSafeRegister(&xScannerUnexpToken, libs, "g_scanner_unexp_token") | |
| 472 | + | core.PuregoSafeRegister(&xScannerWarn, libs, "g_scanner_warn") | |
| 483 | 473 | } | |
| @@ -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 | ||||
| @@ -89,8 +90,6 @@ var xScannerCurLine func(uintptr) uint | |||||
| 89 | // from 1). This is the line of the last token parsed via | 90 | // from 1). This is the line of the last token parsed via | ||
| 90 | // g_scanner_get_next_token(). | 91 | // g_scanner_get_next_token(). | ||
| 91 | func (x *Scanner) CurLine() uint { | 92 | func (x *Scanner) CurLine() uint { | ||
| 92 | - | core.LazyRegister(&xScannerCurLine, "GLIB", "g_scanner_cur_line", false) | |||
| 93 | - | ||||
| 94 | cret := xScannerCurLine(x.GoPointer()) | 93 | cret := xScannerCurLine(x.GoPointer()) | ||
| 95 | return cret | 94 | return cret | ||
| 96 | } | 95 | } | ||
| @@ -101,8 +100,6 @@ var xScannerCurPosition func(uintptr) uint | |||||
| 101 | // from 0). This is the position of the last token parsed via | 100 | // from 0). This is the position of the last token parsed via | ||
| 102 | // g_scanner_get_next_token(). | 101 | // g_scanner_get_next_token(). | ||
| 103 | func (x *Scanner) CurPosition() uint { | 102 | func (x *Scanner) CurPosition() uint { | ||
| 104 | - | core.LazyRegister(&xScannerCurPosition, "GLIB", "g_scanner_cur_position", false) | |||
| 105 | - | ||||
| 106 | cret := xScannerCurPosition(x.GoPointer()) | 103 | cret := xScannerCurPosition(x.GoPointer()) | ||
| 107 | return cret | 104 | return cret | ||
| 108 | } | 105 | } | ||
| @@ -112,8 +109,6 @@ var xScannerCurToken func(uintptr) TokenType | |||||
| 112 | // Gets the current token type. This is simply the @token | 109 | // Gets the current token type. This is simply the @token | ||
| 113 | // field in the #GScanner structure. | 110 | // field in the #GScanner structure. | ||
| 114 | func (x *Scanner) CurToken() TokenType { | 111 | func (x *Scanner) CurToken() TokenType { | ||
| 115 | - | core.LazyRegister(&xScannerCurToken, "GLIB", "g_scanner_cur_token", false) | |||
| 116 | - | ||||
| 117 | cret := xScannerCurToken(x.GoPointer()) | 112 | cret := xScannerCurToken(x.GoPointer()) | ||
| 118 | return cret | 113 | return cret | ||
| 119 | } | 114 | } | ||
| @@ -123,8 +118,6 @@ var xScannerCurValue func(uintptr) TokenValue | |||||
| 123 | // Gets the current token value. This is simply the @value | 118 | // Gets the current token value. This is simply the @value | ||
| 124 | // field in the #GScanner structure. | 119 | // field in the #GScanner structure. | ||
| 125 | func (x *Scanner) CurValue() TokenValue { | 120 | func (x *Scanner) CurValue() TokenValue { | ||
| 126 | - | core.LazyRegister(&xScannerCurValue, "GLIB", "g_scanner_cur_value", false) | |||
| 127 | - | ||||
| 128 | cret := xScannerCurValue(x.GoPointer()) | 121 | cret := xScannerCurValue(x.GoPointer()) | ||
| 129 | return cret | 122 | return cret | ||
| 130 | } | 123 | } | ||
| @@ -133,8 +126,6 @@ var xScannerDestroy func(uintptr) | |||||
| 133 | 126 | ||||
| 134 | // Frees all memory used by the #GScanner. | 127 | // Frees all memory used by the #GScanner. | ||
| 135 | func (x *Scanner) Destroy() { | 128 | func (x *Scanner) Destroy() { | ||
| 136 | - | core.LazyRegister(&xScannerDestroy, "GLIB", "g_scanner_destroy", false) | |||
| 137 | - | ||||
| 138 | xScannerDestroy(x.GoPointer()) | 129 | xScannerDestroy(x.GoPointer()) | ||
| 139 | } | 130 | } | ||
| 140 | 131 | ||||
| @@ -143,8 +134,6 @@ var xScannerEof func(uintptr) bool | |||||
| 143 | // Returns %TRUE if the scanner has reached the end of | 134 | // Returns %TRUE if the scanner has reached the end of | ||
| 144 | // the file or text buffer. | 135 | // the file or text buffer. | ||
| 145 | func (x *Scanner) Eof() bool { | 136 | func (x *Scanner) Eof() bool { | ||
| 146 | - | core.LazyRegister(&xScannerEof, "GLIB", "g_scanner_eof", false) | |||
| 147 | - | ||||
| 148 | cret := xScannerEof(x.GoPointer()) | 137 | cret := xScannerEof(x.GoPointer()) | ||
| 149 | return cret | 138 | return cret | ||
| 150 | } | 139 | } | ||
| @@ -153,8 +142,6 @@ var xScannerError func(uintptr, string, ...interface{}) | |||||
| 153 | 142 | ||||
| 154 | // Outputs an error message, via the #GScanner message handler. | 143 | // Outputs an error message, via the #GScanner message handler. | ||
| 155 | func (x *Scanner) Error(FormatVar string, varArgs ...interface{}) { | 144 | func (x *Scanner) Error(FormatVar string, varArgs ...interface{}) { | ||
| 156 | - | core.LazyRegister(&xScannerError, "GLIB", "g_scanner_error", false) | |||
| 157 | - | ||||
| 158 | xScannerError(x.GoPointer(), FormatVar, varArgs...) | 145 | xScannerError(x.GoPointer(), FormatVar, varArgs...) | ||
| 159 | } | 146 | } | ||
| 160 | 147 | ||||
| @@ -165,8 +152,6 @@ var xScannerGetNextToken func(uintptr) TokenType | |||||
| 165 | // placed in the @token, @value, @line, and @position fields of | 152 | // placed in the @token, @value, @line, and @position fields of | ||
| 166 | // the #GScanner structure. | 153 | // the #GScanner structure. | ||
| 167 | func (x *Scanner) GetNextToken() TokenType { | 154 | func (x *Scanner) GetNextToken() TokenType { | ||
| 168 | - | core.LazyRegister(&xScannerGetNextToken, "GLIB", "g_scanner_get_next_token", false) | |||
| 169 | - | ||||
| 170 | cret := xScannerGetNextToken(x.GoPointer()) | 155 | cret := xScannerGetNextToken(x.GoPointer()) | ||
| 171 | return cret | 156 | return cret | ||
| 172 | } | 157 | } | ||
| @@ -175,8 +160,6 @@ var xScannerInputFile func(uintptr, int) | |||||
| 175 | 160 | ||||
| 176 | // Prepares to scan a file. | 161 | // Prepares to scan a file. | ||
| 177 | func (x *Scanner) InputFile(InputFdVar int) { | 162 | func (x *Scanner) InputFile(InputFdVar int) { | ||
| 178 | - | core.LazyRegister(&xScannerInputFile, "GLIB", "g_scanner_input_file", false) | |||
| 179 | - | ||||
| 180 | xScannerInputFile(x.GoPointer(), InputFdVar) | 163 | xScannerInputFile(x.GoPointer(), InputFdVar) | ||
| 181 | } | 164 | } | ||
| 182 | 165 | ||||
| @@ -184,8 +167,6 @@ var xScannerInputText func(uintptr, string, uint) | |||||
| 184 | 167 | ||||
| 185 | // Prepares to scan a text buffer. | 168 | // Prepares to scan a text buffer. | ||
| 186 | func (x *Scanner) InputText(TextVar string, TextLenVar uint) { | 169 | func (x *Scanner) InputText(TextVar string, TextLenVar uint) { | ||
| 187 | - | core.LazyRegister(&xScannerInputText, "GLIB", "g_scanner_input_text", false) | |||
| 188 | - | ||||
| 189 | xScannerInputText(x.GoPointer(), TextVar, TextLenVar) | 170 | xScannerInputText(x.GoPointer(), TextVar, TextLenVar) | ||
| 190 | } | 171 | } | ||
| 191 | 172 | ||||
| @@ -195,8 +176,6 @@ var xScannerLookupSymbol func(uintptr, string) uintptr | |||||
| 195 | // If the symbol is not bound in the current scope, %NULL is | 176 | // If the symbol is not bound in the current scope, %NULL is | ||
| 196 | // returned. | 177 | // returned. | ||
| 197 | func (x *Scanner) LookupSymbol(SymbolVar string) uintptr { | 178 | func (x *Scanner) LookupSymbol(SymbolVar string) uintptr { | ||
| 198 | - | core.LazyRegister(&xScannerLookupSymbol, "GLIB", "g_scanner_lookup_symbol", false) | |||
| 199 | - | ||||
| 200 | cret := xScannerLookupSymbol(x.GoPointer(), SymbolVar) | 179 | cret := xScannerLookupSymbol(x.GoPointer(), SymbolVar) | ||
| 201 | return cret | 180 | return cret | ||
| 202 | } | 181 | } | ||
| @@ -215,8 +194,6 @@ var xScannerPeekNextToken func(uintptr) TokenType | |||||
| 215 | // configuration will return whatever was peeked before, regardless of | 194 | // configuration will return whatever was peeked before, regardless of | ||
| 216 | // any symbols that may have been added or removed in the new scope. | 195 | // any symbols that may have been added or removed in the new scope. | ||
| 217 | func (x *Scanner) PeekNextToken() TokenType { | 196 | func (x *Scanner) PeekNextToken() TokenType { | ||
| 218 | - | core.LazyRegister(&xScannerPeekNextToken, "GLIB", "g_scanner_peek_next_token", false) | |||
| 219 | - | ||||
| 220 | cret := xScannerPeekNextToken(x.GoPointer()) | 197 | cret := xScannerPeekNextToken(x.GoPointer()) | ||
| 221 | return cret | 198 | return cret | ||
| 222 | } | 199 | } | ||
| @@ -225,8 +202,6 @@ var xScannerScopeAddSymbol func(uintptr, uint, string, uintptr) | |||||
| 225 | 202 | ||||
| 226 | // Adds a symbol to the given scope. | 203 | // Adds a symbol to the given scope. | ||
| 227 | func (x *Scanner) ScopeAddSymbol(ScopeIdVar uint, SymbolVar string, ValueVar uintptr) { | 204 | func (x *Scanner) ScopeAddSymbol(ScopeIdVar uint, SymbolVar string, ValueVar uintptr) { | ||
| 228 | - | core.LazyRegister(&xScannerScopeAddSymbol, "GLIB", "g_scanner_scope_add_symbol", false) | |||
| 229 | - | ||||
| 230 | xScannerScopeAddSymbol(x.GoPointer(), ScopeIdVar, SymbolVar, ValueVar) | 205 | xScannerScopeAddSymbol(x.GoPointer(), ScopeIdVar, SymbolVar, ValueVar) | ||
| 231 | } | 206 | } | ||
| 232 | 207 | ||||
| @@ -237,8 +212,6 @@ var xScannerScopeForeachSymbol func(uintptr, uint, uintptr, uintptr) | |||||
| 237 | // the symbol and value of each pair, and the given @user_data | 212 | // the symbol and value of each pair, and the given @user_data | ||
| 238 | // parameter. | 213 | // parameter. | ||
| 239 | func (x *Scanner) ScopeForeachSymbol(ScopeIdVar uint, FuncVar *HFunc, UserDataVar uintptr) { | 214 | func (x *Scanner) ScopeForeachSymbol(ScopeIdVar uint, FuncVar *HFunc, UserDataVar uintptr) { | ||
| 240 | - | core.LazyRegister(&xScannerScopeForeachSymbol, "GLIB", "g_scanner_scope_foreach_symbol", false) | |||
| 241 | - | ||||
| 242 | xScannerScopeForeachSymbol(x.GoPointer(), ScopeIdVar, NewCallback(FuncVar), UserDataVar) | 215 | xScannerScopeForeachSymbol(x.GoPointer(), ScopeIdVar, NewCallback(FuncVar), UserDataVar) | ||
| 243 | } | 216 | } | ||
| 244 | 217 | ||||
| @@ -247,8 +220,6 @@ var xScannerScopeLookupSymbol func(uintptr, uint, string) uintptr | |||||
| 247 | // Looks up a symbol in a scope and return its value. If the | 220 | // Looks up a symbol in a scope and return its value. If the | ||
| 248 | // symbol is not bound in the scope, %NULL is returned. | 221 | // symbol is not bound in the scope, %NULL is returned. | ||
| 249 | func (x *Scanner) ScopeLookupSymbol(ScopeIdVar uint, SymbolVar string) uintptr { | 222 | func (x *Scanner) ScopeLookupSymbol(ScopeIdVar uint, SymbolVar string) uintptr { | ||
| 250 | - | core.LazyRegister(&xScannerScopeLookupSymbol, "GLIB", "g_scanner_scope_lookup_symbol", false) | |||
| 251 | - | ||||
| 252 | cret := xScannerScopeLookupSymbol(x.GoPointer(), ScopeIdVar, SymbolVar) | 223 | cret := xScannerScopeLookupSymbol(x.GoPointer(), ScopeIdVar, SymbolVar) | ||
| 253 | return cret | 224 | return cret | ||
| 254 | } | 225 | } | ||
| @@ -257,8 +228,6 @@ var xScannerScopeRemoveSymbol func(uintptr, uint, string) | |||||
| 257 | 228 | ||||
| 258 | // Removes a symbol from a scope. | 229 | // Removes a symbol from a scope. | ||
| 259 | func (x *Scanner) ScopeRemoveSymbol(ScopeIdVar uint, SymbolVar string) { | 230 | func (x *Scanner) ScopeRemoveSymbol(ScopeIdVar uint, SymbolVar string) { | ||
| 260 | - | core.LazyRegister(&xScannerScopeRemoveSymbol, "GLIB", "g_scanner_scope_remove_symbol", false) | |||
| 261 | - | ||||
| 262 | xScannerScopeRemoveSymbol(x.GoPointer(), ScopeIdVar, SymbolVar) | 231 | xScannerScopeRemoveSymbol(x.GoPointer(), ScopeIdVar, SymbolVar) | ||
| 263 | } | 232 | } | ||
| 264 | 233 | ||||
| @@ -266,8 +235,6 @@ var xScannerSetScope func(uintptr, uint) uint | |||||
| 266 | 235 | ||||
| 267 | // Sets the current scope. | 236 | // Sets the current scope. | ||
| 268 | func (x *Scanner) SetScope(ScopeIdVar uint) uint { | 237 | func (x *Scanner) SetScope(ScopeIdVar uint) uint { | ||
| 269 | - | core.LazyRegister(&xScannerSetScope, "GLIB", "g_scanner_set_scope", false) | |||
| 270 | - | ||||
| 271 | cret := xScannerSetScope(x.GoPointer(), ScopeIdVar) | 238 | cret := xScannerSetScope(x.GoPointer(), ScopeIdVar) | ||
| 272 | return cret | 239 | return cret | ||
| 273 | } | 240 | } | ||
| @@ -279,8 +246,6 @@ var xScannerSyncFileOffset func(uintptr) | |||||
| 279 | // third party uses of the scanners filedescriptor, which hooks | 246 | // third party uses of the scanners filedescriptor, which hooks | ||
| 280 | // onto the current scanning position. | 247 | // onto the current scanning position. | ||
| 281 | func (x *Scanner) SyncFileOffset() { | 248 | func (x *Scanner) SyncFileOffset() { | ||
| 282 | - | core.LazyRegister(&xScannerSyncFileOffset, "GLIB", "g_scanner_sync_file_offset", false) | |||
| 283 | - | ||||
| 284 | xScannerSyncFileOffset(x.GoPointer()) | 249 | xScannerSyncFileOffset(x.GoPointer()) | ||
| 285 | } | 250 | } | ||
| 286 | 251 | ||||
| @@ -294,8 +259,6 @@ var xScannerUnexpToken func(uintptr, TokenType, string, string, string, string, | |||||
| 294 | // evaluates the scanner's current token (not the peeked token) | 259 | // evaluates the scanner's current token (not the peeked token) | ||
| 295 | // to construct part of the message. | 260 | // to construct part of the message. | ||
| 296 | func (x *Scanner) UnexpToken(ExpectedTokenVar TokenType, IdentifierSpecVar string, SymbolSpecVar string, SymbolNameVar string, MessageVar string, IsErrorVar int) { | 261 | func (x *Scanner) UnexpToken(ExpectedTokenVar TokenType, IdentifierSpecVar string, SymbolSpecVar string, SymbolNameVar string, MessageVar string, IsErrorVar int) { | ||
| 297 | - | core.LazyRegister(&xScannerUnexpToken, "GLIB", "g_scanner_unexp_token", false) | |||
| 298 | - | ||||
| 299 | xScannerUnexpToken(x.GoPointer(), ExpectedTokenVar, IdentifierSpecVar, SymbolSpecVar, SymbolNameVar, MessageVar, IsErrorVar) | 262 | xScannerUnexpToken(x.GoPointer(), ExpectedTokenVar, IdentifierSpecVar, SymbolSpecVar, SymbolNameVar, MessageVar, IsErrorVar) | ||
| 300 | } | 263 | } | ||
| 301 | 264 | ||||
| @@ -303,8 +266,6 @@ var xScannerWarn func(uintptr, string, ...interface{}) | |||||
| 303 | 266 | ||||
| 304 | // Outputs a warning message, via the #GScanner message handler. | 267 | // Outputs a warning message, via the #GScanner message handler. | ||
| 305 | func (x *Scanner) Warn(FormatVar string, varArgs ...interface{}) { | 268 | func (x *Scanner) Warn(FormatVar string, varArgs ...interface{}) { | ||
| 306 | - | core.LazyRegister(&xScannerWarn, "GLIB", "g_scanner_warn", false) | |||
| 307 | - | ||||
| 308 | xScannerWarn(x.GoPointer(), FormatVar, varArgs...) | 269 | xScannerWarn(x.GoPointer(), FormatVar, varArgs...) | ||
| 309 | } | 270 | } | ||
| 310 | 271 | ||||
| @@ -480,4 +441,33 @@ const ( | |||||
| 480 | func init() { | 441 | func init() { | ||
| 481 | core.SetPackageName("GLIB", "glib-2.0") | 442 | core.SetPackageName("GLIB", "glib-2.0") | ||
| 482 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | 443 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | ||
| 444 | + | var libs []uintptr | |||
| 445 | + | for _, libPath := range core.GetPaths("GLIB") { | |||
| 446 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 447 | + | if err != nil { | |||
| 448 | + | panic(err) | |||
| 449 | + | } | |||
| 450 | + | libs = append(libs, lib) | |||
| 451 | + | } | |||
| 452 | + | ||||
| 453 | + | core.PuregoSafeRegister(&xScannerCurLine, libs, "g_scanner_cur_line") | |||
| 454 | + | core.PuregoSafeRegister(&xScannerCurPosition, libs, "g_scanner_cur_position") | |||
| 455 | + | core.PuregoSafeRegister(&xScannerCurToken, libs, "g_scanner_cur_token") | |||
| 456 | + | core.PuregoSafeRegister(&xScannerCurValue, libs, "g_scanner_cur_value") | |||
| 457 | + | core.PuregoSafeRegister(&xScannerDestroy, libs, "g_scanner_destroy") | |||
| 458 | + | core.PuregoSafeRegister(&xScannerEof, libs, "g_scanner_eof") | |||
| 459 | + | core.PuregoSafeRegister(&xScannerError, libs, "g_scanner_error") | |||
| 460 | + | core.PuregoSafeRegister(&xScannerGetNextToken, libs, "g_scanner_get_next_token") | |||
| 461 | + | core.PuregoSafeRegister(&xScannerInputFile, libs, "g_scanner_input_file") | |||
| 462 | + | core.PuregoSafeRegister(&xScannerInputText, libs, "g_scanner_input_text") | |||
| 463 | + | core.PuregoSafeRegister(&xScannerLookupSymbol, libs, "g_scanner_lookup_symbol") | |||
| 464 | + | core.PuregoSafeRegister(&xScannerPeekNextToken, libs, "g_scanner_peek_next_token") | |||
| 465 | + | core.PuregoSafeRegister(&xScannerScopeAddSymbol, libs, "g_scanner_scope_add_symbol") | |||
| 466 | + | core.PuregoSafeRegister(&xScannerScopeForeachSymbol, libs, "g_scanner_scope_foreach_symbol") | |||
| 467 | + | core.PuregoSafeRegister(&xScannerScopeLookupSymbol, libs, "g_scanner_scope_lookup_symbol") | |||
| 468 | + | core.PuregoSafeRegister(&xScannerScopeRemoveSymbol, libs, "g_scanner_scope_remove_symbol") | |||
| 469 | + | core.PuregoSafeRegister(&xScannerSetScope, libs, "g_scanner_set_scope") | |||
| 470 | + | core.PuregoSafeRegister(&xScannerSyncFileOffset, libs, "g_scanner_sync_file_offset") | |||
| 471 | + | core.PuregoSafeRegister(&xScannerUnexpToken, libs, "g_scanner_unexp_token") | |||
| 472 | + | core.PuregoSafeRegister(&xScannerWarn, libs, "g_scanner_warn") | |||
| 483 | } | 473 | } | ||