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
| @@ -105,7 +105,6 @@ type MainContext struct { | |||
| 105 | 105 | var xMainContextGLibType func() types.GType | |
| 106 | 106 | ||
| 107 | 107 | func MainContextGLibType() types.GType { | |
| 108 | - | core.LazyRegister(&xMainContextGLibType, "GLIB", "g_main_context_get_type", false) | |
| 109 | 108 | return xMainContextGLibType() | |
| 110 | 109 | } | |
| 111 | 110 | ||
| @@ -125,8 +124,6 @@ var xNewMainContext func() uintptr | |||
| 125 | 124 | ||
| 126 | 125 | // Creates a new [struct@GLib.MainContext] structure. | |
| 127 | 126 | func NewMainContext() *MainContext { | |
| 128 | - | core.LazyRegister(&xNewMainContext, "GLIB", "g_main_context_new", false) | |
| 129 | - | ||
| 130 | 127 | cret := xNewMainContext() | |
| 131 | 128 | if cret == 0 { | |
| 132 | 129 | return nil | |
| @@ -138,8 +135,6 @@ var xNewMainContextWithFlags func(MainContextFlags) uintptr | |||
| 138 | 135 | ||
| 139 | 136 | // Creates a new [struct@GLib.MainContext] structure. | |
| 140 | 137 | func NewMainContextWithFlags(FlagsVar MainContextFlags) *MainContext { | |
| 141 | - | core.LazyRegister(&xNewMainContextWithFlags, "GLIB", "g_main_context_new_with_flags", false) | |
| 142 | - | ||
| 143 | 138 | cret := xNewMainContextWithFlags(FlagsVar) | |
| 144 | 139 | if cret == 0 { | |
| 145 | 140 | return nil | |
| @@ -165,8 +160,6 @@ var xMainContextAcquire func(uintptr) bool | |||
| 165 | 160 | // Since 2.76 @context can be `NULL` to use the global-default | |
| 166 | 161 | // main context. | |
| 167 | 162 | func (x *MainContext) Acquire() bool { | |
| 168 | - | core.LazyRegister(&xMainContextAcquire, "GLIB", "g_main_context_acquire", false) | |
| 169 | - | ||
| 170 | 163 | cret := xMainContextAcquire(x.GoPointer()) | |
| 171 | 164 | return cret | |
| 172 | 165 | } | |
| @@ -179,8 +172,6 @@ var xMainContextAddPoll func(uintptr, *PollFD, int) | |||
| 179 | 172 | // This will very seldom be used directly. Instead | |
| 180 | 173 | // a typical event source will use `g_source_add_unix_fd()` instead. | |
| 181 | 174 | func (x *MainContext) AddPoll(FdVar *PollFD, PriorityVar int) { | |
| 182 | - | core.LazyRegister(&xMainContextAddPoll, "GLIB", "g_main_context_add_poll", false) | |
| 183 | - | ||
| 184 | 175 | xMainContextAddPoll(x.GoPointer(), FdVar, PriorityVar) | |
| 185 | 176 | } | |
| 186 | 177 | ||
| @@ -199,8 +190,6 @@ var xMainContextCheck func(uintptr, int, []PollFD, int) bool | |||
| 199 | 190 | // Since 2.76 @context can be `NULL` to use the global-default | |
| 200 | 191 | // main context. | |
| 201 | 192 | func (x *MainContext) Check(MaxPriorityVar int, FdsVar []PollFD, NFdsVar int) bool { | |
| 202 | - | core.LazyRegister(&xMainContextCheck, "GLIB", "g_main_context_check", false) | |
| 203 | - | ||
| 204 | 193 | cret := xMainContextCheck(x.GoPointer(), MaxPriorityVar, FdsVar, NFdsVar) | |
| 205 | 194 | return cret | |
| 206 | 195 | } | |
| @@ -215,8 +204,6 @@ var xMainContextDispatch func(uintptr) | |||
| 215 | 204 | // Since 2.76 @context can be `NULL` to use the global-default | |
| 216 | 205 | // main context. | |
| 217 | 206 | func (x *MainContext) Dispatch() { | |
| 218 | - | core.LazyRegister(&xMainContextDispatch, "GLIB", "g_main_context_dispatch", false) | |
| 219 | - | ||
| 220 | 207 | xMainContextDispatch(x.GoPointer()) | |
| 221 | 208 | } | |
| 222 | 209 | ||
| @@ -227,8 +214,6 @@ var xMainContextFindSourceByFuncsUserData func(uintptr, *SourceFuncs, uintptr) u | |||
| 227 | 214 | // If multiple sources exist with the same source function and user data, | |
| 228 | 215 | // the first one found will be returned. | |
| 229 | 216 | func (x *MainContext) FindSourceByFuncsUserData(FuncsVar *SourceFuncs, UserDataVar uintptr) *Source { | |
| 230 | - | core.LazyRegister(&xMainContextFindSourceByFuncsUserData, "GLIB", "g_main_context_find_source_by_funcs_user_data", false) | |
| 231 | - | ||
| 232 | 217 | cret := xMainContextFindSourceByFuncsUserData(x.GoPointer(), FuncsVar, UserDataVar) | |
| 233 | 218 | if cret == 0 { | |
| 234 | 219 | return nil | |
| @@ -251,8 +236,6 @@ var xMainContextFindSourceById func(uintptr, uint) uintptr | |||
| 251 | 236 | // been reissued, leading to the operation being performed against the | |
| 252 | 237 | // wrong source. | |
| 253 | 238 | func (x *MainContext) FindSourceById(SourceIdVar uint) *Source { | |
| 254 | - | core.LazyRegister(&xMainContextFindSourceById, "GLIB", "g_main_context_find_source_by_id", false) | |
| 255 | - | ||
| 256 | 239 | cret := xMainContextFindSourceById(x.GoPointer(), SourceIdVar) | |
| 257 | 240 | if cret == 0 { | |
| 258 | 241 | return nil | |
| @@ -267,8 +250,6 @@ var xMainContextFindSourceByUserData func(uintptr, uintptr) uintptr | |||
| 267 | 250 | // If multiple sources exist with the same user data, the first | |
| 268 | 251 | // one found will be returned. | |
| 269 | 252 | func (x *MainContext) FindSourceByUserData(UserDataVar uintptr) *Source { | |
| 270 | - | core.LazyRegister(&xMainContextFindSourceByUserData, "GLIB", "g_main_context_find_source_by_user_data", false) | |
| 271 | - | ||
| 272 | 253 | cret := xMainContextFindSourceByUserData(x.GoPointer(), UserDataVar) | |
| 273 | 254 | if cret == 0 { | |
| 274 | 255 | return nil | |
| @@ -280,8 +261,6 @@ var xMainContextGetPollFunc func(uintptr) uintptr | |||
| 280 | 261 | ||
| 281 | 262 | // Gets the poll function set by [method@GLib.MainContext.set_poll_func]. | |
| 282 | 263 | func (x *MainContext) GetPollFunc() uintptr { | |
| 283 | - | core.LazyRegister(&xMainContextGetPollFunc, "GLIB", "g_main_context_get_poll_func", false) | |
| 284 | - | ||
| 285 | 264 | cret := xMainContextGetPollFunc(x.GoPointer()) | |
| 286 | 265 | return cret | |
| 287 | 266 | } | |
| @@ -310,8 +289,6 @@ var xMainContextInvoke func(uintptr, uintptr, uintptr) | |||
| 310 | 289 | // [const@GLib.SOURCE_REMOVE]. If it returns [const@GLib.SOURCE_CONTINUE], it | |
| 311 | 290 | // will be continuously run in a loop (and may prevent this call from returning). | |
| 312 | 291 | func (x *MainContext) Invoke(FunctionVar *SourceFunc, DataVar uintptr) { | |
| 313 | - | core.LazyRegister(&xMainContextInvoke, "GLIB", "g_main_context_invoke", false) | |
| 314 | - | ||
| 315 | 292 | xMainContextInvoke(x.GoPointer(), NewCallback(FunctionVar), DataVar) | |
| 316 | 293 | } | |
| 317 | 294 | ||
| @@ -328,8 +305,6 @@ var xMainContextInvokeFull func(uintptr, int, uintptr, uintptr, uintptr) | |||
| 328 | 305 | // The @notify function should not assume that it is called from any particular | |
| 329 | 306 | // thread or with any particular context acquired. | |
| 330 | 307 | func (x *MainContext) InvokeFull(PriorityVar int, FunctionVar *SourceFunc, DataVar uintptr, NotifyVar *DestroyNotify) { | |
| 331 | - | core.LazyRegister(&xMainContextInvokeFull, "GLIB", "g_main_context_invoke_full", false) | |
| 332 | - | ||
| 333 | 308 | xMainContextInvokeFull(x.GoPointer(), PriorityVar, NewCallback(FunctionVar), DataVar, NewCallbackNullable(NotifyVar)) | |
| 334 | 309 | } | |
| 335 | 310 | ||
| @@ -342,8 +317,6 @@ var xMainContextIsOwner func(uintptr) bool | |||
| 342 | 317 | // know before waiting on another thread that may be | |
| 343 | 318 | // blocking to get ownership of @context. | |
| 344 | 319 | func (x *MainContext) IsOwner() bool { | |
| 345 | - | core.LazyRegister(&xMainContextIsOwner, "GLIB", "g_main_context_is_owner", false) | |
| 346 | - | ||
| 347 | 320 | cret := xMainContextIsOwner(x.GoPointer()) | |
| 348 | 321 | return cret | |
| 349 | 322 | } | |
| @@ -364,8 +337,6 @@ var xMainContextIteration func(uintptr, bool) bool | |||
| 364 | 337 | // [method@GLib.MainContext.iteration] to return false, since the wait may | |
| 365 | 338 | // be interrupted for other reasons than an event source becoming ready. | |
| 366 | 339 | func (x *MainContext) Iteration(MayBlockVar bool) bool { | |
| 367 | - | core.LazyRegister(&xMainContextIteration, "GLIB", "g_main_context_iteration", false) | |
| 368 | - | ||
| 369 | 340 | cret := xMainContextIteration(x.GoPointer(), MayBlockVar) | |
| 370 | 341 | return cret | |
| 371 | 342 | } | |
| @@ -374,8 +345,6 @@ var xMainContextPending func(uintptr) bool | |||
| 374 | 345 | ||
| 375 | 346 | // Checks if any sources have pending events for the given context. | |
| 376 | 347 | func (x *MainContext) Pending() bool { | |
| 377 | - | core.LazyRegister(&xMainContextPending, "GLIB", "g_main_context_pending", false) | |
| 378 | - | ||
| 379 | 348 | cret := xMainContextPending(x.GoPointer()) | |
| 380 | 349 | return cret | |
| 381 | 350 | } | |
| @@ -385,8 +354,6 @@ var xMainContextPopThreadDefault func(uintptr) | |||
| 385 | 354 | // Pops @context off the thread-default context stack (verifying that | |
| 386 | 355 | // it was on the top of the stack). | |
| 387 | 356 | func (x *MainContext) PopThreadDefault() { | |
| 388 | - | core.LazyRegister(&xMainContextPopThreadDefault, "GLIB", "g_main_context_pop_thread_default", false) | |
| 389 | - | ||
| 390 | 357 | xMainContextPopThreadDefault(x.GoPointer()) | |
| 391 | 358 | } | |
| 392 | 359 | ||
| @@ -400,8 +367,6 @@ var xMainContextPrepare func(uintptr, *int) bool | |||
| 400 | 367 | // You must have successfully acquired the context with | |
| 401 | 368 | // [method@GLib.MainContext.acquire] before you may call this function. | |
| 402 | 369 | func (x *MainContext) Prepare(PriorityVar *int) bool { | |
| 403 | - | core.LazyRegister(&xMainContextPrepare, "GLIB", "g_main_context_prepare", false) | |
| 404 | - | ||
| 405 | 370 | cret := xMainContextPrepare(x.GoPointer(), PriorityVar) | |
| 406 | 371 | return cret | |
| 407 | 372 | } | |
| @@ -448,8 +413,6 @@ var xMainContextPushThreadDefault func(uintptr) | |||
| 448 | 413 | // handle being used from a thread with a thread-default context. For example, | |
| 449 | 414 | // see `g_file_supports_thread_contexts()`. | |
| 450 | 415 | func (x *MainContext) PushThreadDefault() { | |
| 451 | - | core.LazyRegister(&xMainContextPushThreadDefault, "GLIB", "g_main_context_push_thread_default", false) | |
| 452 | - | ||
| 453 | 416 | xMainContextPushThreadDefault(x.GoPointer()) | |
| 454 | 417 | } | |
| 455 | 418 | ||
| @@ -496,8 +459,6 @@ var xMainContextPusherNew func(uintptr) *MainContextPusher | |||
| 496 | 459 | // | |
| 497 | 460 | // ]| | |
| 498 | 461 | func (x *MainContext) PusherNew() *MainContextPusher { | |
| 499 | - | core.LazyRegister(&xMainContextPusherNew, "GLIB", "g_main_context_pusher_new", false) | |
| 500 | - | ||
| 501 | 462 | cret := xMainContextPusherNew(x.GoPointer()) | |
| 502 | 463 | return cret | |
| 503 | 464 | } | |
| @@ -514,8 +475,6 @@ var xMainContextQuery func(uintptr, int, *int, *[]PollFD, int) int | |||
| 514 | 475 | // You must have successfully acquired the context with | |
| 515 | 476 | // [method@GLib.MainContext.acquire] before you may call this function. | |
| 516 | 477 | func (x *MainContext) Query(MaxPriorityVar int, TimeoutVar *int, FdsVar *[]PollFD, NFdsVar int) int { | |
| 517 | - | core.LazyRegister(&xMainContextQuery, "GLIB", "g_main_context_query", false) | |
| 518 | - | ||
| 519 | 478 | cret := xMainContextQuery(x.GoPointer(), MaxPriorityVar, TimeoutVar, FdsVar, NFdsVar) | |
| 520 | 479 | return cret | |
| 521 | 480 | } | |
| @@ -524,8 +483,6 @@ var xMainContextRef func(uintptr) uintptr | |||
| 524 | 483 | ||
| 525 | 484 | // Increases the reference count on a [struct@GLib.MainContext] object by one. | |
| 526 | 485 | func (x *MainContext) Ref() *MainContext { | |
| 527 | - | core.LazyRegister(&xMainContextRef, "GLIB", "g_main_context_ref", false) | |
| 528 | - | ||
| 529 | 486 | cret := xMainContextRef(x.GoPointer()) | |
| 530 | 487 | if cret == 0 { | |
| 531 | 488 | return nil | |
| @@ -545,8 +502,6 @@ var xMainContextRelease func(uintptr) | |||
| 545 | 502 | // You must have successfully acquired the context with | |
| 546 | 503 | // [method@GLib.MainContext.acquire] before you may call this function. | |
| 547 | 504 | func (x *MainContext) Release() { | |
| 548 | - | core.LazyRegister(&xMainContextRelease, "GLIB", "g_main_context_release", false) | |
| 549 | - | ||
| 550 | 505 | xMainContextRelease(x.GoPointer()) | |
| 551 | 506 | } | |
| 552 | 507 | ||
| @@ -555,8 +510,6 @@ var xMainContextRemovePoll func(uintptr, *PollFD) | |||
| 555 | 510 | // Removes file descriptor from the set of file descriptors to be | |
| 556 | 511 | // polled for a particular context. | |
| 557 | 512 | func (x *MainContext) RemovePoll(FdVar *PollFD) { | |
| 558 | - | core.LazyRegister(&xMainContextRemovePoll, "GLIB", "g_main_context_remove_poll", false) | |
| 559 | - | ||
| 560 | 513 | xMainContextRemovePoll(x.GoPointer(), FdVar) | |
| 561 | 514 | } | |
| 562 | 515 | ||
| @@ -571,8 +524,6 @@ var xMainContextSetPollFunc func(uintptr, uintptr) | |||
| 571 | 524 | // This function could possibly be used to integrate the GLib event | |
| 572 | 525 | // loop with an external event loop. | |
| 573 | 526 | func (x *MainContext) SetPollFunc(FuncVar *PollFunc) { | |
| 574 | - | core.LazyRegister(&xMainContextSetPollFunc, "GLIB", "g_main_context_set_poll_func", false) | |
| 575 | - | ||
| 576 | 527 | xMainContextSetPollFunc(x.GoPointer(), NewCallback(FuncVar)) | |
| 577 | 528 | } | |
| 578 | 529 | ||
| @@ -582,8 +533,6 @@ var xMainContextUnref func(uintptr) | |||
| 582 | 533 | // If | |
| 583 | 534 | // the result is zero, free the context and free all associated memory. | |
| 584 | 535 | func (x *MainContext) Unref() { | |
| 585 | - | core.LazyRegister(&xMainContextUnref, "GLIB", "g_main_context_unref", false) | |
| 586 | - | ||
| 587 | 536 | xMainContextUnref(x.GoPointer()) | |
| 588 | 537 | } | |
| 589 | 538 | ||
| @@ -597,8 +546,6 @@ var xMainContextWait func(uintptr, *Cond, *Mutex) bool | |||
| 597 | 546 | // that owner releases ownership or until @cond is signaled, then | |
| 598 | 547 | // try again (once) to become the owner. | |
| 599 | 548 | func (x *MainContext) Wait(CondVar *Cond, MutexVar *Mutex) bool { | |
| 600 | - | core.LazyRegister(&xMainContextWait, "GLIB", "g_main_context_wait", false) | |
| 601 | - | ||
| 602 | 549 | cret := xMainContextWait(x.GoPointer(), CondVar, MutexVar) | |
| 603 | 550 | return cret | |
| 604 | 551 | } | |
| @@ -641,8 +588,6 @@ var xMainContextWakeup func(uintptr) | |||
| 641 | 588 | // | |
| 642 | 589 | // ``` | |
| 643 | 590 | func (x *MainContext) Wakeup() { | |
| 644 | - | core.LazyRegister(&xMainContextWakeup, "GLIB", "g_main_context_wakeup", false) | |
| 645 | - | ||
| 646 | 591 | xMainContextWakeup(x.GoPointer()) | |
| 647 | 592 | } | |
| 648 | 593 | ||
| @@ -655,7 +600,6 @@ type MainLoop struct { | |||
| 655 | 600 | var xMainLoopGLibType func() types.GType | |
| 656 | 601 | ||
| 657 | 602 | func MainLoopGLibType() types.GType { | |
| 658 | - | core.LazyRegister(&xMainLoopGLibType, "GLIB", "g_main_loop_get_type", false) | |
| 659 | 603 | return xMainLoopGLibType() | |
| 660 | 604 | } | |
| 661 | 605 | ||
| @@ -675,8 +619,6 @@ var xNewMainLoop func(*MainContext, bool) uintptr | |||
| 675 | 619 | ||
| 676 | 620 | // Creates a new [struct@GLib.MainLoop] structure. | |
| 677 | 621 | func NewMainLoop(ContextVar *MainContext, IsRunningVar bool) *MainLoop { | |
| 678 | - | core.LazyRegister(&xNewMainLoop, "GLIB", "g_main_loop_new", false) | |
| 679 | - | ||
| 680 | 622 | cret := xNewMainLoop(ContextVar, IsRunningVar) | |
| 681 | 623 | if cret == 0 { | |
| 682 | 624 | return nil | |
| @@ -688,8 +630,6 @@ var xMainLoopGetContext func(uintptr) uintptr | |||
| 688 | 630 | ||
| 689 | 631 | // Returns the [struct@GLib.MainContext] of @loop. | |
| 690 | 632 | func (x *MainLoop) GetContext() *MainContext { | |
| 691 | - | core.LazyRegister(&xMainLoopGetContext, "GLIB", "g_main_loop_get_context", false) | |
| 692 | - | ||
| 693 | 633 | cret := xMainLoopGetContext(x.GoPointer()) | |
| 694 | 634 | if cret == 0 { | |
| 695 | 635 | return nil | |
| @@ -702,8 +642,6 @@ var xMainLoopIsRunning func(uintptr) bool | |||
| 702 | 642 | // Checks to see if the main loop is currently being run via | |
| 703 | 643 | // [method@GLib.MainLoop.run]. | |
| 704 | 644 | func (x *MainLoop) IsRunning() bool { | |
| 705 | - | core.LazyRegister(&xMainLoopIsRunning, "GLIB", "g_main_loop_is_running", false) | |
| 706 | - | ||
| 707 | 645 | cret := xMainLoopIsRunning(x.GoPointer()) | |
| 708 | 646 | return cret | |
| 709 | 647 | } | |
| @@ -716,8 +654,6 @@ var xMainLoopQuit func(uintptr) | |||
| 716 | 654 | // Note that sources that have already been dispatched when | |
| 717 | 655 | // [method@GLib.MainLoop.quit] is called will still be executed. | |
| 718 | 656 | func (x *MainLoop) Quit() { | |
| 719 | - | core.LazyRegister(&xMainLoopQuit, "GLIB", "g_main_loop_quit", false) | |
| 720 | - | ||
| 721 | 657 | xMainLoopQuit(x.GoPointer()) | |
| 722 | 658 | } | |
| 723 | 659 | ||
| @@ -725,8 +661,6 @@ var xMainLoopRef func(uintptr) uintptr | |||
| 725 | 661 | ||
| 726 | 662 | // Increases the reference count on a [struct@GLib.MainLoop] object by one. | |
| 727 | 663 | func (x *MainLoop) Ref() *MainLoop { | |
| 728 | - | core.LazyRegister(&xMainLoopRef, "GLIB", "g_main_loop_ref", false) | |
| 729 | - | ||
| 730 | 664 | cret := xMainLoopRef(x.GoPointer()) | |
| 731 | 665 | if cret == 0 { | |
| 732 | 666 | return nil | |
| @@ -742,8 +676,6 @@ var xMainLoopRun func(uintptr) | |||
| 742 | 676 | // it will process events from the loop, otherwise it will | |
| 743 | 677 | // simply wait. | |
| 744 | 678 | func (x *MainLoop) Run() { | |
| 745 | - | core.LazyRegister(&xMainLoopRun, "GLIB", "g_main_loop_run", false) | |
| 746 | - | ||
| 747 | 679 | xMainLoopRun(x.GoPointer()) | |
| 748 | 680 | } | |
| 749 | 681 | ||
| @@ -753,8 +685,6 @@ var xMainLoopUnref func(uintptr) | |||
| 753 | 685 | // | |
| 754 | 686 | // If the result is zero, the loop and all associated memory are freed. | |
| 755 | 687 | func (x *MainLoop) Unref() { | |
| 756 | - | core.LazyRegister(&xMainLoopUnref, "GLIB", "g_main_loop_unref", false) | |
| 757 | - | ||
| 758 | 688 | xMainLoopUnref(x.GoPointer()) | |
| 759 | 689 | } | |
| 760 | 690 | ||
| @@ -793,7 +723,6 @@ type Source struct { | |||
| 793 | 723 | var xSourceGLibType func() types.GType | |
| 794 | 724 | ||
| 795 | 725 | func SourceGLibType() types.GType { | |
| 796 | - | core.LazyRegister(&xSourceGLibType, "GLIB", "g_source_get_type", false) | |
| 797 | 726 | return xSourceGLibType() | |
| 798 | 727 | } | |
| 799 | 728 | ||
| @@ -822,8 +751,6 @@ var xNewSource func(*SourceFuncs, uint) uintptr | |||
| 822 | 751 | // and must be added to one with [method@GLib.Source.attach] before it will be | |
| 823 | 752 | // executed. | |
| 824 | 753 | func NewSource(SourceFuncsVar *SourceFuncs, StructSizeVar uint) *Source { | |
| 825 | - | core.LazyRegister(&xNewSource, "GLIB", "g_source_new", false) | |
| 826 | - | ||
| 827 | 754 | cret := xNewSource(SourceFuncsVar, StructSizeVar) | |
| 828 | 755 | if cret == 0 { | |
| 829 | 756 | return nil | |
| @@ -853,8 +780,6 @@ var xSourceAddChildSource func(uintptr, *Source) | |||
| 853 | 780 | // This API is only intended to be used by implementations of [struct@GLib.Source]. | |
| 854 | 781 | // Do not call this API on a [struct@GLib.Source] that you did not create. | |
| 855 | 782 | func (x *Source) AddChildSource(ChildSourceVar *Source) { | |
| 856 | - | core.LazyRegister(&xSourceAddChildSource, "GLIB", "g_source_add_child_source", false) | |
| 857 | - | ||
| 858 | 783 | xSourceAddChildSource(x.GoPointer(), ChildSourceVar) | |
| 859 | 784 | } | |
| 860 | 785 | ||
| @@ -875,8 +800,6 @@ var xSourceAddPoll func(uintptr, *PollFD) | |||
| 875 | 800 | // main loop iteration. Newly-written event sources should try to use | |
| 876 | 801 | // `g_source_add_unix_fd()` instead of this API. | |
| 877 | 802 | func (x *Source) AddPoll(FdVar *PollFD) { | |
| 878 | - | core.LazyRegister(&xSourceAddPoll, "GLIB", "g_source_add_poll", false) | |
| 879 | - | ||
| 880 | 803 | xSourceAddPoll(x.GoPointer(), FdVar) | |
| 881 | 804 | } | |
| 882 | 805 | ||
| @@ -896,8 +819,6 @@ var xSourceAddUnixFd func(uintptr, int, IOCondition) uintptr | |||
| 896 | 819 | // | |
| 897 | 820 | // As the name suggests, this function is not available on Windows. | |
| 898 | 821 | func (x *Source) AddUnixFd(FdVar int, EventsVar IOCondition) uintptr { | |
| 899 | - | core.LazyRegister(&xSourceAddUnixFd, "GLIB", "g_source_add_unix_fd", false) | |
| 900 | - | ||
| 901 | 822 | cret := xSourceAddUnixFd(x.GoPointer(), FdVar, EventsVar) | |
| 902 | 823 | return cret | |
| 903 | 824 | } | |
| @@ -912,8 +833,6 @@ var xSourceAttach func(uintptr, *MainContext) uint | |||
| 912 | 833 | // This function is safe to call from any thread, regardless of which thread | |
| 913 | 834 | // the @context is running in. | |
| 914 | 835 | func (x *Source) Attach(ContextVar *MainContext) uint { | |
| 915 | - | core.LazyRegister(&xSourceAttach, "GLIB", "g_source_attach", false) | |
| 916 | - | ||
| 917 | 836 | cret := xSourceAttach(x.GoPointer(), ContextVar) | |
| 918 | 837 | return cret | |
| 919 | 838 | } | |
| @@ -938,8 +857,6 @@ var xSourceDestroy func(uintptr) | |||
| 938 | 857 | // [method@GLib.Source.set_callback]. This can mean, that the data’s | |
| 939 | 858 | // [callback@GLib.DestroyNotify] gets called right away. | |
| 940 | 859 | func (x *Source) Destroy() { | |
| 941 | - | core.LazyRegister(&xSourceDestroy, "GLIB", "g_source_destroy", false) | |
| 942 | - | ||
| 943 | 860 | xSourceDestroy(x.GoPointer()) | |
| 944 | 861 | } | |
| 945 | 862 | ||
| @@ -952,8 +869,6 @@ var xSourceDupContext func(uintptr) uintptr | |||
| 952 | 869 | // always call this function on the source returned from | |
| 953 | 870 | // [func@GLib.main_current_source]. | |
| 954 | 871 | func (x *Source) DupContext() *MainContext { | |
| 955 | - | core.LazyRegister(&xSourceDupContext, "GLIB", "g_source_dup_context", false) | |
| 956 | - | ||
| 957 | 872 | cret := xSourceDupContext(x.GoPointer()) | |
| 958 | 873 | if cret == 0 { | |
| 959 | 874 | return nil | |
| @@ -967,8 +882,6 @@ var xSourceGetCanRecurse func(uintptr) bool | |||
| 967 | 882 | // | |
| 968 | 883 | // See [method@GLib.Source.set_can_recurse]. | |
| 969 | 884 | func (x *Source) GetCanRecurse() bool { | |
| 970 | - | core.LazyRegister(&xSourceGetCanRecurse, "GLIB", "g_source_get_can_recurse", false) | |
| 971 | - | ||
| 972 | 885 | cret := xSourceGetCanRecurse(x.GoPointer()) | |
| 973 | 886 | return cret | |
| 974 | 887 | } | |
| @@ -988,8 +901,6 @@ var xSourceGetContext func(uintptr) uintptr | |||
| 988 | 901 | // a different thread, then this function is not safe to call and | |
| 989 | 902 | // [method@GLib.Source.dup_context] should be used instead. | |
| 990 | 903 | func (x *Source) GetContext() *MainContext { | |
| 991 | - | core.LazyRegister(&xSourceGetContext, "GLIB", "g_source_get_context", false) | |
| 992 | - | ||
| 993 | 904 | cret := xSourceGetContext(x.GoPointer()) | |
| 994 | 905 | if cret == 0 { | |
| 995 | 906 | return nil | |
| @@ -1002,8 +913,6 @@ var xSourceGetCurrentTime func(uintptr, *TimeVal) | |||
| 1002 | 913 | // This function ignores @source and is otherwise the same as | |
| 1003 | 914 | // [func@GLib.get_current_time]. | |
| 1004 | 915 | func (x *Source) GetCurrentTime(TimevalVar *TimeVal) { | |
| 1005 | - | core.LazyRegister(&xSourceGetCurrentTime, "GLIB", "g_source_get_current_time", false) | |
| 1006 | - | ||
| 1007 | 916 | xSourceGetCurrentTime(x.GoPointer(), TimevalVar) | |
| 1008 | 917 | } | |
| 1009 | 918 | ||
| @@ -1022,8 +931,6 @@ var xSourceGetId func(uintptr) uint | |||
| 1022 | 931 | // undefined behavior. The ID returned is unique within the | |
| 1023 | 932 | // [struct@GLib.MainContext] instance passed to [method@GLib.Source.attach]. | |
| 1024 | 933 | func (x *Source) GetId() uint { | |
| 1025 | - | core.LazyRegister(&xSourceGetId, "GLIB", "g_source_get_id", false) | |
| 1026 | - | ||
| 1027 | 934 | cret := xSourceGetId(x.GoPointer()) | |
| 1028 | 935 | return cret | |
| 1029 | 936 | } | |
| @@ -1035,8 +942,6 @@ var xSourceGetName func(uintptr) string | |||
| 1035 | 942 | // The | |
| 1036 | 943 | // name may be `NULL` if it has never been set with [method@GLib.Source.set_name]. | |
| 1037 | 944 | func (x *Source) GetName() string { | |
| 1038 | - | core.LazyRegister(&xSourceGetName, "GLIB", "g_source_get_name", false) | |
| 1039 | - | ||
| 1040 | 945 | cret := xSourceGetName(x.GoPointer()) | |
| 1041 | 946 | return cret | |
| 1042 | 947 | } | |
| @@ -1045,8 +950,6 @@ var xSourceGetPriority func(uintptr) int | |||
| 1045 | 950 | ||
| 1046 | 951 | // Gets the priority of a source. | |
| 1047 | 952 | func (x *Source) GetPriority() int { | |
| 1048 | - | core.LazyRegister(&xSourceGetPriority, "GLIB", "g_source_get_priority", false) | |
| 1049 | - | ||
| 1050 | 953 | cret := xSourceGetPriority(x.GoPointer()) | |
| 1051 | 954 | return cret | |
| 1052 | 955 | } | |
| @@ -1059,8 +962,6 @@ var xSourceGetReadyTime func(uintptr) int64 | |||
| 1059 | 962 | // Any time before or equal to the current monotonic time (including zero) | |
| 1060 | 963 | // is an indication that the source will fire immediately. | |
| 1061 | 964 | func (x *Source) GetReadyTime() int64 { | |
| 1062 | - | core.LazyRegister(&xSourceGetReadyTime, "GLIB", "g_source_get_ready_time", false) | |
| 1063 | - | ||
| 1064 | 965 | cret := xSourceGetReadyTime(x.GoPointer()) | |
| 1065 | 966 | return cret | |
| 1066 | 967 | } | |
| @@ -1077,8 +978,6 @@ var xSourceGetTime func(uintptr) int64 | |||
| 1077 | 978 | // The time here is the system monotonic time, if available, or some | |
| 1078 | 979 | // other reasonable alternative otherwise. See [func@GLib.get_monotonic_time]. | |
| 1079 | 980 | func (x *Source) GetTime() int64 { | |
| 1080 | - | core.LazyRegister(&xSourceGetTime, "GLIB", "g_source_get_time", false) | |
| 1081 | - | ||
| 1082 | 981 | cret := xSourceGetTime(x.GoPointer()) | |
| 1083 | 982 | return cret | |
| 1084 | 983 | } | |
| @@ -1171,8 +1070,6 @@ var xSourceIsDestroyed func(uintptr) bool | |||
| 1171 | 1070 | // returns. However, once a source is destroyed it cannot be un-destroyed, so | |
| 1172 | 1071 | // this function can be used for opportunistic checks from any thread. | |
| 1173 | 1072 | func (x *Source) IsDestroyed() bool { | |
| 1174 | - | core.LazyRegister(&xSourceIsDestroyed, "GLIB", "g_source_is_destroyed", false) | |
| 1175 | - | ||
| 1176 | 1073 | cret := xSourceIsDestroyed(x.GoPointer()) | |
| 1177 | 1074 | return cret | |
| 1178 | 1075 | } | |
| @@ -1191,8 +1088,6 @@ var xSourceModifyUnixFd func(uintptr, uintptr, IOCondition) | |||
| 1191 | 1088 | // | |
| 1192 | 1089 | // As the name suggests, this function is not available on Windows. | |
| 1193 | 1090 | func (x *Source) ModifyUnixFd(TagVar uintptr, NewEventsVar IOCondition) { | |
| 1194 | - | core.LazyRegister(&xSourceModifyUnixFd, "GLIB", "g_source_modify_unix_fd", false) | |
| 1195 | - | ||
| 1196 | 1091 | xSourceModifyUnixFd(x.GoPointer(), TagVar, NewEventsVar) | |
| 1197 | 1092 | } | |
| 1198 | 1093 | ||
| @@ -1209,8 +1104,6 @@ var xSourceQueryUnixFd func(uintptr, uintptr) IOCondition | |||
| 1209 | 1104 | // | |
| 1210 | 1105 | // As the name suggests, this function is not available on Windows. | |
| 1211 | 1106 | func (x *Source) QueryUnixFd(TagVar uintptr) IOCondition { | |
| 1212 | - | core.LazyRegister(&xSourceQueryUnixFd, "GLIB", "g_source_query_unix_fd", false) | |
| 1213 | - | ||
| 1214 | 1107 | cret := xSourceQueryUnixFd(x.GoPointer(), TagVar) | |
| 1215 | 1108 | return cret | |
| 1216 | 1109 | } | |
| @@ -1219,8 +1112,6 @@ var xSourceRef func(uintptr) uintptr | |||
| 1219 | 1112 | ||
| 1220 | 1113 | // Increases the reference count on a source by one. | |
| 1221 | 1114 | func (x *Source) Ref() *Source { | |
| 1222 | - | core.LazyRegister(&xSourceRef, "GLIB", "g_source_ref", false) | |
| 1223 | - | ||
| 1224 | 1115 | cret := xSourceRef(x.GoPointer()) | |
| 1225 | 1116 | if cret == 0 { | |
| 1226 | 1117 | return nil | |
| @@ -1235,8 +1126,6 @@ var xSourceRemoveChildSource func(uintptr, *Source) | |||
| 1235 | 1126 | // This API is only intended to be used by implementations of [struct@GLib.Source]. | |
| 1236 | 1127 | // Do not call this API on a [struct@GLib.Source] that you did not create. | |
| 1237 | 1128 | func (x *Source) RemoveChildSource(ChildSourceVar *Source) { | |
| 1238 | - | core.LazyRegister(&xSourceRemoveChildSource, "GLIB", "g_source_remove_child_source", false) | |
| 1239 | - | ||
| 1240 | 1129 | xSourceRemoveChildSource(x.GoPointer(), ChildSourceVar) | |
| 1241 | 1130 | } | |
| 1242 | 1131 | ||
| @@ -1248,8 +1137,6 @@ var xSourceRemovePoll func(uintptr, *PollFD) | |||
| 1248 | 1137 | // This API is only intended to be used by implementations of [struct@GLib.Source]. | |
| 1249 | 1138 | // Do not call this API on a [struct@GLib.Source] that you did not create. | |
| 1250 | 1139 | func (x *Source) RemovePoll(FdVar *PollFD) { | |
| 1251 | - | core.LazyRegister(&xSourceRemovePoll, "GLIB", "g_source_remove_poll", false) | |
| 1252 | - | ||
| 1253 | 1140 | xSourceRemovePoll(x.GoPointer(), FdVar) | |
| 1254 | 1141 | } | |
| 1255 | 1142 | ||
| @@ -1266,8 +1153,6 @@ var xSourceRemoveUnixFd func(uintptr, uintptr) | |||
| 1266 | 1153 | // | |
| 1267 | 1154 | // As the name suggests, this function is not available on Windows. | |
| 1268 | 1155 | func (x *Source) RemoveUnixFd(TagVar uintptr) { | |
| 1269 | - | core.LazyRegister(&xSourceRemoveUnixFd, "GLIB", "g_source_remove_unix_fd", false) | |
| 1270 | - | ||
| 1271 | 1156 | xSourceRemoveUnixFd(x.GoPointer(), TagVar) | |
| 1272 | 1157 | } | |
| 1273 | 1158 | ||
| @@ -1295,8 +1180,6 @@ var xSourceSetCallback func(uintptr, uintptr, uintptr, uintptr) | |||
| 1295 | 1180 | // Note that [method@GLib.Source.destroy] for a currently attached source has the effect | |
| 1296 | 1181 | // of also unsetting the callback. | |
| 1297 | 1182 | func (x *Source) SetCallback(FuncVar *SourceFunc, DataVar uintptr, NotifyVar *DestroyNotify) { | |
| 1298 | - | core.LazyRegister(&xSourceSetCallback, "GLIB", "g_source_set_callback", false) | |
| 1299 | - | ||
| 1300 | 1183 | xSourceSetCallback(x.GoPointer(), NewCallback(FuncVar), DataVar, NewCallbackNullable(NotifyVar)) | |
| 1301 | 1184 | } | |
| 1302 | 1185 | ||
| @@ -1315,8 +1198,6 @@ var xSourceSetCallbackIndirect func(uintptr, uintptr, *SourceCallbackFuncs) | |||
| 1315 | 1198 | // been attached to a context. The changes will take effect for the next time | |
| 1316 | 1199 | // the source is dispatched after this call returns. | |
| 1317 | 1200 | func (x *Source) SetCallbackIndirect(CallbackDataVar uintptr, CallbackFuncsVar *SourceCallbackFuncs) { | |
| 1318 | - | core.LazyRegister(&xSourceSetCallbackIndirect, "GLIB", "g_source_set_callback_indirect", false) | |
| 1319 | - | ||
| 1320 | 1201 | xSourceSetCallbackIndirect(x.GoPointer(), CallbackDataVar, CallbackFuncsVar) | |
| 1321 | 1202 | } | |
| 1322 | 1203 | ||
| @@ -1328,8 +1209,6 @@ var xSourceSetCanRecurse func(uintptr, bool) | |||
| 1328 | 1209 | // source will be processed normally. Otherwise, all processing of this | |
| 1329 | 1210 | // source is blocked until the dispatch function returns. | |
| 1330 | 1211 | func (x *Source) SetCanRecurse(CanRecurseVar bool) { | |
| 1331 | - | core.LazyRegister(&xSourceSetCanRecurse, "GLIB", "g_source_set_can_recurse", false) | |
| 1332 | - | ||
| 1333 | 1212 | xSourceSetCanRecurse(x.GoPointer(), CanRecurseVar) | |
| 1334 | 1213 | } | |
| 1335 | 1214 | ||
| @@ -1356,8 +1235,6 @@ var xSourceSetDisposeFunction func(uintptr, uintptr) | |||
| 1356 | 1235 | // | |
| 1357 | 1236 | // This should only ever be called from [struct@GLib.Source] implementations. | |
| 1358 | 1237 | func (x *Source) SetDisposeFunction(DisposeVar *SourceDisposeFunc) { | |
| 1359 | - | core.LazyRegister(&xSourceSetDisposeFunction, "GLIB", "g_source_set_dispose_function", false) | |
| 1360 | - | ||
| 1361 | 1238 | xSourceSetDisposeFunction(x.GoPointer(), NewCallback(DisposeVar)) | |
| 1362 | 1239 | } | |
| 1363 | 1240 | ||
| @@ -1368,8 +1245,6 @@ var xSourceSetFuncs func(uintptr, *SourceFuncs) | |||
| 1368 | 1245 | // These can be used to override the default implementations for the type | |
| 1369 | 1246 | // of @source. | |
| 1370 | 1247 | func (x *Source) SetFuncs(FuncsVar *SourceFuncs) { | |
| 1371 | - | core.LazyRegister(&xSourceSetFuncs, "GLIB", "g_source_set_funcs", false) | |
| 1372 | - | ||
| 1373 | 1248 | xSourceSetFuncs(x.GoPointer(), FuncsVar) | |
| 1374 | 1249 | } | |
| 1375 | 1250 | ||
| @@ -1396,8 +1271,6 @@ var xSourceSetName func(uintptr, string) | |||
| 1396 | 1271 | // | |
| 1397 | 1272 | // Also see [method@GLib.Source.set_static_name]. | |
| 1398 | 1273 | func (x *Source) SetName(NameVar string) { | |
| 1399 | - | core.LazyRegister(&xSourceSetName, "GLIB", "g_source_set_name", false) | |
| 1400 | - | ||
| 1401 | 1274 | xSourceSetName(x.GoPointer(), NameVar) | |
| 1402 | 1275 | } | |
| 1403 | 1276 | ||
| @@ -1414,8 +1287,6 @@ var xSourceSetPriority func(uintptr, int) | |||
| 1414 | 1287 | // permitted to change the priority of a source once it has been added | |
| 1415 | 1288 | // as a child of another source. | |
| 1416 | 1289 | func (x *Source) SetPriority(PriorityVar int) { | |
| 1417 | - | core.LazyRegister(&xSourceSetPriority, "GLIB", "g_source_set_priority", false) | |
| 1418 | - | ||
| 1419 | 1290 | xSourceSetPriority(x.GoPointer(), PriorityVar) | |
| 1420 | 1291 | } | |
| 1421 | 1292 | ||
| @@ -1446,8 +1317,6 @@ var xSourceSetReadyTime func(uintptr, int64) | |||
| 1446 | 1317 | // This API is only intended to be used by implementations of [struct@GLib.Source]. | |
| 1447 | 1318 | // Do not call this API on a [struct@GLib.Source] that you did not create. | |
| 1448 | 1319 | func (x *Source) SetReadyTime(ReadyTimeVar int64) { | |
| 1449 | - | core.LazyRegister(&xSourceSetReadyTime, "GLIB", "g_source_set_ready_time", false) | |
| 1450 | - | ||
| 1451 | 1320 | xSourceSetReadyTime(x.GoPointer(), ReadyTimeVar) | |
| 1452 | 1321 | } | |
| 1453 | 1322 | ||
| @@ -1457,8 +1326,6 @@ var xSourceSetStaticName func(uintptr, string) | |||
| 1457 | 1326 | // duplicate the @name, and can only be used with | |
| 1458 | 1327 | // string literals. | |
| 1459 | 1328 | func (x *Source) SetStaticName(NameVar string) { | |
| 1460 | - | core.LazyRegister(&xSourceSetStaticName, "GLIB", "g_source_set_static_name", false) | |
| 1461 | - | ||
| 1462 | 1329 | xSourceSetStaticName(x.GoPointer(), NameVar) | |
| 1463 | 1330 | } | |
| 1464 | 1331 | ||
| @@ -1469,8 +1336,6 @@ var xSourceUnref func(uintptr) | |||
| 1469 | 1336 | // If the resulting reference count is zero the source and associated | |
| 1470 | 1337 | // memory will be destroyed. | |
| 1471 | 1338 | func (x *Source) Unref() { | |
| 1472 | - | core.LazyRegister(&xSourceUnref, "GLIB", "g_source_unref", false) | |
| 1473 | - | ||
| 1474 | 1339 | xSourceUnref(x.GoPointer()) | |
| 1475 | 1340 | } | |
| 1476 | 1341 | ||
| @@ -1718,7 +1583,6 @@ var xChildWatchAdd func(Pid, uintptr, uintptr) uint | |||
| 1718 | 1583 | // using [method@GLib.Source.attach]. You can do these steps manually if you | |
| 1719 | 1584 | // need greater control. | |
| 1720 | 1585 | func ChildWatchAdd(PidVar Pid, FunctionVar *ChildWatchFunc, DataVar uintptr) uint { | |
| 1721 | - | core.LazyRegister(&xChildWatchAdd, "GLIB", "g_child_watch_add", false) | |
| 1722 | 1586 | var functionRef uintptr | |
| 1723 | 1587 | if FunctionVar != nil { | |
| 1724 | 1588 | functionRef = childWatchFuncTrampolineCb | |
| @@ -1756,7 +1620,6 @@ var xChildWatchAddFull func(int, Pid, uintptr, uintptr, uintptr) uint | |||
| 1756 | 1620 | // using [method@GLib.Source.attach]. You can do these steps manually if you | |
| 1757 | 1621 | // need greater control. | |
| 1758 | 1622 | func ChildWatchAddFull(PriorityVar int, PidVar Pid, FunctionVar *ChildWatchFunc, DataVar uintptr, NotifyVar *DestroyNotify) uint { | |
| 1759 | - | core.LazyRegister(&xChildWatchAddFull, "GLIB", "g_child_watch_add_full", false) | |
| 1760 | 1623 | var functionRef uintptr | |
| 1761 | 1624 | if FunctionVar != nil { | |
| 1762 | 1625 | functionRef = childWatchFuncTrampolineCb | |
| @@ -1809,8 +1672,6 @@ var xChildWatchSourceNew func(Pid) uintptr | |||
| 1809 | 1672 | // Calling [`waitpid()`](man:waitpid(2)) for specific processes other than @pid | |
| 1810 | 1673 | // remains a valid thing to do. | |
| 1811 | 1674 | func ChildWatchSourceNew(PidVar Pid) *Source { | |
| 1812 | - | core.LazyRegister(&xChildWatchSourceNew, "GLIB", "g_child_watch_source_new", false) | |
| 1813 | - | ||
| 1814 | 1675 | cret := xChildWatchSourceNew(PidVar) | |
| 1815 | 1676 | if cret == 0 { | |
| 1816 | 1677 | return nil | |
| @@ -1831,8 +1692,6 @@ var xClearHandleId func(uint, uintptr) | |||
| 1831 | 1692 | // A macro is also included that allows this function to be used without | |
| 1832 | 1693 | // pointer casts. | |
| 1833 | 1694 | func ClearHandleId(TagPtrVar uint, ClearFuncVar *ClearHandleFunc) { | |
| 1834 | - | core.LazyRegister(&xClearHandleId, "GLIB", "g_clear_handle_id", false) | |
| 1835 | - | ||
| 1836 | 1695 | xClearHandleId(TagPtrVar, NewCallback(ClearFuncVar)) | |
| 1837 | 1696 | } | |
| 1838 | 1697 | ||
| @@ -1845,8 +1704,6 @@ var xGetCurrentTime func(*TimeVal) | |||
| 1845 | 1704 | // | |
| 1846 | 1705 | // You may find [func@GLib.get_real_time] to be more convenient. | |
| 1847 | 1706 | func GetCurrentTime(ResultVar *TimeVal) { | |
| 1848 | - | core.LazyRegister(&xGetCurrentTime, "GLIB", "g_get_current_time", false) | |
| 1849 | - | ||
| 1850 | 1707 | xGetCurrentTime(ResultVar) | |
| 1851 | 1708 | } | |
| 1852 | 1709 | ||
| @@ -1867,8 +1724,6 @@ var xGetMonotonicTime func() int64 | |||
| 1867 | 1724 | // A more accurate version of this function exists. | |
| 1868 | 1725 | // [func@GLib.get_monotonic_time_ns] returns the time in nanoseconds. | |
| 1869 | 1726 | func GetMonotonicTime() int64 { | |
| 1870 | - | core.LazyRegister(&xGetMonotonicTime, "GLIB", "g_get_monotonic_time", false) | |
| 1871 | - | ||
| 1872 | 1727 | cret := xGetMonotonicTime() | |
| 1873 | 1728 | return cret | |
| 1874 | 1729 | } | |
| @@ -1891,8 +1746,6 @@ var xGetMonotonicTimeNs func() uint64 | |||
| 1891 | 1746 | // [func@GLib.get_monotonic_time] returns the time in microseconds. | |
| 1892 | 1747 | // If you want to support older GLib versions, it is an alternative. | |
| 1893 | 1748 | func GetMonotonicTimeNs() uint64 { | |
| 1894 | - | core.LazyRegister(&xGetMonotonicTimeNs, "GLIB", "g_get_monotonic_time_ns", false) | |
| 1895 | - | ||
| 1896 | 1749 | cret := xGetMonotonicTimeNs() | |
| 1897 | 1750 | return cret | |
| 1898 | 1751 | } | |
| @@ -1908,8 +1761,6 @@ var xGetRealTime func() int64 | |||
| 1908 | 1761 | // wall-clock time. [func@GLib.get_monotonic_time] is probably more useful for | |
| 1909 | 1762 | // measuring intervals. | |
| 1910 | 1763 | func GetRealTime() int64 { | |
| 1911 | - | core.LazyRegister(&xGetRealTime, "GLIB", "g_get_real_time", false) | |
| 1912 | - | ||
| 1913 | 1764 | cret := xGetRealTime() | |
| 1914 | 1765 | return cret | |
| 1915 | 1766 | } | |
| @@ -1933,7 +1784,6 @@ var xIdleAdd func(uintptr, uintptr) uint | |||
| 1933 | 1784 | // thread is running that main context. You can do these steps manually if you | |
| 1934 | 1785 | // need greater control or to use a custom main context. | |
| 1935 | 1786 | func IdleAdd(FunctionVar *SourceFunc, DataVar uintptr) uint { | |
| 1936 | - | core.LazyRegister(&xIdleAdd, "GLIB", "g_idle_add", false) | |
| 1937 | 1787 | var functionRef uintptr | |
| 1938 | 1788 | if FunctionVar != nil { | |
| 1939 | 1789 | functionRef = sourceFuncTrampolineCb | |
| @@ -1960,7 +1810,6 @@ var xIdleAddFull func(int, uintptr, uintptr, uintptr) uint | |||
| 1960 | 1810 | // thread is running that main context. You can do these steps manually if you | |
| 1961 | 1811 | // need greater control or to use a custom main context. | |
| 1962 | 1812 | func IdleAddFull(PriorityVar int, FunctionVar *SourceFunc, DataVar uintptr, NotifyVar *DestroyNotify) uint { | |
| 1963 | - | core.LazyRegister(&xIdleAddFull, "GLIB", "g_idle_add_full", false) | |
| 1964 | 1813 | var functionRef uintptr | |
| 1965 | 1814 | if FunctionVar != nil { | |
| 1966 | 1815 | functionRef = sourceFuncTrampolineCb | |
| @@ -1983,7 +1832,6 @@ var xIdleAddOnce func(uintptr, uintptr) uint | |||
| 1983 | 1832 | // | |
| 1984 | 1833 | // This function otherwise behaves like [func@GLib.idle_add]. | |
| 1985 | 1834 | func IdleAddOnce(FunctionVar *SourceOnceFunc, DataVar uintptr) uint { | |
| 1986 | - | core.LazyRegister(&xIdleAddOnce, "GLIB", "g_idle_add_once", false) | |
| 1987 | 1835 | var functionRef uintptr | |
| 1988 | 1836 | if FunctionVar != nil { | |
| 1989 | 1837 | functionRef = sourceOnceFuncTrampolineCb | |
| @@ -1997,7 +1845,6 @@ var xIdleRemoveByData func(uintptr) bool | |||
| 1997 | 1845 | ||
| 1998 | 1846 | // Removes the idle function with the given data. | |
| 1999 | 1847 | func IdleRemoveByData(DataVar uintptr) bool { | |
| 2000 | - | core.LazyRegister(&xIdleRemoveByData, "GLIB", "g_idle_remove_by_data", false) | |
| 2001 | 1848 | trackedSourceID := trackedSourceIDByUserData(DataVar) | |
| 2002 | 1849 | cret := xIdleRemoveByData(DataVar) | |
| 2003 | 1850 | if cret { | |
| @@ -2017,8 +1864,6 @@ var xIdleSourceNew func() uintptr | |||
| 2017 | 1864 | // compared to other sources which have a default priority of | |
| 2018 | 1865 | // [const@GLib.PRIORITY_DEFAULT]. | |
| 2019 | 1866 | func IdleSourceNew() *Source { | |
| 2020 | - | core.LazyRegister(&xIdleSourceNew, "GLIB", "g_idle_source_new", false) | |
| 2021 | - | ||
| 2022 | 1867 | cret := xIdleSourceNew() | |
| 2023 | 1868 | if cret == 0 { | |
| 2024 | 1869 | return nil | |
| @@ -2035,8 +1880,6 @@ var xMainContextDefault func() uintptr | |||
| 2035 | 1880 | // specified, and corresponds to the ‘main’ main loop. See also | |
| 2036 | 1881 | // [func@GLib.MainContext.get_thread_default]. | |
| 2037 | 1882 | func MainContextDefault() *MainContext { | |
| 2038 | - | core.LazyRegister(&xMainContextDefault, "GLIB", "g_main_context_default", false) | |
| 2039 | - | ||
| 2040 | 1883 | cret := xMainContextDefault() | |
| 2041 | 1884 | if cret == 0 { | |
| 2042 | 1885 | return nil | |
| @@ -2059,8 +1902,6 @@ var xMainContextGetThreadDefault func() uintptr | |||
| 2059 | 1902 | // If you need to hold a reference on the context, use | |
| 2060 | 1903 | // [func@GLib.MainContext.ref_thread_default] instead. | |
| 2061 | 1904 | func MainContextGetThreadDefault() *MainContext { | |
| 2062 | - | core.LazyRegister(&xMainContextGetThreadDefault, "GLIB", "g_main_context_get_thread_default", false) | |
| 2063 | - | ||
| 2064 | 1905 | cret := xMainContextGetThreadDefault() | |
| 2065 | 1906 | if cret == 0 { | |
| 2066 | 1907 | return nil | |
| @@ -2081,8 +1922,6 @@ var xMainContextRefThreadDefault func() uintptr | |||
| 2081 | 1922 | // [struct@GLib.MainContext] (with a ref added to it) rather than returning | |
| 2082 | 1923 | // `NULL`. | |
| 2083 | 1924 | func MainContextRefThreadDefault() *MainContext { | |
| 2084 | - | core.LazyRegister(&xMainContextRefThreadDefault, "GLIB", "g_main_context_ref_thread_default", false) | |
| 2085 | - | ||
| 2086 | 1925 | cret := xMainContextRefThreadDefault() | |
| 2087 | 1926 | if cret == 0 { | |
| 2088 | 1927 | return nil | |
| @@ -2094,8 +1933,6 @@ var xMainCurrentSource func() uintptr | |||
| 2094 | 1933 | ||
| 2095 | 1934 | // Returns the currently firing source for this thread. | |
| 2096 | 1935 | func MainCurrentSource() *Source { | |
| 2097 | - | core.LazyRegister(&xMainCurrentSource, "GLIB", "g_main_current_source", false) | |
| 2098 | - | ||
| 2099 | 1936 | cret := xMainCurrentSource() | |
| 2100 | 1937 | if cret == 0 { | |
| 2101 | 1938 | return nil | |
| @@ -2215,8 +2052,6 @@ var xMainDepth func() int | |||
| 2215 | 2052 | // simply return to the main loop and then get called again when | |
| 2216 | 2053 | // there is more work to do. | |
| 2217 | 2054 | func MainDepth() int { | |
| 2218 | - | core.LazyRegister(&xMainDepth, "GLIB", "g_main_depth", false) | |
| 2219 | - | ||
| 2220 | 2055 | cret := xMainDepth() | |
| 2221 | 2056 | return cret | |
| 2222 | 2057 | } | |
| @@ -2246,7 +2081,6 @@ var xSourceRemove func(uint) bool | |||
| 2246 | 2081 | // been reissued, leading to the operation being performed against the | |
| 2247 | 2082 | // wrong source. | |
| 2248 | 2083 | func SourceRemove(TagVar uint) bool { | |
| 2249 | - | core.LazyRegister(&xSourceRemove, "GLIB", "g_source_remove", false) | |
| 2250 | 2084 | cret := xSourceRemove(TagVar) | |
| 2251 | 2085 | if cret { | |
| 2252 | 2086 | removeTrackedSource(TagVar) | |
| @@ -2262,8 +2096,6 @@ var xSourceRemoveByFuncsUserData func(*SourceFuncs, uintptr) bool | |||
| 2262 | 2096 | // If multiple sources exist with the same source functions and user data, only | |
| 2263 | 2097 | // one will be destroyed. | |
| 2264 | 2098 | func SourceRemoveByFuncsUserData(FuncsVar *SourceFuncs, UserDataVar uintptr) bool { | |
| 2265 | - | core.LazyRegister(&xSourceRemoveByFuncsUserData, "GLIB", "g_source_remove_by_funcs_user_data", false) | |
| 2266 | - | ||
| 2267 | 2099 | cret := xSourceRemoveByFuncsUserData(FuncsVar, UserDataVar) | |
| 2268 | 2100 | return cret | |
| 2269 | 2101 | } | |
| @@ -2275,7 +2107,6 @@ var xSourceRemoveByUserData func(uintptr) bool | |||
| 2275 | 2107 | // | |
| 2276 | 2108 | // If multiple sources exist with the same user data, only one will be destroyed. | |
| 2277 | 2109 | func SourceRemoveByUserData(UserDataVar uintptr) bool { | |
| 2278 | - | core.LazyRegister(&xSourceRemoveByUserData, "GLIB", "g_source_remove_by_user_data", false) | |
| 2279 | 2110 | trackedSourceID := trackedSourceIDByUserData(UserDataVar) | |
| 2280 | 2111 | cret := xSourceRemoveByUserData(UserDataVar) | |
| 2281 | 2112 | if cret { | |
| @@ -2303,8 +2134,6 @@ var xSourceSetNameById func(uint, string) | |||
| 2303 | 2134 | // been reissued, leading to the operation being performed against the | |
| 2304 | 2135 | // wrong source. | |
| 2305 | 2136 | func SourceSetNameById(TagVar uint, NameVar string) { | |
| 2306 | - | core.LazyRegister(&xSourceSetNameById, "GLIB", "g_source_set_name_by_id", false) | |
| 2307 | - | ||
| 2308 | 2137 | xSourceSetNameById(TagVar, NameVar) | |
| 2309 | 2138 | } | |
| 2310 | 2139 | ||
| @@ -2344,7 +2173,6 @@ var xTimeoutAdd func(uint, uintptr, uintptr) uint | |||
| 2344 | 2173 | // The interval given is in terms of monotonic time, not wall clock | |
| 2345 | 2174 | // time. See [func@GLib.get_monotonic_time]. | |
| 2346 | 2175 | func TimeoutAdd(IntervalVar uint, FunctionVar *SourceFunc, DataVar uintptr) uint { | |
| 2347 | - | core.LazyRegister(&xTimeoutAdd, "GLIB", "g_timeout_add", false) | |
| 2348 | 2176 | var functionRef uintptr | |
| 2349 | 2177 | if FunctionVar != nil { | |
| 2350 | 2178 | functionRef = sourceFuncTrampolineCb | |
| @@ -2385,7 +2213,6 @@ var xTimeoutAddFull func(int, uint, uintptr, uintptr, uintptr) uint | |||
| 2385 | 2213 | // The interval given is in terms of monotonic time, not wall clock time. | |
| 2386 | 2214 | // See [func@GLib.get_monotonic_time]. | |
| 2387 | 2215 | func TimeoutAddFull(PriorityVar int, IntervalVar uint, FunctionVar *SourceFunc, DataVar uintptr, NotifyVar *DestroyNotify) uint { | |
| 2388 | - | core.LazyRegister(&xTimeoutAddFull, "GLIB", "g_timeout_add_full", false) | |
| 2389 | 2216 | var functionRef uintptr | |
| 2390 | 2217 | if FunctionVar != nil { | |
| 2391 | 2218 | functionRef = sourceFuncTrampolineCb | |
| @@ -2405,7 +2232,6 @@ var xTimeoutAddOnce func(uint, uintptr, uintptr) uint | |||
| 2405 | 2232 | // | |
| 2406 | 2233 | // This function otherwise behaves like [func@GLib.timeout_add]. | |
| 2407 | 2234 | func TimeoutAddOnce(IntervalVar uint, FunctionVar *SourceOnceFunc, DataVar uintptr) uint { | |
| 2408 | - | core.LazyRegister(&xTimeoutAddOnce, "GLIB", "g_timeout_add_once", false) | |
| 2409 | 2235 | var functionRef uintptr | |
| 2410 | 2236 | if FunctionVar != nil { | |
| 2411 | 2237 | functionRef = sourceOnceFuncTrampolineCb | |
| @@ -2441,7 +2267,6 @@ var xTimeoutAddSeconds func(uint, uintptr, uintptr) uint | |||
| 2441 | 2267 | // The interval given is in terms of monotonic time, not wall clock | |
| 2442 | 2268 | // time. See [func@GLib.get_monotonic_time]. | |
| 2443 | 2269 | func TimeoutAddSeconds(IntervalVar uint, FunctionVar *SourceFunc, DataVar uintptr) uint { | |
| 2444 | - | core.LazyRegister(&xTimeoutAddSeconds, "GLIB", "g_timeout_add_seconds", false) | |
| 2445 | 2270 | var functionRef uintptr | |
| 2446 | 2271 | if FunctionVar != nil { | |
| 2447 | 2272 | functionRef = sourceFuncTrampolineCb | |
| @@ -2494,7 +2319,6 @@ var xTimeoutAddSecondsFull func(int, uint, uintptr, uintptr, uintptr) uint | |||
| 2494 | 2319 | // The interval given is in terms of monotonic time, not wall clock | |
| 2495 | 2320 | // time. See [func@GLib.get_monotonic_time]. | |
| 2496 | 2321 | func TimeoutAddSecondsFull(PriorityVar int, IntervalVar uint, FunctionVar *SourceFunc, DataVar uintptr, NotifyVar *DestroyNotify) uint { | |
| 2497 | - | core.LazyRegister(&xTimeoutAddSecondsFull, "GLIB", "g_timeout_add_seconds_full", false) | |
| 2498 | 2322 | var functionRef uintptr | |
| 2499 | 2323 | if FunctionVar != nil { | |
| 2500 | 2324 | functionRef = sourceFuncTrampolineCb | |
| @@ -2509,7 +2333,6 @@ var xTimeoutAddSecondsOnce func(uint, uintptr, uintptr) uint | |||
| 2509 | 2333 | // This function behaves like [func@GLib.timeout_add_once] but with a range in | |
| 2510 | 2334 | // seconds. | |
| 2511 | 2335 | func TimeoutAddSecondsOnce(IntervalVar uint, FunctionVar *SourceOnceFunc, DataVar uintptr) uint { | |
| 2512 | - | core.LazyRegister(&xTimeoutAddSecondsOnce, "GLIB", "g_timeout_add_seconds_once", false) | |
| 2513 | 2336 | var functionRef uintptr | |
| 2514 | 2337 | if FunctionVar != nil { | |
| 2515 | 2338 | functionRef = sourceOnceFuncTrampolineCb | |
| @@ -2530,8 +2353,6 @@ var xTimeoutSourceNew func(uint) uintptr | |||
| 2530 | 2353 | // The interval given is in terms of monotonic time, not wall clock | |
| 2531 | 2354 | // time. See [func@GLib.get_monotonic_time]. | |
| 2532 | 2355 | func TimeoutSourceNew(IntervalVar uint) *Source { | |
| 2533 | - | core.LazyRegister(&xTimeoutSourceNew, "GLIB", "g_timeout_source_new", false) | |
| 2534 | - | ||
| 2535 | 2356 | cret := xTimeoutSourceNew(IntervalVar) | |
| 2536 | 2357 | if cret == 0 { | |
| 2537 | 2358 | return nil | |
| @@ -2553,8 +2374,6 @@ var xTimeoutSourceNewSeconds func(uint) uintptr | |||
| 2553 | 2374 | // The interval given is in terms of monotonic time, not wall clock time. | |
| 2554 | 2375 | // See [func@GLib.get_monotonic_time]. | |
| 2555 | 2376 | func TimeoutSourceNewSeconds(IntervalVar uint) *Source { | |
| 2556 | - | core.LazyRegister(&xTimeoutSourceNewSeconds, "GLIB", "g_timeout_source_new_seconds", false) | |
| 2557 | - | ||
| 2558 | 2377 | cret := xTimeoutSourceNewSeconds(IntervalVar) | |
| 2559 | 2378 | if cret == 0 { | |
| 2560 | 2379 | return nil | |
| @@ -2565,4 +2384,121 @@ func TimeoutSourceNewSeconds(IntervalVar uint) *Source { | |||
| 2565 | 2384 | func init() { | |
| 2566 | 2385 | core.SetPackageName("GLIB", "glib-2.0") | |
| 2567 | 2386 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | |
| 2387 | + | var libs []uintptr | |
| 2388 | + | for _, libPath := range core.GetPaths("GLIB") { | |
| 2389 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 2390 | + | if err != nil { | |
| 2391 | + | panic(err) | |
| 2392 | + | } | |
| 2393 | + | libs = append(libs, lib) | |
| 2394 | + | } | |
| 2395 | + | ||
| 2396 | + | core.PuregoSafeRegister(&xChildWatchAdd, libs, "g_child_watch_add") | |
| 2397 | + | core.PuregoSafeRegister(&xChildWatchAddFull, libs, "g_child_watch_add_full") | |
| 2398 | + | core.PuregoSafeRegister(&xChildWatchSourceNew, libs, "g_child_watch_source_new") | |
| 2399 | + | core.PuregoSafeRegister(&xClearHandleId, libs, "g_clear_handle_id") | |
| 2400 | + | core.PuregoSafeRegister(&xGetCurrentTime, libs, "g_get_current_time") | |
| 2401 | + | core.PuregoSafeRegister(&xGetMonotonicTime, libs, "g_get_monotonic_time") | |
| 2402 | + | core.PuregoSafeRegister(&xGetMonotonicTimeNs, libs, "g_get_monotonic_time_ns") | |
| 2403 | + | core.PuregoSafeRegister(&xGetRealTime, libs, "g_get_real_time") | |
| 2404 | + | core.PuregoSafeRegister(&xIdleAdd, libs, "g_idle_add") | |
| 2405 | + | core.PuregoSafeRegister(&xIdleAddFull, libs, "g_idle_add_full") | |
| 2406 | + | core.PuregoSafeRegister(&xIdleAddOnce, libs, "g_idle_add_once") | |
| 2407 | + | core.PuregoSafeRegister(&xIdleRemoveByData, libs, "g_idle_remove_by_data") | |
| 2408 | + | core.PuregoSafeRegister(&xIdleSourceNew, libs, "g_idle_source_new") | |
| 2409 | + | core.PuregoSafeRegister(&xMainContextDefault, libs, "g_main_context_default") | |
| 2410 | + | core.PuregoSafeRegister(&xMainContextGetThreadDefault, libs, "g_main_context_get_thread_default") | |
| 2411 | + | core.PuregoSafeRegister(&xMainContextRefThreadDefault, libs, "g_main_context_ref_thread_default") | |
| 2412 | + | core.PuregoSafeRegister(&xMainCurrentSource, libs, "g_main_current_source") | |
| 2413 | + | core.PuregoSafeRegister(&xMainDepth, libs, "g_main_depth") | |
| 2414 | + | core.PuregoSafeRegister(&xSourceRemove, libs, "g_source_remove") | |
| 2415 | + | core.PuregoSafeRegister(&xSourceRemoveByFuncsUserData, libs, "g_source_remove_by_funcs_user_data") | |
| 2416 | + | core.PuregoSafeRegister(&xSourceRemoveByUserData, libs, "g_source_remove_by_user_data") | |
| 2417 | + | core.PuregoSafeRegister(&xSourceSetNameById, libs, "g_source_set_name_by_id") | |
| 2418 | + | core.PuregoSafeRegister(&xTimeoutAdd, libs, "g_timeout_add") | |
| 2419 | + | core.PuregoSafeRegister(&xTimeoutAddFull, libs, "g_timeout_add_full") | |
| 2420 | + | core.PuregoSafeRegister(&xTimeoutAddOnce, libs, "g_timeout_add_once") | |
| 2421 | + | core.PuregoSafeRegister(&xTimeoutAddSeconds, libs, "g_timeout_add_seconds") | |
| 2422 | + | core.PuregoSafeRegister(&xTimeoutAddSecondsFull, libs, "g_timeout_add_seconds_full") | |
| 2423 | + | core.PuregoSafeRegister(&xTimeoutAddSecondsOnce, libs, "g_timeout_add_seconds_once") | |
| 2424 | + | core.PuregoSafeRegister(&xTimeoutSourceNew, libs, "g_timeout_source_new") | |
| 2425 | + | core.PuregoSafeRegister(&xTimeoutSourceNewSeconds, libs, "g_timeout_source_new_seconds") | |
| 2426 | + | ||
| 2427 | + | core.PuregoSafeRegister(&xMainContextGLibType, libs, "g_main_context_get_type") | |
| 2428 | + | ||
| 2429 | + | core.PuregoSafeRegister(&xNewMainContext, libs, "g_main_context_new") | |
| 2430 | + | core.PuregoSafeRegister(&xNewMainContextWithFlags, libs, "g_main_context_new_with_flags") | |
| 2431 | + | ||
| 2432 | + | core.PuregoSafeRegister(&xMainContextAcquire, libs, "g_main_context_acquire") | |
| 2433 | + | core.PuregoSafeRegister(&xMainContextAddPoll, libs, "g_main_context_add_poll") | |
| 2434 | + | core.PuregoSafeRegister(&xMainContextCheck, libs, "g_main_context_check") | |
| 2435 | + | core.PuregoSafeRegister(&xMainContextDispatch, libs, "g_main_context_dispatch") | |
| 2436 | + | core.PuregoSafeRegister(&xMainContextFindSourceByFuncsUserData, libs, "g_main_context_find_source_by_funcs_user_data") | |
| 2437 | + | core.PuregoSafeRegister(&xMainContextFindSourceById, libs, "g_main_context_find_source_by_id") | |
| 2438 | + | core.PuregoSafeRegister(&xMainContextFindSourceByUserData, libs, "g_main_context_find_source_by_user_data") | |
| 2439 | + | core.PuregoSafeRegister(&xMainContextGetPollFunc, libs, "g_main_context_get_poll_func") | |
| 2440 | + | core.PuregoSafeRegister(&xMainContextInvoke, libs, "g_main_context_invoke") | |
| 2441 | + | core.PuregoSafeRegister(&xMainContextInvokeFull, libs, "g_main_context_invoke_full") | |
| 2442 | + | core.PuregoSafeRegister(&xMainContextIsOwner, libs, "g_main_context_is_owner") | |
| 2443 | + | core.PuregoSafeRegister(&xMainContextIteration, libs, "g_main_context_iteration") | |
| 2444 | + | core.PuregoSafeRegister(&xMainContextPending, libs, "g_main_context_pending") | |
| 2445 | + | core.PuregoSafeRegister(&xMainContextPopThreadDefault, libs, "g_main_context_pop_thread_default") | |
| 2446 | + | core.PuregoSafeRegister(&xMainContextPrepare, libs, "g_main_context_prepare") | |
| 2447 | + | core.PuregoSafeRegister(&xMainContextPushThreadDefault, libs, "g_main_context_push_thread_default") | |
| 2448 | + | core.PuregoSafeRegister(&xMainContextPusherNew, libs, "g_main_context_pusher_new") | |
| 2449 | + | core.PuregoSafeRegister(&xMainContextQuery, libs, "g_main_context_query") | |
| 2450 | + | core.PuregoSafeRegister(&xMainContextRef, libs, "g_main_context_ref") | |
| 2451 | + | core.PuregoSafeRegister(&xMainContextRelease, libs, "g_main_context_release") | |
| 2452 | + | core.PuregoSafeRegister(&xMainContextRemovePoll, libs, "g_main_context_remove_poll") | |
| 2453 | + | core.PuregoSafeRegister(&xMainContextSetPollFunc, libs, "g_main_context_set_poll_func") | |
| 2454 | + | core.PuregoSafeRegister(&xMainContextUnref, libs, "g_main_context_unref") | |
| 2455 | + | core.PuregoSafeRegister(&xMainContextWait, libs, "g_main_context_wait") | |
| 2456 | + | core.PuregoSafeRegister(&xMainContextWakeup, libs, "g_main_context_wakeup") | |
| 2457 | + | ||
| 2458 | + | core.PuregoSafeRegister(&xMainLoopGLibType, libs, "g_main_loop_get_type") | |
| 2459 | + | ||
| 2460 | + | core.PuregoSafeRegister(&xNewMainLoop, libs, "g_main_loop_new") | |
| 2461 | + | ||
| 2462 | + | core.PuregoSafeRegister(&xMainLoopGetContext, libs, "g_main_loop_get_context") | |
| 2463 | + | core.PuregoSafeRegister(&xMainLoopIsRunning, libs, "g_main_loop_is_running") | |
| 2464 | + | core.PuregoSafeRegister(&xMainLoopQuit, libs, "g_main_loop_quit") | |
| 2465 | + | core.PuregoSafeRegister(&xMainLoopRef, libs, "g_main_loop_ref") | |
| 2466 | + | core.PuregoSafeRegister(&xMainLoopRun, libs, "g_main_loop_run") | |
| 2467 | + | core.PuregoSafeRegister(&xMainLoopUnref, libs, "g_main_loop_unref") | |
| 2468 | + | ||
| 2469 | + | core.PuregoSafeRegister(&xSourceGLibType, libs, "g_source_get_type") | |
| 2470 | + | ||
| 2471 | + | core.PuregoSafeRegister(&xNewSource, libs, "g_source_new") | |
| 2472 | + | ||
| 2473 | + | core.PuregoSafeRegister(&xSourceAddChildSource, libs, "g_source_add_child_source") | |
| 2474 | + | core.PuregoSafeRegister(&xSourceAddPoll, libs, "g_source_add_poll") | |
| 2475 | + | core.PuregoSafeRegister(&xSourceAddUnixFd, libs, "g_source_add_unix_fd") | |
| 2476 | + | core.PuregoSafeRegister(&xSourceAttach, libs, "g_source_attach") | |
| 2477 | + | core.PuregoSafeRegister(&xSourceDestroy, libs, "g_source_destroy") | |
| 2478 | + | core.PuregoSafeRegister(&xSourceDupContext, libs, "g_source_dup_context") | |
| 2479 | + | core.PuregoSafeRegister(&xSourceGetCanRecurse, libs, "g_source_get_can_recurse") | |
| 2480 | + | core.PuregoSafeRegister(&xSourceGetContext, libs, "g_source_get_context") | |
| 2481 | + | core.PuregoSafeRegister(&xSourceGetCurrentTime, libs, "g_source_get_current_time") | |
| 2482 | + | core.PuregoSafeRegister(&xSourceGetId, libs, "g_source_get_id") | |
| 2483 | + | core.PuregoSafeRegister(&xSourceGetName, libs, "g_source_get_name") | |
| 2484 | + | core.PuregoSafeRegister(&xSourceGetPriority, libs, "g_source_get_priority") | |
| 2485 | + | core.PuregoSafeRegister(&xSourceGetReadyTime, libs, "g_source_get_ready_time") | |
| 2486 | + | core.PuregoSafeRegister(&xSourceGetTime, libs, "g_source_get_time") | |
| 2487 | + | core.PuregoSafeRegister(&xSourceIsDestroyed, libs, "g_source_is_destroyed") | |
| 2488 | + | core.PuregoSafeRegister(&xSourceModifyUnixFd, libs, "g_source_modify_unix_fd") | |
| 2489 | + | core.PuregoSafeRegister(&xSourceQueryUnixFd, libs, "g_source_query_unix_fd") | |
| 2490 | + | core.PuregoSafeRegister(&xSourceRef, libs, "g_source_ref") | |
| 2491 | + | core.PuregoSafeRegister(&xSourceRemoveChildSource, libs, "g_source_remove_child_source") | |
| 2492 | + | core.PuregoSafeRegister(&xSourceRemovePoll, libs, "g_source_remove_poll") | |
| 2493 | + | core.PuregoSafeRegister(&xSourceRemoveUnixFd, libs, "g_source_remove_unix_fd") | |
| 2494 | + | core.PuregoSafeRegister(&xSourceSetCallback, libs, "g_source_set_callback") | |
| 2495 | + | core.PuregoSafeRegister(&xSourceSetCallbackIndirect, libs, "g_source_set_callback_indirect") | |
| 2496 | + | core.PuregoSafeRegister(&xSourceSetCanRecurse, libs, "g_source_set_can_recurse") | |
| 2497 | + | core.PuregoSafeRegister(&xSourceSetDisposeFunction, libs, "g_source_set_dispose_function") | |
| 2498 | + | core.PuregoSafeRegister(&xSourceSetFuncs, libs, "g_source_set_funcs") | |
| 2499 | + | core.PuregoSafeRegister(&xSourceSetName, libs, "g_source_set_name") | |
| 2500 | + | core.PuregoSafeRegister(&xSourceSetPriority, libs, "g_source_set_priority") | |
| 2501 | + | core.PuregoSafeRegister(&xSourceSetReadyTime, libs, "g_source_set_ready_time") | |
| 2502 | + | core.PuregoSafeRegister(&xSourceSetStaticName, libs, "g_source_set_static_name") | |
| 2503 | + | core.PuregoSafeRegister(&xSourceUnref, libs, "g_source_unref") | |
| 2568 | 2504 | } | |
| @@ -105,7 +105,6 @@ type MainContext struct { | |||||
| 105 | var xMainContextGLibType func() types.GType | 105 | var xMainContextGLibType func() types.GType | ||
| 106 | 106 | ||||
| 107 | func MainContextGLibType() types.GType { | 107 | func MainContextGLibType() types.GType { | ||
| 108 | - | core.LazyRegister(&xMainContextGLibType, "GLIB", "g_main_context_get_type", false) | |||
| 109 | return xMainContextGLibType() | 108 | return xMainContextGLibType() | ||
| 110 | } | 109 | } | ||
| 111 | 110 | ||||
| @@ -125,8 +124,6 @@ var xNewMainContext func() uintptr | |||||
| 125 | 124 | ||||
| 126 | // Creates a new [struct@GLib.MainContext] structure. | 125 | // Creates a new [struct@GLib.MainContext] structure. | ||
| 127 | func NewMainContext() *MainContext { | 126 | func NewMainContext() *MainContext { | ||
| 128 | - | core.LazyRegister(&xNewMainContext, "GLIB", "g_main_context_new", false) | |||
| 129 | - | ||||
| 130 | cret := xNewMainContext() | 127 | cret := xNewMainContext() | ||
| 131 | if cret == 0 { | 128 | if cret == 0 { | ||
| 132 | return nil | 129 | return nil | ||
| @@ -138,8 +135,6 @@ var xNewMainContextWithFlags func(MainContextFlags) uintptr | |||||
| 138 | 135 | ||||
| 139 | // Creates a new [struct@GLib.MainContext] structure. | 136 | // Creates a new [struct@GLib.MainContext] structure. | ||
| 140 | func NewMainContextWithFlags(FlagsVar MainContextFlags) *MainContext { | 137 | func NewMainContextWithFlags(FlagsVar MainContextFlags) *MainContext { | ||
| 141 | - | core.LazyRegister(&xNewMainContextWithFlags, "GLIB", "g_main_context_new_with_flags", false) | |||
| 142 | - | ||||
| 143 | cret := xNewMainContextWithFlags(FlagsVar) | 138 | cret := xNewMainContextWithFlags(FlagsVar) | ||
| 144 | if cret == 0 { | 139 | if cret == 0 { | ||
| 145 | return nil | 140 | return nil | ||
| @@ -165,8 +160,6 @@ var xMainContextAcquire func(uintptr) bool | |||||
| 165 | // Since 2.76 @context can be `NULL` to use the global-default | 160 | // Since 2.76 @context can be `NULL` to use the global-default | ||
| 166 | // main context. | 161 | // main context. | ||
| 167 | func (x *MainContext) Acquire() bool { | 162 | func (x *MainContext) Acquire() bool { | ||
| 168 | - | core.LazyRegister(&xMainContextAcquire, "GLIB", "g_main_context_acquire", false) | |||
| 169 | - | ||||
| 170 | cret := xMainContextAcquire(x.GoPointer()) | 163 | cret := xMainContextAcquire(x.GoPointer()) | ||
| 171 | return cret | 164 | return cret | ||
| 172 | } | 165 | } | ||
| @@ -179,8 +172,6 @@ var xMainContextAddPoll func(uintptr, *PollFD, int) | |||||
| 179 | // This will very seldom be used directly. Instead | 172 | // This will very seldom be used directly. Instead | ||
| 180 | // a typical event source will use `g_source_add_unix_fd()` instead. | 173 | // a typical event source will use `g_source_add_unix_fd()` instead. | ||
| 181 | func (x *MainContext) AddPoll(FdVar *PollFD, PriorityVar int) { | 174 | func (x *MainContext) AddPoll(FdVar *PollFD, PriorityVar int) { | ||
| 182 | - | core.LazyRegister(&xMainContextAddPoll, "GLIB", "g_main_context_add_poll", false) | |||
| 183 | - | ||||
| 184 | xMainContextAddPoll(x.GoPointer(), FdVar, PriorityVar) | 175 | xMainContextAddPoll(x.GoPointer(), FdVar, PriorityVar) | ||
| 185 | } | 176 | } | ||
| 186 | 177 | ||||
| @@ -199,8 +190,6 @@ var xMainContextCheck func(uintptr, int, []PollFD, int) bool | |||||
| 199 | // Since 2.76 @context can be `NULL` to use the global-default | 190 | // Since 2.76 @context can be `NULL` to use the global-default | ||
| 200 | // main context. | 191 | // main context. | ||
| 201 | func (x *MainContext) Check(MaxPriorityVar int, FdsVar []PollFD, NFdsVar int) bool { | 192 | func (x *MainContext) Check(MaxPriorityVar int, FdsVar []PollFD, NFdsVar int) bool { | ||
| 202 | - | core.LazyRegister(&xMainContextCheck, "GLIB", "g_main_context_check", false) | |||
| 203 | - | ||||
| 204 | cret := xMainContextCheck(x.GoPointer(), MaxPriorityVar, FdsVar, NFdsVar) | 193 | cret := xMainContextCheck(x.GoPointer(), MaxPriorityVar, FdsVar, NFdsVar) | ||
| 205 | return cret | 194 | return cret | ||
| 206 | } | 195 | } | ||
| @@ -215,8 +204,6 @@ var xMainContextDispatch func(uintptr) | |||||
| 215 | // Since 2.76 @context can be `NULL` to use the global-default | 204 | // Since 2.76 @context can be `NULL` to use the global-default | ||
| 216 | // main context. | 205 | // main context. | ||
| 217 | func (x *MainContext) Dispatch() { | 206 | func (x *MainContext) Dispatch() { | ||
| 218 | - | core.LazyRegister(&xMainContextDispatch, "GLIB", "g_main_context_dispatch", false) | |||
| 219 | - | ||||
| 220 | xMainContextDispatch(x.GoPointer()) | 207 | xMainContextDispatch(x.GoPointer()) | ||
| 221 | } | 208 | } | ||
| 222 | 209 | ||||
| @@ -227,8 +214,6 @@ var xMainContextFindSourceByFuncsUserData func(uintptr, *SourceFuncs, uintptr) u | |||||
| 227 | // If multiple sources exist with the same source function and user data, | 214 | // If multiple sources exist with the same source function and user data, | ||
| 228 | // the first one found will be returned. | 215 | // the first one found will be returned. | ||
| 229 | func (x *MainContext) FindSourceByFuncsUserData(FuncsVar *SourceFuncs, UserDataVar uintptr) *Source { | 216 | func (x *MainContext) FindSourceByFuncsUserData(FuncsVar *SourceFuncs, UserDataVar uintptr) *Source { | ||
| 230 | - | core.LazyRegister(&xMainContextFindSourceByFuncsUserData, "GLIB", "g_main_context_find_source_by_funcs_user_data", false) | |||
| 231 | - | ||||
| 232 | cret := xMainContextFindSourceByFuncsUserData(x.GoPointer(), FuncsVar, UserDataVar) | 217 | cret := xMainContextFindSourceByFuncsUserData(x.GoPointer(), FuncsVar, UserDataVar) | ||
| 233 | if cret == 0 { | 218 | if cret == 0 { | ||
| 234 | return nil | 219 | return nil | ||
| @@ -251,8 +236,6 @@ var xMainContextFindSourceById func(uintptr, uint) uintptr | |||||
| 251 | // been reissued, leading to the operation being performed against the | 236 | // been reissued, leading to the operation being performed against the | ||
| 252 | // wrong source. | 237 | // wrong source. | ||
| 253 | func (x *MainContext) FindSourceById(SourceIdVar uint) *Source { | 238 | func (x *MainContext) FindSourceById(SourceIdVar uint) *Source { | ||
| 254 | - | core.LazyRegister(&xMainContextFindSourceById, "GLIB", "g_main_context_find_source_by_id", false) | |||
| 255 | - | ||||
| 256 | cret := xMainContextFindSourceById(x.GoPointer(), SourceIdVar) | 239 | cret := xMainContextFindSourceById(x.GoPointer(), SourceIdVar) | ||
| 257 | if cret == 0 { | 240 | if cret == 0 { | ||
| 258 | return nil | 241 | return nil | ||
| @@ -267,8 +250,6 @@ var xMainContextFindSourceByUserData func(uintptr, uintptr) uintptr | |||||
| 267 | // If multiple sources exist with the same user data, the first | 250 | // If multiple sources exist with the same user data, the first | ||
| 268 | // one found will be returned. | 251 | // one found will be returned. | ||
| 269 | func (x *MainContext) FindSourceByUserData(UserDataVar uintptr) *Source { | 252 | func (x *MainContext) FindSourceByUserData(UserDataVar uintptr) *Source { | ||
| 270 | - | core.LazyRegister(&xMainContextFindSourceByUserData, "GLIB", "g_main_context_find_source_by_user_data", false) | |||
| 271 | - | ||||
| 272 | cret := xMainContextFindSourceByUserData(x.GoPointer(), UserDataVar) | 253 | cret := xMainContextFindSourceByUserData(x.GoPointer(), UserDataVar) | ||
| 273 | if cret == 0 { | 254 | if cret == 0 { | ||
| 274 | return nil | 255 | return nil | ||
| @@ -280,8 +261,6 @@ var xMainContextGetPollFunc func(uintptr) uintptr | |||||
| 280 | 261 | ||||
| 281 | // Gets the poll function set by [method@GLib.MainContext.set_poll_func]. | 262 | // Gets the poll function set by [method@GLib.MainContext.set_poll_func]. | ||
| 282 | func (x *MainContext) GetPollFunc() uintptr { | 263 | func (x *MainContext) GetPollFunc() uintptr { | ||
| 283 | - | core.LazyRegister(&xMainContextGetPollFunc, "GLIB", "g_main_context_get_poll_func", false) | |||
| 284 | - | ||||
| 285 | cret := xMainContextGetPollFunc(x.GoPointer()) | 264 | cret := xMainContextGetPollFunc(x.GoPointer()) | ||
| 286 | return cret | 265 | return cret | ||
| 287 | } | 266 | } | ||
| @@ -310,8 +289,6 @@ var xMainContextInvoke func(uintptr, uintptr, uintptr) | |||||
| 310 | // [const@GLib.SOURCE_REMOVE]. If it returns [const@GLib.SOURCE_CONTINUE], it | 289 | // [const@GLib.SOURCE_REMOVE]. If it returns [const@GLib.SOURCE_CONTINUE], it | ||
| 311 | // will be continuously run in a loop (and may prevent this call from returning). | 290 | // will be continuously run in a loop (and may prevent this call from returning). | ||
| 312 | func (x *MainContext) Invoke(FunctionVar *SourceFunc, DataVar uintptr) { | 291 | func (x *MainContext) Invoke(FunctionVar *SourceFunc, DataVar uintptr) { | ||
| 313 | - | core.LazyRegister(&xMainContextInvoke, "GLIB", "g_main_context_invoke", false) | |||
| 314 | - | ||||
| 315 | xMainContextInvoke(x.GoPointer(), NewCallback(FunctionVar), DataVar) | 292 | xMainContextInvoke(x.GoPointer(), NewCallback(FunctionVar), DataVar) | ||
| 316 | } | 293 | } | ||
| 317 | 294 | ||||
| @@ -328,8 +305,6 @@ var xMainContextInvokeFull func(uintptr, int, uintptr, uintptr, uintptr) | |||||
| 328 | // The @notify function should not assume that it is called from any particular | 305 | // The @notify function should not assume that it is called from any particular | ||
| 329 | // thread or with any particular context acquired. | 306 | // thread or with any particular context acquired. | ||
| 330 | func (x *MainContext) InvokeFull(PriorityVar int, FunctionVar *SourceFunc, DataVar uintptr, NotifyVar *DestroyNotify) { | 307 | func (x *MainContext) InvokeFull(PriorityVar int, FunctionVar *SourceFunc, DataVar uintptr, NotifyVar *DestroyNotify) { | ||
| 331 | - | core.LazyRegister(&xMainContextInvokeFull, "GLIB", "g_main_context_invoke_full", false) | |||
| 332 | - | ||||
| 333 | xMainContextInvokeFull(x.GoPointer(), PriorityVar, NewCallback(FunctionVar), DataVar, NewCallbackNullable(NotifyVar)) | 308 | xMainContextInvokeFull(x.GoPointer(), PriorityVar, NewCallback(FunctionVar), DataVar, NewCallbackNullable(NotifyVar)) | ||
| 334 | } | 309 | } | ||
| 335 | 310 | ||||
| @@ -342,8 +317,6 @@ var xMainContextIsOwner func(uintptr) bool | |||||
| 342 | // know before waiting on another thread that may be | 317 | // know before waiting on another thread that may be | ||
| 343 | // blocking to get ownership of @context. | 318 | // blocking to get ownership of @context. | ||
| 344 | func (x *MainContext) IsOwner() bool { | 319 | func (x *MainContext) IsOwner() bool { | ||
| 345 | - | core.LazyRegister(&xMainContextIsOwner, "GLIB", "g_main_context_is_owner", false) | |||
| 346 | - | ||||
| 347 | cret := xMainContextIsOwner(x.GoPointer()) | 320 | cret := xMainContextIsOwner(x.GoPointer()) | ||
| 348 | return cret | 321 | return cret | ||
| 349 | } | 322 | } | ||
| @@ -364,8 +337,6 @@ var xMainContextIteration func(uintptr, bool) bool | |||||
| 364 | // [method@GLib.MainContext.iteration] to return false, since the wait may | 337 | // [method@GLib.MainContext.iteration] to return false, since the wait may | ||
| 365 | // be interrupted for other reasons than an event source becoming ready. | 338 | // be interrupted for other reasons than an event source becoming ready. | ||
| 366 | func (x *MainContext) Iteration(MayBlockVar bool) bool { | 339 | func (x *MainContext) Iteration(MayBlockVar bool) bool { | ||
| 367 | - | core.LazyRegister(&xMainContextIteration, "GLIB", "g_main_context_iteration", false) | |||
| 368 | - | ||||
| 369 | cret := xMainContextIteration(x.GoPointer(), MayBlockVar) | 340 | cret := xMainContextIteration(x.GoPointer(), MayBlockVar) | ||
| 370 | return cret | 341 | return cret | ||
| 371 | } | 342 | } | ||
| @@ -374,8 +345,6 @@ var xMainContextPending func(uintptr) bool | |||||
| 374 | 345 | ||||
| 375 | // Checks if any sources have pending events for the given context. | 346 | // Checks if any sources have pending events for the given context. | ||
| 376 | func (x *MainContext) Pending() bool { | 347 | func (x *MainContext) Pending() bool { | ||
| 377 | - | core.LazyRegister(&xMainContextPending, "GLIB", "g_main_context_pending", false) | |||
| 378 | - | ||||
| 379 | cret := xMainContextPending(x.GoPointer()) | 348 | cret := xMainContextPending(x.GoPointer()) | ||
| 380 | return cret | 349 | return cret | ||
| 381 | } | 350 | } | ||
| @@ -385,8 +354,6 @@ var xMainContextPopThreadDefault func(uintptr) | |||||
| 385 | // Pops @context off the thread-default context stack (verifying that | 354 | // Pops @context off the thread-default context stack (verifying that | ||
| 386 | // it was on the top of the stack). | 355 | // it was on the top of the stack). | ||
| 387 | func (x *MainContext) PopThreadDefault() { | 356 | func (x *MainContext) PopThreadDefault() { | ||
| 388 | - | core.LazyRegister(&xMainContextPopThreadDefault, "GLIB", "g_main_context_pop_thread_default", false) | |||
| 389 | - | ||||
| 390 | xMainContextPopThreadDefault(x.GoPointer()) | 357 | xMainContextPopThreadDefault(x.GoPointer()) | ||
| 391 | } | 358 | } | ||
| 392 | 359 | ||||
| @@ -400,8 +367,6 @@ var xMainContextPrepare func(uintptr, *int) bool | |||||
| 400 | // You must have successfully acquired the context with | 367 | // You must have successfully acquired the context with | ||
| 401 | // [method@GLib.MainContext.acquire] before you may call this function. | 368 | // [method@GLib.MainContext.acquire] before you may call this function. | ||
| 402 | func (x *MainContext) Prepare(PriorityVar *int) bool { | 369 | func (x *MainContext) Prepare(PriorityVar *int) bool { | ||
| 403 | - | core.LazyRegister(&xMainContextPrepare, "GLIB", "g_main_context_prepare", false) | |||
| 404 | - | ||||
| 405 | cret := xMainContextPrepare(x.GoPointer(), PriorityVar) | 370 | cret := xMainContextPrepare(x.GoPointer(), PriorityVar) | ||
| 406 | return cret | 371 | return cret | ||
| 407 | } | 372 | } | ||
| @@ -448,8 +413,6 @@ var xMainContextPushThreadDefault func(uintptr) | |||||
| 448 | // handle being used from a thread with a thread-default context. For example, | 413 | // handle being used from a thread with a thread-default context. For example, | ||
| 449 | // see `g_file_supports_thread_contexts()`. | 414 | // see `g_file_supports_thread_contexts()`. | ||
| 450 | func (x *MainContext) PushThreadDefault() { | 415 | func (x *MainContext) PushThreadDefault() { | ||
| 451 | - | core.LazyRegister(&xMainContextPushThreadDefault, "GLIB", "g_main_context_push_thread_default", false) | |||
| 452 | - | ||||
| 453 | xMainContextPushThreadDefault(x.GoPointer()) | 416 | xMainContextPushThreadDefault(x.GoPointer()) | ||
| 454 | } | 417 | } | ||
| 455 | 418 | ||||
| @@ -496,8 +459,6 @@ var xMainContextPusherNew func(uintptr) *MainContextPusher | |||||
| 496 | // | 459 | // | ||
| 497 | // ]| | 460 | // ]| | ||
| 498 | func (x *MainContext) PusherNew() *MainContextPusher { | 461 | func (x *MainContext) PusherNew() *MainContextPusher { | ||
| 499 | - | core.LazyRegister(&xMainContextPusherNew, "GLIB", "g_main_context_pusher_new", false) | |||
| 500 | - | ||||
| 501 | cret := xMainContextPusherNew(x.GoPointer()) | 462 | cret := xMainContextPusherNew(x.GoPointer()) | ||
| 502 | return cret | 463 | return cret | ||
| 503 | } | 464 | } | ||
| @@ -514,8 +475,6 @@ var xMainContextQuery func(uintptr, int, *int, *[]PollFD, int) int | |||||
| 514 | // You must have successfully acquired the context with | 475 | // You must have successfully acquired the context with | ||
| 515 | // [method@GLib.MainContext.acquire] before you may call this function. | 476 | // [method@GLib.MainContext.acquire] before you may call this function. | ||
| 516 | func (x *MainContext) Query(MaxPriorityVar int, TimeoutVar *int, FdsVar *[]PollFD, NFdsVar int) int { | 477 | func (x *MainContext) Query(MaxPriorityVar int, TimeoutVar *int, FdsVar *[]PollFD, NFdsVar int) int { | ||
| 517 | - | core.LazyRegister(&xMainContextQuery, "GLIB", "g_main_context_query", false) | |||
| 518 | - | ||||
| 519 | cret := xMainContextQuery(x.GoPointer(), MaxPriorityVar, TimeoutVar, FdsVar, NFdsVar) | 478 | cret := xMainContextQuery(x.GoPointer(), MaxPriorityVar, TimeoutVar, FdsVar, NFdsVar) | ||
| 520 | return cret | 479 | return cret | ||
| 521 | } | 480 | } | ||
| @@ -524,8 +483,6 @@ var xMainContextRef func(uintptr) uintptr | |||||
| 524 | 483 | ||||
| 525 | // Increases the reference count on a [struct@GLib.MainContext] object by one. | 484 | // Increases the reference count on a [struct@GLib.MainContext] object by one. | ||
| 526 | func (x *MainContext) Ref() *MainContext { | 485 | func (x *MainContext) Ref() *MainContext { | ||
| 527 | - | core.LazyRegister(&xMainContextRef, "GLIB", "g_main_context_ref", false) | |||
| 528 | - | ||||
| 529 | cret := xMainContextRef(x.GoPointer()) | 486 | cret := xMainContextRef(x.GoPointer()) | ||
| 530 | if cret == 0 { | 487 | if cret == 0 { | ||
| 531 | return nil | 488 | return nil | ||
| @@ -545,8 +502,6 @@ var xMainContextRelease func(uintptr) | |||||
| 545 | // You must have successfully acquired the context with | 502 | // You must have successfully acquired the context with | ||
| 546 | // [method@GLib.MainContext.acquire] before you may call this function. | 503 | // [method@GLib.MainContext.acquire] before you may call this function. | ||
| 547 | func (x *MainContext) Release() { | 504 | func (x *MainContext) Release() { | ||
| 548 | - | core.LazyRegister(&xMainContextRelease, "GLIB", "g_main_context_release", false) | |||
| 549 | - | ||||
| 550 | xMainContextRelease(x.GoPointer()) | 505 | xMainContextRelease(x.GoPointer()) | ||
| 551 | } | 506 | } | ||
| 552 | 507 | ||||
| @@ -555,8 +510,6 @@ var xMainContextRemovePoll func(uintptr, *PollFD) | |||||
| 555 | // Removes file descriptor from the set of file descriptors to be | 510 | // Removes file descriptor from the set of file descriptors to be | ||
| 556 | // polled for a particular context. | 511 | // polled for a particular context. | ||
| 557 | func (x *MainContext) RemovePoll(FdVar *PollFD) { | 512 | func (x *MainContext) RemovePoll(FdVar *PollFD) { | ||
| 558 | - | core.LazyRegister(&xMainContextRemovePoll, "GLIB", "g_main_context_remove_poll", false) | |||
| 559 | - | ||||
| 560 | xMainContextRemovePoll(x.GoPointer(), FdVar) | 513 | xMainContextRemovePoll(x.GoPointer(), FdVar) | ||
| 561 | } | 514 | } | ||
| 562 | 515 | ||||
| @@ -571,8 +524,6 @@ var xMainContextSetPollFunc func(uintptr, uintptr) | |||||
| 571 | // This function could possibly be used to integrate the GLib event | 524 | // This function could possibly be used to integrate the GLib event | ||
| 572 | // loop with an external event loop. | 525 | // loop with an external event loop. | ||
| 573 | func (x *MainContext) SetPollFunc(FuncVar *PollFunc) { | 526 | func (x *MainContext) SetPollFunc(FuncVar *PollFunc) { | ||
| 574 | - | core.LazyRegister(&xMainContextSetPollFunc, "GLIB", "g_main_context_set_poll_func", false) | |||
| 575 | - | ||||
| 576 | xMainContextSetPollFunc(x.GoPointer(), NewCallback(FuncVar)) | 527 | xMainContextSetPollFunc(x.GoPointer(), NewCallback(FuncVar)) | ||
| 577 | } | 528 | } | ||
| 578 | 529 | ||||
| @@ -582,8 +533,6 @@ var xMainContextUnref func(uintptr) | |||||
| 582 | // If | 533 | // If | ||
| 583 | // the result is zero, free the context and free all associated memory. | 534 | // the result is zero, free the context and free all associated memory. | ||
| 584 | func (x *MainContext) Unref() { | 535 | func (x *MainContext) Unref() { | ||
| 585 | - | core.LazyRegister(&xMainContextUnref, "GLIB", "g_main_context_unref", false) | |||
| 586 | - | ||||
| 587 | xMainContextUnref(x.GoPointer()) | 536 | xMainContextUnref(x.GoPointer()) | ||
| 588 | } | 537 | } | ||
| 589 | 538 | ||||
| @@ -597,8 +546,6 @@ var xMainContextWait func(uintptr, *Cond, *Mutex) bool | |||||
| 597 | // that owner releases ownership or until @cond is signaled, then | 546 | // that owner releases ownership or until @cond is signaled, then | ||
| 598 | // try again (once) to become the owner. | 547 | // try again (once) to become the owner. | ||
| 599 | func (x *MainContext) Wait(CondVar *Cond, MutexVar *Mutex) bool { | 548 | func (x *MainContext) Wait(CondVar *Cond, MutexVar *Mutex) bool { | ||
| 600 | - | core.LazyRegister(&xMainContextWait, "GLIB", "g_main_context_wait", false) | |||
| 601 | - | ||||
| 602 | cret := xMainContextWait(x.GoPointer(), CondVar, MutexVar) | 549 | cret := xMainContextWait(x.GoPointer(), CondVar, MutexVar) | ||
| 603 | return cret | 550 | return cret | ||
| 604 | } | 551 | } | ||
| @@ -641,8 +588,6 @@ var xMainContextWakeup func(uintptr) | |||||
| 641 | // | 588 | // | ||
| 642 | // ``` | 589 | // ``` | ||
| 643 | func (x *MainContext) Wakeup() { | 590 | func (x *MainContext) Wakeup() { | ||
| 644 | - | core.LazyRegister(&xMainContextWakeup, "GLIB", "g_main_context_wakeup", false) | |||
| 645 | - | ||||
| 646 | xMainContextWakeup(x.GoPointer()) | 591 | xMainContextWakeup(x.GoPointer()) | ||
| 647 | } | 592 | } | ||
| 648 | 593 | ||||
| @@ -655,7 +600,6 @@ type MainLoop struct { | |||||
| 655 | var xMainLoopGLibType func() types.GType | 600 | var xMainLoopGLibType func() types.GType | ||
| 656 | 601 | ||||
| 657 | func MainLoopGLibType() types.GType { | 602 | func MainLoopGLibType() types.GType { | ||
| 658 | - | core.LazyRegister(&xMainLoopGLibType, "GLIB", "g_main_loop_get_type", false) | |||
| 659 | return xMainLoopGLibType() | 603 | return xMainLoopGLibType() | ||
| 660 | } | 604 | } | ||
| 661 | 605 | ||||
| @@ -675,8 +619,6 @@ var xNewMainLoop func(*MainContext, bool) uintptr | |||||
| 675 | 619 | ||||
| 676 | // Creates a new [struct@GLib.MainLoop] structure. | 620 | // Creates a new [struct@GLib.MainLoop] structure. | ||
| 677 | func NewMainLoop(ContextVar *MainContext, IsRunningVar bool) *MainLoop { | 621 | func NewMainLoop(ContextVar *MainContext, IsRunningVar bool) *MainLoop { | ||
| 678 | - | core.LazyRegister(&xNewMainLoop, "GLIB", "g_main_loop_new", false) | |||
| 679 | - | ||||
| 680 | cret := xNewMainLoop(ContextVar, IsRunningVar) | 622 | cret := xNewMainLoop(ContextVar, IsRunningVar) | ||
| 681 | if cret == 0 { | 623 | if cret == 0 { | ||
| 682 | return nil | 624 | return nil | ||
| @@ -688,8 +630,6 @@ var xMainLoopGetContext func(uintptr) uintptr | |||||
| 688 | 630 | ||||
| 689 | // Returns the [struct@GLib.MainContext] of @loop. | 631 | // Returns the [struct@GLib.MainContext] of @loop. | ||
| 690 | func (x *MainLoop) GetContext() *MainContext { | 632 | func (x *MainLoop) GetContext() *MainContext { | ||
| 691 | - | core.LazyRegister(&xMainLoopGetContext, "GLIB", "g_main_loop_get_context", false) | |||
| 692 | - | ||||
| 693 | cret := xMainLoopGetContext(x.GoPointer()) | 633 | cret := xMainLoopGetContext(x.GoPointer()) | ||
| 694 | if cret == 0 { | 634 | if cret == 0 { | ||
| 695 | return nil | 635 | return nil | ||
| @@ -702,8 +642,6 @@ var xMainLoopIsRunning func(uintptr) bool | |||||
| 702 | // Checks to see if the main loop is currently being run via | 642 | // Checks to see if the main loop is currently being run via | ||
| 703 | // [method@GLib.MainLoop.run]. | 643 | // [method@GLib.MainLoop.run]. | ||
| 704 | func (x *MainLoop) IsRunning() bool { | 644 | func (x *MainLoop) IsRunning() bool { | ||
| 705 | - | core.LazyRegister(&xMainLoopIsRunning, "GLIB", "g_main_loop_is_running", false) | |||
| 706 | - | ||||
| 707 | cret := xMainLoopIsRunning(x.GoPointer()) | 645 | cret := xMainLoopIsRunning(x.GoPointer()) | ||
| 708 | return cret | 646 | return cret | ||
| 709 | } | 647 | } | ||
| @@ -716,8 +654,6 @@ var xMainLoopQuit func(uintptr) | |||||
| 716 | // Note that sources that have already been dispatched when | 654 | // Note that sources that have already been dispatched when | ||
| 717 | // [method@GLib.MainLoop.quit] is called will still be executed. | 655 | // [method@GLib.MainLoop.quit] is called will still be executed. | ||
| 718 | func (x *MainLoop) Quit() { | 656 | func (x *MainLoop) Quit() { | ||
| 719 | - | core.LazyRegister(&xMainLoopQuit, "GLIB", "g_main_loop_quit", false) | |||
| 720 | - | ||||
| 721 | xMainLoopQuit(x.GoPointer()) | 657 | xMainLoopQuit(x.GoPointer()) | ||
| 722 | } | 658 | } | ||
| 723 | 659 | ||||
| @@ -725,8 +661,6 @@ var xMainLoopRef func(uintptr) uintptr | |||||
| 725 | 661 | ||||
| 726 | // Increases the reference count on a [struct@GLib.MainLoop] object by one. | 662 | // Increases the reference count on a [struct@GLib.MainLoop] object by one. | ||
| 727 | func (x *MainLoop) Ref() *MainLoop { | 663 | func (x *MainLoop) Ref() *MainLoop { | ||
| 728 | - | core.LazyRegister(&xMainLoopRef, "GLIB", "g_main_loop_ref", false) | |||
| 729 | - | ||||
| 730 | cret := xMainLoopRef(x.GoPointer()) | 664 | cret := xMainLoopRef(x.GoPointer()) | ||
| 731 | if cret == 0 { | 665 | if cret == 0 { | ||
| 732 | return nil | 666 | return nil | ||
| @@ -742,8 +676,6 @@ var xMainLoopRun func(uintptr) | |||||
| 742 | // it will process events from the loop, otherwise it will | 676 | // it will process events from the loop, otherwise it will | ||
| 743 | // simply wait. | 677 | // simply wait. | ||
| 744 | func (x *MainLoop) Run() { | 678 | func (x *MainLoop) Run() { | ||
| 745 | - | core.LazyRegister(&xMainLoopRun, "GLIB", "g_main_loop_run", false) | |||
| 746 | - | ||||
| 747 | xMainLoopRun(x.GoPointer()) | 679 | xMainLoopRun(x.GoPointer()) | ||
| 748 | } | 680 | } | ||
| 749 | 681 | ||||
| @@ -753,8 +685,6 @@ var xMainLoopUnref func(uintptr) | |||||
| 753 | // | 685 | // | ||
| 754 | // If the result is zero, the loop and all associated memory are freed. | 686 | // If the result is zero, the loop and all associated memory are freed. | ||
| 755 | func (x *MainLoop) Unref() { | 687 | func (x *MainLoop) Unref() { | ||
| 756 | - | core.LazyRegister(&xMainLoopUnref, "GLIB", "g_main_loop_unref", false) | |||
| 757 | - | ||||
| 758 | xMainLoopUnref(x.GoPointer()) | 688 | xMainLoopUnref(x.GoPointer()) | ||
| 759 | } | 689 | } | ||
| 760 | 690 | ||||
| @@ -793,7 +723,6 @@ type Source struct { | |||||
| 793 | var xSourceGLibType func() types.GType | 723 | var xSourceGLibType func() types.GType | ||
| 794 | 724 | ||||
| 795 | func SourceGLibType() types.GType { | 725 | func SourceGLibType() types.GType { | ||
| 796 | - | core.LazyRegister(&xSourceGLibType, "GLIB", "g_source_get_type", false) | |||
| 797 | return xSourceGLibType() | 726 | return xSourceGLibType() | ||
| 798 | } | 727 | } | ||
| 799 | 728 | ||||
| @@ -822,8 +751,6 @@ var xNewSource func(*SourceFuncs, uint) uintptr | |||||
| 822 | // and must be added to one with [method@GLib.Source.attach] before it will be | 751 | // and must be added to one with [method@GLib.Source.attach] before it will be | ||
| 823 | // executed. | 752 | // executed. | ||
| 824 | func NewSource(SourceFuncsVar *SourceFuncs, StructSizeVar uint) *Source { | 753 | func NewSource(SourceFuncsVar *SourceFuncs, StructSizeVar uint) *Source { | ||
| 825 | - | core.LazyRegister(&xNewSource, "GLIB", "g_source_new", false) | |||
| 826 | - | ||||
| 827 | cret := xNewSource(SourceFuncsVar, StructSizeVar) | 754 | cret := xNewSource(SourceFuncsVar, StructSizeVar) | ||
| 828 | if cret == 0 { | 755 | if cret == 0 { | ||
| 829 | return nil | 756 | return nil | ||
| @@ -853,8 +780,6 @@ var xSourceAddChildSource func(uintptr, *Source) | |||||
| 853 | // This API is only intended to be used by implementations of [struct@GLib.Source]. | 780 | // This API is only intended to be used by implementations of [struct@GLib.Source]. | ||
| 854 | // Do not call this API on a [struct@GLib.Source] that you did not create. | 781 | // Do not call this API on a [struct@GLib.Source] that you did not create. | ||
| 855 | func (x *Source) AddChildSource(ChildSourceVar *Source) { | 782 | func (x *Source) AddChildSource(ChildSourceVar *Source) { | ||
| 856 | - | core.LazyRegister(&xSourceAddChildSource, "GLIB", "g_source_add_child_source", false) | |||
| 857 | - | ||||
| 858 | xSourceAddChildSource(x.GoPointer(), ChildSourceVar) | 783 | xSourceAddChildSource(x.GoPointer(), ChildSourceVar) | ||
| 859 | } | 784 | } | ||
| 860 | 785 | ||||
| @@ -875,8 +800,6 @@ var xSourceAddPoll func(uintptr, *PollFD) | |||||
| 875 | // main loop iteration. Newly-written event sources should try to use | 800 | // main loop iteration. Newly-written event sources should try to use | ||
| 876 | // `g_source_add_unix_fd()` instead of this API. | 801 | // `g_source_add_unix_fd()` instead of this API. | ||
| 877 | func (x *Source) AddPoll(FdVar *PollFD) { | 802 | func (x *Source) AddPoll(FdVar *PollFD) { | ||
| 878 | - | core.LazyRegister(&xSourceAddPoll, "GLIB", "g_source_add_poll", false) | |||
| 879 | - | ||||
| 880 | xSourceAddPoll(x.GoPointer(), FdVar) | 803 | xSourceAddPoll(x.GoPointer(), FdVar) | ||
| 881 | } | 804 | } | ||
| 882 | 805 | ||||
| @@ -896,8 +819,6 @@ var xSourceAddUnixFd func(uintptr, int, IOCondition) uintptr | |||||
| 896 | // | 819 | // | ||
| 897 | // As the name suggests, this function is not available on Windows. | 820 | // As the name suggests, this function is not available on Windows. | ||
| 898 | func (x *Source) AddUnixFd(FdVar int, EventsVar IOCondition) uintptr { | 821 | func (x *Source) AddUnixFd(FdVar int, EventsVar IOCondition) uintptr { | ||
| 899 | - | core.LazyRegister(&xSourceAddUnixFd, "GLIB", "g_source_add_unix_fd", false) | |||
| 900 | - | ||||
| 901 | cret := xSourceAddUnixFd(x.GoPointer(), FdVar, EventsVar) | 822 | cret := xSourceAddUnixFd(x.GoPointer(), FdVar, EventsVar) | ||
| 902 | return cret | 823 | return cret | ||
| 903 | } | 824 | } | ||
| @@ -912,8 +833,6 @@ var xSourceAttach func(uintptr, *MainContext) uint | |||||
| 912 | // This function is safe to call from any thread, regardless of which thread | 833 | // This function is safe to call from any thread, regardless of which thread | ||
| 913 | // the @context is running in. | 834 | // the @context is running in. | ||
| 914 | func (x *Source) Attach(ContextVar *MainContext) uint { | 835 | func (x *Source) Attach(ContextVar *MainContext) uint { | ||
| 915 | - | core.LazyRegister(&xSourceAttach, "GLIB", "g_source_attach", false) | |||
| 916 | - | ||||
| 917 | cret := xSourceAttach(x.GoPointer(), ContextVar) | 836 | cret := xSourceAttach(x.GoPointer(), ContextVar) | ||
| 918 | return cret | 837 | return cret | ||
| 919 | } | 838 | } | ||
| @@ -938,8 +857,6 @@ var xSourceDestroy func(uintptr) | |||||
| 938 | // [method@GLib.Source.set_callback]. This can mean, that the data’s | 857 | // [method@GLib.Source.set_callback]. This can mean, that the data’s | ||
| 939 | // [callback@GLib.DestroyNotify] gets called right away. | 858 | // [callback@GLib.DestroyNotify] gets called right away. | ||
| 940 | func (x *Source) Destroy() { | 859 | func (x *Source) Destroy() { | ||
| 941 | - | core.LazyRegister(&xSourceDestroy, "GLIB", "g_source_destroy", false) | |||
| 942 | - | ||||
| 943 | xSourceDestroy(x.GoPointer()) | 860 | xSourceDestroy(x.GoPointer()) | ||
| 944 | } | 861 | } | ||
| 945 | 862 | ||||
| @@ -952,8 +869,6 @@ var xSourceDupContext func(uintptr) uintptr | |||||
| 952 | // always call this function on the source returned from | 869 | // always call this function on the source returned from | ||
| 953 | // [func@GLib.main_current_source]. | 870 | // [func@GLib.main_current_source]. | ||
| 954 | func (x *Source) DupContext() *MainContext { | 871 | func (x *Source) DupContext() *MainContext { | ||
| 955 | - | core.LazyRegister(&xSourceDupContext, "GLIB", "g_source_dup_context", false) | |||
| 956 | - | ||||
| 957 | cret := xSourceDupContext(x.GoPointer()) | 872 | cret := xSourceDupContext(x.GoPointer()) | ||
| 958 | if cret == 0 { | 873 | if cret == 0 { | ||
| 959 | return nil | 874 | return nil | ||
| @@ -967,8 +882,6 @@ var xSourceGetCanRecurse func(uintptr) bool | |||||
| 967 | // | 882 | // | ||
| 968 | // See [method@GLib.Source.set_can_recurse]. | 883 | // See [method@GLib.Source.set_can_recurse]. | ||
| 969 | func (x *Source) GetCanRecurse() bool { | 884 | func (x *Source) GetCanRecurse() bool { | ||
| 970 | - | core.LazyRegister(&xSourceGetCanRecurse, "GLIB", "g_source_get_can_recurse", false) | |||
| 971 | - | ||||
| 972 | cret := xSourceGetCanRecurse(x.GoPointer()) | 885 | cret := xSourceGetCanRecurse(x.GoPointer()) | ||
| 973 | return cret | 886 | return cret | ||
| 974 | } | 887 | } | ||
| @@ -988,8 +901,6 @@ var xSourceGetContext func(uintptr) uintptr | |||||
| 988 | // a different thread, then this function is not safe to call and | 901 | // a different thread, then this function is not safe to call and | ||
| 989 | // [method@GLib.Source.dup_context] should be used instead. | 902 | // [method@GLib.Source.dup_context] should be used instead. | ||
| 990 | func (x *Source) GetContext() *MainContext { | 903 | func (x *Source) GetContext() *MainContext { | ||
| 991 | - | core.LazyRegister(&xSourceGetContext, "GLIB", "g_source_get_context", false) | |||
| 992 | - | ||||
| 993 | cret := xSourceGetContext(x.GoPointer()) | 904 | cret := xSourceGetContext(x.GoPointer()) | ||
| 994 | if cret == 0 { | 905 | if cret == 0 { | ||
| 995 | return nil | 906 | return nil | ||
| @@ -1002,8 +913,6 @@ var xSourceGetCurrentTime func(uintptr, *TimeVal) | |||||
| 1002 | // This function ignores @source and is otherwise the same as | 913 | // This function ignores @source and is otherwise the same as | ||
| 1003 | // [func@GLib.get_current_time]. | 914 | // [func@GLib.get_current_time]. | ||
| 1004 | func (x *Source) GetCurrentTime(TimevalVar *TimeVal) { | 915 | func (x *Source) GetCurrentTime(TimevalVar *TimeVal) { | ||
| 1005 | - | core.LazyRegister(&xSourceGetCurrentTime, "GLIB", "g_source_get_current_time", false) | |||
| 1006 | - | ||||
| 1007 | xSourceGetCurrentTime(x.GoPointer(), TimevalVar) | 916 | xSourceGetCurrentTime(x.GoPointer(), TimevalVar) | ||
| 1008 | } | 917 | } | ||
| 1009 | 918 | ||||
| @@ -1022,8 +931,6 @@ var xSourceGetId func(uintptr) uint | |||||
| 1022 | // undefined behavior. The ID returned is unique within the | 931 | // undefined behavior. The ID returned is unique within the | ||
| 1023 | // [struct@GLib.MainContext] instance passed to [method@GLib.Source.attach]. | 932 | // [struct@GLib.MainContext] instance passed to [method@GLib.Source.attach]. | ||
| 1024 | func (x *Source) GetId() uint { | 933 | func (x *Source) GetId() uint { | ||
| 1025 | - | core.LazyRegister(&xSourceGetId, "GLIB", "g_source_get_id", false) | |||
| 1026 | - | ||||
| 1027 | cret := xSourceGetId(x.GoPointer()) | 934 | cret := xSourceGetId(x.GoPointer()) | ||
| 1028 | return cret | 935 | return cret | ||
| 1029 | } | 936 | } | ||
| @@ -1035,8 +942,6 @@ var xSourceGetName func(uintptr) string | |||||
| 1035 | // The | 942 | // The | ||
| 1036 | // name may be `NULL` if it has never been set with [method@GLib.Source.set_name]. | 943 | // name may be `NULL` if it has never been set with [method@GLib.Source.set_name]. | ||
| 1037 | func (x *Source) GetName() string { | 944 | func (x *Source) GetName() string { | ||
| 1038 | - | core.LazyRegister(&xSourceGetName, "GLIB", "g_source_get_name", false) | |||
| 1039 | - | ||||
| 1040 | cret := xSourceGetName(x.GoPointer()) | 945 | cret := xSourceGetName(x.GoPointer()) | ||
| 1041 | return cret | 946 | return cret | ||
| 1042 | } | 947 | } | ||
| @@ -1045,8 +950,6 @@ var xSourceGetPriority func(uintptr) int | |||||
| 1045 | 950 | ||||
| 1046 | // Gets the priority of a source. | 951 | // Gets the priority of a source. | ||
| 1047 | func (x *Source) GetPriority() int { | 952 | func (x *Source) GetPriority() int { | ||
| 1048 | - | core.LazyRegister(&xSourceGetPriority, "GLIB", "g_source_get_priority", false) | |||
| 1049 | - | ||||
| 1050 | cret := xSourceGetPriority(x.GoPointer()) | 953 | cret := xSourceGetPriority(x.GoPointer()) | ||
| 1051 | return cret | 954 | return cret | ||
| 1052 | } | 955 | } | ||
| @@ -1059,8 +962,6 @@ var xSourceGetReadyTime func(uintptr) int64 | |||||
| 1059 | // Any time before or equal to the current monotonic time (including zero) | 962 | // Any time before or equal to the current monotonic time (including zero) | ||
| 1060 | // is an indication that the source will fire immediately. | 963 | // is an indication that the source will fire immediately. | ||
| 1061 | func (x *Source) GetReadyTime() int64 { | 964 | func (x *Source) GetReadyTime() int64 { | ||
| 1062 | - | core.LazyRegister(&xSourceGetReadyTime, "GLIB", "g_source_get_ready_time", false) | |||
| 1063 | - | ||||
| 1064 | cret := xSourceGetReadyTime(x.GoPointer()) | 965 | cret := xSourceGetReadyTime(x.GoPointer()) | ||
| 1065 | return cret | 966 | return cret | ||
| 1066 | } | 967 | } | ||
| @@ -1077,8 +978,6 @@ var xSourceGetTime func(uintptr) int64 | |||||
| 1077 | // The time here is the system monotonic time, if available, or some | 978 | // The time here is the system monotonic time, if available, or some | ||
| 1078 | // other reasonable alternative otherwise. See [func@GLib.get_monotonic_time]. | 979 | // other reasonable alternative otherwise. See [func@GLib.get_monotonic_time]. | ||
| 1079 | func (x *Source) GetTime() int64 { | 980 | func (x *Source) GetTime() int64 { | ||
| 1080 | - | core.LazyRegister(&xSourceGetTime, "GLIB", "g_source_get_time", false) | |||
| 1081 | - | ||||
| 1082 | cret := xSourceGetTime(x.GoPointer()) | 981 | cret := xSourceGetTime(x.GoPointer()) | ||
| 1083 | return cret | 982 | return cret | ||
| 1084 | } | 983 | } | ||
| @@ -1171,8 +1070,6 @@ var xSourceIsDestroyed func(uintptr) bool | |||||
| 1171 | // returns. However, once a source is destroyed it cannot be un-destroyed, so | 1070 | // returns. However, once a source is destroyed it cannot be un-destroyed, so | ||
| 1172 | // this function can be used for opportunistic checks from any thread. | 1071 | // this function can be used for opportunistic checks from any thread. | ||
| 1173 | func (x *Source) IsDestroyed() bool { | 1072 | func (x *Source) IsDestroyed() bool { | ||
| 1174 | - | core.LazyRegister(&xSourceIsDestroyed, "GLIB", "g_source_is_destroyed", false) | |||
| 1175 | - | ||||
| 1176 | cret := xSourceIsDestroyed(x.GoPointer()) | 1073 | cret := xSourceIsDestroyed(x.GoPointer()) | ||
| 1177 | return cret | 1074 | return cret | ||
| 1178 | } | 1075 | } | ||
| @@ -1191,8 +1088,6 @@ var xSourceModifyUnixFd func(uintptr, uintptr, IOCondition) | |||||
| 1191 | // | 1088 | // | ||
| 1192 | // As the name suggests, this function is not available on Windows. | 1089 | // As the name suggests, this function is not available on Windows. | ||
| 1193 | func (x *Source) ModifyUnixFd(TagVar uintptr, NewEventsVar IOCondition) { | 1090 | func (x *Source) ModifyUnixFd(TagVar uintptr, NewEventsVar IOCondition) { | ||
| 1194 | - | core.LazyRegister(&xSourceModifyUnixFd, "GLIB", "g_source_modify_unix_fd", false) | |||
| 1195 | - | ||||
| 1196 | xSourceModifyUnixFd(x.GoPointer(), TagVar, NewEventsVar) | 1091 | xSourceModifyUnixFd(x.GoPointer(), TagVar, NewEventsVar) | ||
| 1197 | } | 1092 | } | ||
| 1198 | 1093 | ||||
| @@ -1209,8 +1104,6 @@ var xSourceQueryUnixFd func(uintptr, uintptr) IOCondition | |||||
| 1209 | // | 1104 | // | ||
| 1210 | // As the name suggests, this function is not available on Windows. | 1105 | // As the name suggests, this function is not available on Windows. | ||
| 1211 | func (x *Source) QueryUnixFd(TagVar uintptr) IOCondition { | 1106 | func (x *Source) QueryUnixFd(TagVar uintptr) IOCondition { | ||
| 1212 | - | core.LazyRegister(&xSourceQueryUnixFd, "GLIB", "g_source_query_unix_fd", false) | |||
| 1213 | - | ||||
| 1214 | cret := xSourceQueryUnixFd(x.GoPointer(), TagVar) | 1107 | cret := xSourceQueryUnixFd(x.GoPointer(), TagVar) | ||
| 1215 | return cret | 1108 | return cret | ||
| 1216 | } | 1109 | } | ||
| @@ -1219,8 +1112,6 @@ var xSourceRef func(uintptr) uintptr | |||||
| 1219 | 1112 | ||||
| 1220 | // Increases the reference count on a source by one. | 1113 | // Increases the reference count on a source by one. | ||
| 1221 | func (x *Source) Ref() *Source { | 1114 | func (x *Source) Ref() *Source { | ||
| 1222 | - | core.LazyRegister(&xSourceRef, "GLIB", "g_source_ref", false) | |||
| 1223 | - | ||||
| 1224 | cret := xSourceRef(x.GoPointer()) | 1115 | cret := xSourceRef(x.GoPointer()) | ||
| 1225 | if cret == 0 { | 1116 | if cret == 0 { | ||
| 1226 | return nil | 1117 | return nil | ||
| @@ -1235,8 +1126,6 @@ var xSourceRemoveChildSource func(uintptr, *Source) | |||||
| 1235 | // This API is only intended to be used by implementations of [struct@GLib.Source]. | 1126 | // This API is only intended to be used by implementations of [struct@GLib.Source]. | ||
| 1236 | // Do not call this API on a [struct@GLib.Source] that you did not create. | 1127 | // Do not call this API on a [struct@GLib.Source] that you did not create. | ||
| 1237 | func (x *Source) RemoveChildSource(ChildSourceVar *Source) { | 1128 | func (x *Source) RemoveChildSource(ChildSourceVar *Source) { | ||
| 1238 | - | core.LazyRegister(&xSourceRemoveChildSource, "GLIB", "g_source_remove_child_source", false) | |||
| 1239 | - | ||||
| 1240 | xSourceRemoveChildSource(x.GoPointer(), ChildSourceVar) | 1129 | xSourceRemoveChildSource(x.GoPointer(), ChildSourceVar) | ||
| 1241 | } | 1130 | } | ||
| 1242 | 1131 | ||||
| @@ -1248,8 +1137,6 @@ var xSourceRemovePoll func(uintptr, *PollFD) | |||||
| 1248 | // This API is only intended to be used by implementations of [struct@GLib.Source]. | 1137 | // This API is only intended to be used by implementations of [struct@GLib.Source]. | ||
| 1249 | // Do not call this API on a [struct@GLib.Source] that you did not create. | 1138 | // Do not call this API on a [struct@GLib.Source] that you did not create. | ||
| 1250 | func (x *Source) RemovePoll(FdVar *PollFD) { | 1139 | func (x *Source) RemovePoll(FdVar *PollFD) { | ||
| 1251 | - | core.LazyRegister(&xSourceRemovePoll, "GLIB", "g_source_remove_poll", false) | |||
| 1252 | - | ||||
| 1253 | xSourceRemovePoll(x.GoPointer(), FdVar) | 1140 | xSourceRemovePoll(x.GoPointer(), FdVar) | ||
| 1254 | } | 1141 | } | ||
| 1255 | 1142 | ||||
| @@ -1266,8 +1153,6 @@ var xSourceRemoveUnixFd func(uintptr, uintptr) | |||||
| 1266 | // | 1153 | // | ||
| 1267 | // As the name suggests, this function is not available on Windows. | 1154 | // As the name suggests, this function is not available on Windows. | ||
| 1268 | func (x *Source) RemoveUnixFd(TagVar uintptr) { | 1155 | func (x *Source) RemoveUnixFd(TagVar uintptr) { | ||
| 1269 | - | core.LazyRegister(&xSourceRemoveUnixFd, "GLIB", "g_source_remove_unix_fd", false) | |||
| 1270 | - | ||||
| 1271 | xSourceRemoveUnixFd(x.GoPointer(), TagVar) | 1156 | xSourceRemoveUnixFd(x.GoPointer(), TagVar) | ||
| 1272 | } | 1157 | } | ||
| 1273 | 1158 | ||||
| @@ -1295,8 +1180,6 @@ var xSourceSetCallback func(uintptr, uintptr, uintptr, uintptr) | |||||
| 1295 | // Note that [method@GLib.Source.destroy] for a currently attached source has the effect | 1180 | // Note that [method@GLib.Source.destroy] for a currently attached source has the effect | ||
| 1296 | // of also unsetting the callback. | 1181 | // of also unsetting the callback. | ||
| 1297 | func (x *Source) SetCallback(FuncVar *SourceFunc, DataVar uintptr, NotifyVar *DestroyNotify) { | 1182 | func (x *Source) SetCallback(FuncVar *SourceFunc, DataVar uintptr, NotifyVar *DestroyNotify) { | ||
| 1298 | - | core.LazyRegister(&xSourceSetCallback, "GLIB", "g_source_set_callback", false) | |||
| 1299 | - | ||||
| 1300 | xSourceSetCallback(x.GoPointer(), NewCallback(FuncVar), DataVar, NewCallbackNullable(NotifyVar)) | 1183 | xSourceSetCallback(x.GoPointer(), NewCallback(FuncVar), DataVar, NewCallbackNullable(NotifyVar)) | ||
| 1301 | } | 1184 | } | ||
| 1302 | 1185 | ||||
| @@ -1315,8 +1198,6 @@ var xSourceSetCallbackIndirect func(uintptr, uintptr, *SourceCallbackFuncs) | |||||
| 1315 | // been attached to a context. The changes will take effect for the next time | 1198 | // been attached to a context. The changes will take effect for the next time | ||
| 1316 | // the source is dispatched after this call returns. | 1199 | // the source is dispatched after this call returns. | ||
| 1317 | func (x *Source) SetCallbackIndirect(CallbackDataVar uintptr, CallbackFuncsVar *SourceCallbackFuncs) { | 1200 | func (x *Source) SetCallbackIndirect(CallbackDataVar uintptr, CallbackFuncsVar *SourceCallbackFuncs) { | ||
| 1318 | - | core.LazyRegister(&xSourceSetCallbackIndirect, "GLIB", "g_source_set_callback_indirect", false) | |||
| 1319 | - | ||||
| 1320 | xSourceSetCallbackIndirect(x.GoPointer(), CallbackDataVar, CallbackFuncsVar) | 1201 | xSourceSetCallbackIndirect(x.GoPointer(), CallbackDataVar, CallbackFuncsVar) | ||
| 1321 | } | 1202 | } | ||
| 1322 | 1203 | ||||
| @@ -1328,8 +1209,6 @@ var xSourceSetCanRecurse func(uintptr, bool) | |||||
| 1328 | // source will be processed normally. Otherwise, all processing of this | 1209 | // source will be processed normally. Otherwise, all processing of this | ||
| 1329 | // source is blocked until the dispatch function returns. | 1210 | // source is blocked until the dispatch function returns. | ||
| 1330 | func (x *Source) SetCanRecurse(CanRecurseVar bool) { | 1211 | func (x *Source) SetCanRecurse(CanRecurseVar bool) { | ||
| 1331 | - | core.LazyRegister(&xSourceSetCanRecurse, "GLIB", "g_source_set_can_recurse", false) | |||
| 1332 | - | ||||
| 1333 | xSourceSetCanRecurse(x.GoPointer(), CanRecurseVar) | 1212 | xSourceSetCanRecurse(x.GoPointer(), CanRecurseVar) | ||
| 1334 | } | 1213 | } | ||
| 1335 | 1214 | ||||
| @@ -1356,8 +1235,6 @@ var xSourceSetDisposeFunction func(uintptr, uintptr) | |||||
| 1356 | // | 1235 | // | ||
| 1357 | // This should only ever be called from [struct@GLib.Source] implementations. | 1236 | // This should only ever be called from [struct@GLib.Source] implementations. | ||
| 1358 | func (x *Source) SetDisposeFunction(DisposeVar *SourceDisposeFunc) { | 1237 | func (x *Source) SetDisposeFunction(DisposeVar *SourceDisposeFunc) { | ||
| 1359 | - | core.LazyRegister(&xSourceSetDisposeFunction, "GLIB", "g_source_set_dispose_function", false) | |||
| 1360 | - | ||||
| 1361 | xSourceSetDisposeFunction(x.GoPointer(), NewCallback(DisposeVar)) | 1238 | xSourceSetDisposeFunction(x.GoPointer(), NewCallback(DisposeVar)) | ||
| 1362 | } | 1239 | } | ||
| 1363 | 1240 | ||||
| @@ -1368,8 +1245,6 @@ var xSourceSetFuncs func(uintptr, *SourceFuncs) | |||||
| 1368 | // These can be used to override the default implementations for the type | 1245 | // These can be used to override the default implementations for the type | ||
| 1369 | // of @source. | 1246 | // of @source. | ||
| 1370 | func (x *Source) SetFuncs(FuncsVar *SourceFuncs) { | 1247 | func (x *Source) SetFuncs(FuncsVar *SourceFuncs) { | ||
| 1371 | - | core.LazyRegister(&xSourceSetFuncs, "GLIB", "g_source_set_funcs", false) | |||
| 1372 | - | ||||
| 1373 | xSourceSetFuncs(x.GoPointer(), FuncsVar) | 1248 | xSourceSetFuncs(x.GoPointer(), FuncsVar) | ||
| 1374 | } | 1249 | } | ||
| 1375 | 1250 | ||||
| @@ -1396,8 +1271,6 @@ var xSourceSetName func(uintptr, string) | |||||
| 1396 | // | 1271 | // | ||
| 1397 | // Also see [method@GLib.Source.set_static_name]. | 1272 | // Also see [method@GLib.Source.set_static_name]. | ||
| 1398 | func (x *Source) SetName(NameVar string) { | 1273 | func (x *Source) SetName(NameVar string) { | ||
| 1399 | - | core.LazyRegister(&xSourceSetName, "GLIB", "g_source_set_name", false) | |||
| 1400 | - | ||||
| 1401 | xSourceSetName(x.GoPointer(), NameVar) | 1274 | xSourceSetName(x.GoPointer(), NameVar) | ||
| 1402 | } | 1275 | } | ||
| 1403 | 1276 | ||||
| @@ -1414,8 +1287,6 @@ var xSourceSetPriority func(uintptr, int) | |||||
| 1414 | // permitted to change the priority of a source once it has been added | 1287 | // permitted to change the priority of a source once it has been added | ||
| 1415 | // as a child of another source. | 1288 | // as a child of another source. | ||
| 1416 | func (x *Source) SetPriority(PriorityVar int) { | 1289 | func (x *Source) SetPriority(PriorityVar int) { | ||
| 1417 | - | core.LazyRegister(&xSourceSetPriority, "GLIB", "g_source_set_priority", false) | |||
| 1418 | - | ||||
| 1419 | xSourceSetPriority(x.GoPointer(), PriorityVar) | 1290 | xSourceSetPriority(x.GoPointer(), PriorityVar) | ||
| 1420 | } | 1291 | } | ||
| 1421 | 1292 | ||||
| @@ -1446,8 +1317,6 @@ var xSourceSetReadyTime func(uintptr, int64) | |||||
| 1446 | // This API is only intended to be used by implementations of [struct@GLib.Source]. | 1317 | // This API is only intended to be used by implementations of [struct@GLib.Source]. | ||
| 1447 | // Do not call this API on a [struct@GLib.Source] that you did not create. | 1318 | // Do not call this API on a [struct@GLib.Source] that you did not create. | ||
| 1448 | func (x *Source) SetReadyTime(ReadyTimeVar int64) { | 1319 | func (x *Source) SetReadyTime(ReadyTimeVar int64) { | ||
| 1449 | - | core.LazyRegister(&xSourceSetReadyTime, "GLIB", "g_source_set_ready_time", false) | |||
| 1450 | - | ||||
| 1451 | xSourceSetReadyTime(x.GoPointer(), ReadyTimeVar) | 1320 | xSourceSetReadyTime(x.GoPointer(), ReadyTimeVar) | ||
| 1452 | } | 1321 | } | ||
| 1453 | 1322 | ||||
| @@ -1457,8 +1326,6 @@ var xSourceSetStaticName func(uintptr, string) | |||||
| 1457 | // duplicate the @name, and can only be used with | 1326 | // duplicate the @name, and can only be used with | ||
| 1458 | // string literals. | 1327 | // string literals. | ||
| 1459 | func (x *Source) SetStaticName(NameVar string) { | 1328 | func (x *Source) SetStaticName(NameVar string) { | ||
| 1460 | - | core.LazyRegister(&xSourceSetStaticName, "GLIB", "g_source_set_static_name", false) | |||
| 1461 | - | ||||
| 1462 | xSourceSetStaticName(x.GoPointer(), NameVar) | 1329 | xSourceSetStaticName(x.GoPointer(), NameVar) | ||
| 1463 | } | 1330 | } | ||
| 1464 | 1331 | ||||
| @@ -1469,8 +1336,6 @@ var xSourceUnref func(uintptr) | |||||
| 1469 | // If the resulting reference count is zero the source and associated | 1336 | // If the resulting reference count is zero the source and associated | ||
| 1470 | // memory will be destroyed. | 1337 | // memory will be destroyed. | ||
| 1471 | func (x *Source) Unref() { | 1338 | func (x *Source) Unref() { | ||
| 1472 | - | core.LazyRegister(&xSourceUnref, "GLIB", "g_source_unref", false) | |||
| 1473 | - | ||||
| 1474 | xSourceUnref(x.GoPointer()) | 1339 | xSourceUnref(x.GoPointer()) | ||
| 1475 | } | 1340 | } | ||
| 1476 | 1341 | ||||
| @@ -1718,7 +1583,6 @@ var xChildWatchAdd func(Pid, uintptr, uintptr) uint | |||||
| 1718 | // using [method@GLib.Source.attach]. You can do these steps manually if you | 1583 | // using [method@GLib.Source.attach]. You can do these steps manually if you | ||
| 1719 | // need greater control. | 1584 | // need greater control. | ||
| 1720 | func ChildWatchAdd(PidVar Pid, FunctionVar *ChildWatchFunc, DataVar uintptr) uint { | 1585 | func ChildWatchAdd(PidVar Pid, FunctionVar *ChildWatchFunc, DataVar uintptr) uint { | ||
| 1721 | - | core.LazyRegister(&xChildWatchAdd, "GLIB", "g_child_watch_add", false) | |||
| 1722 | var functionRef uintptr | 1586 | var functionRef uintptr | ||
| 1723 | if FunctionVar != nil { | 1587 | if FunctionVar != nil { | ||
| 1724 | functionRef = childWatchFuncTrampolineCb | 1588 | functionRef = childWatchFuncTrampolineCb | ||
| @@ -1756,7 +1620,6 @@ var xChildWatchAddFull func(int, Pid, uintptr, uintptr, uintptr) uint | |||||
| 1756 | // using [method@GLib.Source.attach]. You can do these steps manually if you | 1620 | // using [method@GLib.Source.attach]. You can do these steps manually if you | ||
| 1757 | // need greater control. | 1621 | // need greater control. | ||
| 1758 | func ChildWatchAddFull(PriorityVar int, PidVar Pid, FunctionVar *ChildWatchFunc, DataVar uintptr, NotifyVar *DestroyNotify) uint { | 1622 | func ChildWatchAddFull(PriorityVar int, PidVar Pid, FunctionVar *ChildWatchFunc, DataVar uintptr, NotifyVar *DestroyNotify) uint { | ||
| 1759 | - | core.LazyRegister(&xChildWatchAddFull, "GLIB", "g_child_watch_add_full", false) | |||
| 1760 | var functionRef uintptr | 1623 | var functionRef uintptr | ||
| 1761 | if FunctionVar != nil { | 1624 | if FunctionVar != nil { | ||
| 1762 | functionRef = childWatchFuncTrampolineCb | 1625 | functionRef = childWatchFuncTrampolineCb | ||
| @@ -1809,8 +1672,6 @@ var xChildWatchSourceNew func(Pid) uintptr | |||||
| 1809 | // Calling [`waitpid()`](man:waitpid(2)) for specific processes other than @pid | 1672 | // Calling [`waitpid()`](man:waitpid(2)) for specific processes other than @pid | ||
| 1810 | // remains a valid thing to do. | 1673 | // remains a valid thing to do. | ||
| 1811 | func ChildWatchSourceNew(PidVar Pid) *Source { | 1674 | func ChildWatchSourceNew(PidVar Pid) *Source { | ||
| 1812 | - | core.LazyRegister(&xChildWatchSourceNew, "GLIB", "g_child_watch_source_new", false) | |||
| 1813 | - | ||||
| 1814 | cret := xChildWatchSourceNew(PidVar) | 1675 | cret := xChildWatchSourceNew(PidVar) | ||
| 1815 | if cret == 0 { | 1676 | if cret == 0 { | ||
| 1816 | return nil | 1677 | return nil | ||
| @@ -1831,8 +1692,6 @@ var xClearHandleId func(uint, uintptr) | |||||
| 1831 | // A macro is also included that allows this function to be used without | 1692 | // A macro is also included that allows this function to be used without | ||
| 1832 | // pointer casts. | 1693 | // pointer casts. | ||
| 1833 | func ClearHandleId(TagPtrVar uint, ClearFuncVar *ClearHandleFunc) { | 1694 | func ClearHandleId(TagPtrVar uint, ClearFuncVar *ClearHandleFunc) { | ||
| 1834 | - | core.LazyRegister(&xClearHandleId, "GLIB", "g_clear_handle_id", false) | |||
| 1835 | - | ||||
| 1836 | xClearHandleId(TagPtrVar, NewCallback(ClearFuncVar)) | 1695 | xClearHandleId(TagPtrVar, NewCallback(ClearFuncVar)) | ||
| 1837 | } | 1696 | } | ||
| 1838 | 1697 | ||||
| @@ -1845,8 +1704,6 @@ var xGetCurrentTime func(*TimeVal) | |||||
| 1845 | // | 1704 | // | ||
| 1846 | // You may find [func@GLib.get_real_time] to be more convenient. | 1705 | // You may find [func@GLib.get_real_time] to be more convenient. | ||
| 1847 | func GetCurrentTime(ResultVar *TimeVal) { | 1706 | func GetCurrentTime(ResultVar *TimeVal) { | ||
| 1848 | - | core.LazyRegister(&xGetCurrentTime, "GLIB", "g_get_current_time", false) | |||
| 1849 | - | ||||
| 1850 | xGetCurrentTime(ResultVar) | 1707 | xGetCurrentTime(ResultVar) | ||
| 1851 | } | 1708 | } | ||
| 1852 | 1709 | ||||
| @@ -1867,8 +1724,6 @@ var xGetMonotonicTime func() int64 | |||||
| 1867 | // A more accurate version of this function exists. | 1724 | // A more accurate version of this function exists. | ||
| 1868 | // [func@GLib.get_monotonic_time_ns] returns the time in nanoseconds. | 1725 | // [func@GLib.get_monotonic_time_ns] returns the time in nanoseconds. | ||
| 1869 | func GetMonotonicTime() int64 { | 1726 | func GetMonotonicTime() int64 { | ||
| 1870 | - | core.LazyRegister(&xGetMonotonicTime, "GLIB", "g_get_monotonic_time", false) | |||
| 1871 | - | ||||
| 1872 | cret := xGetMonotonicTime() | 1727 | cret := xGetMonotonicTime() | ||
| 1873 | return cret | 1728 | return cret | ||
| 1874 | } | 1729 | } | ||
| @@ -1891,8 +1746,6 @@ var xGetMonotonicTimeNs func() uint64 | |||||
| 1891 | // [func@GLib.get_monotonic_time] returns the time in microseconds. | 1746 | // [func@GLib.get_monotonic_time] returns the time in microseconds. | ||
| 1892 | // If you want to support older GLib versions, it is an alternative. | 1747 | // If you want to support older GLib versions, it is an alternative. | ||
| 1893 | func GetMonotonicTimeNs() uint64 { | 1748 | func GetMonotonicTimeNs() uint64 { | ||
| 1894 | - | core.LazyRegister(&xGetMonotonicTimeNs, "GLIB", "g_get_monotonic_time_ns", false) | |||
| 1895 | - | ||||
| 1896 | cret := xGetMonotonicTimeNs() | 1749 | cret := xGetMonotonicTimeNs() | ||
| 1897 | return cret | 1750 | return cret | ||
| 1898 | } | 1751 | } | ||
| @@ -1908,8 +1761,6 @@ var xGetRealTime func() int64 | |||||
| 1908 | // wall-clock time. [func@GLib.get_monotonic_time] is probably more useful for | 1761 | // wall-clock time. [func@GLib.get_monotonic_time] is probably more useful for | ||
| 1909 | // measuring intervals. | 1762 | // measuring intervals. | ||
| 1910 | func GetRealTime() int64 { | 1763 | func GetRealTime() int64 { | ||
| 1911 | - | core.LazyRegister(&xGetRealTime, "GLIB", "g_get_real_time", false) | |||
| 1912 | - | ||||
| 1913 | cret := xGetRealTime() | 1764 | cret := xGetRealTime() | ||
| 1914 | return cret | 1765 | return cret | ||
| 1915 | } | 1766 | } | ||
| @@ -1933,7 +1784,6 @@ var xIdleAdd func(uintptr, uintptr) uint | |||||
| 1933 | // thread is running that main context. You can do these steps manually if you | 1784 | // thread is running that main context. You can do these steps manually if you | ||
| 1934 | // need greater control or to use a custom main context. | 1785 | // need greater control or to use a custom main context. | ||
| 1935 | func IdleAdd(FunctionVar *SourceFunc, DataVar uintptr) uint { | 1786 | func IdleAdd(FunctionVar *SourceFunc, DataVar uintptr) uint { | ||
| 1936 | - | core.LazyRegister(&xIdleAdd, "GLIB", "g_idle_add", false) | |||
| 1937 | var functionRef uintptr | 1787 | var functionRef uintptr | ||
| 1938 | if FunctionVar != nil { | 1788 | if FunctionVar != nil { | ||
| 1939 | functionRef = sourceFuncTrampolineCb | 1789 | functionRef = sourceFuncTrampolineCb | ||
| @@ -1960,7 +1810,6 @@ var xIdleAddFull func(int, uintptr, uintptr, uintptr) uint | |||||
| 1960 | // thread is running that main context. You can do these steps manually if you | 1810 | // thread is running that main context. You can do these steps manually if you | ||
| 1961 | // need greater control or to use a custom main context. | 1811 | // need greater control or to use a custom main context. | ||
| 1962 | func IdleAddFull(PriorityVar int, FunctionVar *SourceFunc, DataVar uintptr, NotifyVar *DestroyNotify) uint { | 1812 | func IdleAddFull(PriorityVar int, FunctionVar *SourceFunc, DataVar uintptr, NotifyVar *DestroyNotify) uint { | ||
| 1963 | - | core.LazyRegister(&xIdleAddFull, "GLIB", "g_idle_add_full", false) | |||
| 1964 | var functionRef uintptr | 1813 | var functionRef uintptr | ||
| 1965 | if FunctionVar != nil { | 1814 | if FunctionVar != nil { | ||
| 1966 | functionRef = sourceFuncTrampolineCb | 1815 | functionRef = sourceFuncTrampolineCb | ||
| @@ -1983,7 +1832,6 @@ var xIdleAddOnce func(uintptr, uintptr) uint | |||||
| 1983 | // | 1832 | // | ||
| 1984 | // This function otherwise behaves like [func@GLib.idle_add]. | 1833 | // This function otherwise behaves like [func@GLib.idle_add]. | ||
| 1985 | func IdleAddOnce(FunctionVar *SourceOnceFunc, DataVar uintptr) uint { | 1834 | func IdleAddOnce(FunctionVar *SourceOnceFunc, DataVar uintptr) uint { | ||
| 1986 | - | core.LazyRegister(&xIdleAddOnce, "GLIB", "g_idle_add_once", false) | |||
| 1987 | var functionRef uintptr | 1835 | var functionRef uintptr | ||
| 1988 | if FunctionVar != nil { | 1836 | if FunctionVar != nil { | ||
| 1989 | functionRef = sourceOnceFuncTrampolineCb | 1837 | functionRef = sourceOnceFuncTrampolineCb | ||
| @@ -1997,7 +1845,6 @@ var xIdleRemoveByData func(uintptr) bool | |||||
| 1997 | 1845 | ||||
| 1998 | // Removes the idle function with the given data. | 1846 | // Removes the idle function with the given data. | ||
| 1999 | func IdleRemoveByData(DataVar uintptr) bool { | 1847 | func IdleRemoveByData(DataVar uintptr) bool { | ||
| 2000 | - | core.LazyRegister(&xIdleRemoveByData, "GLIB", "g_idle_remove_by_data", false) | |||
| 2001 | trackedSourceID := trackedSourceIDByUserData(DataVar) | 1848 | trackedSourceID := trackedSourceIDByUserData(DataVar) | ||
| 2002 | cret := xIdleRemoveByData(DataVar) | 1849 | cret := xIdleRemoveByData(DataVar) | ||
| 2003 | if cret { | 1850 | if cret { | ||
| @@ -2017,8 +1864,6 @@ var xIdleSourceNew func() uintptr | |||||
| 2017 | // compared to other sources which have a default priority of | 1864 | // compared to other sources which have a default priority of | ||
| 2018 | // [const@GLib.PRIORITY_DEFAULT]. | 1865 | // [const@GLib.PRIORITY_DEFAULT]. | ||
| 2019 | func IdleSourceNew() *Source { | 1866 | func IdleSourceNew() *Source { | ||
| 2020 | - | core.LazyRegister(&xIdleSourceNew, "GLIB", "g_idle_source_new", false) | |||
| 2021 | - | ||||
| 2022 | cret := xIdleSourceNew() | 1867 | cret := xIdleSourceNew() | ||
| 2023 | if cret == 0 { | 1868 | if cret == 0 { | ||
| 2024 | return nil | 1869 | return nil | ||
| @@ -2035,8 +1880,6 @@ var xMainContextDefault func() uintptr | |||||
| 2035 | // specified, and corresponds to the ‘main’ main loop. See also | 1880 | // specified, and corresponds to the ‘main’ main loop. See also | ||
| 2036 | // [func@GLib.MainContext.get_thread_default]. | 1881 | // [func@GLib.MainContext.get_thread_default]. | ||
| 2037 | func MainContextDefault() *MainContext { | 1882 | func MainContextDefault() *MainContext { | ||
| 2038 | - | core.LazyRegister(&xMainContextDefault, "GLIB", "g_main_context_default", false) | |||
| 2039 | - | ||||
| 2040 | cret := xMainContextDefault() | 1883 | cret := xMainContextDefault() | ||
| 2041 | if cret == 0 { | 1884 | if cret == 0 { | ||
| 2042 | return nil | 1885 | return nil | ||
| @@ -2059,8 +1902,6 @@ var xMainContextGetThreadDefault func() uintptr | |||||
| 2059 | // If you need to hold a reference on the context, use | 1902 | // If you need to hold a reference on the context, use | ||
| 2060 | // [func@GLib.MainContext.ref_thread_default] instead. | 1903 | // [func@GLib.MainContext.ref_thread_default] instead. | ||
| 2061 | func MainContextGetThreadDefault() *MainContext { | 1904 | func MainContextGetThreadDefault() *MainContext { | ||
| 2062 | - | core.LazyRegister(&xMainContextGetThreadDefault, "GLIB", "g_main_context_get_thread_default", false) | |||
| 2063 | - | ||||
| 2064 | cret := xMainContextGetThreadDefault() | 1905 | cret := xMainContextGetThreadDefault() | ||
| 2065 | if cret == 0 { | 1906 | if cret == 0 { | ||
| 2066 | return nil | 1907 | return nil | ||
| @@ -2081,8 +1922,6 @@ var xMainContextRefThreadDefault func() uintptr | |||||
| 2081 | // [struct@GLib.MainContext] (with a ref added to it) rather than returning | 1922 | // [struct@GLib.MainContext] (with a ref added to it) rather than returning | ||
| 2082 | // `NULL`. | 1923 | // `NULL`. | ||
| 2083 | func MainContextRefThreadDefault() *MainContext { | 1924 | func MainContextRefThreadDefault() *MainContext { | ||
| 2084 | - | core.LazyRegister(&xMainContextRefThreadDefault, "GLIB", "g_main_context_ref_thread_default", false) | |||
| 2085 | - | ||||
| 2086 | cret := xMainContextRefThreadDefault() | 1925 | cret := xMainContextRefThreadDefault() | ||
| 2087 | if cret == 0 { | 1926 | if cret == 0 { | ||
| 2088 | return nil | 1927 | return nil | ||
| @@ -2094,8 +1933,6 @@ var xMainCurrentSource func() uintptr | |||||
| 2094 | 1933 | ||||
| 2095 | // Returns the currently firing source for this thread. | 1934 | // Returns the currently firing source for this thread. | ||
| 2096 | func MainCurrentSource() *Source { | 1935 | func MainCurrentSource() *Source { | ||
| 2097 | - | core.LazyRegister(&xMainCurrentSource, "GLIB", "g_main_current_source", false) | |||
| 2098 | - | ||||
| 2099 | cret := xMainCurrentSource() | 1936 | cret := xMainCurrentSource() | ||
| 2100 | if cret == 0 { | 1937 | if cret == 0 { | ||
| 2101 | return nil | 1938 | return nil | ||
| @@ -2215,8 +2052,6 @@ var xMainDepth func() int | |||||
| 2215 | // simply return to the main loop and then get called again when | 2052 | // simply return to the main loop and then get called again when | ||
| 2216 | // there is more work to do. | 2053 | // there is more work to do. | ||
| 2217 | func MainDepth() int { | 2054 | func MainDepth() int { | ||
| 2218 | - | core.LazyRegister(&xMainDepth, "GLIB", "g_main_depth", false) | |||
| 2219 | - | ||||
| 2220 | cret := xMainDepth() | 2055 | cret := xMainDepth() | ||
| 2221 | return cret | 2056 | return cret | ||
| 2222 | } | 2057 | } | ||
| @@ -2246,7 +2081,6 @@ var xSourceRemove func(uint) bool | |||||
| 2246 | // been reissued, leading to the operation being performed against the | 2081 | // been reissued, leading to the operation being performed against the | ||
| 2247 | // wrong source. | 2082 | // wrong source. | ||
| 2248 | func SourceRemove(TagVar uint) bool { | 2083 | func SourceRemove(TagVar uint) bool { | ||
| 2249 | - | core.LazyRegister(&xSourceRemove, "GLIB", "g_source_remove", false) | |||
| 2250 | cret := xSourceRemove(TagVar) | 2084 | cret := xSourceRemove(TagVar) | ||
| 2251 | if cret { | 2085 | if cret { | ||
| 2252 | removeTrackedSource(TagVar) | 2086 | removeTrackedSource(TagVar) | ||
| @@ -2262,8 +2096,6 @@ var xSourceRemoveByFuncsUserData func(*SourceFuncs, uintptr) bool | |||||
| 2262 | // If multiple sources exist with the same source functions and user data, only | 2096 | // If multiple sources exist with the same source functions and user data, only | ||
| 2263 | // one will be destroyed. | 2097 | // one will be destroyed. | ||
| 2264 | func SourceRemoveByFuncsUserData(FuncsVar *SourceFuncs, UserDataVar uintptr) bool { | 2098 | func SourceRemoveByFuncsUserData(FuncsVar *SourceFuncs, UserDataVar uintptr) bool { | ||
| 2265 | - | core.LazyRegister(&xSourceRemoveByFuncsUserData, "GLIB", "g_source_remove_by_funcs_user_data", false) | |||
| 2266 | - | ||||
| 2267 | cret := xSourceRemoveByFuncsUserData(FuncsVar, UserDataVar) | 2099 | cret := xSourceRemoveByFuncsUserData(FuncsVar, UserDataVar) | ||
| 2268 | return cret | 2100 | return cret | ||
| 2269 | } | 2101 | } | ||
| @@ -2275,7 +2107,6 @@ var xSourceRemoveByUserData func(uintptr) bool | |||||
| 2275 | // | 2107 | // | ||
| 2276 | // If multiple sources exist with the same user data, only one will be destroyed. | 2108 | // If multiple sources exist with the same user data, only one will be destroyed. | ||
| 2277 | func SourceRemoveByUserData(UserDataVar uintptr) bool { | 2109 | func SourceRemoveByUserData(UserDataVar uintptr) bool { | ||
| 2278 | - | core.LazyRegister(&xSourceRemoveByUserData, "GLIB", "g_source_remove_by_user_data", false) | |||
| 2279 | trackedSourceID := trackedSourceIDByUserData(UserDataVar) | 2110 | trackedSourceID := trackedSourceIDByUserData(UserDataVar) | ||
| 2280 | cret := xSourceRemoveByUserData(UserDataVar) | 2111 | cret := xSourceRemoveByUserData(UserDataVar) | ||
| 2281 | if cret { | 2112 | if cret { | ||
| @@ -2303,8 +2134,6 @@ var xSourceSetNameById func(uint, string) | |||||
| 2303 | // been reissued, leading to the operation being performed against the | 2134 | // been reissued, leading to the operation being performed against the | ||
| 2304 | // wrong source. | 2135 | // wrong source. | ||
| 2305 | func SourceSetNameById(TagVar uint, NameVar string) { | 2136 | func SourceSetNameById(TagVar uint, NameVar string) { | ||
| 2306 | - | core.LazyRegister(&xSourceSetNameById, "GLIB", "g_source_set_name_by_id", false) | |||
| 2307 | - | ||||
| 2308 | xSourceSetNameById(TagVar, NameVar) | 2137 | xSourceSetNameById(TagVar, NameVar) | ||
| 2309 | } | 2138 | } | ||
| 2310 | 2139 | ||||
| @@ -2344,7 +2173,6 @@ var xTimeoutAdd func(uint, uintptr, uintptr) uint | |||||
| 2344 | // The interval given is in terms of monotonic time, not wall clock | 2173 | // The interval given is in terms of monotonic time, not wall clock | ||
| 2345 | // time. See [func@GLib.get_monotonic_time]. | 2174 | // time. See [func@GLib.get_monotonic_time]. | ||
| 2346 | func TimeoutAdd(IntervalVar uint, FunctionVar *SourceFunc, DataVar uintptr) uint { | 2175 | func TimeoutAdd(IntervalVar uint, FunctionVar *SourceFunc, DataVar uintptr) uint { | ||
| 2347 | - | core.LazyRegister(&xTimeoutAdd, "GLIB", "g_timeout_add", false) | |||
| 2348 | var functionRef uintptr | 2176 | var functionRef uintptr | ||
| 2349 | if FunctionVar != nil { | 2177 | if FunctionVar != nil { | ||
| 2350 | functionRef = sourceFuncTrampolineCb | 2178 | functionRef = sourceFuncTrampolineCb | ||
| @@ -2385,7 +2213,6 @@ var xTimeoutAddFull func(int, uint, uintptr, uintptr, uintptr) uint | |||||
| 2385 | // The interval given is in terms of monotonic time, not wall clock time. | 2213 | // The interval given is in terms of monotonic time, not wall clock time. | ||
| 2386 | // See [func@GLib.get_monotonic_time]. | 2214 | // See [func@GLib.get_monotonic_time]. | ||
| 2387 | func TimeoutAddFull(PriorityVar int, IntervalVar uint, FunctionVar *SourceFunc, DataVar uintptr, NotifyVar *DestroyNotify) uint { | 2215 | func TimeoutAddFull(PriorityVar int, IntervalVar uint, FunctionVar *SourceFunc, DataVar uintptr, NotifyVar *DestroyNotify) uint { | ||
| 2388 | - | core.LazyRegister(&xTimeoutAddFull, "GLIB", "g_timeout_add_full", false) | |||
| 2389 | var functionRef uintptr | 2216 | var functionRef uintptr | ||
| 2390 | if FunctionVar != nil { | 2217 | if FunctionVar != nil { | ||
| 2391 | functionRef = sourceFuncTrampolineCb | 2218 | functionRef = sourceFuncTrampolineCb | ||
| @@ -2405,7 +2232,6 @@ var xTimeoutAddOnce func(uint, uintptr, uintptr) uint | |||||
| 2405 | // | 2232 | // | ||
| 2406 | // This function otherwise behaves like [func@GLib.timeout_add]. | 2233 | // This function otherwise behaves like [func@GLib.timeout_add]. | ||
| 2407 | func TimeoutAddOnce(IntervalVar uint, FunctionVar *SourceOnceFunc, DataVar uintptr) uint { | 2234 | func TimeoutAddOnce(IntervalVar uint, FunctionVar *SourceOnceFunc, DataVar uintptr) uint { | ||
| 2408 | - | core.LazyRegister(&xTimeoutAddOnce, "GLIB", "g_timeout_add_once", false) | |||
| 2409 | var functionRef uintptr | 2235 | var functionRef uintptr | ||
| 2410 | if FunctionVar != nil { | 2236 | if FunctionVar != nil { | ||
| 2411 | functionRef = sourceOnceFuncTrampolineCb | 2237 | functionRef = sourceOnceFuncTrampolineCb | ||
| @@ -2441,7 +2267,6 @@ var xTimeoutAddSeconds func(uint, uintptr, uintptr) uint | |||||
| 2441 | // The interval given is in terms of monotonic time, not wall clock | 2267 | // The interval given is in terms of monotonic time, not wall clock | ||
| 2442 | // time. See [func@GLib.get_monotonic_time]. | 2268 | // time. See [func@GLib.get_monotonic_time]. | ||
| 2443 | func TimeoutAddSeconds(IntervalVar uint, FunctionVar *SourceFunc, DataVar uintptr) uint { | 2269 | func TimeoutAddSeconds(IntervalVar uint, FunctionVar *SourceFunc, DataVar uintptr) uint { | ||
| 2444 | - | core.LazyRegister(&xTimeoutAddSeconds, "GLIB", "g_timeout_add_seconds", false) | |||
| 2445 | var functionRef uintptr | 2270 | var functionRef uintptr | ||
| 2446 | if FunctionVar != nil { | 2271 | if FunctionVar != nil { | ||
| 2447 | functionRef = sourceFuncTrampolineCb | 2272 | functionRef = sourceFuncTrampolineCb | ||
| @@ -2494,7 +2319,6 @@ var xTimeoutAddSecondsFull func(int, uint, uintptr, uintptr, uintptr) uint | |||||
| 2494 | // The interval given is in terms of monotonic time, not wall clock | 2319 | // The interval given is in terms of monotonic time, not wall clock | ||
| 2495 | // time. See [func@GLib.get_monotonic_time]. | 2320 | // time. See [func@GLib.get_monotonic_time]. | ||
| 2496 | func TimeoutAddSecondsFull(PriorityVar int, IntervalVar uint, FunctionVar *SourceFunc, DataVar uintptr, NotifyVar *DestroyNotify) uint { | 2321 | func TimeoutAddSecondsFull(PriorityVar int, IntervalVar uint, FunctionVar *SourceFunc, DataVar uintptr, NotifyVar *DestroyNotify) uint { | ||
| 2497 | - | core.LazyRegister(&xTimeoutAddSecondsFull, "GLIB", "g_timeout_add_seconds_full", false) | |||
| 2498 | var functionRef uintptr | 2322 | var functionRef uintptr | ||
| 2499 | if FunctionVar != nil { | 2323 | if FunctionVar != nil { | ||
| 2500 | functionRef = sourceFuncTrampolineCb | 2324 | functionRef = sourceFuncTrampolineCb | ||
| @@ -2509,7 +2333,6 @@ var xTimeoutAddSecondsOnce func(uint, uintptr, uintptr) uint | |||||
| 2509 | // This function behaves like [func@GLib.timeout_add_once] but with a range in | 2333 | // This function behaves like [func@GLib.timeout_add_once] but with a range in | ||
| 2510 | // seconds. | 2334 | // seconds. | ||
| 2511 | func TimeoutAddSecondsOnce(IntervalVar uint, FunctionVar *SourceOnceFunc, DataVar uintptr) uint { | 2335 | func TimeoutAddSecondsOnce(IntervalVar uint, FunctionVar *SourceOnceFunc, DataVar uintptr) uint { | ||
| 2512 | - | core.LazyRegister(&xTimeoutAddSecondsOnce, "GLIB", "g_timeout_add_seconds_once", false) | |||
| 2513 | var functionRef uintptr | 2336 | var functionRef uintptr | ||
| 2514 | if FunctionVar != nil { | 2337 | if FunctionVar != nil { | ||
| 2515 | functionRef = sourceOnceFuncTrampolineCb | 2338 | functionRef = sourceOnceFuncTrampolineCb | ||
| @@ -2530,8 +2353,6 @@ var xTimeoutSourceNew func(uint) uintptr | |||||
| 2530 | // The interval given is in terms of monotonic time, not wall clock | 2353 | // The interval given is in terms of monotonic time, not wall clock | ||
| 2531 | // time. See [func@GLib.get_monotonic_time]. | 2354 | // time. See [func@GLib.get_monotonic_time]. | ||
| 2532 | func TimeoutSourceNew(IntervalVar uint) *Source { | 2355 | func TimeoutSourceNew(IntervalVar uint) *Source { | ||
| 2533 | - | core.LazyRegister(&xTimeoutSourceNew, "GLIB", "g_timeout_source_new", false) | |||
| 2534 | - | ||||
| 2535 | cret := xTimeoutSourceNew(IntervalVar) | 2356 | cret := xTimeoutSourceNew(IntervalVar) | ||
| 2536 | if cret == 0 { | 2357 | if cret == 0 { | ||
| 2537 | return nil | 2358 | return nil | ||
| @@ -2553,8 +2374,6 @@ var xTimeoutSourceNewSeconds func(uint) uintptr | |||||
| 2553 | // The interval given is in terms of monotonic time, not wall clock time. | 2374 | // The interval given is in terms of monotonic time, not wall clock time. | ||
| 2554 | // See [func@GLib.get_monotonic_time]. | 2375 | // See [func@GLib.get_monotonic_time]. | ||
| 2555 | func TimeoutSourceNewSeconds(IntervalVar uint) *Source { | 2376 | func TimeoutSourceNewSeconds(IntervalVar uint) *Source { | ||
| 2556 | - | core.LazyRegister(&xTimeoutSourceNewSeconds, "GLIB", "g_timeout_source_new_seconds", false) | |||
| 2557 | - | ||||
| 2558 | cret := xTimeoutSourceNewSeconds(IntervalVar) | 2377 | cret := xTimeoutSourceNewSeconds(IntervalVar) | ||
| 2559 | if cret == 0 { | 2378 | if cret == 0 { | ||
| 2560 | return nil | 2379 | return nil | ||
| @@ -2565,4 +2384,121 @@ func TimeoutSourceNewSeconds(IntervalVar uint) *Source { | |||||
| 2565 | func init() { | 2384 | func init() { | ||
| 2566 | core.SetPackageName("GLIB", "glib-2.0") | 2385 | core.SetPackageName("GLIB", "glib-2.0") | ||
| 2567 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | 2386 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | ||
| 2387 | + | var libs []uintptr | |||
| 2388 | + | for _, libPath := range core.GetPaths("GLIB") { | |||
| 2389 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 2390 | + | if err != nil { | |||
| 2391 | + | panic(err) | |||
| 2392 | + | } | |||
| 2393 | + | libs = append(libs, lib) | |||
| 2394 | + | } | |||
| 2395 | + | ||||
| 2396 | + | core.PuregoSafeRegister(&xChildWatchAdd, libs, "g_child_watch_add") | |||
| 2397 | + | core.PuregoSafeRegister(&xChildWatchAddFull, libs, "g_child_watch_add_full") | |||
| 2398 | + | core.PuregoSafeRegister(&xChildWatchSourceNew, libs, "g_child_watch_source_new") | |||
| 2399 | + | core.PuregoSafeRegister(&xClearHandleId, libs, "g_clear_handle_id") | |||
| 2400 | + | core.PuregoSafeRegister(&xGetCurrentTime, libs, "g_get_current_time") | |||
| 2401 | + | core.PuregoSafeRegister(&xGetMonotonicTime, libs, "g_get_monotonic_time") | |||
| 2402 | + | core.PuregoSafeRegister(&xGetMonotonicTimeNs, libs, "g_get_monotonic_time_ns") | |||
| 2403 | + | core.PuregoSafeRegister(&xGetRealTime, libs, "g_get_real_time") | |||
| 2404 | + | core.PuregoSafeRegister(&xIdleAdd, libs, "g_idle_add") | |||
| 2405 | + | core.PuregoSafeRegister(&xIdleAddFull, libs, "g_idle_add_full") | |||
| 2406 | + | core.PuregoSafeRegister(&xIdleAddOnce, libs, "g_idle_add_once") | |||
| 2407 | + | core.PuregoSafeRegister(&xIdleRemoveByData, libs, "g_idle_remove_by_data") | |||
| 2408 | + | core.PuregoSafeRegister(&xIdleSourceNew, libs, "g_idle_source_new") | |||
| 2409 | + | core.PuregoSafeRegister(&xMainContextDefault, libs, "g_main_context_default") | |||
| 2410 | + | core.PuregoSafeRegister(&xMainContextGetThreadDefault, libs, "g_main_context_get_thread_default") | |||
| 2411 | + | core.PuregoSafeRegister(&xMainContextRefThreadDefault, libs, "g_main_context_ref_thread_default") | |||
| 2412 | + | core.PuregoSafeRegister(&xMainCurrentSource, libs, "g_main_current_source") | |||
| 2413 | + | core.PuregoSafeRegister(&xMainDepth, libs, "g_main_depth") | |||
| 2414 | + | core.PuregoSafeRegister(&xSourceRemove, libs, "g_source_remove") | |||
| 2415 | + | core.PuregoSafeRegister(&xSourceRemoveByFuncsUserData, libs, "g_source_remove_by_funcs_user_data") | |||
| 2416 | + | core.PuregoSafeRegister(&xSourceRemoveByUserData, libs, "g_source_remove_by_user_data") | |||
| 2417 | + | core.PuregoSafeRegister(&xSourceSetNameById, libs, "g_source_set_name_by_id") | |||
| 2418 | + | core.PuregoSafeRegister(&xTimeoutAdd, libs, "g_timeout_add") | |||
| 2419 | + | core.PuregoSafeRegister(&xTimeoutAddFull, libs, "g_timeout_add_full") | |||
| 2420 | + | core.PuregoSafeRegister(&xTimeoutAddOnce, libs, "g_timeout_add_once") | |||
| 2421 | + | core.PuregoSafeRegister(&xTimeoutAddSeconds, libs, "g_timeout_add_seconds") | |||
| 2422 | + | core.PuregoSafeRegister(&xTimeoutAddSecondsFull, libs, "g_timeout_add_seconds_full") | |||
| 2423 | + | core.PuregoSafeRegister(&xTimeoutAddSecondsOnce, libs, "g_timeout_add_seconds_once") | |||
| 2424 | + | core.PuregoSafeRegister(&xTimeoutSourceNew, libs, "g_timeout_source_new") | |||
| 2425 | + | core.PuregoSafeRegister(&xTimeoutSourceNewSeconds, libs, "g_timeout_source_new_seconds") | |||
| 2426 | + | ||||
| 2427 | + | core.PuregoSafeRegister(&xMainContextGLibType, libs, "g_main_context_get_type") | |||
| 2428 | + | ||||
| 2429 | + | core.PuregoSafeRegister(&xNewMainContext, libs, "g_main_context_new") | |||
| 2430 | + | core.PuregoSafeRegister(&xNewMainContextWithFlags, libs, "g_main_context_new_with_flags") | |||
| 2431 | + | ||||
| 2432 | + | core.PuregoSafeRegister(&xMainContextAcquire, libs, "g_main_context_acquire") | |||
| 2433 | + | core.PuregoSafeRegister(&xMainContextAddPoll, libs, "g_main_context_add_poll") | |||
| 2434 | + | core.PuregoSafeRegister(&xMainContextCheck, libs, "g_main_context_check") | |||
| 2435 | + | core.PuregoSafeRegister(&xMainContextDispatch, libs, "g_main_context_dispatch") | |||
| 2436 | + | core.PuregoSafeRegister(&xMainContextFindSourceByFuncsUserData, libs, "g_main_context_find_source_by_funcs_user_data") | |||
| 2437 | + | core.PuregoSafeRegister(&xMainContextFindSourceById, libs, "g_main_context_find_source_by_id") | |||
| 2438 | + | core.PuregoSafeRegister(&xMainContextFindSourceByUserData, libs, "g_main_context_find_source_by_user_data") | |||
| 2439 | + | core.PuregoSafeRegister(&xMainContextGetPollFunc, libs, "g_main_context_get_poll_func") | |||
| 2440 | + | core.PuregoSafeRegister(&xMainContextInvoke, libs, "g_main_context_invoke") | |||
| 2441 | + | core.PuregoSafeRegister(&xMainContextInvokeFull, libs, "g_main_context_invoke_full") | |||
| 2442 | + | core.PuregoSafeRegister(&xMainContextIsOwner, libs, "g_main_context_is_owner") | |||
| 2443 | + | core.PuregoSafeRegister(&xMainContextIteration, libs, "g_main_context_iteration") | |||
| 2444 | + | core.PuregoSafeRegister(&xMainContextPending, libs, "g_main_context_pending") | |||
| 2445 | + | core.PuregoSafeRegister(&xMainContextPopThreadDefault, libs, "g_main_context_pop_thread_default") | |||
| 2446 | + | core.PuregoSafeRegister(&xMainContextPrepare, libs, "g_main_context_prepare") | |||
| 2447 | + | core.PuregoSafeRegister(&xMainContextPushThreadDefault, libs, "g_main_context_push_thread_default") | |||
| 2448 | + | core.PuregoSafeRegister(&xMainContextPusherNew, libs, "g_main_context_pusher_new") | |||
| 2449 | + | core.PuregoSafeRegister(&xMainContextQuery, libs, "g_main_context_query") | |||
| 2450 | + | core.PuregoSafeRegister(&xMainContextRef, libs, "g_main_context_ref") | |||
| 2451 | + | core.PuregoSafeRegister(&xMainContextRelease, libs, "g_main_context_release") | |||
| 2452 | + | core.PuregoSafeRegister(&xMainContextRemovePoll, libs, "g_main_context_remove_poll") | |||
| 2453 | + | core.PuregoSafeRegister(&xMainContextSetPollFunc, libs, "g_main_context_set_poll_func") | |||
| 2454 | + | core.PuregoSafeRegister(&xMainContextUnref, libs, "g_main_context_unref") | |||
| 2455 | + | core.PuregoSafeRegister(&xMainContextWait, libs, "g_main_context_wait") | |||
| 2456 | + | core.PuregoSafeRegister(&xMainContextWakeup, libs, "g_main_context_wakeup") | |||
| 2457 | + | ||||
| 2458 | + | core.PuregoSafeRegister(&xMainLoopGLibType, libs, "g_main_loop_get_type") | |||
| 2459 | + | ||||
| 2460 | + | core.PuregoSafeRegister(&xNewMainLoop, libs, "g_main_loop_new") | |||
| 2461 | + | ||||
| 2462 | + | core.PuregoSafeRegister(&xMainLoopGetContext, libs, "g_main_loop_get_context") | |||
| 2463 | + | core.PuregoSafeRegister(&xMainLoopIsRunning, libs, "g_main_loop_is_running") | |||
| 2464 | + | core.PuregoSafeRegister(&xMainLoopQuit, libs, "g_main_loop_quit") | |||
| 2465 | + | core.PuregoSafeRegister(&xMainLoopRef, libs, "g_main_loop_ref") | |||
| 2466 | + | core.PuregoSafeRegister(&xMainLoopRun, libs, "g_main_loop_run") | |||
| 2467 | + | core.PuregoSafeRegister(&xMainLoopUnref, libs, "g_main_loop_unref") | |||
| 2468 | + | ||||
| 2469 | + | core.PuregoSafeRegister(&xSourceGLibType, libs, "g_source_get_type") | |||
| 2470 | + | ||||
| 2471 | + | core.PuregoSafeRegister(&xNewSource, libs, "g_source_new") | |||
| 2472 | + | ||||
| 2473 | + | core.PuregoSafeRegister(&xSourceAddChildSource, libs, "g_source_add_child_source") | |||
| 2474 | + | core.PuregoSafeRegister(&xSourceAddPoll, libs, "g_source_add_poll") | |||
| 2475 | + | core.PuregoSafeRegister(&xSourceAddUnixFd, libs, "g_source_add_unix_fd") | |||
| 2476 | + | core.PuregoSafeRegister(&xSourceAttach, libs, "g_source_attach") | |||
| 2477 | + | core.PuregoSafeRegister(&xSourceDestroy, libs, "g_source_destroy") | |||
| 2478 | + | core.PuregoSafeRegister(&xSourceDupContext, libs, "g_source_dup_context") | |||
| 2479 | + | core.PuregoSafeRegister(&xSourceGetCanRecurse, libs, "g_source_get_can_recurse") | |||
| 2480 | + | core.PuregoSafeRegister(&xSourceGetContext, libs, "g_source_get_context") | |||
| 2481 | + | core.PuregoSafeRegister(&xSourceGetCurrentTime, libs, "g_source_get_current_time") | |||
| 2482 | + | core.PuregoSafeRegister(&xSourceGetId, libs, "g_source_get_id") | |||
| 2483 | + | core.PuregoSafeRegister(&xSourceGetName, libs, "g_source_get_name") | |||
| 2484 | + | core.PuregoSafeRegister(&xSourceGetPriority, libs, "g_source_get_priority") | |||
| 2485 | + | core.PuregoSafeRegister(&xSourceGetReadyTime, libs, "g_source_get_ready_time") | |||
| 2486 | + | core.PuregoSafeRegister(&xSourceGetTime, libs, "g_source_get_time") | |||
| 2487 | + | core.PuregoSafeRegister(&xSourceIsDestroyed, libs, "g_source_is_destroyed") | |||
| 2488 | + | core.PuregoSafeRegister(&xSourceModifyUnixFd, libs, "g_source_modify_unix_fd") | |||
| 2489 | + | core.PuregoSafeRegister(&xSourceQueryUnixFd, libs, "g_source_query_unix_fd") | |||
| 2490 | + | core.PuregoSafeRegister(&xSourceRef, libs, "g_source_ref") | |||
| 2491 | + | core.PuregoSafeRegister(&xSourceRemoveChildSource, libs, "g_source_remove_child_source") | |||
| 2492 | + | core.PuregoSafeRegister(&xSourceRemovePoll, libs, "g_source_remove_poll") | |||
| 2493 | + | core.PuregoSafeRegister(&xSourceRemoveUnixFd, libs, "g_source_remove_unix_fd") | |||
| 2494 | + | core.PuregoSafeRegister(&xSourceSetCallback, libs, "g_source_set_callback") | |||
| 2495 | + | core.PuregoSafeRegister(&xSourceSetCallbackIndirect, libs, "g_source_set_callback_indirect") | |||
| 2496 | + | core.PuregoSafeRegister(&xSourceSetCanRecurse, libs, "g_source_set_can_recurse") | |||
| 2497 | + | core.PuregoSafeRegister(&xSourceSetDisposeFunction, libs, "g_source_set_dispose_function") | |||
| 2498 | + | core.PuregoSafeRegister(&xSourceSetFuncs, libs, "g_source_set_funcs") | |||
| 2499 | + | core.PuregoSafeRegister(&xSourceSetName, libs, "g_source_set_name") | |||
| 2500 | + | core.PuregoSafeRegister(&xSourceSetPriority, libs, "g_source_set_priority") | |||
| 2501 | + | core.PuregoSafeRegister(&xSourceSetReadyTime, libs, "g_source_set_ready_time") | |||
| 2502 | + | core.PuregoSafeRegister(&xSourceSetStaticName, libs, "g_source_set_static_name") | |||
| 2503 | + | core.PuregoSafeRegister(&xSourceUnref, libs, "g_source_unref") | |||
| 2568 | } | 2504 | } | ||