Revert "chore(deps): pin puregotk nil-signal fix"
This reverts commit a161e348e2093172038390b0906448f0ae979a0d.
- commit
- 40378d5e4fd2372d054e49168ab2a6f67aedd0fd
- author
- brice · · 2026-07-14 17:59 UTC
- parent
- 8d647bb
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
905 files · +25263 -27842
M go.mod +1 -1
| @@ -11,7 +11,7 @@ require ( | |||
| 11 | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | |
| 12 | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | |
| 13 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | |
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | |
| 14 | + | github.com/bnema/puregotk v0.7.0 | |
| 15 | 15 | github.com/charmbracelet/bubbles v1.0.0 | |
| 16 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | |
| 17 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | |
| @@ -11,7 +11,7 @@ require ( | |||||
| 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | ||
| 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | ||
| 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | ||
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | 14 | + | github.com/bnema/puregotk v0.7.0 |
| 15 | github.com/charmbracelet/bubbles v1.0.0 | 15 | github.com/charmbracelet/bubbles v1.0.0 | ||
| 16 | github.com/charmbracelet/bubbletea v1.3.10 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | ||
| 17 | github.com/charmbracelet/lipgloss v1.1.0 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | ||
M go.sum +0 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/internal/core/core.go +4 -197 generated file: collapsed
M vendor/github.com/bnema/puregotk/pkg/core/core.go +0 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-dialog.go +64 -99 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-window.go +62 -95 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-accent-color.go +15 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-action-row.go +29 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-alert-dialog.go +47 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-target.go +27 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-util.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation.go +26 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application-window.go +22 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-avatar.go +25 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-banner.go +26 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bin.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bottom-sheet.go +38 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint-bin.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint.go +37 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-content.go +22 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-row.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-dots.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-lines.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel.go +37 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-layout.go +20 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-scrollable.go +22 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp.go +22 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-combo-row.go +33 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-dialog.go +38 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-easing.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-entry-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-enum-list-model.go +22 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-expander-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-flap.go +48 -61 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-fold-threshold-policy.go +1 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-header-bar.go +33 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-inline-view-switcher.go +24 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout-slot.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout.go +17 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-leaflet.go +56 -69 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-length-unit.go +14 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-main.go +15 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-message-dialog.go +44 -63 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-multi-layout-view.go +23 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-direction.go +1 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-split-view.go +32 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-view.go +49 -60 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-overlay-split-view.go +38 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-password-entry-row.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-dialog.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-group.go +26 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-page.go +33 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-row.go +22 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-window.go +29 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcut-label.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-dialog.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-item.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-section.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-item.go +37 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-section.go +27 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar.go +39 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spin-row.go +34 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner-paintable.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-split-button.go +34 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-animation.go +30 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-params.go +21 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-squeezer.go +44 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-status-page.go +24 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-style-manager.go +28 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipe-tracker.go +30 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipeable.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-switch-row.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-bar.go +32 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-button.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-overview.go +37 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-view.go +87 -123 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-timed-animation.go +28 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast-overlay.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast.go +36 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toggle-group.go +51 -64 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toolbar-view.go +35 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-version.go +16 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-stack.go +62 -78 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-bar.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-sidebar.go +22 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-title.go +23 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher.go +20 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window-title.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window.go +22 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-box.go +46 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-layout.go +46 -57 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/cairo/main.go +79 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkapplaunchcontext.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairo.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairocontext.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcicpparams.go +25 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkclipboard.go +32 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcolorstate.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentdeserializer.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentformats.go +31 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentprovider.go +28 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentserializer.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcursor.go +21 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevice.go +33 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicepad.go +22 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicetool.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplay.go +43 -51 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplaymanager.go +20 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexture.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexturebuilder.go +41 -53 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrag.go +28 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurface.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurfacesize.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrawcontext.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrop.go +24 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkenums.go +1 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkevents.go +118 -120 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframeclock.go +24 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframetimings.go +20 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkglcontext.go +36 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexture.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexturebuilder.go +35 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkkeys.go +22 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexture.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexturebuilder.go +35 -42 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmonitor.go +27 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpaintable.go +33 -63 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpango.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpixbuf.go +12 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopup.go +26 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopuplayout.go +32 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkrgba.go +21 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkseat.go +20 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksnapshot.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksurface.go +40 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktexture.go +31 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevel.go +66 -157 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevellayout.go +25 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevelsize.go +16 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktypes.go +72 -95 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkvulkancontext.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-animation.go +32 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-core.go +0 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-io.go +23 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-loader.go +22 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-simple-anim.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-transform.go +1 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf.go +79 -102 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/main.go +17 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gaction.go +31 -59 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactiongroup.go +39 -96 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactionmap.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gappinfo.go +116 -244 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplication.go +55 -79 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplicationcommandline.go +27 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncinitable.go +22 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncresult.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedinputstream.go +29 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedoutputstream.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbytesicon.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcancellable.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcharsetconverter.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcontenttype.go +26 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverter.go +20 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverterinputstream.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverteroutputstream.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcredentials.go +21 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatagrambased.go +30 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatainputstream.go +35 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdataoutputstream.go +23 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusactiongroup.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusaddress.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusauthobserver.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusconnection.go +66 -77 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbuserror.go +18 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusinterface.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusinterfaceskeleton.go +24 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusintrospection.go +56 -54 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmenumodel.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmessage.go +64 -88 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmethodinvocation.go +30 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusnameowning.go +15 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusnamewatching.go +15 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobject.go +17 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanager.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerclient.go +23 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerserver.go +20 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectproxy.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectskeleton.go +18 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusproxy.go +38 -42 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusserver.go +20 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusutils.go +22 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdebugcontroller.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdebugcontrollerdbus.go +14 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdrive.go +82 -214 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsclientconnection.go +24 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsconnection.go +80 -207 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsserverconnection.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gemblem.go +17 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gemblemedicon.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfile.go +450 -1148 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileattribute.go +19 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileenumerator.go +35 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileicon.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileinfo.go +84 -138 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileinputstream.go +23 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileiostream.go +27 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilemonitor.go +15 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilenamecompleter.go +16 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileoutputstream.go +27 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilterinputstream.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilteroutputstream.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gicon.go +25 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetaddress.go +34 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetaddressmask.go +21 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetsocketaddress.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginitable.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginputstream.go +48 -52 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioenums.go +1 -90 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioerror.go +13 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giomodule.go +29 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioscheduler.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giostream.go +29 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giotypes.go +60 -70 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giptosmessage.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gipv6tclassmessage.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/glistmodel.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gliststore.go +24 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gloadableicon.go +23 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemoryinputstream.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemorymonitor.go +12 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemoryoutputstream.go +19 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmenu.go +50 -62 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmenumodel.go +33 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmount.go +86 -215 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmountoperation.go +32 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnativesocketaddress.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnativevolumemonitor.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkaddress.go +21 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworking.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkmonitor.go +31 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkservice.go +19 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnotification.go +26 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/goutputstream.go +72 -86 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpermission.go +33 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableinputstream.go +22 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableoutputstream.go +27 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableutils.go +15 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpowerprofilemonitor.go +16 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpropertyaction.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxy.go +27 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyaddress.go +21 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyaddressenumerator.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyresolver.go +27 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gremoteactiongroup.go +15 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gresolver.go +67 -75 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gresource.go +23 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gseekable.go +27 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettings.go +67 -99 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettingsbackend.go +24 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettingsschema.go +43 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleaction.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleactiongroup.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleasyncresult.go +40 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleiostream.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimplepermission.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleproxyresolver.go +16 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocket.go +72 -87 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketaddress.go +19 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketaddressenumerator.go +20 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketclient.go +44 -54 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketconnectable.go +17 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketconnection.go +21 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketcontrolmessage.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketlistener.go +25 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketservice.go +16 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsrvtarget.go +11 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsubprocess.go +39 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsubprocesslauncher.go +31 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtask.go +52 -70 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtcpconnection.go +14 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtcpwrapperconnection.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtestdbus.go +22 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gthemedicon.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gthreadedresolver.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gthreadedsocketservice.go +12 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsbackend.go +33 -69 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlscertificate.go +29 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsclientconnection.go +29 -55 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsconnection.go +46 -56 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsdatabase.go +48 -51 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsfiledatabase.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsinteraction.go +31 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlspassword.go +22 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsserverconnection.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixconnection.go +20 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixcredentialsmessage.go +17 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixfdlist.go +19 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixsocketaddress.go +22 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvfs.go +24 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvolume.go +58 -143 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvolumemonitor.go +19 -11 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gzlibcompressor.go +18 -9 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gzlibdecompressor.go +15 -3 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/main.go +11 -2 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gallocator.go +28 -32 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/garray.go +59 -82 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gasyncqueue.go +39 -56 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gatomic.go +34 -43 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbacktrace.go +15 -5 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbase64.go +19 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbitlock.go +24 -23 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbookmarkfile.go +61 -69 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcache.go +15 -10 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcharset.go +19 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gchecksum.go +25 -23 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcompletion.go +17 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gconvert.go +28 -25 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdataset.go +28 -36 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdate.go +65 -103 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdatetime.go +66 -107 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdir.go +19 -12 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/genviron.go +21 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gerror.go +29 -30 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gfileutils.go +38 -45 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ggettext.go +19 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghash.go +53 -81 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghmac.go +24 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghook.go +26 -28 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghostutils.go +18 -11 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/giochannel.go +67 -83 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gkeyfile.go +62 -72 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/glib-types.go +12 -4 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/glist.go +11 -2 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmain.go +117 -181 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmappedfile.go +21 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmarkup.go +43 -51 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmem.go +31 -44 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmessages.go +45 -70 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gnode.go +35 -50 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/goption.go +43 -57 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gpathbuf.go +24 -26 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gpattern.go +23 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gpoll.go +13 -3 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gprimes.go +14 -3 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gprintf.go +20 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gqsort.go +15 -5 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gquark.go +19 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gqueue.go +52 -84 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grand.go +30 -33 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grcbox.go +27 -29 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grefcount.go +21 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grefstring.go +20 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gregex.go +57 -72 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grel.go +21 -20 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gscanner.go +30 -40 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gsequence.go +49 -74 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gshell.go +16 -5 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gslice.go +21 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gslist.go +11 -2 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gspawn.go +23 -12 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstdio.go +27 -33 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstrfuncs.go +71 -115 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstring.go +51 -77 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstringchunk.go +15 -10 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstrvbuilder.go +22 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtestutils.go +80 -132 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gthread.go +97 -146 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gthreadpool.go +25 -26 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtimer.go +20 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtimezone.go +26 -27 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtrashstack.go +14 -8 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtree.go +45 -63 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtypes.go +12 -4 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gunicode.go +85 -132 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/guri.go +50 -63 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gutils.go +41 -62
| @@ -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 | ||
| @@ -127,8 +128,6 @@ var xAtexit func(uintptr) | |||
| 127 | 128 | // calling g_atexit() (or atexit()) except in the main executable of a | |
| 128 | 129 | // program. | |
| 129 | 130 | func Atexit(FuncVar *VoidFunc) { | |
| 130 | - | core.LazyRegister(&xAtexit, "GLIB", "g_atexit", false) | |
| 131 | - | ||
| 132 | 131 | xAtexit(NewCallback(FuncVar)) | |
| 133 | 132 | } | |
| 134 | 133 | ||
| @@ -139,8 +138,6 @@ var xBitNthLsf func(uint, int) int | |||
| 139 | 138 | // from 0 (least significant) to sizeof(#gulong) * 8 - 1 (31 or 63, | |
| 140 | 139 | // usually). To start searching from the 0th bit, set @nth_bit to -1. | |
| 141 | 140 | func BitNthLsf(MaskVar uint, NthBitVar int) int { | |
| 142 | - | core.LazyRegister(&xBitNthLsf, "GLIB", "g_bit_nth_lsf", false) | |
| 143 | - | ||
| 144 | 141 | cret := xBitNthLsf(MaskVar, NthBitVar) | |
| 145 | 142 | return cret | |
| 146 | 143 | } | |
| @@ -153,8 +150,6 @@ var xBitNthMsf func(uint, int) int | |||
| 153 | 150 | // usually). To start searching from the last bit, set @nth_bit to | |
| 154 | 151 | // -1 or GLIB_SIZEOF_LONG * 8. | |
| 155 | 152 | func BitNthMsf(MaskVar uint, NthBitVar int) int { | |
| 156 | - | core.LazyRegister(&xBitNthMsf, "GLIB", "g_bit_nth_msf", false) | |
| 157 | - | ||
| 158 | 153 | cret := xBitNthMsf(MaskVar, NthBitVar) | |
| 159 | 154 | return cret | |
| 160 | 155 | } | |
| @@ -164,8 +159,6 @@ var xBitStorage func(uint) uint | |||
| 164 | 159 | // Gets the number of bits used to hold @number, | |
| 165 | 160 | // e.g. if @number is 4, 3 bits are needed. | |
| 166 | 161 | func BitStorage(NumberVar uint) uint { | |
| 167 | - | core.LazyRegister(&xBitStorage, "GLIB", "g_bit_storage", false) | |
| 168 | - | ||
| 169 | 162 | cret := xBitStorage(NumberVar) | |
| 170 | 163 | return cret | |
| 171 | 164 | } | |
| @@ -190,8 +183,6 @@ var xFindProgramInPath func(string) string | |||
| 190 | 183 | // the program is found, the return value contains the full name | |
| 191 | 184 | // including the type suffix. | |
| 192 | 185 | func FindProgramInPath(ProgramVar string) string { | |
| 193 | - | core.LazyRegister(&xFindProgramInPath, "GLIB", "g_find_program_in_path", false) | |
| 194 | - | ||
| 195 | 186 | cret := xFindProgramInPath(ProgramVar) | |
| 196 | 187 | return cret | |
| 197 | 188 | } | |
| @@ -212,8 +203,6 @@ var xFormatSize func(uint64) string | |||
| 212 | 203 | // See g_format_size_full() for more options about how the size might be | |
| 213 | 204 | // formatted. | |
| 214 | 205 | func FormatSize(SizeVar uint64) string { | |
| 215 | - | core.LazyRegister(&xFormatSize, "GLIB", "g_format_size", false) | |
| 216 | - | ||
| 217 | 206 | cret := xFormatSize(SizeVar) | |
| 218 | 207 | return cret | |
| 219 | 208 | } | |
| @@ -230,8 +219,6 @@ var xFormatSizeForDisplay func(int64) string | |||
| 230 | 219 | // | |
| 231 | 220 | // This string should be freed with g_free() when not needed any longer. | |
| 232 | 221 | func FormatSizeForDisplay(SizeVar int64) string { | |
| 233 | - | core.LazyRegister(&xFormatSizeForDisplay, "GLIB", "g_format_size_for_display", false) | |
| 234 | - | ||
| 235 | 222 | cret := xFormatSizeForDisplay(SizeVar) | |
| 236 | 223 | return cret | |
| 237 | 224 | } | |
| @@ -243,8 +230,6 @@ var xFormatSizeFull func(uint64, FormatSizeFlags) string | |||
| 243 | 230 | // This function is similar to g_format_size() but allows for flags | |
| 244 | 231 | // that modify the output. See #GFormatSizeFlags. | |
| 245 | 232 | func FormatSizeFull(SizeVar uint64, FlagsVar FormatSizeFlags) string { | |
| 246 | - | core.LazyRegister(&xFormatSizeFull, "GLIB", "g_format_size_full", false) | |
| 247 | - | ||
| 248 | 233 | cret := xFormatSizeFull(SizeVar, FlagsVar) | |
| 249 | 234 | return cret | |
| 250 | 235 | } | |
| @@ -259,8 +244,6 @@ var xGetApplicationName func() string | |||
| 259 | 244 | // g_get_prgname() (which may be %NULL if g_set_prgname() has also not | |
| 260 | 245 | // been called). | |
| 261 | 246 | func GetApplicationName() string { | |
| 262 | - | core.LazyRegister(&xGetApplicationName, "GLIB", "g_get_application_name", false) | |
| 263 | - | ||
| 264 | 247 | cret := xGetApplicationName() | |
| 265 | 248 | return cret | |
| 266 | 249 | } | |
| @@ -288,8 +271,6 @@ var xGetHomeDir func() string | |||
| 288 | 271 | // should either directly check the `HOME` environment variable yourself | |
| 289 | 272 | // or unset it before calling any functions in GLib. | |
| 290 | 273 | func GetHomeDir() string { | |
| 291 | - | core.LazyRegister(&xGetHomeDir, "GLIB", "g_get_home_dir", false) | |
| 292 | - | ||
| 293 | 274 | cret := xGetHomeDir() | |
| 294 | 275 | return cret | |
| 295 | 276 | } | |
| @@ -311,8 +292,6 @@ var xGetHostName func() string | |||
| 311 | 292 | // | |
| 312 | 293 | // The encoding of the returned string is UTF-8. | |
| 313 | 294 | func GetHostName() string { | |
| 314 | - | core.LazyRegister(&xGetHostName, "GLIB", "g_get_host_name", false) | |
| 315 | - | ||
| 316 | 295 | cret := xGetHostName() | |
| 317 | 296 | return cret | |
| 318 | 297 | } | |
| @@ -328,8 +307,6 @@ var xGetOsInfo func(string) string | |||
| 328 | 307 | // be useful. No key is guaranteed to be provided, so the caller should always | |
| 329 | 308 | // check if the result is %NULL. | |
| 330 | 309 | func GetOsInfo(KeyNameVar string) string { | |
| 331 | - | core.LazyRegister(&xGetOsInfo, "GLIB", "g_get_os_info", false) | |
| 332 | - | ||
| 333 | 310 | cret := xGetOsInfo(KeyNameVar) | |
| 334 | 311 | return cret | |
| 335 | 312 | } | |
| @@ -345,8 +322,6 @@ var xGetPrgname func() string | |||
| 345 | 322 | // #GtkApplication::startup handler. The program name is found by | |
| 346 | 323 | // taking the last component of @argv[0]. | |
| 347 | 324 | func GetPrgname() string { | |
| 348 | - | core.LazyRegister(&xGetPrgname, "GLIB", "g_get_prgname", false) | |
| 349 | - | ||
| 350 | 325 | cret := xGetPrgname() | |
| 351 | 326 | return cret | |
| 352 | 327 | } | |
| @@ -359,8 +334,6 @@ var xGetRealName func() string | |||
| 359 | 334 | // real user name cannot be determined, the string "Unknown" is | |
| 360 | 335 | // returned. | |
| 361 | 336 | func GetRealName() string { | |
| 362 | - | core.LazyRegister(&xGetRealName, "GLIB", "g_get_real_name", false) | |
| 363 | - | ||
| 364 | 337 | cret := xGetRealName() | |
| 365 | 338 | return cret | |
| 366 | 339 | } | |
| @@ -388,8 +361,6 @@ var xGetSystemConfigDirs func() []string | |||
| 388 | 361 | // The return value is cached and modifying it at runtime is not supported, as | |
| 389 | 362 | // it’s not thread-safe to modify environment variables at runtime. | |
| 390 | 363 | func GetSystemConfigDirs() []string { | |
| 391 | - | core.LazyRegister(&xGetSystemConfigDirs, "GLIB", "g_get_system_config_dirs", false) | |
| 392 | - | ||
| 393 | 364 | cret := xGetSystemConfigDirs() | |
| 394 | 365 | return cret | |
| 395 | 366 | } | |
| @@ -431,8 +402,6 @@ var xGetSystemDataDirs func() []string | |||
| 431 | 402 | // The return value is cached and modifying it at runtime is not supported, as | |
| 432 | 403 | // it’s not thread-safe to modify environment variables at runtime. | |
| 433 | 404 | func GetSystemDataDirs() []string { | |
| 434 | - | core.LazyRegister(&xGetSystemDataDirs, "GLIB", "g_get_system_data_dirs", false) | |
| 435 | - | ||
| 436 | 405 | cret := xGetSystemDataDirs() | |
| 437 | 406 | return cret | |
| 438 | 407 | } | |
| @@ -454,8 +423,6 @@ var xGetTmpDir func() string | |||
| 454 | 423 | // it is always UTF-8. The return value is never %NULL or the empty | |
| 455 | 424 | // string. | |
| 456 | 425 | func GetTmpDir() string { | |
| 457 | - | core.LazyRegister(&xGetTmpDir, "GLIB", "g_get_tmp_dir", false) | |
| 458 | - | ||
| 459 | 426 | cret := xGetTmpDir() | |
| 460 | 427 | return cret | |
| 461 | 428 | } | |
| @@ -479,8 +446,6 @@ var xGetUserCacheDir func() string | |||
| 479 | 446 | // The return value is cached and modifying it at runtime is not supported, as | |
| 480 | 447 | // it’s not thread-safe to modify environment variables at runtime. | |
| 481 | 448 | func GetUserCacheDir() string { | |
| 482 | - | core.LazyRegister(&xGetUserCacheDir, "GLIB", "g_get_user_cache_dir", false) | |
| 483 | - | ||
| 484 | 449 | cret := xGetUserCacheDir() | |
| 485 | 450 | return cret | |
| 486 | 451 | } | |
| @@ -505,8 +470,6 @@ var xGetUserConfigDir func() string | |||
| 505 | 470 | // The return value is cached and modifying it at runtime is not supported, as | |
| 506 | 471 | // it’s not thread-safe to modify environment variables at runtime. | |
| 507 | 472 | func GetUserConfigDir() string { | |
| 508 | - | core.LazyRegister(&xGetUserConfigDir, "GLIB", "g_get_user_config_dir", false) | |
| 509 | - | ||
| 510 | 473 | cret := xGetUserConfigDir() | |
| 511 | 474 | return cret | |
| 512 | 475 | } | |
| @@ -531,8 +494,6 @@ var xGetUserDataDir func() string | |||
| 531 | 494 | // The return value is cached and modifying it at runtime is not supported, as | |
| 532 | 495 | // it’s not thread-safe to modify environment variables at runtime. | |
| 533 | 496 | func GetUserDataDir() string { | |
| 534 | - | core.LazyRegister(&xGetUserDataDir, "GLIB", "g_get_user_data_dir", false) | |
| 535 | - | ||
| 536 | 497 | cret := xGetUserDataDir() | |
| 537 | 498 | return cret | |
| 538 | 499 | } | |
| @@ -544,8 +505,6 @@ var xGetUserName func() string | |||
| 544 | 505 | // encoding, or something else, and there is no guarantee that it is even | |
| 545 | 506 | // consistent on a machine. On Windows, it is always UTF-8. | |
| 546 | 507 | func GetUserName() string { | |
| 547 | - | core.LazyRegister(&xGetUserName, "GLIB", "g_get_user_name", false) | |
| 548 | - | ||
| 549 | 508 | cret := xGetUserName() | |
| 550 | 509 | return cret | |
| 551 | 510 | } | |
| @@ -566,8 +525,6 @@ var xGetUserRuntimeDir func() string | |||
| 566 | 525 | // The return value is cached and modifying it at runtime is not supported, as | |
| 567 | 526 | // it’s not thread-safe to modify environment variables at runtime. | |
| 568 | 527 | func GetUserRuntimeDir() string { | |
| 569 | - | core.LazyRegister(&xGetUserRuntimeDir, "GLIB", "g_get_user_runtime_dir", false) | |
| 570 | - | ||
| 571 | 528 | cret := xGetUserRuntimeDir() | |
| 572 | 529 | return cret | |
| 573 | 530 | } | |
| @@ -585,8 +542,6 @@ var xGetUserSpecialDir func(UserDirectory) string | |||
| 585 | 542 | // of the special directory without requiring the session to restart; GLib | |
| 586 | 543 | // will not reflect any change once the special directories are loaded. | |
| 587 | 544 | func GetUserSpecialDir(DirectoryVar UserDirectory) string { | |
| 588 | - | core.LazyRegister(&xGetUserSpecialDir, "GLIB", "g_get_user_special_dir", false) | |
| 589 | - | ||
| 590 | 545 | cret := xGetUserSpecialDir(DirectoryVar) | |
| 591 | 546 | return cret | |
| 592 | 547 | } | |
| @@ -611,8 +566,6 @@ var xGetUserStateDir func() string | |||
| 611 | 566 | // The return value is cached and modifying it at runtime is not supported, as | |
| 612 | 567 | // it’s not thread-safe to modify environment variables at runtime. | |
| 613 | 568 | func GetUserStateDir() string { | |
| 614 | - | core.LazyRegister(&xGetUserStateDir, "GLIB", "g_get_user_state_dir", false) | |
| 615 | - | ||
| 616 | 569 | cret := xGetUserStateDir() | |
| 617 | 570 | return cret | |
| 618 | 571 | } | |
| @@ -621,8 +574,6 @@ var xNullifyPointer func(uintptr) | |||
| 621 | 574 | ||
| 622 | 575 | // Set the pointer at the specified location to %NULL. | |
| 623 | 576 | func NullifyPointer(NullifyLocationVar uintptr) { | |
| 624 | - | core.LazyRegister(&xNullifyPointer, "GLIB", "g_nullify_pointer", false) | |
| 625 | - | ||
| 626 | 577 | xNullifyPointer(NullifyLocationVar) | |
| 627 | 578 | } | |
| 628 | 579 | ||
| @@ -641,8 +592,6 @@ var xParseDebugString func(uintptr, []DebugKey, uint) uint | |||
| 641 | 592 | // If @string is equal to "help", all the available keys in @keys | |
| 642 | 593 | // are printed out to standard error. | |
| 643 | 594 | func ParseDebugString(StringVar *string, KeysVar []DebugKey, NkeysVar uint) uint { | |
| 644 | - | core.LazyRegister(&xParseDebugString, "GLIB", "g_parse_debug_string", false) | |
| 645 | - | ||
| 646 | 595 | StringVarPtr := core.GStrdupNullable(StringVar) | |
| 647 | 596 | defer core.GFreeNullable(StringVarPtr) | |
| 648 | 597 | ||
| @@ -661,8 +610,6 @@ var xReloadUserSpecialDirsCache func() | |||
| 661 | 610 | // that can't be freed. We ensure to only leak the data for | |
| 662 | 611 | // the directories that actually changed value though. | |
| 663 | 612 | func ReloadUserSpecialDirsCache() { | |
| 664 | - | core.LazyRegister(&xReloadUserSpecialDirsCache, "GLIB", "g_reload_user_special_dirs_cache", false) | |
| 665 | - | ||
| 666 | 613 | xReloadUserSpecialDirsCache() | |
| 667 | 614 | } | |
| 668 | 615 | ||
| @@ -680,8 +627,6 @@ var xSetApplicationName func(string) | |||
| 680 | 627 | // The application name will be used in contexts such as error messages, | |
| 681 | 628 | // or when displaying an application's name in the task list. | |
| 682 | 629 | func SetApplicationName(ApplicationNameVar string) { | |
| 683 | - | core.LazyRegister(&xSetApplicationName, "GLIB", "g_set_application_name", false) | |
| 684 | - | ||
| 685 | 630 | xSetApplicationName(ApplicationNameVar) | |
| 686 | 631 | } | |
| 687 | 632 | ||
| @@ -703,8 +648,6 @@ var xSetPrgname func(string) | |||
| 703 | 648 | // See the [GTK documentation](https://docs.gtk.org/gtk4/migrating-3to4.html#set-a-proper-application-id) | |
| 704 | 649 | // for requirements on integrating g_set_prgname() with GTK applications. | |
| 705 | 650 | func SetPrgname(PrgnameVar string) { | |
| 706 | - | core.LazyRegister(&xSetPrgname, "GLIB", "g_set_prgname", false) | |
| 707 | - | ||
| 708 | 651 | xSetPrgname(PrgnameVar) | |
| 709 | 652 | } | |
| 710 | 653 | ||
| @@ -728,8 +671,6 @@ var xSnprintf func(string, uint, string, ...interface{}) int | |||
| 728 | 671 | // The format string may contain positional parameters, as specified in | |
| 729 | 672 | // the Single Unix Specification. | |
| 730 | 673 | func Snprintf(StringVar string, NVar uint, FormatVar string, varArgs ...interface{}) int { | |
| 731 | - | core.LazyRegister(&xSnprintf, "GLIB", "g_snprintf", false) | |
| 732 | - | ||
| 733 | 674 | cret := xSnprintf(StringVar, NVar, FormatVar, varArgs...) | |
| 734 | 675 | return cret | |
| 735 | 676 | } | |
| @@ -754,8 +695,6 @@ var xVsnprintf func(string, uint, string, []interface{}) int | |||
| 754 | 695 | // The format string may contain positional parameters, as specified in | |
| 755 | 696 | // the Single Unix Specification. | |
| 756 | 697 | func Vsnprintf(StringVar string, NVar uint, FormatVar string, ArgsVar []interface{}) int { | |
| 757 | - | core.LazyRegister(&xVsnprintf, "GLIB", "g_vsnprintf", false) | |
| 758 | - | ||
| 759 | 698 | cret := xVsnprintf(StringVar, NVar, FormatVar, ArgsVar) | |
| 760 | 699 | return cret | |
| 761 | 700 | } | |
| @@ -763,4 +702,44 @@ func Vsnprintf(StringVar string, NVar uint, FormatVar string, ArgsVar []interfac | |||
| 763 | 702 | func init() { | |
| 764 | 703 | core.SetPackageName("GLIB", "glib-2.0") | |
| 765 | 704 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | |
| 705 | + | var libs []uintptr | |
| 706 | + | for _, libPath := range core.GetPaths("GLIB") { | |
| 707 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 708 | + | if err != nil { | |
| 709 | + | panic(err) | |
| 710 | + | } | |
| 711 | + | libs = append(libs, lib) | |
| 712 | + | } | |
| 713 | + | ||
| 714 | + | core.PuregoSafeRegister(&xAtexit, libs, "g_atexit") | |
| 715 | + | core.PuregoSafeRegister(&xBitNthLsf, libs, "g_bit_nth_lsf") | |
| 716 | + | core.PuregoSafeRegister(&xBitNthMsf, libs, "g_bit_nth_msf") | |
| 717 | + | core.PuregoSafeRegister(&xBitStorage, libs, "g_bit_storage") | |
| 718 | + | core.PuregoSafeRegister(&xFindProgramInPath, libs, "g_find_program_in_path") | |
| 719 | + | core.PuregoSafeRegister(&xFormatSize, libs, "g_format_size") | |
| 720 | + | core.PuregoSafeRegister(&xFormatSizeForDisplay, libs, "g_format_size_for_display") | |
| 721 | + | core.PuregoSafeRegister(&xFormatSizeFull, libs, "g_format_size_full") | |
| 722 | + | core.PuregoSafeRegister(&xGetApplicationName, libs, "g_get_application_name") | |
| 723 | + | core.PuregoSafeRegister(&xGetHomeDir, libs, "g_get_home_dir") | |
| 724 | + | core.PuregoSafeRegister(&xGetHostName, libs, "g_get_host_name") | |
| 725 | + | core.PuregoSafeRegister(&xGetOsInfo, libs, "g_get_os_info") | |
| 726 | + | core.PuregoSafeRegister(&xGetPrgname, libs, "g_get_prgname") | |
| 727 | + | core.PuregoSafeRegister(&xGetRealName, libs, "g_get_real_name") | |
| 728 | + | core.PuregoSafeRegister(&xGetSystemConfigDirs, libs, "g_get_system_config_dirs") | |
| 729 | + | core.PuregoSafeRegister(&xGetSystemDataDirs, libs, "g_get_system_data_dirs") | |
| 730 | + | core.PuregoSafeRegister(&xGetTmpDir, libs, "g_get_tmp_dir") | |
| 731 | + | core.PuregoSafeRegister(&xGetUserCacheDir, libs, "g_get_user_cache_dir") | |
| 732 | + | core.PuregoSafeRegister(&xGetUserConfigDir, libs, "g_get_user_config_dir") | |
| 733 | + | core.PuregoSafeRegister(&xGetUserDataDir, libs, "g_get_user_data_dir") | |
| 734 | + | core.PuregoSafeRegister(&xGetUserName, libs, "g_get_user_name") | |
| 735 | + | core.PuregoSafeRegister(&xGetUserRuntimeDir, libs, "g_get_user_runtime_dir") | |
| 736 | + | core.PuregoSafeRegister(&xGetUserSpecialDir, libs, "g_get_user_special_dir") | |
| 737 | + | core.PuregoSafeRegister(&xGetUserStateDir, libs, "g_get_user_state_dir") | |
| 738 | + | core.PuregoSafeRegister(&xNullifyPointer, libs, "g_nullify_pointer") | |
| 739 | + | core.PuregoSafeRegister(&xParseDebugString, libs, "g_parse_debug_string") | |
| 740 | + | core.PuregoSafeRegister(&xReloadUserSpecialDirsCache, libs, "g_reload_user_special_dirs_cache") | |
| 741 | + | core.PuregoSafeRegister(&xSetApplicationName, libs, "g_set_application_name") | |
| 742 | + | core.PuregoSafeRegister(&xSetPrgname, libs, "g_set_prgname") | |
| 743 | + | core.PuregoSafeRegister(&xSnprintf, libs, "g_snprintf") | |
| 744 | + | core.PuregoSafeRegister(&xVsnprintf, libs, "g_vsnprintf") | |
| 766 | 745 | } | |
| @@ -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 | ||||
| @@ -127,8 +128,6 @@ var xAtexit func(uintptr) | |||||
| 127 | // calling g_atexit() (or atexit()) except in the main executable of a | 128 | // calling g_atexit() (or atexit()) except in the main executable of a | ||
| 128 | // program. | 129 | // program. | ||
| 129 | func Atexit(FuncVar *VoidFunc) { | 130 | func Atexit(FuncVar *VoidFunc) { | ||
| 130 | - | core.LazyRegister(&xAtexit, "GLIB", "g_atexit", false) | |||
| 131 | - | ||||
| 132 | xAtexit(NewCallback(FuncVar)) | 131 | xAtexit(NewCallback(FuncVar)) | ||
| 133 | } | 132 | } | ||
| 134 | 133 | ||||
| @@ -139,8 +138,6 @@ var xBitNthLsf func(uint, int) int | |||||
| 139 | // from 0 (least significant) to sizeof(#gulong) * 8 - 1 (31 or 63, | 138 | // from 0 (least significant) to sizeof(#gulong) * 8 - 1 (31 or 63, | ||
| 140 | // usually). To start searching from the 0th bit, set @nth_bit to -1. | 139 | // usually). To start searching from the 0th bit, set @nth_bit to -1. | ||
| 141 | func BitNthLsf(MaskVar uint, NthBitVar int) int { | 140 | func BitNthLsf(MaskVar uint, NthBitVar int) int { | ||
| 142 | - | core.LazyRegister(&xBitNthLsf, "GLIB", "g_bit_nth_lsf", false) | |||
| 143 | - | ||||
| 144 | cret := xBitNthLsf(MaskVar, NthBitVar) | 141 | cret := xBitNthLsf(MaskVar, NthBitVar) | ||
| 145 | return cret | 142 | return cret | ||
| 146 | } | 143 | } | ||
| @@ -153,8 +150,6 @@ var xBitNthMsf func(uint, int) int | |||||
| 153 | // usually). To start searching from the last bit, set @nth_bit to | 150 | // usually). To start searching from the last bit, set @nth_bit to | ||
| 154 | // -1 or GLIB_SIZEOF_LONG * 8. | 151 | // -1 or GLIB_SIZEOF_LONG * 8. | ||
| 155 | func BitNthMsf(MaskVar uint, NthBitVar int) int { | 152 | func BitNthMsf(MaskVar uint, NthBitVar int) int { | ||
| 156 | - | core.LazyRegister(&xBitNthMsf, "GLIB", "g_bit_nth_msf", false) | |||
| 157 | - | ||||
| 158 | cret := xBitNthMsf(MaskVar, NthBitVar) | 153 | cret := xBitNthMsf(MaskVar, NthBitVar) | ||
| 159 | return cret | 154 | return cret | ||
| 160 | } | 155 | } | ||
| @@ -164,8 +159,6 @@ var xBitStorage func(uint) uint | |||||
| 164 | // Gets the number of bits used to hold @number, | 159 | // Gets the number of bits used to hold @number, | ||
| 165 | // e.g. if @number is 4, 3 bits are needed. | 160 | // e.g. if @number is 4, 3 bits are needed. | ||
| 166 | func BitStorage(NumberVar uint) uint { | 161 | func BitStorage(NumberVar uint) uint { | ||
| 167 | - | core.LazyRegister(&xBitStorage, "GLIB", "g_bit_storage", false) | |||
| 168 | - | ||||
| 169 | cret := xBitStorage(NumberVar) | 162 | cret := xBitStorage(NumberVar) | ||
| 170 | return cret | 163 | return cret | ||
| 171 | } | 164 | } | ||
| @@ -190,8 +183,6 @@ var xFindProgramInPath func(string) string | |||||
| 190 | // the program is found, the return value contains the full name | 183 | // the program is found, the return value contains the full name | ||
| 191 | // including the type suffix. | 184 | // including the type suffix. | ||
| 192 | func FindProgramInPath(ProgramVar string) string { | 185 | func FindProgramInPath(ProgramVar string) string { | ||
| 193 | - | core.LazyRegister(&xFindProgramInPath, "GLIB", "g_find_program_in_path", false) | |||
| 194 | - | ||||
| 195 | cret := xFindProgramInPath(ProgramVar) | 186 | cret := xFindProgramInPath(ProgramVar) | ||
| 196 | return cret | 187 | return cret | ||
| 197 | } | 188 | } | ||
| @@ -212,8 +203,6 @@ var xFormatSize func(uint64) string | |||||
| 212 | // See g_format_size_full() for more options about how the size might be | 203 | // See g_format_size_full() for more options about how the size might be | ||
| 213 | // formatted. | 204 | // formatted. | ||
| 214 | func FormatSize(SizeVar uint64) string { | 205 | func FormatSize(SizeVar uint64) string { | ||
| 215 | - | core.LazyRegister(&xFormatSize, "GLIB", "g_format_size", false) | |||
| 216 | - | ||||
| 217 | cret := xFormatSize(SizeVar) | 206 | cret := xFormatSize(SizeVar) | ||
| 218 | return cret | 207 | return cret | ||
| 219 | } | 208 | } | ||
| @@ -230,8 +219,6 @@ var xFormatSizeForDisplay func(int64) string | |||||
| 230 | // | 219 | // | ||
| 231 | // This string should be freed with g_free() when not needed any longer. | 220 | // This string should be freed with g_free() when not needed any longer. | ||
| 232 | func FormatSizeForDisplay(SizeVar int64) string { | 221 | func FormatSizeForDisplay(SizeVar int64) string { | ||
| 233 | - | core.LazyRegister(&xFormatSizeForDisplay, "GLIB", "g_format_size_for_display", false) | |||
| 234 | - | ||||
| 235 | cret := xFormatSizeForDisplay(SizeVar) | 222 | cret := xFormatSizeForDisplay(SizeVar) | ||
| 236 | return cret | 223 | return cret | ||
| 237 | } | 224 | } | ||
| @@ -243,8 +230,6 @@ var xFormatSizeFull func(uint64, FormatSizeFlags) string | |||||
| 243 | // This function is similar to g_format_size() but allows for flags | 230 | // This function is similar to g_format_size() but allows for flags | ||
| 244 | // that modify the output. See #GFormatSizeFlags. | 231 | // that modify the output. See #GFormatSizeFlags. | ||
| 245 | func FormatSizeFull(SizeVar uint64, FlagsVar FormatSizeFlags) string { | 232 | func FormatSizeFull(SizeVar uint64, FlagsVar FormatSizeFlags) string { | ||
| 246 | - | core.LazyRegister(&xFormatSizeFull, "GLIB", "g_format_size_full", false) | |||
| 247 | - | ||||
| 248 | cret := xFormatSizeFull(SizeVar, FlagsVar) | 233 | cret := xFormatSizeFull(SizeVar, FlagsVar) | ||
| 249 | return cret | 234 | return cret | ||
| 250 | } | 235 | } | ||
| @@ -259,8 +244,6 @@ var xGetApplicationName func() string | |||||
| 259 | // g_get_prgname() (which may be %NULL if g_set_prgname() has also not | 244 | // g_get_prgname() (which may be %NULL if g_set_prgname() has also not | ||
| 260 | // been called). | 245 | // been called). | ||
| 261 | func GetApplicationName() string { | 246 | func GetApplicationName() string { | ||
| 262 | - | core.LazyRegister(&xGetApplicationName, "GLIB", "g_get_application_name", false) | |||
| 263 | - | ||||
| 264 | cret := xGetApplicationName() | 247 | cret := xGetApplicationName() | ||
| 265 | return cret | 248 | return cret | ||
| 266 | } | 249 | } | ||
| @@ -288,8 +271,6 @@ var xGetHomeDir func() string | |||||
| 288 | // should either directly check the `HOME` environment variable yourself | 271 | // should either directly check the `HOME` environment variable yourself | ||
| 289 | // or unset it before calling any functions in GLib. | 272 | // or unset it before calling any functions in GLib. | ||
| 290 | func GetHomeDir() string { | 273 | func GetHomeDir() string { | ||
| 291 | - | core.LazyRegister(&xGetHomeDir, "GLIB", "g_get_home_dir", false) | |||
| 292 | - | ||||
| 293 | cret := xGetHomeDir() | 274 | cret := xGetHomeDir() | ||
| 294 | return cret | 275 | return cret | ||
| 295 | } | 276 | } | ||
| @@ -311,8 +292,6 @@ var xGetHostName func() string | |||||
| 311 | // | 292 | // | ||
| 312 | // The encoding of the returned string is UTF-8. | 293 | // The encoding of the returned string is UTF-8. | ||
| 313 | func GetHostName() string { | 294 | func GetHostName() string { | ||
| 314 | - | core.LazyRegister(&xGetHostName, "GLIB", "g_get_host_name", false) | |||
| 315 | - | ||||
| 316 | cret := xGetHostName() | 295 | cret := xGetHostName() | ||
| 317 | return cret | 296 | return cret | ||
| 318 | } | 297 | } | ||
| @@ -328,8 +307,6 @@ var xGetOsInfo func(string) string | |||||
| 328 | // be useful. No key is guaranteed to be provided, so the caller should always | 307 | // be useful. No key is guaranteed to be provided, so the caller should always | ||
| 329 | // check if the result is %NULL. | 308 | // check if the result is %NULL. | ||
| 330 | func GetOsInfo(KeyNameVar string) string { | 309 | func GetOsInfo(KeyNameVar string) string { | ||
| 331 | - | core.LazyRegister(&xGetOsInfo, "GLIB", "g_get_os_info", false) | |||
| 332 | - | ||||
| 333 | cret := xGetOsInfo(KeyNameVar) | 310 | cret := xGetOsInfo(KeyNameVar) | ||
| 334 | return cret | 311 | return cret | ||
| 335 | } | 312 | } | ||
| @@ -345,8 +322,6 @@ var xGetPrgname func() string | |||||
| 345 | // #GtkApplication::startup handler. The program name is found by | 322 | // #GtkApplication::startup handler. The program name is found by | ||
| 346 | // taking the last component of @argv[0]. | 323 | // taking the last component of @argv[0]. | ||
| 347 | func GetPrgname() string { | 324 | func GetPrgname() string { | ||
| 348 | - | core.LazyRegister(&xGetPrgname, "GLIB", "g_get_prgname", false) | |||
| 349 | - | ||||
| 350 | cret := xGetPrgname() | 325 | cret := xGetPrgname() | ||
| 351 | return cret | 326 | return cret | ||
| 352 | } | 327 | } | ||
| @@ -359,8 +334,6 @@ var xGetRealName func() string | |||||
| 359 | // real user name cannot be determined, the string "Unknown" is | 334 | // real user name cannot be determined, the string "Unknown" is | ||
| 360 | // returned. | 335 | // returned. | ||
| 361 | func GetRealName() string { | 336 | func GetRealName() string { | ||
| 362 | - | core.LazyRegister(&xGetRealName, "GLIB", "g_get_real_name", false) | |||
| 363 | - | ||||
| 364 | cret := xGetRealName() | 337 | cret := xGetRealName() | ||
| 365 | return cret | 338 | return cret | ||
| 366 | } | 339 | } | ||
| @@ -388,8 +361,6 @@ var xGetSystemConfigDirs func() []string | |||||
| 388 | // The return value is cached and modifying it at runtime is not supported, as | 361 | // The return value is cached and modifying it at runtime is not supported, as | ||
| 389 | // it’s not thread-safe to modify environment variables at runtime. | 362 | // it’s not thread-safe to modify environment variables at runtime. | ||
| 390 | func GetSystemConfigDirs() []string { | 363 | func GetSystemConfigDirs() []string { | ||
| 391 | - | core.LazyRegister(&xGetSystemConfigDirs, "GLIB", "g_get_system_config_dirs", false) | |||
| 392 | - | ||||
| 393 | cret := xGetSystemConfigDirs() | 364 | cret := xGetSystemConfigDirs() | ||
| 394 | return cret | 365 | return cret | ||
| 395 | } | 366 | } | ||
| @@ -431,8 +402,6 @@ var xGetSystemDataDirs func() []string | |||||
| 431 | // The return value is cached and modifying it at runtime is not supported, as | 402 | // The return value is cached and modifying it at runtime is not supported, as | ||
| 432 | // it’s not thread-safe to modify environment variables at runtime. | 403 | // it’s not thread-safe to modify environment variables at runtime. | ||
| 433 | func GetSystemDataDirs() []string { | 404 | func GetSystemDataDirs() []string { | ||
| 434 | - | core.LazyRegister(&xGetSystemDataDirs, "GLIB", "g_get_system_data_dirs", false) | |||
| 435 | - | ||||
| 436 | cret := xGetSystemDataDirs() | 405 | cret := xGetSystemDataDirs() | ||
| 437 | return cret | 406 | return cret | ||
| 438 | } | 407 | } | ||
| @@ -454,8 +423,6 @@ var xGetTmpDir func() string | |||||
| 454 | // it is always UTF-8. The return value is never %NULL or the empty | 423 | // it is always UTF-8. The return value is never %NULL or the empty | ||
| 455 | // string. | 424 | // string. | ||
| 456 | func GetTmpDir() string { | 425 | func GetTmpDir() string { | ||
| 457 | - | core.LazyRegister(&xGetTmpDir, "GLIB", "g_get_tmp_dir", false) | |||
| 458 | - | ||||
| 459 | cret := xGetTmpDir() | 426 | cret := xGetTmpDir() | ||
| 460 | return cret | 427 | return cret | ||
| 461 | } | 428 | } | ||
| @@ -479,8 +446,6 @@ var xGetUserCacheDir func() string | |||||
| 479 | // The return value is cached and modifying it at runtime is not supported, as | 446 | // The return value is cached and modifying it at runtime is not supported, as | ||
| 480 | // it’s not thread-safe to modify environment variables at runtime. | 447 | // it’s not thread-safe to modify environment variables at runtime. | ||
| 481 | func GetUserCacheDir() string { | 448 | func GetUserCacheDir() string { | ||
| 482 | - | core.LazyRegister(&xGetUserCacheDir, "GLIB", "g_get_user_cache_dir", false) | |||
| 483 | - | ||||
| 484 | cret := xGetUserCacheDir() | 449 | cret := xGetUserCacheDir() | ||
| 485 | return cret | 450 | return cret | ||
| 486 | } | 451 | } | ||
| @@ -505,8 +470,6 @@ var xGetUserConfigDir func() string | |||||
| 505 | // The return value is cached and modifying it at runtime is not supported, as | 470 | // The return value is cached and modifying it at runtime is not supported, as | ||
| 506 | // it’s not thread-safe to modify environment variables at runtime. | 471 | // it’s not thread-safe to modify environment variables at runtime. | ||
| 507 | func GetUserConfigDir() string { | 472 | func GetUserConfigDir() string { | ||
| 508 | - | core.LazyRegister(&xGetUserConfigDir, "GLIB", "g_get_user_config_dir", false) | |||
| 509 | - | ||||
| 510 | cret := xGetUserConfigDir() | 473 | cret := xGetUserConfigDir() | ||
| 511 | return cret | 474 | return cret | ||
| 512 | } | 475 | } | ||
| @@ -531,8 +494,6 @@ var xGetUserDataDir func() string | |||||
| 531 | // The return value is cached and modifying it at runtime is not supported, as | 494 | // The return value is cached and modifying it at runtime is not supported, as | ||
| 532 | // it’s not thread-safe to modify environment variables at runtime. | 495 | // it’s not thread-safe to modify environment variables at runtime. | ||
| 533 | func GetUserDataDir() string { | 496 | func GetUserDataDir() string { | ||
| 534 | - | core.LazyRegister(&xGetUserDataDir, "GLIB", "g_get_user_data_dir", false) | |||
| 535 | - | ||||
| 536 | cret := xGetUserDataDir() | 497 | cret := xGetUserDataDir() | ||
| 537 | return cret | 498 | return cret | ||
| 538 | } | 499 | } | ||
| @@ -544,8 +505,6 @@ var xGetUserName func() string | |||||
| 544 | // encoding, or something else, and there is no guarantee that it is even | 505 | // encoding, or something else, and there is no guarantee that it is even | ||
| 545 | // consistent on a machine. On Windows, it is always UTF-8. | 506 | // consistent on a machine. On Windows, it is always UTF-8. | ||
| 546 | func GetUserName() string { | 507 | func GetUserName() string { | ||
| 547 | - | core.LazyRegister(&xGetUserName, "GLIB", "g_get_user_name", false) | |||
| 548 | - | ||||
| 549 | cret := xGetUserName() | 508 | cret := xGetUserName() | ||
| 550 | return cret | 509 | return cret | ||
| 551 | } | 510 | } | ||
| @@ -566,8 +525,6 @@ var xGetUserRuntimeDir func() string | |||||
| 566 | // The return value is cached and modifying it at runtime is not supported, as | 525 | // The return value is cached and modifying it at runtime is not supported, as | ||
| 567 | // it’s not thread-safe to modify environment variables at runtime. | 526 | // it’s not thread-safe to modify environment variables at runtime. | ||
| 568 | func GetUserRuntimeDir() string { | 527 | func GetUserRuntimeDir() string { | ||
| 569 | - | core.LazyRegister(&xGetUserRuntimeDir, "GLIB", "g_get_user_runtime_dir", false) | |||
| 570 | - | ||||
| 571 | cret := xGetUserRuntimeDir() | 528 | cret := xGetUserRuntimeDir() | ||
| 572 | return cret | 529 | return cret | ||
| 573 | } | 530 | } | ||
| @@ -585,8 +542,6 @@ var xGetUserSpecialDir func(UserDirectory) string | |||||
| 585 | // of the special directory without requiring the session to restart; GLib | 542 | // of the special directory without requiring the session to restart; GLib | ||
| 586 | // will not reflect any change once the special directories are loaded. | 543 | // will not reflect any change once the special directories are loaded. | ||
| 587 | func GetUserSpecialDir(DirectoryVar UserDirectory) string { | 544 | func GetUserSpecialDir(DirectoryVar UserDirectory) string { | ||
| 588 | - | core.LazyRegister(&xGetUserSpecialDir, "GLIB", "g_get_user_special_dir", false) | |||
| 589 | - | ||||
| 590 | cret := xGetUserSpecialDir(DirectoryVar) | 545 | cret := xGetUserSpecialDir(DirectoryVar) | ||
| 591 | return cret | 546 | return cret | ||
| 592 | } | 547 | } | ||
| @@ -611,8 +566,6 @@ var xGetUserStateDir func() string | |||||
| 611 | // The return value is cached and modifying it at runtime is not supported, as | 566 | // The return value is cached and modifying it at runtime is not supported, as | ||
| 612 | // it’s not thread-safe to modify environment variables at runtime. | 567 | // it’s not thread-safe to modify environment variables at runtime. | ||
| 613 | func GetUserStateDir() string { | 568 | func GetUserStateDir() string { | ||
| 614 | - | core.LazyRegister(&xGetUserStateDir, "GLIB", "g_get_user_state_dir", false) | |||
| 615 | - | ||||
| 616 | cret := xGetUserStateDir() | 569 | cret := xGetUserStateDir() | ||
| 617 | return cret | 570 | return cret | ||
| 618 | } | 571 | } | ||
| @@ -621,8 +574,6 @@ var xNullifyPointer func(uintptr) | |||||
| 621 | 574 | ||||
| 622 | // Set the pointer at the specified location to %NULL. | 575 | // Set the pointer at the specified location to %NULL. | ||
| 623 | func NullifyPointer(NullifyLocationVar uintptr) { | 576 | func NullifyPointer(NullifyLocationVar uintptr) { | ||
| 624 | - | core.LazyRegister(&xNullifyPointer, "GLIB", "g_nullify_pointer", false) | |||
| 625 | - | ||||
| 626 | xNullifyPointer(NullifyLocationVar) | 577 | xNullifyPointer(NullifyLocationVar) | ||
| 627 | } | 578 | } | ||
| 628 | 579 | ||||
| @@ -641,8 +592,6 @@ var xParseDebugString func(uintptr, []DebugKey, uint) uint | |||||
| 641 | // If @string is equal to "help", all the available keys in @keys | 592 | // If @string is equal to "help", all the available keys in @keys | ||
| 642 | // are printed out to standard error. | 593 | // are printed out to standard error. | ||
| 643 | func ParseDebugString(StringVar *string, KeysVar []DebugKey, NkeysVar uint) uint { | 594 | func ParseDebugString(StringVar *string, KeysVar []DebugKey, NkeysVar uint) uint { | ||
| 644 | - | core.LazyRegister(&xParseDebugString, "GLIB", "g_parse_debug_string", false) | |||
| 645 | - | ||||
| 646 | StringVarPtr := core.GStrdupNullable(StringVar) | 595 | StringVarPtr := core.GStrdupNullable(StringVar) | ||
| 647 | defer core.GFreeNullable(StringVarPtr) | 596 | defer core.GFreeNullable(StringVarPtr) | ||
| 648 | 597 | ||||
| @@ -661,8 +610,6 @@ var xReloadUserSpecialDirsCache func() | |||||
| 661 | // that can't be freed. We ensure to only leak the data for | 610 | // that can't be freed. We ensure to only leak the data for | ||
| 662 | // the directories that actually changed value though. | 611 | // the directories that actually changed value though. | ||
| 663 | func ReloadUserSpecialDirsCache() { | 612 | func ReloadUserSpecialDirsCache() { | ||
| 664 | - | core.LazyRegister(&xReloadUserSpecialDirsCache, "GLIB", "g_reload_user_special_dirs_cache", false) | |||
| 665 | - | ||||
| 666 | xReloadUserSpecialDirsCache() | 613 | xReloadUserSpecialDirsCache() | ||
| 667 | } | 614 | } | ||
| 668 | 615 | ||||
| @@ -680,8 +627,6 @@ var xSetApplicationName func(string) | |||||
| 680 | // The application name will be used in contexts such as error messages, | 627 | // The application name will be used in contexts such as error messages, | ||
| 681 | // or when displaying an application's name in the task list. | 628 | // or when displaying an application's name in the task list. | ||
| 682 | func SetApplicationName(ApplicationNameVar string) { | 629 | func SetApplicationName(ApplicationNameVar string) { | ||
| 683 | - | core.LazyRegister(&xSetApplicationName, "GLIB", "g_set_application_name", false) | |||
| 684 | - | ||||
| 685 | xSetApplicationName(ApplicationNameVar) | 630 | xSetApplicationName(ApplicationNameVar) | ||
| 686 | } | 631 | } | ||
| 687 | 632 | ||||
| @@ -703,8 +648,6 @@ var xSetPrgname func(string) | |||||
| 703 | // See the [GTK documentation](https://docs.gtk.org/gtk4/migrating-3to4.html#set-a-proper-application-id) | 648 | // See the [GTK documentation](https://docs.gtk.org/gtk4/migrating-3to4.html#set-a-proper-application-id) | ||
| 704 | // for requirements on integrating g_set_prgname() with GTK applications. | 649 | // for requirements on integrating g_set_prgname() with GTK applications. | ||
| 705 | func SetPrgname(PrgnameVar string) { | 650 | func SetPrgname(PrgnameVar string) { | ||
| 706 | - | core.LazyRegister(&xSetPrgname, "GLIB", "g_set_prgname", false) | |||
| 707 | - | ||||
| 708 | xSetPrgname(PrgnameVar) | 651 | xSetPrgname(PrgnameVar) | ||
| 709 | } | 652 | } | ||
| 710 | 653 | ||||
| @@ -728,8 +671,6 @@ var xSnprintf func(string, uint, string, ...interface{}) int | |||||
| 728 | // The format string may contain positional parameters, as specified in | 671 | // The format string may contain positional parameters, as specified in | ||
| 729 | // the Single Unix Specification. | 672 | // the Single Unix Specification. | ||
| 730 | func Snprintf(StringVar string, NVar uint, FormatVar string, varArgs ...interface{}) int { | 673 | func Snprintf(StringVar string, NVar uint, FormatVar string, varArgs ...interface{}) int { | ||
| 731 | - | core.LazyRegister(&xSnprintf, "GLIB", "g_snprintf", false) | |||
| 732 | - | ||||
| 733 | cret := xSnprintf(StringVar, NVar, FormatVar, varArgs...) | 674 | cret := xSnprintf(StringVar, NVar, FormatVar, varArgs...) | ||
| 734 | return cret | 675 | return cret | ||
| 735 | } | 676 | } | ||
| @@ -754,8 +695,6 @@ var xVsnprintf func(string, uint, string, []interface{}) int | |||||
| 754 | // The format string may contain positional parameters, as specified in | 695 | // The format string may contain positional parameters, as specified in | ||
| 755 | // the Single Unix Specification. | 696 | // the Single Unix Specification. | ||
| 756 | func Vsnprintf(StringVar string, NVar uint, FormatVar string, ArgsVar []interface{}) int { | 697 | func Vsnprintf(StringVar string, NVar uint, FormatVar string, ArgsVar []interface{}) int { | ||
| 757 | - | core.LazyRegister(&xVsnprintf, "GLIB", "g_vsnprintf", false) | |||
| 758 | - | ||||
| 759 | cret := xVsnprintf(StringVar, NVar, FormatVar, ArgsVar) | 698 | cret := xVsnprintf(StringVar, NVar, FormatVar, ArgsVar) | ||
| 760 | return cret | 699 | return cret | ||
| 761 | } | 700 | } | ||
| @@ -763,4 +702,44 @@ func Vsnprintf(StringVar string, NVar uint, FormatVar string, ArgsVar []interfac | |||||
| 763 | func init() { | 702 | func init() { | ||
| 764 | core.SetPackageName("GLIB", "glib-2.0") | 703 | core.SetPackageName("GLIB", "glib-2.0") | ||
| 765 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | 704 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | ||
| 705 | + | var libs []uintptr | |||
| 706 | + | for _, libPath := range core.GetPaths("GLIB") { | |||
| 707 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 708 | + | if err != nil { | |||
| 709 | + | panic(err) | |||
| 710 | + | } | |||
| 711 | + | libs = append(libs, lib) | |||
| 712 | + | } | |||
| 713 | + | ||||
| 714 | + | core.PuregoSafeRegister(&xAtexit, libs, "g_atexit") | |||
| 715 | + | core.PuregoSafeRegister(&xBitNthLsf, libs, "g_bit_nth_lsf") | |||
| 716 | + | core.PuregoSafeRegister(&xBitNthMsf, libs, "g_bit_nth_msf") | |||
| 717 | + | core.PuregoSafeRegister(&xBitStorage, libs, "g_bit_storage") | |||
| 718 | + | core.PuregoSafeRegister(&xFindProgramInPath, libs, "g_find_program_in_path") | |||
| 719 | + | core.PuregoSafeRegister(&xFormatSize, libs, "g_format_size") | |||
| 720 | + | core.PuregoSafeRegister(&xFormatSizeForDisplay, libs, "g_format_size_for_display") | |||
| 721 | + | core.PuregoSafeRegister(&xFormatSizeFull, libs, "g_format_size_full") | |||
| 722 | + | core.PuregoSafeRegister(&xGetApplicationName, libs, "g_get_application_name") | |||
| 723 | + | core.PuregoSafeRegister(&xGetHomeDir, libs, "g_get_home_dir") | |||
| 724 | + | core.PuregoSafeRegister(&xGetHostName, libs, "g_get_host_name") | |||
| 725 | + | core.PuregoSafeRegister(&xGetOsInfo, libs, "g_get_os_info") | |||
| 726 | + | core.PuregoSafeRegister(&xGetPrgname, libs, "g_get_prgname") | |||
| 727 | + | core.PuregoSafeRegister(&xGetRealName, libs, "g_get_real_name") | |||
| 728 | + | core.PuregoSafeRegister(&xGetSystemConfigDirs, libs, "g_get_system_config_dirs") | |||
| 729 | + | core.PuregoSafeRegister(&xGetSystemDataDirs, libs, "g_get_system_data_dirs") | |||
| 730 | + | core.PuregoSafeRegister(&xGetTmpDir, libs, "g_get_tmp_dir") | |||
| 731 | + | core.PuregoSafeRegister(&xGetUserCacheDir, libs, "g_get_user_cache_dir") | |||
| 732 | + | core.PuregoSafeRegister(&xGetUserConfigDir, libs, "g_get_user_config_dir") | |||
| 733 | + | core.PuregoSafeRegister(&xGetUserDataDir, libs, "g_get_user_data_dir") | |||
| 734 | + | core.PuregoSafeRegister(&xGetUserName, libs, "g_get_user_name") | |||
| 735 | + | core.PuregoSafeRegister(&xGetUserRuntimeDir, libs, "g_get_user_runtime_dir") | |||
| 736 | + | core.PuregoSafeRegister(&xGetUserSpecialDir, libs, "g_get_user_special_dir") | |||
| 737 | + | core.PuregoSafeRegister(&xGetUserStateDir, libs, "g_get_user_state_dir") | |||
| 738 | + | core.PuregoSafeRegister(&xNullifyPointer, libs, "g_nullify_pointer") | |||
| 739 | + | core.PuregoSafeRegister(&xParseDebugString, libs, "g_parse_debug_string") | |||
| 740 | + | core.PuregoSafeRegister(&xReloadUserSpecialDirsCache, libs, "g_reload_user_special_dirs_cache") | |||
| 741 | + | core.PuregoSafeRegister(&xSetApplicationName, libs, "g_set_application_name") | |||
| 742 | + | core.PuregoSafeRegister(&xSetPrgname, libs, "g_set_prgname") | |||
| 743 | + | core.PuregoSafeRegister(&xSnprintf, libs, "g_snprintf") | |||
| 744 | + | core.PuregoSafeRegister(&xVsnprintf, libs, "g_vsnprintf") | |||
| 766 | } | 745 | } | ||