Revert "chore(deps): pin puregotk nil-signal fix"
This reverts commit a161e348e2093172038390b0906448f0ae979a0d.
- commit
- 40378d5e4fd2372d054e49168ab2a6f67aedd0fd
- author
- brice · · 2026-07-14 17:59 UTC
- parent
- 8d647bb
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
905 files · +25263 -27842
M go.mod +1 -1
| @@ -11,7 +11,7 @@ require ( | |||
| 11 | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | |
| 12 | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | |
| 13 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | |
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | |
| 14 | + | github.com/bnema/puregotk v0.7.0 | |
| 15 | 15 | github.com/charmbracelet/bubbles v1.0.0 | |
| 16 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | |
| 17 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | |
| @@ -11,7 +11,7 @@ require ( | |||||
| 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | ||
| 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | ||
| 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | ||
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | 14 | + | github.com/bnema/puregotk v0.7.0 |
| 15 | github.com/charmbracelet/bubbles v1.0.0 | 15 | github.com/charmbracelet/bubbles v1.0.0 | ||
| 16 | github.com/charmbracelet/bubbletea v1.3.10 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | ||
| 17 | github.com/charmbracelet/lipgloss v1.1.0 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | ||
M go.sum +0 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/internal/core/core.go +4 -197 generated file: collapsed
M vendor/github.com/bnema/puregotk/pkg/core/core.go +0 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-dialog.go +64 -99 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-window.go +62 -95 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-accent-color.go +15 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-action-row.go +29 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-alert-dialog.go +47 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-target.go +27 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-util.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation.go +26 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application-window.go +22 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-avatar.go +25 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-banner.go +26 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bin.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bottom-sheet.go +38 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint-bin.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint.go +37 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-content.go +22 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-row.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-dots.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-lines.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel.go +37 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-layout.go +20 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-scrollable.go +22 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp.go +22 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-combo-row.go +33 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-dialog.go +38 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-easing.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-entry-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-enum-list-model.go +22 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-expander-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-flap.go +48 -61 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-fold-threshold-policy.go +1 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-header-bar.go +33 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-inline-view-switcher.go +24 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout-slot.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout.go +17 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-leaflet.go +56 -69 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-length-unit.go +14 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-main.go +15 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-message-dialog.go +44 -63 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-multi-layout-view.go +23 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-direction.go +1 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-split-view.go +32 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-view.go +49 -60 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-overlay-split-view.go +38 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-password-entry-row.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-dialog.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-group.go +26 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-page.go +33 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-row.go +22 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-window.go +29 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcut-label.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-dialog.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-item.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-section.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-item.go +37 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-section.go +27 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar.go +39 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spin-row.go +34 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner-paintable.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-split-button.go +34 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-animation.go +30 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-params.go +21 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-squeezer.go +44 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-status-page.go +24 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-style-manager.go +28 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipe-tracker.go +30 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipeable.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-switch-row.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-bar.go +32 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-button.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-overview.go +37 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-view.go +87 -123 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-timed-animation.go +28 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast-overlay.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast.go +36 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toggle-group.go +51 -64 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toolbar-view.go +35 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-version.go +16 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-stack.go +62 -78 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-bar.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-sidebar.go +22 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-title.go +23 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher.go +20 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window-title.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window.go +22 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-box.go +46 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-layout.go +46 -57 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/cairo/main.go +79 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkapplaunchcontext.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairo.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairocontext.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcicpparams.go +25 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkclipboard.go +32 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcolorstate.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentdeserializer.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentformats.go +31 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentprovider.go +28 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentserializer.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcursor.go +21 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevice.go +33 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicepad.go +22 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicetool.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplay.go +43 -51 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplaymanager.go +20 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexture.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexturebuilder.go +41 -53 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrag.go +28 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurface.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurfacesize.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrawcontext.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrop.go +24 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkenums.go +1 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkevents.go +118 -120 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframeclock.go +24 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframetimings.go +20 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkglcontext.go +36 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexture.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexturebuilder.go +35 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkkeys.go +22 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexture.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexturebuilder.go +35 -42 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmonitor.go +27 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpaintable.go +33 -63 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpango.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpixbuf.go +12 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopup.go +26 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopuplayout.go +32 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkrgba.go +21 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkseat.go +20 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksnapshot.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksurface.go +40 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktexture.go +31 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevel.go +66 -157 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevellayout.go +25 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevelsize.go +16 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktypes.go +72 -95 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkvulkancontext.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-animation.go +32 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-core.go +0 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-io.go +23 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-loader.go +22 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-simple-anim.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-transform.go +1 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf.go +79 -102 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/main.go +17 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gaction.go +31 -59 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactiongroup.go +39 -96 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactionmap.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gappinfo.go +116 -244 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplication.go +55 -79 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplicationcommandline.go +27 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncinitable.go +22 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncresult.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedinputstream.go +29 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedoutputstream.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbytesicon.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcancellable.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcharsetconverter.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcontenttype.go +26 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverter.go +20 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverterinputstream.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverteroutputstream.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcredentials.go +21 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatagrambased.go +30 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatainputstream.go +35 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdataoutputstream.go +23 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusactiongroup.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusaddress.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusauthobserver.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusconnection.go +66 -77 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbuserror.go +18 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusinterface.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusinterfaceskeleton.go +24 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusintrospection.go +56 -54 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmenumodel.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmessage.go +64 -88 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmethodinvocation.go +30 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusnameowning.go +15 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusnamewatching.go +15 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobject.go +17 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanager.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerclient.go +23 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerserver.go +20 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectproxy.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectskeleton.go +18 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusproxy.go +38 -42 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusserver.go +20 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusutils.go +22 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdebugcontroller.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdebugcontrollerdbus.go +14 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdrive.go +82 -214 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsclientconnection.go +24 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsconnection.go +80 -207 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsserverconnection.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gemblem.go +17 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gemblemedicon.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfile.go +450 -1148 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileattribute.go +19 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileenumerator.go +35 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileicon.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileinfo.go +84 -138 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileinputstream.go +23 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileiostream.go +27 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilemonitor.go +15 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilenamecompleter.go +16 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileoutputstream.go +27 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilterinputstream.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilteroutputstream.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gicon.go +25 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetaddress.go +34 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetaddressmask.go +21 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetsocketaddress.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginitable.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginputstream.go +48 -52 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioenums.go +1 -90 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioerror.go +13 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giomodule.go +29 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioscheduler.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giostream.go +29 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giotypes.go +60 -70 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giptosmessage.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gipv6tclassmessage.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/glistmodel.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gliststore.go +24 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gloadableicon.go +23 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemoryinputstream.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemorymonitor.go +12 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemoryoutputstream.go +19 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmenu.go +50 -62 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmenumodel.go +33 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmount.go +86 -215 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmountoperation.go +32 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnativesocketaddress.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnativevolumemonitor.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkaddress.go +21 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworking.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkmonitor.go +31 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkservice.go +19 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnotification.go +26 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/goutputstream.go +72 -86 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpermission.go +33 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableinputstream.go +22 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableoutputstream.go +27 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableutils.go +15 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpowerprofilemonitor.go +16 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpropertyaction.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxy.go +27 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyaddress.go +21 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyaddressenumerator.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyresolver.go +27 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gremoteactiongroup.go +15 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gresolver.go +67 -75 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gresource.go +23 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gseekable.go +27 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettings.go +67 -99 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettingsbackend.go +24 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettingsschema.go +43 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleaction.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleactiongroup.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleasyncresult.go +40 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleiostream.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimplepermission.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleproxyresolver.go +16 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocket.go +72 -87 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketaddress.go +19 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketaddressenumerator.go +20 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketclient.go +44 -54 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketconnectable.go +17 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketconnection.go +21 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketcontrolmessage.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketlistener.go +25 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketservice.go +16 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsrvtarget.go +11 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsubprocess.go +39 -40
| @@ -4,6 +4,7 @@ package gio | |||
| 4 | 4 | import ( | |
| 5 | 5 | "unsafe" | |
| 6 | 6 | ||
| 7 | + | "github.com/bnema/purego" | |
| 7 | 8 | "github.com/bnema/puregotk/pkg/core" | |
| 8 | 9 | "github.com/bnema/puregotk/v4/glib" | |
| 9 | 10 | "github.com/bnema/puregotk/v4/gobject" | |
| @@ -80,7 +81,6 @@ type Subprocess struct { | |||
| 80 | 81 | var xSubprocessGLibType func() types.GType | |
| 81 | 82 | ||
| 82 | 83 | func SubprocessGLibType() types.GType { | |
| 83 | - | core.LazyRegister(&xSubprocessGLibType, "GIO", "g_subprocess_get_type", false) | |
| 84 | 84 | return xSubprocessGLibType() | |
| 85 | 85 | } | |
| 86 | 86 | ||
| @@ -100,7 +100,6 @@ var xNewSubprocess func(SubprocessFlags, **glib.Error, string, ...interface{}) u | |||
| 100 | 100 | // | |
| 101 | 101 | // The argument list must be terminated with %NULL. | |
| 102 | 102 | func NewSubprocess(FlagsVar SubprocessFlags, ErrorVar **glib.Error, Argv0Var string, varArgs ...interface{}) *Subprocess { | |
| 103 | - | core.LazyRegister(&xNewSubprocess, "GIO", "g_subprocess_new", false) | |
| 104 | 103 | var cls *Subprocess | |
| 105 | 104 | ||
| 106 | 105 | cret := xNewSubprocess(FlagsVar, ErrorVar, Argv0Var, varArgs...) | |
| @@ -119,7 +118,6 @@ var xNewSubprocessv func([]string, SubprocessFlags, **glib.Error) uintptr | |||
| 119 | 118 | // | |
| 120 | 119 | // The argument list is expected to be %NULL-terminated. | |
| 121 | 120 | func NewSubprocessv(ArgvVar []string, FlagsVar SubprocessFlags) (*Subprocess, error) { | |
| 122 | - | core.LazyRegister(&xNewSubprocessv, "GIO", "g_subprocess_newv", false) | |
| 123 | 121 | var cls *Subprocess | |
| 124 | 122 | var cerr *glib.Error | |
| 125 | 123 | ||
| @@ -180,7 +178,6 @@ var xSubprocessCommunicate func(uintptr, *glib.Bytes, uintptr, **glib.Bytes, **g | |||
| 180 | 178 | // attempt to interact with the pipes while the operation is in progress | |
| 181 | 179 | // (either from another thread or if using the asynchronous version). | |
| 182 | 180 | func (x *Subprocess) Communicate(StdinBufVar *glib.Bytes, CancellableVar *Cancellable, StdoutBufVar **glib.Bytes, StderrBufVar **glib.Bytes) (bool, error) { | |
| 183 | - | core.LazyRegister(&xSubprocessCommunicate, "GIO", "g_subprocess_communicate", false) | |
| 184 | 181 | var cerr *glib.Error | |
| 185 | 182 | ||
| 186 | 183 | cret := xSubprocessCommunicate(x.GoPointer(), StdinBufVar, CancellableVar.GoPointer(), StdoutBufVar, StderrBufVar, &cerr) | |
| @@ -195,8 +192,6 @@ var xSubprocessCommunicateAsync func(uintptr, *glib.Bytes, uintptr, uintptr, uin | |||
| 195 | 192 | // Asynchronous version of g_subprocess_communicate(). Complete | |
| 196 | 193 | // invocation with g_subprocess_communicate_finish(). | |
| 197 | 194 | func (x *Subprocess) CommunicateAsync(StdinBufVar *glib.Bytes, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 198 | - | core.LazyRegister(&xSubprocessCommunicateAsync, "GIO", "g_subprocess_communicate_async", false) | |
| 199 | - | ||
| 200 | 195 | xSubprocessCommunicateAsync(x.GoPointer(), StdinBufVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 201 | 196 | } | |
| 202 | 197 | ||
| @@ -204,7 +199,6 @@ var xSubprocessCommunicateFinish func(uintptr, uintptr, **glib.Bytes, **glib.Byt | |||
| 204 | 199 | ||
| 205 | 200 | // Complete an invocation of g_subprocess_communicate_async(). | |
| 206 | 201 | func (x *Subprocess) CommunicateFinish(ResultVar AsyncResult, StdoutBufVar **glib.Bytes, StderrBufVar **glib.Bytes) (bool, error) { | |
| 207 | - | core.LazyRegister(&xSubprocessCommunicateFinish, "GIO", "g_subprocess_communicate_finish", false) | |
| 208 | 202 | var cerr *glib.Error | |
| 209 | 203 | ||
| 210 | 204 | cret := xSubprocessCommunicateFinish(x.GoPointer(), ResultVar.GoPointer(), StdoutBufVar, StderrBufVar, &cerr) | |
| @@ -222,7 +216,6 @@ var xSubprocessCommunicateUtf8 func(uintptr, uintptr, uintptr, *string, *string, | |||
| 222 | 216 | // On error, @stdout_buf and @stderr_buf will be set to undefined values and | |
| 223 | 217 | // should not be used. | |
| 224 | 218 | func (x *Subprocess) CommunicateUtf8(StdinBufVar *string, CancellableVar *Cancellable, StdoutBufVar *string, StderrBufVar *string) (bool, error) { | |
| 225 | - | core.LazyRegister(&xSubprocessCommunicateUtf8, "GIO", "g_subprocess_communicate_utf8", false) | |
| 226 | 219 | var cerr *glib.Error | |
| 227 | 220 | ||
| 228 | 221 | StdinBufVarPtr := core.GStrdupNullable(StdinBufVar) | |
| @@ -240,8 +233,6 @@ var xSubprocessCommunicateUtf8Async func(uintptr, uintptr, uintptr, uintptr, uin | |||
| 240 | 233 | // Asynchronous version of g_subprocess_communicate_utf8(). Complete | |
| 241 | 234 | // invocation with g_subprocess_communicate_utf8_finish(). | |
| 242 | 235 | func (x *Subprocess) CommunicateUtf8Async(StdinBufVar *string, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 243 | - | core.LazyRegister(&xSubprocessCommunicateUtf8Async, "GIO", "g_subprocess_communicate_utf8_async", false) | |
| 244 | - | ||
| 245 | 236 | StdinBufVarPtr := core.GStrdupNullable(StdinBufVar) | |
| 246 | 237 | defer core.GFreeNullable(StdinBufVarPtr) | |
| 247 | 238 | ||
| @@ -252,7 +243,6 @@ var xSubprocessCommunicateUtf8Finish func(uintptr, uintptr, *string, *string, ** | |||
| 252 | 243 | ||
| 253 | 244 | // Complete an invocation of g_subprocess_communicate_utf8_async(). | |
| 254 | 245 | func (x *Subprocess) CommunicateUtf8Finish(ResultVar AsyncResult, StdoutBufVar *string, StderrBufVar *string) (bool, error) { | |
| 255 | - | core.LazyRegister(&xSubprocessCommunicateUtf8Finish, "GIO", "g_subprocess_communicate_utf8_finish", false) | |
| 256 | 246 | var cerr *glib.Error | |
| 257 | 247 | ||
| 258 | 248 | cret := xSubprocessCommunicateUtf8Finish(x.GoPointer(), ResultVar.GoPointer(), StdoutBufVar, StderrBufVar, &cerr) | |
| @@ -272,8 +262,6 @@ var xSubprocessForceExit func(uintptr) | |||
| 272 | 262 | // | |
| 273 | 263 | // On Unix, this function sends %SIGKILL. | |
| 274 | 264 | func (x *Subprocess) ForceExit() { | |
| 275 | - | core.LazyRegister(&xSubprocessForceExit, "GIO", "g_subprocess_force_exit", false) | |
| 276 | - | ||
| 277 | 265 | xSubprocessForceExit(x.GoPointer()) | |
| 278 | 266 | } | |
| 279 | 267 | ||
| @@ -288,8 +276,6 @@ var xSubprocessGetExitStatus func(uintptr) int | |||
| 288 | 276 | // It is an error to call this function before g_subprocess_wait() and | |
| 289 | 277 | // unless g_subprocess_get_if_exited() returned %TRUE. | |
| 290 | 278 | func (x *Subprocess) GetExitStatus() int { | |
| 291 | - | core.LazyRegister(&xSubprocessGetExitStatus, "GIO", "g_subprocess_get_exit_status", false) | |
| 292 | - | ||
| 293 | 279 | cret := xSubprocessGetExitStatus(x.GoPointer()) | |
| 294 | 280 | return cret | |
| 295 | 281 | } | |
| @@ -300,8 +286,6 @@ var xSubprocessGetIdentifier func(uintptr) string | |||
| 300 | 286 | // On Windows, returns the result of GetProcessId() also as a string. | |
| 301 | 287 | // If the subprocess has terminated, this will return %NULL. | |
| 302 | 288 | func (x *Subprocess) GetIdentifier() string { | |
| 303 | - | core.LazyRegister(&xSubprocessGetIdentifier, "GIO", "g_subprocess_get_identifier", false) | |
| 304 | - | ||
| 305 | 289 | cret := xSubprocessGetIdentifier(x.GoPointer()) | |
| 306 | 290 | return cret | |
| 307 | 291 | } | |
| @@ -316,8 +300,6 @@ var xSubprocessGetIfExited func(uintptr) bool | |||
| 316 | 300 | // It is an error to call this function before g_subprocess_wait() has | |
| 317 | 301 | // returned. | |
| 318 | 302 | func (x *Subprocess) GetIfExited() bool { | |
| 319 | - | core.LazyRegister(&xSubprocessGetIfExited, "GIO", "g_subprocess_get_if_exited", false) | |
| 320 | - | ||
| 321 | 303 | cret := xSubprocessGetIfExited(x.GoPointer()) | |
| 322 | 304 | return cret | |
| 323 | 305 | } | |
| @@ -331,8 +313,6 @@ var xSubprocessGetIfSignaled func(uintptr) bool | |||
| 331 | 313 | // It is an error to call this function before g_subprocess_wait() has | |
| 332 | 314 | // returned. | |
| 333 | 315 | func (x *Subprocess) GetIfSignaled() bool { | |
| 334 | - | core.LazyRegister(&xSubprocessGetIfSignaled, "GIO", "g_subprocess_get_if_signaled", false) | |
| 335 | - | ||
| 336 | 316 | cret := xSubprocessGetIfSignaled(x.GoPointer()) | |
| 337 | 317 | return cret | |
| 338 | 318 | } | |
| @@ -351,8 +331,6 @@ var xSubprocessGetStatus func(uintptr) int | |||
| 351 | 331 | // It is an error to call this function before g_subprocess_wait() has | |
| 352 | 332 | // returned. | |
| 353 | 333 | func (x *Subprocess) GetStatus() int { | |
| 354 | - | core.LazyRegister(&xSubprocessGetStatus, "GIO", "g_subprocess_get_status", false) | |
| 355 | - | ||
| 356 | 334 | cret := xSubprocessGetStatus(x.GoPointer()) | |
| 357 | 335 | return cret | |
| 358 | 336 | } | |
| @@ -365,7 +343,6 @@ var xSubprocessGetStderrPipe func(uintptr) uintptr | |||
| 365 | 343 | // The process must have been created with %G_SUBPROCESS_FLAGS_STDERR_PIPE, | |
| 366 | 344 | // otherwise %NULL will be returned. | |
| 367 | 345 | func (x *Subprocess) GetStderrPipe() *InputStream { | |
| 368 | - | core.LazyRegister(&xSubprocessGetStderrPipe, "GIO", "g_subprocess_get_stderr_pipe", false) | |
| 369 | 346 | var cls *InputStream | |
| 370 | 347 | ||
| 371 | 348 | cret := xSubprocessGetStderrPipe(x.GoPointer()) | |
| @@ -387,7 +364,6 @@ var xSubprocessGetStdinPipe func(uintptr) uintptr | |||
| 387 | 364 | // The process must have been created with %G_SUBPROCESS_FLAGS_STDIN_PIPE and | |
| 388 | 365 | // not %G_SUBPROCESS_FLAGS_STDIN_INHERIT, otherwise %NULL will be returned. | |
| 389 | 366 | func (x *Subprocess) GetStdinPipe() *OutputStream { | |
| 390 | - | core.LazyRegister(&xSubprocessGetStdinPipe, "GIO", "g_subprocess_get_stdin_pipe", false) | |
| 391 | 367 | var cls *OutputStream | |
| 392 | 368 | ||
| 393 | 369 | cret := xSubprocessGetStdinPipe(x.GoPointer()) | |
| @@ -409,7 +385,6 @@ var xSubprocessGetStdoutPipe func(uintptr) uintptr | |||
| 409 | 385 | // The process must have been created with %G_SUBPROCESS_FLAGS_STDOUT_PIPE, | |
| 410 | 386 | // otherwise %NULL will be returned. | |
| 411 | 387 | func (x *Subprocess) GetStdoutPipe() *InputStream { | |
| 412 | - | core.LazyRegister(&xSubprocessGetStdoutPipe, "GIO", "g_subprocess_get_stdout_pipe", false) | |
| 413 | 388 | var cls *InputStream | |
| 414 | 389 | ||
| 415 | 390 | cret := xSubprocessGetStdoutPipe(x.GoPointer()) | |
| @@ -432,8 +407,6 @@ var xSubprocessGetSuccessful func(uintptr) bool | |||
| 432 | 407 | // It is an error to call this function before g_subprocess_wait() has | |
| 433 | 408 | // returned. | |
| 434 | 409 | func (x *Subprocess) GetSuccessful() bool { | |
| 435 | - | core.LazyRegister(&xSubprocessGetSuccessful, "GIO", "g_subprocess_get_successful", false) | |
| 436 | - | ||
| 437 | 410 | cret := xSubprocessGetSuccessful(x.GoPointer()) | |
| 438 | 411 | return cret | |
| 439 | 412 | } | |
| @@ -448,8 +421,6 @@ var xSubprocessGetTermSig func(uintptr) int | |||
| 448 | 421 | // It is an error to call this function before g_subprocess_wait() and | |
| 449 | 422 | // unless g_subprocess_get_if_signaled() returned %TRUE. | |
| 450 | 423 | func (x *Subprocess) GetTermSig() int { | |
| 451 | - | core.LazyRegister(&xSubprocessGetTermSig, "GIO", "g_subprocess_get_term_sig", false) | |
| 452 | - | ||
| 453 | 424 | cret := xSubprocessGetTermSig(x.GoPointer()) | |
| 454 | 425 | return cret | |
| 455 | 426 | } | |
| @@ -464,8 +435,6 @@ var xSubprocessSendSignal func(uintptr, int) | |||
| 464 | 435 | // | |
| 465 | 436 | // This API is not available on Windows. | |
| 466 | 437 | func (x *Subprocess) SendSignal(SignalNumVar int) { | |
| 467 | - | core.LazyRegister(&xSubprocessSendSignal, "GIO", "g_subprocess_send_signal", false) | |
| 468 | - | ||
| 469 | 438 | xSubprocessSendSignal(x.GoPointer(), SignalNumVar) | |
| 470 | 439 | } | |
| 471 | 440 | ||
| @@ -483,7 +452,6 @@ var xSubprocessWait func(uintptr, uintptr, **glib.Error) bool | |||
| 483 | 452 | // Cancelling @cancellable doesn't kill the subprocess. Call | |
| 484 | 453 | // g_subprocess_force_exit() if it is desirable. | |
| 485 | 454 | func (x *Subprocess) Wait(CancellableVar *Cancellable) (bool, error) { | |
| 486 | - | core.LazyRegister(&xSubprocessWait, "GIO", "g_subprocess_wait", false) | |
| 487 | 455 | var cerr *glib.Error | |
| 488 | 456 | ||
| 489 | 457 | cret := xSubprocessWait(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| @@ -499,8 +467,6 @@ var xSubprocessWaitAsync func(uintptr, uintptr, uintptr, uintptr) | |||
| 499 | 467 | // | |
| 500 | 468 | // This is the asynchronous version of g_subprocess_wait(). | |
| 501 | 469 | func (x *Subprocess) WaitAsync(CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 502 | - | core.LazyRegister(&xSubprocessWaitAsync, "GIO", "g_subprocess_wait_async", false) | |
| 503 | - | ||
| 504 | 470 | xSubprocessWaitAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 505 | 471 | } | |
| 506 | 472 | ||
| @@ -508,7 +474,6 @@ var xSubprocessWaitCheck func(uintptr, uintptr, **glib.Error) bool | |||
| 508 | 474 | ||
| 509 | 475 | // Combines g_subprocess_wait() with g_spawn_check_wait_status(). | |
| 510 | 476 | func (x *Subprocess) WaitCheck(CancellableVar *Cancellable) (bool, error) { | |
| 511 | - | core.LazyRegister(&xSubprocessWaitCheck, "GIO", "g_subprocess_wait_check", false) | |
| 512 | 477 | var cerr *glib.Error | |
| 513 | 478 | ||
| 514 | 479 | cret := xSubprocessWaitCheck(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| @@ -524,8 +489,6 @@ var xSubprocessWaitCheckAsync func(uintptr, uintptr, uintptr, uintptr) | |||
| 524 | 489 | // | |
| 525 | 490 | // This is the asynchronous version of g_subprocess_wait_check(). | |
| 526 | 491 | func (x *Subprocess) WaitCheckAsync(CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 527 | - | core.LazyRegister(&xSubprocessWaitCheckAsync, "GIO", "g_subprocess_wait_check_async", false) | |
| 528 | - | ||
| 529 | 492 | xSubprocessWaitCheckAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 530 | 493 | } | |
| 531 | 494 | ||
| @@ -534,7 +497,6 @@ var xSubprocessWaitCheckFinish func(uintptr, uintptr, **glib.Error) bool | |||
| 534 | 497 | // Collects the result of a previous call to | |
| 535 | 498 | // g_subprocess_wait_check_async(). | |
| 536 | 499 | func (x *Subprocess) WaitCheckFinish(ResultVar AsyncResult) (bool, error) { | |
| 537 | - | core.LazyRegister(&xSubprocessWaitCheckFinish, "GIO", "g_subprocess_wait_check_finish", false) | |
| 538 | 500 | var cerr *glib.Error | |
| 539 | 501 | ||
| 540 | 502 | cret := xSubprocessWaitCheckFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| @@ -549,7 +511,6 @@ var xSubprocessWaitFinish func(uintptr, uintptr, **glib.Error) bool | |||
| 549 | 511 | // Collects the result of a previous call to | |
| 550 | 512 | // g_subprocess_wait_async(). | |
| 551 | 513 | func (x *Subprocess) WaitFinish(ResultVar AsyncResult) (bool, error) { | |
| 552 | - | core.LazyRegister(&xSubprocessWaitFinish, "GIO", "g_subprocess_wait_finish", false) | |
| 553 | 514 | var cerr *glib.Error | |
| 554 | 515 | ||
| 555 | 516 | cret := xSubprocessWaitFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| @@ -630,4 +591,42 @@ func (x *Subprocess) Init(CancellableVar *Cancellable) (bool, error) { | |||
| 630 | 591 | func init() { | |
| 631 | 592 | core.SetPackageName("GIO", "gio-2.0") | |
| 632 | 593 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | |
| 594 | + | var libs []uintptr | |
| 595 | + | for _, libPath := range core.GetPaths("GIO") { | |
| 596 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 597 | + | if err != nil { | |
| 598 | + | panic(err) | |
| 599 | + | } | |
| 600 | + | libs = append(libs, lib) | |
| 601 | + | } | |
| 602 | + | ||
| 603 | + | core.PuregoSafeRegister(&xSubprocessGLibType, libs, "g_subprocess_get_type") | |
| 604 | + | ||
| 605 | + | core.PuregoSafeRegister(&xNewSubprocess, libs, "g_subprocess_new") | |
| 606 | + | core.PuregoSafeRegister(&xNewSubprocessv, libs, "g_subprocess_newv") | |
| 607 | + | ||
| 608 | + | core.PuregoSafeRegister(&xSubprocessCommunicate, libs, "g_subprocess_communicate") | |
| 609 | + | core.PuregoSafeRegister(&xSubprocessCommunicateAsync, libs, "g_subprocess_communicate_async") | |
| 610 | + | core.PuregoSafeRegister(&xSubprocessCommunicateFinish, libs, "g_subprocess_communicate_finish") | |
| 611 | + | core.PuregoSafeRegister(&xSubprocessCommunicateUtf8, libs, "g_subprocess_communicate_utf8") | |
| 612 | + | core.PuregoSafeRegister(&xSubprocessCommunicateUtf8Async, libs, "g_subprocess_communicate_utf8_async") | |
| 613 | + | core.PuregoSafeRegister(&xSubprocessCommunicateUtf8Finish, libs, "g_subprocess_communicate_utf8_finish") | |
| 614 | + | core.PuregoSafeRegister(&xSubprocessForceExit, libs, "g_subprocess_force_exit") | |
| 615 | + | core.PuregoSafeRegister(&xSubprocessGetExitStatus, libs, "g_subprocess_get_exit_status") | |
| 616 | + | core.PuregoSafeRegister(&xSubprocessGetIdentifier, libs, "g_subprocess_get_identifier") | |
| 617 | + | core.PuregoSafeRegister(&xSubprocessGetIfExited, libs, "g_subprocess_get_if_exited") | |
| 618 | + | core.PuregoSafeRegister(&xSubprocessGetIfSignaled, libs, "g_subprocess_get_if_signaled") | |
| 619 | + | core.PuregoSafeRegister(&xSubprocessGetStatus, libs, "g_subprocess_get_status") | |
| 620 | + | core.PuregoSafeRegister(&xSubprocessGetStderrPipe, libs, "g_subprocess_get_stderr_pipe") | |
| 621 | + | core.PuregoSafeRegister(&xSubprocessGetStdinPipe, libs, "g_subprocess_get_stdin_pipe") | |
| 622 | + | core.PuregoSafeRegister(&xSubprocessGetStdoutPipe, libs, "g_subprocess_get_stdout_pipe") | |
| 623 | + | core.PuregoSafeRegister(&xSubprocessGetSuccessful, libs, "g_subprocess_get_successful") | |
| 624 | + | core.PuregoSafeRegister(&xSubprocessGetTermSig, libs, "g_subprocess_get_term_sig") | |
| 625 | + | core.PuregoSafeRegister(&xSubprocessSendSignal, libs, "g_subprocess_send_signal") | |
| 626 | + | core.PuregoSafeRegister(&xSubprocessWait, libs, "g_subprocess_wait") | |
| 627 | + | core.PuregoSafeRegister(&xSubprocessWaitAsync, libs, "g_subprocess_wait_async") | |
| 628 | + | core.PuregoSafeRegister(&xSubprocessWaitCheck, libs, "g_subprocess_wait_check") | |
| 629 | + | core.PuregoSafeRegister(&xSubprocessWaitCheckAsync, libs, "g_subprocess_wait_check_async") | |
| 630 | + | core.PuregoSafeRegister(&xSubprocessWaitCheckFinish, libs, "g_subprocess_wait_check_finish") | |
| 631 | + | core.PuregoSafeRegister(&xSubprocessWaitFinish, libs, "g_subprocess_wait_finish") | |
| 633 | 632 | } | |
| @@ -4,6 +4,7 @@ package gio | |||||
| 4 | import ( | 4 | import ( | ||
| 5 | "unsafe" | 5 | "unsafe" | ||
| 6 | 6 | ||||
| 7 | + | "github.com/bnema/purego" | |||
| 7 | "github.com/bnema/puregotk/pkg/core" | 8 | "github.com/bnema/puregotk/pkg/core" | ||
| 8 | "github.com/bnema/puregotk/v4/glib" | 9 | "github.com/bnema/puregotk/v4/glib" | ||
| 9 | "github.com/bnema/puregotk/v4/gobject" | 10 | "github.com/bnema/puregotk/v4/gobject" | ||
| @@ -80,7 +81,6 @@ type Subprocess struct { | |||||
| 80 | var xSubprocessGLibType func() types.GType | 81 | var xSubprocessGLibType func() types.GType | ||
| 81 | 82 | ||||
| 82 | func SubprocessGLibType() types.GType { | 83 | func SubprocessGLibType() types.GType { | ||
| 83 | - | core.LazyRegister(&xSubprocessGLibType, "GIO", "g_subprocess_get_type", false) | |||
| 84 | return xSubprocessGLibType() | 84 | return xSubprocessGLibType() | ||
| 85 | } | 85 | } | ||
| 86 | 86 | ||||
| @@ -100,7 +100,6 @@ var xNewSubprocess func(SubprocessFlags, **glib.Error, string, ...interface{}) u | |||||
| 100 | // | 100 | // | ||
| 101 | // The argument list must be terminated with %NULL. | 101 | // The argument list must be terminated with %NULL. | ||
| 102 | func NewSubprocess(FlagsVar SubprocessFlags, ErrorVar **glib.Error, Argv0Var string, varArgs ...interface{}) *Subprocess { | 102 | func NewSubprocess(FlagsVar SubprocessFlags, ErrorVar **glib.Error, Argv0Var string, varArgs ...interface{}) *Subprocess { | ||
| 103 | - | core.LazyRegister(&xNewSubprocess, "GIO", "g_subprocess_new", false) | |||
| 104 | var cls *Subprocess | 103 | var cls *Subprocess | ||
| 105 | 104 | ||||
| 106 | cret := xNewSubprocess(FlagsVar, ErrorVar, Argv0Var, varArgs...) | 105 | cret := xNewSubprocess(FlagsVar, ErrorVar, Argv0Var, varArgs...) | ||
| @@ -119,7 +118,6 @@ var xNewSubprocessv func([]string, SubprocessFlags, **glib.Error) uintptr | |||||
| 119 | // | 118 | // | ||
| 120 | // The argument list is expected to be %NULL-terminated. | 119 | // The argument list is expected to be %NULL-terminated. | ||
| 121 | func NewSubprocessv(ArgvVar []string, FlagsVar SubprocessFlags) (*Subprocess, error) { | 120 | func NewSubprocessv(ArgvVar []string, FlagsVar SubprocessFlags) (*Subprocess, error) { | ||
| 122 | - | core.LazyRegister(&xNewSubprocessv, "GIO", "g_subprocess_newv", false) | |||
| 123 | var cls *Subprocess | 121 | var cls *Subprocess | ||
| 124 | var cerr *glib.Error | 122 | var cerr *glib.Error | ||
| 125 | 123 | ||||
| @@ -180,7 +178,6 @@ var xSubprocessCommunicate func(uintptr, *glib.Bytes, uintptr, **glib.Bytes, **g | |||||
| 180 | // attempt to interact with the pipes while the operation is in progress | 178 | // attempt to interact with the pipes while the operation is in progress | ||
| 181 | // (either from another thread or if using the asynchronous version). | 179 | // (either from another thread or if using the asynchronous version). | ||
| 182 | func (x *Subprocess) Communicate(StdinBufVar *glib.Bytes, CancellableVar *Cancellable, StdoutBufVar **glib.Bytes, StderrBufVar **glib.Bytes) (bool, error) { | 180 | func (x *Subprocess) Communicate(StdinBufVar *glib.Bytes, CancellableVar *Cancellable, StdoutBufVar **glib.Bytes, StderrBufVar **glib.Bytes) (bool, error) { | ||
| 183 | - | core.LazyRegister(&xSubprocessCommunicate, "GIO", "g_subprocess_communicate", false) | |||
| 184 | var cerr *glib.Error | 181 | var cerr *glib.Error | ||
| 185 | 182 | ||||
| 186 | cret := xSubprocessCommunicate(x.GoPointer(), StdinBufVar, CancellableVar.GoPointer(), StdoutBufVar, StderrBufVar, &cerr) | 183 | cret := xSubprocessCommunicate(x.GoPointer(), StdinBufVar, CancellableVar.GoPointer(), StdoutBufVar, StderrBufVar, &cerr) | ||
| @@ -195,8 +192,6 @@ var xSubprocessCommunicateAsync func(uintptr, *glib.Bytes, uintptr, uintptr, uin | |||||
| 195 | // Asynchronous version of g_subprocess_communicate(). Complete | 192 | // Asynchronous version of g_subprocess_communicate(). Complete | ||
| 196 | // invocation with g_subprocess_communicate_finish(). | 193 | // invocation with g_subprocess_communicate_finish(). | ||
| 197 | func (x *Subprocess) CommunicateAsync(StdinBufVar *glib.Bytes, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 194 | func (x *Subprocess) CommunicateAsync(StdinBufVar *glib.Bytes, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 198 | - | core.LazyRegister(&xSubprocessCommunicateAsync, "GIO", "g_subprocess_communicate_async", false) | |||
| 199 | - | ||||
| 200 | xSubprocessCommunicateAsync(x.GoPointer(), StdinBufVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | 195 | xSubprocessCommunicateAsync(x.GoPointer(), StdinBufVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | ||
| 201 | } | 196 | } | ||
| 202 | 197 | ||||
| @@ -204,7 +199,6 @@ var xSubprocessCommunicateFinish func(uintptr, uintptr, **glib.Bytes, **glib.Byt | |||||
| 204 | 199 | ||||
| 205 | // Complete an invocation of g_subprocess_communicate_async(). | 200 | // Complete an invocation of g_subprocess_communicate_async(). | ||
| 206 | func (x *Subprocess) CommunicateFinish(ResultVar AsyncResult, StdoutBufVar **glib.Bytes, StderrBufVar **glib.Bytes) (bool, error) { | 201 | func (x *Subprocess) CommunicateFinish(ResultVar AsyncResult, StdoutBufVar **glib.Bytes, StderrBufVar **glib.Bytes) (bool, error) { | ||
| 207 | - | core.LazyRegister(&xSubprocessCommunicateFinish, "GIO", "g_subprocess_communicate_finish", false) | |||
| 208 | var cerr *glib.Error | 202 | var cerr *glib.Error | ||
| 209 | 203 | ||||
| 210 | cret := xSubprocessCommunicateFinish(x.GoPointer(), ResultVar.GoPointer(), StdoutBufVar, StderrBufVar, &cerr) | 204 | cret := xSubprocessCommunicateFinish(x.GoPointer(), ResultVar.GoPointer(), StdoutBufVar, StderrBufVar, &cerr) | ||
| @@ -222,7 +216,6 @@ var xSubprocessCommunicateUtf8 func(uintptr, uintptr, uintptr, *string, *string, | |||||
| 222 | // On error, @stdout_buf and @stderr_buf will be set to undefined values and | 216 | // On error, @stdout_buf and @stderr_buf will be set to undefined values and | ||
| 223 | // should not be used. | 217 | // should not be used. | ||
| 224 | func (x *Subprocess) CommunicateUtf8(StdinBufVar *string, CancellableVar *Cancellable, StdoutBufVar *string, StderrBufVar *string) (bool, error) { | 218 | func (x *Subprocess) CommunicateUtf8(StdinBufVar *string, CancellableVar *Cancellable, StdoutBufVar *string, StderrBufVar *string) (bool, error) { | ||
| 225 | - | core.LazyRegister(&xSubprocessCommunicateUtf8, "GIO", "g_subprocess_communicate_utf8", false) | |||
| 226 | var cerr *glib.Error | 219 | var cerr *glib.Error | ||
| 227 | 220 | ||||
| 228 | StdinBufVarPtr := core.GStrdupNullable(StdinBufVar) | 221 | StdinBufVarPtr := core.GStrdupNullable(StdinBufVar) | ||
| @@ -240,8 +233,6 @@ var xSubprocessCommunicateUtf8Async func(uintptr, uintptr, uintptr, uintptr, uin | |||||
| 240 | // Asynchronous version of g_subprocess_communicate_utf8(). Complete | 233 | // Asynchronous version of g_subprocess_communicate_utf8(). Complete | ||
| 241 | // invocation with g_subprocess_communicate_utf8_finish(). | 234 | // invocation with g_subprocess_communicate_utf8_finish(). | ||
| 242 | func (x *Subprocess) CommunicateUtf8Async(StdinBufVar *string, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 235 | func (x *Subprocess) CommunicateUtf8Async(StdinBufVar *string, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 243 | - | core.LazyRegister(&xSubprocessCommunicateUtf8Async, "GIO", "g_subprocess_communicate_utf8_async", false) | |||
| 244 | - | ||||
| 245 | StdinBufVarPtr := core.GStrdupNullable(StdinBufVar) | 236 | StdinBufVarPtr := core.GStrdupNullable(StdinBufVar) | ||
| 246 | defer core.GFreeNullable(StdinBufVarPtr) | 237 | defer core.GFreeNullable(StdinBufVarPtr) | ||
| 247 | 238 | ||||
| @@ -252,7 +243,6 @@ var xSubprocessCommunicateUtf8Finish func(uintptr, uintptr, *string, *string, ** | |||||
| 252 | 243 | ||||
| 253 | // Complete an invocation of g_subprocess_communicate_utf8_async(). | 244 | // Complete an invocation of g_subprocess_communicate_utf8_async(). | ||
| 254 | func (x *Subprocess) CommunicateUtf8Finish(ResultVar AsyncResult, StdoutBufVar *string, StderrBufVar *string) (bool, error) { | 245 | func (x *Subprocess) CommunicateUtf8Finish(ResultVar AsyncResult, StdoutBufVar *string, StderrBufVar *string) (bool, error) { | ||
| 255 | - | core.LazyRegister(&xSubprocessCommunicateUtf8Finish, "GIO", "g_subprocess_communicate_utf8_finish", false) | |||
| 256 | var cerr *glib.Error | 246 | var cerr *glib.Error | ||
| 257 | 247 | ||||
| 258 | cret := xSubprocessCommunicateUtf8Finish(x.GoPointer(), ResultVar.GoPointer(), StdoutBufVar, StderrBufVar, &cerr) | 248 | cret := xSubprocessCommunicateUtf8Finish(x.GoPointer(), ResultVar.GoPointer(), StdoutBufVar, StderrBufVar, &cerr) | ||
| @@ -272,8 +262,6 @@ var xSubprocessForceExit func(uintptr) | |||||
| 272 | // | 262 | // | ||
| 273 | // On Unix, this function sends %SIGKILL. | 263 | // On Unix, this function sends %SIGKILL. | ||
| 274 | func (x *Subprocess) ForceExit() { | 264 | func (x *Subprocess) ForceExit() { | ||
| 275 | - | core.LazyRegister(&xSubprocessForceExit, "GIO", "g_subprocess_force_exit", false) | |||
| 276 | - | ||||
| 277 | xSubprocessForceExit(x.GoPointer()) | 265 | xSubprocessForceExit(x.GoPointer()) | ||
| 278 | } | 266 | } | ||
| 279 | 267 | ||||
| @@ -288,8 +276,6 @@ var xSubprocessGetExitStatus func(uintptr) int | |||||
| 288 | // It is an error to call this function before g_subprocess_wait() and | 276 | // It is an error to call this function before g_subprocess_wait() and | ||
| 289 | // unless g_subprocess_get_if_exited() returned %TRUE. | 277 | // unless g_subprocess_get_if_exited() returned %TRUE. | ||
| 290 | func (x *Subprocess) GetExitStatus() int { | 278 | func (x *Subprocess) GetExitStatus() int { | ||
| 291 | - | core.LazyRegister(&xSubprocessGetExitStatus, "GIO", "g_subprocess_get_exit_status", false) | |||
| 292 | - | ||||
| 293 | cret := xSubprocessGetExitStatus(x.GoPointer()) | 279 | cret := xSubprocessGetExitStatus(x.GoPointer()) | ||
| 294 | return cret | 280 | return cret | ||
| 295 | } | 281 | } | ||
| @@ -300,8 +286,6 @@ var xSubprocessGetIdentifier func(uintptr) string | |||||
| 300 | // On Windows, returns the result of GetProcessId() also as a string. | 286 | // On Windows, returns the result of GetProcessId() also as a string. | ||
| 301 | // If the subprocess has terminated, this will return %NULL. | 287 | // If the subprocess has terminated, this will return %NULL. | ||
| 302 | func (x *Subprocess) GetIdentifier() string { | 288 | func (x *Subprocess) GetIdentifier() string { | ||
| 303 | - | core.LazyRegister(&xSubprocessGetIdentifier, "GIO", "g_subprocess_get_identifier", false) | |||
| 304 | - | ||||
| 305 | cret := xSubprocessGetIdentifier(x.GoPointer()) | 289 | cret := xSubprocessGetIdentifier(x.GoPointer()) | ||
| 306 | return cret | 290 | return cret | ||
| 307 | } | 291 | } | ||
| @@ -316,8 +300,6 @@ var xSubprocessGetIfExited func(uintptr) bool | |||||
| 316 | // It is an error to call this function before g_subprocess_wait() has | 300 | // It is an error to call this function before g_subprocess_wait() has | ||
| 317 | // returned. | 301 | // returned. | ||
| 318 | func (x *Subprocess) GetIfExited() bool { | 302 | func (x *Subprocess) GetIfExited() bool { | ||
| 319 | - | core.LazyRegister(&xSubprocessGetIfExited, "GIO", "g_subprocess_get_if_exited", false) | |||
| 320 | - | ||||
| 321 | cret := xSubprocessGetIfExited(x.GoPointer()) | 303 | cret := xSubprocessGetIfExited(x.GoPointer()) | ||
| 322 | return cret | 304 | return cret | ||
| 323 | } | 305 | } | ||
| @@ -331,8 +313,6 @@ var xSubprocessGetIfSignaled func(uintptr) bool | |||||
| 331 | // It is an error to call this function before g_subprocess_wait() has | 313 | // It is an error to call this function before g_subprocess_wait() has | ||
| 332 | // returned. | 314 | // returned. | ||
| 333 | func (x *Subprocess) GetIfSignaled() bool { | 315 | func (x *Subprocess) GetIfSignaled() bool { | ||
| 334 | - | core.LazyRegister(&xSubprocessGetIfSignaled, "GIO", "g_subprocess_get_if_signaled", false) | |||
| 335 | - | ||||
| 336 | cret := xSubprocessGetIfSignaled(x.GoPointer()) | 316 | cret := xSubprocessGetIfSignaled(x.GoPointer()) | ||
| 337 | return cret | 317 | return cret | ||
| 338 | } | 318 | } | ||
| @@ -351,8 +331,6 @@ var xSubprocessGetStatus func(uintptr) int | |||||
| 351 | // It is an error to call this function before g_subprocess_wait() has | 331 | // It is an error to call this function before g_subprocess_wait() has | ||
| 352 | // returned. | 332 | // returned. | ||
| 353 | func (x *Subprocess) GetStatus() int { | 333 | func (x *Subprocess) GetStatus() int { | ||
| 354 | - | core.LazyRegister(&xSubprocessGetStatus, "GIO", "g_subprocess_get_status", false) | |||
| 355 | - | ||||
| 356 | cret := xSubprocessGetStatus(x.GoPointer()) | 334 | cret := xSubprocessGetStatus(x.GoPointer()) | ||
| 357 | return cret | 335 | return cret | ||
| 358 | } | 336 | } | ||
| @@ -365,7 +343,6 @@ var xSubprocessGetStderrPipe func(uintptr) uintptr | |||||
| 365 | // The process must have been created with %G_SUBPROCESS_FLAGS_STDERR_PIPE, | 343 | // The process must have been created with %G_SUBPROCESS_FLAGS_STDERR_PIPE, | ||
| 366 | // otherwise %NULL will be returned. | 344 | // otherwise %NULL will be returned. | ||
| 367 | func (x *Subprocess) GetStderrPipe() *InputStream { | 345 | func (x *Subprocess) GetStderrPipe() *InputStream { | ||
| 368 | - | core.LazyRegister(&xSubprocessGetStderrPipe, "GIO", "g_subprocess_get_stderr_pipe", false) | |||
| 369 | var cls *InputStream | 346 | var cls *InputStream | ||
| 370 | 347 | ||||
| 371 | cret := xSubprocessGetStderrPipe(x.GoPointer()) | 348 | cret := xSubprocessGetStderrPipe(x.GoPointer()) | ||
| @@ -387,7 +364,6 @@ var xSubprocessGetStdinPipe func(uintptr) uintptr | |||||
| 387 | // The process must have been created with %G_SUBPROCESS_FLAGS_STDIN_PIPE and | 364 | // The process must have been created with %G_SUBPROCESS_FLAGS_STDIN_PIPE and | ||
| 388 | // not %G_SUBPROCESS_FLAGS_STDIN_INHERIT, otherwise %NULL will be returned. | 365 | // not %G_SUBPROCESS_FLAGS_STDIN_INHERIT, otherwise %NULL will be returned. | ||
| 389 | func (x *Subprocess) GetStdinPipe() *OutputStream { | 366 | func (x *Subprocess) GetStdinPipe() *OutputStream { | ||
| 390 | - | core.LazyRegister(&xSubprocessGetStdinPipe, "GIO", "g_subprocess_get_stdin_pipe", false) | |||
| 391 | var cls *OutputStream | 367 | var cls *OutputStream | ||
| 392 | 368 | ||||
| 393 | cret := xSubprocessGetStdinPipe(x.GoPointer()) | 369 | cret := xSubprocessGetStdinPipe(x.GoPointer()) | ||
| @@ -409,7 +385,6 @@ var xSubprocessGetStdoutPipe func(uintptr) uintptr | |||||
| 409 | // The process must have been created with %G_SUBPROCESS_FLAGS_STDOUT_PIPE, | 385 | // The process must have been created with %G_SUBPROCESS_FLAGS_STDOUT_PIPE, | ||
| 410 | // otherwise %NULL will be returned. | 386 | // otherwise %NULL will be returned. | ||
| 411 | func (x *Subprocess) GetStdoutPipe() *InputStream { | 387 | func (x *Subprocess) GetStdoutPipe() *InputStream { | ||
| 412 | - | core.LazyRegister(&xSubprocessGetStdoutPipe, "GIO", "g_subprocess_get_stdout_pipe", false) | |||
| 413 | var cls *InputStream | 388 | var cls *InputStream | ||
| 414 | 389 | ||||
| 415 | cret := xSubprocessGetStdoutPipe(x.GoPointer()) | 390 | cret := xSubprocessGetStdoutPipe(x.GoPointer()) | ||
| @@ -432,8 +407,6 @@ var xSubprocessGetSuccessful func(uintptr) bool | |||||
| 432 | // It is an error to call this function before g_subprocess_wait() has | 407 | // It is an error to call this function before g_subprocess_wait() has | ||
| 433 | // returned. | 408 | // returned. | ||
| 434 | func (x *Subprocess) GetSuccessful() bool { | 409 | func (x *Subprocess) GetSuccessful() bool { | ||
| 435 | - | core.LazyRegister(&xSubprocessGetSuccessful, "GIO", "g_subprocess_get_successful", false) | |||
| 436 | - | ||||
| 437 | cret := xSubprocessGetSuccessful(x.GoPointer()) | 410 | cret := xSubprocessGetSuccessful(x.GoPointer()) | ||
| 438 | return cret | 411 | return cret | ||
| 439 | } | 412 | } | ||
| @@ -448,8 +421,6 @@ var xSubprocessGetTermSig func(uintptr) int | |||||
| 448 | // It is an error to call this function before g_subprocess_wait() and | 421 | // It is an error to call this function before g_subprocess_wait() and | ||
| 449 | // unless g_subprocess_get_if_signaled() returned %TRUE. | 422 | // unless g_subprocess_get_if_signaled() returned %TRUE. | ||
| 450 | func (x *Subprocess) GetTermSig() int { | 423 | func (x *Subprocess) GetTermSig() int { | ||
| 451 | - | core.LazyRegister(&xSubprocessGetTermSig, "GIO", "g_subprocess_get_term_sig", false) | |||
| 452 | - | ||||
| 453 | cret := xSubprocessGetTermSig(x.GoPointer()) | 424 | cret := xSubprocessGetTermSig(x.GoPointer()) | ||
| 454 | return cret | 425 | return cret | ||
| 455 | } | 426 | } | ||
| @@ -464,8 +435,6 @@ var xSubprocessSendSignal func(uintptr, int) | |||||
| 464 | // | 435 | // | ||
| 465 | // This API is not available on Windows. | 436 | // This API is not available on Windows. | ||
| 466 | func (x *Subprocess) SendSignal(SignalNumVar int) { | 437 | func (x *Subprocess) SendSignal(SignalNumVar int) { | ||
| 467 | - | core.LazyRegister(&xSubprocessSendSignal, "GIO", "g_subprocess_send_signal", false) | |||
| 468 | - | ||||
| 469 | xSubprocessSendSignal(x.GoPointer(), SignalNumVar) | 438 | xSubprocessSendSignal(x.GoPointer(), SignalNumVar) | ||
| 470 | } | 439 | } | ||
| 471 | 440 | ||||
| @@ -483,7 +452,6 @@ var xSubprocessWait func(uintptr, uintptr, **glib.Error) bool | |||||
| 483 | // Cancelling @cancellable doesn't kill the subprocess. Call | 452 | // Cancelling @cancellable doesn't kill the subprocess. Call | ||
| 484 | // g_subprocess_force_exit() if it is desirable. | 453 | // g_subprocess_force_exit() if it is desirable. | ||
| 485 | func (x *Subprocess) Wait(CancellableVar *Cancellable) (bool, error) { | 454 | func (x *Subprocess) Wait(CancellableVar *Cancellable) (bool, error) { | ||
| 486 | - | core.LazyRegister(&xSubprocessWait, "GIO", "g_subprocess_wait", false) | |||
| 487 | var cerr *glib.Error | 455 | var cerr *glib.Error | ||
| 488 | 456 | ||||
| 489 | cret := xSubprocessWait(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | 457 | cret := xSubprocessWait(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | ||
| @@ -499,8 +467,6 @@ var xSubprocessWaitAsync func(uintptr, uintptr, uintptr, uintptr) | |||||
| 499 | // | 467 | // | ||
| 500 | // This is the asynchronous version of g_subprocess_wait(). | 468 | // This is the asynchronous version of g_subprocess_wait(). | ||
| 501 | func (x *Subprocess) WaitAsync(CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 469 | func (x *Subprocess) WaitAsync(CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 502 | - | core.LazyRegister(&xSubprocessWaitAsync, "GIO", "g_subprocess_wait_async", false) | |||
| 503 | - | ||||
| 504 | xSubprocessWaitAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | 470 | xSubprocessWaitAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | ||
| 505 | } | 471 | } | ||
| 506 | 472 | ||||
| @@ -508,7 +474,6 @@ var xSubprocessWaitCheck func(uintptr, uintptr, **glib.Error) bool | |||||
| 508 | 474 | ||||
| 509 | // Combines g_subprocess_wait() with g_spawn_check_wait_status(). | 475 | // Combines g_subprocess_wait() with g_spawn_check_wait_status(). | ||
| 510 | func (x *Subprocess) WaitCheck(CancellableVar *Cancellable) (bool, error) { | 476 | func (x *Subprocess) WaitCheck(CancellableVar *Cancellable) (bool, error) { | ||
| 511 | - | core.LazyRegister(&xSubprocessWaitCheck, "GIO", "g_subprocess_wait_check", false) | |||
| 512 | var cerr *glib.Error | 477 | var cerr *glib.Error | ||
| 513 | 478 | ||||
| 514 | cret := xSubprocessWaitCheck(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | 479 | cret := xSubprocessWaitCheck(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | ||
| @@ -524,8 +489,6 @@ var xSubprocessWaitCheckAsync func(uintptr, uintptr, uintptr, uintptr) | |||||
| 524 | // | 489 | // | ||
| 525 | // This is the asynchronous version of g_subprocess_wait_check(). | 490 | // This is the asynchronous version of g_subprocess_wait_check(). | ||
| 526 | func (x *Subprocess) WaitCheckAsync(CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 491 | func (x *Subprocess) WaitCheckAsync(CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 527 | - | core.LazyRegister(&xSubprocessWaitCheckAsync, "GIO", "g_subprocess_wait_check_async", false) | |||
| 528 | - | ||||
| 529 | xSubprocessWaitCheckAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | 492 | xSubprocessWaitCheckAsync(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | ||
| 530 | } | 493 | } | ||
| 531 | 494 | ||||
| @@ -534,7 +497,6 @@ var xSubprocessWaitCheckFinish func(uintptr, uintptr, **glib.Error) bool | |||||
| 534 | // Collects the result of a previous call to | 497 | // Collects the result of a previous call to | ||
| 535 | // g_subprocess_wait_check_async(). | 498 | // g_subprocess_wait_check_async(). | ||
| 536 | func (x *Subprocess) WaitCheckFinish(ResultVar AsyncResult) (bool, error) { | 499 | func (x *Subprocess) WaitCheckFinish(ResultVar AsyncResult) (bool, error) { | ||
| 537 | - | core.LazyRegister(&xSubprocessWaitCheckFinish, "GIO", "g_subprocess_wait_check_finish", false) | |||
| 538 | var cerr *glib.Error | 500 | var cerr *glib.Error | ||
| 539 | 501 | ||||
| 540 | cret := xSubprocessWaitCheckFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | 502 | cret := xSubprocessWaitCheckFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | ||
| @@ -549,7 +511,6 @@ var xSubprocessWaitFinish func(uintptr, uintptr, **glib.Error) bool | |||||
| 549 | // Collects the result of a previous call to | 511 | // Collects the result of a previous call to | ||
| 550 | // g_subprocess_wait_async(). | 512 | // g_subprocess_wait_async(). | ||
| 551 | func (x *Subprocess) WaitFinish(ResultVar AsyncResult) (bool, error) { | 513 | func (x *Subprocess) WaitFinish(ResultVar AsyncResult) (bool, error) { | ||
| 552 | - | core.LazyRegister(&xSubprocessWaitFinish, "GIO", "g_subprocess_wait_finish", false) | |||
| 553 | var cerr *glib.Error | 514 | var cerr *glib.Error | ||
| 554 | 515 | ||||
| 555 | cret := xSubprocessWaitFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | 516 | cret := xSubprocessWaitFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | ||
| @@ -630,4 +591,42 @@ func (x *Subprocess) Init(CancellableVar *Cancellable) (bool, error) { | |||||
| 630 | func init() { | 591 | func init() { | ||
| 631 | core.SetPackageName("GIO", "gio-2.0") | 592 | core.SetPackageName("GIO", "gio-2.0") | ||
| 632 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | 593 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | ||
| 594 | + | var libs []uintptr | |||
| 595 | + | for _, libPath := range core.GetPaths("GIO") { | |||
| 596 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 597 | + | if err != nil { | |||
| 598 | + | panic(err) | |||
| 599 | + | } | |||
| 600 | + | libs = append(libs, lib) | |||
| 601 | + | } | |||
| 602 | + | ||||
| 603 | + | core.PuregoSafeRegister(&xSubprocessGLibType, libs, "g_subprocess_get_type") | |||
| 604 | + | ||||
| 605 | + | core.PuregoSafeRegister(&xNewSubprocess, libs, "g_subprocess_new") | |||
| 606 | + | core.PuregoSafeRegister(&xNewSubprocessv, libs, "g_subprocess_newv") | |||
| 607 | + | ||||
| 608 | + | core.PuregoSafeRegister(&xSubprocessCommunicate, libs, "g_subprocess_communicate") | |||
| 609 | + | core.PuregoSafeRegister(&xSubprocessCommunicateAsync, libs, "g_subprocess_communicate_async") | |||
| 610 | + | core.PuregoSafeRegister(&xSubprocessCommunicateFinish, libs, "g_subprocess_communicate_finish") | |||
| 611 | + | core.PuregoSafeRegister(&xSubprocessCommunicateUtf8, libs, "g_subprocess_communicate_utf8") | |||
| 612 | + | core.PuregoSafeRegister(&xSubprocessCommunicateUtf8Async, libs, "g_subprocess_communicate_utf8_async") | |||
| 613 | + | core.PuregoSafeRegister(&xSubprocessCommunicateUtf8Finish, libs, "g_subprocess_communicate_utf8_finish") | |||
| 614 | + | core.PuregoSafeRegister(&xSubprocessForceExit, libs, "g_subprocess_force_exit") | |||
| 615 | + | core.PuregoSafeRegister(&xSubprocessGetExitStatus, libs, "g_subprocess_get_exit_status") | |||
| 616 | + | core.PuregoSafeRegister(&xSubprocessGetIdentifier, libs, "g_subprocess_get_identifier") | |||
| 617 | + | core.PuregoSafeRegister(&xSubprocessGetIfExited, libs, "g_subprocess_get_if_exited") | |||
| 618 | + | core.PuregoSafeRegister(&xSubprocessGetIfSignaled, libs, "g_subprocess_get_if_signaled") | |||
| 619 | + | core.PuregoSafeRegister(&xSubprocessGetStatus, libs, "g_subprocess_get_status") | |||
| 620 | + | core.PuregoSafeRegister(&xSubprocessGetStderrPipe, libs, "g_subprocess_get_stderr_pipe") | |||
| 621 | + | core.PuregoSafeRegister(&xSubprocessGetStdinPipe, libs, "g_subprocess_get_stdin_pipe") | |||
| 622 | + | core.PuregoSafeRegister(&xSubprocessGetStdoutPipe, libs, "g_subprocess_get_stdout_pipe") | |||
| 623 | + | core.PuregoSafeRegister(&xSubprocessGetSuccessful, libs, "g_subprocess_get_successful") | |||
| 624 | + | core.PuregoSafeRegister(&xSubprocessGetTermSig, libs, "g_subprocess_get_term_sig") | |||
| 625 | + | core.PuregoSafeRegister(&xSubprocessSendSignal, libs, "g_subprocess_send_signal") | |||
| 626 | + | core.PuregoSafeRegister(&xSubprocessWait, libs, "g_subprocess_wait") | |||
| 627 | + | core.PuregoSafeRegister(&xSubprocessWaitAsync, libs, "g_subprocess_wait_async") | |||
| 628 | + | core.PuregoSafeRegister(&xSubprocessWaitCheck, libs, "g_subprocess_wait_check") | |||
| 629 | + | core.PuregoSafeRegister(&xSubprocessWaitCheckAsync, libs, "g_subprocess_wait_check_async") | |||
| 630 | + | core.PuregoSafeRegister(&xSubprocessWaitCheckFinish, libs, "g_subprocess_wait_check_finish") | |||
| 631 | + | core.PuregoSafeRegister(&xSubprocessWaitFinish, libs, "g_subprocess_wait_finish") | |||
| 633 | } | 632 | } | ||