Revert "chore(deps): pin puregotk nil-signal fix"
This reverts commit a161e348e2093172038390b0906448f0ae979a0d.
- commit
- 40378d5e4fd2372d054e49168ab2a6f67aedd0fd
- author
- brice · · 2026-07-14 17:59 UTC
- parent
- 8d647bb
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
905 files · +25263 -27842
M go.mod +1 -1
| @@ -11,7 +11,7 @@ require ( | |||
| 11 | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | |
| 12 | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | |
| 13 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | |
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | |
| 14 | + | github.com/bnema/puregotk v0.7.0 | |
| 15 | 15 | github.com/charmbracelet/bubbles v1.0.0 | |
| 16 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | |
| 17 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | |
| @@ -11,7 +11,7 @@ require ( | |||||
| 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | ||
| 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | ||
| 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | ||
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | 14 | + | github.com/bnema/puregotk v0.7.0 |
| 15 | github.com/charmbracelet/bubbles v1.0.0 | 15 | github.com/charmbracelet/bubbles v1.0.0 | ||
| 16 | github.com/charmbracelet/bubbletea v1.3.10 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | ||
| 17 | github.com/charmbracelet/lipgloss v1.1.0 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | ||
M go.sum +0 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/internal/core/core.go +4 -197 generated file: collapsed
M vendor/github.com/bnema/puregotk/pkg/core/core.go +0 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-dialog.go +64 -99 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-window.go +62 -95 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-accent-color.go +15 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-action-row.go +29 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-alert-dialog.go +47 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-target.go +27 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-util.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation.go +26 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application-window.go +22 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-avatar.go +25 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-banner.go +26 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bin.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bottom-sheet.go +38 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint-bin.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint.go +37 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-content.go +22 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-row.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-dots.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-lines.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel.go +37 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-layout.go +20 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-scrollable.go +22 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp.go +22 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-combo-row.go +33 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-dialog.go +38 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-easing.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-entry-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-enum-list-model.go +22 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-expander-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-flap.go +48 -61 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-fold-threshold-policy.go +1 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-header-bar.go +33 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-inline-view-switcher.go +24 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout-slot.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout.go +17 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-leaflet.go +56 -69 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-length-unit.go +14 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-main.go +15 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-message-dialog.go +44 -63 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-multi-layout-view.go +23 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-direction.go +1 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-split-view.go +32 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-view.go +49 -60 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-overlay-split-view.go +38 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-password-entry-row.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-dialog.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-group.go +26 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-page.go +33 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-row.go +22 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-window.go +29 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcut-label.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-dialog.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-item.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-section.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-item.go +37 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-section.go +27 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar.go +39 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spin-row.go +34 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner-paintable.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-split-button.go +34 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-animation.go +30 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-params.go +21 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-squeezer.go +44 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-status-page.go +24 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-style-manager.go +28 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipe-tracker.go +30 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipeable.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-switch-row.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-bar.go +32 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-button.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-overview.go +37 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-view.go +87 -123 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-timed-animation.go +28 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast-overlay.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast.go +36 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toggle-group.go +51 -64 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toolbar-view.go +35 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-version.go +16 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-stack.go +62 -78 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-bar.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-sidebar.go +22 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-title.go +23 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher.go +20 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window-title.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window.go +22 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-box.go +46 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-layout.go +46 -57 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/cairo/main.go +79 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkapplaunchcontext.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairo.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairocontext.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcicpparams.go +25 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkclipboard.go +32 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcolorstate.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentdeserializer.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentformats.go +31 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentprovider.go +28 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentserializer.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcursor.go +21 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevice.go +33 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicepad.go +22 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicetool.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplay.go +43 -51 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplaymanager.go +20 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexture.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexturebuilder.go +41 -53 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrag.go +28 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurface.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurfacesize.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrawcontext.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrop.go +24 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkenums.go +1 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkevents.go +118 -120 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframeclock.go +24 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframetimings.go +20 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkglcontext.go +36 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexture.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexturebuilder.go +35 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkkeys.go +22 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexture.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexturebuilder.go +35 -42 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmonitor.go +27 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpaintable.go +33 -63 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpango.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpixbuf.go +12 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopup.go +26 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopuplayout.go +32 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkrgba.go +21 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkseat.go +20 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksnapshot.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksurface.go +40 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktexture.go +31 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevel.go +66 -157 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevellayout.go +25 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevelsize.go +16 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktypes.go +72 -95 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkvulkancontext.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-animation.go +32 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-core.go +0 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-io.go +23 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-loader.go +22 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-simple-anim.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-transform.go +1 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf.go +79 -102 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/main.go +17 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gaction.go +31 -59 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactiongroup.go +39 -96 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactionmap.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gappinfo.go +116 -244 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplication.go +55 -79 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplicationcommandline.go +27 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncinitable.go +22 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncresult.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedinputstream.go +29 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedoutputstream.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbytesicon.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcancellable.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcharsetconverter.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcontenttype.go +26 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverter.go +20 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverterinputstream.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverteroutputstream.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcredentials.go +21 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatagrambased.go +30 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatainputstream.go +35 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdataoutputstream.go +23 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusactiongroup.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusaddress.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusauthobserver.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusconnection.go +66 -77 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbuserror.go +18 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusinterface.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusinterfaceskeleton.go +24 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusintrospection.go +56 -54 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmenumodel.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmessage.go +64 -88 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmethodinvocation.go +30 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusnameowning.go +15 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusnamewatching.go +15 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobject.go +17 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanager.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerclient.go +23 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerserver.go +20 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectproxy.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectskeleton.go +18 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusproxy.go +38 -42 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusserver.go +20 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusutils.go +22 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdebugcontroller.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdebugcontrollerdbus.go +14 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdrive.go +82 -214 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsclientconnection.go +24 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsconnection.go +80 -207 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsserverconnection.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gemblem.go +17 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gemblemedicon.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfile.go +450 -1148 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileattribute.go +19 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileenumerator.go +35 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileicon.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileinfo.go +84 -138 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileinputstream.go +23 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileiostream.go +27 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilemonitor.go +15 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilenamecompleter.go +16 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileoutputstream.go +27 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilterinputstream.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilteroutputstream.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gicon.go +25 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetaddress.go +34 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetaddressmask.go +21 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetsocketaddress.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginitable.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginputstream.go +48 -52 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioenums.go +1 -90 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioerror.go +13 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giomodule.go +29 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioscheduler.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giostream.go +29 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giotypes.go +60 -70 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giptosmessage.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gipv6tclassmessage.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/glistmodel.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gliststore.go +24 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gloadableicon.go +23 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemoryinputstream.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemorymonitor.go +12 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemoryoutputstream.go +19 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmenu.go +50 -62 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmenumodel.go +33 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmount.go +86 -215 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmountoperation.go +32 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnativesocketaddress.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnativevolumemonitor.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkaddress.go +21 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworking.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkmonitor.go +31 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkservice.go +19 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnotification.go +26 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/goutputstream.go +72 -86 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpermission.go +33 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableinputstream.go +22 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableoutputstream.go +27 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableutils.go +15 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpowerprofilemonitor.go +16 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpropertyaction.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxy.go +27 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyaddress.go +21 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyaddressenumerator.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyresolver.go +27 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gremoteactiongroup.go +15 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gresolver.go +67 -75 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gresource.go +23 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gseekable.go +27 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettings.go +67 -99 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettingsbackend.go +24 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettingsschema.go +43 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleaction.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleactiongroup.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleasyncresult.go +40 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleiostream.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimplepermission.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleproxyresolver.go +16 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocket.go +72 -87 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketaddress.go +19 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketaddressenumerator.go +20 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketclient.go +44 -54 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketconnectable.go +17 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketconnection.go +21 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketcontrolmessage.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketlistener.go +25 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketservice.go +16 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsrvtarget.go +11 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsubprocess.go +39 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsubprocesslauncher.go +31 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtask.go +52 -70 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtcpconnection.go +14 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtcpwrapperconnection.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtestdbus.go +22 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gthemedicon.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gthreadedresolver.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gthreadedsocketservice.go +12 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsbackend.go +33 -69 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlscertificate.go +29 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsclientconnection.go +29 -55 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsconnection.go +46 -56 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsdatabase.go +48 -51 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsfiledatabase.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsinteraction.go +31 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlspassword.go +22 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsserverconnection.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixconnection.go +20 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixcredentialsmessage.go +17 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixfdlist.go +19 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixsocketaddress.go +22 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvfs.go +24 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvolume.go +58 -143 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvolumemonitor.go +19 -11 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gzlibcompressor.go +18 -9 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gzlibdecompressor.go +15 -3 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/main.go +11 -2 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gallocator.go +28 -32 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/garray.go +59 -82 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gasyncqueue.go +39 -56 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gatomic.go +34 -43 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbacktrace.go +15 -5 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbase64.go +19 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbitlock.go +24 -23 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbookmarkfile.go +61 -69 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcache.go +15 -10 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcharset.go +19 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gchecksum.go +25 -23 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcompletion.go +17 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gconvert.go +28 -25 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdataset.go +28 -36 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdate.go +65 -103 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdatetime.go +66 -107 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdir.go +19 -12 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/genviron.go +21 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gerror.go +29 -30 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gfileutils.go +38 -45 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ggettext.go +19 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghash.go +53 -81 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghmac.go +24 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghook.go +26 -28 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghostutils.go +18 -11 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/giochannel.go +67 -83 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gkeyfile.go +62 -72 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/glib-types.go +12 -4 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/glist.go +11 -2 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmain.go +117 -181 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmappedfile.go +21 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmarkup.go +43 -51 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmem.go +31 -44 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmessages.go +45 -70
| @@ -5,6 +5,7 @@ import ( | |||
| 5 | 5 | "structs" | |
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | + | "github.com/bnema/purego" | |
| 8 | 9 | "github.com/bnema/puregotk/pkg/core" | |
| 9 | 10 | ) | |
| 10 | 11 | ||
| @@ -161,8 +162,6 @@ const ( | |||
| 161 | 162 | var xAssertWarning func(string, string, int, string, string) | |
| 162 | 163 | ||
| 163 | 164 | func AssertWarning(LogDomainVar string, FileVar string, LineVar int, PrettyFunctionVar string, ExpressionVar string) { | |
| 164 | - | core.LazyRegister(&xAssertWarning, "GLIB", "g_assert_warning", false) | |
| 165 | - | ||
| 166 | 165 | xAssertWarning(LogDomainVar, FileVar, LineVar, PrettyFunctionVar, ExpressionVar) | |
| 167 | 166 | } | |
| 168 | 167 | ||
| @@ -181,8 +180,6 @@ var xLog func(uintptr, LogLevelFlags, string, ...interface{}) | |||
| 181 | 180 | // If [structured logging is enabled](logging.html#using-structured-logging) this will | |
| 182 | 181 | // output via the structured log writer function (see [func@GLib.log_set_writer_func]). | |
| 183 | 182 | func Log(LogDomainVar *string, LogLevelVar LogLevelFlags, FormatVar string, varArgs ...interface{}) { | |
| 184 | - | core.LazyRegister(&xLog, "GLIB", "g_log", false) | |
| 185 | - | ||
| 186 | 183 | LogDomainVarPtr := core.GStrdupNullable(LogDomainVar) | |
| 187 | 184 | defer core.GFreeNullable(LogDomainVarPtr) | |
| 188 | 185 | ||
| @@ -223,8 +220,6 @@ var xLogDefaultHandler func(uintptr, LogLevelFlags, uintptr, uintptr) | |||
| 223 | 220 | // This has no effect if structured logging is enabled; see | |
| 224 | 221 | // [Using Structured Logging](logging.html#using-structured-logging). | |
| 225 | 222 | func LogDefaultHandler(LogDomainVar *string, LogLevelVar LogLevelFlags, MessageVar *string, UnusedDataVar uintptr) { | |
| 226 | - | core.LazyRegister(&xLogDefaultHandler, "GLIB", "g_log_default_handler", false) | |
| 227 | - | ||
| 228 | 223 | LogDomainVarPtr := core.GStrdupNullable(LogDomainVar) | |
| 229 | 224 | defer core.GFreeNullable(LogDomainVarPtr) | |
| 230 | 225 | ||
| @@ -268,8 +263,6 @@ var xLogGetAlwaysFatal func() LogLevelFlags | |||
| 268 | 263 | // | |
| 269 | 264 | // ``` | |
| 270 | 265 | func LogGetAlwaysFatal() LogLevelFlags { | |
| 271 | - | core.LazyRegister(&xLogGetAlwaysFatal, "GLIB", "g_log_get_always_fatal", false) | |
| 272 | - | ||
| 273 | 266 | cret := xLogGetAlwaysFatal() | |
| 274 | 267 | return cret | |
| 275 | 268 | } | |
| @@ -286,8 +279,6 @@ var xLogGetDebugEnabled func() bool | |||
| 286 | 279 | // `DEBUG_INVOCATION`, nor [func@GLib.log_writer_default_set_debug_domains]; see | |
| 287 | 280 | // the docs for [func@GLib.log_set_debug_enabled]. | |
| 288 | 281 | func LogGetDebugEnabled() bool { | |
| 289 | - | core.LazyRegister(&xLogGetDebugEnabled, "GLIB", "g_log_get_debug_enabled", false) | |
| 290 | - | ||
| 291 | 282 | cret := xLogGetDebugEnabled() | |
| 292 | 283 | return cret | |
| 293 | 284 | } | |
| @@ -299,8 +290,6 @@ var xLogRemoveHandler func(string, uint) | |||
| 299 | 290 | // This has no effect if structured logging is enabled; see | |
| 300 | 291 | // [Using Structured Logging](logging.html#using-structured-logging). | |
| 301 | 292 | func LogRemoveHandler(LogDomainVar string, HandlerIdVar uint) { | |
| 302 | - | core.LazyRegister(&xLogRemoveHandler, "GLIB", "g_log_remove_handler", false) | |
| 303 | - | ||
| 304 | 293 | xLogRemoveHandler(LogDomainVar, HandlerIdVar) | |
| 305 | 294 | } | |
| 306 | 295 | ||
| @@ -324,8 +313,6 @@ var xLogSetAlwaysFatal func(LogLevelFlags) LogLevelFlags | |||
| 324 | 313 | // otherwise it is up to the writer function to determine which log messages | |
| 325 | 314 | // are fatal. See [Using Structured Logging](logging.html#using-structured-logging). | |
| 326 | 315 | func LogSetAlwaysFatal(FatalMaskVar LogLevelFlags) LogLevelFlags { | |
| 327 | - | core.LazyRegister(&xLogSetAlwaysFatal, "GLIB", "g_log_set_always_fatal", false) | |
| 328 | - | ||
| 329 | 316 | cret := xLogSetAlwaysFatal(FatalMaskVar) | |
| 330 | 317 | return cret | |
| 331 | 318 | } | |
| @@ -341,8 +328,6 @@ var xLogSetDebugEnabled func(bool) | |||
| 341 | 328 | // Note that this should not be used from within library code to enable debug | |
| 342 | 329 | // output — it is intended for external use. | |
| 343 | 330 | func LogSetDebugEnabled(EnabledVar bool) { | |
| 344 | - | core.LazyRegister(&xLogSetDebugEnabled, "GLIB", "g_log_set_debug_enabled", false) | |
| 345 | - | ||
| 346 | 331 | xLogSetDebugEnabled(EnabledVar) | |
| 347 | 332 | } | |
| 348 | 333 | ||
| @@ -357,8 +342,6 @@ var xLogSetDefaultHandler func(uintptr, uintptr) uintptr | |||
| 357 | 342 | // This has no effect if structured logging is enabled; see | |
| 358 | 343 | // [Using Structured Logging](logging.html#using-structured-logging). | |
| 359 | 344 | func LogSetDefaultHandler(LogFuncVar *LogFunc, UserDataVar uintptr) uintptr { | |
| 360 | - | core.LazyRegister(&xLogSetDefaultHandler, "GLIB", "g_log_set_default_handler", false) | |
| 361 | - | ||
| 362 | 345 | cret := xLogSetDefaultHandler(NewCallback(LogFuncVar), UserDataVar) | |
| 363 | 346 | return cret | |
| 364 | 347 | } | |
| @@ -380,8 +363,6 @@ var xLogSetFatalMask func(string, LogLevelFlags) LogLevelFlags | |||
| 380 | 363 | // [flags@GLib.LogLevelFlags.LEVEL_WARNING], [flags@GLib.LogLevelFlags.LEVEL_MESSAGE], [flags@GLib.LogLevelFlags.LEVEL_INFO] or | |
| 381 | 364 | // [flags@GLib.LogLevelFlags.LEVEL_DEBUG] as fatal except inside of test programs. | |
| 382 | 365 | func LogSetFatalMask(LogDomainVar string, FatalMaskVar LogLevelFlags) LogLevelFlags { | |
| 383 | - | core.LazyRegister(&xLogSetFatalMask, "GLIB", "g_log_set_fatal_mask", false) | |
| 384 | - | ||
| 385 | 366 | cret := xLogSetFatalMask(LogDomainVar, FatalMaskVar) | |
| 386 | 367 | return cret | |
| 387 | 368 | } | |
| @@ -432,8 +413,6 @@ var xLogSetHandler func(uintptr, LogLevelFlags, uintptr, uintptr) uint | |||
| 432 | 413 | // | |
| 433 | 414 | // ``` | |
| 434 | 415 | func LogSetHandler(LogDomainVar *string, LogLevelsVar LogLevelFlags, LogFuncVar *LogFunc, UserDataVar uintptr) uint { | |
| 435 | - | core.LazyRegister(&xLogSetHandler, "GLIB", "g_log_set_handler", false) | |
| 436 | - | ||
| 437 | 416 | LogDomainVarPtr := core.GStrdupNullable(LogDomainVar) | |
| 438 | 417 | defer core.GFreeNullable(LogDomainVarPtr) | |
| 439 | 418 | ||
| @@ -451,8 +430,6 @@ var xLogSetHandlerFull func(uintptr, LogLevelFlags, uintptr, uintptr, uintptr) u | |||
| 451 | 430 | // The `log_domain` parameter can be set to `NULL` or an empty string to use the default | |
| 452 | 431 | // application domain. | |
| 453 | 432 | func LogSetHandlerFull(LogDomainVar *string, LogLevelsVar LogLevelFlags, LogFuncVar *LogFunc, UserDataVar uintptr, DestroyVar *DestroyNotify) uint { | |
| 454 | - | core.LazyRegister(&xLogSetHandlerFull, "GLIB", "g_log_set_handler_full", false) | |
| 455 | - | ||
| 456 | 433 | LogDomainVarPtr := core.GStrdupNullable(LogDomainVar) | |
| 457 | 434 | defer core.GFreeNullable(LogDomainVarPtr) | |
| 458 | 435 | ||
| @@ -474,8 +451,6 @@ var xLogSetWriterFunc func(uintptr, uintptr, uintptr) | |||
| 474 | 451 | // | |
| 475 | 452 | // There can only be one writer function. It is an error to set more than one. | |
| 476 | 453 | func LogSetWriterFunc(FuncVar *LogWriterFunc, UserDataVar uintptr, UserDataFreeVar *DestroyNotify) { | |
| 477 | - | core.LazyRegister(&xLogSetWriterFunc, "GLIB", "g_log_set_writer_func", false) | |
| 478 | - | ||
| 479 | 454 | xLogSetWriterFunc(NewCallback(FuncVar), UserDataVar, NewCallback(UserDataFreeVar)) | |
| 480 | 455 | } | |
| 481 | 456 | ||
| @@ -575,8 +550,6 @@ var xLogStructured func(string, LogLevelFlags, ...interface{}) | |||
| 575 | 550 | // append a new-line character after the message, so you should not add one | |
| 576 | 551 | // manually to the format string. | |
| 577 | 552 | func LogStructured(LogDomainVar string, LogLevelVar LogLevelFlags, varArgs ...interface{}) { | |
| 578 | - | core.LazyRegister(&xLogStructured, "GLIB", "g_log_structured", false) | |
| 579 | - | ||
| 580 | 553 | xLogStructured(LogDomainVar, LogLevelVar, varArgs...) | |
| 581 | 554 | } | |
| 582 | 555 | ||
| @@ -594,16 +567,12 @@ var xLogStructuredArray func(LogLevelFlags, []LogField, uint) | |||
| 594 | 567 | // This assumes that @log_level is already present in @fields (typically as the | |
| 595 | 568 | // `PRIORITY` field). | |
| 596 | 569 | func LogStructuredArray(LogLevelVar LogLevelFlags, FieldsVar []LogField, NFieldsVar uint) { | |
| 597 | - | core.LazyRegister(&xLogStructuredArray, "GLIB", "g_log_structured_array", false) | |
| 598 | - | ||
| 599 | 570 | xLogStructuredArray(LogLevelVar, FieldsVar, NFieldsVar) | |
| 600 | 571 | } | |
| 601 | 572 | ||
| 602 | 573 | var xLogStructuredStandard func(string, LogLevelFlags, string, string, string, string, ...interface{}) | |
| 603 | 574 | ||
| 604 | 575 | func LogStructuredStandard(LogDomainVar string, LogLevelVar LogLevelFlags, FileVar string, LineVar string, FuncVar string, MessageFormatVar string, varArgs ...interface{}) { | |
| 605 | - | core.LazyRegister(&xLogStructuredStandard, "GLIB", "g_log_structured_standard", false) | |
| 606 | - | ||
| 607 | 576 | xLogStructuredStandard(LogDomainVar, LogLevelVar, FileVar, LineVar, FuncVar, MessageFormatVar, varArgs...) | |
| 608 | 577 | } | |
| 609 | 578 | ||
| @@ -625,8 +594,6 @@ var xLogVariant func(uintptr, LogLevelFlags, *Variant) | |||
| 625 | 594 | // | |
| 626 | 595 | // For more details on its usage and about the parameters, see [func@GLib.log_structured]. | |
| 627 | 596 | func LogVariant(LogDomainVar *string, LogLevelVar LogLevelFlags, FieldsVar *Variant) { | |
| 628 | - | core.LazyRegister(&xLogVariant, "GLIB", "g_log_variant", false) | |
| 629 | - | ||
| 630 | 597 | LogDomainVarPtr := core.GStrdupNullable(LogDomainVar) | |
| 631 | 598 | defer core.GFreeNullable(LogDomainVarPtr) | |
| 632 | 599 | ||
| @@ -658,8 +625,6 @@ var xLogWriterDefault func(LogLevelFlags, []LogField, uint, uintptr) LogWriterOu | |||
| 658 | 625 | // determine which messages are fatal. When using a custom writer function instead it is | |
| 659 | 626 | // up to the writer function to determine which log messages are fatal. | |
| 660 | 627 | func LogWriterDefault(LogLevelVar LogLevelFlags, FieldsVar []LogField, NFieldsVar uint, UserDataVar uintptr) LogWriterOutput { | |
| 661 | - | core.LazyRegister(&xLogWriterDefault, "GLIB", "g_log_writer_default", false) | |
| 662 | - | ||
| 663 | 628 | cret := xLogWriterDefault(LogLevelVar, FieldsVar, NFieldsVar, UserDataVar) | |
| 664 | 629 | return cret | |
| 665 | 630 | } | |
| @@ -671,8 +636,6 @@ var xLogWriterDefaultSetDebugDomains func(uintptr) | |||
| 671 | 636 | // | |
| 672 | 637 | // This function is thread-safe. | |
| 673 | 638 | func LogWriterDefaultSetDebugDomains(DomainsVar *string) { | |
| 674 | - | core.LazyRegister(&xLogWriterDefaultSetDebugDomains, "GLIB", "g_log_writer_default_set_debug_domains", false) | |
| 675 | - | ||
| 676 | 639 | DomainsVarPtr := core.GStrdupNullable(DomainsVar) | |
| 677 | 640 | defer core.GFreeNullable(DomainsVarPtr) | |
| 678 | 641 | ||
| @@ -697,8 +660,6 @@ var xLogWriterDefaultSetUseStderr func(bool) | |||
| 697 | 660 | // called at the very start of a program, before creating any other threads | |
| 698 | 661 | // or creating objects that could create worker threads of their own. | |
| 699 | 662 | func LogWriterDefaultSetUseStderr(UseStderrVar bool) { | |
| 700 | - | core.LazyRegister(&xLogWriterDefaultSetUseStderr, "GLIB", "g_log_writer_default_set_use_stderr", false) | |
| 701 | - | ||
| 702 | 663 | xLogWriterDefaultSetUseStderr(UseStderrVar) | |
| 703 | 664 | } | |
| 704 | 665 | ||
| @@ -736,8 +697,6 @@ var xLogWriterDefaultWouldDrop func(LogLevelFlags, uintptr) bool | |||
| 736 | 697 | // | |
| 737 | 698 | // ``` | |
| 738 | 699 | func LogWriterDefaultWouldDrop(LogLevelVar LogLevelFlags, LogDomainVar *string) bool { | |
| 739 | - | core.LazyRegister(&xLogWriterDefaultWouldDrop, "GLIB", "g_log_writer_default_would_drop", false) | |
| 740 | - | ||
| 741 | 700 | LogDomainVarPtr := core.GStrdupNullable(LogDomainVar) | |
| 742 | 701 | defer core.GFreeNullable(LogDomainVarPtr) | |
| 743 | 702 | ||
| @@ -759,8 +718,6 @@ var xLogWriterFormatFields func(LogLevelFlags, []LogField, uint, bool) string | |||
| 759 | 718 | // encoded in the character set of the current locale, which is not necessarily | |
| 760 | 719 | // UTF-8. | |
| 761 | 720 | func LogWriterFormatFields(LogLevelVar LogLevelFlags, FieldsVar []LogField, NFieldsVar uint, UseColorVar bool) string { | |
| 762 | - | core.LazyRegister(&xLogWriterFormatFields, "GLIB", "g_log_writer_format_fields", false) | |
| 763 | - | ||
| 764 | 721 | cret := xLogWriterFormatFields(LogLevelVar, FieldsVar, NFieldsVar, UseColorVar) | |
| 765 | 722 | return cret | |
| 766 | 723 | } | |
| @@ -777,8 +734,6 @@ var xLogWriterIsJournald func(int) bool | |||
| 777 | 734 | // is_journald = g_log_writer_is_journald (fileno (stderr)); | |
| 778 | 735 | // ``` | |
| 779 | 736 | func LogWriterIsJournald(OutputFdVar int) bool { | |
| 780 | - | core.LazyRegister(&xLogWriterIsJournald, "GLIB", "g_log_writer_is_journald", false) | |
| 781 | - | ||
| 782 | 737 | cret := xLogWriterIsJournald(OutputFdVar) | |
| 783 | 738 | return cret | |
| 784 | 739 | } | |
| @@ -797,8 +752,6 @@ var xLogWriterJournald func(LogLevelFlags, []LogField, uint, uintptr) LogWriterO | |||
| 797 | 752 | // If GLib has been compiled without systemd support, this function is still | |
| 798 | 753 | // defined, but will always return [enum@GLib.LogWriterOutput.UNHANDLED]. | |
| 799 | 754 | func LogWriterJournald(LogLevelVar LogLevelFlags, FieldsVar []LogField, NFieldsVar uint, UserDataVar uintptr) LogWriterOutput { | |
| 800 | - | core.LazyRegister(&xLogWriterJournald, "GLIB", "g_log_writer_journald", false) | |
| 801 | - | ||
| 802 | 755 | cret := xLogWriterJournald(LogLevelVar, FieldsVar, NFieldsVar, UserDataVar) | |
| 803 | 756 | return cret | |
| 804 | 757 | } | |
| @@ -823,8 +776,6 @@ var xLogWriterStandardStreams func(LogLevelFlags, []LogField, uint, uintptr) Log | |||
| 823 | 776 | // | |
| 824 | 777 | // This is suitable for use as a [type@GLib.LogWriterFunc]. | |
| 825 | 778 | func LogWriterStandardStreams(LogLevelVar LogLevelFlags, FieldsVar []LogField, NFieldsVar uint, UserDataVar uintptr) LogWriterOutput { | |
| 826 | - | core.LazyRegister(&xLogWriterStandardStreams, "GLIB", "g_log_writer_standard_streams", false) | |
| 827 | - | ||
| 828 | 779 | cret := xLogWriterStandardStreams(LogLevelVar, FieldsVar, NFieldsVar, UserDataVar) | |
| 829 | 780 | return cret | |
| 830 | 781 | } | |
| @@ -836,8 +787,6 @@ var xLogWriterSupportsColor func(int) bool | |||
| 836 | 787 | // | |
| 837 | 788 | // If so, they can safely be used when formatting log messages. | |
| 838 | 789 | func LogWriterSupportsColor(OutputFdVar int) bool { | |
| 839 | - | core.LazyRegister(&xLogWriterSupportsColor, "GLIB", "g_log_writer_supports_color", false) | |
| 840 | - | ||
| 841 | 790 | cret := xLogWriterSupportsColor(OutputFdVar) | |
| 842 | 791 | return cret | |
| 843 | 792 | } | |
| @@ -857,8 +806,6 @@ var xLogWriterSyslog func(LogLevelFlags, []LogField, uint, uintptr) LogWriterOut | |||
| 857 | 806 | // If syslog is not supported, this function is still defined, but will always | |
| 858 | 807 | // return [enum@GLib.LogWriterOutput.UNHANDLED]. | |
| 859 | 808 | func LogWriterSyslog(LogLevelVar LogLevelFlags, FieldsVar []LogField, NFieldsVar uint, UserDataVar uintptr) LogWriterOutput { | |
| 860 | - | core.LazyRegister(&xLogWriterSyslog, "GLIB", "g_log_writer_syslog", false) | |
| 861 | - | ||
| 862 | 809 | cret := xLogWriterSyslog(LogLevelVar, FieldsVar, NFieldsVar, UserDataVar) | |
| 863 | 810 | return cret | |
| 864 | 811 | } | |
| @@ -881,8 +828,6 @@ var xLogv func(uintptr, LogLevelFlags, string, []interface{}) | |||
| 881 | 828 | // The `log_domain` parameter can be set to `NULL` or an empty string to use the default | |
| 882 | 829 | // application domain. | |
| 883 | 830 | func Logv(LogDomainVar *string, LogLevelVar LogLevelFlags, FormatVar string, ArgsVar []interface{}) { | |
| 884 | - | core.LazyRegister(&xLogv, "GLIB", "g_logv", false) | |
| 885 | - | ||
| 886 | 831 | LogDomainVarPtr := core.GStrdupNullable(LogDomainVar) | |
| 887 | 832 | defer core.GFreeNullable(LogDomainVarPtr) | |
| 888 | 833 | ||
| @@ -903,8 +848,6 @@ var xPrint func(string, ...interface{}) | |||
| 903 | 848 | // use [func@GLib.log], [func@GLib.log_structured], or the convenience macros | |
| 904 | 849 | // [func@GLib.message], [func@GLib.warning] and [func@GLib.error]. | |
| 905 | 850 | func Print(FormatVar string, varArgs ...interface{}) { | |
| 906 | - | core.LazyRegister(&xPrint, "GLIB", "g_print", false) | |
| 907 | - | ||
| 908 | 851 | xPrint(FormatVar, varArgs...) | |
| 909 | 852 | } | |
| 910 | 853 | ||
| @@ -920,8 +863,6 @@ var xPrinterr func(string, ...interface{}) | |||
| 920 | 863 | // Instead [func@GLib.log] or [func@GLib.log_structured] should be used, or the convenience | |
| 921 | 864 | // macros [func@GLib.message], [func@GLib.warning] and [func@GLib.error]. | |
| 922 | 865 | func Printerr(FormatVar string, varArgs ...interface{}) { | |
| 923 | - | core.LazyRegister(&xPrinterr, "GLIB", "g_printerr", false) | |
| 924 | - | ||
| 925 | 866 | xPrinterr(FormatVar, varArgs...) | |
| 926 | 867 | } | |
| 927 | 868 | ||
| @@ -938,8 +879,6 @@ var xPrintfStringUpperBound func(string, []interface{}) uint | |||
| 938 | 879 | // return cases if necessary. It is recommended to not use `%lc` or `%ls` | |
| 939 | 880 | // placeholders in any case, as their behaviour is locale-dependent. | |
| 940 | 881 | func PrintfStringUpperBound(FormatVar string, ArgsVar []interface{}) uint { | |
| 941 | - | core.LazyRegister(&xPrintfStringUpperBound, "GLIB", "g_printf_string_upper_bound", false) | |
| 942 | - | ||
| 943 | 882 | cret := xPrintfStringUpperBound(FormatVar, ArgsVar) | |
| 944 | 883 | return cret | |
| 945 | 884 | } | |
| @@ -949,8 +888,6 @@ var xReturnIfFailWarning func(uintptr, string, uintptr) | |||
| 949 | 888 | // Internal function used to print messages from the public [func@GLib.return_if_fail] | |
| 950 | 889 | // and [func@GLib.return_val_if_fail] macros. | |
| 951 | 890 | func ReturnIfFailWarning(LogDomainVar *string, PrettyFunctionVar string, ExpressionVar *string) { | |
| 952 | - | core.LazyRegister(&xReturnIfFailWarning, "GLIB", "g_return_if_fail_warning", false) | |
| 953 | - | ||
| 954 | 891 | LogDomainVarPtr := core.GStrdupNullable(LogDomainVar) | |
| 955 | 892 | defer core.GFreeNullable(LogDomainVarPtr) | |
| 956 | 893 | ||
| @@ -978,8 +915,6 @@ var xSetPrintHandler func(uintptr) uintptr | |||
| 978 | 915 | // decorate its output and/or to write to `stderr` | |
| 979 | 916 | // in all platforms. Before GLib 2.76, this was `NULL`. | |
| 980 | 917 | func SetPrintHandler(FuncVar *PrintFunc) uintptr { | |
| 981 | - | core.LazyRegister(&xSetPrintHandler, "GLIB", "g_set_print_handler", false) | |
| 982 | - | ||
| 983 | 918 | cret := xSetPrintHandler(NewCallbackNullable(FuncVar)) | |
| 984 | 919 | return cret | |
| 985 | 920 | } | |
| @@ -1002,8 +937,6 @@ var xSetPrinterrHandler func(uintptr) uintptr | |||
| 1002 | 937 | // its output and/or to write to `stderr` in all platforms. | |
| 1003 | 938 | // Before GLib 2.76, this was `NULL`. | |
| 1004 | 939 | func SetPrinterrHandler(FuncVar *PrintFunc) uintptr { | |
| 1005 | - | core.LazyRegister(&xSetPrinterrHandler, "GLIB", "g_set_printerr_handler", false) | |
| 1006 | - | ||
| 1007 | 940 | cret := xSetPrinterrHandler(NewCallbackNullable(FuncVar)) | |
| 1008 | 941 | return cret | |
| 1009 | 942 | } | |
| @@ -1013,8 +946,6 @@ var xWarnMessage func(uintptr, string, int, string, uintptr) | |||
| 1013 | 946 | // Internal function used to print messages from the public [func@GLib.warn_if_reached] | |
| 1014 | 947 | // and [func@GLib.warn_if_fail] macros. | |
| 1015 | 948 | func WarnMessage(DomainVar *string, FileVar string, LineVar int, FuncVar string, WarnexprVar *string) { | |
| 1016 | - | core.LazyRegister(&xWarnMessage, "GLIB", "g_warn_message", false) | |
| 1017 | - | ||
| 1018 | 949 | DomainVarPtr := core.GStrdupNullable(DomainVar) | |
| 1019 | 950 | defer core.GFreeNullable(DomainVarPtr) | |
| 1020 | 951 | ||
| @@ -1027,4 +958,48 @@ func WarnMessage(DomainVar *string, FileVar string, LineVar int, FuncVar string, | |||
| 1027 | 958 | func init() { | |
| 1028 | 959 | core.SetPackageName("GLIB", "glib-2.0") | |
| 1029 | 960 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | |
| 961 | + | var libs []uintptr | |
| 962 | + | for _, libPath := range core.GetPaths("GLIB") { | |
| 963 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 964 | + | if err != nil { | |
| 965 | + | panic(err) | |
| 966 | + | } | |
| 967 | + | libs = append(libs, lib) | |
| 968 | + | } | |
| 969 | + | ||
| 970 | + | core.PuregoSafeRegister(&xAssertWarning, libs, "g_assert_warning") | |
| 971 | + | core.PuregoSafeRegister(&xLog, libs, "g_log") | |
| 972 | + | core.PuregoSafeRegister(&xLogDefaultHandler, libs, "g_log_default_handler") | |
| 973 | + | core.PuregoSafeRegister(&xLogGetAlwaysFatal, libs, "g_log_get_always_fatal") | |
| 974 | + | core.PuregoSafeRegister(&xLogGetDebugEnabled, libs, "g_log_get_debug_enabled") | |
| 975 | + | core.PuregoSafeRegister(&xLogRemoveHandler, libs, "g_log_remove_handler") | |
| 976 | + | core.PuregoSafeRegister(&xLogSetAlwaysFatal, libs, "g_log_set_always_fatal") | |
| 977 | + | core.PuregoSafeRegister(&xLogSetDebugEnabled, libs, "g_log_set_debug_enabled") | |
| 978 | + | core.PuregoSafeRegister(&xLogSetDefaultHandler, libs, "g_log_set_default_handler") | |
| 979 | + | core.PuregoSafeRegister(&xLogSetFatalMask, libs, "g_log_set_fatal_mask") | |
| 980 | + | core.PuregoSafeRegister(&xLogSetHandler, libs, "g_log_set_handler") | |
| 981 | + | core.PuregoSafeRegister(&xLogSetHandlerFull, libs, "g_log_set_handler_full") | |
| 982 | + | core.PuregoSafeRegister(&xLogSetWriterFunc, libs, "g_log_set_writer_func") | |
| 983 | + | core.PuregoSafeRegister(&xLogStructured, libs, "g_log_structured") | |
| 984 | + | core.PuregoSafeRegister(&xLogStructuredArray, libs, "g_log_structured_array") | |
| 985 | + | core.PuregoSafeRegister(&xLogStructuredStandard, libs, "g_log_structured_standard") | |
| 986 | + | core.PuregoSafeRegister(&xLogVariant, libs, "g_log_variant") | |
| 987 | + | core.PuregoSafeRegister(&xLogWriterDefault, libs, "g_log_writer_default") | |
| 988 | + | core.PuregoSafeRegister(&xLogWriterDefaultSetDebugDomains, libs, "g_log_writer_default_set_debug_domains") | |
| 989 | + | core.PuregoSafeRegister(&xLogWriterDefaultSetUseStderr, libs, "g_log_writer_default_set_use_stderr") | |
| 990 | + | core.PuregoSafeRegister(&xLogWriterDefaultWouldDrop, libs, "g_log_writer_default_would_drop") | |
| 991 | + | core.PuregoSafeRegister(&xLogWriterFormatFields, libs, "g_log_writer_format_fields") | |
| 992 | + | core.PuregoSafeRegister(&xLogWriterIsJournald, libs, "g_log_writer_is_journald") | |
| 993 | + | core.PuregoSafeRegister(&xLogWriterJournald, libs, "g_log_writer_journald") | |
| 994 | + | core.PuregoSafeRegister(&xLogWriterStandardStreams, libs, "g_log_writer_standard_streams") | |
| 995 | + | core.PuregoSafeRegister(&xLogWriterSupportsColor, libs, "g_log_writer_supports_color") | |
| 996 | + | core.PuregoSafeRegister(&xLogWriterSyslog, libs, "g_log_writer_syslog") | |
| 997 | + | core.PuregoSafeRegister(&xLogv, libs, "g_logv") | |
| 998 | + | core.PuregoSafeRegister(&xPrint, libs, "g_print") | |
| 999 | + | core.PuregoSafeRegister(&xPrinterr, libs, "g_printerr") | |
| 1000 | + | core.PuregoSafeRegister(&xPrintfStringUpperBound, libs, "g_printf_string_upper_bound") | |
| 1001 | + | core.PuregoSafeRegister(&xReturnIfFailWarning, libs, "g_return_if_fail_warning") | |
| 1002 | + | core.PuregoSafeRegister(&xSetPrintHandler, libs, "g_set_print_handler") | |
| 1003 | + | core.PuregoSafeRegister(&xSetPrinterrHandler, libs, "g_set_printerr_handler") | |
| 1004 | + | core.PuregoSafeRegister(&xWarnMessage, libs, "g_warn_message") | |
| 1030 | 1005 | } | |
| @@ -5,6 +5,7 @@ import ( | |||||
| 5 | "structs" | 5 | "structs" | ||
| 6 | "unsafe" | 6 | "unsafe" | ||
| 7 | 7 | ||||
| 8 | + | "github.com/bnema/purego" | |||
| 8 | "github.com/bnema/puregotk/pkg/core" | 9 | "github.com/bnema/puregotk/pkg/core" | ||
| 9 | ) | 10 | ) | ||
| 10 | 11 | ||||
| @@ -161,8 +162,6 @@ const ( | |||||
| 161 | var xAssertWarning func(string, string, int, string, string) | 162 | var xAssertWarning func(string, string, int, string, string) | ||
| 162 | 163 | ||||
| 163 | func AssertWarning(LogDomainVar string, FileVar string, LineVar int, PrettyFunctionVar string, ExpressionVar string) { | 164 | func AssertWarning(LogDomainVar string, FileVar string, LineVar int, PrettyFunctionVar string, ExpressionVar string) { | ||
| 164 | - | core.LazyRegister(&xAssertWarning, "GLIB", "g_assert_warning", false) | |||
| 165 | - | ||||
| 166 | xAssertWarning(LogDomainVar, FileVar, LineVar, PrettyFunctionVar, ExpressionVar) | 165 | xAssertWarning(LogDomainVar, FileVar, LineVar, PrettyFunctionVar, ExpressionVar) | ||
| 167 | } | 166 | } | ||
| 168 | 167 | ||||
| @@ -181,8 +180,6 @@ var xLog func(uintptr, LogLevelFlags, string, ...interface{}) | |||||
| 181 | // If [structured logging is enabled](logging.html#using-structured-logging) this will | 180 | // If [structured logging is enabled](logging.html#using-structured-logging) this will | ||
| 182 | // output via the structured log writer function (see [func@GLib.log_set_writer_func]). | 181 | // output via the structured log writer function (see [func@GLib.log_set_writer_func]). | ||
| 183 | func Log(LogDomainVar *string, LogLevelVar LogLevelFlags, FormatVar string, varArgs ...interface{}) { | 182 | func Log(LogDomainVar *string, LogLevelVar LogLevelFlags, FormatVar string, varArgs ...interface{}) { | ||
| 184 | - | core.LazyRegister(&xLog, "GLIB", "g_log", false) | |||
| 185 | - | ||||
| 186 | LogDomainVarPtr := core.GStrdupNullable(LogDomainVar) | 183 | LogDomainVarPtr := core.GStrdupNullable(LogDomainVar) | ||
| 187 | defer core.GFreeNullable(LogDomainVarPtr) | 184 | defer core.GFreeNullable(LogDomainVarPtr) | ||
| 188 | 185 | ||||
| @@ -223,8 +220,6 @@ var xLogDefaultHandler func(uintptr, LogLevelFlags, uintptr, uintptr) | |||||
| 223 | // This has no effect if structured logging is enabled; see | 220 | // This has no effect if structured logging is enabled; see | ||
| 224 | // [Using Structured Logging](logging.html#using-structured-logging). | 221 | // [Using Structured Logging](logging.html#using-structured-logging). | ||
| 225 | func LogDefaultHandler(LogDomainVar *string, LogLevelVar LogLevelFlags, MessageVar *string, UnusedDataVar uintptr) { | 222 | func LogDefaultHandler(LogDomainVar *string, LogLevelVar LogLevelFlags, MessageVar *string, UnusedDataVar uintptr) { | ||
| 226 | - | core.LazyRegister(&xLogDefaultHandler, "GLIB", "g_log_default_handler", false) | |||
| 227 | - | ||||
| 228 | LogDomainVarPtr := core.GStrdupNullable(LogDomainVar) | 223 | LogDomainVarPtr := core.GStrdupNullable(LogDomainVar) | ||
| 229 | defer core.GFreeNullable(LogDomainVarPtr) | 224 | defer core.GFreeNullable(LogDomainVarPtr) | ||
| 230 | 225 | ||||
| @@ -268,8 +263,6 @@ var xLogGetAlwaysFatal func() LogLevelFlags | |||||
| 268 | // | 263 | // | ||
| 269 | // ``` | 264 | // ``` | ||
| 270 | func LogGetAlwaysFatal() LogLevelFlags { | 265 | func LogGetAlwaysFatal() LogLevelFlags { | ||
| 271 | - | core.LazyRegister(&xLogGetAlwaysFatal, "GLIB", "g_log_get_always_fatal", false) | |||
| 272 | - | ||||
| 273 | cret := xLogGetAlwaysFatal() | 266 | cret := xLogGetAlwaysFatal() | ||
| 274 | return cret | 267 | return cret | ||
| 275 | } | 268 | } | ||
| @@ -286,8 +279,6 @@ var xLogGetDebugEnabled func() bool | |||||
| 286 | // `DEBUG_INVOCATION`, nor [func@GLib.log_writer_default_set_debug_domains]; see | 279 | // `DEBUG_INVOCATION`, nor [func@GLib.log_writer_default_set_debug_domains]; see | ||
| 287 | // the docs for [func@GLib.log_set_debug_enabled]. | 280 | // the docs for [func@GLib.log_set_debug_enabled]. | ||
| 288 | func LogGetDebugEnabled() bool { | 281 | func LogGetDebugEnabled() bool { | ||
| 289 | - | core.LazyRegister(&xLogGetDebugEnabled, "GLIB", "g_log_get_debug_enabled", false) | |||
| 290 | - | ||||
| 291 | cret := xLogGetDebugEnabled() | 282 | cret := xLogGetDebugEnabled() | ||
| 292 | return cret | 283 | return cret | ||
| 293 | } | 284 | } | ||
| @@ -299,8 +290,6 @@ var xLogRemoveHandler func(string, uint) | |||||
| 299 | // This has no effect if structured logging is enabled; see | 290 | // This has no effect if structured logging is enabled; see | ||
| 300 | // [Using Structured Logging](logging.html#using-structured-logging). | 291 | // [Using Structured Logging](logging.html#using-structured-logging). | ||
| 301 | func LogRemoveHandler(LogDomainVar string, HandlerIdVar uint) { | 292 | func LogRemoveHandler(LogDomainVar string, HandlerIdVar uint) { | ||
| 302 | - | core.LazyRegister(&xLogRemoveHandler, "GLIB", "g_log_remove_handler", false) | |||
| 303 | - | ||||
| 304 | xLogRemoveHandler(LogDomainVar, HandlerIdVar) | 293 | xLogRemoveHandler(LogDomainVar, HandlerIdVar) | ||
| 305 | } | 294 | } | ||
| 306 | 295 | ||||
| @@ -324,8 +313,6 @@ var xLogSetAlwaysFatal func(LogLevelFlags) LogLevelFlags | |||||
| 324 | // otherwise it is up to the writer function to determine which log messages | 313 | // otherwise it is up to the writer function to determine which log messages | ||
| 325 | // are fatal. See [Using Structured Logging](logging.html#using-structured-logging). | 314 | // are fatal. See [Using Structured Logging](logging.html#using-structured-logging). | ||
| 326 | func LogSetAlwaysFatal(FatalMaskVar LogLevelFlags) LogLevelFlags { | 315 | func LogSetAlwaysFatal(FatalMaskVar LogLevelFlags) LogLevelFlags { | ||
| 327 | - | core.LazyRegister(&xLogSetAlwaysFatal, "GLIB", "g_log_set_always_fatal", false) | |||
| 328 | - | ||||
| 329 | cret := xLogSetAlwaysFatal(FatalMaskVar) | 316 | cret := xLogSetAlwaysFatal(FatalMaskVar) | ||
| 330 | return cret | 317 | return cret | ||
| 331 | } | 318 | } | ||
| @@ -341,8 +328,6 @@ var xLogSetDebugEnabled func(bool) | |||||
| 341 | // Note that this should not be used from within library code to enable debug | 328 | // Note that this should not be used from within library code to enable debug | ||
| 342 | // output — it is intended for external use. | 329 | // output — it is intended for external use. | ||
| 343 | func LogSetDebugEnabled(EnabledVar bool) { | 330 | func LogSetDebugEnabled(EnabledVar bool) { | ||
| 344 | - | core.LazyRegister(&xLogSetDebugEnabled, "GLIB", "g_log_set_debug_enabled", false) | |||
| 345 | - | ||||
| 346 | xLogSetDebugEnabled(EnabledVar) | 331 | xLogSetDebugEnabled(EnabledVar) | ||
| 347 | } | 332 | } | ||
| 348 | 333 | ||||
| @@ -357,8 +342,6 @@ var xLogSetDefaultHandler func(uintptr, uintptr) uintptr | |||||
| 357 | // This has no effect if structured logging is enabled; see | 342 | // This has no effect if structured logging is enabled; see | ||
| 358 | // [Using Structured Logging](logging.html#using-structured-logging). | 343 | // [Using Structured Logging](logging.html#using-structured-logging). | ||
| 359 | func LogSetDefaultHandler(LogFuncVar *LogFunc, UserDataVar uintptr) uintptr { | 344 | func LogSetDefaultHandler(LogFuncVar *LogFunc, UserDataVar uintptr) uintptr { | ||
| 360 | - | core.LazyRegister(&xLogSetDefaultHandler, "GLIB", "g_log_set_default_handler", false) | |||
| 361 | - | ||||
| 362 | cret := xLogSetDefaultHandler(NewCallback(LogFuncVar), UserDataVar) | 345 | cret := xLogSetDefaultHandler(NewCallback(LogFuncVar), UserDataVar) | ||
| 363 | return cret | 346 | return cret | ||
| 364 | } | 347 | } | ||
| @@ -380,8 +363,6 @@ var xLogSetFatalMask func(string, LogLevelFlags) LogLevelFlags | |||||
| 380 | // [flags@GLib.LogLevelFlags.LEVEL_WARNING], [flags@GLib.LogLevelFlags.LEVEL_MESSAGE], [flags@GLib.LogLevelFlags.LEVEL_INFO] or | 363 | // [flags@GLib.LogLevelFlags.LEVEL_WARNING], [flags@GLib.LogLevelFlags.LEVEL_MESSAGE], [flags@GLib.LogLevelFlags.LEVEL_INFO] or | ||
| 381 | // [flags@GLib.LogLevelFlags.LEVEL_DEBUG] as fatal except inside of test programs. | 364 | // [flags@GLib.LogLevelFlags.LEVEL_DEBUG] as fatal except inside of test programs. | ||
| 382 | func LogSetFatalMask(LogDomainVar string, FatalMaskVar LogLevelFlags) LogLevelFlags { | 365 | func LogSetFatalMask(LogDomainVar string, FatalMaskVar LogLevelFlags) LogLevelFlags { | ||
| 383 | - | core.LazyRegister(&xLogSetFatalMask, "GLIB", "g_log_set_fatal_mask", false) | |||
| 384 | - | ||||
| 385 | cret := xLogSetFatalMask(LogDomainVar, FatalMaskVar) | 366 | cret := xLogSetFatalMask(LogDomainVar, FatalMaskVar) | ||
| 386 | return cret | 367 | return cret | ||
| 387 | } | 368 | } | ||
| @@ -432,8 +413,6 @@ var xLogSetHandler func(uintptr, LogLevelFlags, uintptr, uintptr) uint | |||||
| 432 | // | 413 | // | ||
| 433 | // ``` | 414 | // ``` | ||
| 434 | func LogSetHandler(LogDomainVar *string, LogLevelsVar LogLevelFlags, LogFuncVar *LogFunc, UserDataVar uintptr) uint { | 415 | func LogSetHandler(LogDomainVar *string, LogLevelsVar LogLevelFlags, LogFuncVar *LogFunc, UserDataVar uintptr) uint { | ||
| 435 | - | core.LazyRegister(&xLogSetHandler, "GLIB", "g_log_set_handler", false) | |||
| 436 | - | ||||
| 437 | LogDomainVarPtr := core.GStrdupNullable(LogDomainVar) | 416 | LogDomainVarPtr := core.GStrdupNullable(LogDomainVar) | ||
| 438 | defer core.GFreeNullable(LogDomainVarPtr) | 417 | defer core.GFreeNullable(LogDomainVarPtr) | ||
| 439 | 418 | ||||
| @@ -451,8 +430,6 @@ var xLogSetHandlerFull func(uintptr, LogLevelFlags, uintptr, uintptr, uintptr) u | |||||
| 451 | // The `log_domain` parameter can be set to `NULL` or an empty string to use the default | 430 | // The `log_domain` parameter can be set to `NULL` or an empty string to use the default | ||
| 452 | // application domain. | 431 | // application domain. | ||
| 453 | func LogSetHandlerFull(LogDomainVar *string, LogLevelsVar LogLevelFlags, LogFuncVar *LogFunc, UserDataVar uintptr, DestroyVar *DestroyNotify) uint { | 432 | func LogSetHandlerFull(LogDomainVar *string, LogLevelsVar LogLevelFlags, LogFuncVar *LogFunc, UserDataVar uintptr, DestroyVar *DestroyNotify) uint { | ||
| 454 | - | core.LazyRegister(&xLogSetHandlerFull, "GLIB", "g_log_set_handler_full", false) | |||
| 455 | - | ||||
| 456 | LogDomainVarPtr := core.GStrdupNullable(LogDomainVar) | 433 | LogDomainVarPtr := core.GStrdupNullable(LogDomainVar) | ||
| 457 | defer core.GFreeNullable(LogDomainVarPtr) | 434 | defer core.GFreeNullable(LogDomainVarPtr) | ||
| 458 | 435 | ||||
| @@ -474,8 +451,6 @@ var xLogSetWriterFunc func(uintptr, uintptr, uintptr) | |||||
| 474 | // | 451 | // | ||
| 475 | // There can only be one writer function. It is an error to set more than one. | 452 | // There can only be one writer function. It is an error to set more than one. | ||
| 476 | func LogSetWriterFunc(FuncVar *LogWriterFunc, UserDataVar uintptr, UserDataFreeVar *DestroyNotify) { | 453 | func LogSetWriterFunc(FuncVar *LogWriterFunc, UserDataVar uintptr, UserDataFreeVar *DestroyNotify) { | ||
| 477 | - | core.LazyRegister(&xLogSetWriterFunc, "GLIB", "g_log_set_writer_func", false) | |||
| 478 | - | ||||
| 479 | xLogSetWriterFunc(NewCallback(FuncVar), UserDataVar, NewCallback(UserDataFreeVar)) | 454 | xLogSetWriterFunc(NewCallback(FuncVar), UserDataVar, NewCallback(UserDataFreeVar)) | ||
| 480 | } | 455 | } | ||
| 481 | 456 | ||||
| @@ -575,8 +550,6 @@ var xLogStructured func(string, LogLevelFlags, ...interface{}) | |||||
| 575 | // append a new-line character after the message, so you should not add one | 550 | // append a new-line character after the message, so you should not add one | ||
| 576 | // manually to the format string. | 551 | // manually to the format string. | ||
| 577 | func LogStructured(LogDomainVar string, LogLevelVar LogLevelFlags, varArgs ...interface{}) { | 552 | func LogStructured(LogDomainVar string, LogLevelVar LogLevelFlags, varArgs ...interface{}) { | ||
| 578 | - | core.LazyRegister(&xLogStructured, "GLIB", "g_log_structured", false) | |||
| 579 | - | ||||
| 580 | xLogStructured(LogDomainVar, LogLevelVar, varArgs...) | 553 | xLogStructured(LogDomainVar, LogLevelVar, varArgs...) | ||
| 581 | } | 554 | } | ||
| 582 | 555 | ||||
| @@ -594,16 +567,12 @@ var xLogStructuredArray func(LogLevelFlags, []LogField, uint) | |||||
| 594 | // This assumes that @log_level is already present in @fields (typically as the | 567 | // This assumes that @log_level is already present in @fields (typically as the | ||
| 595 | // `PRIORITY` field). | 568 | // `PRIORITY` field). | ||
| 596 | func LogStructuredArray(LogLevelVar LogLevelFlags, FieldsVar []LogField, NFieldsVar uint) { | 569 | func LogStructuredArray(LogLevelVar LogLevelFlags, FieldsVar []LogField, NFieldsVar uint) { | ||
| 597 | - | core.LazyRegister(&xLogStructuredArray, "GLIB", "g_log_structured_array", false) | |||
| 598 | - | ||||
| 599 | xLogStructuredArray(LogLevelVar, FieldsVar, NFieldsVar) | 570 | xLogStructuredArray(LogLevelVar, FieldsVar, NFieldsVar) | ||
| 600 | } | 571 | } | ||
| 601 | 572 | ||||
| 602 | var xLogStructuredStandard func(string, LogLevelFlags, string, string, string, string, ...interface{}) | 573 | var xLogStructuredStandard func(string, LogLevelFlags, string, string, string, string, ...interface{}) | ||
| 603 | 574 | ||||
| 604 | func LogStructuredStandard(LogDomainVar string, LogLevelVar LogLevelFlags, FileVar string, LineVar string, FuncVar string, MessageFormatVar string, varArgs ...interface{}) { | 575 | func LogStructuredStandard(LogDomainVar string, LogLevelVar LogLevelFlags, FileVar string, LineVar string, FuncVar string, MessageFormatVar string, varArgs ...interface{}) { | ||
| 605 | - | core.LazyRegister(&xLogStructuredStandard, "GLIB", "g_log_structured_standard", false) | |||
| 606 | - | ||||
| 607 | xLogStructuredStandard(LogDomainVar, LogLevelVar, FileVar, LineVar, FuncVar, MessageFormatVar, varArgs...) | 576 | xLogStructuredStandard(LogDomainVar, LogLevelVar, FileVar, LineVar, FuncVar, MessageFormatVar, varArgs...) | ||
| 608 | } | 577 | } | ||
| 609 | 578 | ||||
| @@ -625,8 +594,6 @@ var xLogVariant func(uintptr, LogLevelFlags, *Variant) | |||||
| 625 | // | 594 | // | ||
| 626 | // For more details on its usage and about the parameters, see [func@GLib.log_structured]. | 595 | // For more details on its usage and about the parameters, see [func@GLib.log_structured]. | ||
| 627 | func LogVariant(LogDomainVar *string, LogLevelVar LogLevelFlags, FieldsVar *Variant) { | 596 | func LogVariant(LogDomainVar *string, LogLevelVar LogLevelFlags, FieldsVar *Variant) { | ||
| 628 | - | core.LazyRegister(&xLogVariant, "GLIB", "g_log_variant", false) | |||
| 629 | - | ||||
| 630 | LogDomainVarPtr := core.GStrdupNullable(LogDomainVar) | 597 | LogDomainVarPtr := core.GStrdupNullable(LogDomainVar) | ||
| 631 | defer core.GFreeNullable(LogDomainVarPtr) | 598 | defer core.GFreeNullable(LogDomainVarPtr) | ||
| 632 | 599 | ||||
| @@ -658,8 +625,6 @@ var xLogWriterDefault func(LogLevelFlags, []LogField, uint, uintptr) LogWriterOu | |||||
| 658 | // determine which messages are fatal. When using a custom writer function instead it is | 625 | // determine which messages are fatal. When using a custom writer function instead it is | ||
| 659 | // up to the writer function to determine which log messages are fatal. | 626 | // up to the writer function to determine which log messages are fatal. | ||
| 660 | func LogWriterDefault(LogLevelVar LogLevelFlags, FieldsVar []LogField, NFieldsVar uint, UserDataVar uintptr) LogWriterOutput { | 627 | func LogWriterDefault(LogLevelVar LogLevelFlags, FieldsVar []LogField, NFieldsVar uint, UserDataVar uintptr) LogWriterOutput { | ||
| 661 | - | core.LazyRegister(&xLogWriterDefault, "GLIB", "g_log_writer_default", false) | |||
| 662 | - | ||||
| 663 | cret := xLogWriterDefault(LogLevelVar, FieldsVar, NFieldsVar, UserDataVar) | 628 | cret := xLogWriterDefault(LogLevelVar, FieldsVar, NFieldsVar, UserDataVar) | ||
| 664 | return cret | 629 | return cret | ||
| 665 | } | 630 | } | ||
| @@ -671,8 +636,6 @@ var xLogWriterDefaultSetDebugDomains func(uintptr) | |||||
| 671 | // | 636 | // | ||
| 672 | // This function is thread-safe. | 637 | // This function is thread-safe. | ||
| 673 | func LogWriterDefaultSetDebugDomains(DomainsVar *string) { | 638 | func LogWriterDefaultSetDebugDomains(DomainsVar *string) { | ||
| 674 | - | core.LazyRegister(&xLogWriterDefaultSetDebugDomains, "GLIB", "g_log_writer_default_set_debug_domains", false) | |||
| 675 | - | ||||
| 676 | DomainsVarPtr := core.GStrdupNullable(DomainsVar) | 639 | DomainsVarPtr := core.GStrdupNullable(DomainsVar) | ||
| 677 | defer core.GFreeNullable(DomainsVarPtr) | 640 | defer core.GFreeNullable(DomainsVarPtr) | ||
| 678 | 641 | ||||
| @@ -697,8 +660,6 @@ var xLogWriterDefaultSetUseStderr func(bool) | |||||
| 697 | // called at the very start of a program, before creating any other threads | 660 | // called at the very start of a program, before creating any other threads | ||
| 698 | // or creating objects that could create worker threads of their own. | 661 | // or creating objects that could create worker threads of their own. | ||
| 699 | func LogWriterDefaultSetUseStderr(UseStderrVar bool) { | 662 | func LogWriterDefaultSetUseStderr(UseStderrVar bool) { | ||
| 700 | - | core.LazyRegister(&xLogWriterDefaultSetUseStderr, "GLIB", "g_log_writer_default_set_use_stderr", false) | |||
| 701 | - | ||||
| 702 | xLogWriterDefaultSetUseStderr(UseStderrVar) | 663 | xLogWriterDefaultSetUseStderr(UseStderrVar) | ||
| 703 | } | 664 | } | ||
| 704 | 665 | ||||
| @@ -736,8 +697,6 @@ var xLogWriterDefaultWouldDrop func(LogLevelFlags, uintptr) bool | |||||
| 736 | // | 697 | // | ||
| 737 | // ``` | 698 | // ``` | ||
| 738 | func LogWriterDefaultWouldDrop(LogLevelVar LogLevelFlags, LogDomainVar *string) bool { | 699 | func LogWriterDefaultWouldDrop(LogLevelVar LogLevelFlags, LogDomainVar *string) bool { | ||
| 739 | - | core.LazyRegister(&xLogWriterDefaultWouldDrop, "GLIB", "g_log_writer_default_would_drop", false) | |||
| 740 | - | ||||
| 741 | LogDomainVarPtr := core.GStrdupNullable(LogDomainVar) | 700 | LogDomainVarPtr := core.GStrdupNullable(LogDomainVar) | ||
| 742 | defer core.GFreeNullable(LogDomainVarPtr) | 701 | defer core.GFreeNullable(LogDomainVarPtr) | ||
| 743 | 702 | ||||
| @@ -759,8 +718,6 @@ var xLogWriterFormatFields func(LogLevelFlags, []LogField, uint, bool) string | |||||
| 759 | // encoded in the character set of the current locale, which is not necessarily | 718 | // encoded in the character set of the current locale, which is not necessarily | ||
| 760 | // UTF-8. | 719 | // UTF-8. | ||
| 761 | func LogWriterFormatFields(LogLevelVar LogLevelFlags, FieldsVar []LogField, NFieldsVar uint, UseColorVar bool) string { | 720 | func LogWriterFormatFields(LogLevelVar LogLevelFlags, FieldsVar []LogField, NFieldsVar uint, UseColorVar bool) string { | ||
| 762 | - | core.LazyRegister(&xLogWriterFormatFields, "GLIB", "g_log_writer_format_fields", false) | |||
| 763 | - | ||||
| 764 | cret := xLogWriterFormatFields(LogLevelVar, FieldsVar, NFieldsVar, UseColorVar) | 721 | cret := xLogWriterFormatFields(LogLevelVar, FieldsVar, NFieldsVar, UseColorVar) | ||
| 765 | return cret | 722 | return cret | ||
| 766 | } | 723 | } | ||
| @@ -777,8 +734,6 @@ var xLogWriterIsJournald func(int) bool | |||||
| 777 | // is_journald = g_log_writer_is_journald (fileno (stderr)); | 734 | // is_journald = g_log_writer_is_journald (fileno (stderr)); | ||
| 778 | // ``` | 735 | // ``` | ||
| 779 | func LogWriterIsJournald(OutputFdVar int) bool { | 736 | func LogWriterIsJournald(OutputFdVar int) bool { | ||
| 780 | - | core.LazyRegister(&xLogWriterIsJournald, "GLIB", "g_log_writer_is_journald", false) | |||
| 781 | - | ||||
| 782 | cret := xLogWriterIsJournald(OutputFdVar) | 737 | cret := xLogWriterIsJournald(OutputFdVar) | ||
| 783 | return cret | 738 | return cret | ||
| 784 | } | 739 | } | ||
| @@ -797,8 +752,6 @@ var xLogWriterJournald func(LogLevelFlags, []LogField, uint, uintptr) LogWriterO | |||||
| 797 | // If GLib has been compiled without systemd support, this function is still | 752 | // If GLib has been compiled without systemd support, this function is still | ||
| 798 | // defined, but will always return [enum@GLib.LogWriterOutput.UNHANDLED]. | 753 | // defined, but will always return [enum@GLib.LogWriterOutput.UNHANDLED]. | ||
| 799 | func LogWriterJournald(LogLevelVar LogLevelFlags, FieldsVar []LogField, NFieldsVar uint, UserDataVar uintptr) LogWriterOutput { | 754 | func LogWriterJournald(LogLevelVar LogLevelFlags, FieldsVar []LogField, NFieldsVar uint, UserDataVar uintptr) LogWriterOutput { | ||
| 800 | - | core.LazyRegister(&xLogWriterJournald, "GLIB", "g_log_writer_journald", false) | |||
| 801 | - | ||||
| 802 | cret := xLogWriterJournald(LogLevelVar, FieldsVar, NFieldsVar, UserDataVar) | 755 | cret := xLogWriterJournald(LogLevelVar, FieldsVar, NFieldsVar, UserDataVar) | ||
| 803 | return cret | 756 | return cret | ||
| 804 | } | 757 | } | ||
| @@ -823,8 +776,6 @@ var xLogWriterStandardStreams func(LogLevelFlags, []LogField, uint, uintptr) Log | |||||
| 823 | // | 776 | // | ||
| 824 | // This is suitable for use as a [type@GLib.LogWriterFunc]. | 777 | // This is suitable for use as a [type@GLib.LogWriterFunc]. | ||
| 825 | func LogWriterStandardStreams(LogLevelVar LogLevelFlags, FieldsVar []LogField, NFieldsVar uint, UserDataVar uintptr) LogWriterOutput { | 778 | func LogWriterStandardStreams(LogLevelVar LogLevelFlags, FieldsVar []LogField, NFieldsVar uint, UserDataVar uintptr) LogWriterOutput { | ||
| 826 | - | core.LazyRegister(&xLogWriterStandardStreams, "GLIB", "g_log_writer_standard_streams", false) | |||
| 827 | - | ||||
| 828 | cret := xLogWriterStandardStreams(LogLevelVar, FieldsVar, NFieldsVar, UserDataVar) | 779 | cret := xLogWriterStandardStreams(LogLevelVar, FieldsVar, NFieldsVar, UserDataVar) | ||
| 829 | return cret | 780 | return cret | ||
| 830 | } | 781 | } | ||
| @@ -836,8 +787,6 @@ var xLogWriterSupportsColor func(int) bool | |||||
| 836 | // | 787 | // | ||
| 837 | // If so, they can safely be used when formatting log messages. | 788 | // If so, they can safely be used when formatting log messages. | ||
| 838 | func LogWriterSupportsColor(OutputFdVar int) bool { | 789 | func LogWriterSupportsColor(OutputFdVar int) bool { | ||
| 839 | - | core.LazyRegister(&xLogWriterSupportsColor, "GLIB", "g_log_writer_supports_color", false) | |||
| 840 | - | ||||
| 841 | cret := xLogWriterSupportsColor(OutputFdVar) | 790 | cret := xLogWriterSupportsColor(OutputFdVar) | ||
| 842 | return cret | 791 | return cret | ||
| 843 | } | 792 | } | ||
| @@ -857,8 +806,6 @@ var xLogWriterSyslog func(LogLevelFlags, []LogField, uint, uintptr) LogWriterOut | |||||
| 857 | // If syslog is not supported, this function is still defined, but will always | 806 | // If syslog is not supported, this function is still defined, but will always | ||
| 858 | // return [enum@GLib.LogWriterOutput.UNHANDLED]. | 807 | // return [enum@GLib.LogWriterOutput.UNHANDLED]. | ||
| 859 | func LogWriterSyslog(LogLevelVar LogLevelFlags, FieldsVar []LogField, NFieldsVar uint, UserDataVar uintptr) LogWriterOutput { | 808 | func LogWriterSyslog(LogLevelVar LogLevelFlags, FieldsVar []LogField, NFieldsVar uint, UserDataVar uintptr) LogWriterOutput { | ||
| 860 | - | core.LazyRegister(&xLogWriterSyslog, "GLIB", "g_log_writer_syslog", false) | |||
| 861 | - | ||||
| 862 | cret := xLogWriterSyslog(LogLevelVar, FieldsVar, NFieldsVar, UserDataVar) | 809 | cret := xLogWriterSyslog(LogLevelVar, FieldsVar, NFieldsVar, UserDataVar) | ||
| 863 | return cret | 810 | return cret | ||
| 864 | } | 811 | } | ||
| @@ -881,8 +828,6 @@ var xLogv func(uintptr, LogLevelFlags, string, []interface{}) | |||||
| 881 | // The `log_domain` parameter can be set to `NULL` or an empty string to use the default | 828 | // The `log_domain` parameter can be set to `NULL` or an empty string to use the default | ||
| 882 | // application domain. | 829 | // application domain. | ||
| 883 | func Logv(LogDomainVar *string, LogLevelVar LogLevelFlags, FormatVar string, ArgsVar []interface{}) { | 830 | func Logv(LogDomainVar *string, LogLevelVar LogLevelFlags, FormatVar string, ArgsVar []interface{}) { | ||
| 884 | - | core.LazyRegister(&xLogv, "GLIB", "g_logv", false) | |||
| 885 | - | ||||
| 886 | LogDomainVarPtr := core.GStrdupNullable(LogDomainVar) | 831 | LogDomainVarPtr := core.GStrdupNullable(LogDomainVar) | ||
| 887 | defer core.GFreeNullable(LogDomainVarPtr) | 832 | defer core.GFreeNullable(LogDomainVarPtr) | ||
| 888 | 833 | ||||
| @@ -903,8 +848,6 @@ var xPrint func(string, ...interface{}) | |||||
| 903 | // use [func@GLib.log], [func@GLib.log_structured], or the convenience macros | 848 | // use [func@GLib.log], [func@GLib.log_structured], or the convenience macros | ||
| 904 | // [func@GLib.message], [func@GLib.warning] and [func@GLib.error]. | 849 | // [func@GLib.message], [func@GLib.warning] and [func@GLib.error]. | ||
| 905 | func Print(FormatVar string, varArgs ...interface{}) { | 850 | func Print(FormatVar string, varArgs ...interface{}) { | ||
| 906 | - | core.LazyRegister(&xPrint, "GLIB", "g_print", false) | |||
| 907 | - | ||||
| 908 | xPrint(FormatVar, varArgs...) | 851 | xPrint(FormatVar, varArgs...) | ||
| 909 | } | 852 | } | ||
| 910 | 853 | ||||
| @@ -920,8 +863,6 @@ var xPrinterr func(string, ...interface{}) | |||||
| 920 | // Instead [func@GLib.log] or [func@GLib.log_structured] should be used, or the convenience | 863 | // Instead [func@GLib.log] or [func@GLib.log_structured] should be used, or the convenience | ||
| 921 | // macros [func@GLib.message], [func@GLib.warning] and [func@GLib.error]. | 864 | // macros [func@GLib.message], [func@GLib.warning] and [func@GLib.error]. | ||
| 922 | func Printerr(FormatVar string, varArgs ...interface{}) { | 865 | func Printerr(FormatVar string, varArgs ...interface{}) { | ||
| 923 | - | core.LazyRegister(&xPrinterr, "GLIB", "g_printerr", false) | |||
| 924 | - | ||||
| 925 | xPrinterr(FormatVar, varArgs...) | 866 | xPrinterr(FormatVar, varArgs...) | ||
| 926 | } | 867 | } | ||
| 927 | 868 | ||||
| @@ -938,8 +879,6 @@ var xPrintfStringUpperBound func(string, []interface{}) uint | |||||
| 938 | // return cases if necessary. It is recommended to not use `%lc` or `%ls` | 879 | // return cases if necessary. It is recommended to not use `%lc` or `%ls` | ||
| 939 | // placeholders in any case, as their behaviour is locale-dependent. | 880 | // placeholders in any case, as their behaviour is locale-dependent. | ||
| 940 | func PrintfStringUpperBound(FormatVar string, ArgsVar []interface{}) uint { | 881 | func PrintfStringUpperBound(FormatVar string, ArgsVar []interface{}) uint { | ||
| 941 | - | core.LazyRegister(&xPrintfStringUpperBound, "GLIB", "g_printf_string_upper_bound", false) | |||
| 942 | - | ||||
| 943 | cret := xPrintfStringUpperBound(FormatVar, ArgsVar) | 882 | cret := xPrintfStringUpperBound(FormatVar, ArgsVar) | ||
| 944 | return cret | 883 | return cret | ||
| 945 | } | 884 | } | ||
| @@ -949,8 +888,6 @@ var xReturnIfFailWarning func(uintptr, string, uintptr) | |||||
| 949 | // Internal function used to print messages from the public [func@GLib.return_if_fail] | 888 | // Internal function used to print messages from the public [func@GLib.return_if_fail] | ||
| 950 | // and [func@GLib.return_val_if_fail] macros. | 889 | // and [func@GLib.return_val_if_fail] macros. | ||
| 951 | func ReturnIfFailWarning(LogDomainVar *string, PrettyFunctionVar string, ExpressionVar *string) { | 890 | func ReturnIfFailWarning(LogDomainVar *string, PrettyFunctionVar string, ExpressionVar *string) { | ||
| 952 | - | core.LazyRegister(&xReturnIfFailWarning, "GLIB", "g_return_if_fail_warning", false) | |||
| 953 | - | ||||
| 954 | LogDomainVarPtr := core.GStrdupNullable(LogDomainVar) | 891 | LogDomainVarPtr := core.GStrdupNullable(LogDomainVar) | ||
| 955 | defer core.GFreeNullable(LogDomainVarPtr) | 892 | defer core.GFreeNullable(LogDomainVarPtr) | ||
| 956 | 893 | ||||
| @@ -978,8 +915,6 @@ var xSetPrintHandler func(uintptr) uintptr | |||||
| 978 | // decorate its output and/or to write to `stderr` | 915 | // decorate its output and/or to write to `stderr` | ||
| 979 | // in all platforms. Before GLib 2.76, this was `NULL`. | 916 | // in all platforms. Before GLib 2.76, this was `NULL`. | ||
| 980 | func SetPrintHandler(FuncVar *PrintFunc) uintptr { | 917 | func SetPrintHandler(FuncVar *PrintFunc) uintptr { | ||
| 981 | - | core.LazyRegister(&xSetPrintHandler, "GLIB", "g_set_print_handler", false) | |||
| 982 | - | ||||
| 983 | cret := xSetPrintHandler(NewCallbackNullable(FuncVar)) | 918 | cret := xSetPrintHandler(NewCallbackNullable(FuncVar)) | ||
| 984 | return cret | 919 | return cret | ||
| 985 | } | 920 | } | ||
| @@ -1002,8 +937,6 @@ var xSetPrinterrHandler func(uintptr) uintptr | |||||
| 1002 | // its output and/or to write to `stderr` in all platforms. | 937 | // its output and/or to write to `stderr` in all platforms. | ||
| 1003 | // Before GLib 2.76, this was `NULL`. | 938 | // Before GLib 2.76, this was `NULL`. | ||
| 1004 | func SetPrinterrHandler(FuncVar *PrintFunc) uintptr { | 939 | func SetPrinterrHandler(FuncVar *PrintFunc) uintptr { | ||
| 1005 | - | core.LazyRegister(&xSetPrinterrHandler, "GLIB", "g_set_printerr_handler", false) | |||
| 1006 | - | ||||
| 1007 | cret := xSetPrinterrHandler(NewCallbackNullable(FuncVar)) | 940 | cret := xSetPrinterrHandler(NewCallbackNullable(FuncVar)) | ||
| 1008 | return cret | 941 | return cret | ||
| 1009 | } | 942 | } | ||
| @@ -1013,8 +946,6 @@ var xWarnMessage func(uintptr, string, int, string, uintptr) | |||||
| 1013 | // Internal function used to print messages from the public [func@GLib.warn_if_reached] | 946 | // Internal function used to print messages from the public [func@GLib.warn_if_reached] | ||
| 1014 | // and [func@GLib.warn_if_fail] macros. | 947 | // and [func@GLib.warn_if_fail] macros. | ||
| 1015 | func WarnMessage(DomainVar *string, FileVar string, LineVar int, FuncVar string, WarnexprVar *string) { | 948 | func WarnMessage(DomainVar *string, FileVar string, LineVar int, FuncVar string, WarnexprVar *string) { | ||
| 1016 | - | core.LazyRegister(&xWarnMessage, "GLIB", "g_warn_message", false) | |||
| 1017 | - | ||||
| 1018 | DomainVarPtr := core.GStrdupNullable(DomainVar) | 949 | DomainVarPtr := core.GStrdupNullable(DomainVar) | ||
| 1019 | defer core.GFreeNullable(DomainVarPtr) | 950 | defer core.GFreeNullable(DomainVarPtr) | ||
| 1020 | 951 | ||||
| @@ -1027,4 +958,48 @@ func WarnMessage(DomainVar *string, FileVar string, LineVar int, FuncVar string, | |||||
| 1027 | func init() { | 958 | func init() { | ||
| 1028 | core.SetPackageName("GLIB", "glib-2.0") | 959 | core.SetPackageName("GLIB", "glib-2.0") | ||
| 1029 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | 960 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | ||
| 961 | + | var libs []uintptr | |||
| 962 | + | for _, libPath := range core.GetPaths("GLIB") { | |||
| 963 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 964 | + | if err != nil { | |||
| 965 | + | panic(err) | |||
| 966 | + | } | |||
| 967 | + | libs = append(libs, lib) | |||
| 968 | + | } | |||
| 969 | + | ||||
| 970 | + | core.PuregoSafeRegister(&xAssertWarning, libs, "g_assert_warning") | |||
| 971 | + | core.PuregoSafeRegister(&xLog, libs, "g_log") | |||
| 972 | + | core.PuregoSafeRegister(&xLogDefaultHandler, libs, "g_log_default_handler") | |||
| 973 | + | core.PuregoSafeRegister(&xLogGetAlwaysFatal, libs, "g_log_get_always_fatal") | |||
| 974 | + | core.PuregoSafeRegister(&xLogGetDebugEnabled, libs, "g_log_get_debug_enabled") | |||
| 975 | + | core.PuregoSafeRegister(&xLogRemoveHandler, libs, "g_log_remove_handler") | |||
| 976 | + | core.PuregoSafeRegister(&xLogSetAlwaysFatal, libs, "g_log_set_always_fatal") | |||
| 977 | + | core.PuregoSafeRegister(&xLogSetDebugEnabled, libs, "g_log_set_debug_enabled") | |||
| 978 | + | core.PuregoSafeRegister(&xLogSetDefaultHandler, libs, "g_log_set_default_handler") | |||
| 979 | + | core.PuregoSafeRegister(&xLogSetFatalMask, libs, "g_log_set_fatal_mask") | |||
| 980 | + | core.PuregoSafeRegister(&xLogSetHandler, libs, "g_log_set_handler") | |||
| 981 | + | core.PuregoSafeRegister(&xLogSetHandlerFull, libs, "g_log_set_handler_full") | |||
| 982 | + | core.PuregoSafeRegister(&xLogSetWriterFunc, libs, "g_log_set_writer_func") | |||
| 983 | + | core.PuregoSafeRegister(&xLogStructured, libs, "g_log_structured") | |||
| 984 | + | core.PuregoSafeRegister(&xLogStructuredArray, libs, "g_log_structured_array") | |||
| 985 | + | core.PuregoSafeRegister(&xLogStructuredStandard, libs, "g_log_structured_standard") | |||
| 986 | + | core.PuregoSafeRegister(&xLogVariant, libs, "g_log_variant") | |||
| 987 | + | core.PuregoSafeRegister(&xLogWriterDefault, libs, "g_log_writer_default") | |||
| 988 | + | core.PuregoSafeRegister(&xLogWriterDefaultSetDebugDomains, libs, "g_log_writer_default_set_debug_domains") | |||
| 989 | + | core.PuregoSafeRegister(&xLogWriterDefaultSetUseStderr, libs, "g_log_writer_default_set_use_stderr") | |||
| 990 | + | core.PuregoSafeRegister(&xLogWriterDefaultWouldDrop, libs, "g_log_writer_default_would_drop") | |||
| 991 | + | core.PuregoSafeRegister(&xLogWriterFormatFields, libs, "g_log_writer_format_fields") | |||
| 992 | + | core.PuregoSafeRegister(&xLogWriterIsJournald, libs, "g_log_writer_is_journald") | |||
| 993 | + | core.PuregoSafeRegister(&xLogWriterJournald, libs, "g_log_writer_journald") | |||
| 994 | + | core.PuregoSafeRegister(&xLogWriterStandardStreams, libs, "g_log_writer_standard_streams") | |||
| 995 | + | core.PuregoSafeRegister(&xLogWriterSupportsColor, libs, "g_log_writer_supports_color") | |||
| 996 | + | core.PuregoSafeRegister(&xLogWriterSyslog, libs, "g_log_writer_syslog") | |||
| 997 | + | core.PuregoSafeRegister(&xLogv, libs, "g_logv") | |||
| 998 | + | core.PuregoSafeRegister(&xPrint, libs, "g_print") | |||
| 999 | + | core.PuregoSafeRegister(&xPrinterr, libs, "g_printerr") | |||
| 1000 | + | core.PuregoSafeRegister(&xPrintfStringUpperBound, libs, "g_printf_string_upper_bound") | |||
| 1001 | + | core.PuregoSafeRegister(&xReturnIfFailWarning, libs, "g_return_if_fail_warning") | |||
| 1002 | + | core.PuregoSafeRegister(&xSetPrintHandler, libs, "g_set_print_handler") | |||
| 1003 | + | core.PuregoSafeRegister(&xSetPrinterrHandler, libs, "g_set_printerr_handler") | |||
| 1004 | + | core.PuregoSafeRegister(&xWarnMessage, libs, "g_warn_message") | |||
| 1030 | } | 1005 | } | ||