chore(deps): pin puregotk nil-signal fix
- commit
- a161e348e2093172038390b0906448f0ae979a0d
- author
- brice · · 2026-07-14 17:11 UTC
- parent
- c053b99
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
905 files · +27842 -25263
M go.mod +1 -1
| @@ -10,7 +10,7 @@ require ( | |||
| 10 | 10 | github.com/bnema/purego-cef2gtk v0.8.4-0.20260714160309-bbd397409ebe | |
| 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 | - | github.com/bnema/puregotk v0.7.0 | |
| 13 | + | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | |
| 14 | 14 | github.com/charmbracelet/bubbles v1.0.0 | |
| 15 | 15 | github.com/charmbracelet/bubbletea v1.3.10 | |
| 16 | 16 | github.com/charmbracelet/lipgloss v1.1.0 | |
| @@ -10,7 +10,7 @@ require ( | |||||
| 10 | github.com/bnema/purego-cef2gtk v0.8.4-0.20260714160309-bbd397409ebe | 10 | github.com/bnema/purego-cef2gtk v0.8.4-0.20260714160309-bbd397409ebe | ||
| 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/puregotk v0.7.0 | 13 | + | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 |
| 14 | github.com/charmbracelet/bubbles v1.0.0 | 14 | github.com/charmbracelet/bubbles v1.0.0 | ||
| 15 | github.com/charmbracelet/bubbletea v1.3.10 | 15 | github.com/charmbracelet/bubbletea v1.3.10 | ||
| 16 | github.com/charmbracelet/lipgloss v1.1.0 | 16 | github.com/charmbracelet/lipgloss v1.1.0 | ||
M go.sum +4 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/internal/core/core.go +197 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/pkg/core/core.go +10 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-dialog.go +99 -64 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-window.go +95 -62 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-accent-color.go +7 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-action-row.go +33 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-alert-dialog.go +66 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-target.go +10 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-util.go +4 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation.go +24 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application-window.go +14 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application.go +3 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-avatar.go +22 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-banner.go +23 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bin.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bottom-sheet.go +47 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint-bin.go +10 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint.go +33 -37 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-content.go +18 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-row.go +10 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-dots.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-lines.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel.go +47 -37 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-layout.go +14 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-scrollable.go +17 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp.go +17 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-combo-row.go +34 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-dialog.go +45 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-easing.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-entry-row.go +40 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-enum-list-model.go +13 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-expander-row.go +40 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-flap.go +61 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-fold-threshold-policy.go +10 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-header-bar.go +36 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-inline-view-switcher.go +18 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout-slot.go +4 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout.go +7 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-leaflet.go +69 -56 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-length-unit.go +5 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-main.go +5 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-message-dialog.go +63 -44 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-multi-layout-view.go +17 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-direction.go +10 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-split-view.go +36 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-view.go +60 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-overlay-split-view.go +48 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-password-entry-row.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-dialog.go +23 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-group.go +24 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-page.go +38 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-row.go +18 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-window.go +31 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcut-label.go +10 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-dialog.go +4 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-item.go +23 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-section.go +8 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-item.go +45 -37 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-section.go +24 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar.go +41 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spin-row.go +40 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner-paintable.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-split-button.go +39 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-animation.go +34 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-params.go +17 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-squeezer.go +49 -44 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-status-page.go +20 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-style-manager.go +25 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipe-tracker.go +33 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipeable.go +33 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-switch-row.go +6 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-bar.go +35 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-button.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-overview.go +45 -37 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-view.go +123 -87 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-timed-animation.go +30 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast-overlay.go +9 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast.go +41 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toggle-group.go +64 -51 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toolbar-view.go +40 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-version.go +7 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-stack.go +78 -62 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-bar.go +9 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-sidebar.go +15 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-title.go +19 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher.go +10 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window-title.go +10 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window.go +14 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-box.go +66 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-layout.go +57 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/cairo/main.go +36 -79 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkapplaunchcontext.go +10 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairo.go +12 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairocontext.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcicpparams.go +20 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkclipboard.go +34 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcolorstate.go +12 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentdeserializer.go +26 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentformats.go +28 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentprovider.go +23 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentserializer.go +26 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcursor.go +12 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevice.go +36 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicepad.go +27 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicetool.go +10 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplay.go +51 -43 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplaymanager.go +10 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexture.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexturebuilder.go +53 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrag.go +20 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurface.go +6 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurfacesize.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrawcontext.go +11 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrop.go +19 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkenums.go +21 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkevents.go +120 -118 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframeclock.go +22 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframetimings.go +17 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkglcontext.go +40 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexture.go +4 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexturebuilder.go +41 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkkeys.go +19 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexture.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexturebuilder.go +42 -35 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 +63 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpango.go +4 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpixbuf.go +2 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopup.go +47 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopuplayout.go +36 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkrgba.go +19 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkseat.go +11 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksnapshot.go +7 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksurface.go +46 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktexture.go +27 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevel.go +157 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevellayout.go +24 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevelsize.go +9 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktypes.go +95 -72 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkvulkancontext.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-animation.go +26 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-core.go +9 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-io.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-loader.go +13 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-simple-anim.go +8 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-transform.go +11 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf.go +102 -79 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/main.go +5 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gaction.go +59 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactiongroup.go +96 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactionmap.go +33 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gappinfo.go +244 -116 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplication.go +79 -55 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplicationcommandline.go +31 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncinitable.go +25 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncresult.go +26 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedinputstream.go +26 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedoutputstream.go +11 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbytesicon.go +4 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcancellable.go +26 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcharsetconverter.go +8 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcontenttype.go +30 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverter.go +23 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverterinputstream.go +3 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverteroutputstream.go +3 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcredentials.go +12 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatagrambased.go +45 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatainputstream.go +31 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdataoutputstream.go +14 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusactiongroup.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusaddress.go +10 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusauthobserver.go +6 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusconnection.go +77 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbuserror.go +16 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusinterface.go +26 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusinterfaceskeleton.go +25 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusintrospection.go +54 -56 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmenumodel.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmessage.go +88 -64 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmethodinvocation.go +35 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusnameowning.go +10 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusnamewatching.go +10 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobject.go +19 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanager.go +26 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerclient.go +16 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerserver.go +13 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectproxy.go +3 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectskeleton.go +12 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusproxy.go +42 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusserver.go +14 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusutils.go +24 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdebugcontroller.go +12 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdebugcontrollerdbus.go +4 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdrive.go +214 -82 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsclientconnection.go +34 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsconnection.go +207 -80 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsserverconnection.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gemblem.go +6 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gemblemedicon.go +9 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfile.go +1148 -450 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileattribute.go +13 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileenumerator.go +34 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileicon.go +3 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileinfo.go +138 -84 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileinputstream.go +17 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileiostream.go +23 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilemonitor.go +9 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilenamecompleter.go +8 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileoutputstream.go +23 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilterinputstream.go +6 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilteroutputstream.go +6 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gicon.go +32 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetaddress.go +40 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetaddressmask.go +14 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetsocketaddress.go +10 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginitable.go +11 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginputstream.go +52 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioenums.go +90 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioerror.go +6 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giomodule.go +26 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioscheduler.go +4 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giostream.go +25 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giotypes.go +70 -60 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giptosmessage.go +6 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gipv6tclassmessage.go +6 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/glistmodel.go +33 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gliststore.go +22 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gloadableicon.go +27 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemoryinputstream.go +8 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemorymonitor.go +2 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemoryoutputstream.go +13 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmenu.go +62 -50 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmenumodel.go +31 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmount.go +215 -86 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmountoperation.go +40 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnativesocketaddress.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnativevolumemonitor.go +7 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkaddress.go +11 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworking.go +3 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkmonitor.go +49 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkservice.go +12 -19 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 +86 -72 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 +30 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableoutputstream.go +41 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableutils.go +7 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpowerprofilemonitor.go +7 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpropertyaction.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxy.go +35 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyaddress.go +16 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyaddressenumerator.go +7 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyresolver.go +35 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gremoteactiongroup.go +12 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gresolver.go +75 -67 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gresource.go +19 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gseekable.go +41 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettings.go +99 -67 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettingsbackend.go +19 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettingsschema.go +48 -43 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleaction.go +9 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleactiongroup.go +9 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleasyncresult.go +46 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleiostream.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimplepermission.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleproxyresolver.go +8 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocket.go +87 -72 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketaddress.go +11 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketaddressenumerator.go +13 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketclient.go +54 -44 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketconnectable.go +19 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketconnection.go +14 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketcontrolmessage.go +10 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketlistener.go +18 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketservice.go +8 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsrvtarget.go +2 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsubprocess.go +40 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsubprocesslauncher.go +34 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtask.go +70 -52 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtcpconnection.go +5 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtcpwrapperconnection.go +3 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtestdbus.go +16 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gthemedicon.go +10 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gthreadedresolver.go +7 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gthreadedsocketservice.go +2 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsbackend.go +69 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlscertificate.go +25 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsclientconnection.go +55 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsconnection.go +56 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsdatabase.go +51 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsfiledatabase.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsinteraction.go +27 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlspassword.go +20 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsserverconnection.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixconnection.go +11 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixcredentialsmessage.go +6 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixfdlist.go +11 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixsocketaddress.go +14 -22 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvfs.go +18 -24 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvolume.go +143 -58 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvolumemonitor.go +11 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gzlibcompressor.go +9 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gzlibdecompressor.go +3 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/main.go +2 -11 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gallocator.go +32 -28 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/garray.go +82 -59 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gasyncqueue.go +56 -39 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gatomic.go +43 -34 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbacktrace.go +5 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbase64.go +13 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbitlock.go +23 -24 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbookmarkfile.go +69 -61 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcache.go +10 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcharset.go +13 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gchecksum.go +23 -25 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcompletion.go +14 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gconvert.go +25 -28 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdataset.go +36 -28 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdate.go +103 -65 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdatetime.go +107 -66 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdir.go +12 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/genviron.go +17 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gerror.go +30 -29 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gfileutils.go +45 -38 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ggettext.go +13 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghash.go +81 -53 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghmac.go +21 -24 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghook.go +28 -26 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghostutils.go +11 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/giochannel.go +83 -67 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gkeyfile.go +72 -62 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/glib-types.go +4 -12 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/glist.go +2 -11 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmain.go +181 -117 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmappedfile.go +15 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmarkup.go +51 -43 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmem.go +44 -31 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmessages.go +70 -45 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gnode.go +50 -35 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/goption.go +57 -43 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gpathbuf.go +26 -24 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gpattern.go +19 -23 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gpoll.go +3 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gprimes.go +3 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gprintf.go +15 -20 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gqsort.go +5 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gquark.go +13 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gqueue.go +84 -52 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grand.go +33 -30 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grcbox.go +29 -27 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grefcount.go +17 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grefstring.go +15 -20 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gregex.go +72 -57 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grel.go +20 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gscanner.go +40 -30 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gsequence.go +74 -49 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gshell.go +5 -16 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gslice.go +17 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gslist.go +2 -11 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gspawn.go +12 -23 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstdio.go +33 -27 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstrfuncs.go +115 -71 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstring.go +77 -51
| @@ -5,7 +5,6 @@ import ( | |||
| 5 | 5 | "structs" | |
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | - | "github.com/bnema/purego" | |
| 9 | 8 | "github.com/bnema/puregotk/pkg/core" | |
| 10 | 9 | "github.com/bnema/puregotk/v4/gobject/types" | |
| 11 | 10 | ) | |
| @@ -33,6 +32,7 @@ type String struct { | |||
| 33 | 32 | var xStringGLibType func() types.GType | |
| 34 | 33 | ||
| 35 | 34 | func StringGLibType() types.GType { | |
| 35 | + | core.LazyRegister(&xStringGLibType, "GLIB", "g_gstring_get_type", false) | |
| 36 | 36 | return xStringGLibType() | |
| 37 | 37 | } | |
| 38 | 38 | ||
| @@ -52,6 +52,8 @@ var xNewString func(uintptr) uintptr | |||
| 52 | 52 | ||
| 53 | 53 | // Creates a new #GString, initialized with the given string. | |
| 54 | 54 | func NewString(InitVar *string) *String { | |
| 55 | + | core.LazyRegister(&xNewString, "GLIB", "g_string_new", false) | |
| 56 | + | ||
| 55 | 57 | InitVarPtr := core.GStrdupNullable(InitVar) | |
| 56 | 58 | defer core.GFreeNullable(InitVarPtr) | |
| 57 | 59 | ||
| @@ -72,6 +74,8 @@ var xNewStringLen func(string, int) uintptr | |||
| 72 | 74 | // responsibility to ensure that @init has at least @len addressable | |
| 73 | 75 | // bytes. | |
| 74 | 76 | func NewStringLen(InitVar string, LenVar int) *String { | |
| 77 | + | core.LazyRegister(&xNewStringLen, "GLIB", "g_string_new_len", false) | |
| 78 | + | ||
| 75 | 79 | cret := xNewStringLen(InitVar, LenVar) | |
| 76 | 80 | if cret == 0 { | |
| 77 | 81 | return nil | |
| @@ -87,6 +91,8 @@ var xNewStringTake func(uintptr) uintptr | |||
| 87 | 91 | // modified by the caller. The memory of @init has to be dynamically | |
| 88 | 92 | // allocated and will eventually be freed with g_free(). | |
| 89 | 93 | func NewStringTake(InitVar *string) *String { | |
| 94 | + | core.LazyRegister(&xNewStringTake, "GLIB", "g_string_new_take", false) | |
| 95 | + | ||
| 90 | 96 | InitVarPtr := core.GStrdupNullable(InitVar) | |
| 91 | 97 | defer core.GFreeNullable(InitVarPtr) | |
| 92 | 98 | ||
| @@ -104,6 +110,8 @@ var xStringSizedNew func(uint) uintptr | |||
| 104 | 110 | // text to the string and don't want it to be reallocated | |
| 105 | 111 | // too often. | |
| 106 | 112 | func StringSizedNew(DflSizeVar uint) *String { | |
| 113 | + | core.LazyRegister(&xStringSizedNew, "GLIB", "g_string_sized_new", false) | |
| 114 | + | ||
| 107 | 115 | cret := xStringSizedNew(DflSizeVar) | |
| 108 | 116 | if cret == 0 { | |
| 109 | 117 | return nil | |
| @@ -116,6 +124,8 @@ var xStringAppend func(uintptr, string) uintptr | |||
| 116 | 124 | // Adds a string onto the end of a #GString, expanding | |
| 117 | 125 | // it if necessary. | |
| 118 | 126 | func (x *String) Append(ValVar string) *String { | |
| 127 | + | core.LazyRegister(&xStringAppend, "GLIB", "g_string_append", false) | |
| 128 | + | ||
| 119 | 129 | cret := xStringAppend(x.GoPointer(), ValVar) | |
| 120 | 130 | if cret == 0 { | |
| 121 | 131 | return nil | |
| @@ -128,6 +138,8 @@ var xStringAppendC func(uintptr, byte) uintptr | |||
| 128 | 138 | // Adds a byte onto the end of a #GString, expanding | |
| 129 | 139 | // it if necessary. | |
| 130 | 140 | func (x *String) AppendC(CVar byte) *String { | |
| 141 | + | core.LazyRegister(&xStringAppendC, "GLIB", "g_string_append_c", false) | |
| 142 | + | ||
| 131 | 143 | cret := xStringAppendC(x.GoPointer(), CVar) | |
| 132 | 144 | if cret == 0 { | |
| 133 | 145 | return nil | |
| @@ -147,6 +159,8 @@ var xStringAppendLen func(uintptr, string, int) uintptr | |||
| 147 | 159 | // is considered to request the entire string length. This | |
| 148 | 160 | // makes g_string_append_len() equivalent to g_string_append(). | |
| 149 | 161 | func (x *String) AppendLen(ValVar string, LenVar int) *String { | |
| 162 | + | core.LazyRegister(&xStringAppendLen, "GLIB", "g_string_append_len", false) | |
| 163 | + | ||
| 150 | 164 | cret := xStringAppendLen(x.GoPointer(), ValVar, LenVar) | |
| 151 | 165 | if cret == 0 { | |
| 152 | 166 | return nil | |
| @@ -160,6 +174,8 @@ var xStringAppendPrintf func(uintptr, string, ...interface{}) | |||
| 160 | 174 | // This function is similar to g_string_printf() except | |
| 161 | 175 | // that the text is appended to the #GString. | |
| 162 | 176 | func (x *String) AppendPrintf(FormatVar string, varArgs ...interface{}) { | |
| 177 | + | core.LazyRegister(&xStringAppendPrintf, "GLIB", "g_string_append_printf", false) | |
| 178 | + | ||
| 163 | 179 | xStringAppendPrintf(x.GoPointer(), FormatVar, varArgs...) | |
| 164 | 180 | } | |
| 165 | 181 | ||
| @@ -168,6 +184,8 @@ var xStringAppendUnichar func(uintptr, uint32) uintptr | |||
| 168 | 184 | // Converts a Unicode character into UTF-8, and appends it | |
| 169 | 185 | // to the string. | |
| 170 | 186 | func (x *String) AppendUnichar(WcVar uint32) *String { | |
| 187 | + | core.LazyRegister(&xStringAppendUnichar, "GLIB", "g_string_append_unichar", false) | |
| 188 | + | ||
| 171 | 189 | cret := xStringAppendUnichar(x.GoPointer(), WcVar) | |
| 172 | 190 | if cret == 0 { | |
| 173 | 191 | return nil | |
| @@ -180,6 +198,8 @@ var xStringAppendUriEscaped func(uintptr, string, string, bool) uintptr | |||
| 180 | 198 | // Appends @unescaped to @string, escaping any characters that | |
| 181 | 199 | // are reserved in URIs using URI-style escape sequences. | |
| 182 | 200 | func (x *String) AppendUriEscaped(UnescapedVar string, ReservedCharsAllowedVar string, AllowUtf8Var bool) *String { | |
| 201 | + | core.LazyRegister(&xStringAppendUriEscaped, "GLIB", "g_string_append_uri_escaped", false) | |
| 202 | + | ||
| 183 | 203 | cret := xStringAppendUriEscaped(x.GoPointer(), UnescapedVar, ReservedCharsAllowedVar, AllowUtf8Var) | |
| 184 | 204 | if cret == 0 { | |
| 185 | 205 | return nil | |
| @@ -194,6 +214,8 @@ var xStringAppendVprintf func(uintptr, string, []interface{}) | |||
| 194 | 214 | // except that the arguments to the format string are passed | |
| 195 | 215 | // as a va_list. | |
| 196 | 216 | func (x *String) AppendVprintf(FormatVar string, ArgsVar []interface{}) { | |
| 217 | + | core.LazyRegister(&xStringAppendVprintf, "GLIB", "g_string_append_vprintf", false) | |
| 218 | + | ||
| 197 | 219 | xStringAppendVprintf(x.GoPointer(), FormatVar, ArgsVar) | |
| 198 | 220 | } | |
| 199 | 221 | ||
| @@ -201,6 +223,8 @@ var xStringAsciiDown func(uintptr) uintptr | |||
| 201 | 223 | ||
| 202 | 224 | // Converts all uppercase ASCII letters to lowercase ASCII letters. | |
| 203 | 225 | func (x *String) AsciiDown() *String { | |
| 226 | + | core.LazyRegister(&xStringAsciiDown, "GLIB", "g_string_ascii_down", false) | |
| 227 | + | ||
| 204 | 228 | cret := xStringAsciiDown(x.GoPointer()) | |
| 205 | 229 | if cret == 0 { | |
| 206 | 230 | return nil | |
| @@ -212,6 +236,8 @@ var xStringAsciiUp func(uintptr) uintptr | |||
| 212 | 236 | ||
| 213 | 237 | // Converts all lowercase ASCII letters to uppercase ASCII letters. | |
| 214 | 238 | func (x *String) AsciiUp() *String { | |
| 239 | + | core.LazyRegister(&xStringAsciiUp, "GLIB", "g_string_ascii_up", false) | |
| 240 | + | ||
| 215 | 241 | cret := xStringAsciiUp(x.GoPointer()) | |
| 216 | 242 | if cret == 0 { | |
| 217 | 243 | return nil | |
| @@ -226,6 +252,8 @@ var xStringAssign func(uintptr, string) uintptr | |||
| 226 | 252 | // the standard strcpy() function, except that you do not | |
| 227 | 253 | // have to worry about having enough space to copy the string. | |
| 228 | 254 | func (x *String) Assign(RvalVar string) *String { | |
| 255 | + | core.LazyRegister(&xStringAssign, "GLIB", "g_string_assign", false) | |
| 256 | + | ||
| 229 | 257 | cret := xStringAssign(x.GoPointer(), RvalVar) | |
| 230 | 258 | if cret == 0 { | |
| 231 | 259 | return nil | |
| @@ -240,6 +268,8 @@ var xStringCopy func(uintptr) uintptr | |||
| 240 | 268 | // This will preserve the allocation length of the [struct@GLib.String] in the | |
| 241 | 269 | // copy. | |
| 242 | 270 | func (x *String) Copy() *String { | |
| 271 | + | core.LazyRegister(&xStringCopy, "GLIB", "g_string_copy", false) | |
| 272 | + | ||
| 243 | 273 | cret := xStringCopy(x.GoPointer()) | |
| 244 | 274 | if cret == 0 { | |
| 245 | 275 | return nil | |
| @@ -251,6 +281,8 @@ var xStringDown func(uintptr) uintptr | |||
| 251 | 281 | ||
| 252 | 282 | // Converts a #GString to lowercase. | |
| 253 | 283 | func (x *String) Down() *String { | |
| 284 | + | core.LazyRegister(&xStringDown, "GLIB", "g_string_down", false) | |
| 285 | + | ||
| 254 | 286 | cret := xStringDown(x.GoPointer()) | |
| 255 | 287 | if cret == 0 { | |
| 256 | 288 | return nil | |
| @@ -263,6 +295,8 @@ var xStringEqual func(uintptr, *String) bool | |||
| 263 | 295 | // Compares two strings for equality, returning %TRUE if they are equal. | |
| 264 | 296 | // For use with #GHashTable. | |
| 265 | 297 | func (x *String) Equal(V2Var *String) bool { | |
| 298 | + | core.LazyRegister(&xStringEqual, "GLIB", "g_string_equal", false) | |
| 299 | + | ||
| 266 | 300 | cret := xStringEqual(x.GoPointer(), V2Var) | |
| 267 | 301 | return cret | |
| 268 | 302 | } | |
| @@ -272,6 +306,8 @@ var xStringErase func(uintptr, int, int) uintptr | |||
| 272 | 306 | // Removes @len bytes from a #GString, starting at position @pos. | |
| 273 | 307 | // The rest of the #GString is shifted down to fill the gap. | |
| 274 | 308 | func (x *String) Erase(PosVar int, LenVar int) *String { | |
| 309 | + | core.LazyRegister(&xStringErase, "GLIB", "g_string_erase", false) | |
| 310 | + | ||
| 275 | 311 | cret := xStringErase(x.GoPointer(), PosVar, LenVar) | |
| 276 | 312 | if cret == 0 { | |
| 277 | 313 | return nil | |
| @@ -289,6 +325,8 @@ var xStringFree func(uintptr, bool) string | |||
| 289 | 325 | // Instead of passing %FALSE to this function, consider using | |
| 290 | 326 | // g_string_free_and_steal(). | |
| 291 | 327 | func (x *String) Free(FreeSegmentVar bool) string { | |
| 328 | + | core.LazyRegister(&xStringFree, "GLIB", "g_string_free", false) | |
| 329 | + | ||
| 292 | 330 | cret := xStringFree(x.GoPointer(), FreeSegmentVar) | |
| 293 | 331 | return cret | |
| 294 | 332 | } | |
| @@ -300,6 +338,8 @@ var xStringFreeAndSteal func(uintptr) string | |||
| 300 | 338 | // The caller gains ownership of the buffer and | |
| 301 | 339 | // must free it after use with g_free(). | |
| 302 | 340 | func (x *String) FreeAndSteal() string { | |
| 341 | + | core.LazyRegister(&xStringFreeAndSteal, "GLIB", "g_string_free_and_steal", false) | |
| 342 | + | ||
| 303 | 343 | cret := xStringFreeAndSteal(x.GoPointer()) | |
| 304 | 344 | return cret | |
| 305 | 345 | } | |
| @@ -315,6 +355,8 @@ var xStringFreeToBytes func(uintptr) uintptr | |||
| 315 | 355 | // #GBytes does not include this extra nul; i.e. it has length exactly | |
| 316 | 356 | // equal to the "len" member. | |
| 317 | 357 | func (x *String) FreeToBytes() *Bytes { | |
| 358 | + | core.LazyRegister(&xStringFreeToBytes, "GLIB", "g_string_free_to_bytes", false) | |
| 359 | + | ||
| 318 | 360 | cret := xStringFreeToBytes(x.GoPointer()) | |
| 319 | 361 | if cret == 0 { | |
| 320 | 362 | return nil | |
| @@ -326,6 +368,8 @@ var xStringHash func(uintptr) uint | |||
| 326 | 368 | ||
| 327 | 369 | // Creates a hash code for @str; for use with #GHashTable. | |
| 328 | 370 | func (x *String) Hash() uint { | |
| 371 | + | core.LazyRegister(&xStringHash, "GLIB", "g_string_hash", false) | |
| 372 | + | ||
| 329 | 373 | cret := xStringHash(x.GoPointer()) | |
| 330 | 374 | return cret | |
| 331 | 375 | } | |
| @@ -335,6 +379,8 @@ var xStringInsert func(uintptr, int, string) uintptr | |||
| 335 | 379 | // Inserts a copy of a string into a #GString, | |
| 336 | 380 | // expanding it if necessary. | |
| 337 | 381 | func (x *String) Insert(PosVar int, ValVar string) *String { | |
| 382 | + | core.LazyRegister(&xStringInsert, "GLIB", "g_string_insert", false) | |
| 383 | + | ||
| 338 | 384 | cret := xStringInsert(x.GoPointer(), PosVar, ValVar) | |
| 339 | 385 | if cret == 0 { | |
| 340 | 386 | return nil | |
| @@ -346,6 +392,8 @@ var xStringInsertC func(uintptr, int, byte) uintptr | |||
| 346 | 392 | ||
| 347 | 393 | // Inserts a byte into a #GString, expanding it if necessary. | |
| 348 | 394 | func (x *String) InsertC(PosVar int, CVar byte) *String { | |
| 395 | + | core.LazyRegister(&xStringInsertC, "GLIB", "g_string_insert_c", false) | |
| 396 | + | ||
| 349 | 397 | cret := xStringInsertC(x.GoPointer(), PosVar, CVar) | |
| 350 | 398 | if cret == 0 { | |
| 351 | 399 | return nil | |
| @@ -366,6 +414,8 @@ var xStringInsertLen func(uintptr, int, string, int) uintptr | |||
| 366 | 414 | // | |
| 367 | 415 | // If @pos is -1, bytes are inserted at the end of the string. | |
| 368 | 416 | func (x *String) InsertLen(PosVar int, ValVar string, LenVar int) *String { | |
| 417 | + | core.LazyRegister(&xStringInsertLen, "GLIB", "g_string_insert_len", false) | |
| 418 | + | ||
| 369 | 419 | cret := xStringInsertLen(x.GoPointer(), PosVar, ValVar, LenVar) | |
| 370 | 420 | if cret == 0 { | |
| 371 | 421 | return nil | |
| @@ -378,6 +428,8 @@ var xStringInsertUnichar func(uintptr, int, uint32) uintptr | |||
| 378 | 428 | // Converts a Unicode character into UTF-8, and insert it | |
| 379 | 429 | // into the string at the given position. | |
| 380 | 430 | func (x *String) InsertUnichar(PosVar int, WcVar uint32) *String { | |
| 431 | + | core.LazyRegister(&xStringInsertUnichar, "GLIB", "g_string_insert_unichar", false) | |
| 432 | + | ||
| 381 | 433 | cret := xStringInsertUnichar(x.GoPointer(), PosVar, WcVar) | |
| 382 | 434 | if cret == 0 { | |
| 383 | 435 | return nil | |
| @@ -389,6 +441,8 @@ var xStringOverwrite func(uintptr, uint, string) uintptr | |||
| 389 | 441 | ||
| 390 | 442 | // Overwrites part of a string, lengthening it if necessary. | |
| 391 | 443 | func (x *String) Overwrite(PosVar uint, ValVar string) *String { | |
| 444 | + | core.LazyRegister(&xStringOverwrite, "GLIB", "g_string_overwrite", false) | |
| 445 | + | ||
| 392 | 446 | cret := xStringOverwrite(x.GoPointer(), PosVar, ValVar) | |
| 393 | 447 | if cret == 0 { | |
| 394 | 448 | return nil | |
| @@ -401,6 +455,8 @@ var xStringOverwriteLen func(uintptr, uint, string, int) uintptr | |||
| 401 | 455 | // Overwrites part of a string, lengthening it if necessary. | |
| 402 | 456 | // This function will work with embedded nuls. | |
| 403 | 457 | func (x *String) OverwriteLen(PosVar uint, ValVar string, LenVar int) *String { | |
| 458 | + | core.LazyRegister(&xStringOverwriteLen, "GLIB", "g_string_overwrite_len", false) | |
| 459 | + | ||
| 404 | 460 | cret := xStringOverwriteLen(x.GoPointer(), PosVar, ValVar, LenVar) | |
| 405 | 461 | if cret == 0 { | |
| 406 | 462 | return nil | |
| @@ -413,6 +469,8 @@ var xStringPrepend func(uintptr, string) uintptr | |||
| 413 | 469 | // Adds a string on to the start of a #GString, | |
| 414 | 470 | // expanding it if necessary. | |
| 415 | 471 | func (x *String) Prepend(ValVar string) *String { | |
| 472 | + | core.LazyRegister(&xStringPrepend, "GLIB", "g_string_prepend", false) | |
| 473 | + | ||
| 416 | 474 | cret := xStringPrepend(x.GoPointer(), ValVar) | |
| 417 | 475 | if cret == 0 { | |
| 418 | 476 | return nil | |
| @@ -425,6 +483,8 @@ var xStringPrependC func(uintptr, byte) uintptr | |||
| 425 | 483 | // Adds a byte onto the start of a #GString, | |
| 426 | 484 | // expanding it if necessary. | |
| 427 | 485 | func (x *String) PrependC(CVar byte) *String { | |
| 486 | + | core.LazyRegister(&xStringPrependC, "GLIB", "g_string_prepend_c", false) | |
| 487 | + | ||
| 428 | 488 | cret := xStringPrependC(x.GoPointer(), CVar) | |
| 429 | 489 | if cret == 0 { | |
| 430 | 490 | return nil | |
| @@ -444,6 +504,8 @@ var xStringPrependLen func(uintptr, string, int) uintptr | |||
| 444 | 504 | // is considered to request the entire string length. This | |
| 445 | 505 | // makes g_string_prepend_len() equivalent to g_string_prepend(). | |
| 446 | 506 | func (x *String) PrependLen(ValVar string, LenVar int) *String { | |
| 507 | + | core.LazyRegister(&xStringPrependLen, "GLIB", "g_string_prepend_len", false) | |
| 508 | + | ||
| 447 | 509 | cret := xStringPrependLen(x.GoPointer(), ValVar, LenVar) | |
| 448 | 510 | if cret == 0 { | |
| 449 | 511 | return nil | |
| @@ -456,6 +518,8 @@ var xStringPrependUnichar func(uintptr, uint32) uintptr | |||
| 456 | 518 | // Converts a Unicode character into UTF-8, and prepends it | |
| 457 | 519 | // to the string. | |
| 458 | 520 | func (x *String) PrependUnichar(WcVar uint32) *String { | |
| 521 | + | core.LazyRegister(&xStringPrependUnichar, "GLIB", "g_string_prepend_unichar", false) | |
| 522 | + | ||
| 459 | 523 | cret := xStringPrependUnichar(x.GoPointer(), WcVar) | |
| 460 | 524 | if cret == 0 { | |
| 461 | 525 | return nil | |
| @@ -471,6 +535,8 @@ var xStringPrintf func(uintptr, string, ...interface{}) | |||
| 471 | 535 | // to contain the results. The previous contents of the | |
| 472 | 536 | // #GString are destroyed. | |
| 473 | 537 | func (x *String) Printf(FormatVar string, varArgs ...interface{}) { | |
| 538 | + | core.LazyRegister(&xStringPrintf, "GLIB", "g_string_printf", false) | |
| 539 | + | ||
| 474 | 540 | xStringPrintf(x.GoPointer(), FormatVar, varArgs...) | |
| 475 | 541 | } | |
| 476 | 542 | ||
| @@ -490,6 +556,8 @@ var xStringReplace func(uintptr, string, string, uint) uint | |||
| 490 | 556 | // the input string, they will all be replaced, but the return value will | |
| 491 | 557 | // be capped at `G_MAXUINT`. | |
| 492 | 558 | func (x *String) Replace(FindVar string, ReplaceVar string, LimitVar uint) uint { | |
| 559 | + | core.LazyRegister(&xStringReplace, "GLIB", "g_string_replace", false) | |
| 560 | + | ||
| 493 | 561 | cret := xStringReplace(x.GoPointer(), FindVar, ReplaceVar, LimitVar) | |
| 494 | 562 | return cret | |
| 495 | 563 | } | |
| @@ -502,6 +570,8 @@ var xStringSetSize func(uintptr, uint) uintptr | |||
| 502 | 570 | // of the newly added area are undefined. (However, as | |
| 503 | 571 | // always, string->str[string->len] will be a nul byte.) | |
| 504 | 572 | func (x *String) SetSize(LenVar uint) *String { | |
| 573 | + | core.LazyRegister(&xStringSetSize, "GLIB", "g_string_set_size", false) | |
| 574 | + | ||
| 505 | 575 | cret := xStringSetSize(x.GoPointer(), LenVar) | |
| 506 | 576 | if cret == 0 { | |
| 507 | 577 | return nil | |
| @@ -513,6 +583,8 @@ var xStringTruncate func(uintptr, uint) uintptr | |||
| 513 | 583 | ||
| 514 | 584 | // Cuts off the end of the GString, leaving the first @len bytes. | |
| 515 | 585 | func (x *String) Truncate(LenVar uint) *String { | |
| 586 | + | core.LazyRegister(&xStringTruncate, "GLIB", "g_string_truncate", false) | |
| 587 | + | ||
| 516 | 588 | cret := xStringTruncate(x.GoPointer(), LenVar) | |
| 517 | 589 | if cret == 0 { | |
| 518 | 590 | return nil | |
| @@ -524,6 +596,8 @@ var xStringUp func(uintptr) uintptr | |||
| 524 | 596 | ||
| 525 | 597 | // Converts a #GString to uppercase. | |
| 526 | 598 | func (x *String) Up() *String { | |
| 599 | + | core.LazyRegister(&xStringUp, "GLIB", "g_string_up", false) | |
| 600 | + | ||
| 527 | 601 | cret := xStringUp(x.GoPointer()) | |
| 528 | 602 | if cret == 0 { | |
| 529 | 603 | return nil | |
| @@ -537,60 +611,12 @@ var xStringVprintf func(uintptr, string, []interface{}) | |||
| 537 | 611 | // This function is similar to g_string_printf() except that | |
| 538 | 612 | // the arguments to the format string are passed as a va_list. | |
| 539 | 613 | func (x *String) Vprintf(FormatVar string, ArgsVar []interface{}) { | |
| 614 | + | core.LazyRegister(&xStringVprintf, "GLIB", "g_string_vprintf", false) | |
| 615 | + | ||
| 540 | 616 | xStringVprintf(x.GoPointer(), FormatVar, ArgsVar) | |
| 541 | 617 | } | |
| 542 | 618 | ||
| 543 | 619 | func init() { | |
| 544 | 620 | core.SetPackageName("GLIB", "glib-2.0") | |
| 545 | 621 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | |
| 546 | - | var libs []uintptr | |
| 547 | - | for _, libPath := range core.GetPaths("GLIB") { | |
| 548 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 549 | - | if err != nil { | |
| 550 | - | panic(err) | |
| 551 | - | } | |
| 552 | - | libs = append(libs, lib) | |
| 553 | - | } | |
| 554 | - | ||
| 555 | - | core.PuregoSafeRegister(&xStringGLibType, libs, "g_gstring_get_type") | |
| 556 | - | ||
| 557 | - | core.PuregoSafeRegister(&xNewString, libs, "g_string_new") | |
| 558 | - | core.PuregoSafeRegister(&xNewStringLen, libs, "g_string_new_len") | |
| 559 | - | core.PuregoSafeRegister(&xNewStringTake, libs, "g_string_new_take") | |
| 560 | - | core.PuregoSafeRegister(&xStringSizedNew, libs, "g_string_sized_new") | |
| 561 | - | ||
| 562 | - | core.PuregoSafeRegister(&xStringAppend, libs, "g_string_append") | |
| 563 | - | core.PuregoSafeRegister(&xStringAppendC, libs, "g_string_append_c") | |
| 564 | - | core.PuregoSafeRegister(&xStringAppendLen, libs, "g_string_append_len") | |
| 565 | - | core.PuregoSafeRegister(&xStringAppendPrintf, libs, "g_string_append_printf") | |
| 566 | - | core.PuregoSafeRegister(&xStringAppendUnichar, libs, "g_string_append_unichar") | |
| 567 | - | core.PuregoSafeRegister(&xStringAppendUriEscaped, libs, "g_string_append_uri_escaped") | |
| 568 | - | core.PuregoSafeRegister(&xStringAppendVprintf, libs, "g_string_append_vprintf") | |
| 569 | - | core.PuregoSafeRegister(&xStringAsciiDown, libs, "g_string_ascii_down") | |
| 570 | - | core.PuregoSafeRegister(&xStringAsciiUp, libs, "g_string_ascii_up") | |
| 571 | - | core.PuregoSafeRegister(&xStringAssign, libs, "g_string_assign") | |
| 572 | - | core.PuregoSafeRegister(&xStringCopy, libs, "g_string_copy") | |
| 573 | - | core.PuregoSafeRegister(&xStringDown, libs, "g_string_down") | |
| 574 | - | core.PuregoSafeRegister(&xStringEqual, libs, "g_string_equal") | |
| 575 | - | core.PuregoSafeRegister(&xStringErase, libs, "g_string_erase") | |
| 576 | - | core.PuregoSafeRegister(&xStringFree, libs, "g_string_free") | |
| 577 | - | core.PuregoSafeRegister(&xStringFreeAndSteal, libs, "g_string_free_and_steal") | |
| 578 | - | core.PuregoSafeRegister(&xStringFreeToBytes, libs, "g_string_free_to_bytes") | |
| 579 | - | core.PuregoSafeRegister(&xStringHash, libs, "g_string_hash") | |
| 580 | - | core.PuregoSafeRegister(&xStringInsert, libs, "g_string_insert") | |
| 581 | - | core.PuregoSafeRegister(&xStringInsertC, libs, "g_string_insert_c") | |
| 582 | - | core.PuregoSafeRegister(&xStringInsertLen, libs, "g_string_insert_len") | |
| 583 | - | core.PuregoSafeRegister(&xStringInsertUnichar, libs, "g_string_insert_unichar") | |
| 584 | - | core.PuregoSafeRegister(&xStringOverwrite, libs, "g_string_overwrite") | |
| 585 | - | core.PuregoSafeRegister(&xStringOverwriteLen, libs, "g_string_overwrite_len") | |
| 586 | - | core.PuregoSafeRegister(&xStringPrepend, libs, "g_string_prepend") | |
| 587 | - | core.PuregoSafeRegister(&xStringPrependC, libs, "g_string_prepend_c") | |
| 588 | - | core.PuregoSafeRegister(&xStringPrependLen, libs, "g_string_prepend_len") | |
| 589 | - | core.PuregoSafeRegister(&xStringPrependUnichar, libs, "g_string_prepend_unichar") | |
| 590 | - | core.PuregoSafeRegister(&xStringPrintf, libs, "g_string_printf") | |
| 591 | - | core.PuregoSafeRegister(&xStringReplace, libs, "g_string_replace") | |
| 592 | - | core.PuregoSafeRegister(&xStringSetSize, libs, "g_string_set_size") | |
| 593 | - | core.PuregoSafeRegister(&xStringTruncate, libs, "g_string_truncate") | |
| 594 | - | core.PuregoSafeRegister(&xStringUp, libs, "g_string_up") | |
| 595 | - | core.PuregoSafeRegister(&xStringVprintf, libs, "g_string_vprintf") | |
| 596 | 622 | } | |
| @@ -5,7 +5,6 @@ import ( | |||||
| 5 | "structs" | 5 | "structs" | ||
| 6 | "unsafe" | 6 | "unsafe" | ||
| 7 | 7 | ||||
| 8 | - | "github.com/bnema/purego" | |||
| 9 | "github.com/bnema/puregotk/pkg/core" | 8 | "github.com/bnema/puregotk/pkg/core" | ||
| 10 | "github.com/bnema/puregotk/v4/gobject/types" | 9 | "github.com/bnema/puregotk/v4/gobject/types" | ||
| 11 | ) | 10 | ) | ||
| @@ -33,6 +32,7 @@ type String struct { | |||||
| 33 | var xStringGLibType func() types.GType | 32 | var xStringGLibType func() types.GType | ||
| 34 | 33 | ||||
| 35 | func StringGLibType() types.GType { | 34 | func StringGLibType() types.GType { | ||
| 35 | + | core.LazyRegister(&xStringGLibType, "GLIB", "g_gstring_get_type", false) | |||
| 36 | return xStringGLibType() | 36 | return xStringGLibType() | ||
| 37 | } | 37 | } | ||
| 38 | 38 | ||||
| @@ -52,6 +52,8 @@ var xNewString func(uintptr) uintptr | |||||
| 52 | 52 | ||||
| 53 | // Creates a new #GString, initialized with the given string. | 53 | // Creates a new #GString, initialized with the given string. | ||
| 54 | func NewString(InitVar *string) *String { | 54 | func NewString(InitVar *string) *String { | ||
| 55 | + | core.LazyRegister(&xNewString, "GLIB", "g_string_new", false) | |||
| 56 | + | ||||
| 55 | InitVarPtr := core.GStrdupNullable(InitVar) | 57 | InitVarPtr := core.GStrdupNullable(InitVar) | ||
| 56 | defer core.GFreeNullable(InitVarPtr) | 58 | defer core.GFreeNullable(InitVarPtr) | ||
| 57 | 59 | ||||
| @@ -72,6 +74,8 @@ var xNewStringLen func(string, int) uintptr | |||||
| 72 | // responsibility to ensure that @init has at least @len addressable | 74 | // responsibility to ensure that @init has at least @len addressable | ||
| 73 | // bytes. | 75 | // bytes. | ||
| 74 | func NewStringLen(InitVar string, LenVar int) *String { | 76 | func NewStringLen(InitVar string, LenVar int) *String { | ||
| 77 | + | core.LazyRegister(&xNewStringLen, "GLIB", "g_string_new_len", false) | |||
| 78 | + | ||||
| 75 | cret := xNewStringLen(InitVar, LenVar) | 79 | cret := xNewStringLen(InitVar, LenVar) | ||
| 76 | if cret == 0 { | 80 | if cret == 0 { | ||
| 77 | return nil | 81 | return nil | ||
| @@ -87,6 +91,8 @@ var xNewStringTake func(uintptr) uintptr | |||||
| 87 | // modified by the caller. The memory of @init has to be dynamically | 91 | // modified by the caller. The memory of @init has to be dynamically | ||
| 88 | // allocated and will eventually be freed with g_free(). | 92 | // allocated and will eventually be freed with g_free(). | ||
| 89 | func NewStringTake(InitVar *string) *String { | 93 | func NewStringTake(InitVar *string) *String { | ||
| 94 | + | core.LazyRegister(&xNewStringTake, "GLIB", "g_string_new_take", false) | |||
| 95 | + | ||||
| 90 | InitVarPtr := core.GStrdupNullable(InitVar) | 96 | InitVarPtr := core.GStrdupNullable(InitVar) | ||
| 91 | defer core.GFreeNullable(InitVarPtr) | 97 | defer core.GFreeNullable(InitVarPtr) | ||
| 92 | 98 | ||||
| @@ -104,6 +110,8 @@ var xStringSizedNew func(uint) uintptr | |||||
| 104 | // text to the string and don't want it to be reallocated | 110 | // text to the string and don't want it to be reallocated | ||
| 105 | // too often. | 111 | // too often. | ||
| 106 | func StringSizedNew(DflSizeVar uint) *String { | 112 | func StringSizedNew(DflSizeVar uint) *String { | ||
| 113 | + | core.LazyRegister(&xStringSizedNew, "GLIB", "g_string_sized_new", false) | |||
| 114 | + | ||||
| 107 | cret := xStringSizedNew(DflSizeVar) | 115 | cret := xStringSizedNew(DflSizeVar) | ||
| 108 | if cret == 0 { | 116 | if cret == 0 { | ||
| 109 | return nil | 117 | return nil | ||
| @@ -116,6 +124,8 @@ var xStringAppend func(uintptr, string) uintptr | |||||
| 116 | // Adds a string onto the end of a #GString, expanding | 124 | // Adds a string onto the end of a #GString, expanding | ||
| 117 | // it if necessary. | 125 | // it if necessary. | ||
| 118 | func (x *String) Append(ValVar string) *String { | 126 | func (x *String) Append(ValVar string) *String { | ||
| 127 | + | core.LazyRegister(&xStringAppend, "GLIB", "g_string_append", false) | |||
| 128 | + | ||||
| 119 | cret := xStringAppend(x.GoPointer(), ValVar) | 129 | cret := xStringAppend(x.GoPointer(), ValVar) | ||
| 120 | if cret == 0 { | 130 | if cret == 0 { | ||
| 121 | return nil | 131 | return nil | ||
| @@ -128,6 +138,8 @@ var xStringAppendC func(uintptr, byte) uintptr | |||||
| 128 | // Adds a byte onto the end of a #GString, expanding | 138 | // Adds a byte onto the end of a #GString, expanding | ||
| 129 | // it if necessary. | 139 | // it if necessary. | ||
| 130 | func (x *String) AppendC(CVar byte) *String { | 140 | func (x *String) AppendC(CVar byte) *String { | ||
| 141 | + | core.LazyRegister(&xStringAppendC, "GLIB", "g_string_append_c", false) | |||
| 142 | + | ||||
| 131 | cret := xStringAppendC(x.GoPointer(), CVar) | 143 | cret := xStringAppendC(x.GoPointer(), CVar) | ||
| 132 | if cret == 0 { | 144 | if cret == 0 { | ||
| 133 | return nil | 145 | return nil | ||
| @@ -147,6 +159,8 @@ var xStringAppendLen func(uintptr, string, int) uintptr | |||||
| 147 | // is considered to request the entire string length. This | 159 | // is considered to request the entire string length. This | ||
| 148 | // makes g_string_append_len() equivalent to g_string_append(). | 160 | // makes g_string_append_len() equivalent to g_string_append(). | ||
| 149 | func (x *String) AppendLen(ValVar string, LenVar int) *String { | 161 | func (x *String) AppendLen(ValVar string, LenVar int) *String { | ||
| 162 | + | core.LazyRegister(&xStringAppendLen, "GLIB", "g_string_append_len", false) | |||
| 163 | + | ||||
| 150 | cret := xStringAppendLen(x.GoPointer(), ValVar, LenVar) | 164 | cret := xStringAppendLen(x.GoPointer(), ValVar, LenVar) | ||
| 151 | if cret == 0 { | 165 | if cret == 0 { | ||
| 152 | return nil | 166 | return nil | ||
| @@ -160,6 +174,8 @@ var xStringAppendPrintf func(uintptr, string, ...interface{}) | |||||
| 160 | // This function is similar to g_string_printf() except | 174 | // This function is similar to g_string_printf() except | ||
| 161 | // that the text is appended to the #GString. | 175 | // that the text is appended to the #GString. | ||
| 162 | func (x *String) AppendPrintf(FormatVar string, varArgs ...interface{}) { | 176 | func (x *String) AppendPrintf(FormatVar string, varArgs ...interface{}) { | ||
| 177 | + | core.LazyRegister(&xStringAppendPrintf, "GLIB", "g_string_append_printf", false) | |||
| 178 | + | ||||
| 163 | xStringAppendPrintf(x.GoPointer(), FormatVar, varArgs...) | 179 | xStringAppendPrintf(x.GoPointer(), FormatVar, varArgs...) | ||
| 164 | } | 180 | } | ||
| 165 | 181 | ||||
| @@ -168,6 +184,8 @@ var xStringAppendUnichar func(uintptr, uint32) uintptr | |||||
| 168 | // Converts a Unicode character into UTF-8, and appends it | 184 | // Converts a Unicode character into UTF-8, and appends it | ||
| 169 | // to the string. | 185 | // to the string. | ||
| 170 | func (x *String) AppendUnichar(WcVar uint32) *String { | 186 | func (x *String) AppendUnichar(WcVar uint32) *String { | ||
| 187 | + | core.LazyRegister(&xStringAppendUnichar, "GLIB", "g_string_append_unichar", false) | |||
| 188 | + | ||||
| 171 | cret := xStringAppendUnichar(x.GoPointer(), WcVar) | 189 | cret := xStringAppendUnichar(x.GoPointer(), WcVar) | ||
| 172 | if cret == 0 { | 190 | if cret == 0 { | ||
| 173 | return nil | 191 | return nil | ||
| @@ -180,6 +198,8 @@ var xStringAppendUriEscaped func(uintptr, string, string, bool) uintptr | |||||
| 180 | // Appends @unescaped to @string, escaping any characters that | 198 | // Appends @unescaped to @string, escaping any characters that | ||
| 181 | // are reserved in URIs using URI-style escape sequences. | 199 | // are reserved in URIs using URI-style escape sequences. | ||
| 182 | func (x *String) AppendUriEscaped(UnescapedVar string, ReservedCharsAllowedVar string, AllowUtf8Var bool) *String { | 200 | func (x *String) AppendUriEscaped(UnescapedVar string, ReservedCharsAllowedVar string, AllowUtf8Var bool) *String { | ||
| 201 | + | core.LazyRegister(&xStringAppendUriEscaped, "GLIB", "g_string_append_uri_escaped", false) | |||
| 202 | + | ||||
| 183 | cret := xStringAppendUriEscaped(x.GoPointer(), UnescapedVar, ReservedCharsAllowedVar, AllowUtf8Var) | 203 | cret := xStringAppendUriEscaped(x.GoPointer(), UnescapedVar, ReservedCharsAllowedVar, AllowUtf8Var) | ||
| 184 | if cret == 0 { | 204 | if cret == 0 { | ||
| 185 | return nil | 205 | return nil | ||
| @@ -194,6 +214,8 @@ var xStringAppendVprintf func(uintptr, string, []interface{}) | |||||
| 194 | // except that the arguments to the format string are passed | 214 | // except that the arguments to the format string are passed | ||
| 195 | // as a va_list. | 215 | // as a va_list. | ||
| 196 | func (x *String) AppendVprintf(FormatVar string, ArgsVar []interface{}) { | 216 | func (x *String) AppendVprintf(FormatVar string, ArgsVar []interface{}) { | ||
| 217 | + | core.LazyRegister(&xStringAppendVprintf, "GLIB", "g_string_append_vprintf", false) | |||
| 218 | + | ||||
| 197 | xStringAppendVprintf(x.GoPointer(), FormatVar, ArgsVar) | 219 | xStringAppendVprintf(x.GoPointer(), FormatVar, ArgsVar) | ||
| 198 | } | 220 | } | ||
| 199 | 221 | ||||
| @@ -201,6 +223,8 @@ var xStringAsciiDown func(uintptr) uintptr | |||||
| 201 | 223 | ||||
| 202 | // Converts all uppercase ASCII letters to lowercase ASCII letters. | 224 | // Converts all uppercase ASCII letters to lowercase ASCII letters. | ||
| 203 | func (x *String) AsciiDown() *String { | 225 | func (x *String) AsciiDown() *String { | ||
| 226 | + | core.LazyRegister(&xStringAsciiDown, "GLIB", "g_string_ascii_down", false) | |||
| 227 | + | ||||
| 204 | cret := xStringAsciiDown(x.GoPointer()) | 228 | cret := xStringAsciiDown(x.GoPointer()) | ||
| 205 | if cret == 0 { | 229 | if cret == 0 { | ||
| 206 | return nil | 230 | return nil | ||
| @@ -212,6 +236,8 @@ var xStringAsciiUp func(uintptr) uintptr | |||||
| 212 | 236 | ||||
| 213 | // Converts all lowercase ASCII letters to uppercase ASCII letters. | 237 | // Converts all lowercase ASCII letters to uppercase ASCII letters. | ||
| 214 | func (x *String) AsciiUp() *String { | 238 | func (x *String) AsciiUp() *String { | ||
| 239 | + | core.LazyRegister(&xStringAsciiUp, "GLIB", "g_string_ascii_up", false) | |||
| 240 | + | ||||
| 215 | cret := xStringAsciiUp(x.GoPointer()) | 241 | cret := xStringAsciiUp(x.GoPointer()) | ||
| 216 | if cret == 0 { | 242 | if cret == 0 { | ||
| 217 | return nil | 243 | return nil | ||
| @@ -226,6 +252,8 @@ var xStringAssign func(uintptr, string) uintptr | |||||
| 226 | // the standard strcpy() function, except that you do not | 252 | // the standard strcpy() function, except that you do not | ||
| 227 | // have to worry about having enough space to copy the string. | 253 | // have to worry about having enough space to copy the string. | ||
| 228 | func (x *String) Assign(RvalVar string) *String { | 254 | func (x *String) Assign(RvalVar string) *String { | ||
| 255 | + | core.LazyRegister(&xStringAssign, "GLIB", "g_string_assign", false) | |||
| 256 | + | ||||
| 229 | cret := xStringAssign(x.GoPointer(), RvalVar) | 257 | cret := xStringAssign(x.GoPointer(), RvalVar) | ||
| 230 | if cret == 0 { | 258 | if cret == 0 { | ||
| 231 | return nil | 259 | return nil | ||
| @@ -240,6 +268,8 @@ var xStringCopy func(uintptr) uintptr | |||||
| 240 | // This will preserve the allocation length of the [struct@GLib.String] in the | 268 | // This will preserve the allocation length of the [struct@GLib.String] in the | ||
| 241 | // copy. | 269 | // copy. | ||
| 242 | func (x *String) Copy() *String { | 270 | func (x *String) Copy() *String { | ||
| 271 | + | core.LazyRegister(&xStringCopy, "GLIB", "g_string_copy", false) | |||
| 272 | + | ||||
| 243 | cret := xStringCopy(x.GoPointer()) | 273 | cret := xStringCopy(x.GoPointer()) | ||
| 244 | if cret == 0 { | 274 | if cret == 0 { | ||
| 245 | return nil | 275 | return nil | ||
| @@ -251,6 +281,8 @@ var xStringDown func(uintptr) uintptr | |||||
| 251 | 281 | ||||
| 252 | // Converts a #GString to lowercase. | 282 | // Converts a #GString to lowercase. | ||
| 253 | func (x *String) Down() *String { | 283 | func (x *String) Down() *String { | ||
| 284 | + | core.LazyRegister(&xStringDown, "GLIB", "g_string_down", false) | |||
| 285 | + | ||||
| 254 | cret := xStringDown(x.GoPointer()) | 286 | cret := xStringDown(x.GoPointer()) | ||
| 255 | if cret == 0 { | 287 | if cret == 0 { | ||
| 256 | return nil | 288 | return nil | ||
| @@ -263,6 +295,8 @@ var xStringEqual func(uintptr, *String) bool | |||||
| 263 | // Compares two strings for equality, returning %TRUE if they are equal. | 295 | // Compares two strings for equality, returning %TRUE if they are equal. | ||
| 264 | // For use with #GHashTable. | 296 | // For use with #GHashTable. | ||
| 265 | func (x *String) Equal(V2Var *String) bool { | 297 | func (x *String) Equal(V2Var *String) bool { | ||
| 298 | + | core.LazyRegister(&xStringEqual, "GLIB", "g_string_equal", false) | |||
| 299 | + | ||||
| 266 | cret := xStringEqual(x.GoPointer(), V2Var) | 300 | cret := xStringEqual(x.GoPointer(), V2Var) | ||
| 267 | return cret | 301 | return cret | ||
| 268 | } | 302 | } | ||
| @@ -272,6 +306,8 @@ var xStringErase func(uintptr, int, int) uintptr | |||||
| 272 | // Removes @len bytes from a #GString, starting at position @pos. | 306 | // Removes @len bytes from a #GString, starting at position @pos. | ||
| 273 | // The rest of the #GString is shifted down to fill the gap. | 307 | // The rest of the #GString is shifted down to fill the gap. | ||
| 274 | func (x *String) Erase(PosVar int, LenVar int) *String { | 308 | func (x *String) Erase(PosVar int, LenVar int) *String { | ||
| 309 | + | core.LazyRegister(&xStringErase, "GLIB", "g_string_erase", false) | |||
| 310 | + | ||||
| 275 | cret := xStringErase(x.GoPointer(), PosVar, LenVar) | 311 | cret := xStringErase(x.GoPointer(), PosVar, LenVar) | ||
| 276 | if cret == 0 { | 312 | if cret == 0 { | ||
| 277 | return nil | 313 | return nil | ||
| @@ -289,6 +325,8 @@ var xStringFree func(uintptr, bool) string | |||||
| 289 | // Instead of passing %FALSE to this function, consider using | 325 | // Instead of passing %FALSE to this function, consider using | ||
| 290 | // g_string_free_and_steal(). | 326 | // g_string_free_and_steal(). | ||
| 291 | func (x *String) Free(FreeSegmentVar bool) string { | 327 | func (x *String) Free(FreeSegmentVar bool) string { | ||
| 328 | + | core.LazyRegister(&xStringFree, "GLIB", "g_string_free", false) | |||
| 329 | + | ||||
| 292 | cret := xStringFree(x.GoPointer(), FreeSegmentVar) | 330 | cret := xStringFree(x.GoPointer(), FreeSegmentVar) | ||
| 293 | return cret | 331 | return cret | ||
| 294 | } | 332 | } | ||
| @@ -300,6 +338,8 @@ var xStringFreeAndSteal func(uintptr) string | |||||
| 300 | // The caller gains ownership of the buffer and | 338 | // The caller gains ownership of the buffer and | ||
| 301 | // must free it after use with g_free(). | 339 | // must free it after use with g_free(). | ||
| 302 | func (x *String) FreeAndSteal() string { | 340 | func (x *String) FreeAndSteal() string { | ||
| 341 | + | core.LazyRegister(&xStringFreeAndSteal, "GLIB", "g_string_free_and_steal", false) | |||
| 342 | + | ||||
| 303 | cret := xStringFreeAndSteal(x.GoPointer()) | 343 | cret := xStringFreeAndSteal(x.GoPointer()) | ||
| 304 | return cret | 344 | return cret | ||
| 305 | } | 345 | } | ||
| @@ -315,6 +355,8 @@ var xStringFreeToBytes func(uintptr) uintptr | |||||
| 315 | // #GBytes does not include this extra nul; i.e. it has length exactly | 355 | // #GBytes does not include this extra nul; i.e. it has length exactly | ||
| 316 | // equal to the "len" member. | 356 | // equal to the "len" member. | ||
| 317 | func (x *String) FreeToBytes() *Bytes { | 357 | func (x *String) FreeToBytes() *Bytes { | ||
| 358 | + | core.LazyRegister(&xStringFreeToBytes, "GLIB", "g_string_free_to_bytes", false) | |||
| 359 | + | ||||
| 318 | cret := xStringFreeToBytes(x.GoPointer()) | 360 | cret := xStringFreeToBytes(x.GoPointer()) | ||
| 319 | if cret == 0 { | 361 | if cret == 0 { | ||
| 320 | return nil | 362 | return nil | ||
| @@ -326,6 +368,8 @@ var xStringHash func(uintptr) uint | |||||
| 326 | 368 | ||||
| 327 | // Creates a hash code for @str; for use with #GHashTable. | 369 | // Creates a hash code for @str; for use with #GHashTable. | ||
| 328 | func (x *String) Hash() uint { | 370 | func (x *String) Hash() uint { | ||
| 371 | + | core.LazyRegister(&xStringHash, "GLIB", "g_string_hash", false) | |||
| 372 | + | ||||
| 329 | cret := xStringHash(x.GoPointer()) | 373 | cret := xStringHash(x.GoPointer()) | ||
| 330 | return cret | 374 | return cret | ||
| 331 | } | 375 | } | ||
| @@ -335,6 +379,8 @@ var xStringInsert func(uintptr, int, string) uintptr | |||||
| 335 | // Inserts a copy of a string into a #GString, | 379 | // Inserts a copy of a string into a #GString, | ||
| 336 | // expanding it if necessary. | 380 | // expanding it if necessary. | ||
| 337 | func (x *String) Insert(PosVar int, ValVar string) *String { | 381 | func (x *String) Insert(PosVar int, ValVar string) *String { | ||
| 382 | + | core.LazyRegister(&xStringInsert, "GLIB", "g_string_insert", false) | |||
| 383 | + | ||||
| 338 | cret := xStringInsert(x.GoPointer(), PosVar, ValVar) | 384 | cret := xStringInsert(x.GoPointer(), PosVar, ValVar) | ||
| 339 | if cret == 0 { | 385 | if cret == 0 { | ||
| 340 | return nil | 386 | return nil | ||
| @@ -346,6 +392,8 @@ var xStringInsertC func(uintptr, int, byte) uintptr | |||||
| 346 | 392 | ||||
| 347 | // Inserts a byte into a #GString, expanding it if necessary. | 393 | // Inserts a byte into a #GString, expanding it if necessary. | ||
| 348 | func (x *String) InsertC(PosVar int, CVar byte) *String { | 394 | func (x *String) InsertC(PosVar int, CVar byte) *String { | ||
| 395 | + | core.LazyRegister(&xStringInsertC, "GLIB", "g_string_insert_c", false) | |||
| 396 | + | ||||
| 349 | cret := xStringInsertC(x.GoPointer(), PosVar, CVar) | 397 | cret := xStringInsertC(x.GoPointer(), PosVar, CVar) | ||
| 350 | if cret == 0 { | 398 | if cret == 0 { | ||
| 351 | return nil | 399 | return nil | ||
| @@ -366,6 +414,8 @@ var xStringInsertLen func(uintptr, int, string, int) uintptr | |||||
| 366 | // | 414 | // | ||
| 367 | // If @pos is -1, bytes are inserted at the end of the string. | 415 | // If @pos is -1, bytes are inserted at the end of the string. | ||
| 368 | func (x *String) InsertLen(PosVar int, ValVar string, LenVar int) *String { | 416 | func (x *String) InsertLen(PosVar int, ValVar string, LenVar int) *String { | ||
| 417 | + | core.LazyRegister(&xStringInsertLen, "GLIB", "g_string_insert_len", false) | |||
| 418 | + | ||||
| 369 | cret := xStringInsertLen(x.GoPointer(), PosVar, ValVar, LenVar) | 419 | cret := xStringInsertLen(x.GoPointer(), PosVar, ValVar, LenVar) | ||
| 370 | if cret == 0 { | 420 | if cret == 0 { | ||
| 371 | return nil | 421 | return nil | ||
| @@ -378,6 +428,8 @@ var xStringInsertUnichar func(uintptr, int, uint32) uintptr | |||||
| 378 | // Converts a Unicode character into UTF-8, and insert it | 428 | // Converts a Unicode character into UTF-8, and insert it | ||
| 379 | // into the string at the given position. | 429 | // into the string at the given position. | ||
| 380 | func (x *String) InsertUnichar(PosVar int, WcVar uint32) *String { | 430 | func (x *String) InsertUnichar(PosVar int, WcVar uint32) *String { | ||
| 431 | + | core.LazyRegister(&xStringInsertUnichar, "GLIB", "g_string_insert_unichar", false) | |||
| 432 | + | ||||
| 381 | cret := xStringInsertUnichar(x.GoPointer(), PosVar, WcVar) | 433 | cret := xStringInsertUnichar(x.GoPointer(), PosVar, WcVar) | ||
| 382 | if cret == 0 { | 434 | if cret == 0 { | ||
| 383 | return nil | 435 | return nil | ||
| @@ -389,6 +441,8 @@ var xStringOverwrite func(uintptr, uint, string) uintptr | |||||
| 389 | 441 | ||||
| 390 | // Overwrites part of a string, lengthening it if necessary. | 442 | // Overwrites part of a string, lengthening it if necessary. | ||
| 391 | func (x *String) Overwrite(PosVar uint, ValVar string) *String { | 443 | func (x *String) Overwrite(PosVar uint, ValVar string) *String { | ||
| 444 | + | core.LazyRegister(&xStringOverwrite, "GLIB", "g_string_overwrite", false) | |||
| 445 | + | ||||
| 392 | cret := xStringOverwrite(x.GoPointer(), PosVar, ValVar) | 446 | cret := xStringOverwrite(x.GoPointer(), PosVar, ValVar) | ||
| 393 | if cret == 0 { | 447 | if cret == 0 { | ||
| 394 | return nil | 448 | return nil | ||
| @@ -401,6 +455,8 @@ var xStringOverwriteLen func(uintptr, uint, string, int) uintptr | |||||
| 401 | // Overwrites part of a string, lengthening it if necessary. | 455 | // Overwrites part of a string, lengthening it if necessary. | ||
| 402 | // This function will work with embedded nuls. | 456 | // This function will work with embedded nuls. | ||
| 403 | func (x *String) OverwriteLen(PosVar uint, ValVar string, LenVar int) *String { | 457 | func (x *String) OverwriteLen(PosVar uint, ValVar string, LenVar int) *String { | ||
| 458 | + | core.LazyRegister(&xStringOverwriteLen, "GLIB", "g_string_overwrite_len", false) | |||
| 459 | + | ||||
| 404 | cret := xStringOverwriteLen(x.GoPointer(), PosVar, ValVar, LenVar) | 460 | cret := xStringOverwriteLen(x.GoPointer(), PosVar, ValVar, LenVar) | ||
| 405 | if cret == 0 { | 461 | if cret == 0 { | ||
| 406 | return nil | 462 | return nil | ||
| @@ -413,6 +469,8 @@ var xStringPrepend func(uintptr, string) uintptr | |||||
| 413 | // Adds a string on to the start of a #GString, | 469 | // Adds a string on to the start of a #GString, | ||
| 414 | // expanding it if necessary. | 470 | // expanding it if necessary. | ||
| 415 | func (x *String) Prepend(ValVar string) *String { | 471 | func (x *String) Prepend(ValVar string) *String { | ||
| 472 | + | core.LazyRegister(&xStringPrepend, "GLIB", "g_string_prepend", false) | |||
| 473 | + | ||||
| 416 | cret := xStringPrepend(x.GoPointer(), ValVar) | 474 | cret := xStringPrepend(x.GoPointer(), ValVar) | ||
| 417 | if cret == 0 { | 475 | if cret == 0 { | ||
| 418 | return nil | 476 | return nil | ||
| @@ -425,6 +483,8 @@ var xStringPrependC func(uintptr, byte) uintptr | |||||
| 425 | // Adds a byte onto the start of a #GString, | 483 | // Adds a byte onto the start of a #GString, | ||
| 426 | // expanding it if necessary. | 484 | // expanding it if necessary. | ||
| 427 | func (x *String) PrependC(CVar byte) *String { | 485 | func (x *String) PrependC(CVar byte) *String { | ||
| 486 | + | core.LazyRegister(&xStringPrependC, "GLIB", "g_string_prepend_c", false) | |||
| 487 | + | ||||
| 428 | cret := xStringPrependC(x.GoPointer(), CVar) | 488 | cret := xStringPrependC(x.GoPointer(), CVar) | ||
| 429 | if cret == 0 { | 489 | if cret == 0 { | ||
| 430 | return nil | 490 | return nil | ||
| @@ -444,6 +504,8 @@ var xStringPrependLen func(uintptr, string, int) uintptr | |||||
| 444 | // is considered to request the entire string length. This | 504 | // is considered to request the entire string length. This | ||
| 445 | // makes g_string_prepend_len() equivalent to g_string_prepend(). | 505 | // makes g_string_prepend_len() equivalent to g_string_prepend(). | ||
| 446 | func (x *String) PrependLen(ValVar string, LenVar int) *String { | 506 | func (x *String) PrependLen(ValVar string, LenVar int) *String { | ||
| 507 | + | core.LazyRegister(&xStringPrependLen, "GLIB", "g_string_prepend_len", false) | |||
| 508 | + | ||||
| 447 | cret := xStringPrependLen(x.GoPointer(), ValVar, LenVar) | 509 | cret := xStringPrependLen(x.GoPointer(), ValVar, LenVar) | ||
| 448 | if cret == 0 { | 510 | if cret == 0 { | ||
| 449 | return nil | 511 | return nil | ||
| @@ -456,6 +518,8 @@ var xStringPrependUnichar func(uintptr, uint32) uintptr | |||||
| 456 | // Converts a Unicode character into UTF-8, and prepends it | 518 | // Converts a Unicode character into UTF-8, and prepends it | ||
| 457 | // to the string. | 519 | // to the string. | ||
| 458 | func (x *String) PrependUnichar(WcVar uint32) *String { | 520 | func (x *String) PrependUnichar(WcVar uint32) *String { | ||
| 521 | + | core.LazyRegister(&xStringPrependUnichar, "GLIB", "g_string_prepend_unichar", false) | |||
| 522 | + | ||||
| 459 | cret := xStringPrependUnichar(x.GoPointer(), WcVar) | 523 | cret := xStringPrependUnichar(x.GoPointer(), WcVar) | ||
| 460 | if cret == 0 { | 524 | if cret == 0 { | ||
| 461 | return nil | 525 | return nil | ||
| @@ -471,6 +535,8 @@ var xStringPrintf func(uintptr, string, ...interface{}) | |||||
| 471 | // to contain the results. The previous contents of the | 535 | // to contain the results. The previous contents of the | ||
| 472 | // #GString are destroyed. | 536 | // #GString are destroyed. | ||
| 473 | func (x *String) Printf(FormatVar string, varArgs ...interface{}) { | 537 | func (x *String) Printf(FormatVar string, varArgs ...interface{}) { | ||
| 538 | + | core.LazyRegister(&xStringPrintf, "GLIB", "g_string_printf", false) | |||
| 539 | + | ||||
| 474 | xStringPrintf(x.GoPointer(), FormatVar, varArgs...) | 540 | xStringPrintf(x.GoPointer(), FormatVar, varArgs...) | ||
| 475 | } | 541 | } | ||
| 476 | 542 | ||||
| @@ -490,6 +556,8 @@ var xStringReplace func(uintptr, string, string, uint) uint | |||||
| 490 | // the input string, they will all be replaced, but the return value will | 556 | // the input string, they will all be replaced, but the return value will | ||
| 491 | // be capped at `G_MAXUINT`. | 557 | // be capped at `G_MAXUINT`. | ||
| 492 | func (x *String) Replace(FindVar string, ReplaceVar string, LimitVar uint) uint { | 558 | func (x *String) Replace(FindVar string, ReplaceVar string, LimitVar uint) uint { | ||
| 559 | + | core.LazyRegister(&xStringReplace, "GLIB", "g_string_replace", false) | |||
| 560 | + | ||||
| 493 | cret := xStringReplace(x.GoPointer(), FindVar, ReplaceVar, LimitVar) | 561 | cret := xStringReplace(x.GoPointer(), FindVar, ReplaceVar, LimitVar) | ||
| 494 | return cret | 562 | return cret | ||
| 495 | } | 563 | } | ||
| @@ -502,6 +570,8 @@ var xStringSetSize func(uintptr, uint) uintptr | |||||
| 502 | // of the newly added area are undefined. (However, as | 570 | // of the newly added area are undefined. (However, as | ||
| 503 | // always, string->str[string->len] will be a nul byte.) | 571 | // always, string->str[string->len] will be a nul byte.) | ||
| 504 | func (x *String) SetSize(LenVar uint) *String { | 572 | func (x *String) SetSize(LenVar uint) *String { | ||
| 573 | + | core.LazyRegister(&xStringSetSize, "GLIB", "g_string_set_size", false) | |||
| 574 | + | ||||
| 505 | cret := xStringSetSize(x.GoPointer(), LenVar) | 575 | cret := xStringSetSize(x.GoPointer(), LenVar) | ||
| 506 | if cret == 0 { | 576 | if cret == 0 { | ||
| 507 | return nil | 577 | return nil | ||
| @@ -513,6 +583,8 @@ var xStringTruncate func(uintptr, uint) uintptr | |||||
| 513 | 583 | ||||
| 514 | // Cuts off the end of the GString, leaving the first @len bytes. | 584 | // Cuts off the end of the GString, leaving the first @len bytes. | ||
| 515 | func (x *String) Truncate(LenVar uint) *String { | 585 | func (x *String) Truncate(LenVar uint) *String { | ||
| 586 | + | core.LazyRegister(&xStringTruncate, "GLIB", "g_string_truncate", false) | |||
| 587 | + | ||||
| 516 | cret := xStringTruncate(x.GoPointer(), LenVar) | 588 | cret := xStringTruncate(x.GoPointer(), LenVar) | ||
| 517 | if cret == 0 { | 589 | if cret == 0 { | ||
| 518 | return nil | 590 | return nil | ||
| @@ -524,6 +596,8 @@ var xStringUp func(uintptr) uintptr | |||||
| 524 | 596 | ||||
| 525 | // Converts a #GString to uppercase. | 597 | // Converts a #GString to uppercase. | ||
| 526 | func (x *String) Up() *String { | 598 | func (x *String) Up() *String { | ||
| 599 | + | core.LazyRegister(&xStringUp, "GLIB", "g_string_up", false) | |||
| 600 | + | ||||
| 527 | cret := xStringUp(x.GoPointer()) | 601 | cret := xStringUp(x.GoPointer()) | ||
| 528 | if cret == 0 { | 602 | if cret == 0 { | ||
| 529 | return nil | 603 | return nil | ||
| @@ -537,60 +611,12 @@ var xStringVprintf func(uintptr, string, []interface{}) | |||||
| 537 | // This function is similar to g_string_printf() except that | 611 | // This function is similar to g_string_printf() except that | ||
| 538 | // the arguments to the format string are passed as a va_list. | 612 | // the arguments to the format string are passed as a va_list. | ||
| 539 | func (x *String) Vprintf(FormatVar string, ArgsVar []interface{}) { | 613 | func (x *String) Vprintf(FormatVar string, ArgsVar []interface{}) { | ||
| 614 | + | core.LazyRegister(&xStringVprintf, "GLIB", "g_string_vprintf", false) | |||
| 615 | + | ||||
| 540 | xStringVprintf(x.GoPointer(), FormatVar, ArgsVar) | 616 | xStringVprintf(x.GoPointer(), FormatVar, ArgsVar) | ||
| 541 | } | 617 | } | ||
| 542 | 618 | ||||
| 543 | func init() { | 619 | func init() { | ||
| 544 | core.SetPackageName("GLIB", "glib-2.0") | 620 | core.SetPackageName("GLIB", "glib-2.0") | ||
| 545 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | 621 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | ||
| 546 | - | var libs []uintptr | |||
| 547 | - | for _, libPath := range core.GetPaths("GLIB") { | |||
| 548 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 549 | - | if err != nil { | |||
| 550 | - | panic(err) | |||
| 551 | - | } | |||
| 552 | - | libs = append(libs, lib) | |||
| 553 | - | } | |||
| 554 | - | ||||
| 555 | - | core.PuregoSafeRegister(&xStringGLibType, libs, "g_gstring_get_type") | |||
| 556 | - | ||||
| 557 | - | core.PuregoSafeRegister(&xNewString, libs, "g_string_new") | |||
| 558 | - | core.PuregoSafeRegister(&xNewStringLen, libs, "g_string_new_len") | |||
| 559 | - | core.PuregoSafeRegister(&xNewStringTake, libs, "g_string_new_take") | |||
| 560 | - | core.PuregoSafeRegister(&xStringSizedNew, libs, "g_string_sized_new") | |||
| 561 | - | ||||
| 562 | - | core.PuregoSafeRegister(&xStringAppend, libs, "g_string_append") | |||
| 563 | - | core.PuregoSafeRegister(&xStringAppendC, libs, "g_string_append_c") | |||
| 564 | - | core.PuregoSafeRegister(&xStringAppendLen, libs, "g_string_append_len") | |||
| 565 | - | core.PuregoSafeRegister(&xStringAppendPrintf, libs, "g_string_append_printf") | |||
| 566 | - | core.PuregoSafeRegister(&xStringAppendUnichar, libs, "g_string_append_unichar") | |||
| 567 | - | core.PuregoSafeRegister(&xStringAppendUriEscaped, libs, "g_string_append_uri_escaped") | |||
| 568 | - | core.PuregoSafeRegister(&xStringAppendVprintf, libs, "g_string_append_vprintf") | |||
| 569 | - | core.PuregoSafeRegister(&xStringAsciiDown, libs, "g_string_ascii_down") | |||
| 570 | - | core.PuregoSafeRegister(&xStringAsciiUp, libs, "g_string_ascii_up") | |||
| 571 | - | core.PuregoSafeRegister(&xStringAssign, libs, "g_string_assign") | |||
| 572 | - | core.PuregoSafeRegister(&xStringCopy, libs, "g_string_copy") | |||
| 573 | - | core.PuregoSafeRegister(&xStringDown, libs, "g_string_down") | |||
| 574 | - | core.PuregoSafeRegister(&xStringEqual, libs, "g_string_equal") | |||
| 575 | - | core.PuregoSafeRegister(&xStringErase, libs, "g_string_erase") | |||
| 576 | - | core.PuregoSafeRegister(&xStringFree, libs, "g_string_free") | |||
| 577 | - | core.PuregoSafeRegister(&xStringFreeAndSteal, libs, "g_string_free_and_steal") | |||
| 578 | - | core.PuregoSafeRegister(&xStringFreeToBytes, libs, "g_string_free_to_bytes") | |||
| 579 | - | core.PuregoSafeRegister(&xStringHash, libs, "g_string_hash") | |||
| 580 | - | core.PuregoSafeRegister(&xStringInsert, libs, "g_string_insert") | |||
| 581 | - | core.PuregoSafeRegister(&xStringInsertC, libs, "g_string_insert_c") | |||
| 582 | - | core.PuregoSafeRegister(&xStringInsertLen, libs, "g_string_insert_len") | |||
| 583 | - | core.PuregoSafeRegister(&xStringInsertUnichar, libs, "g_string_insert_unichar") | |||
| 584 | - | core.PuregoSafeRegister(&xStringOverwrite, libs, "g_string_overwrite") | |||
| 585 | - | core.PuregoSafeRegister(&xStringOverwriteLen, libs, "g_string_overwrite_len") | |||
| 586 | - | core.PuregoSafeRegister(&xStringPrepend, libs, "g_string_prepend") | |||
| 587 | - | core.PuregoSafeRegister(&xStringPrependC, libs, "g_string_prepend_c") | |||
| 588 | - | core.PuregoSafeRegister(&xStringPrependLen, libs, "g_string_prepend_len") | |||
| 589 | - | core.PuregoSafeRegister(&xStringPrependUnichar, libs, "g_string_prepend_unichar") | |||
| 590 | - | core.PuregoSafeRegister(&xStringPrintf, libs, "g_string_printf") | |||
| 591 | - | core.PuregoSafeRegister(&xStringReplace, libs, "g_string_replace") | |||
| 592 | - | core.PuregoSafeRegister(&xStringSetSize, libs, "g_string_set_size") | |||
| 593 | - | core.PuregoSafeRegister(&xStringTruncate, libs, "g_string_truncate") | |||
| 594 | - | core.PuregoSafeRegister(&xStringUp, libs, "g_string_up") | |||
| 595 | - | core.PuregoSafeRegister(&xStringVprintf, libs, "g_string_vprintf") | |||
| 596 | } | 622 | } | ||