Merge pull request #349 from bnema/fix/rollback-lazy-puregotk
fix(deps): emergency rollback puregotk lazy registration regression
905 files · +25263 -27842
M go.mod +1 -1
| @@ -11,7 +11,7 @@ require ( | |||
| 11 | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | |
| 12 | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | |
| 13 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | |
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | |
| 14 | + | github.com/bnema/puregotk v0.7.0 | |
| 15 | 15 | github.com/charmbracelet/bubbles v1.0.0 | |
| 16 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | |
| 17 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | |
| @@ -11,7 +11,7 @@ require ( | |||||
| 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | ||
| 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | ||
| 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | ||
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | 14 | + | github.com/bnema/puregotk v0.7.0 |
| 15 | github.com/charmbracelet/bubbles v1.0.0 | 15 | github.com/charmbracelet/bubbles v1.0.0 | ||
| 16 | github.com/charmbracelet/bubbletea v1.3.10 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | ||
| 17 | github.com/charmbracelet/lipgloss v1.1.0 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | ||
M go.sum +0 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/internal/core/core.go +4 -197 generated file: collapsed
M vendor/github.com/bnema/puregotk/pkg/core/core.go +0 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-dialog.go +64 -99 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-window.go +62 -95 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-accent-color.go +15 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-action-row.go +29 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-alert-dialog.go +47 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-target.go +27 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-util.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation.go +26 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application-window.go +22 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-avatar.go +25 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-banner.go +26 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bin.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bottom-sheet.go +38 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint-bin.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint.go +37 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-content.go +22 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-row.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-dots.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-lines.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel.go +37 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-layout.go +20 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-scrollable.go +22 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp.go +22 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-combo-row.go +33 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-dialog.go +38 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-easing.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-entry-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-enum-list-model.go +22 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-expander-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-flap.go +48 -61 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-fold-threshold-policy.go +1 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-header-bar.go +33 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-inline-view-switcher.go +24 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout-slot.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout.go +17 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-leaflet.go +56 -69 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-length-unit.go +14 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-main.go +15 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-message-dialog.go +44 -63 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-multi-layout-view.go +23 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-direction.go +1 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-split-view.go +32 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-view.go +49 -60 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-overlay-split-view.go +38 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-password-entry-row.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-dialog.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-group.go +26 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-page.go +33 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-row.go +22 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-window.go +29 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcut-label.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-dialog.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-item.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-section.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-item.go +37 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-section.go +27 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar.go +39 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spin-row.go +34 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner-paintable.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-split-button.go +34 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-animation.go +30 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-params.go +21 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-squeezer.go +44 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-status-page.go +24 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-style-manager.go +28 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipe-tracker.go +30 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipeable.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-switch-row.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-bar.go +32 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-button.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-overview.go +37 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-view.go +87 -123 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-timed-animation.go +28 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast-overlay.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast.go +36 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toggle-group.go +51 -64 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toolbar-view.go +35 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-version.go +16 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-stack.go +62 -78 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-bar.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-sidebar.go +22 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-title.go +23 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher.go +20 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window-title.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window.go +22 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-box.go +46 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-layout.go +46 -57 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/cairo/main.go +79 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkapplaunchcontext.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairo.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairocontext.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcicpparams.go +25 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkclipboard.go +32 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcolorstate.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentdeserializer.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentformats.go +31 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentprovider.go +28 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentserializer.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcursor.go +21 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevice.go +33 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicepad.go +22 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicetool.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplay.go +43 -51 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplaymanager.go +20 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexture.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexturebuilder.go +41 -53 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrag.go +28 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurface.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurfacesize.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrawcontext.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrop.go +24 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkenums.go +1 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkevents.go +118 -120 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframeclock.go +24 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframetimings.go +20 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkglcontext.go +36 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexture.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexturebuilder.go +35 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkkeys.go +22 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexture.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexturebuilder.go +35 -42 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmonitor.go +27 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpaintable.go +33 -63 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpango.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpixbuf.go +12 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopup.go +26 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopuplayout.go +32 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkrgba.go +21 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkseat.go +20 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksnapshot.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksurface.go +40 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktexture.go +31 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevel.go +66 -157 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevellayout.go +25 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevelsize.go +16 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktypes.go +72 -95 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkvulkancontext.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-animation.go +32 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-core.go +0 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-io.go +23 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-loader.go +22 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-simple-anim.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-transform.go +1 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf.go +79 -102 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/main.go +17 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gaction.go +31 -59 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactiongroup.go +39 -96 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactionmap.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gappinfo.go +116 -244 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplication.go +55 -79 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplicationcommandline.go +27 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncinitable.go +22 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncresult.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedinputstream.go +29 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedoutputstream.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbytesicon.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcancellable.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcharsetconverter.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcontenttype.go +26 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverter.go +20 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverterinputstream.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverteroutputstream.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcredentials.go +21 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatagrambased.go +30 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatainputstream.go +35 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdataoutputstream.go +23 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusactiongroup.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusaddress.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusauthobserver.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusconnection.go +66 -77 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbuserror.go +18 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusinterface.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusinterfaceskeleton.go +24 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusintrospection.go +56 -54 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmenumodel.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmessage.go +64 -88 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmethodinvocation.go +30 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusnameowning.go +15 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusnamewatching.go +15 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobject.go +17 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanager.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerclient.go +23 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerserver.go +20 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectproxy.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectskeleton.go +18 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusproxy.go +38 -42 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusserver.go +20 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusutils.go +22 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdebugcontroller.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdebugcontrollerdbus.go +14 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdrive.go +82 -214 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsclientconnection.go +24 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsconnection.go +80 -207 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsserverconnection.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gemblem.go +17 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gemblemedicon.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfile.go +450 -1148 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileattribute.go +19 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileenumerator.go +35 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileicon.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileinfo.go +84 -138 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileinputstream.go +23 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileiostream.go +27 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilemonitor.go +15 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilenamecompleter.go +16 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileoutputstream.go +27 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilterinputstream.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilteroutputstream.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gicon.go +25 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetaddress.go +34 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetaddressmask.go +21 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetsocketaddress.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginitable.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginputstream.go +48 -52 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioenums.go +1 -90 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioerror.go +13 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giomodule.go +29 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioscheduler.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giostream.go +29 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giotypes.go +60 -70 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giptosmessage.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gipv6tclassmessage.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/glistmodel.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gliststore.go +24 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gloadableicon.go +23 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemoryinputstream.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemorymonitor.go +12 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemoryoutputstream.go +19 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmenu.go +50 -62 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmenumodel.go +33 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmount.go +86 -215 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmountoperation.go +32 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnativesocketaddress.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnativevolumemonitor.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkaddress.go +21 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworking.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkmonitor.go +31 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkservice.go +19 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnotification.go +26 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/goutputstream.go +72 -86 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpermission.go +33 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableinputstream.go +22 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableoutputstream.go +27 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableutils.go +15 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpowerprofilemonitor.go +16 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpropertyaction.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxy.go +27 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyaddress.go +21 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyaddressenumerator.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyresolver.go +27 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gremoteactiongroup.go +15 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gresolver.go +67 -75 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gresource.go +23 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gseekable.go +27 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettings.go +67 -99 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettingsbackend.go +24 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettingsschema.go +43 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleaction.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleactiongroup.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleasyncresult.go +40 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleiostream.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimplepermission.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleproxyresolver.go +16 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocket.go +72 -87 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketaddress.go +19 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketaddressenumerator.go +20 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketclient.go +44 -54 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketconnectable.go +17 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketconnection.go +21 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketcontrolmessage.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketlistener.go +25 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketservice.go +16 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsrvtarget.go +11 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsubprocess.go +39 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsubprocesslauncher.go +31 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtask.go +52 -70 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtcpconnection.go +14 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtcpwrapperconnection.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtestdbus.go +22 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gthemedicon.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gthreadedresolver.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gthreadedsocketservice.go +12 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsbackend.go +33 -69 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlscertificate.go +29 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsclientconnection.go +29 -55 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsconnection.go +46 -56 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsdatabase.go +48 -51 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsfiledatabase.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsinteraction.go +31 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlspassword.go +22 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsserverconnection.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixconnection.go +20 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixcredentialsmessage.go +17 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixfdlist.go +19 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixsocketaddress.go +22 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvfs.go +24 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvolume.go +58 -143 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvolumemonitor.go +19 -11 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gzlibcompressor.go +18 -9 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gzlibdecompressor.go +15 -3 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/main.go +11 -2 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gallocator.go +28 -32 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/garray.go +59 -82 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gasyncqueue.go +39 -56 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gatomic.go +34 -43 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 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gshell.go +16 -5 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gslice.go +21 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gslist.go +11 -2 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gspawn.go +23 -12 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstdio.go +27 -33 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstrfuncs.go +71 -115 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstring.go +51 -77 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstringchunk.go +15 -10 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstrvbuilder.go +22 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtestutils.go +80 -132
| @@ -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 | ||
| @@ -52,8 +53,6 @@ var xTestCaseFree func(uintptr) | |||
| 52 | 53 | ||
| 53 | 54 | // Free the @test_case. | |
| 54 | 55 | func (x *TestCase) Free() { | |
| 55 | - | core.LazyRegister(&xTestCaseFree, "GLIB", "g_test_case_free", false) | |
| 56 | - | ||
| 57 | 56 | xTestCaseFree(x.GoPointer()) | |
| 58 | 57 | } | |
| 59 | 58 | ||
| @@ -109,8 +108,6 @@ var xTestLogBufferFree func(uintptr) | |||
| 109 | 108 | ||
| 110 | 109 | // Internal function for gtester to free test log messages, no ABI guarantees provided. | |
| 111 | 110 | func (x *TestLogBuffer) Free() { | |
| 112 | - | core.LazyRegister(&xTestLogBufferFree, "GLIB", "g_test_log_buffer_free", false) | |
| 113 | - | ||
| 114 | 111 | xTestLogBufferFree(x.GoPointer()) | |
| 115 | 112 | } | |
| 116 | 113 | ||
| @@ -118,8 +115,6 @@ var xTestLogBufferPop func(uintptr) uintptr | |||
| 118 | 115 | ||
| 119 | 116 | // Internal function for gtester to retrieve test log messages, no ABI guarantees provided. | |
| 120 | 117 | func (x *TestLogBuffer) Pop() *TestLogMsg { | |
| 121 | - | core.LazyRegister(&xTestLogBufferPop, "GLIB", "g_test_log_buffer_pop", false) | |
| 122 | - | ||
| 123 | 118 | cret := xTestLogBufferPop(x.GoPointer()) | |
| 124 | 119 | if cret == 0 { | |
| 125 | 120 | return nil | |
| @@ -131,8 +126,6 @@ var xTestLogBufferPush func(uintptr, uint, byte) | |||
| 131 | 126 | ||
| 132 | 127 | // Internal function for gtester to decode test log messages, no ABI guarantees provided. | |
| 133 | 128 | func (x *TestLogBuffer) Push(NBytesVar uint, BytesVar byte) { | |
| 134 | - | core.LazyRegister(&xTestLogBufferPush, "GLIB", "g_test_log_buffer_push", false) | |
| 135 | - | ||
| 136 | 129 | xTestLogBufferPush(x.GoPointer(), NBytesVar, BytesVar) | |
| 137 | 130 | } | |
| 138 | 131 | ||
| @@ -166,8 +159,6 @@ var xTestLogMsgFree func(uintptr) | |||
| 166 | 159 | ||
| 167 | 160 | // Internal function for gtester to free test log messages, no ABI guarantees provided. | |
| 168 | 161 | func (x *TestLogMsg) Free() { | |
| 169 | - | core.LazyRegister(&xTestLogMsgFree, "GLIB", "g_test_log_msg_free", false) | |
| 170 | - | ||
| 171 | 162 | xTestLogMsgFree(x.GoPointer()) | |
| 172 | 163 | } | |
| 173 | 164 | ||
| @@ -192,8 +183,6 @@ var xTestSuiteAdd func(uintptr, *TestCase) | |||
| 192 | 183 | ||
| 193 | 184 | // Adds @test_case to @suite. | |
| 194 | 185 | func (x *TestSuite) Add(TestCaseVar *TestCase) { | |
| 195 | - | core.LazyRegister(&xTestSuiteAdd, "GLIB", "g_test_suite_add", false) | |
| 196 | - | ||
| 197 | 186 | xTestSuiteAdd(x.GoPointer(), TestCaseVar) | |
| 198 | 187 | } | |
| 199 | 188 | ||
| @@ -201,8 +190,6 @@ var xTestSuiteAddSuite func(uintptr, *TestSuite) | |||
| 201 | 190 | ||
| 202 | 191 | // Adds @nestedsuite to @suite. | |
| 203 | 192 | func (x *TestSuite) AddSuite(NestedsuiteVar *TestSuite) { | |
| 204 | - | core.LazyRegister(&xTestSuiteAddSuite, "GLIB", "g_test_suite_add_suite", false) | |
| 205 | - | ||
| 206 | 193 | xTestSuiteAddSuite(x.GoPointer(), NestedsuiteVar) | |
| 207 | 194 | } | |
| 208 | 195 | ||
| @@ -210,8 +197,6 @@ var xTestSuiteFree func(uintptr) | |||
| 210 | 197 | ||
| 211 | 198 | // Frees the @suite and all nested suites. | |
| 212 | 199 | func (x *TestSuite) Free() { | |
| 213 | - | core.LazyRegister(&xTestSuiteFree, "GLIB", "g_test_suite_free", false) | |
| 214 | - | ||
| 215 | 200 | xTestSuiteFree(x.GoPointer()) | |
| 216 | 201 | } | |
| 217 | 202 | ||
| @@ -380,48 +365,36 @@ const ( | |||
| 380 | 365 | var xAssertionMessage func(string, string, int, string, string) | |
| 381 | 366 | ||
| 382 | 367 | func AssertionMessage(DomainVar string, FileVar string, LineVar int, FuncVar string, MessageVar string) { | |
| 383 | - | core.LazyRegister(&xAssertionMessage, "GLIB", "g_assertion_message", false) | |
| 384 | - | ||
| 385 | 368 | xAssertionMessage(DomainVar, FileVar, LineVar, FuncVar, MessageVar) | |
| 386 | 369 | } | |
| 387 | 370 | ||
| 388 | 371 | var xAssertionMessageCmpint func(string, string, int, string, string, uint64, string, uint64, byte) | |
| 389 | 372 | ||
| 390 | 373 | func AssertionMessageCmpint(DomainVar string, FileVar string, LineVar int, FuncVar string, ExprVar string, Arg1Var uint64, CmpVar string, Arg2Var uint64, NumtypeVar byte) { | |
| 391 | - | core.LazyRegister(&xAssertionMessageCmpint, "GLIB", "g_assertion_message_cmpint", false) | |
| 392 | - | ||
| 393 | 374 | xAssertionMessageCmpint(DomainVar, FileVar, LineVar, FuncVar, ExprVar, Arg1Var, CmpVar, Arg2Var, NumtypeVar) | |
| 394 | 375 | } | |
| 395 | 376 | ||
| 396 | 377 | var xAssertionMessageCmpnum func(string, string, int, string, string, float64, string, float64, byte) | |
| 397 | 378 | ||
| 398 | 379 | func AssertionMessageCmpnum(DomainVar string, FileVar string, LineVar int, FuncVar string, ExprVar string, Arg1Var float64, CmpVar string, Arg2Var float64, NumtypeVar byte) { | |
| 399 | - | core.LazyRegister(&xAssertionMessageCmpnum, "GLIB", "g_assertion_message_cmpnum", false) | |
| 400 | - | ||
| 401 | 380 | xAssertionMessageCmpnum(DomainVar, FileVar, LineVar, FuncVar, ExprVar, Arg1Var, CmpVar, Arg2Var, NumtypeVar) | |
| 402 | 381 | } | |
| 403 | 382 | ||
| 404 | 383 | var xAssertionMessageCmpstr func(string, string, int, string, string, string, string, string) | |
| 405 | 384 | ||
| 406 | 385 | func AssertionMessageCmpstr(DomainVar string, FileVar string, LineVar int, FuncVar string, ExprVar string, Arg1Var string, CmpVar string, Arg2Var string) { | |
| 407 | - | core.LazyRegister(&xAssertionMessageCmpstr, "GLIB", "g_assertion_message_cmpstr", false) | |
| 408 | - | ||
| 409 | 386 | xAssertionMessageCmpstr(DomainVar, FileVar, LineVar, FuncVar, ExprVar, Arg1Var, CmpVar, Arg2Var) | |
| 410 | 387 | } | |
| 411 | 388 | ||
| 412 | 389 | var xAssertionMessageCmpstrv func(string, string, int, string, string, string, string, uint) | |
| 413 | 390 | ||
| 414 | 391 | func AssertionMessageCmpstrv(DomainVar string, FileVar string, LineVar int, FuncVar string, ExprVar string, Arg1Var string, Arg2Var string, FirstWrongIdxVar uint) { | |
| 415 | - | core.LazyRegister(&xAssertionMessageCmpstrv, "GLIB", "g_assertion_message_cmpstrv", false) | |
| 416 | - | ||
| 417 | 392 | xAssertionMessageCmpstrv(DomainVar, FileVar, LineVar, FuncVar, ExprVar, Arg1Var, Arg2Var, FirstWrongIdxVar) | |
| 418 | 393 | } | |
| 419 | 394 | ||
| 420 | 395 | var xAssertionMessageError func(string, string, int, string, string, *Error, Quark, int) | |
| 421 | 396 | ||
| 422 | 397 | func AssertionMessageError(DomainVar string, FileVar string, LineVar int, FuncVar string, ExprVar string, ErrorVar *Error, ErrorDomainVar Quark, ErrorCodeVar int) { | |
| 423 | - | core.LazyRegister(&xAssertionMessageError, "GLIB", "g_assertion_message_error", false) | |
| 424 | - | ||
| 425 | 398 | xAssertionMessageError(DomainVar, FileVar, LineVar, FuncVar, ExprVar, ErrorVar, ErrorDomainVar, ErrorCodeVar) | |
| 426 | 399 | } | |
| 427 | 400 | ||
| @@ -430,8 +403,6 @@ var xAssertionMessageExpr func(uintptr, string, int, string, uintptr) | |||
| 430 | 403 | // Internal function used to print messages from the public | |
| 431 | 404 | // g_assert() and g_assert_not_reached() macros. | |
| 432 | 405 | func AssertionMessageExpr(DomainVar *string, FileVar string, LineVar int, FuncVar string, ExprVar *string) { | |
| 433 | - | core.LazyRegister(&xAssertionMessageExpr, "GLIB", "g_assertion_message_expr", false) | |
| 434 | - | ||
| 435 | 406 | DomainVarPtr := core.GStrdupNullable(DomainVar) | |
| 436 | 407 | defer core.GFreeNullable(DomainVarPtr) | |
| 437 | 408 | ||
| @@ -448,8 +419,6 @@ var xStrcmp0 func(uintptr, uintptr) int | |||
| 448 | 419 | // Handles `NULL` gracefully by sorting it before non-`NULL` strings. | |
| 449 | 420 | // Comparing two `NULL` pointers returns 0. | |
| 450 | 421 | func Strcmp0(Str1Var *string, Str2Var *string) int { | |
| 451 | - | core.LazyRegister(&xStrcmp0, "GLIB", "g_strcmp0", false) | |
| 452 | - | ||
| 453 | 422 | Str1VarPtr := core.GStrdupNullable(Str1Var) | |
| 454 | 423 | defer core.GFreeNullable(Str1VarPtr) | |
| 455 | 424 | ||
| @@ -478,8 +447,6 @@ var xTestAddDataFunc func(string, uintptr, uintptr) | |||
| 478 | 447 | // [const@GLib.TEST_OPTION_ISOLATE_DIRS] option is being used; | |
| 479 | 448 | // and it is recommended to do so even if it isn’t. | |
| 480 | 449 | func TestAddDataFunc(TestpathVar string, TestDataVar uintptr, TestFuncVar *TestDataFunc) { | |
| 481 | - | core.LazyRegister(&xTestAddDataFunc, "GLIB", "g_test_add_data_func", false) | |
| 482 | - | ||
| 483 | 450 | xTestAddDataFunc(TestpathVar, TestDataVar, NewCallback(TestFuncVar)) | |
| 484 | 451 | } | |
| 485 | 452 | ||
| @@ -490,8 +457,6 @@ var xTestAddDataFuncFull func(string, uintptr, uintptr, uintptr) | |||
| 490 | 457 | // In contrast to [func@GLib.test_add_data_func], this function | |
| 491 | 458 | // is freeing @test_data after the test run is complete. | |
| 492 | 459 | func TestAddDataFuncFull(TestpathVar string, TestDataVar uintptr, TestFuncVar *TestDataFunc, DataFreeFuncVar *DestroyNotify) { | |
| 493 | - | core.LazyRegister(&xTestAddDataFuncFull, "GLIB", "g_test_add_data_func_full", false) | |
| 494 | - | ||
| 495 | 460 | xTestAddDataFuncFull(TestpathVar, TestDataVar, NewCallback(TestFuncVar), NewCallback(DataFreeFuncVar)) | |
| 496 | 461 | } | |
| 497 | 462 | ||
| @@ -512,24 +477,18 @@ var xTestAddFunc func(string, uintptr) | |||
| 512 | 477 | // [const@GLib.TEST_OPTION_ISOLATE_DIRS] option is being used; and | |
| 513 | 478 | // it is recommended to do so even if it isn’t. | |
| 514 | 479 | func TestAddFunc(TestpathVar string, TestFuncVar *TestFunc) { | |
| 515 | - | core.LazyRegister(&xTestAddFunc, "GLIB", "g_test_add_func", false) | |
| 516 | - | ||
| 517 | 480 | xTestAddFunc(TestpathVar, NewCallback(TestFuncVar)) | |
| 518 | 481 | } | |
| 519 | 482 | ||
| 520 | 483 | var xTestAddVtable func(string, uint, uintptr, uintptr, uintptr, uintptr) | |
| 521 | 484 | ||
| 522 | 485 | func TestAddVtable(TestpathVar string, DataSizeVar uint, TestDataVar uintptr, DataSetupVar *TestFixtureFunc, DataTestVar *TestFixtureFunc, DataTeardownVar *TestFixtureFunc) { | |
| 523 | - | core.LazyRegister(&xTestAddVtable, "GLIB", "g_test_add_vtable", false) | |
| 524 | - | ||
| 525 | 486 | xTestAddVtable(TestpathVar, DataSizeVar, TestDataVar, NewCallback(DataSetupVar), NewCallback(DataTestVar), NewCallback(DataTeardownVar)) | |
| 526 | 487 | } | |
| 527 | 488 | ||
| 528 | 489 | var xTestAssertExpectedMessagesInternal func(string, string, int, string) | |
| 529 | 490 | ||
| 530 | 491 | func TestAssertExpectedMessagesInternal(DomainVar string, FileVar string, LineVar int, FuncVar string) { | |
| 531 | - | core.LazyRegister(&xTestAssertExpectedMessagesInternal, "GLIB", "g_test_assert_expected_messages_internal", false) | |
| 532 | - | ||
| 533 | 492 | xTestAssertExpectedMessagesInternal(DomainVar, FileVar, LineVar, FuncVar) | |
| 534 | 493 | } | |
| 535 | 494 | ||
| @@ -547,8 +506,6 @@ var xTestBug func(string) | |||
| 547 | 506 | // Since GLib 2.70, the base URI is not prepended to @bug_uri_snippet | |
| 548 | 507 | // if it is already a valid URI. | |
| 549 | 508 | func TestBug(BugUriSnippetVar string) { | |
| 550 | - | core.LazyRegister(&xTestBug, "GLIB", "g_test_bug", false) | |
| 551 | - | ||
| 552 | 509 | xTestBug(BugUriSnippetVar) | |
| 553 | 510 | } | |
| 554 | 511 | ||
| @@ -569,8 +526,6 @@ var xTestBugBase func(string) | |||
| 569 | 526 | // If [func@GLib.test_bug_base] is not called, bug URIs are formed | |
| 570 | 527 | // solely from the value provided by [func@GLib.test_bug]. | |
| 571 | 528 | func TestBugBase(UriPatternVar string) { | |
| 572 | - | core.LazyRegister(&xTestBugBase, "GLIB", "g_test_bug_base", false) | |
| 573 | - | ||
| 574 | 529 | xTestBugBase(UriPatternVar) | |
| 575 | 530 | } | |
| 576 | 531 | ||
| @@ -599,8 +554,6 @@ var xTestBuildFilename func(TestFileType, string, ...interface{}) string | |||
| 599 | 554 | // installed tests, assuming the data files have been installed in the | |
| 600 | 555 | // same relative path as the test binary. | |
| 601 | 556 | func TestBuildFilename(FileTypeVar TestFileType, FirstPathVar string, varArgs ...interface{}) string { | |
| 602 | - | core.LazyRegister(&xTestBuildFilename, "GLIB", "g_test_build_filename", false) | |
| 603 | - | ||
| 604 | 557 | cret := xTestBuildFilename(FileTypeVar, FirstPathVar, varArgs...) | |
| 605 | 558 | return cret | |
| 606 | 559 | } | |
| @@ -625,8 +578,6 @@ var xTestCreateCase func(string, uint, uintptr, uintptr, uintptr, uintptr) uintp | |||
| 625 | 578 | // called with the same type of fixture (the @data_size argument), but | |
| 626 | 579 | // varying @test_name and @data_test arguments. | |
| 627 | 580 | func TestCreateCase(TestNameVar string, DataSizeVar uint, TestDataVar uintptr, DataSetupVar *TestFixtureFunc, DataTestVar *TestFixtureFunc, DataTeardownVar *TestFixtureFunc) *TestCase { | |
| 628 | - | core.LazyRegister(&xTestCreateCase, "GLIB", "g_test_create_case", false) | |
| 629 | - | ||
| 630 | 581 | cret := xTestCreateCase(TestNameVar, DataSizeVar, TestDataVar, NewCallback(DataSetupVar), NewCallback(DataTestVar), NewCallback(DataTeardownVar)) | |
| 631 | 582 | if cret == 0 { | |
| 632 | 583 | return nil | |
| @@ -638,8 +589,6 @@ var xTestCreateSuite func(string) uintptr | |||
| 638 | 589 | ||
| 639 | 590 | // Creates a new test suite with the name @suite_name. | |
| 640 | 591 | func TestCreateSuite(SuiteNameVar string) *TestSuite { | |
| 641 | - | core.LazyRegister(&xTestCreateSuite, "GLIB", "g_test_create_suite", false) | |
| 642 | - | ||
| 643 | 592 | cret := xTestCreateSuite(SuiteNameVar) | |
| 644 | 593 | if cret == 0 { | |
| 645 | 594 | return nil | |
| @@ -655,8 +604,6 @@ var xTestDisableCrashReporting func() | |||
| 655 | 604 | // expected or intended to crash, to avoid wasting resources in system-wide | |
| 656 | 605 | // crash collection infrastructure such as systemd-coredump or abrt. | |
| 657 | 606 | func TestDisableCrashReporting() { | |
| 658 | - | core.LazyRegister(&xTestDisableCrashReporting, "GLIB", "g_test_disable_crash_reporting", false) | |
| 659 | - | ||
| 660 | 607 | xTestDisableCrashReporting() | |
| 661 | 608 | } | |
| 662 | 609 | ||
| @@ -700,8 +647,6 @@ var xTestExpectMessage func(uintptr, LogLevelFlags, string) | |||
| 700 | 647 | // If messages at [flags@GLib.LogLevelFlags.LEVEL_DEBUG] are emitted, but not explicitly | |
| 701 | 648 | // expected via [func@GLib.test_expect_message] then they will be ignored. | |
| 702 | 649 | func TestExpectMessage(LogDomainVar *string, LogLevelVar LogLevelFlags, PatternVar string) { | |
| 703 | - | core.LazyRegister(&xTestExpectMessage, "GLIB", "g_test_expect_message", false) | |
| 704 | - | ||
| 705 | 650 | LogDomainVarPtr := core.GStrdupNullable(LogDomainVar) | |
| 706 | 651 | defer core.GFreeNullable(LogDomainVarPtr) | |
| 707 | 652 | ||
| @@ -731,8 +676,6 @@ var xTestFail func() | |||
| 731 | 676 | // [func@GLib.test_message] before [func@GLib.test_fail], or use | |
| 732 | 677 | // [func@GLib.test_fail_printf] instead. | |
| 733 | 678 | func TestFail() { | |
| 734 | - | core.LazyRegister(&xTestFail, "GLIB", "g_test_fail", false) | |
| 735 | - | ||
| 736 | 679 | xTestFail() | |
| 737 | 680 | } | |
| 738 | 681 | ||
| @@ -744,8 +687,6 @@ var xTestFailPrintf func(string, ...interface{}) | |||
| 744 | 687 | // | |
| 745 | 688 | // The message is formatted as if by [func@GLib.strdup_printf]. | |
| 746 | 689 | func TestFailPrintf(FormatVar string, varArgs ...interface{}) { | |
| 747 | - | core.LazyRegister(&xTestFailPrintf, "GLIB", "g_test_fail_printf", false) | |
| 748 | - | ||
| 749 | 690 | xTestFailPrintf(FormatVar, varArgs...) | |
| 750 | 691 | } | |
| 751 | 692 | ||
| @@ -763,8 +704,6 @@ var xTestFailed func() bool | |||
| 763 | 704 | // The return value of this function is only meaningful | |
| 764 | 705 | // if it is called from inside a test function. | |
| 765 | 706 | func TestFailed() bool { | |
| 766 | - | core.LazyRegister(&xTestFailed, "GLIB", "g_test_failed", false) | |
| 767 | - | ||
| 768 | 707 | cret := xTestFailed() | |
| 769 | 708 | return cret | |
| 770 | 709 | } | |
| @@ -777,8 +716,6 @@ var xTestGetDir func(TestFileType) string | |||
| 777 | 716 | // This is approximately the same as calling `g_test_build_filename(".")`, | |
| 778 | 717 | // but you don't need to free the return value. | |
| 779 | 718 | func TestGetDir(FileTypeVar TestFileType) string { | |
| 780 | - | core.LazyRegister(&xTestGetDir, "GLIB", "g_test_get_dir", false) | |
| 781 | - | ||
| 782 | 719 | cret := xTestGetDir(FileTypeVar) | |
| 783 | 720 | return cret | |
| 784 | 721 | } | |
| @@ -798,8 +735,6 @@ var xTestGetFilename func(TestFileType, string, ...interface{}) string | |||
| 798 | 735 | // function returns (ie: it is best to ensure that all threads have been | |
| 799 | 736 | // joined). | |
| 800 | 737 | func TestGetFilename(FileTypeVar TestFileType, FirstPathVar string, varArgs ...interface{}) string { | |
| 801 | - | core.LazyRegister(&xTestGetFilename, "GLIB", "g_test_get_filename", false) | |
| 802 | - | ||
| 803 | 738 | cret := xTestGetFilename(FileTypeVar, FirstPathVar, varArgs...) | |
| 804 | 739 | return cret | |
| 805 | 740 | } | |
| @@ -815,8 +750,6 @@ var xTestGetPath func() string | |||
| 815 | 750 | // | |
| 816 | 751 | // Note that this is a test path, not a file system path. | |
| 817 | 752 | func TestGetPath() string { | |
| 818 | - | core.LazyRegister(&xTestGetPath, "GLIB", "g_test_get_path", false) | |
| 819 | - | ||
| 820 | 753 | cret := xTestGetPath() | |
| 821 | 754 | return cret | |
| 822 | 755 | } | |
| @@ -825,8 +758,6 @@ var xTestGetRoot func() uintptr | |||
| 825 | 758 | ||
| 826 | 759 | // Gets the toplevel test suite for the test path API. | |
| 827 | 760 | func TestGetRoot() *TestSuite { | |
| 828 | - | core.LazyRegister(&xTestGetRoot, "GLIB", "g_test_get_root", false) | |
| 829 | - | ||
| 830 | 761 | cret := xTestGetRoot() | |
| 831 | 762 | if cret == 0 { | |
| 832 | 763 | return nil | |
| @@ -848,8 +779,6 @@ var xTestIncomplete func(uintptr) | |||
| 848 | 779 | // | |
| 849 | 780 | // If not called from inside a test, this function does nothing. | |
| 850 | 781 | func TestIncomplete(MsgVar *string) { | |
| 851 | - | core.LazyRegister(&xTestIncomplete, "GLIB", "g_test_incomplete", false) | |
| 852 | - | ||
| 853 | 782 | MsgVarPtr := core.GStrdupNullable(MsgVar) | |
| 854 | 783 | defer core.GFreeNullable(MsgVarPtr) | |
| 855 | 784 | ||
| @@ -864,8 +793,6 @@ var xTestIncompletePrintf func(string, ...interface{}) | |||
| 864 | 793 | // Equivalent to [func@GLib.test_incomplete], but the explanation | |
| 865 | 794 | // is formatted as if by [func@GLib.strdup_printf]. | |
| 866 | 795 | func TestIncompletePrintf(FormatVar string, varArgs ...interface{}) { | |
| 867 | - | core.LazyRegister(&xTestIncompletePrintf, "GLIB", "g_test_incomplete_printf", false) | |
| 868 | - | ||
| 869 | 796 | xTestIncompletePrintf(FormatVar, varArgs...) | |
| 870 | 797 | } | |
| 871 | 798 | ||
| @@ -931,8 +858,6 @@ var xTestInit func(int, string, ...interface{}) | |||
| 931 | 858 | // when compiled with `G_DISABLE_ASSERT`. Ensure your tests are compiled without | |
| 932 | 859 | // `G_DISABLE_ASSERT` defined. | |
| 933 | 860 | func TestInit(ArgcVar int, ArgvVar string, varArgs ...interface{}) { | |
| 934 | - | core.LazyRegister(&xTestInit, "GLIB", "g_test_init", false) | |
| 935 | - | ||
| 936 | 861 | xTestInit(ArgcVar, ArgvVar, varArgs...) | |
| 937 | 862 | } | |
| 938 | 863 | ||
| @@ -960,16 +885,12 @@ var xTestLogSetFatalHandler func(uintptr, uintptr) | |||
| 960 | 885 | // writer function using [func@GLib.log_set_writer_func].See | |
| 961 | 886 | // [Using Structured Logging](logging.html#using-structured-logging). | |
| 962 | 887 | func TestLogSetFatalHandler(LogFuncVar *TestLogFatalFunc, UserDataVar uintptr) { | |
| 963 | - | core.LazyRegister(&xTestLogSetFatalHandler, "GLIB", "g_test_log_set_fatal_handler", false) | |
| 964 | - | ||
| 965 | 888 | xTestLogSetFatalHandler(NewCallback(LogFuncVar), UserDataVar) | |
| 966 | 889 | } | |
| 967 | 890 | ||
| 968 | 891 | var xTestLogTypeName func(TestLogType) string | |
| 969 | 892 | ||
| 970 | 893 | func TestLogTypeName(LogTypeVar TestLogType) string { | |
| 971 | - | core.LazyRegister(&xTestLogTypeName, "GLIB", "g_test_log_type_name", false) | |
| 972 | - | ||
| 973 | 894 | cret := xTestLogTypeName(LogTypeVar) | |
| 974 | 895 | return cret | |
| 975 | 896 | } | |
| @@ -983,8 +904,6 @@ var xTestMaximizedResult func(float64, string, ...interface{}) | |||
| 983 | 904 | // this and @maximized_quantity can determine sorting | |
| 984 | 905 | // order for test result reports. | |
| 985 | 906 | func TestMaximizedResult(MaximizedQuantityVar float64, FormatVar string, varArgs ...interface{}) { | |
| 986 | - | core.LazyRegister(&xTestMaximizedResult, "GLIB", "g_test_maximized_result", false) | |
| 987 | - | ||
| 988 | 907 | xTestMaximizedResult(MaximizedQuantityVar, FormatVar, varArgs...) | |
| 989 | 908 | } | |
| 990 | 909 | ||
| @@ -992,8 +911,6 @@ var xTestMessage func(string, ...interface{}) | |||
| 992 | 911 | ||
| 993 | 912 | // Adds a message to the test report. | |
| 994 | 913 | func TestMessage(FormatVar string, varArgs ...interface{}) { | |
| 995 | - | core.LazyRegister(&xTestMessage, "GLIB", "g_test_message", false) | |
| 996 | - | ||
| 997 | 914 | xTestMessage(FormatVar, varArgs...) | |
| 998 | 915 | } | |
| 999 | 916 | ||
| @@ -1006,8 +923,6 @@ var xTestMinimizedResult func(float64, string, ...interface{}) | |||
| 1006 | 923 | // this and @minimized_quantity can determine sorting | |
| 1007 | 924 | // order for test result reports. | |
| 1008 | 925 | func TestMinimizedResult(MinimizedQuantityVar float64, FormatVar string, varArgs ...interface{}) { | |
| 1009 | - | core.LazyRegister(&xTestMinimizedResult, "GLIB", "g_test_minimized_result", false) | |
| 1010 | - | ||
| 1011 | 926 | xTestMinimizedResult(MinimizedQuantityVar, FormatVar, varArgs...) | |
| 1012 | 927 | } | |
| 1013 | 928 | ||
| @@ -1021,8 +936,6 @@ var xTestQueueDestroy func(uintptr, uintptr) | |||
| 1021 | 936 | // enqueueing callback `A` before callback `B` will cause `B()` to be called | |
| 1022 | 937 | // before `A()` during teardown. | |
| 1023 | 938 | func TestQueueDestroy(DestroyFuncVar *DestroyNotify, DestroyDataVar uintptr) { | |
| 1024 | - | core.LazyRegister(&xTestQueueDestroy, "GLIB", "g_test_queue_destroy", false) | |
| 1025 | - | ||
| 1026 | 939 | xTestQueueDestroy(NewCallbackNullable(DestroyFuncVar), DestroyDataVar) | |
| 1027 | 940 | } | |
| 1028 | 941 | ||
| @@ -1034,8 +947,6 @@ var xTestQueueFree func(uintptr) | |||
| 1034 | 947 | // This is equivalent to calling [func@GLib.test_queue_destroy] | |
| 1035 | 948 | // with a destroy callback of [func@GLib.free]. | |
| 1036 | 949 | func TestQueueFree(GfreePointerVar uintptr) { | |
| 1037 | - | core.LazyRegister(&xTestQueueFree, "GLIB", "g_test_queue_free", false) | |
| 1038 | - | ||
| 1039 | 950 | xTestQueueFree(GfreePointerVar) | |
| 1040 | 951 | } | |
| 1041 | 952 | ||
| @@ -1045,8 +956,6 @@ var xTestRandDouble func() float64 | |||
| 1045 | 956 | // | |
| 1046 | 957 | // See [func@GLib.test_rand_int] for details on test case random numbers. | |
| 1047 | 958 | func TestRandDouble() float64 { | |
| 1048 | - | core.LazyRegister(&xTestRandDouble, "GLIB", "g_test_rand_double", false) | |
| 1049 | - | ||
| 1050 | 959 | cret := xTestRandDouble() | |
| 1051 | 960 | return cret | |
| 1052 | 961 | } | |
| @@ -1057,8 +966,6 @@ var xTestRandDoubleRange func(float64, float64) float64 | |||
| 1057 | 966 | // | |
| 1058 | 967 | // See [func@GLib.test_rand_int] for details on test case random numbers. | |
| 1059 | 968 | func TestRandDoubleRange(RangeStartVar float64, RangeEndVar float64) float64 { | |
| 1060 | - | core.LazyRegister(&xTestRandDoubleRange, "GLIB", "g_test_rand_double_range", false) | |
| 1061 | - | ||
| 1062 | 969 | cret := xTestRandDoubleRange(RangeStartVar, RangeEndVar) | |
| 1063 | 970 | return cret | |
| 1064 | 971 | } | |
| @@ -1075,8 +982,6 @@ var xTestRandInt func() int32 | |||
| 1075 | 982 | // reseeded, to avoid dependencies between tests and to make --seed | |
| 1076 | 983 | // effective for all test cases. | |
| 1077 | 984 | func TestRandInt() int32 { | |
| 1078 | - | core.LazyRegister(&xTestRandInt, "GLIB", "g_test_rand_int", false) | |
| 1079 | - | ||
| 1080 | 985 | cret := xTestRandInt() | |
| 1081 | 986 | return cret | |
| 1082 | 987 | } | |
| @@ -1087,8 +992,6 @@ var xTestRandIntRange func(int32, int32) int32 | |||
| 1087 | 992 | // | |
| 1088 | 993 | // See [func@GLib.test_rand_int] for details on test case random numbers. | |
| 1089 | 994 | func TestRandIntRange(BeginVar int32, EndVar int32) int32 { | |
| 1090 | - | core.LazyRegister(&xTestRandIntRange, "GLIB", "g_test_rand_int_range", false) | |
| 1091 | - | ||
| 1092 | 995 | cret := xTestRandIntRange(BeginVar, EndVar) | |
| 1093 | 996 | return cret | |
| 1094 | 997 | } | |
| @@ -1130,8 +1033,6 @@ var xTestRun func() int | |||
| 1130 | 1033 | // this function will return 0 if producing TAP output, or 77 (treated | |
| 1131 | 1034 | // as "skip test" by Automake) otherwise. | |
| 1132 | 1035 | func TestRun() int { | |
| 1133 | - | core.LazyRegister(&xTestRun, "GLIB", "g_test_run", false) | |
| 1134 | - | ||
| 1135 | 1036 | cret := xTestRun() | |
| 1136 | 1037 | return cret | |
| 1137 | 1038 | } | |
| @@ -1148,8 +1049,6 @@ var xTestRunSuite func(*TestSuite) int | |||
| 1148 | 1049 | // [func@GLib.test_run_suite] or [func@GLib.test_run] may only be | |
| 1149 | 1050 | // called once in a program. | |
| 1150 | 1051 | func TestRunSuite(SuiteVar *TestSuite) int { | |
| 1151 | - | core.LazyRegister(&xTestRunSuite, "GLIB", "g_test_run_suite", false) | |
| 1152 | - | ||
| 1153 | 1052 | cret := xTestRunSuite(SuiteVar) | |
| 1154 | 1053 | return cret | |
| 1155 | 1054 | } | |
| @@ -1172,8 +1071,6 @@ var xTestSetNonfatalAssertions func() | |||
| 1172 | 1071 | // | |
| 1173 | 1072 | // This function can only be called after [func@GLib.test_init]. | |
| 1174 | 1073 | func TestSetNonfatalAssertions() { | |
| 1175 | - | core.LazyRegister(&xTestSetNonfatalAssertions, "GLIB", "g_test_set_nonfatal_assertions", false) | |
| 1176 | - | ||
| 1177 | 1074 | xTestSetNonfatalAssertions() | |
| 1178 | 1075 | } | |
| 1179 | 1076 | ||
| @@ -1188,8 +1085,6 @@ var xTestSkip func(uintptr) | |||
| 1188 | 1085 | // | |
| 1189 | 1086 | // If not called from inside a test, this function does nothing. | |
| 1190 | 1087 | func TestSkip(MsgVar *string) { | |
| 1191 | - | core.LazyRegister(&xTestSkip, "GLIB", "g_test_skip", false) | |
| 1192 | - | ||
| 1193 | 1088 | MsgVarPtr := core.GStrdupNullable(MsgVar) | |
| 1194 | 1089 | defer core.GFreeNullable(MsgVarPtr) | |
| 1195 | 1090 | ||
| @@ -1203,8 +1098,6 @@ var xTestSkipPrintf func(string, ...interface{}) | |||
| 1203 | 1098 | // Equivalent to [func@GLib.test_skip], but the explanation | |
| 1204 | 1099 | // is formatted as if by [func@GLib.strdup_printf]. | |
| 1205 | 1100 | func TestSkipPrintf(FormatVar string, varArgs ...interface{}) { | |
| 1206 | - | core.LazyRegister(&xTestSkipPrintf, "GLIB", "g_test_skip_printf", false) | |
| 1207 | - | ||
| 1208 | 1101 | xTestSkipPrintf(FormatVar, varArgs...) | |
| 1209 | 1102 | } | |
| 1210 | 1103 | ||
| @@ -1212,8 +1105,6 @@ var xTestSubprocess func() bool | |||
| 1212 | 1105 | ||
| 1213 | 1106 | // Returns true if the test program is running under [func@GLib.test_trap_subprocess]. | |
| 1214 | 1107 | func TestSubprocess() bool { | |
| 1215 | - | core.LazyRegister(&xTestSubprocess, "GLIB", "g_test_subprocess", false) | |
| 1216 | - | ||
| 1217 | 1108 | cret := xTestSubprocess() | |
| 1218 | 1109 | return cret | |
| 1219 | 1110 | } | |
| @@ -1245,8 +1136,6 @@ var xTestSummary func(string) | |||
| 1245 | 1136 | // | |
| 1246 | 1137 | // See also [func@GLib.test_bug]. | |
| 1247 | 1138 | func TestSummary(SummaryVar string) { | |
| 1248 | - | core.LazyRegister(&xTestSummary, "GLIB", "g_test_summary", false) | |
| 1249 | - | ||
| 1250 | 1139 | xTestSummary(SummaryVar) | |
| 1251 | 1140 | } | |
| 1252 | 1141 | ||
| @@ -1255,8 +1144,6 @@ var xTestTimerElapsed func() float64 | |||
| 1255 | 1144 | // Gets the number of seconds since the last start of the timer with | |
| 1256 | 1145 | // [func@GLib.test_timer_start]. | |
| 1257 | 1146 | func TestTimerElapsed() float64 { | |
| 1258 | - | core.LazyRegister(&xTestTimerElapsed, "GLIB", "g_test_timer_elapsed", false) | |
| 1259 | - | ||
| 1260 | 1147 | cret := xTestTimerElapsed() | |
| 1261 | 1148 | return cret | |
| 1262 | 1149 | } | |
| @@ -1265,8 +1152,6 @@ var xTestTimerLast func() float64 | |||
| 1265 | 1152 | ||
| 1266 | 1153 | // Reports the last result of [func@GLib.test_timer_elapsed]. | |
| 1267 | 1154 | func TestTimerLast() float64 { | |
| 1268 | - | core.LazyRegister(&xTestTimerLast, "GLIB", "g_test_timer_last", false) | |
| 1269 | - | ||
| 1270 | 1155 | cret := xTestTimerLast() | |
| 1271 | 1156 | return cret | |
| 1272 | 1157 | } | |
| @@ -1278,16 +1163,12 @@ var xTestTimerStart func() | |||
| 1278 | 1163 | // Call [func@GLib.test_timer_elapsed] when the task is supposed | |
| 1279 | 1164 | // to be done. Call this function again to restart the timer. | |
| 1280 | 1165 | func TestTimerStart() { | |
| 1281 | - | core.LazyRegister(&xTestTimerStart, "GLIB", "g_test_timer_start", false) | |
| 1282 | - | ||
| 1283 | 1166 | xTestTimerStart() | |
| 1284 | 1167 | } | |
| 1285 | 1168 | ||
| 1286 | 1169 | var xTestTrapAssertions func(string, string, int, string, uint64, string) | |
| 1287 | 1170 | ||
| 1288 | 1171 | func TestTrapAssertions(DomainVar string, FileVar string, LineVar int, FuncVar string, AssertionFlagsVar uint64, PatternVar string) { | |
| 1289 | - | core.LazyRegister(&xTestTrapAssertions, "GLIB", "g_test_trap_assertions", false) | |
| 1290 | - | ||
| 1291 | 1172 | xTestTrapAssertions(DomainVar, FileVar, LineVar, FuncVar, AssertionFlagsVar, PatternVar) | |
| 1292 | 1173 | } | |
| 1293 | 1174 | ||
| @@ -1331,8 +1212,6 @@ var xTestTrapFork func(uint64, TestTrapFlags) bool | |||
| 1331 | 1212 | // | |
| 1332 | 1213 | // ``` | |
| 1333 | 1214 | func TestTrapFork(UsecTimeoutVar uint64, TestTrapFlagsVar TestTrapFlags) bool { | |
| 1334 | - | core.LazyRegister(&xTestTrapFork, "GLIB", "g_test_trap_fork", false) | |
| 1335 | - | ||
| 1336 | 1215 | cret := xTestTrapFork(UsecTimeoutVar, TestTrapFlagsVar) | |
| 1337 | 1216 | return cret | |
| 1338 | 1217 | } | |
| @@ -1341,8 +1220,6 @@ var xTestTrapHasPassed func() bool | |||
| 1341 | 1220 | ||
| 1342 | 1221 | // Checks the result of the last [func@GLib.test_trap_subprocess] call. | |
| 1343 | 1222 | func TestTrapHasPassed() bool { | |
| 1344 | - | core.LazyRegister(&xTestTrapHasPassed, "GLIB", "g_test_trap_has_passed", false) | |
| 1345 | - | ||
| 1346 | 1223 | cret := xTestTrapHasPassed() | |
| 1347 | 1224 | return cret | |
| 1348 | 1225 | } | |
| @@ -1351,8 +1228,6 @@ var xTestTrapHasSkipped func() bool | |||
| 1351 | 1228 | ||
| 1352 | 1229 | // Checks the result of the last [func@GLib.test_trap_subprocess] call. | |
| 1353 | 1230 | func TestTrapHasSkipped() bool { | |
| 1354 | - | core.LazyRegister(&xTestTrapHasSkipped, "GLIB", "g_test_trap_has_skipped", false) | |
| 1355 | - | ||
| 1356 | 1231 | cret := xTestTrapHasSkipped() | |
| 1357 | 1232 | return cret | |
| 1358 | 1233 | } | |
| @@ -1361,8 +1236,6 @@ var xTestTrapReachedTimeout func() bool | |||
| 1361 | 1236 | ||
| 1362 | 1237 | // Checks the result of the last [func@GLib.test_trap_subprocess] call. | |
| 1363 | 1238 | func TestTrapReachedTimeout() bool { | |
| 1364 | - | core.LazyRegister(&xTestTrapReachedTimeout, "GLIB", "g_test_trap_reached_timeout", false) | |
| 1365 | - | ||
| 1366 | 1239 | cret := xTestTrapReachedTimeout() | |
| 1367 | 1240 | return cret | |
| 1368 | 1241 | } | |
| @@ -1375,8 +1248,6 @@ var xTestTrapSubprocess func(uintptr, uint64, TestSubprocessFlags) | |||
| 1375 | 1248 | // with `envp` set to `NULL`. See the documentation for that function | |
| 1376 | 1249 | // for full details. | |
| 1377 | 1250 | func TestTrapSubprocess(TestPathVar *string, UsecTimeoutVar uint64, TestFlagsVar TestSubprocessFlags) { | |
| 1378 | - | core.LazyRegister(&xTestTrapSubprocess, "GLIB", "g_test_trap_subprocess", false) | |
| 1379 | - | ||
| 1380 | 1251 | TestPathVarPtr := core.GStrdupNullable(TestPathVar) | |
| 1381 | 1252 | defer core.GFreeNullable(TestPathVarPtr) | |
| 1382 | 1253 | ||
| @@ -1477,8 +1348,6 @@ var xTestTrapSubprocessWithEnvp func(uintptr, []string, uint64, TestSubprocessFl | |||
| 1477 | 1348 | // | |
| 1478 | 1349 | // ``` | |
| 1479 | 1350 | func TestTrapSubprocessWithEnvp(TestPathVar *string, EnvpVar []string, UsecTimeoutVar uint64, TestFlagsVar TestSubprocessFlags) { | |
| 1480 | - | core.LazyRegister(&xTestTrapSubprocessWithEnvp, "GLIB", "g_test_trap_subprocess_with_envp", false) | |
| 1481 | - | ||
| 1482 | 1351 | TestPathVarPtr := core.GStrdupNullable(TestPathVar) | |
| 1483 | 1352 | defer core.GFreeNullable(TestPathVarPtr) | |
| 1484 | 1353 | ||
| @@ -1488,4 +1357,83 @@ func TestTrapSubprocessWithEnvp(TestPathVar *string, EnvpVar []string, UsecTimeo | |||
| 1488 | 1357 | func init() { | |
| 1489 | 1358 | core.SetPackageName("GLIB", "glib-2.0") | |
| 1490 | 1359 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | |
| 1360 | + | var libs []uintptr | |
| 1361 | + | for _, libPath := range core.GetPaths("GLIB") { | |
| 1362 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 1363 | + | if err != nil { | |
| 1364 | + | panic(err) | |
| 1365 | + | } | |
| 1366 | + | libs = append(libs, lib) | |
| 1367 | + | } | |
| 1368 | + | ||
| 1369 | + | core.PuregoSafeRegister(&xAssertionMessage, libs, "g_assertion_message") | |
| 1370 | + | core.PuregoSafeRegister(&xAssertionMessageCmpint, libs, "g_assertion_message_cmpint") | |
| 1371 | + | core.PuregoSafeRegister(&xAssertionMessageCmpnum, libs, "g_assertion_message_cmpnum") | |
| 1372 | + | core.PuregoSafeRegister(&xAssertionMessageCmpstr, libs, "g_assertion_message_cmpstr") | |
| 1373 | + | core.PuregoSafeRegister(&xAssertionMessageCmpstrv, libs, "g_assertion_message_cmpstrv") | |
| 1374 | + | core.PuregoSafeRegister(&xAssertionMessageError, libs, "g_assertion_message_error") | |
| 1375 | + | core.PuregoSafeRegister(&xAssertionMessageExpr, libs, "g_assertion_message_expr") | |
| 1376 | + | core.PuregoSafeRegister(&xStrcmp0, libs, "g_strcmp0") | |
| 1377 | + | core.PuregoSafeRegister(&xTestAddDataFunc, libs, "g_test_add_data_func") | |
| 1378 | + | core.PuregoSafeRegister(&xTestAddDataFuncFull, libs, "g_test_add_data_func_full") | |
| 1379 | + | core.PuregoSafeRegister(&xTestAddFunc, libs, "g_test_add_func") | |
| 1380 | + | core.PuregoSafeRegister(&xTestAddVtable, libs, "g_test_add_vtable") | |
| 1381 | + | core.PuregoSafeRegister(&xTestAssertExpectedMessagesInternal, libs, "g_test_assert_expected_messages_internal") | |
| 1382 | + | core.PuregoSafeRegister(&xTestBug, libs, "g_test_bug") | |
| 1383 | + | core.PuregoSafeRegister(&xTestBugBase, libs, "g_test_bug_base") | |
| 1384 | + | core.PuregoSafeRegister(&xTestBuildFilename, libs, "g_test_build_filename") | |
| 1385 | + | core.PuregoSafeRegister(&xTestCreateCase, libs, "g_test_create_case") | |
| 1386 | + | core.PuregoSafeRegister(&xTestCreateSuite, libs, "g_test_create_suite") | |
| 1387 | + | core.PuregoSafeRegister(&xTestDisableCrashReporting, libs, "g_test_disable_crash_reporting") | |
| 1388 | + | core.PuregoSafeRegister(&xTestExpectMessage, libs, "g_test_expect_message") | |
| 1389 | + | core.PuregoSafeRegister(&xTestFail, libs, "g_test_fail") | |
| 1390 | + | core.PuregoSafeRegister(&xTestFailPrintf, libs, "g_test_fail_printf") | |
| 1391 | + | core.PuregoSafeRegister(&xTestFailed, libs, "g_test_failed") | |
| 1392 | + | core.PuregoSafeRegister(&xTestGetDir, libs, "g_test_get_dir") | |
| 1393 | + | core.PuregoSafeRegister(&xTestGetFilename, libs, "g_test_get_filename") | |
| 1394 | + | core.PuregoSafeRegister(&xTestGetPath, libs, "g_test_get_path") | |
| 1395 | + | core.PuregoSafeRegister(&xTestGetRoot, libs, "g_test_get_root") | |
| 1396 | + | core.PuregoSafeRegister(&xTestIncomplete, libs, "g_test_incomplete") | |
| 1397 | + | core.PuregoSafeRegister(&xTestIncompletePrintf, libs, "g_test_incomplete_printf") | |
| 1398 | + | core.PuregoSafeRegister(&xTestInit, libs, "g_test_init") | |
| 1399 | + | core.PuregoSafeRegister(&xTestLogSetFatalHandler, libs, "g_test_log_set_fatal_handler") | |
| 1400 | + | core.PuregoSafeRegister(&xTestLogTypeName, libs, "g_test_log_type_name") | |
| 1401 | + | core.PuregoSafeRegister(&xTestMaximizedResult, libs, "g_test_maximized_result") | |
| 1402 | + | core.PuregoSafeRegister(&xTestMessage, libs, "g_test_message") | |
| 1403 | + | core.PuregoSafeRegister(&xTestMinimizedResult, libs, "g_test_minimized_result") | |
| 1404 | + | core.PuregoSafeRegister(&xTestQueueDestroy, libs, "g_test_queue_destroy") | |
| 1405 | + | core.PuregoSafeRegister(&xTestQueueFree, libs, "g_test_queue_free") | |
| 1406 | + | core.PuregoSafeRegister(&xTestRandDouble, libs, "g_test_rand_double") | |
| 1407 | + | core.PuregoSafeRegister(&xTestRandDoubleRange, libs, "g_test_rand_double_range") | |
| 1408 | + | core.PuregoSafeRegister(&xTestRandInt, libs, "g_test_rand_int") | |
| 1409 | + | core.PuregoSafeRegister(&xTestRandIntRange, libs, "g_test_rand_int_range") | |
| 1410 | + | core.PuregoSafeRegister(&xTestRun, libs, "g_test_run") | |
| 1411 | + | core.PuregoSafeRegister(&xTestRunSuite, libs, "g_test_run_suite") | |
| 1412 | + | core.PuregoSafeRegister(&xTestSetNonfatalAssertions, libs, "g_test_set_nonfatal_assertions") | |
| 1413 | + | core.PuregoSafeRegister(&xTestSkip, libs, "g_test_skip") | |
| 1414 | + | core.PuregoSafeRegister(&xTestSkipPrintf, libs, "g_test_skip_printf") | |
| 1415 | + | core.PuregoSafeRegister(&xTestSubprocess, libs, "g_test_subprocess") | |
| 1416 | + | core.PuregoSafeRegister(&xTestSummary, libs, "g_test_summary") | |
| 1417 | + | core.PuregoSafeRegister(&xTestTimerElapsed, libs, "g_test_timer_elapsed") | |
| 1418 | + | core.PuregoSafeRegister(&xTestTimerLast, libs, "g_test_timer_last") | |
| 1419 | + | core.PuregoSafeRegister(&xTestTimerStart, libs, "g_test_timer_start") | |
| 1420 | + | core.PuregoSafeRegister(&xTestTrapAssertions, libs, "g_test_trap_assertions") | |
| 1421 | + | core.PuregoSafeRegister(&xTestTrapFork, libs, "g_test_trap_fork") | |
| 1422 | + | core.PuregoSafeRegister(&xTestTrapHasPassed, libs, "g_test_trap_has_passed") | |
| 1423 | + | core.PuregoSafeRegister(&xTestTrapHasSkipped, libs, "g_test_trap_has_skipped") | |
| 1424 | + | core.PuregoSafeRegister(&xTestTrapReachedTimeout, libs, "g_test_trap_reached_timeout") | |
| 1425 | + | core.PuregoSafeRegister(&xTestTrapSubprocess, libs, "g_test_trap_subprocess") | |
| 1426 | + | core.PuregoSafeRegister(&xTestTrapSubprocessWithEnvp, libs, "g_test_trap_subprocess_with_envp") | |
| 1427 | + | ||
| 1428 | + | core.PuregoSafeRegister(&xTestCaseFree, libs, "g_test_case_free") | |
| 1429 | + | ||
| 1430 | + | core.PuregoSafeRegister(&xTestLogBufferFree, libs, "g_test_log_buffer_free") | |
| 1431 | + | core.PuregoSafeRegister(&xTestLogBufferPop, libs, "g_test_log_buffer_pop") | |
| 1432 | + | core.PuregoSafeRegister(&xTestLogBufferPush, libs, "g_test_log_buffer_push") | |
| 1433 | + | ||
| 1434 | + | core.PuregoSafeRegister(&xTestLogMsgFree, libs, "g_test_log_msg_free") | |
| 1435 | + | ||
| 1436 | + | core.PuregoSafeRegister(&xTestSuiteAdd, libs, "g_test_suite_add") | |
| 1437 | + | core.PuregoSafeRegister(&xTestSuiteAddSuite, libs, "g_test_suite_add_suite") | |
| 1438 | + | core.PuregoSafeRegister(&xTestSuiteFree, libs, "g_test_suite_free") | |
| 1491 | 1439 | } | |
| @@ -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 | ||||
| @@ -52,8 +53,6 @@ var xTestCaseFree func(uintptr) | |||||
| 52 | 53 | ||||
| 53 | // Free the @test_case. | 54 | // Free the @test_case. | ||
| 54 | func (x *TestCase) Free() { | 55 | func (x *TestCase) Free() { | ||
| 55 | - | core.LazyRegister(&xTestCaseFree, "GLIB", "g_test_case_free", false) | |||
| 56 | - | ||||
| 57 | xTestCaseFree(x.GoPointer()) | 56 | xTestCaseFree(x.GoPointer()) | ||
| 58 | } | 57 | } | ||
| 59 | 58 | ||||
| @@ -109,8 +108,6 @@ var xTestLogBufferFree func(uintptr) | |||||
| 109 | 108 | ||||
| 110 | // Internal function for gtester to free test log messages, no ABI guarantees provided. | 109 | // Internal function for gtester to free test log messages, no ABI guarantees provided. | ||
| 111 | func (x *TestLogBuffer) Free() { | 110 | func (x *TestLogBuffer) Free() { | ||
| 112 | - | core.LazyRegister(&xTestLogBufferFree, "GLIB", "g_test_log_buffer_free", false) | |||
| 113 | - | ||||
| 114 | xTestLogBufferFree(x.GoPointer()) | 111 | xTestLogBufferFree(x.GoPointer()) | ||
| 115 | } | 112 | } | ||
| 116 | 113 | ||||
| @@ -118,8 +115,6 @@ var xTestLogBufferPop func(uintptr) uintptr | |||||
| 118 | 115 | ||||
| 119 | // Internal function for gtester to retrieve test log messages, no ABI guarantees provided. | 116 | // Internal function for gtester to retrieve test log messages, no ABI guarantees provided. | ||
| 120 | func (x *TestLogBuffer) Pop() *TestLogMsg { | 117 | func (x *TestLogBuffer) Pop() *TestLogMsg { | ||
| 121 | - | core.LazyRegister(&xTestLogBufferPop, "GLIB", "g_test_log_buffer_pop", false) | |||
| 122 | - | ||||
| 123 | cret := xTestLogBufferPop(x.GoPointer()) | 118 | cret := xTestLogBufferPop(x.GoPointer()) | ||
| 124 | if cret == 0 { | 119 | if cret == 0 { | ||
| 125 | return nil | 120 | return nil | ||
| @@ -131,8 +126,6 @@ var xTestLogBufferPush func(uintptr, uint, byte) | |||||
| 131 | 126 | ||||
| 132 | // Internal function for gtester to decode test log messages, no ABI guarantees provided. | 127 | // Internal function for gtester to decode test log messages, no ABI guarantees provided. | ||
| 133 | func (x *TestLogBuffer) Push(NBytesVar uint, BytesVar byte) { | 128 | func (x *TestLogBuffer) Push(NBytesVar uint, BytesVar byte) { | ||
| 134 | - | core.LazyRegister(&xTestLogBufferPush, "GLIB", "g_test_log_buffer_push", false) | |||
| 135 | - | ||||
| 136 | xTestLogBufferPush(x.GoPointer(), NBytesVar, BytesVar) | 129 | xTestLogBufferPush(x.GoPointer(), NBytesVar, BytesVar) | ||
| 137 | } | 130 | } | ||
| 138 | 131 | ||||
| @@ -166,8 +159,6 @@ var xTestLogMsgFree func(uintptr) | |||||
| 166 | 159 | ||||
| 167 | // Internal function for gtester to free test log messages, no ABI guarantees provided. | 160 | // Internal function for gtester to free test log messages, no ABI guarantees provided. | ||
| 168 | func (x *TestLogMsg) Free() { | 161 | func (x *TestLogMsg) Free() { | ||
| 169 | - | core.LazyRegister(&xTestLogMsgFree, "GLIB", "g_test_log_msg_free", false) | |||
| 170 | - | ||||
| 171 | xTestLogMsgFree(x.GoPointer()) | 162 | xTestLogMsgFree(x.GoPointer()) | ||
| 172 | } | 163 | } | ||
| 173 | 164 | ||||
| @@ -192,8 +183,6 @@ var xTestSuiteAdd func(uintptr, *TestCase) | |||||
| 192 | 183 | ||||
| 193 | // Adds @test_case to @suite. | 184 | // Adds @test_case to @suite. | ||
| 194 | func (x *TestSuite) Add(TestCaseVar *TestCase) { | 185 | func (x *TestSuite) Add(TestCaseVar *TestCase) { | ||
| 195 | - | core.LazyRegister(&xTestSuiteAdd, "GLIB", "g_test_suite_add", false) | |||
| 196 | - | ||||
| 197 | xTestSuiteAdd(x.GoPointer(), TestCaseVar) | 186 | xTestSuiteAdd(x.GoPointer(), TestCaseVar) | ||
| 198 | } | 187 | } | ||
| 199 | 188 | ||||
| @@ -201,8 +190,6 @@ var xTestSuiteAddSuite func(uintptr, *TestSuite) | |||||
| 201 | 190 | ||||
| 202 | // Adds @nestedsuite to @suite. | 191 | // Adds @nestedsuite to @suite. | ||
| 203 | func (x *TestSuite) AddSuite(NestedsuiteVar *TestSuite) { | 192 | func (x *TestSuite) AddSuite(NestedsuiteVar *TestSuite) { | ||
| 204 | - | core.LazyRegister(&xTestSuiteAddSuite, "GLIB", "g_test_suite_add_suite", false) | |||
| 205 | - | ||||
| 206 | xTestSuiteAddSuite(x.GoPointer(), NestedsuiteVar) | 193 | xTestSuiteAddSuite(x.GoPointer(), NestedsuiteVar) | ||
| 207 | } | 194 | } | ||
| 208 | 195 | ||||
| @@ -210,8 +197,6 @@ var xTestSuiteFree func(uintptr) | |||||
| 210 | 197 | ||||
| 211 | // Frees the @suite and all nested suites. | 198 | // Frees the @suite and all nested suites. | ||
| 212 | func (x *TestSuite) Free() { | 199 | func (x *TestSuite) Free() { | ||
| 213 | - | core.LazyRegister(&xTestSuiteFree, "GLIB", "g_test_suite_free", false) | |||
| 214 | - | ||||
| 215 | xTestSuiteFree(x.GoPointer()) | 200 | xTestSuiteFree(x.GoPointer()) | ||
| 216 | } | 201 | } | ||
| 217 | 202 | ||||
| @@ -380,48 +365,36 @@ const ( | |||||
| 380 | var xAssertionMessage func(string, string, int, string, string) | 365 | var xAssertionMessage func(string, string, int, string, string) | ||
| 381 | 366 | ||||
| 382 | func AssertionMessage(DomainVar string, FileVar string, LineVar int, FuncVar string, MessageVar string) { | 367 | func AssertionMessage(DomainVar string, FileVar string, LineVar int, FuncVar string, MessageVar string) { | ||
| 383 | - | core.LazyRegister(&xAssertionMessage, "GLIB", "g_assertion_message", false) | |||
| 384 | - | ||||
| 385 | xAssertionMessage(DomainVar, FileVar, LineVar, FuncVar, MessageVar) | 368 | xAssertionMessage(DomainVar, FileVar, LineVar, FuncVar, MessageVar) | ||
| 386 | } | 369 | } | ||
| 387 | 370 | ||||
| 388 | var xAssertionMessageCmpint func(string, string, int, string, string, uint64, string, uint64, byte) | 371 | var xAssertionMessageCmpint func(string, string, int, string, string, uint64, string, uint64, byte) | ||
| 389 | 372 | ||||
| 390 | func AssertionMessageCmpint(DomainVar string, FileVar string, LineVar int, FuncVar string, ExprVar string, Arg1Var uint64, CmpVar string, Arg2Var uint64, NumtypeVar byte) { | 373 | func AssertionMessageCmpint(DomainVar string, FileVar string, LineVar int, FuncVar string, ExprVar string, Arg1Var uint64, CmpVar string, Arg2Var uint64, NumtypeVar byte) { | ||
| 391 | - | core.LazyRegister(&xAssertionMessageCmpint, "GLIB", "g_assertion_message_cmpint", false) | |||
| 392 | - | ||||
| 393 | xAssertionMessageCmpint(DomainVar, FileVar, LineVar, FuncVar, ExprVar, Arg1Var, CmpVar, Arg2Var, NumtypeVar) | 374 | xAssertionMessageCmpint(DomainVar, FileVar, LineVar, FuncVar, ExprVar, Arg1Var, CmpVar, Arg2Var, NumtypeVar) | ||
| 394 | } | 375 | } | ||
| 395 | 376 | ||||
| 396 | var xAssertionMessageCmpnum func(string, string, int, string, string, float64, string, float64, byte) | 377 | var xAssertionMessageCmpnum func(string, string, int, string, string, float64, string, float64, byte) | ||
| 397 | 378 | ||||
| 398 | func AssertionMessageCmpnum(DomainVar string, FileVar string, LineVar int, FuncVar string, ExprVar string, Arg1Var float64, CmpVar string, Arg2Var float64, NumtypeVar byte) { | 379 | func AssertionMessageCmpnum(DomainVar string, FileVar string, LineVar int, FuncVar string, ExprVar string, Arg1Var float64, CmpVar string, Arg2Var float64, NumtypeVar byte) { | ||
| 399 | - | core.LazyRegister(&xAssertionMessageCmpnum, "GLIB", "g_assertion_message_cmpnum", false) | |||
| 400 | - | ||||
| 401 | xAssertionMessageCmpnum(DomainVar, FileVar, LineVar, FuncVar, ExprVar, Arg1Var, CmpVar, Arg2Var, NumtypeVar) | 380 | xAssertionMessageCmpnum(DomainVar, FileVar, LineVar, FuncVar, ExprVar, Arg1Var, CmpVar, Arg2Var, NumtypeVar) | ||
| 402 | } | 381 | } | ||
| 403 | 382 | ||||
| 404 | var xAssertionMessageCmpstr func(string, string, int, string, string, string, string, string) | 383 | var xAssertionMessageCmpstr func(string, string, int, string, string, string, string, string) | ||
| 405 | 384 | ||||
| 406 | func AssertionMessageCmpstr(DomainVar string, FileVar string, LineVar int, FuncVar string, ExprVar string, Arg1Var string, CmpVar string, Arg2Var string) { | 385 | func AssertionMessageCmpstr(DomainVar string, FileVar string, LineVar int, FuncVar string, ExprVar string, Arg1Var string, CmpVar string, Arg2Var string) { | ||
| 407 | - | core.LazyRegister(&xAssertionMessageCmpstr, "GLIB", "g_assertion_message_cmpstr", false) | |||
| 408 | - | ||||
| 409 | xAssertionMessageCmpstr(DomainVar, FileVar, LineVar, FuncVar, ExprVar, Arg1Var, CmpVar, Arg2Var) | 386 | xAssertionMessageCmpstr(DomainVar, FileVar, LineVar, FuncVar, ExprVar, Arg1Var, CmpVar, Arg2Var) | ||
| 410 | } | 387 | } | ||
| 411 | 388 | ||||
| 412 | var xAssertionMessageCmpstrv func(string, string, int, string, string, string, string, uint) | 389 | var xAssertionMessageCmpstrv func(string, string, int, string, string, string, string, uint) | ||
| 413 | 390 | ||||
| 414 | func AssertionMessageCmpstrv(DomainVar string, FileVar string, LineVar int, FuncVar string, ExprVar string, Arg1Var string, Arg2Var string, FirstWrongIdxVar uint) { | 391 | func AssertionMessageCmpstrv(DomainVar string, FileVar string, LineVar int, FuncVar string, ExprVar string, Arg1Var string, Arg2Var string, FirstWrongIdxVar uint) { | ||
| 415 | - | core.LazyRegister(&xAssertionMessageCmpstrv, "GLIB", "g_assertion_message_cmpstrv", false) | |||
| 416 | - | ||||
| 417 | xAssertionMessageCmpstrv(DomainVar, FileVar, LineVar, FuncVar, ExprVar, Arg1Var, Arg2Var, FirstWrongIdxVar) | 392 | xAssertionMessageCmpstrv(DomainVar, FileVar, LineVar, FuncVar, ExprVar, Arg1Var, Arg2Var, FirstWrongIdxVar) | ||
| 418 | } | 393 | } | ||
| 419 | 394 | ||||
| 420 | var xAssertionMessageError func(string, string, int, string, string, *Error, Quark, int) | 395 | var xAssertionMessageError func(string, string, int, string, string, *Error, Quark, int) | ||
| 421 | 396 | ||||
| 422 | func AssertionMessageError(DomainVar string, FileVar string, LineVar int, FuncVar string, ExprVar string, ErrorVar *Error, ErrorDomainVar Quark, ErrorCodeVar int) { | 397 | func AssertionMessageError(DomainVar string, FileVar string, LineVar int, FuncVar string, ExprVar string, ErrorVar *Error, ErrorDomainVar Quark, ErrorCodeVar int) { | ||
| 423 | - | core.LazyRegister(&xAssertionMessageError, "GLIB", "g_assertion_message_error", false) | |||
| 424 | - | ||||
| 425 | xAssertionMessageError(DomainVar, FileVar, LineVar, FuncVar, ExprVar, ErrorVar, ErrorDomainVar, ErrorCodeVar) | 398 | xAssertionMessageError(DomainVar, FileVar, LineVar, FuncVar, ExprVar, ErrorVar, ErrorDomainVar, ErrorCodeVar) | ||
| 426 | } | 399 | } | ||
| 427 | 400 | ||||
| @@ -430,8 +403,6 @@ var xAssertionMessageExpr func(uintptr, string, int, string, uintptr) | |||||
| 430 | // Internal function used to print messages from the public | 403 | // Internal function used to print messages from the public | ||
| 431 | // g_assert() and g_assert_not_reached() macros. | 404 | // g_assert() and g_assert_not_reached() macros. | ||
| 432 | func AssertionMessageExpr(DomainVar *string, FileVar string, LineVar int, FuncVar string, ExprVar *string) { | 405 | func AssertionMessageExpr(DomainVar *string, FileVar string, LineVar int, FuncVar string, ExprVar *string) { | ||
| 433 | - | core.LazyRegister(&xAssertionMessageExpr, "GLIB", "g_assertion_message_expr", false) | |||
| 434 | - | ||||
| 435 | DomainVarPtr := core.GStrdupNullable(DomainVar) | 406 | DomainVarPtr := core.GStrdupNullable(DomainVar) | ||
| 436 | defer core.GFreeNullable(DomainVarPtr) | 407 | defer core.GFreeNullable(DomainVarPtr) | ||
| 437 | 408 | ||||
| @@ -448,8 +419,6 @@ var xStrcmp0 func(uintptr, uintptr) int | |||||
| 448 | // Handles `NULL` gracefully by sorting it before non-`NULL` strings. | 419 | // Handles `NULL` gracefully by sorting it before non-`NULL` strings. | ||
| 449 | // Comparing two `NULL` pointers returns 0. | 420 | // Comparing two `NULL` pointers returns 0. | ||
| 450 | func Strcmp0(Str1Var *string, Str2Var *string) int { | 421 | func Strcmp0(Str1Var *string, Str2Var *string) int { | ||
| 451 | - | core.LazyRegister(&xStrcmp0, "GLIB", "g_strcmp0", false) | |||
| 452 | - | ||||
| 453 | Str1VarPtr := core.GStrdupNullable(Str1Var) | 422 | Str1VarPtr := core.GStrdupNullable(Str1Var) | ||
| 454 | defer core.GFreeNullable(Str1VarPtr) | 423 | defer core.GFreeNullable(Str1VarPtr) | ||
| 455 | 424 | ||||
| @@ -478,8 +447,6 @@ var xTestAddDataFunc func(string, uintptr, uintptr) | |||||
| 478 | // [const@GLib.TEST_OPTION_ISOLATE_DIRS] option is being used; | 447 | // [const@GLib.TEST_OPTION_ISOLATE_DIRS] option is being used; | ||
| 479 | // and it is recommended to do so even if it isn’t. | 448 | // and it is recommended to do so even if it isn’t. | ||
| 480 | func TestAddDataFunc(TestpathVar string, TestDataVar uintptr, TestFuncVar *TestDataFunc) { | 449 | func TestAddDataFunc(TestpathVar string, TestDataVar uintptr, TestFuncVar *TestDataFunc) { | ||
| 481 | - | core.LazyRegister(&xTestAddDataFunc, "GLIB", "g_test_add_data_func", false) | |||
| 482 | - | ||||
| 483 | xTestAddDataFunc(TestpathVar, TestDataVar, NewCallback(TestFuncVar)) | 450 | xTestAddDataFunc(TestpathVar, TestDataVar, NewCallback(TestFuncVar)) | ||
| 484 | } | 451 | } | ||
| 485 | 452 | ||||
| @@ -490,8 +457,6 @@ var xTestAddDataFuncFull func(string, uintptr, uintptr, uintptr) | |||||
| 490 | // In contrast to [func@GLib.test_add_data_func], this function | 457 | // In contrast to [func@GLib.test_add_data_func], this function | ||
| 491 | // is freeing @test_data after the test run is complete. | 458 | // is freeing @test_data after the test run is complete. | ||
| 492 | func TestAddDataFuncFull(TestpathVar string, TestDataVar uintptr, TestFuncVar *TestDataFunc, DataFreeFuncVar *DestroyNotify) { | 459 | func TestAddDataFuncFull(TestpathVar string, TestDataVar uintptr, TestFuncVar *TestDataFunc, DataFreeFuncVar *DestroyNotify) { | ||
| 493 | - | core.LazyRegister(&xTestAddDataFuncFull, "GLIB", "g_test_add_data_func_full", false) | |||
| 494 | - | ||||
| 495 | xTestAddDataFuncFull(TestpathVar, TestDataVar, NewCallback(TestFuncVar), NewCallback(DataFreeFuncVar)) | 460 | xTestAddDataFuncFull(TestpathVar, TestDataVar, NewCallback(TestFuncVar), NewCallback(DataFreeFuncVar)) | ||
| 496 | } | 461 | } | ||
| 497 | 462 | ||||
| @@ -512,24 +477,18 @@ var xTestAddFunc func(string, uintptr) | |||||
| 512 | // [const@GLib.TEST_OPTION_ISOLATE_DIRS] option is being used; and | 477 | // [const@GLib.TEST_OPTION_ISOLATE_DIRS] option is being used; and | ||
| 513 | // it is recommended to do so even if it isn’t. | 478 | // it is recommended to do so even if it isn’t. | ||
| 514 | func TestAddFunc(TestpathVar string, TestFuncVar *TestFunc) { | 479 | func TestAddFunc(TestpathVar string, TestFuncVar *TestFunc) { | ||
| 515 | - | core.LazyRegister(&xTestAddFunc, "GLIB", "g_test_add_func", false) | |||
| 516 | - | ||||
| 517 | xTestAddFunc(TestpathVar, NewCallback(TestFuncVar)) | 480 | xTestAddFunc(TestpathVar, NewCallback(TestFuncVar)) | ||
| 518 | } | 481 | } | ||
| 519 | 482 | ||||
| 520 | var xTestAddVtable func(string, uint, uintptr, uintptr, uintptr, uintptr) | 483 | var xTestAddVtable func(string, uint, uintptr, uintptr, uintptr, uintptr) | ||
| 521 | 484 | ||||
| 522 | func TestAddVtable(TestpathVar string, DataSizeVar uint, TestDataVar uintptr, DataSetupVar *TestFixtureFunc, DataTestVar *TestFixtureFunc, DataTeardownVar *TestFixtureFunc) { | 485 | func TestAddVtable(TestpathVar string, DataSizeVar uint, TestDataVar uintptr, DataSetupVar *TestFixtureFunc, DataTestVar *TestFixtureFunc, DataTeardownVar *TestFixtureFunc) { | ||
| 523 | - | core.LazyRegister(&xTestAddVtable, "GLIB", "g_test_add_vtable", false) | |||
| 524 | - | ||||
| 525 | xTestAddVtable(TestpathVar, DataSizeVar, TestDataVar, NewCallback(DataSetupVar), NewCallback(DataTestVar), NewCallback(DataTeardownVar)) | 486 | xTestAddVtable(TestpathVar, DataSizeVar, TestDataVar, NewCallback(DataSetupVar), NewCallback(DataTestVar), NewCallback(DataTeardownVar)) | ||
| 526 | } | 487 | } | ||
| 527 | 488 | ||||
| 528 | var xTestAssertExpectedMessagesInternal func(string, string, int, string) | 489 | var xTestAssertExpectedMessagesInternal func(string, string, int, string) | ||
| 529 | 490 | ||||
| 530 | func TestAssertExpectedMessagesInternal(DomainVar string, FileVar string, LineVar int, FuncVar string) { | 491 | func TestAssertExpectedMessagesInternal(DomainVar string, FileVar string, LineVar int, FuncVar string) { | ||
| 531 | - | core.LazyRegister(&xTestAssertExpectedMessagesInternal, "GLIB", "g_test_assert_expected_messages_internal", false) | |||
| 532 | - | ||||
| 533 | xTestAssertExpectedMessagesInternal(DomainVar, FileVar, LineVar, FuncVar) | 492 | xTestAssertExpectedMessagesInternal(DomainVar, FileVar, LineVar, FuncVar) | ||
| 534 | } | 493 | } | ||
| 535 | 494 | ||||
| @@ -547,8 +506,6 @@ var xTestBug func(string) | |||||
| 547 | // Since GLib 2.70, the base URI is not prepended to @bug_uri_snippet | 506 | // Since GLib 2.70, the base URI is not prepended to @bug_uri_snippet | ||
| 548 | // if it is already a valid URI. | 507 | // if it is already a valid URI. | ||
| 549 | func TestBug(BugUriSnippetVar string) { | 508 | func TestBug(BugUriSnippetVar string) { | ||
| 550 | - | core.LazyRegister(&xTestBug, "GLIB", "g_test_bug", false) | |||
| 551 | - | ||||
| 552 | xTestBug(BugUriSnippetVar) | 509 | xTestBug(BugUriSnippetVar) | ||
| 553 | } | 510 | } | ||
| 554 | 511 | ||||
| @@ -569,8 +526,6 @@ var xTestBugBase func(string) | |||||
| 569 | // If [func@GLib.test_bug_base] is not called, bug URIs are formed | 526 | // If [func@GLib.test_bug_base] is not called, bug URIs are formed | ||
| 570 | // solely from the value provided by [func@GLib.test_bug]. | 527 | // solely from the value provided by [func@GLib.test_bug]. | ||
| 571 | func TestBugBase(UriPatternVar string) { | 528 | func TestBugBase(UriPatternVar string) { | ||
| 572 | - | core.LazyRegister(&xTestBugBase, "GLIB", "g_test_bug_base", false) | |||
| 573 | - | ||||
| 574 | xTestBugBase(UriPatternVar) | 529 | xTestBugBase(UriPatternVar) | ||
| 575 | } | 530 | } | ||
| 576 | 531 | ||||
| @@ -599,8 +554,6 @@ var xTestBuildFilename func(TestFileType, string, ...interface{}) string | |||||
| 599 | // installed tests, assuming the data files have been installed in the | 554 | // installed tests, assuming the data files have been installed in the | ||
| 600 | // same relative path as the test binary. | 555 | // same relative path as the test binary. | ||
| 601 | func TestBuildFilename(FileTypeVar TestFileType, FirstPathVar string, varArgs ...interface{}) string { | 556 | func TestBuildFilename(FileTypeVar TestFileType, FirstPathVar string, varArgs ...interface{}) string { | ||
| 602 | - | core.LazyRegister(&xTestBuildFilename, "GLIB", "g_test_build_filename", false) | |||
| 603 | - | ||||
| 604 | cret := xTestBuildFilename(FileTypeVar, FirstPathVar, varArgs...) | 557 | cret := xTestBuildFilename(FileTypeVar, FirstPathVar, varArgs...) | ||
| 605 | return cret | 558 | return cret | ||
| 606 | } | 559 | } | ||
| @@ -625,8 +578,6 @@ var xTestCreateCase func(string, uint, uintptr, uintptr, uintptr, uintptr) uintp | |||||
| 625 | // called with the same type of fixture (the @data_size argument), but | 578 | // called with the same type of fixture (the @data_size argument), but | ||
| 626 | // varying @test_name and @data_test arguments. | 579 | // varying @test_name and @data_test arguments. | ||
| 627 | func TestCreateCase(TestNameVar string, DataSizeVar uint, TestDataVar uintptr, DataSetupVar *TestFixtureFunc, DataTestVar *TestFixtureFunc, DataTeardownVar *TestFixtureFunc) *TestCase { | 580 | func TestCreateCase(TestNameVar string, DataSizeVar uint, TestDataVar uintptr, DataSetupVar *TestFixtureFunc, DataTestVar *TestFixtureFunc, DataTeardownVar *TestFixtureFunc) *TestCase { | ||
| 628 | - | core.LazyRegister(&xTestCreateCase, "GLIB", "g_test_create_case", false) | |||
| 629 | - | ||||
| 630 | cret := xTestCreateCase(TestNameVar, DataSizeVar, TestDataVar, NewCallback(DataSetupVar), NewCallback(DataTestVar), NewCallback(DataTeardownVar)) | 581 | cret := xTestCreateCase(TestNameVar, DataSizeVar, TestDataVar, NewCallback(DataSetupVar), NewCallback(DataTestVar), NewCallback(DataTeardownVar)) | ||
| 631 | if cret == 0 { | 582 | if cret == 0 { | ||
| 632 | return nil | 583 | return nil | ||
| @@ -638,8 +589,6 @@ var xTestCreateSuite func(string) uintptr | |||||
| 638 | 589 | ||||
| 639 | // Creates a new test suite with the name @suite_name. | 590 | // Creates a new test suite with the name @suite_name. | ||
| 640 | func TestCreateSuite(SuiteNameVar string) *TestSuite { | 591 | func TestCreateSuite(SuiteNameVar string) *TestSuite { | ||
| 641 | - | core.LazyRegister(&xTestCreateSuite, "GLIB", "g_test_create_suite", false) | |||
| 642 | - | ||||
| 643 | cret := xTestCreateSuite(SuiteNameVar) | 592 | cret := xTestCreateSuite(SuiteNameVar) | ||
| 644 | if cret == 0 { | 593 | if cret == 0 { | ||
| 645 | return nil | 594 | return nil | ||
| @@ -655,8 +604,6 @@ var xTestDisableCrashReporting func() | |||||
| 655 | // expected or intended to crash, to avoid wasting resources in system-wide | 604 | // expected or intended to crash, to avoid wasting resources in system-wide | ||
| 656 | // crash collection infrastructure such as systemd-coredump or abrt. | 605 | // crash collection infrastructure such as systemd-coredump or abrt. | ||
| 657 | func TestDisableCrashReporting() { | 606 | func TestDisableCrashReporting() { | ||
| 658 | - | core.LazyRegister(&xTestDisableCrashReporting, "GLIB", "g_test_disable_crash_reporting", false) | |||
| 659 | - | ||||
| 660 | xTestDisableCrashReporting() | 607 | xTestDisableCrashReporting() | ||
| 661 | } | 608 | } | ||
| 662 | 609 | ||||
| @@ -700,8 +647,6 @@ var xTestExpectMessage func(uintptr, LogLevelFlags, string) | |||||
| 700 | // If messages at [flags@GLib.LogLevelFlags.LEVEL_DEBUG] are emitted, but not explicitly | 647 | // If messages at [flags@GLib.LogLevelFlags.LEVEL_DEBUG] are emitted, but not explicitly | ||
| 701 | // expected via [func@GLib.test_expect_message] then they will be ignored. | 648 | // expected via [func@GLib.test_expect_message] then they will be ignored. | ||
| 702 | func TestExpectMessage(LogDomainVar *string, LogLevelVar LogLevelFlags, PatternVar string) { | 649 | func TestExpectMessage(LogDomainVar *string, LogLevelVar LogLevelFlags, PatternVar string) { | ||
| 703 | - | core.LazyRegister(&xTestExpectMessage, "GLIB", "g_test_expect_message", false) | |||
| 704 | - | ||||
| 705 | LogDomainVarPtr := core.GStrdupNullable(LogDomainVar) | 650 | LogDomainVarPtr := core.GStrdupNullable(LogDomainVar) | ||
| 706 | defer core.GFreeNullable(LogDomainVarPtr) | 651 | defer core.GFreeNullable(LogDomainVarPtr) | ||
| 707 | 652 | ||||
| @@ -731,8 +676,6 @@ var xTestFail func() | |||||
| 731 | // [func@GLib.test_message] before [func@GLib.test_fail], or use | 676 | // [func@GLib.test_message] before [func@GLib.test_fail], or use | ||
| 732 | // [func@GLib.test_fail_printf] instead. | 677 | // [func@GLib.test_fail_printf] instead. | ||
| 733 | func TestFail() { | 678 | func TestFail() { | ||
| 734 | - | core.LazyRegister(&xTestFail, "GLIB", "g_test_fail", false) | |||
| 735 | - | ||||
| 736 | xTestFail() | 679 | xTestFail() | ||
| 737 | } | 680 | } | ||
| 738 | 681 | ||||
| @@ -744,8 +687,6 @@ var xTestFailPrintf func(string, ...interface{}) | |||||
| 744 | // | 687 | // | ||
| 745 | // The message is formatted as if by [func@GLib.strdup_printf]. | 688 | // The message is formatted as if by [func@GLib.strdup_printf]. | ||
| 746 | func TestFailPrintf(FormatVar string, varArgs ...interface{}) { | 689 | func TestFailPrintf(FormatVar string, varArgs ...interface{}) { | ||
| 747 | - | core.LazyRegister(&xTestFailPrintf, "GLIB", "g_test_fail_printf", false) | |||
| 748 | - | ||||
| 749 | xTestFailPrintf(FormatVar, varArgs...) | 690 | xTestFailPrintf(FormatVar, varArgs...) | ||
| 750 | } | 691 | } | ||
| 751 | 692 | ||||
| @@ -763,8 +704,6 @@ var xTestFailed func() bool | |||||
| 763 | // The return value of this function is only meaningful | 704 | // The return value of this function is only meaningful | ||
| 764 | // if it is called from inside a test function. | 705 | // if it is called from inside a test function. | ||
| 765 | func TestFailed() bool { | 706 | func TestFailed() bool { | ||
| 766 | - | core.LazyRegister(&xTestFailed, "GLIB", "g_test_failed", false) | |||
| 767 | - | ||||
| 768 | cret := xTestFailed() | 707 | cret := xTestFailed() | ||
| 769 | return cret | 708 | return cret | ||
| 770 | } | 709 | } | ||
| @@ -777,8 +716,6 @@ var xTestGetDir func(TestFileType) string | |||||
| 777 | // This is approximately the same as calling `g_test_build_filename(".")`, | 716 | // This is approximately the same as calling `g_test_build_filename(".")`, | ||
| 778 | // but you don't need to free the return value. | 717 | // but you don't need to free the return value. | ||
| 779 | func TestGetDir(FileTypeVar TestFileType) string { | 718 | func TestGetDir(FileTypeVar TestFileType) string { | ||
| 780 | - | core.LazyRegister(&xTestGetDir, "GLIB", "g_test_get_dir", false) | |||
| 781 | - | ||||
| 782 | cret := xTestGetDir(FileTypeVar) | 719 | cret := xTestGetDir(FileTypeVar) | ||
| 783 | return cret | 720 | return cret | ||
| 784 | } | 721 | } | ||
| @@ -798,8 +735,6 @@ var xTestGetFilename func(TestFileType, string, ...interface{}) string | |||||
| 798 | // function returns (ie: it is best to ensure that all threads have been | 735 | // function returns (ie: it is best to ensure that all threads have been | ||
| 799 | // joined). | 736 | // joined). | ||
| 800 | func TestGetFilename(FileTypeVar TestFileType, FirstPathVar string, varArgs ...interface{}) string { | 737 | func TestGetFilename(FileTypeVar TestFileType, FirstPathVar string, varArgs ...interface{}) string { | ||
| 801 | - | core.LazyRegister(&xTestGetFilename, "GLIB", "g_test_get_filename", false) | |||
| 802 | - | ||||
| 803 | cret := xTestGetFilename(FileTypeVar, FirstPathVar, varArgs...) | 738 | cret := xTestGetFilename(FileTypeVar, FirstPathVar, varArgs...) | ||
| 804 | return cret | 739 | return cret | ||
| 805 | } | 740 | } | ||
| @@ -815,8 +750,6 @@ var xTestGetPath func() string | |||||
| 815 | // | 750 | // | ||
| 816 | // Note that this is a test path, not a file system path. | 751 | // Note that this is a test path, not a file system path. | ||
| 817 | func TestGetPath() string { | 752 | func TestGetPath() string { | ||
| 818 | - | core.LazyRegister(&xTestGetPath, "GLIB", "g_test_get_path", false) | |||
| 819 | - | ||||
| 820 | cret := xTestGetPath() | 753 | cret := xTestGetPath() | ||
| 821 | return cret | 754 | return cret | ||
| 822 | } | 755 | } | ||
| @@ -825,8 +758,6 @@ var xTestGetRoot func() uintptr | |||||
| 825 | 758 | ||||
| 826 | // Gets the toplevel test suite for the test path API. | 759 | // Gets the toplevel test suite for the test path API. | ||
| 827 | func TestGetRoot() *TestSuite { | 760 | func TestGetRoot() *TestSuite { | ||
| 828 | - | core.LazyRegister(&xTestGetRoot, "GLIB", "g_test_get_root", false) | |||
| 829 | - | ||||
| 830 | cret := xTestGetRoot() | 761 | cret := xTestGetRoot() | ||
| 831 | if cret == 0 { | 762 | if cret == 0 { | ||
| 832 | return nil | 763 | return nil | ||
| @@ -848,8 +779,6 @@ var xTestIncomplete func(uintptr) | |||||
| 848 | // | 779 | // | ||
| 849 | // If not called from inside a test, this function does nothing. | 780 | // If not called from inside a test, this function does nothing. | ||
| 850 | func TestIncomplete(MsgVar *string) { | 781 | func TestIncomplete(MsgVar *string) { | ||
| 851 | - | core.LazyRegister(&xTestIncomplete, "GLIB", "g_test_incomplete", false) | |||
| 852 | - | ||||
| 853 | MsgVarPtr := core.GStrdupNullable(MsgVar) | 782 | MsgVarPtr := core.GStrdupNullable(MsgVar) | ||
| 854 | defer core.GFreeNullable(MsgVarPtr) | 783 | defer core.GFreeNullable(MsgVarPtr) | ||
| 855 | 784 | ||||
| @@ -864,8 +793,6 @@ var xTestIncompletePrintf func(string, ...interface{}) | |||||
| 864 | // Equivalent to [func@GLib.test_incomplete], but the explanation | 793 | // Equivalent to [func@GLib.test_incomplete], but the explanation | ||
| 865 | // is formatted as if by [func@GLib.strdup_printf]. | 794 | // is formatted as if by [func@GLib.strdup_printf]. | ||
| 866 | func TestIncompletePrintf(FormatVar string, varArgs ...interface{}) { | 795 | func TestIncompletePrintf(FormatVar string, varArgs ...interface{}) { | ||
| 867 | - | core.LazyRegister(&xTestIncompletePrintf, "GLIB", "g_test_incomplete_printf", false) | |||
| 868 | - | ||||
| 869 | xTestIncompletePrintf(FormatVar, varArgs...) | 796 | xTestIncompletePrintf(FormatVar, varArgs...) | ||
| 870 | } | 797 | } | ||
| 871 | 798 | ||||
| @@ -931,8 +858,6 @@ var xTestInit func(int, string, ...interface{}) | |||||
| 931 | // when compiled with `G_DISABLE_ASSERT`. Ensure your tests are compiled without | 858 | // when compiled with `G_DISABLE_ASSERT`. Ensure your tests are compiled without | ||
| 932 | // `G_DISABLE_ASSERT` defined. | 859 | // `G_DISABLE_ASSERT` defined. | ||
| 933 | func TestInit(ArgcVar int, ArgvVar string, varArgs ...interface{}) { | 860 | func TestInit(ArgcVar int, ArgvVar string, varArgs ...interface{}) { | ||
| 934 | - | core.LazyRegister(&xTestInit, "GLIB", "g_test_init", false) | |||
| 935 | - | ||||
| 936 | xTestInit(ArgcVar, ArgvVar, varArgs...) | 861 | xTestInit(ArgcVar, ArgvVar, varArgs...) | ||
| 937 | } | 862 | } | ||
| 938 | 863 | ||||
| @@ -960,16 +885,12 @@ var xTestLogSetFatalHandler func(uintptr, uintptr) | |||||
| 960 | // writer function using [func@GLib.log_set_writer_func].See | 885 | // writer function using [func@GLib.log_set_writer_func].See | ||
| 961 | // [Using Structured Logging](logging.html#using-structured-logging). | 886 | // [Using Structured Logging](logging.html#using-structured-logging). | ||
| 962 | func TestLogSetFatalHandler(LogFuncVar *TestLogFatalFunc, UserDataVar uintptr) { | 887 | func TestLogSetFatalHandler(LogFuncVar *TestLogFatalFunc, UserDataVar uintptr) { | ||
| 963 | - | core.LazyRegister(&xTestLogSetFatalHandler, "GLIB", "g_test_log_set_fatal_handler", false) | |||
| 964 | - | ||||
| 965 | xTestLogSetFatalHandler(NewCallback(LogFuncVar), UserDataVar) | 888 | xTestLogSetFatalHandler(NewCallback(LogFuncVar), UserDataVar) | ||
| 966 | } | 889 | } | ||
| 967 | 890 | ||||
| 968 | var xTestLogTypeName func(TestLogType) string | 891 | var xTestLogTypeName func(TestLogType) string | ||
| 969 | 892 | ||||
| 970 | func TestLogTypeName(LogTypeVar TestLogType) string { | 893 | func TestLogTypeName(LogTypeVar TestLogType) string { | ||
| 971 | - | core.LazyRegister(&xTestLogTypeName, "GLIB", "g_test_log_type_name", false) | |||
| 972 | - | ||||
| 973 | cret := xTestLogTypeName(LogTypeVar) | 894 | cret := xTestLogTypeName(LogTypeVar) | ||
| 974 | return cret | 895 | return cret | ||
| 975 | } | 896 | } | ||
| @@ -983,8 +904,6 @@ var xTestMaximizedResult func(float64, string, ...interface{}) | |||||
| 983 | // this and @maximized_quantity can determine sorting | 904 | // this and @maximized_quantity can determine sorting | ||
| 984 | // order for test result reports. | 905 | // order for test result reports. | ||
| 985 | func TestMaximizedResult(MaximizedQuantityVar float64, FormatVar string, varArgs ...interface{}) { | 906 | func TestMaximizedResult(MaximizedQuantityVar float64, FormatVar string, varArgs ...interface{}) { | ||
| 986 | - | core.LazyRegister(&xTestMaximizedResult, "GLIB", "g_test_maximized_result", false) | |||
| 987 | - | ||||
| 988 | xTestMaximizedResult(MaximizedQuantityVar, FormatVar, varArgs...) | 907 | xTestMaximizedResult(MaximizedQuantityVar, FormatVar, varArgs...) | ||
| 989 | } | 908 | } | ||
| 990 | 909 | ||||
| @@ -992,8 +911,6 @@ var xTestMessage func(string, ...interface{}) | |||||
| 992 | 911 | ||||
| 993 | // Adds a message to the test report. | 912 | // Adds a message to the test report. | ||
| 994 | func TestMessage(FormatVar string, varArgs ...interface{}) { | 913 | func TestMessage(FormatVar string, varArgs ...interface{}) { | ||
| 995 | - | core.LazyRegister(&xTestMessage, "GLIB", "g_test_message", false) | |||
| 996 | - | ||||
| 997 | xTestMessage(FormatVar, varArgs...) | 914 | xTestMessage(FormatVar, varArgs...) | ||
| 998 | } | 915 | } | ||
| 999 | 916 | ||||
| @@ -1006,8 +923,6 @@ var xTestMinimizedResult func(float64, string, ...interface{}) | |||||
| 1006 | // this and @minimized_quantity can determine sorting | 923 | // this and @minimized_quantity can determine sorting | ||
| 1007 | // order for test result reports. | 924 | // order for test result reports. | ||
| 1008 | func TestMinimizedResult(MinimizedQuantityVar float64, FormatVar string, varArgs ...interface{}) { | 925 | func TestMinimizedResult(MinimizedQuantityVar float64, FormatVar string, varArgs ...interface{}) { | ||
| 1009 | - | core.LazyRegister(&xTestMinimizedResult, "GLIB", "g_test_minimized_result", false) | |||
| 1010 | - | ||||
| 1011 | xTestMinimizedResult(MinimizedQuantityVar, FormatVar, varArgs...) | 926 | xTestMinimizedResult(MinimizedQuantityVar, FormatVar, varArgs...) | ||
| 1012 | } | 927 | } | ||
| 1013 | 928 | ||||
| @@ -1021,8 +936,6 @@ var xTestQueueDestroy func(uintptr, uintptr) | |||||
| 1021 | // enqueueing callback `A` before callback `B` will cause `B()` to be called | 936 | // enqueueing callback `A` before callback `B` will cause `B()` to be called | ||
| 1022 | // before `A()` during teardown. | 937 | // before `A()` during teardown. | ||
| 1023 | func TestQueueDestroy(DestroyFuncVar *DestroyNotify, DestroyDataVar uintptr) { | 938 | func TestQueueDestroy(DestroyFuncVar *DestroyNotify, DestroyDataVar uintptr) { | ||
| 1024 | - | core.LazyRegister(&xTestQueueDestroy, "GLIB", "g_test_queue_destroy", false) | |||
| 1025 | - | ||||
| 1026 | xTestQueueDestroy(NewCallbackNullable(DestroyFuncVar), DestroyDataVar) | 939 | xTestQueueDestroy(NewCallbackNullable(DestroyFuncVar), DestroyDataVar) | ||
| 1027 | } | 940 | } | ||
| 1028 | 941 | ||||
| @@ -1034,8 +947,6 @@ var xTestQueueFree func(uintptr) | |||||
| 1034 | // This is equivalent to calling [func@GLib.test_queue_destroy] | 947 | // This is equivalent to calling [func@GLib.test_queue_destroy] | ||
| 1035 | // with a destroy callback of [func@GLib.free]. | 948 | // with a destroy callback of [func@GLib.free]. | ||
| 1036 | func TestQueueFree(GfreePointerVar uintptr) { | 949 | func TestQueueFree(GfreePointerVar uintptr) { | ||
| 1037 | - | core.LazyRegister(&xTestQueueFree, "GLIB", "g_test_queue_free", false) | |||
| 1038 | - | ||||
| 1039 | xTestQueueFree(GfreePointerVar) | 950 | xTestQueueFree(GfreePointerVar) | ||
| 1040 | } | 951 | } | ||
| 1041 | 952 | ||||
| @@ -1045,8 +956,6 @@ var xTestRandDouble func() float64 | |||||
| 1045 | // | 956 | // | ||
| 1046 | // See [func@GLib.test_rand_int] for details on test case random numbers. | 957 | // See [func@GLib.test_rand_int] for details on test case random numbers. | ||
| 1047 | func TestRandDouble() float64 { | 958 | func TestRandDouble() float64 { | ||
| 1048 | - | core.LazyRegister(&xTestRandDouble, "GLIB", "g_test_rand_double", false) | |||
| 1049 | - | ||||
| 1050 | cret := xTestRandDouble() | 959 | cret := xTestRandDouble() | ||
| 1051 | return cret | 960 | return cret | ||
| 1052 | } | 961 | } | ||
| @@ -1057,8 +966,6 @@ var xTestRandDoubleRange func(float64, float64) float64 | |||||
| 1057 | // | 966 | // | ||
| 1058 | // See [func@GLib.test_rand_int] for details on test case random numbers. | 967 | // See [func@GLib.test_rand_int] for details on test case random numbers. | ||
| 1059 | func TestRandDoubleRange(RangeStartVar float64, RangeEndVar float64) float64 { | 968 | func TestRandDoubleRange(RangeStartVar float64, RangeEndVar float64) float64 { | ||
| 1060 | - | core.LazyRegister(&xTestRandDoubleRange, "GLIB", "g_test_rand_double_range", false) | |||
| 1061 | - | ||||
| 1062 | cret := xTestRandDoubleRange(RangeStartVar, RangeEndVar) | 969 | cret := xTestRandDoubleRange(RangeStartVar, RangeEndVar) | ||
| 1063 | return cret | 970 | return cret | ||
| 1064 | } | 971 | } | ||
| @@ -1075,8 +982,6 @@ var xTestRandInt func() int32 | |||||
| 1075 | // reseeded, to avoid dependencies between tests and to make --seed | 982 | // reseeded, to avoid dependencies between tests and to make --seed | ||
| 1076 | // effective for all test cases. | 983 | // effective for all test cases. | ||
| 1077 | func TestRandInt() int32 { | 984 | func TestRandInt() int32 { | ||
| 1078 | - | core.LazyRegister(&xTestRandInt, "GLIB", "g_test_rand_int", false) | |||
| 1079 | - | ||||
| 1080 | cret := xTestRandInt() | 985 | cret := xTestRandInt() | ||
| 1081 | return cret | 986 | return cret | ||
| 1082 | } | 987 | } | ||
| @@ -1087,8 +992,6 @@ var xTestRandIntRange func(int32, int32) int32 | |||||
| 1087 | // | 992 | // | ||
| 1088 | // See [func@GLib.test_rand_int] for details on test case random numbers. | 993 | // See [func@GLib.test_rand_int] for details on test case random numbers. | ||
| 1089 | func TestRandIntRange(BeginVar int32, EndVar int32) int32 { | 994 | func TestRandIntRange(BeginVar int32, EndVar int32) int32 { | ||
| 1090 | - | core.LazyRegister(&xTestRandIntRange, "GLIB", "g_test_rand_int_range", false) | |||
| 1091 | - | ||||
| 1092 | cret := xTestRandIntRange(BeginVar, EndVar) | 995 | cret := xTestRandIntRange(BeginVar, EndVar) | ||
| 1093 | return cret | 996 | return cret | ||
| 1094 | } | 997 | } | ||
| @@ -1130,8 +1033,6 @@ var xTestRun func() int | |||||
| 1130 | // this function will return 0 if producing TAP output, or 77 (treated | 1033 | // this function will return 0 if producing TAP output, or 77 (treated | ||
| 1131 | // as "skip test" by Automake) otherwise. | 1034 | // as "skip test" by Automake) otherwise. | ||
| 1132 | func TestRun() int { | 1035 | func TestRun() int { | ||
| 1133 | - | core.LazyRegister(&xTestRun, "GLIB", "g_test_run", false) | |||
| 1134 | - | ||||
| 1135 | cret := xTestRun() | 1036 | cret := xTestRun() | ||
| 1136 | return cret | 1037 | return cret | ||
| 1137 | } | 1038 | } | ||
| @@ -1148,8 +1049,6 @@ var xTestRunSuite func(*TestSuite) int | |||||
| 1148 | // [func@GLib.test_run_suite] or [func@GLib.test_run] may only be | 1049 | // [func@GLib.test_run_suite] or [func@GLib.test_run] may only be | ||
| 1149 | // called once in a program. | 1050 | // called once in a program. | ||
| 1150 | func TestRunSuite(SuiteVar *TestSuite) int { | 1051 | func TestRunSuite(SuiteVar *TestSuite) int { | ||
| 1151 | - | core.LazyRegister(&xTestRunSuite, "GLIB", "g_test_run_suite", false) | |||
| 1152 | - | ||||
| 1153 | cret := xTestRunSuite(SuiteVar) | 1052 | cret := xTestRunSuite(SuiteVar) | ||
| 1154 | return cret | 1053 | return cret | ||
| 1155 | } | 1054 | } | ||
| @@ -1172,8 +1071,6 @@ var xTestSetNonfatalAssertions func() | |||||
| 1172 | // | 1071 | // | ||
| 1173 | // This function can only be called after [func@GLib.test_init]. | 1072 | // This function can only be called after [func@GLib.test_init]. | ||
| 1174 | func TestSetNonfatalAssertions() { | 1073 | func TestSetNonfatalAssertions() { | ||
| 1175 | - | core.LazyRegister(&xTestSetNonfatalAssertions, "GLIB", "g_test_set_nonfatal_assertions", false) | |||
| 1176 | - | ||||
| 1177 | xTestSetNonfatalAssertions() | 1074 | xTestSetNonfatalAssertions() | ||
| 1178 | } | 1075 | } | ||
| 1179 | 1076 | ||||
| @@ -1188,8 +1085,6 @@ var xTestSkip func(uintptr) | |||||
| 1188 | // | 1085 | // | ||
| 1189 | // If not called from inside a test, this function does nothing. | 1086 | // If not called from inside a test, this function does nothing. | ||
| 1190 | func TestSkip(MsgVar *string) { | 1087 | func TestSkip(MsgVar *string) { | ||
| 1191 | - | core.LazyRegister(&xTestSkip, "GLIB", "g_test_skip", false) | |||
| 1192 | - | ||||
| 1193 | MsgVarPtr := core.GStrdupNullable(MsgVar) | 1088 | MsgVarPtr := core.GStrdupNullable(MsgVar) | ||
| 1194 | defer core.GFreeNullable(MsgVarPtr) | 1089 | defer core.GFreeNullable(MsgVarPtr) | ||
| 1195 | 1090 | ||||
| @@ -1203,8 +1098,6 @@ var xTestSkipPrintf func(string, ...interface{}) | |||||
| 1203 | // Equivalent to [func@GLib.test_skip], but the explanation | 1098 | // Equivalent to [func@GLib.test_skip], but the explanation | ||
| 1204 | // is formatted as if by [func@GLib.strdup_printf]. | 1099 | // is formatted as if by [func@GLib.strdup_printf]. | ||
| 1205 | func TestSkipPrintf(FormatVar string, varArgs ...interface{}) { | 1100 | func TestSkipPrintf(FormatVar string, varArgs ...interface{}) { | ||
| 1206 | - | core.LazyRegister(&xTestSkipPrintf, "GLIB", "g_test_skip_printf", false) | |||
| 1207 | - | ||||
| 1208 | xTestSkipPrintf(FormatVar, varArgs...) | 1101 | xTestSkipPrintf(FormatVar, varArgs...) | ||
| 1209 | } | 1102 | } | ||
| 1210 | 1103 | ||||
| @@ -1212,8 +1105,6 @@ var xTestSubprocess func() bool | |||||
| 1212 | 1105 | ||||
| 1213 | // Returns true if the test program is running under [func@GLib.test_trap_subprocess]. | 1106 | // Returns true if the test program is running under [func@GLib.test_trap_subprocess]. | ||
| 1214 | func TestSubprocess() bool { | 1107 | func TestSubprocess() bool { | ||
| 1215 | - | core.LazyRegister(&xTestSubprocess, "GLIB", "g_test_subprocess", false) | |||
| 1216 | - | ||||
| 1217 | cret := xTestSubprocess() | 1108 | cret := xTestSubprocess() | ||
| 1218 | return cret | 1109 | return cret | ||
| 1219 | } | 1110 | } | ||
| @@ -1245,8 +1136,6 @@ var xTestSummary func(string) | |||||
| 1245 | // | 1136 | // | ||
| 1246 | // See also [func@GLib.test_bug]. | 1137 | // See also [func@GLib.test_bug]. | ||
| 1247 | func TestSummary(SummaryVar string) { | 1138 | func TestSummary(SummaryVar string) { | ||
| 1248 | - | core.LazyRegister(&xTestSummary, "GLIB", "g_test_summary", false) | |||
| 1249 | - | ||||
| 1250 | xTestSummary(SummaryVar) | 1139 | xTestSummary(SummaryVar) | ||
| 1251 | } | 1140 | } | ||
| 1252 | 1141 | ||||
| @@ -1255,8 +1144,6 @@ var xTestTimerElapsed func() float64 | |||||
| 1255 | // Gets the number of seconds since the last start of the timer with | 1144 | // Gets the number of seconds since the last start of the timer with | ||
| 1256 | // [func@GLib.test_timer_start]. | 1145 | // [func@GLib.test_timer_start]. | ||
| 1257 | func TestTimerElapsed() float64 { | 1146 | func TestTimerElapsed() float64 { | ||
| 1258 | - | core.LazyRegister(&xTestTimerElapsed, "GLIB", "g_test_timer_elapsed", false) | |||
| 1259 | - | ||||
| 1260 | cret := xTestTimerElapsed() | 1147 | cret := xTestTimerElapsed() | ||
| 1261 | return cret | 1148 | return cret | ||
| 1262 | } | 1149 | } | ||
| @@ -1265,8 +1152,6 @@ var xTestTimerLast func() float64 | |||||
| 1265 | 1152 | ||||
| 1266 | // Reports the last result of [func@GLib.test_timer_elapsed]. | 1153 | // Reports the last result of [func@GLib.test_timer_elapsed]. | ||
| 1267 | func TestTimerLast() float64 { | 1154 | func TestTimerLast() float64 { | ||
| 1268 | - | core.LazyRegister(&xTestTimerLast, "GLIB", "g_test_timer_last", false) | |||
| 1269 | - | ||||
| 1270 | cret := xTestTimerLast() | 1155 | cret := xTestTimerLast() | ||
| 1271 | return cret | 1156 | return cret | ||
| 1272 | } | 1157 | } | ||
| @@ -1278,16 +1163,12 @@ var xTestTimerStart func() | |||||
| 1278 | // Call [func@GLib.test_timer_elapsed] when the task is supposed | 1163 | // Call [func@GLib.test_timer_elapsed] when the task is supposed | ||
| 1279 | // to be done. Call this function again to restart the timer. | 1164 | // to be done. Call this function again to restart the timer. | ||
| 1280 | func TestTimerStart() { | 1165 | func TestTimerStart() { | ||
| 1281 | - | core.LazyRegister(&xTestTimerStart, "GLIB", "g_test_timer_start", false) | |||
| 1282 | - | ||||
| 1283 | xTestTimerStart() | 1166 | xTestTimerStart() | ||
| 1284 | } | 1167 | } | ||
| 1285 | 1168 | ||||
| 1286 | var xTestTrapAssertions func(string, string, int, string, uint64, string) | 1169 | var xTestTrapAssertions func(string, string, int, string, uint64, string) | ||
| 1287 | 1170 | ||||
| 1288 | func TestTrapAssertions(DomainVar string, FileVar string, LineVar int, FuncVar string, AssertionFlagsVar uint64, PatternVar string) { | 1171 | func TestTrapAssertions(DomainVar string, FileVar string, LineVar int, FuncVar string, AssertionFlagsVar uint64, PatternVar string) { | ||
| 1289 | - | core.LazyRegister(&xTestTrapAssertions, "GLIB", "g_test_trap_assertions", false) | |||
| 1290 | - | ||||
| 1291 | xTestTrapAssertions(DomainVar, FileVar, LineVar, FuncVar, AssertionFlagsVar, PatternVar) | 1172 | xTestTrapAssertions(DomainVar, FileVar, LineVar, FuncVar, AssertionFlagsVar, PatternVar) | ||
| 1292 | } | 1173 | } | ||
| 1293 | 1174 | ||||
| @@ -1331,8 +1212,6 @@ var xTestTrapFork func(uint64, TestTrapFlags) bool | |||||
| 1331 | // | 1212 | // | ||
| 1332 | // ``` | 1213 | // ``` | ||
| 1333 | func TestTrapFork(UsecTimeoutVar uint64, TestTrapFlagsVar TestTrapFlags) bool { | 1214 | func TestTrapFork(UsecTimeoutVar uint64, TestTrapFlagsVar TestTrapFlags) bool { | ||
| 1334 | - | core.LazyRegister(&xTestTrapFork, "GLIB", "g_test_trap_fork", false) | |||
| 1335 | - | ||||
| 1336 | cret := xTestTrapFork(UsecTimeoutVar, TestTrapFlagsVar) | 1215 | cret := xTestTrapFork(UsecTimeoutVar, TestTrapFlagsVar) | ||
| 1337 | return cret | 1216 | return cret | ||
| 1338 | } | 1217 | } | ||
| @@ -1341,8 +1220,6 @@ var xTestTrapHasPassed func() bool | |||||
| 1341 | 1220 | ||||
| 1342 | // Checks the result of the last [func@GLib.test_trap_subprocess] call. | 1221 | // Checks the result of the last [func@GLib.test_trap_subprocess] call. | ||
| 1343 | func TestTrapHasPassed() bool { | 1222 | func TestTrapHasPassed() bool { | ||
| 1344 | - | core.LazyRegister(&xTestTrapHasPassed, "GLIB", "g_test_trap_has_passed", false) | |||
| 1345 | - | ||||
| 1346 | cret := xTestTrapHasPassed() | 1223 | cret := xTestTrapHasPassed() | ||
| 1347 | return cret | 1224 | return cret | ||
| 1348 | } | 1225 | } | ||
| @@ -1351,8 +1228,6 @@ var xTestTrapHasSkipped func() bool | |||||
| 1351 | 1228 | ||||
| 1352 | // Checks the result of the last [func@GLib.test_trap_subprocess] call. | 1229 | // Checks the result of the last [func@GLib.test_trap_subprocess] call. | ||
| 1353 | func TestTrapHasSkipped() bool { | 1230 | func TestTrapHasSkipped() bool { | ||
| 1354 | - | core.LazyRegister(&xTestTrapHasSkipped, "GLIB", "g_test_trap_has_skipped", false) | |||
| 1355 | - | ||||
| 1356 | cret := xTestTrapHasSkipped() | 1231 | cret := xTestTrapHasSkipped() | ||
| 1357 | return cret | 1232 | return cret | ||
| 1358 | } | 1233 | } | ||
| @@ -1361,8 +1236,6 @@ var xTestTrapReachedTimeout func() bool | |||||
| 1361 | 1236 | ||||
| 1362 | // Checks the result of the last [func@GLib.test_trap_subprocess] call. | 1237 | // Checks the result of the last [func@GLib.test_trap_subprocess] call. | ||
| 1363 | func TestTrapReachedTimeout() bool { | 1238 | func TestTrapReachedTimeout() bool { | ||
| 1364 | - | core.LazyRegister(&xTestTrapReachedTimeout, "GLIB", "g_test_trap_reached_timeout", false) | |||
| 1365 | - | ||||
| 1366 | cret := xTestTrapReachedTimeout() | 1239 | cret := xTestTrapReachedTimeout() | ||
| 1367 | return cret | 1240 | return cret | ||
| 1368 | } | 1241 | } | ||
| @@ -1375,8 +1248,6 @@ var xTestTrapSubprocess func(uintptr, uint64, TestSubprocessFlags) | |||||
| 1375 | // with `envp` set to `NULL`. See the documentation for that function | 1248 | // with `envp` set to `NULL`. See the documentation for that function | ||
| 1376 | // for full details. | 1249 | // for full details. | ||
| 1377 | func TestTrapSubprocess(TestPathVar *string, UsecTimeoutVar uint64, TestFlagsVar TestSubprocessFlags) { | 1250 | func TestTrapSubprocess(TestPathVar *string, UsecTimeoutVar uint64, TestFlagsVar TestSubprocessFlags) { | ||
| 1378 | - | core.LazyRegister(&xTestTrapSubprocess, "GLIB", "g_test_trap_subprocess", false) | |||
| 1379 | - | ||||
| 1380 | TestPathVarPtr := core.GStrdupNullable(TestPathVar) | 1251 | TestPathVarPtr := core.GStrdupNullable(TestPathVar) | ||
| 1381 | defer core.GFreeNullable(TestPathVarPtr) | 1252 | defer core.GFreeNullable(TestPathVarPtr) | ||
| 1382 | 1253 | ||||
| @@ -1477,8 +1348,6 @@ var xTestTrapSubprocessWithEnvp func(uintptr, []string, uint64, TestSubprocessFl | |||||
| 1477 | // | 1348 | // | ||
| 1478 | // ``` | 1349 | // ``` | ||
| 1479 | func TestTrapSubprocessWithEnvp(TestPathVar *string, EnvpVar []string, UsecTimeoutVar uint64, TestFlagsVar TestSubprocessFlags) { | 1350 | func TestTrapSubprocessWithEnvp(TestPathVar *string, EnvpVar []string, UsecTimeoutVar uint64, TestFlagsVar TestSubprocessFlags) { | ||
| 1480 | - | core.LazyRegister(&xTestTrapSubprocessWithEnvp, "GLIB", "g_test_trap_subprocess_with_envp", false) | |||
| 1481 | - | ||||
| 1482 | TestPathVarPtr := core.GStrdupNullable(TestPathVar) | 1351 | TestPathVarPtr := core.GStrdupNullable(TestPathVar) | ||
| 1483 | defer core.GFreeNullable(TestPathVarPtr) | 1352 | defer core.GFreeNullable(TestPathVarPtr) | ||
| 1484 | 1353 | ||||
| @@ -1488,4 +1357,83 @@ func TestTrapSubprocessWithEnvp(TestPathVar *string, EnvpVar []string, UsecTimeo | |||||
| 1488 | func init() { | 1357 | func init() { | ||
| 1489 | core.SetPackageName("GLIB", "glib-2.0") | 1358 | core.SetPackageName("GLIB", "glib-2.0") | ||
| 1490 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | 1359 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | ||
| 1360 | + | var libs []uintptr | |||
| 1361 | + | for _, libPath := range core.GetPaths("GLIB") { | |||
| 1362 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 1363 | + | if err != nil { | |||
| 1364 | + | panic(err) | |||
| 1365 | + | } | |||
| 1366 | + | libs = append(libs, lib) | |||
| 1367 | + | } | |||
| 1368 | + | ||||
| 1369 | + | core.PuregoSafeRegister(&xAssertionMessage, libs, "g_assertion_message") | |||
| 1370 | + | core.PuregoSafeRegister(&xAssertionMessageCmpint, libs, "g_assertion_message_cmpint") | |||
| 1371 | + | core.PuregoSafeRegister(&xAssertionMessageCmpnum, libs, "g_assertion_message_cmpnum") | |||
| 1372 | + | core.PuregoSafeRegister(&xAssertionMessageCmpstr, libs, "g_assertion_message_cmpstr") | |||
| 1373 | + | core.PuregoSafeRegister(&xAssertionMessageCmpstrv, libs, "g_assertion_message_cmpstrv") | |||
| 1374 | + | core.PuregoSafeRegister(&xAssertionMessageError, libs, "g_assertion_message_error") | |||
| 1375 | + | core.PuregoSafeRegister(&xAssertionMessageExpr, libs, "g_assertion_message_expr") | |||
| 1376 | + | core.PuregoSafeRegister(&xStrcmp0, libs, "g_strcmp0") | |||
| 1377 | + | core.PuregoSafeRegister(&xTestAddDataFunc, libs, "g_test_add_data_func") | |||
| 1378 | + | core.PuregoSafeRegister(&xTestAddDataFuncFull, libs, "g_test_add_data_func_full") | |||
| 1379 | + | core.PuregoSafeRegister(&xTestAddFunc, libs, "g_test_add_func") | |||
| 1380 | + | core.PuregoSafeRegister(&xTestAddVtable, libs, "g_test_add_vtable") | |||
| 1381 | + | core.PuregoSafeRegister(&xTestAssertExpectedMessagesInternal, libs, "g_test_assert_expected_messages_internal") | |||
| 1382 | + | core.PuregoSafeRegister(&xTestBug, libs, "g_test_bug") | |||
| 1383 | + | core.PuregoSafeRegister(&xTestBugBase, libs, "g_test_bug_base") | |||
| 1384 | + | core.PuregoSafeRegister(&xTestBuildFilename, libs, "g_test_build_filename") | |||
| 1385 | + | core.PuregoSafeRegister(&xTestCreateCase, libs, "g_test_create_case") | |||
| 1386 | + | core.PuregoSafeRegister(&xTestCreateSuite, libs, "g_test_create_suite") | |||
| 1387 | + | core.PuregoSafeRegister(&xTestDisableCrashReporting, libs, "g_test_disable_crash_reporting") | |||
| 1388 | + | core.PuregoSafeRegister(&xTestExpectMessage, libs, "g_test_expect_message") | |||
| 1389 | + | core.PuregoSafeRegister(&xTestFail, libs, "g_test_fail") | |||
| 1390 | + | core.PuregoSafeRegister(&xTestFailPrintf, libs, "g_test_fail_printf") | |||
| 1391 | + | core.PuregoSafeRegister(&xTestFailed, libs, "g_test_failed") | |||
| 1392 | + | core.PuregoSafeRegister(&xTestGetDir, libs, "g_test_get_dir") | |||
| 1393 | + | core.PuregoSafeRegister(&xTestGetFilename, libs, "g_test_get_filename") | |||
| 1394 | + | core.PuregoSafeRegister(&xTestGetPath, libs, "g_test_get_path") | |||
| 1395 | + | core.PuregoSafeRegister(&xTestGetRoot, libs, "g_test_get_root") | |||
| 1396 | + | core.PuregoSafeRegister(&xTestIncomplete, libs, "g_test_incomplete") | |||
| 1397 | + | core.PuregoSafeRegister(&xTestIncompletePrintf, libs, "g_test_incomplete_printf") | |||
| 1398 | + | core.PuregoSafeRegister(&xTestInit, libs, "g_test_init") | |||
| 1399 | + | core.PuregoSafeRegister(&xTestLogSetFatalHandler, libs, "g_test_log_set_fatal_handler") | |||
| 1400 | + | core.PuregoSafeRegister(&xTestLogTypeName, libs, "g_test_log_type_name") | |||
| 1401 | + | core.PuregoSafeRegister(&xTestMaximizedResult, libs, "g_test_maximized_result") | |||
| 1402 | + | core.PuregoSafeRegister(&xTestMessage, libs, "g_test_message") | |||
| 1403 | + | core.PuregoSafeRegister(&xTestMinimizedResult, libs, "g_test_minimized_result") | |||
| 1404 | + | core.PuregoSafeRegister(&xTestQueueDestroy, libs, "g_test_queue_destroy") | |||
| 1405 | + | core.PuregoSafeRegister(&xTestQueueFree, libs, "g_test_queue_free") | |||
| 1406 | + | core.PuregoSafeRegister(&xTestRandDouble, libs, "g_test_rand_double") | |||
| 1407 | + | core.PuregoSafeRegister(&xTestRandDoubleRange, libs, "g_test_rand_double_range") | |||
| 1408 | + | core.PuregoSafeRegister(&xTestRandInt, libs, "g_test_rand_int") | |||
| 1409 | + | core.PuregoSafeRegister(&xTestRandIntRange, libs, "g_test_rand_int_range") | |||
| 1410 | + | core.PuregoSafeRegister(&xTestRun, libs, "g_test_run") | |||
| 1411 | + | core.PuregoSafeRegister(&xTestRunSuite, libs, "g_test_run_suite") | |||
| 1412 | + | core.PuregoSafeRegister(&xTestSetNonfatalAssertions, libs, "g_test_set_nonfatal_assertions") | |||
| 1413 | + | core.PuregoSafeRegister(&xTestSkip, libs, "g_test_skip") | |||
| 1414 | + | core.PuregoSafeRegister(&xTestSkipPrintf, libs, "g_test_skip_printf") | |||
| 1415 | + | core.PuregoSafeRegister(&xTestSubprocess, libs, "g_test_subprocess") | |||
| 1416 | + | core.PuregoSafeRegister(&xTestSummary, libs, "g_test_summary") | |||
| 1417 | + | core.PuregoSafeRegister(&xTestTimerElapsed, libs, "g_test_timer_elapsed") | |||
| 1418 | + | core.PuregoSafeRegister(&xTestTimerLast, libs, "g_test_timer_last") | |||
| 1419 | + | core.PuregoSafeRegister(&xTestTimerStart, libs, "g_test_timer_start") | |||
| 1420 | + | core.PuregoSafeRegister(&xTestTrapAssertions, libs, "g_test_trap_assertions") | |||
| 1421 | + | core.PuregoSafeRegister(&xTestTrapFork, libs, "g_test_trap_fork") | |||
| 1422 | + | core.PuregoSafeRegister(&xTestTrapHasPassed, libs, "g_test_trap_has_passed") | |||
| 1423 | + | core.PuregoSafeRegister(&xTestTrapHasSkipped, libs, "g_test_trap_has_skipped") | |||
| 1424 | + | core.PuregoSafeRegister(&xTestTrapReachedTimeout, libs, "g_test_trap_reached_timeout") | |||
| 1425 | + | core.PuregoSafeRegister(&xTestTrapSubprocess, libs, "g_test_trap_subprocess") | |||
| 1426 | + | core.PuregoSafeRegister(&xTestTrapSubprocessWithEnvp, libs, "g_test_trap_subprocess_with_envp") | |||
| 1427 | + | ||||
| 1428 | + | core.PuregoSafeRegister(&xTestCaseFree, libs, "g_test_case_free") | |||
| 1429 | + | ||||
| 1430 | + | core.PuregoSafeRegister(&xTestLogBufferFree, libs, "g_test_log_buffer_free") | |||
| 1431 | + | core.PuregoSafeRegister(&xTestLogBufferPop, libs, "g_test_log_buffer_pop") | |||
| 1432 | + | core.PuregoSafeRegister(&xTestLogBufferPush, libs, "g_test_log_buffer_push") | |||
| 1433 | + | ||||
| 1434 | + | core.PuregoSafeRegister(&xTestLogMsgFree, libs, "g_test_log_msg_free") | |||
| 1435 | + | ||||
| 1436 | + | core.PuregoSafeRegister(&xTestSuiteAdd, libs, "g_test_suite_add") | |||
| 1437 | + | core.PuregoSafeRegister(&xTestSuiteAddSuite, libs, "g_test_suite_add_suite") | |||
| 1438 | + | core.PuregoSafeRegister(&xTestSuiteFree, libs, "g_test_suite_free") | |||
| 1491 | } | 1439 | } | ||