Merge pull request #349 from bnema/fix/rollback-lazy-puregotk
fix(deps): emergency rollback puregotk lazy registration regression
905 files · +25263 -27842
M go.mod +1 -1
| @@ -11,7 +11,7 @@ require ( | |||
| 11 | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | |
| 12 | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | |
| 13 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | |
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | |
| 14 | + | github.com/bnema/puregotk v0.7.0 | |
| 15 | 15 | github.com/charmbracelet/bubbles v1.0.0 | |
| 16 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | |
| 17 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | |
| @@ -11,7 +11,7 @@ require ( | |||||
| 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | ||
| 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | ||
| 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | ||
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | 14 | + | github.com/bnema/puregotk v0.7.0 |
| 15 | github.com/charmbracelet/bubbles v1.0.0 | 15 | github.com/charmbracelet/bubbles v1.0.0 | ||
| 16 | github.com/charmbracelet/bubbletea v1.3.10 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | ||
| 17 | github.com/charmbracelet/lipgloss v1.1.0 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | ||
M go.sum +0 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/internal/core/core.go +4 -197 generated file: collapsed
M vendor/github.com/bnema/puregotk/pkg/core/core.go +0 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-dialog.go +64 -99 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-window.go +62 -95 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-accent-color.go +15 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-action-row.go +29 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-alert-dialog.go +47 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-target.go +27 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-util.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation.go +26 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application-window.go +22 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-avatar.go +25 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-banner.go +26 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bin.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bottom-sheet.go +38 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint-bin.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint.go +37 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-content.go +22 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-row.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-dots.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-lines.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel.go +37 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-layout.go +20 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-scrollable.go +22 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp.go +22 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-combo-row.go +33 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-dialog.go +38 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-easing.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-entry-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-enum-list-model.go +22 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-expander-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-flap.go +48 -61 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-fold-threshold-policy.go +1 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-header-bar.go +33 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-inline-view-switcher.go +24 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout-slot.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout.go +17 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-leaflet.go +56 -69 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-length-unit.go +14 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-main.go +15 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-message-dialog.go +44 -63 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-multi-layout-view.go +23 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-direction.go +1 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-split-view.go +32 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-view.go +49 -60 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-overlay-split-view.go +38 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-password-entry-row.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-dialog.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-group.go +26 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-page.go +33 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-row.go +22 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-window.go +29 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcut-label.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-dialog.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-item.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-section.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-item.go +37 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-section.go +27 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar.go +39 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spin-row.go +34 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner-paintable.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-split-button.go +34 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-animation.go +30 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-params.go +21 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-squeezer.go +44 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-status-page.go +24 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-style-manager.go +28 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipe-tracker.go +30 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipeable.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-switch-row.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-bar.go +32 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-button.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-overview.go +37 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-view.go +87 -123 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-timed-animation.go +28 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast-overlay.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast.go +36 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toggle-group.go +51 -64 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toolbar-view.go +35 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-version.go +16 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-stack.go +62 -78 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-bar.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-sidebar.go +22 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-title.go +23 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher.go +20 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window-title.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window.go +22 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-box.go +46 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-layout.go +46 -57 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/cairo/main.go +79 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkapplaunchcontext.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairo.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairocontext.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcicpparams.go +25 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkclipboard.go +32 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcolorstate.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentdeserializer.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentformats.go +31 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentprovider.go +28 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentserializer.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcursor.go +21 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevice.go +33 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicepad.go +22 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicetool.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplay.go +43 -51 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplaymanager.go +20 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexture.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexturebuilder.go +41 -53 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrag.go +28 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurface.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurfacesize.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrawcontext.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrop.go +24 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkenums.go +1 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkevents.go +118 -120 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframeclock.go +24 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframetimings.go +20 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkglcontext.go +36 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexture.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexturebuilder.go +35 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkkeys.go +22 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexture.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexturebuilder.go +35 -42 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmonitor.go +27 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpaintable.go +33 -63 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpango.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpixbuf.go +12 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopup.go +26 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopuplayout.go +32 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkrgba.go +21 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkseat.go +20 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksnapshot.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksurface.go +40 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktexture.go +31 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevel.go +66 -157 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevellayout.go +25 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevelsize.go +16 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktypes.go +72 -95 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkvulkancontext.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-animation.go +32 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-core.go +0 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-io.go +23 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-loader.go +22 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-simple-anim.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-transform.go +1 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf.go +79 -102 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/main.go +17 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gaction.go +31 -59 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactiongroup.go +39 -96 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactionmap.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gappinfo.go +116 -244 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplication.go +55 -79 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplicationcommandline.go +27 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncinitable.go +22 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncresult.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedinputstream.go +29 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedoutputstream.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbytesicon.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcancellable.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcharsetconverter.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcontenttype.go +26 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverter.go +20 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverterinputstream.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverteroutputstream.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcredentials.go +21 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatagrambased.go +30 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatainputstream.go +35 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdataoutputstream.go +23 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusactiongroup.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusaddress.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusauthobserver.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusconnection.go +66 -77 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbuserror.go +18 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusinterface.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusinterfaceskeleton.go +24 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusintrospection.go +56 -54 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmenumodel.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmessage.go +64 -88 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmethodinvocation.go +30 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusnameowning.go +15 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusnamewatching.go +15 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobject.go +17 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanager.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerclient.go +23 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerserver.go +20 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectproxy.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectskeleton.go +18 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusproxy.go +38 -42 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusserver.go +20 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusutils.go +22 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdebugcontroller.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdebugcontrollerdbus.go +14 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdrive.go +82 -214 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsclientconnection.go +24 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsconnection.go +80 -207 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsserverconnection.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gemblem.go +17 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gemblemedicon.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfile.go +450 -1148 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileattribute.go +19 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileenumerator.go +35 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileicon.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileinfo.go +84 -138 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileinputstream.go +23 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileiostream.go +27 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilemonitor.go +15 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilenamecompleter.go +16 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileoutputstream.go +27 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilterinputstream.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilteroutputstream.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gicon.go +25 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetaddress.go +34 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetaddressmask.go +21 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetsocketaddress.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginitable.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginputstream.go +48 -52 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioenums.go +1 -90 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioerror.go +13 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giomodule.go +29 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioscheduler.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giostream.go +29 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giotypes.go +60 -70 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giptosmessage.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gipv6tclassmessage.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/glistmodel.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gliststore.go +24 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gloadableicon.go +23 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemoryinputstream.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemorymonitor.go +12 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemoryoutputstream.go +19 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmenu.go +50 -62 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmenumodel.go +33 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmount.go +86 -215 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmountoperation.go +32 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnativesocketaddress.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnativevolumemonitor.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkaddress.go +21 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworking.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkmonitor.go +31 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkservice.go +19 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnotification.go +26 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/goutputstream.go +72 -86 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpermission.go +33 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableinputstream.go +22 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableoutputstream.go +27 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableutils.go +15 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpowerprofilemonitor.go +16 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpropertyaction.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxy.go +27 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyaddress.go +21 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyaddressenumerator.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyresolver.go +27 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gremoteactiongroup.go +15 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gresolver.go +67 -75 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gresource.go +23 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gseekable.go +27 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettings.go +67 -99 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettingsbackend.go +24 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettingsschema.go +43 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleaction.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleactiongroup.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleasyncresult.go +40 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleiostream.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimplepermission.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleproxyresolver.go +16 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocket.go +72 -87 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketaddress.go +19 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketaddressenumerator.go +20 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketclient.go +44 -54 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketconnectable.go +17 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketconnection.go +21 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketcontrolmessage.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketlistener.go +25 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketservice.go +16 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsrvtarget.go +11 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsubprocess.go +39 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsubprocesslauncher.go +31 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtask.go +52 -70 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtcpconnection.go +14 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtcpwrapperconnection.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtestdbus.go +22 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gthemedicon.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gthreadedresolver.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gthreadedsocketservice.go +12 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsbackend.go +33 -69 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlscertificate.go +29 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsclientconnection.go +29 -55 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsconnection.go +46 -56 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsdatabase.go +48 -51 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsfiledatabase.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsinteraction.go +31 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlspassword.go +22 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsserverconnection.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixconnection.go +20 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixcredentialsmessage.go +17 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixfdlist.go +19 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixsocketaddress.go +22 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvfs.go +24 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvolume.go +58 -143 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvolumemonitor.go +19 -11 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gzlibcompressor.go +18 -9 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gzlibdecompressor.go +15 -3 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/main.go +11 -2 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gallocator.go +28 -32 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/garray.go +59 -82 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gasyncqueue.go +39 -56 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gatomic.go +34 -43 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbacktrace.go +15 -5 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbase64.go +19 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbitlock.go +24 -23 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbookmarkfile.go +61 -69 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcache.go +15 -10 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcharset.go +19 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gchecksum.go +25 -23 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcompletion.go +17 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gconvert.go +28 -25 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdataset.go +28 -36 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdate.go +65 -103 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdatetime.go +66 -107 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdir.go +19 -12 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/genviron.go +21 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gerror.go +29 -30 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gfileutils.go +38 -45
| @@ -1,7 +1,10 @@ | |||
| 1 | 1 | // Package glib was automatically generated by github.com/bnema/puregotk DO NOT EDIT | |
| 2 | 2 | package glib | |
| 3 | 3 | ||
| 4 | - | import "github.com/bnema/puregotk/pkg/core" | |
| 4 | + | import ( | |
| 5 | + | "github.com/bnema/purego" | |
| 6 | + | "github.com/bnema/puregotk/pkg/core" | |
| 7 | + | ) | |
| 5 | 8 | ||
| 6 | 9 | // Flags to pass to g_file_set_contents_full() to affect its safety and | |
| 7 | 10 | // performance. | |
| @@ -167,8 +170,6 @@ var xBasename func(string) string | |||
| 167 | 170 | // components. It returns a pointer into the given file name | |
| 168 | 171 | // string. | |
| 169 | 172 | func Basename(FileNameVar string) string { | |
| 170 | - | core.LazyRegister(&xBasename, "GLIB", "g_basename", false) | |
| 171 | - | ||
| 172 | 173 | cret := xBasename(FileNameVar) | |
| 173 | 174 | return cret | |
| 174 | 175 | } | |
| @@ -194,8 +195,6 @@ var xBuildFilename func(string, ...interface{}) string | |||
| 194 | 195 | // If you are building a path programmatically you may want to use | |
| 195 | 196 | // #GPathBuf instead. | |
| 196 | 197 | func BuildFilename(FirstElementVar string, varArgs ...interface{}) string { | |
| 197 | - | core.LazyRegister(&xBuildFilename, "GLIB", "g_build_filename", false) | |
| 198 | - | ||
| 199 | 198 | cret := xBuildFilename(FirstElementVar, varArgs...) | |
| 200 | 199 | return cret | |
| 201 | 200 | } | |
| @@ -211,8 +210,6 @@ var xBuildFilenameValist func(string, []interface{}) string | |||
| 211 | 210 | // This function is mainly meant for implementing other variadic arguments | |
| 212 | 211 | // functions. | |
| 213 | 212 | func BuildFilenameValist(FirstElementVar string, ArgsVar []interface{}) string { | |
| 214 | - | core.LazyRegister(&xBuildFilenameValist, "GLIB", "g_build_filename_valist", false) | |
| 215 | - | ||
| 216 | 213 | cret := xBuildFilenameValist(FirstElementVar, ArgsVar) | |
| 217 | 214 | return cret | |
| 218 | 215 | } | |
| @@ -229,8 +226,6 @@ var xBuildFilenamev func([]string) string | |||
| 229 | 226 | // If you are building a path programmatically you may want to use | |
| 230 | 227 | // #GPathBuf instead. | |
| 231 | 228 | func BuildFilenamev(ArgsVar []string) string { | |
| 232 | - | core.LazyRegister(&xBuildFilenamev, "GLIB", "g_build_filenamev", false) | |
| 233 | - | ||
| 234 | 229 | cret := xBuildFilenamev(ArgsVar) | |
| 235 | 230 | return cret | |
| 236 | 231 | } | |
| @@ -266,8 +261,6 @@ var xBuildPath func(string, string, ...interface{}) string | |||
| 266 | 261 | // copies of the separator, elements consisting only of copies | |
| 267 | 262 | // of the separator are ignored. | |
| 268 | 263 | func BuildPath(SeparatorVar string, FirstElementVar string, varArgs ...interface{}) string { | |
| 269 | - | core.LazyRegister(&xBuildPath, "GLIB", "g_build_path", false) | |
| 270 | - | ||
| 271 | 264 | cret := xBuildPath(SeparatorVar, FirstElementVar, varArgs...) | |
| 272 | 265 | return cret | |
| 273 | 266 | } | |
| @@ -279,8 +272,6 @@ var xBuildPathv func(string, []string) string | |||
| 279 | 272 | // | |
| 280 | 273 | // This function is mainly meant for language bindings. | |
| 281 | 274 | func BuildPathv(SeparatorVar string, ArgsVar []string) string { | |
| 282 | - | core.LazyRegister(&xBuildPathv, "GLIB", "g_build_pathv", false) | |
| 283 | - | ||
| 284 | 275 | cret := xBuildPathv(SeparatorVar, ArgsVar) | |
| 285 | 276 | return cret | |
| 286 | 277 | } | |
| @@ -302,8 +293,6 @@ var xCanonicalizeFilename func(string, uintptr) string | |||
| 302 | 293 | // | |
| 303 | 294 | // No file system I/O is done. | |
| 304 | 295 | func CanonicalizeFilename(FilenameVar string, RelativeToVar *string) string { | |
| 305 | - | core.LazyRegister(&xCanonicalizeFilename, "GLIB", "g_canonicalize_filename", false) | |
| 306 | - | ||
| 307 | 296 | RelativeToVarPtr := core.GStrdupNullable(RelativeToVar) | |
| 308 | 297 | defer core.GFreeNullable(RelativeToVarPtr) | |
| 309 | 298 | ||
| @@ -325,7 +314,6 @@ var xDirMakeTmp func(uintptr, **Error) string | |||
| 325 | 314 | // Note that in contrast to g_mkdtemp() (and mkdtemp()) @tmpl is not | |
| 326 | 315 | // modified, and might thus be a read-only literal string. | |
| 327 | 316 | func DirMakeTmp(TmplVar *string) (string, error) { | |
| 328 | - | core.LazyRegister(&xDirMakeTmp, "GLIB", "g_dir_make_tmp", false) | |
| 329 | 317 | var cerr *Error | |
| 330 | 318 | ||
| 331 | 319 | TmplVarPtr := core.GStrdupNullable(TmplVar) | |
| @@ -350,8 +338,6 @@ var xFileErrorFromErrno func(int) FileError | |||
| 350 | 338 | // from a function that manipulates files. So you would use | |
| 351 | 339 | // g_file_error_from_errno() when constructing a #GError. | |
| 352 | 340 | func FileErrorFromErrno(ErrNoVar int) FileError { | |
| 353 | - | core.LazyRegister(&xFileErrorFromErrno, "GLIB", "g_file_error_from_errno", false) | |
| 354 | - | ||
| 355 | 341 | cret := xFileErrorFromErrno(ErrNoVar) | |
| 356 | 342 | return cret | |
| 357 | 343 | } | |
| @@ -369,7 +355,6 @@ var xFileGetContents func(string, *[]byte, *uint, **Error) bool | |||
| 369 | 355 | // codes are those in the #GFileError enumeration. In the error case, | |
| 370 | 356 | // @contents is set to %NULL and @length is set to zero. | |
| 371 | 357 | func FileGetContents(FilenameVar string, ContentsVar *[]byte, LengthVar *uint) (bool, error) { | |
| 372 | - | core.LazyRegister(&xFileGetContents, "GLIB", "g_file_get_contents", false) | |
| 373 | 358 | var cerr *Error | |
| 374 | 359 | ||
| 375 | 360 | cret := xFileGetContents(FilenameVar, ContentsVar, LengthVar, &cerr) | |
| @@ -398,7 +383,6 @@ var xFileOpenTmp func(uintptr, *string, **Error) int | |||
| 398 | 383 | // when not needed any longer. The returned name is in the GLib file | |
| 399 | 384 | // name encoding. | |
| 400 | 385 | func FileOpenTmp(TmplVar *string, NameUsedVar *string) (int, error) { | |
| 401 | - | core.LazyRegister(&xFileOpenTmp, "GLIB", "g_file_open_tmp", false) | |
| 402 | 386 | var cerr *Error | |
| 403 | 387 | ||
| 404 | 388 | TmplVarPtr := core.GStrdupNullable(TmplVar) | |
| @@ -440,7 +424,6 @@ var xFileReadLink func(string, **Error) string | |||
| 440 | 424 | // | |
| 441 | 425 | // ]| | |
| 442 | 426 | func FileReadLink(FilenameVar string) (string, error) { | |
| 443 | - | core.LazyRegister(&xFileReadLink, "GLIB", "g_file_read_link", false) | |
| 444 | 427 | var cerr *Error | |
| 445 | 428 | ||
| 446 | 429 | cret := xFileReadLink(FilenameVar, &cerr) | |
| @@ -457,7 +440,6 @@ var xFileSetContents func(string, []byte, int, **Error) bool | |||
| 457 | 440 | // `G_FILE_SET_CONTENTS_CONSISTENT | G_FILE_SET_CONTENTS_ONLY_EXISTING` and | |
| 458 | 441 | // `mode` set to `0666`. | |
| 459 | 442 | func FileSetContents(FilenameVar string, ContentsVar []byte, LengthVar int) (bool, error) { | |
| 460 | - | core.LazyRegister(&xFileSetContents, "GLIB", "g_file_set_contents", false) | |
| 461 | 443 | var cerr *Error | |
| 462 | 444 | ||
| 463 | 445 | cret := xFileSetContents(FilenameVar, ContentsVar, LengthVar, &cerr) | |
| @@ -524,7 +506,6 @@ var xFileSetContentsFull func(string, []byte, int, FileSetContentsFlags, int, ** | |||
| 524 | 506 | // permissions from @mode. Otherwise, the permissions of the existing file will | |
| 525 | 507 | // remain unchanged. | |
| 526 | 508 | func FileSetContentsFull(FilenameVar string, ContentsVar []byte, LengthVar int, FlagsVar FileSetContentsFlags, ModeVar int) (bool, error) { | |
| 527 | - | core.LazyRegister(&xFileSetContentsFull, "GLIB", "g_file_set_contents_full", false) | |
| 528 | 509 | var cerr *Error | |
| 529 | 510 | ||
| 530 | 511 | cret := xFileSetContentsFull(FilenameVar, ContentsVar, LengthVar, FlagsVar, ModeVar, &cerr) | |
| @@ -598,8 +579,6 @@ var xNewFileTest func(string, FileTest) bool | |||
| 598 | 579 | // its name indicates that it is executable, checking for well-known | |
| 599 | 580 | // extensions and those listed in the `PATHEXT` environment variable. | |
| 600 | 581 | func NewFileTest(FilenameVar string, TestVar FileTest) bool { | |
| 601 | - | core.LazyRegister(&xNewFileTest, "GLIB", "g_file_test", false) | |
| 602 | - | ||
| 603 | 582 | cret := xNewFileTest(FilenameVar, TestVar) | |
| 604 | 583 | return cret | |
| 605 | 584 | } | |
| @@ -617,8 +596,6 @@ var xGetCurrentDir func() string | |||
| 617 | 596 | // the current directory. This can make a difference in the case that | |
| 618 | 597 | // the current directory is the target of a symbolic link. | |
| 619 | 598 | func GetCurrentDir() string { | |
| 620 | - | core.LazyRegister(&xGetCurrentDir, "GLIB", "g_get_current_dir", false) | |
| 621 | - | ||
| 622 | 599 | cret := xGetCurrentDir() | |
| 623 | 600 | return cret | |
| 624 | 601 | } | |
| @@ -628,8 +605,6 @@ var xMkdirWithParents func(string, int) int | |||
| 628 | 605 | // Create a directory if it doesn't already exist. Create intermediate | |
| 629 | 606 | // parent directories as needed, too. | |
| 630 | 607 | func MkdirWithParents(PathnameVar string, ModeVar int) int { | |
| 631 | - | core.LazyRegister(&xMkdirWithParents, "GLIB", "g_mkdir_with_parents", false) | |
| 632 | - | ||
| 633 | 608 | cret := xMkdirWithParents(PathnameVar, ModeVar) | |
| 634 | 609 | return cret | |
| 635 | 610 | } | |
| @@ -653,8 +628,6 @@ var xMkdtemp func(string) string | |||
| 653 | 628 | // directory returned by g_get_tmp_dir(), you might want to use | |
| 654 | 629 | // g_dir_make_tmp() instead. | |
| 655 | 630 | func Mkdtemp(TmplVar string) string { | |
| 656 | - | core.LazyRegister(&xMkdtemp, "GLIB", "g_mkdtemp", false) | |
| 657 | - | ||
| 658 | 631 | cret := xMkdtemp(TmplVar) | |
| 659 | 632 | return cret | |
| 660 | 633 | } | |
| @@ -678,8 +651,6 @@ var xMkdtempFull func(string, int) string | |||
| 678 | 651 | // directory returned by g_get_tmp_dir(), you might want to use | |
| 679 | 652 | // g_dir_make_tmp() instead. | |
| 680 | 653 | func MkdtempFull(TmplVar string, ModeVar int) string { | |
| 681 | - | core.LazyRegister(&xMkdtempFull, "GLIB", "g_mkdtemp_full", false) | |
| 682 | - | ||
| 683 | 654 | cret := xMkdtempFull(TmplVar, ModeVar) | |
| 684 | 655 | return cret | |
| 685 | 656 | } | |
| @@ -698,8 +669,6 @@ var xMkstemp func(string) int | |||
| 698 | 669 | // didn't exist. The string should be in the GLib file name encoding. | |
| 699 | 670 | // Most importantly, on Windows it should be in UTF-8. | |
| 700 | 671 | func Mkstemp(TmplVar string) int { | |
| 701 | - | core.LazyRegister(&xMkstemp, "GLIB", "g_mkstemp", false) | |
| 702 | - | ||
| 703 | 672 | cret := xMkstemp(TmplVar) | |
| 704 | 673 | return cret | |
| 705 | 674 | } | |
| @@ -719,8 +688,6 @@ var xMkstempFull func(string, int, int) int | |||
| 719 | 688 | // The string should be in the GLib file name encoding. Most importantly, | |
| 720 | 689 | // on Windows it should be in UTF-8. | |
| 721 | 690 | func MkstempFull(TmplVar string, FlagsVar int, ModeVar int) int { | |
| 722 | - | core.LazyRegister(&xMkstempFull, "GLIB", "g_mkstemp_full", false) | |
| 723 | - | ||
| 724 | 691 | cret := xMkstempFull(TmplVar, FlagsVar, ModeVar) | |
| 725 | 692 | return cret | |
| 726 | 693 | } | |
| @@ -734,8 +701,6 @@ var xPathGetBasename func(string) string | |||
| 734 | 701 | // separators (and on Windows, possibly a drive letter), a single | |
| 735 | 702 | // separator is returned. If @file_name is empty, it gets ".". | |
| 736 | 703 | func PathGetBasename(FileNameVar string) string { | |
| 737 | - | core.LazyRegister(&xPathGetBasename, "GLIB", "g_path_get_basename", false) | |
| 738 | - | ||
| 739 | 704 | cret := xPathGetBasename(FileNameVar) | |
| 740 | 705 | return cret | |
| 741 | 706 | } | |
| @@ -749,8 +714,6 @@ var xPathGetDirname func(string) string | |||
| 749 | 714 | // If the file name has no directory components "." is returned. | |
| 750 | 715 | // The returned string should be freed when no longer needed. | |
| 751 | 716 | func PathGetDirname(FileNameVar string) string { | |
| 752 | - | core.LazyRegister(&xPathGetDirname, "GLIB", "g_path_get_dirname", false) | |
| 753 | - | ||
| 754 | 717 | cret := xPathGetDirname(FileNameVar) | |
| 755 | 718 | return cret | |
| 756 | 719 | } | |
| @@ -782,8 +745,6 @@ var xPathIsAbsolute func(string) bool | |||
| 782 | 745 | // either. Such paths should be avoided, or need to be handled using | |
| 783 | 746 | // Windows-specific code. | |
| 784 | 747 | func PathIsAbsolute(FileNameVar string) bool { | |
| 785 | - | core.LazyRegister(&xPathIsAbsolute, "GLIB", "g_path_is_absolute", false) | |
| 786 | - | ||
| 787 | 748 | cret := xPathIsAbsolute(FileNameVar) | |
| 788 | 749 | return cret | |
| 789 | 750 | } | |
| @@ -794,8 +755,6 @@ var xPathSkipRoot func(string) string | |||
| 794 | 755 | // i.e. after the "/" in UNIX or "C:\" under Windows. If @file_name | |
| 795 | 756 | // is not an absolute path it returns %NULL. | |
| 796 | 757 | func PathSkipRoot(FileNameVar string) string { | |
| 797 | - | core.LazyRegister(&xPathSkipRoot, "GLIB", "g_path_skip_root", false) | |
| 798 | - | ||
| 799 | 758 | cret := xPathSkipRoot(FileNameVar) | |
| 800 | 759 | return cret | |
| 801 | 760 | } | |
| @@ -803,4 +762,38 @@ func PathSkipRoot(FileNameVar string) string { | |||
| 803 | 762 | func init() { | |
| 804 | 763 | core.SetPackageName("GLIB", "glib-2.0") | |
| 805 | 764 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | |
| 765 | + | var libs []uintptr | |
| 766 | + | for _, libPath := range core.GetPaths("GLIB") { | |
| 767 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 768 | + | if err != nil { | |
| 769 | + | panic(err) | |
| 770 | + | } | |
| 771 | + | libs = append(libs, lib) | |
| 772 | + | } | |
| 773 | + | ||
| 774 | + | core.PuregoSafeRegister(&xBasename, libs, "g_basename") | |
| 775 | + | core.PuregoSafeRegister(&xBuildFilename, libs, "g_build_filename") | |
| 776 | + | core.PuregoSafeRegister(&xBuildFilenameValist, libs, "g_build_filename_valist") | |
| 777 | + | core.PuregoSafeRegister(&xBuildFilenamev, libs, "g_build_filenamev") | |
| 778 | + | core.PuregoSafeRegister(&xBuildPath, libs, "g_build_path") | |
| 779 | + | core.PuregoSafeRegister(&xBuildPathv, libs, "g_build_pathv") | |
| 780 | + | core.PuregoSafeRegister(&xCanonicalizeFilename, libs, "g_canonicalize_filename") | |
| 781 | + | core.PuregoSafeRegister(&xDirMakeTmp, libs, "g_dir_make_tmp") | |
| 782 | + | core.PuregoSafeRegister(&xFileErrorFromErrno, libs, "g_file_error_from_errno") | |
| 783 | + | core.PuregoSafeRegister(&xFileGetContents, libs, "g_file_get_contents") | |
| 784 | + | core.PuregoSafeRegister(&xFileOpenTmp, libs, "g_file_open_tmp") | |
| 785 | + | core.PuregoSafeRegister(&xFileReadLink, libs, "g_file_read_link") | |
| 786 | + | core.PuregoSafeRegister(&xFileSetContents, libs, "g_file_set_contents") | |
| 787 | + | core.PuregoSafeRegister(&xFileSetContentsFull, libs, "g_file_set_contents_full") | |
| 788 | + | core.PuregoSafeRegister(&xNewFileTest, libs, "g_file_test") | |
| 789 | + | core.PuregoSafeRegister(&xGetCurrentDir, libs, "g_get_current_dir") | |
| 790 | + | core.PuregoSafeRegister(&xMkdirWithParents, libs, "g_mkdir_with_parents") | |
| 791 | + | core.PuregoSafeRegister(&xMkdtemp, libs, "g_mkdtemp") | |
| 792 | + | core.PuregoSafeRegister(&xMkdtempFull, libs, "g_mkdtemp_full") | |
| 793 | + | core.PuregoSafeRegister(&xMkstemp, libs, "g_mkstemp") | |
| 794 | + | core.PuregoSafeRegister(&xMkstempFull, libs, "g_mkstemp_full") | |
| 795 | + | core.PuregoSafeRegister(&xPathGetBasename, libs, "g_path_get_basename") | |
| 796 | + | core.PuregoSafeRegister(&xPathGetDirname, libs, "g_path_get_dirname") | |
| 797 | + | core.PuregoSafeRegister(&xPathIsAbsolute, libs, "g_path_is_absolute") | |
| 798 | + | core.PuregoSafeRegister(&xPathSkipRoot, libs, "g_path_skip_root") | |
| 806 | 799 | } | |
| @@ -1,7 +1,10 @@ | |||||
| 1 | // Package glib was automatically generated by github.com/bnema/puregotk DO NOT EDIT | 1 | // Package glib was automatically generated by github.com/bnema/puregotk DO NOT EDIT | ||
| 2 | package glib | 2 | package glib | ||
| 3 | 3 | ||||
| 4 | - | import "github.com/bnema/puregotk/pkg/core" | 4 | + | import ( |
| 5 | + | "github.com/bnema/purego" | |||
| 6 | + | "github.com/bnema/puregotk/pkg/core" | |||
| 7 | + | ) | |||
| 5 | 8 | ||||
| 6 | // Flags to pass to g_file_set_contents_full() to affect its safety and | 9 | // Flags to pass to g_file_set_contents_full() to affect its safety and | ||
| 7 | // performance. | 10 | // performance. | ||
| @@ -167,8 +170,6 @@ var xBasename func(string) string | |||||
| 167 | // components. It returns a pointer into the given file name | 170 | // components. It returns a pointer into the given file name | ||
| 168 | // string. | 171 | // string. | ||
| 169 | func Basename(FileNameVar string) string { | 172 | func Basename(FileNameVar string) string { | ||
| 170 | - | core.LazyRegister(&xBasename, "GLIB", "g_basename", false) | |||
| 171 | - | ||||
| 172 | cret := xBasename(FileNameVar) | 173 | cret := xBasename(FileNameVar) | ||
| 173 | return cret | 174 | return cret | ||
| 174 | } | 175 | } | ||
| @@ -194,8 +195,6 @@ var xBuildFilename func(string, ...interface{}) string | |||||
| 194 | // If you are building a path programmatically you may want to use | 195 | // If you are building a path programmatically you may want to use | ||
| 195 | // #GPathBuf instead. | 196 | // #GPathBuf instead. | ||
| 196 | func BuildFilename(FirstElementVar string, varArgs ...interface{}) string { | 197 | func BuildFilename(FirstElementVar string, varArgs ...interface{}) string { | ||
| 197 | - | core.LazyRegister(&xBuildFilename, "GLIB", "g_build_filename", false) | |||
| 198 | - | ||||
| 199 | cret := xBuildFilename(FirstElementVar, varArgs...) | 198 | cret := xBuildFilename(FirstElementVar, varArgs...) | ||
| 200 | return cret | 199 | return cret | ||
| 201 | } | 200 | } | ||
| @@ -211,8 +210,6 @@ var xBuildFilenameValist func(string, []interface{}) string | |||||
| 211 | // This function is mainly meant for implementing other variadic arguments | 210 | // This function is mainly meant for implementing other variadic arguments | ||
| 212 | // functions. | 211 | // functions. | ||
| 213 | func BuildFilenameValist(FirstElementVar string, ArgsVar []interface{}) string { | 212 | func BuildFilenameValist(FirstElementVar string, ArgsVar []interface{}) string { | ||
| 214 | - | core.LazyRegister(&xBuildFilenameValist, "GLIB", "g_build_filename_valist", false) | |||
| 215 | - | ||||
| 216 | cret := xBuildFilenameValist(FirstElementVar, ArgsVar) | 213 | cret := xBuildFilenameValist(FirstElementVar, ArgsVar) | ||
| 217 | return cret | 214 | return cret | ||
| 218 | } | 215 | } | ||
| @@ -229,8 +226,6 @@ var xBuildFilenamev func([]string) string | |||||
| 229 | // If you are building a path programmatically you may want to use | 226 | // If you are building a path programmatically you may want to use | ||
| 230 | // #GPathBuf instead. | 227 | // #GPathBuf instead. | ||
| 231 | func BuildFilenamev(ArgsVar []string) string { | 228 | func BuildFilenamev(ArgsVar []string) string { | ||
| 232 | - | core.LazyRegister(&xBuildFilenamev, "GLIB", "g_build_filenamev", false) | |||
| 233 | - | ||||
| 234 | cret := xBuildFilenamev(ArgsVar) | 229 | cret := xBuildFilenamev(ArgsVar) | ||
| 235 | return cret | 230 | return cret | ||
| 236 | } | 231 | } | ||
| @@ -266,8 +261,6 @@ var xBuildPath func(string, string, ...interface{}) string | |||||
| 266 | // copies of the separator, elements consisting only of copies | 261 | // copies of the separator, elements consisting only of copies | ||
| 267 | // of the separator are ignored. | 262 | // of the separator are ignored. | ||
| 268 | func BuildPath(SeparatorVar string, FirstElementVar string, varArgs ...interface{}) string { | 263 | func BuildPath(SeparatorVar string, FirstElementVar string, varArgs ...interface{}) string { | ||
| 269 | - | core.LazyRegister(&xBuildPath, "GLIB", "g_build_path", false) | |||
| 270 | - | ||||
| 271 | cret := xBuildPath(SeparatorVar, FirstElementVar, varArgs...) | 264 | cret := xBuildPath(SeparatorVar, FirstElementVar, varArgs...) | ||
| 272 | return cret | 265 | return cret | ||
| 273 | } | 266 | } | ||
| @@ -279,8 +272,6 @@ var xBuildPathv func(string, []string) string | |||||
| 279 | // | 272 | // | ||
| 280 | // This function is mainly meant for language bindings. | 273 | // This function is mainly meant for language bindings. | ||
| 281 | func BuildPathv(SeparatorVar string, ArgsVar []string) string { | 274 | func BuildPathv(SeparatorVar string, ArgsVar []string) string { | ||
| 282 | - | core.LazyRegister(&xBuildPathv, "GLIB", "g_build_pathv", false) | |||
| 283 | - | ||||
| 284 | cret := xBuildPathv(SeparatorVar, ArgsVar) | 275 | cret := xBuildPathv(SeparatorVar, ArgsVar) | ||
| 285 | return cret | 276 | return cret | ||
| 286 | } | 277 | } | ||
| @@ -302,8 +293,6 @@ var xCanonicalizeFilename func(string, uintptr) string | |||||
| 302 | // | 293 | // | ||
| 303 | // No file system I/O is done. | 294 | // No file system I/O is done. | ||
| 304 | func CanonicalizeFilename(FilenameVar string, RelativeToVar *string) string { | 295 | func CanonicalizeFilename(FilenameVar string, RelativeToVar *string) string { | ||
| 305 | - | core.LazyRegister(&xCanonicalizeFilename, "GLIB", "g_canonicalize_filename", false) | |||
| 306 | - | ||||
| 307 | RelativeToVarPtr := core.GStrdupNullable(RelativeToVar) | 296 | RelativeToVarPtr := core.GStrdupNullable(RelativeToVar) | ||
| 308 | defer core.GFreeNullable(RelativeToVarPtr) | 297 | defer core.GFreeNullable(RelativeToVarPtr) | ||
| 309 | 298 | ||||
| @@ -325,7 +314,6 @@ var xDirMakeTmp func(uintptr, **Error) string | |||||
| 325 | // Note that in contrast to g_mkdtemp() (and mkdtemp()) @tmpl is not | 314 | // Note that in contrast to g_mkdtemp() (and mkdtemp()) @tmpl is not | ||
| 326 | // modified, and might thus be a read-only literal string. | 315 | // modified, and might thus be a read-only literal string. | ||
| 327 | func DirMakeTmp(TmplVar *string) (string, error) { | 316 | func DirMakeTmp(TmplVar *string) (string, error) { | ||
| 328 | - | core.LazyRegister(&xDirMakeTmp, "GLIB", "g_dir_make_tmp", false) | |||
| 329 | var cerr *Error | 317 | var cerr *Error | ||
| 330 | 318 | ||||
| 331 | TmplVarPtr := core.GStrdupNullable(TmplVar) | 319 | TmplVarPtr := core.GStrdupNullable(TmplVar) | ||
| @@ -350,8 +338,6 @@ var xFileErrorFromErrno func(int) FileError | |||||
| 350 | // from a function that manipulates files. So you would use | 338 | // from a function that manipulates files. So you would use | ||
| 351 | // g_file_error_from_errno() when constructing a #GError. | 339 | // g_file_error_from_errno() when constructing a #GError. | ||
| 352 | func FileErrorFromErrno(ErrNoVar int) FileError { | 340 | func FileErrorFromErrno(ErrNoVar int) FileError { | ||
| 353 | - | core.LazyRegister(&xFileErrorFromErrno, "GLIB", "g_file_error_from_errno", false) | |||
| 354 | - | ||||
| 355 | cret := xFileErrorFromErrno(ErrNoVar) | 341 | cret := xFileErrorFromErrno(ErrNoVar) | ||
| 356 | return cret | 342 | return cret | ||
| 357 | } | 343 | } | ||
| @@ -369,7 +355,6 @@ var xFileGetContents func(string, *[]byte, *uint, **Error) bool | |||||
| 369 | // codes are those in the #GFileError enumeration. In the error case, | 355 | // codes are those in the #GFileError enumeration. In the error case, | ||
| 370 | // @contents is set to %NULL and @length is set to zero. | 356 | // @contents is set to %NULL and @length is set to zero. | ||
| 371 | func FileGetContents(FilenameVar string, ContentsVar *[]byte, LengthVar *uint) (bool, error) { | 357 | func FileGetContents(FilenameVar string, ContentsVar *[]byte, LengthVar *uint) (bool, error) { | ||
| 372 | - | core.LazyRegister(&xFileGetContents, "GLIB", "g_file_get_contents", false) | |||
| 373 | var cerr *Error | 358 | var cerr *Error | ||
| 374 | 359 | ||||
| 375 | cret := xFileGetContents(FilenameVar, ContentsVar, LengthVar, &cerr) | 360 | cret := xFileGetContents(FilenameVar, ContentsVar, LengthVar, &cerr) | ||
| @@ -398,7 +383,6 @@ var xFileOpenTmp func(uintptr, *string, **Error) int | |||||
| 398 | // when not needed any longer. The returned name is in the GLib file | 383 | // when not needed any longer. The returned name is in the GLib file | ||
| 399 | // name encoding. | 384 | // name encoding. | ||
| 400 | func FileOpenTmp(TmplVar *string, NameUsedVar *string) (int, error) { | 385 | func FileOpenTmp(TmplVar *string, NameUsedVar *string) (int, error) { | ||
| 401 | - | core.LazyRegister(&xFileOpenTmp, "GLIB", "g_file_open_tmp", false) | |||
| 402 | var cerr *Error | 386 | var cerr *Error | ||
| 403 | 387 | ||||
| 404 | TmplVarPtr := core.GStrdupNullable(TmplVar) | 388 | TmplVarPtr := core.GStrdupNullable(TmplVar) | ||
| @@ -440,7 +424,6 @@ var xFileReadLink func(string, **Error) string | |||||
| 440 | // | 424 | // | ||
| 441 | // ]| | 425 | // ]| | ||
| 442 | func FileReadLink(FilenameVar string) (string, error) { | 426 | func FileReadLink(FilenameVar string) (string, error) { | ||
| 443 | - | core.LazyRegister(&xFileReadLink, "GLIB", "g_file_read_link", false) | |||
| 444 | var cerr *Error | 427 | var cerr *Error | ||
| 445 | 428 | ||||
| 446 | cret := xFileReadLink(FilenameVar, &cerr) | 429 | cret := xFileReadLink(FilenameVar, &cerr) | ||
| @@ -457,7 +440,6 @@ var xFileSetContents func(string, []byte, int, **Error) bool | |||||
| 457 | // `G_FILE_SET_CONTENTS_CONSISTENT | G_FILE_SET_CONTENTS_ONLY_EXISTING` and | 440 | // `G_FILE_SET_CONTENTS_CONSISTENT | G_FILE_SET_CONTENTS_ONLY_EXISTING` and | ||
| 458 | // `mode` set to `0666`. | 441 | // `mode` set to `0666`. | ||
| 459 | func FileSetContents(FilenameVar string, ContentsVar []byte, LengthVar int) (bool, error) { | 442 | func FileSetContents(FilenameVar string, ContentsVar []byte, LengthVar int) (bool, error) { | ||
| 460 | - | core.LazyRegister(&xFileSetContents, "GLIB", "g_file_set_contents", false) | |||
| 461 | var cerr *Error | 443 | var cerr *Error | ||
| 462 | 444 | ||||
| 463 | cret := xFileSetContents(FilenameVar, ContentsVar, LengthVar, &cerr) | 445 | cret := xFileSetContents(FilenameVar, ContentsVar, LengthVar, &cerr) | ||
| @@ -524,7 +506,6 @@ var xFileSetContentsFull func(string, []byte, int, FileSetContentsFlags, int, ** | |||||
| 524 | // permissions from @mode. Otherwise, the permissions of the existing file will | 506 | // permissions from @mode. Otherwise, the permissions of the existing file will | ||
| 525 | // remain unchanged. | 507 | // remain unchanged. | ||
| 526 | func FileSetContentsFull(FilenameVar string, ContentsVar []byte, LengthVar int, FlagsVar FileSetContentsFlags, ModeVar int) (bool, error) { | 508 | func FileSetContentsFull(FilenameVar string, ContentsVar []byte, LengthVar int, FlagsVar FileSetContentsFlags, ModeVar int) (bool, error) { | ||
| 527 | - | core.LazyRegister(&xFileSetContentsFull, "GLIB", "g_file_set_contents_full", false) | |||
| 528 | var cerr *Error | 509 | var cerr *Error | ||
| 529 | 510 | ||||
| 530 | cret := xFileSetContentsFull(FilenameVar, ContentsVar, LengthVar, FlagsVar, ModeVar, &cerr) | 511 | cret := xFileSetContentsFull(FilenameVar, ContentsVar, LengthVar, FlagsVar, ModeVar, &cerr) | ||
| @@ -598,8 +579,6 @@ var xNewFileTest func(string, FileTest) bool | |||||
| 598 | // its name indicates that it is executable, checking for well-known | 579 | // its name indicates that it is executable, checking for well-known | ||
| 599 | // extensions and those listed in the `PATHEXT` environment variable. | 580 | // extensions and those listed in the `PATHEXT` environment variable. | ||
| 600 | func NewFileTest(FilenameVar string, TestVar FileTest) bool { | 581 | func NewFileTest(FilenameVar string, TestVar FileTest) bool { | ||
| 601 | - | core.LazyRegister(&xNewFileTest, "GLIB", "g_file_test", false) | |||
| 602 | - | ||||
| 603 | cret := xNewFileTest(FilenameVar, TestVar) | 582 | cret := xNewFileTest(FilenameVar, TestVar) | ||
| 604 | return cret | 583 | return cret | ||
| 605 | } | 584 | } | ||
| @@ -617,8 +596,6 @@ var xGetCurrentDir func() string | |||||
| 617 | // the current directory. This can make a difference in the case that | 596 | // the current directory. This can make a difference in the case that | ||
| 618 | // the current directory is the target of a symbolic link. | 597 | // the current directory is the target of a symbolic link. | ||
| 619 | func GetCurrentDir() string { | 598 | func GetCurrentDir() string { | ||
| 620 | - | core.LazyRegister(&xGetCurrentDir, "GLIB", "g_get_current_dir", false) | |||
| 621 | - | ||||
| 622 | cret := xGetCurrentDir() | 599 | cret := xGetCurrentDir() | ||
| 623 | return cret | 600 | return cret | ||
| 624 | } | 601 | } | ||
| @@ -628,8 +605,6 @@ var xMkdirWithParents func(string, int) int | |||||
| 628 | // Create a directory if it doesn't already exist. Create intermediate | 605 | // Create a directory if it doesn't already exist. Create intermediate | ||
| 629 | // parent directories as needed, too. | 606 | // parent directories as needed, too. | ||
| 630 | func MkdirWithParents(PathnameVar string, ModeVar int) int { | 607 | func MkdirWithParents(PathnameVar string, ModeVar int) int { | ||
| 631 | - | core.LazyRegister(&xMkdirWithParents, "GLIB", "g_mkdir_with_parents", false) | |||
| 632 | - | ||||
| 633 | cret := xMkdirWithParents(PathnameVar, ModeVar) | 608 | cret := xMkdirWithParents(PathnameVar, ModeVar) | ||
| 634 | return cret | 609 | return cret | ||
| 635 | } | 610 | } | ||
| @@ -653,8 +628,6 @@ var xMkdtemp func(string) string | |||||
| 653 | // directory returned by g_get_tmp_dir(), you might want to use | 628 | // directory returned by g_get_tmp_dir(), you might want to use | ||
| 654 | // g_dir_make_tmp() instead. | 629 | // g_dir_make_tmp() instead. | ||
| 655 | func Mkdtemp(TmplVar string) string { | 630 | func Mkdtemp(TmplVar string) string { | ||
| 656 | - | core.LazyRegister(&xMkdtemp, "GLIB", "g_mkdtemp", false) | |||
| 657 | - | ||||
| 658 | cret := xMkdtemp(TmplVar) | 631 | cret := xMkdtemp(TmplVar) | ||
| 659 | return cret | 632 | return cret | ||
| 660 | } | 633 | } | ||
| @@ -678,8 +651,6 @@ var xMkdtempFull func(string, int) string | |||||
| 678 | // directory returned by g_get_tmp_dir(), you might want to use | 651 | // directory returned by g_get_tmp_dir(), you might want to use | ||
| 679 | // g_dir_make_tmp() instead. | 652 | // g_dir_make_tmp() instead. | ||
| 680 | func MkdtempFull(TmplVar string, ModeVar int) string { | 653 | func MkdtempFull(TmplVar string, ModeVar int) string { | ||
| 681 | - | core.LazyRegister(&xMkdtempFull, "GLIB", "g_mkdtemp_full", false) | |||
| 682 | - | ||||
| 683 | cret := xMkdtempFull(TmplVar, ModeVar) | 654 | cret := xMkdtempFull(TmplVar, ModeVar) | ||
| 684 | return cret | 655 | return cret | ||
| 685 | } | 656 | } | ||
| @@ -698,8 +669,6 @@ var xMkstemp func(string) int | |||||
| 698 | // didn't exist. The string should be in the GLib file name encoding. | 669 | // didn't exist. The string should be in the GLib file name encoding. | ||
| 699 | // Most importantly, on Windows it should be in UTF-8. | 670 | // Most importantly, on Windows it should be in UTF-8. | ||
| 700 | func Mkstemp(TmplVar string) int { | 671 | func Mkstemp(TmplVar string) int { | ||
| 701 | - | core.LazyRegister(&xMkstemp, "GLIB", "g_mkstemp", false) | |||
| 702 | - | ||||
| 703 | cret := xMkstemp(TmplVar) | 672 | cret := xMkstemp(TmplVar) | ||
| 704 | return cret | 673 | return cret | ||
| 705 | } | 674 | } | ||
| @@ -719,8 +688,6 @@ var xMkstempFull func(string, int, int) int | |||||
| 719 | // The string should be in the GLib file name encoding. Most importantly, | 688 | // The string should be in the GLib file name encoding. Most importantly, | ||
| 720 | // on Windows it should be in UTF-8. | 689 | // on Windows it should be in UTF-8. | ||
| 721 | func MkstempFull(TmplVar string, FlagsVar int, ModeVar int) int { | 690 | func MkstempFull(TmplVar string, FlagsVar int, ModeVar int) int { | ||
| 722 | - | core.LazyRegister(&xMkstempFull, "GLIB", "g_mkstemp_full", false) | |||
| 723 | - | ||||
| 724 | cret := xMkstempFull(TmplVar, FlagsVar, ModeVar) | 691 | cret := xMkstempFull(TmplVar, FlagsVar, ModeVar) | ||
| 725 | return cret | 692 | return cret | ||
| 726 | } | 693 | } | ||
| @@ -734,8 +701,6 @@ var xPathGetBasename func(string) string | |||||
| 734 | // separators (and on Windows, possibly a drive letter), a single | 701 | // separators (and on Windows, possibly a drive letter), a single | ||
| 735 | // separator is returned. If @file_name is empty, it gets ".". | 702 | // separator is returned. If @file_name is empty, it gets ".". | ||
| 736 | func PathGetBasename(FileNameVar string) string { | 703 | func PathGetBasename(FileNameVar string) string { | ||
| 737 | - | core.LazyRegister(&xPathGetBasename, "GLIB", "g_path_get_basename", false) | |||
| 738 | - | ||||
| 739 | cret := xPathGetBasename(FileNameVar) | 704 | cret := xPathGetBasename(FileNameVar) | ||
| 740 | return cret | 705 | return cret | ||
| 741 | } | 706 | } | ||
| @@ -749,8 +714,6 @@ var xPathGetDirname func(string) string | |||||
| 749 | // If the file name has no directory components "." is returned. | 714 | // If the file name has no directory components "." is returned. | ||
| 750 | // The returned string should be freed when no longer needed. | 715 | // The returned string should be freed when no longer needed. | ||
| 751 | func PathGetDirname(FileNameVar string) string { | 716 | func PathGetDirname(FileNameVar string) string { | ||
| 752 | - | core.LazyRegister(&xPathGetDirname, "GLIB", "g_path_get_dirname", false) | |||
| 753 | - | ||||
| 754 | cret := xPathGetDirname(FileNameVar) | 717 | cret := xPathGetDirname(FileNameVar) | ||
| 755 | return cret | 718 | return cret | ||
| 756 | } | 719 | } | ||
| @@ -782,8 +745,6 @@ var xPathIsAbsolute func(string) bool | |||||
| 782 | // either. Such paths should be avoided, or need to be handled using | 745 | // either. Such paths should be avoided, or need to be handled using | ||
| 783 | // Windows-specific code. | 746 | // Windows-specific code. | ||
| 784 | func PathIsAbsolute(FileNameVar string) bool { | 747 | func PathIsAbsolute(FileNameVar string) bool { | ||
| 785 | - | core.LazyRegister(&xPathIsAbsolute, "GLIB", "g_path_is_absolute", false) | |||
| 786 | - | ||||
| 787 | cret := xPathIsAbsolute(FileNameVar) | 748 | cret := xPathIsAbsolute(FileNameVar) | ||
| 788 | return cret | 749 | return cret | ||
| 789 | } | 750 | } | ||
| @@ -794,8 +755,6 @@ var xPathSkipRoot func(string) string | |||||
| 794 | // i.e. after the "/" in UNIX or "C:\" under Windows. If @file_name | 755 | // i.e. after the "/" in UNIX or "C:\" under Windows. If @file_name | ||
| 795 | // is not an absolute path it returns %NULL. | 756 | // is not an absolute path it returns %NULL. | ||
| 796 | func PathSkipRoot(FileNameVar string) string { | 757 | func PathSkipRoot(FileNameVar string) string { | ||
| 797 | - | core.LazyRegister(&xPathSkipRoot, "GLIB", "g_path_skip_root", false) | |||
| 798 | - | ||||
| 799 | cret := xPathSkipRoot(FileNameVar) | 758 | cret := xPathSkipRoot(FileNameVar) | ||
| 800 | return cret | 759 | return cret | ||
| 801 | } | 760 | } | ||
| @@ -803,4 +762,38 @@ func PathSkipRoot(FileNameVar string) string { | |||||
| 803 | func init() { | 762 | func init() { | ||
| 804 | core.SetPackageName("GLIB", "glib-2.0") | 763 | core.SetPackageName("GLIB", "glib-2.0") | ||
| 805 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | 764 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | ||
| 765 | + | var libs []uintptr | |||
| 766 | + | for _, libPath := range core.GetPaths("GLIB") { | |||
| 767 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 768 | + | if err != nil { | |||
| 769 | + | panic(err) | |||
| 770 | + | } | |||
| 771 | + | libs = append(libs, lib) | |||
| 772 | + | } | |||
| 773 | + | ||||
| 774 | + | core.PuregoSafeRegister(&xBasename, libs, "g_basename") | |||
| 775 | + | core.PuregoSafeRegister(&xBuildFilename, libs, "g_build_filename") | |||
| 776 | + | core.PuregoSafeRegister(&xBuildFilenameValist, libs, "g_build_filename_valist") | |||
| 777 | + | core.PuregoSafeRegister(&xBuildFilenamev, libs, "g_build_filenamev") | |||
| 778 | + | core.PuregoSafeRegister(&xBuildPath, libs, "g_build_path") | |||
| 779 | + | core.PuregoSafeRegister(&xBuildPathv, libs, "g_build_pathv") | |||
| 780 | + | core.PuregoSafeRegister(&xCanonicalizeFilename, libs, "g_canonicalize_filename") | |||
| 781 | + | core.PuregoSafeRegister(&xDirMakeTmp, libs, "g_dir_make_tmp") | |||
| 782 | + | core.PuregoSafeRegister(&xFileErrorFromErrno, libs, "g_file_error_from_errno") | |||
| 783 | + | core.PuregoSafeRegister(&xFileGetContents, libs, "g_file_get_contents") | |||
| 784 | + | core.PuregoSafeRegister(&xFileOpenTmp, libs, "g_file_open_tmp") | |||
| 785 | + | core.PuregoSafeRegister(&xFileReadLink, libs, "g_file_read_link") | |||
| 786 | + | core.PuregoSafeRegister(&xFileSetContents, libs, "g_file_set_contents") | |||
| 787 | + | core.PuregoSafeRegister(&xFileSetContentsFull, libs, "g_file_set_contents_full") | |||
| 788 | + | core.PuregoSafeRegister(&xNewFileTest, libs, "g_file_test") | |||
| 789 | + | core.PuregoSafeRegister(&xGetCurrentDir, libs, "g_get_current_dir") | |||
| 790 | + | core.PuregoSafeRegister(&xMkdirWithParents, libs, "g_mkdir_with_parents") | |||
| 791 | + | core.PuregoSafeRegister(&xMkdtemp, libs, "g_mkdtemp") | |||
| 792 | + | core.PuregoSafeRegister(&xMkdtempFull, libs, "g_mkdtemp_full") | |||
| 793 | + | core.PuregoSafeRegister(&xMkstemp, libs, "g_mkstemp") | |||
| 794 | + | core.PuregoSafeRegister(&xMkstempFull, libs, "g_mkstemp_full") | |||
| 795 | + | core.PuregoSafeRegister(&xPathGetBasename, libs, "g_path_get_basename") | |||
| 796 | + | core.PuregoSafeRegister(&xPathGetDirname, libs, "g_path_get_dirname") | |||
| 797 | + | core.PuregoSafeRegister(&xPathIsAbsolute, libs, "g_path_is_absolute") | |||
| 798 | + | core.PuregoSafeRegister(&xPathSkipRoot, libs, "g_path_skip_root") | |||
| 806 | } | 799 | } | ||