Merge pull request #349 from bnema/fix/rollback-lazy-puregotk
fix(deps): emergency rollback puregotk lazy registration regression
905 files · +25263 -27842
M go.mod +1 -1
| @@ -11,7 +11,7 @@ require ( | |||
| 11 | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | |
| 12 | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | |
| 13 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | |
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | |
| 14 | + | github.com/bnema/puregotk v0.7.0 | |
| 15 | 15 | github.com/charmbracelet/bubbles v1.0.0 | |
| 16 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | |
| 17 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | |
| @@ -11,7 +11,7 @@ require ( | |||||
| 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | ||
| 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | ||
| 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | ||
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | 14 | + | github.com/bnema/puregotk v0.7.0 |
| 15 | github.com/charmbracelet/bubbles v1.0.0 | 15 | github.com/charmbracelet/bubbles v1.0.0 | ||
| 16 | github.com/charmbracelet/bubbletea v1.3.10 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | ||
| 17 | github.com/charmbracelet/lipgloss v1.1.0 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | ||
M go.sum +0 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/internal/core/core.go +4 -197 generated file: collapsed
M vendor/github.com/bnema/puregotk/pkg/core/core.go +0 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-dialog.go +64 -99 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-window.go +62 -95 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-accent-color.go +15 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-action-row.go +29 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-alert-dialog.go +47 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-target.go +27 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-util.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation.go +26 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application-window.go +22 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-avatar.go +25 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-banner.go +26 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bin.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bottom-sheet.go +38 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint-bin.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint.go +37 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-content.go +22 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-row.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-dots.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-lines.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel.go +37 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-layout.go +20 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-scrollable.go +22 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp.go +22 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-combo-row.go +33 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-dialog.go +38 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-easing.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-entry-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-enum-list-model.go +22 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-expander-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-flap.go +48 -61 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-fold-threshold-policy.go +1 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-header-bar.go +33 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-inline-view-switcher.go +24 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout-slot.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout.go +17 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-leaflet.go +56 -69 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-length-unit.go +14 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-main.go +15 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-message-dialog.go +44 -63 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-multi-layout-view.go +23 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-direction.go +1 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-split-view.go +32 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-view.go +49 -60 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-overlay-split-view.go +38 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-password-entry-row.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-dialog.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-group.go +26 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-page.go +33 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-row.go +22 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-window.go +29 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcut-label.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-dialog.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-item.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-section.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-item.go +37 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-section.go +27 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar.go +39 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spin-row.go +34 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner-paintable.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-split-button.go +34 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-animation.go +30 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-params.go +21 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-squeezer.go +44 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-status-page.go +24 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-style-manager.go +28 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipe-tracker.go +30 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipeable.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-switch-row.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-bar.go +32 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-button.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-overview.go +37 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-view.go +87 -123 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-timed-animation.go +28 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast-overlay.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast.go +36 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toggle-group.go +51 -64 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toolbar-view.go +35 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-version.go +16 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-stack.go +62 -78 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-bar.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-sidebar.go +22 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-title.go +23 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher.go +20 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window-title.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window.go +22 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-box.go +46 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-layout.go +46 -57 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/cairo/main.go +79 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkapplaunchcontext.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairo.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairocontext.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcicpparams.go +25 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkclipboard.go +32 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcolorstate.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentdeserializer.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentformats.go +31 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentprovider.go +28 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentserializer.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcursor.go +21 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevice.go +33 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicepad.go +22 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicetool.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplay.go +43 -51 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplaymanager.go +20 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexture.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexturebuilder.go +41 -53 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrag.go +28 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurface.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurfacesize.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrawcontext.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrop.go +24 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkenums.go +1 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkevents.go +118 -120 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframeclock.go +24 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframetimings.go +20 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkglcontext.go +36 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexture.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexturebuilder.go +35 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkkeys.go +22 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexture.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexturebuilder.go +35 -42 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmonitor.go +27 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpaintable.go +33 -63 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpango.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpixbuf.go +12 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopup.go +26 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopuplayout.go +32 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkrgba.go +21 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkseat.go +20 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksnapshot.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksurface.go +40 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktexture.go +31 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevel.go +66 -157 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevellayout.go +25 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevelsize.go +16 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktypes.go +72 -95 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkvulkancontext.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-animation.go +32 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-core.go +0 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-io.go +23 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-loader.go +22 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-simple-anim.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-transform.go +1 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf.go +79 -102 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/main.go +17 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gaction.go +31 -59 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactiongroup.go +39 -96 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactionmap.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gappinfo.go +116 -244 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplication.go +55 -79 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplicationcommandline.go +27 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncinitable.go +22 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncresult.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedinputstream.go +29 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedoutputstream.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbytesicon.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcancellable.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcharsetconverter.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcontenttype.go +26 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverter.go +20 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverterinputstream.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverteroutputstream.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcredentials.go +21 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatagrambased.go +30 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatainputstream.go +35 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdataoutputstream.go +23 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusactiongroup.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusaddress.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusauthobserver.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusconnection.go +66 -77 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbuserror.go +18 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusinterface.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusinterfaceskeleton.go +24 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusintrospection.go +56 -54 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmenumodel.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmessage.go +64 -88 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmethodinvocation.go +30 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusnameowning.go +15 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusnamewatching.go +15 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobject.go +17 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanager.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerclient.go +23 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerserver.go +20 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectproxy.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectskeleton.go +18 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusproxy.go +38 -42 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusserver.go +20 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusutils.go +22 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdebugcontroller.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdebugcontrollerdbus.go +14 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdrive.go +82 -214 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsclientconnection.go +24 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsconnection.go +80 -207 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsserverconnection.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gemblem.go +17 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gemblemedicon.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfile.go +450 -1148 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileattribute.go +19 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileenumerator.go +35 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileicon.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileinfo.go +84 -138 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileinputstream.go +23 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileiostream.go +27 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilemonitor.go +15 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilenamecompleter.go +16 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileoutputstream.go +27 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilterinputstream.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilteroutputstream.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gicon.go +25 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetaddress.go +34 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetaddressmask.go +21 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetsocketaddress.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginitable.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginputstream.go +48 -52 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioenums.go +1 -90 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioerror.go +13 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giomodule.go +29 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioscheduler.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giostream.go +29 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giotypes.go +60 -70 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giptosmessage.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gipv6tclassmessage.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/glistmodel.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gliststore.go +24 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gloadableicon.go +23 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemoryinputstream.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemorymonitor.go +12 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemoryoutputstream.go +19 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmenu.go +50 -62 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmenumodel.go +33 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmount.go +86 -215 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmountoperation.go +32 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnativesocketaddress.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnativevolumemonitor.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkaddress.go +21 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworking.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkmonitor.go +31 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkservice.go +19 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnotification.go +26 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/goutputstream.go +72 -86
| @@ -75,7 +75,7 @@ func (x *OutputStreamClass) OverrideWriteFn(cb func(*OutputStream, []byte, uint, | |||
| 75 | 75 | if cb == nil { | |
| 76 | 76 | x.xWriteFn = 0 | |
| 77 | 77 | } else { | |
| 78 | - | x.xWriteFn = purego.NewCallback(func(StreamVarp uintptr, BufferVarp []byte, CountVarp uint, CancellableVarp uintptr, cerrp **glib.Error) int { | |
| 78 | + | x.xWriteFn = purego.NewCallback(func(StreamVarp uintptr, BufferVarp []byte, CountVarp uint, CancellableVarp uintptr) int { | |
| 79 | 79 | return cb(OutputStreamNewFromInternalPtr(StreamVarp), BufferVarp, CountVarp, CancellableNewFromInternalPtr(CancellableVarp)) | |
| 80 | 80 | }) | |
| 81 | 81 | } | |
| @@ -86,11 +86,10 @@ func (x *OutputStreamClass) GetWriteFn() func(*OutputStream, []byte, uint, *Canc | |||
| 86 | 86 | if x.xWriteFn == 0 { | |
| 87 | 87 | return nil | |
| 88 | 88 | } | |
| 89 | - | var rawCallback func(StreamVarp uintptr, BufferVarp []byte, CountVarp uint, CancellableVarp uintptr, cerrp **glib.Error) int | |
| 89 | + | var rawCallback func(StreamVarp uintptr, BufferVarp []byte, CountVarp uint, CancellableVarp uintptr) int | |
| 90 | 90 | purego.RegisterFunc(&rawCallback, x.xWriteFn) | |
| 91 | 91 | return func(StreamVar *OutputStream, BufferVar []byte, CountVar uint, CancellableVar *Cancellable) int { | |
| 92 | - | var cerr *glib.Error | |
| 93 | - | return rawCallback(StreamVar.GoPointer(), BufferVar, CountVar, CancellableVar.GoPointer(), &cerr) | |
| 92 | + | return rawCallback(StreamVar.GoPointer(), BufferVar, CountVar, CancellableVar.GoPointer()) | |
| 94 | 93 | } | |
| 95 | 94 | } | |
| 96 | 95 | ||
| @@ -99,7 +98,7 @@ func (x *OutputStreamClass) OverrideSplice(cb func(*OutputStream, *InputStream, | |||
| 99 | 98 | if cb == nil { | |
| 100 | 99 | x.xSplice = 0 | |
| 101 | 100 | } else { | |
| 102 | - | x.xSplice = purego.NewCallback(func(StreamVarp uintptr, SourceVarp uintptr, FlagsVarp OutputStreamSpliceFlags, CancellableVarp uintptr, cerrp **glib.Error) int { | |
| 101 | + | x.xSplice = purego.NewCallback(func(StreamVarp uintptr, SourceVarp uintptr, FlagsVarp OutputStreamSpliceFlags, CancellableVarp uintptr) int { | |
| 103 | 102 | return cb(OutputStreamNewFromInternalPtr(StreamVarp), InputStreamNewFromInternalPtr(SourceVarp), FlagsVarp, CancellableNewFromInternalPtr(CancellableVarp)) | |
| 104 | 103 | }) | |
| 105 | 104 | } | |
| @@ -110,11 +109,10 @@ func (x *OutputStreamClass) GetSplice() func(*OutputStream, *InputStream, Output | |||
| 110 | 109 | if x.xSplice == 0 { | |
| 111 | 110 | return nil | |
| 112 | 111 | } | |
| 113 | - | var rawCallback func(StreamVarp uintptr, SourceVarp uintptr, FlagsVarp OutputStreamSpliceFlags, CancellableVarp uintptr, cerrp **glib.Error) int | |
| 112 | + | var rawCallback func(StreamVarp uintptr, SourceVarp uintptr, FlagsVarp OutputStreamSpliceFlags, CancellableVarp uintptr) int | |
| 114 | 113 | purego.RegisterFunc(&rawCallback, x.xSplice) | |
| 115 | 114 | return func(StreamVar *OutputStream, SourceVar *InputStream, FlagsVar OutputStreamSpliceFlags, CancellableVar *Cancellable) int { | |
| 116 | - | var cerr *glib.Error | |
| 117 | - | return rawCallback(StreamVar.GoPointer(), SourceVar.GoPointer(), FlagsVar, CancellableVar.GoPointer(), &cerr) | |
| 115 | + | return rawCallback(StreamVar.GoPointer(), SourceVar.GoPointer(), FlagsVar, CancellableVar.GoPointer()) | |
| 118 | 116 | } | |
| 119 | 117 | } | |
| 120 | 118 | ||
| @@ -123,7 +121,7 @@ func (x *OutputStreamClass) OverrideFlush(cb func(*OutputStream, *Cancellable) b | |||
| 123 | 121 | if cb == nil { | |
| 124 | 122 | x.xFlush = 0 | |
| 125 | 123 | } else { | |
| 126 | - | x.xFlush = purego.NewCallback(func(StreamVarp uintptr, CancellableVarp uintptr, cerrp **glib.Error) bool { | |
| 124 | + | x.xFlush = purego.NewCallback(func(StreamVarp uintptr, CancellableVarp uintptr) bool { | |
| 127 | 125 | return cb(OutputStreamNewFromInternalPtr(StreamVarp), CancellableNewFromInternalPtr(CancellableVarp)) | |
| 128 | 126 | }) | |
| 129 | 127 | } | |
| @@ -134,11 +132,10 @@ func (x *OutputStreamClass) GetFlush() func(*OutputStream, *Cancellable) bool { | |||
| 134 | 132 | if x.xFlush == 0 { | |
| 135 | 133 | return nil | |
| 136 | 134 | } | |
| 137 | - | var rawCallback func(StreamVarp uintptr, CancellableVarp uintptr, cerrp **glib.Error) bool | |
| 135 | + | var rawCallback func(StreamVarp uintptr, CancellableVarp uintptr) bool | |
| 138 | 136 | purego.RegisterFunc(&rawCallback, x.xFlush) | |
| 139 | 137 | return func(StreamVar *OutputStream, CancellableVar *Cancellable) bool { | |
| 140 | - | var cerr *glib.Error | |
| 141 | - | return rawCallback(StreamVar.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| 138 | + | return rawCallback(StreamVar.GoPointer(), CancellableVar.GoPointer()) | |
| 142 | 139 | } | |
| 143 | 140 | } | |
| 144 | 141 | ||
| @@ -147,7 +144,7 @@ func (x *OutputStreamClass) OverrideCloseFn(cb func(*OutputStream, *Cancellable) | |||
| 147 | 144 | if cb == nil { | |
| 148 | 145 | x.xCloseFn = 0 | |
| 149 | 146 | } else { | |
| 150 | - | x.xCloseFn = purego.NewCallback(func(StreamVarp uintptr, CancellableVarp uintptr, cerrp **glib.Error) bool { | |
| 147 | + | x.xCloseFn = purego.NewCallback(func(StreamVarp uintptr, CancellableVarp uintptr) bool { | |
| 151 | 148 | return cb(OutputStreamNewFromInternalPtr(StreamVarp), CancellableNewFromInternalPtr(CancellableVarp)) | |
| 152 | 149 | }) | |
| 153 | 150 | } | |
| @@ -158,11 +155,10 @@ func (x *OutputStreamClass) GetCloseFn() func(*OutputStream, *Cancellable) bool | |||
| 158 | 155 | if x.xCloseFn == 0 { | |
| 159 | 156 | return nil | |
| 160 | 157 | } | |
| 161 | - | var rawCallback func(StreamVarp uintptr, CancellableVarp uintptr, cerrp **glib.Error) bool | |
| 158 | + | var rawCallback func(StreamVarp uintptr, CancellableVarp uintptr) bool | |
| 162 | 159 | purego.RegisterFunc(&rawCallback, x.xCloseFn) | |
| 163 | 160 | return func(StreamVar *OutputStream, CancellableVar *Cancellable) bool { | |
| 164 | - | var cerr *glib.Error | |
| 165 | - | return rawCallback(StreamVar.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| 161 | + | return rawCallback(StreamVar.GoPointer(), CancellableVar.GoPointer()) | |
| 166 | 162 | } | |
| 167 | 163 | } | |
| 168 | 164 | ||
| @@ -194,7 +190,7 @@ func (x *OutputStreamClass) OverrideWriteFinish(cb func(*OutputStream, AsyncResu | |||
| 194 | 190 | if cb == nil { | |
| 195 | 191 | x.xWriteFinish = 0 | |
| 196 | 192 | } else { | |
| 197 | - | x.xWriteFinish = purego.NewCallback(func(StreamVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) int { | |
| 193 | + | x.xWriteFinish = purego.NewCallback(func(StreamVarp uintptr, ResultVarp uintptr) int { | |
| 198 | 194 | return cb(OutputStreamNewFromInternalPtr(StreamVarp), &AsyncResultBase{Ptr: ResultVarp}) | |
| 199 | 195 | }) | |
| 200 | 196 | } | |
| @@ -205,11 +201,10 @@ func (x *OutputStreamClass) GetWriteFinish() func(*OutputStream, AsyncResult) in | |||
| 205 | 201 | if x.xWriteFinish == 0 { | |
| 206 | 202 | return nil | |
| 207 | 203 | } | |
| 208 | - | var rawCallback func(StreamVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) int | |
| 204 | + | var rawCallback func(StreamVarp uintptr, ResultVarp uintptr) int | |
| 209 | 205 | purego.RegisterFunc(&rawCallback, x.xWriteFinish) | |
| 210 | 206 | return func(StreamVar *OutputStream, ResultVar AsyncResult) int { | |
| 211 | - | var cerr *glib.Error | |
| 212 | - | return rawCallback(StreamVar.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 207 | + | return rawCallback(StreamVar.GoPointer(), ResultVar.GoPointer()) | |
| 213 | 208 | } | |
| 214 | 209 | } | |
| 215 | 210 | ||
| @@ -241,7 +236,7 @@ func (x *OutputStreamClass) OverrideSpliceFinish(cb func(*OutputStream, AsyncRes | |||
| 241 | 236 | if cb == nil { | |
| 242 | 237 | x.xSpliceFinish = 0 | |
| 243 | 238 | } else { | |
| 244 | - | x.xSpliceFinish = purego.NewCallback(func(StreamVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) int { | |
| 239 | + | x.xSpliceFinish = purego.NewCallback(func(StreamVarp uintptr, ResultVarp uintptr) int { | |
| 245 | 240 | return cb(OutputStreamNewFromInternalPtr(StreamVarp), &AsyncResultBase{Ptr: ResultVarp}) | |
| 246 | 241 | }) | |
| 247 | 242 | } | |
| @@ -252,11 +247,10 @@ func (x *OutputStreamClass) GetSpliceFinish() func(*OutputStream, AsyncResult) i | |||
| 252 | 247 | if x.xSpliceFinish == 0 { | |
| 253 | 248 | return nil | |
| 254 | 249 | } | |
| 255 | - | var rawCallback func(StreamVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) int | |
| 250 | + | var rawCallback func(StreamVarp uintptr, ResultVarp uintptr) int | |
| 256 | 251 | purego.RegisterFunc(&rawCallback, x.xSpliceFinish) | |
| 257 | 252 | return func(StreamVar *OutputStream, ResultVar AsyncResult) int { | |
| 258 | - | var cerr *glib.Error | |
| 259 | - | return rawCallback(StreamVar.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 253 | + | return rawCallback(StreamVar.GoPointer(), ResultVar.GoPointer()) | |
| 260 | 254 | } | |
| 261 | 255 | } | |
| 262 | 256 | ||
| @@ -288,7 +282,7 @@ func (x *OutputStreamClass) OverrideFlushFinish(cb func(*OutputStream, AsyncResu | |||
| 288 | 282 | if cb == nil { | |
| 289 | 283 | x.xFlushFinish = 0 | |
| 290 | 284 | } else { | |
| 291 | - | x.xFlushFinish = purego.NewCallback(func(StreamVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) bool { | |
| 285 | + | x.xFlushFinish = purego.NewCallback(func(StreamVarp uintptr, ResultVarp uintptr) bool { | |
| 292 | 286 | return cb(OutputStreamNewFromInternalPtr(StreamVarp), &AsyncResultBase{Ptr: ResultVarp}) | |
| 293 | 287 | }) | |
| 294 | 288 | } | |
| @@ -299,11 +293,10 @@ func (x *OutputStreamClass) GetFlushFinish() func(*OutputStream, AsyncResult) bo | |||
| 299 | 293 | if x.xFlushFinish == 0 { | |
| 300 | 294 | return nil | |
| 301 | 295 | } | |
| 302 | - | var rawCallback func(StreamVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) bool | |
| 296 | + | var rawCallback func(StreamVarp uintptr, ResultVarp uintptr) bool | |
| 303 | 297 | purego.RegisterFunc(&rawCallback, x.xFlushFinish) | |
| 304 | 298 | return func(StreamVar *OutputStream, ResultVar AsyncResult) bool { | |
| 305 | - | var cerr *glib.Error | |
| 306 | - | return rawCallback(StreamVar.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 299 | + | return rawCallback(StreamVar.GoPointer(), ResultVar.GoPointer()) | |
| 307 | 300 | } | |
| 308 | 301 | } | |
| 309 | 302 | ||
| @@ -335,7 +328,7 @@ func (x *OutputStreamClass) OverrideCloseFinish(cb func(*OutputStream, AsyncResu | |||
| 335 | 328 | if cb == nil { | |
| 336 | 329 | x.xCloseFinish = 0 | |
| 337 | 330 | } else { | |
| 338 | - | x.xCloseFinish = purego.NewCallback(func(StreamVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) bool { | |
| 331 | + | x.xCloseFinish = purego.NewCallback(func(StreamVarp uintptr, ResultVarp uintptr) bool { | |
| 339 | 332 | return cb(OutputStreamNewFromInternalPtr(StreamVarp), &AsyncResultBase{Ptr: ResultVarp}) | |
| 340 | 333 | }) | |
| 341 | 334 | } | |
| @@ -346,11 +339,10 @@ func (x *OutputStreamClass) GetCloseFinish() func(*OutputStream, AsyncResult) bo | |||
| 346 | 339 | if x.xCloseFinish == 0 { | |
| 347 | 340 | return nil | |
| 348 | 341 | } | |
| 349 | - | var rawCallback func(StreamVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) bool | |
| 342 | + | var rawCallback func(StreamVarp uintptr, ResultVarp uintptr) bool | |
| 350 | 343 | purego.RegisterFunc(&rawCallback, x.xCloseFinish) | |
| 351 | 344 | return func(StreamVar *OutputStream, ResultVar AsyncResult) bool { | |
| 352 | - | var cerr *glib.Error | |
| 353 | - | return rawCallback(StreamVar.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 345 | + | return rawCallback(StreamVar.GoPointer(), ResultVar.GoPointer()) | |
| 354 | 346 | } | |
| 355 | 347 | } | |
| 356 | 348 | ||
| @@ -359,7 +351,7 @@ func (x *OutputStreamClass) OverrideWritevFn(cb func(*OutputStream, []OutputVect | |||
| 359 | 351 | if cb == nil { | |
| 360 | 352 | x.xWritevFn = 0 | |
| 361 | 353 | } else { | |
| 362 | - | x.xWritevFn = purego.NewCallback(func(StreamVarp uintptr, VectorsVarp []OutputVector, NVectorsVarp uint, BytesWrittenVarp *uint, CancellableVarp uintptr, cerrp **glib.Error) bool { | |
| 354 | + | x.xWritevFn = purego.NewCallback(func(StreamVarp uintptr, VectorsVarp []OutputVector, NVectorsVarp uint, BytesWrittenVarp *uint, CancellableVarp uintptr) bool { | |
| 363 | 355 | return cb(OutputStreamNewFromInternalPtr(StreamVarp), VectorsVarp, NVectorsVarp, BytesWrittenVarp, CancellableNewFromInternalPtr(CancellableVarp)) | |
| 364 | 356 | }) | |
| 365 | 357 | } | |
| @@ -370,11 +362,10 @@ func (x *OutputStreamClass) GetWritevFn() func(*OutputStream, []OutputVector, ui | |||
| 370 | 362 | if x.xWritevFn == 0 { | |
| 371 | 363 | return nil | |
| 372 | 364 | } | |
| 373 | - | var rawCallback func(StreamVarp uintptr, VectorsVarp []OutputVector, NVectorsVarp uint, BytesWrittenVarp *uint, CancellableVarp uintptr, cerrp **glib.Error) bool | |
| 365 | + | var rawCallback func(StreamVarp uintptr, VectorsVarp []OutputVector, NVectorsVarp uint, BytesWrittenVarp *uint, CancellableVarp uintptr) bool | |
| 374 | 366 | purego.RegisterFunc(&rawCallback, x.xWritevFn) | |
| 375 | 367 | return func(StreamVar *OutputStream, VectorsVar []OutputVector, NVectorsVar uint, BytesWrittenVar *uint, CancellableVar *Cancellable) bool { | |
| 376 | - | var cerr *glib.Error | |
| 377 | - | return rawCallback(StreamVar.GoPointer(), VectorsVar, NVectorsVar, BytesWrittenVar, CancellableVar.GoPointer(), &cerr) | |
| 368 | + | return rawCallback(StreamVar.GoPointer(), VectorsVar, NVectorsVar, BytesWrittenVar, CancellableVar.GoPointer()) | |
| 378 | 369 | } | |
| 379 | 370 | } | |
| 380 | 371 | ||
| @@ -406,7 +397,7 @@ func (x *OutputStreamClass) OverrideWritevFinish(cb func(*OutputStream, AsyncRes | |||
| 406 | 397 | if cb == nil { | |
| 407 | 398 | x.xWritevFinish = 0 | |
| 408 | 399 | } else { | |
| 409 | - | x.xWritevFinish = purego.NewCallback(func(StreamVarp uintptr, ResultVarp uintptr, BytesWrittenVarp *uint, cerrp **glib.Error) bool { | |
| 400 | + | x.xWritevFinish = purego.NewCallback(func(StreamVarp uintptr, ResultVarp uintptr, BytesWrittenVarp *uint) bool { | |
| 410 | 401 | return cb(OutputStreamNewFromInternalPtr(StreamVarp), &AsyncResultBase{Ptr: ResultVarp}, BytesWrittenVarp) | |
| 411 | 402 | }) | |
| 412 | 403 | } | |
| @@ -417,11 +408,10 @@ func (x *OutputStreamClass) GetWritevFinish() func(*OutputStream, AsyncResult, * | |||
| 417 | 408 | if x.xWritevFinish == 0 { | |
| 418 | 409 | return nil | |
| 419 | 410 | } | |
| 420 | - | var rawCallback func(StreamVarp uintptr, ResultVarp uintptr, BytesWrittenVarp *uint, cerrp **glib.Error) bool | |
| 411 | + | var rawCallback func(StreamVarp uintptr, ResultVarp uintptr, BytesWrittenVarp *uint) bool | |
| 421 | 412 | purego.RegisterFunc(&rawCallback, x.xWritevFinish) | |
| 422 | 413 | return func(StreamVar *OutputStream, ResultVar AsyncResult, BytesWrittenVar *uint) bool { | |
| 423 | - | var cerr *glib.Error | |
| 424 | - | return rawCallback(StreamVar.GoPointer(), ResultVar.GoPointer(), BytesWrittenVar, &cerr) | |
| 414 | + | return rawCallback(StreamVar.GoPointer(), ResultVar.GoPointer(), BytesWrittenVar) | |
| 425 | 415 | } | |
| 426 | 416 | } | |
| 427 | 417 | ||
| @@ -580,7 +570,6 @@ type OutputStream struct { | |||
| 580 | 570 | var xOutputStreamGLibType func() types.GType | |
| 581 | 571 | ||
| 582 | 572 | func OutputStreamGLibType() types.GType { | |
| 583 | - | core.LazyRegister(&xOutputStreamGLibType, "GIO", "g_output_stream_get_type", false) | |
| 584 | 573 | return xOutputStreamGLibType() | |
| 585 | 574 | } | |
| 586 | 575 | ||
| @@ -594,8 +583,6 @@ var xOutputStreamClearPending func(uintptr) | |||
| 594 | 583 | ||
| 595 | 584 | // Clears the pending flag on @stream. | |
| 596 | 585 | func (x *OutputStream) ClearPending() { | |
| 597 | - | core.LazyRegister(&xOutputStreamClearPending, "GIO", "g_output_stream_clear_pending", false) | |
| 598 | - | ||
| 599 | 586 | xOutputStreamClearPending(x.GoPointer()) | |
| 600 | 587 | } | |
| 601 | 588 | ||
| @@ -631,7 +618,6 @@ var xOutputStreamClose func(uintptr, uintptr, **glib.Error) bool | |||
| 631 | 618 | // cancellation (as with any error) there is no guarantee that all written | |
| 632 | 619 | // data will reach the target. | |
| 633 | 620 | func (x *OutputStream) Close(CancellableVar *Cancellable) (bool, error) { | |
| 634 | - | core.LazyRegister(&xOutputStreamClose, "GIO", "g_output_stream_close", false) | |
| 635 | 621 | var cerr *glib.Error | |
| 636 | 622 | ||
| 637 | 623 | cret := xOutputStreamClose(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| @@ -654,8 +640,6 @@ var xOutputStreamCloseAsync func(uintptr, int, uintptr, uintptr, uintptr) | |||
| 654 | 640 | // to implement asynchronicity, so they are optional for inheriting | |
| 655 | 641 | // classes. However, if you override one you must override all. | |
| 656 | 642 | func (x *OutputStream) CloseAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 657 | - | core.LazyRegister(&xOutputStreamCloseAsync, "GIO", "g_output_stream_close_async", false) | |
| 658 | - | ||
| 659 | 643 | xOutputStreamCloseAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 660 | 644 | } | |
| 661 | 645 | ||
| @@ -663,7 +647,6 @@ var xOutputStreamCloseFinish func(uintptr, uintptr, **glib.Error) bool | |||
| 663 | 647 | ||
| 664 | 648 | // Closes an output stream. | |
| 665 | 649 | func (x *OutputStream) CloseFinish(ResultVar AsyncResult) (bool, error) { | |
| 666 | - | core.LazyRegister(&xOutputStreamCloseFinish, "GIO", "g_output_stream_close_finish", false) | |
| 667 | 650 | var cerr *glib.Error | |
| 668 | 651 | ||
| 669 | 652 | cret := xOutputStreamCloseFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| @@ -685,7 +668,6 @@ var xOutputStreamFlush func(uintptr, uintptr, **glib.Error) bool | |||
| 685 | 668 | // triggering the cancellable object from another thread. If the operation | |
| 686 | 669 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. | |
| 687 | 670 | func (x *OutputStream) Flush(CancellableVar *Cancellable) (bool, error) { | |
| 688 | - | core.LazyRegister(&xOutputStreamFlush, "GIO", "g_output_stream_flush", false) | |
| 689 | 671 | var cerr *glib.Error | |
| 690 | 672 | ||
| 691 | 673 | cret := xOutputStreamFlush(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| @@ -705,8 +687,6 @@ var xOutputStreamFlushAsync func(uintptr, int, uintptr, uintptr, uintptr) | |||
| 705 | 687 | // called. You can then call g_output_stream_flush_finish() to get the | |
| 706 | 688 | // result of the operation. | |
| 707 | 689 | func (x *OutputStream) FlushAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 708 | - | core.LazyRegister(&xOutputStreamFlushAsync, "GIO", "g_output_stream_flush_async", false) | |
| 709 | - | ||
| 710 | 690 | xOutputStreamFlushAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 711 | 691 | } | |
| 712 | 692 | ||
| @@ -714,7 +694,6 @@ var xOutputStreamFlushFinish func(uintptr, uintptr, **glib.Error) bool | |||
| 714 | 694 | ||
| 715 | 695 | // Finishes flushing an output stream. | |
| 716 | 696 | func (x *OutputStream) FlushFinish(ResultVar AsyncResult) (bool, error) { | |
| 717 | - | core.LazyRegister(&xOutputStreamFlushFinish, "GIO", "g_output_stream_flush_finish", false) | |
| 718 | 697 | var cerr *glib.Error | |
| 719 | 698 | ||
| 720 | 699 | cret := xOutputStreamFlushFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| @@ -728,8 +707,6 @@ var xOutputStreamHasPending func(uintptr) bool | |||
| 728 | 707 | ||
| 729 | 708 | // Checks if an output stream has pending actions. | |
| 730 | 709 | func (x *OutputStream) HasPending() bool { | |
| 731 | - | core.LazyRegister(&xOutputStreamHasPending, "GIO", "g_output_stream_has_pending", false) | |
| 732 | - | ||
| 733 | 710 | cret := xOutputStreamHasPending(x.GoPointer()) | |
| 734 | 711 | return cret | |
| 735 | 712 | } | |
| @@ -738,8 +715,6 @@ var xOutputStreamIsClosed func(uintptr) bool | |||
| 738 | 715 | ||
| 739 | 716 | // Checks if an output stream has already been closed. | |
| 740 | 717 | func (x *OutputStream) IsClosed() bool { | |
| 741 | - | core.LazyRegister(&xOutputStreamIsClosed, "GIO", "g_output_stream_is_closed", false) | |
| 742 | - | ||
| 743 | 718 | cret := xOutputStreamIsClosed(x.GoPointer()) | |
| 744 | 719 | return cret | |
| 745 | 720 | } | |
| @@ -751,8 +726,6 @@ var xOutputStreamIsClosing func(uintptr) bool | |||
| 751 | 726 | // flush (or other i/o operation) is called from within | |
| 752 | 727 | // the closing operation. | |
| 753 | 728 | func (x *OutputStream) IsClosing() bool { | |
| 754 | - | core.LazyRegister(&xOutputStreamIsClosing, "GIO", "g_output_stream_is_closing", false) | |
| 755 | - | ||
| 756 | 729 | cret := xOutputStreamIsClosing(x.GoPointer()) | |
| 757 | 730 | return cret | |
| 758 | 731 | } | |
| @@ -772,8 +745,6 @@ var xOutputStreamPrintf func(uintptr, *uint, uintptr, **glib.Error, string, ...i | |||
| 772 | 745 | // create you own printf()-like wrapper around g_output_stream_write() | |
| 773 | 746 | // or g_output_stream_write_all(). | |
| 774 | 747 | func (x *OutputStream) Printf(BytesWrittenVar *uint, CancellableVar *Cancellable, ErrorVar **glib.Error, FormatVar string, varArgs ...interface{}) bool { | |
| 775 | - | core.LazyRegister(&xOutputStreamPrintf, "GIO", "g_output_stream_printf", false) | |
| 776 | - | ||
| 777 | 748 | cret := xOutputStreamPrintf(x.GoPointer(), BytesWrittenVar, CancellableVar.GoPointer(), ErrorVar, FormatVar, varArgs...) | |
| 778 | 749 | return cret | |
| 779 | 750 | } | |
| @@ -784,7 +755,6 @@ var xOutputStreamSetPending func(uintptr, **glib.Error) bool | |||
| 784 | 755 | // already set or @stream is closed, it will return %FALSE and set | |
| 785 | 756 | // @error. | |
| 786 | 757 | func (x *OutputStream) SetPending() (bool, error) { | |
| 787 | - | core.LazyRegister(&xOutputStreamSetPending, "GIO", "g_output_stream_set_pending", false) | |
| 788 | 758 | var cerr *glib.Error | |
| 789 | 759 | ||
| 790 | 760 | cret := xOutputStreamSetPending(x.GoPointer(), &cerr) | |
| @@ -798,7 +768,6 @@ var xOutputStreamSplice func(uintptr, uintptr, OutputStreamSpliceFlags, uintptr, | |||
| 798 | 768 | ||
| 799 | 769 | // Splices an input stream into an output stream. | |
| 800 | 770 | func (x *OutputStream) Splice(SourceVar *InputStream, FlagsVar OutputStreamSpliceFlags, CancellableVar *Cancellable) (int, error) { | |
| 801 | - | core.LazyRegister(&xOutputStreamSplice, "GIO", "g_output_stream_splice", false) | |
| 802 | 771 | var cerr *glib.Error | |
| 803 | 772 | ||
| 804 | 773 | cret := xOutputStreamSplice(x.GoPointer(), SourceVar.GoPointer(), FlagsVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -818,8 +787,6 @@ var xOutputStreamSpliceAsync func(uintptr, uintptr, OutputStreamSpliceFlags, int | |||
| 818 | 787 | // For the synchronous, blocking version of this function, see | |
| 819 | 788 | // g_output_stream_splice(). | |
| 820 | 789 | func (x *OutputStream) SpliceAsync(SourceVar *InputStream, FlagsVar OutputStreamSpliceFlags, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 821 | - | core.LazyRegister(&xOutputStreamSpliceAsync, "GIO", "g_output_stream_splice_async", false) | |
| 822 | - | ||
| 823 | 790 | xOutputStreamSpliceAsync(x.GoPointer(), SourceVar.GoPointer(), FlagsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 824 | 791 | } | |
| 825 | 792 | ||
| @@ -827,7 +794,6 @@ var xOutputStreamSpliceFinish func(uintptr, uintptr, **glib.Error) int | |||
| 827 | 794 | ||
| 828 | 795 | // Finishes an asynchronous stream splice operation. | |
| 829 | 796 | func (x *OutputStream) SpliceFinish(ResultVar AsyncResult) (int, error) { | |
| 830 | - | core.LazyRegister(&xOutputStreamSpliceFinish, "GIO", "g_output_stream_splice_finish", false) | |
| 831 | 797 | var cerr *glib.Error | |
| 832 | 798 | ||
| 833 | 799 | cret := xOutputStreamSpliceFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| @@ -852,8 +818,6 @@ var xOutputStreamVprintf func(uintptr, *uint, uintptr, **glib.Error, string, []i | |||
| 852 | 818 | // create you own printf()-like wrapper around g_output_stream_write() | |
| 853 | 819 | // or g_output_stream_write_all(). | |
| 854 | 820 | func (x *OutputStream) Vprintf(BytesWrittenVar *uint, CancellableVar *Cancellable, ErrorVar **glib.Error, FormatVar string, ArgsVar []interface{}) bool { | |
| 855 | - | core.LazyRegister(&xOutputStreamVprintf, "GIO", "g_output_stream_vprintf", false) | |
| 856 | - | ||
| 857 | 821 | cret := xOutputStreamVprintf(x.GoPointer(), BytesWrittenVar, CancellableVar.GoPointer(), ErrorVar, FormatVar, ArgsVar) | |
| 858 | 822 | return cret | |
| 859 | 823 | } | |
| @@ -881,7 +845,6 @@ var xOutputStreamWrite func(uintptr, []byte, uint, uintptr, **glib.Error) int | |||
| 881 | 845 | // | |
| 882 | 846 | // On error -1 is returned and @error is set accordingly. | |
| 883 | 847 | func (x *OutputStream) Write(BufferVar []byte, CountVar uint, CancellableVar *Cancellable) (int, error) { | |
| 884 | - | core.LazyRegister(&xOutputStreamWrite, "GIO", "g_output_stream_write", false) | |
| 885 | 848 | var cerr *glib.Error | |
| 886 | 849 | ||
| 887 | 850 | cret := xOutputStreamWrite(x.GoPointer(), BufferVar, CountVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -913,7 +876,6 @@ var xOutputStreamWriteAll func(uintptr, []byte, uint, *uint, uintptr, **glib.Err | |||
| 913 | 876 | // language then you must write your own loop around | |
| 914 | 877 | // g_output_stream_write(). | |
| 915 | 878 | func (x *OutputStream) WriteAll(BufferVar []byte, CountVar uint, BytesWrittenVar *uint, CancellableVar *Cancellable) (bool, error) { | |
| 916 | - | core.LazyRegister(&xOutputStreamWriteAll, "GIO", "g_output_stream_write_all", false) | |
| 917 | 879 | var cerr *glib.Error | |
| 918 | 880 | ||
| 919 | 881 | cret := xOutputStreamWriteAll(x.GoPointer(), BufferVar, CountVar, BytesWrittenVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -941,8 +903,6 @@ var xOutputStreamWriteAllAsync func(uintptr, []byte, uint, int, uintptr, uintptr | |||
| 941 | 903 | // Note that no copy of @buffer will be made, so it must stay valid | |
| 942 | 904 | // until @callback is called. | |
| 943 | 905 | func (x *OutputStream) WriteAllAsync(BufferVar []byte, CountVar uint, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 944 | - | core.LazyRegister(&xOutputStreamWriteAllAsync, "GIO", "g_output_stream_write_all_async", false) | |
| 945 | - | ||
| 946 | 906 | xOutputStreamWriteAllAsync(x.GoPointer(), BufferVar, CountVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 947 | 907 | } | |
| 948 | 908 | ||
| @@ -959,7 +919,6 @@ var xOutputStreamWriteAllFinish func(uintptr, uintptr, *uint, **glib.Error) bool | |||
| 959 | 919 | // language then you must write your own loop around | |
| 960 | 920 | // g_output_stream_write_async(). | |
| 961 | 921 | func (x *OutputStream) WriteAllFinish(ResultVar AsyncResult, BytesWrittenVar *uint) (bool, error) { | |
| 962 | - | core.LazyRegister(&xOutputStreamWriteAllFinish, "GIO", "g_output_stream_write_all_finish", false) | |
| 963 | 922 | var cerr *glib.Error | |
| 964 | 923 | ||
| 965 | 924 | cret := xOutputStreamWriteAllFinish(x.GoPointer(), ResultVar.GoPointer(), BytesWrittenVar, &cerr) | |
| @@ -1007,8 +966,6 @@ var xOutputStreamWriteAsync func(uintptr, []byte, uint, int, uintptr, uintptr, u | |||
| 1007 | 966 | // for a #GBytes version that will automatically hold a reference to | |
| 1008 | 967 | // the contents (without copying) for the duration of the call. | |
| 1009 | 968 | func (x *OutputStream) WriteAsync(BufferVar []byte, CountVar uint, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 1010 | - | core.LazyRegister(&xOutputStreamWriteAsync, "GIO", "g_output_stream_write_async", false) | |
| 1011 | - | ||
| 1012 | 969 | xOutputStreamWriteAsync(x.GoPointer(), BufferVar, CountVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 1013 | 970 | } | |
| 1014 | 971 | ||
| @@ -1026,7 +983,6 @@ var xOutputStreamWriteBytes func(uintptr, *glib.Bytes, uintptr, **glib.Error) in | |||
| 1026 | 983 | // #GBytes instance multiple times potentially can result in duplicated | |
| 1027 | 984 | // data in the output stream. | |
| 1028 | 985 | func (x *OutputStream) WriteBytes(BytesVar *glib.Bytes, CancellableVar *Cancellable) (int, error) { | |
| 1029 | - | core.LazyRegister(&xOutputStreamWriteBytes, "GIO", "g_output_stream_write_bytes", false) | |
| 1030 | 986 | var cerr *glib.Error | |
| 1031 | 987 | ||
| 1032 | 988 | cret := xOutputStreamWriteBytes(x.GoPointer(), BytesVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -1052,8 +1008,6 @@ var xOutputStreamWriteBytesAsync func(uintptr, *glib.Bytes, int, uintptr, uintpt | |||
| 1052 | 1008 | // For the synchronous, blocking version of this function, see | |
| 1053 | 1009 | // g_output_stream_write_bytes(). | |
| 1054 | 1010 | func (x *OutputStream) WriteBytesAsync(BytesVar *glib.Bytes, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 1055 | - | core.LazyRegister(&xOutputStreamWriteBytesAsync, "GIO", "g_output_stream_write_bytes_async", false) | |
| 1056 | - | ||
| 1057 | 1011 | xOutputStreamWriteBytesAsync(x.GoPointer(), BytesVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 1058 | 1012 | } | |
| 1059 | 1013 | ||
| @@ -1061,7 +1015,6 @@ var xOutputStreamWriteBytesFinish func(uintptr, uintptr, **glib.Error) int | |||
| 1061 | 1015 | ||
| 1062 | 1016 | // Finishes a stream write-from-#GBytes operation. | |
| 1063 | 1017 | func (x *OutputStream) WriteBytesFinish(ResultVar AsyncResult) (int, error) { | |
| 1064 | - | core.LazyRegister(&xOutputStreamWriteBytesFinish, "GIO", "g_output_stream_write_bytes_finish", false) | |
| 1065 | 1018 | var cerr *glib.Error | |
| 1066 | 1019 | ||
| 1067 | 1020 | cret := xOutputStreamWriteBytesFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| @@ -1075,7 +1028,6 @@ var xOutputStreamWriteFinish func(uintptr, uintptr, **glib.Error) int | |||
| 1075 | 1028 | ||
| 1076 | 1029 | // Finishes a stream write operation. | |
| 1077 | 1030 | func (x *OutputStream) WriteFinish(ResultVar AsyncResult) (int, error) { | |
| 1078 | - | core.LazyRegister(&xOutputStreamWriteFinish, "GIO", "g_output_stream_write_finish", false) | |
| 1079 | 1031 | var cerr *glib.Error | |
| 1080 | 1032 | ||
| 1081 | 1033 | cret := xOutputStreamWriteFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| @@ -1111,7 +1063,6 @@ var xOutputStreamWritev func(uintptr, []OutputVector, uint, *uint, uintptr, **gl | |||
| 1111 | 1063 | // are exceeded. For example, when writing to a local file on UNIX platforms, | |
| 1112 | 1064 | // the aggregate buffer size must not exceed %G_MAXSSIZE bytes. | |
| 1113 | 1065 | func (x *OutputStream) Writev(VectorsVar []OutputVector, NVectorsVar uint, BytesWrittenVar *uint, CancellableVar *Cancellable) (bool, error) { | |
| 1114 | - | core.LazyRegister(&xOutputStreamWritev, "GIO", "g_output_stream_writev", false) | |
| 1115 | 1066 | var cerr *glib.Error | |
| 1116 | 1067 | ||
| 1117 | 1068 | cret := xOutputStreamWritev(x.GoPointer(), VectorsVar, NVectorsVar, BytesWrittenVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -1146,7 +1097,6 @@ var xOutputStreamWritevAll func(uintptr, []OutputVector, uint, *uint, uintptr, * | |||
| 1146 | 1097 | // The content of the individual elements of @vectors might be changed by this | |
| 1147 | 1098 | // function. | |
| 1148 | 1099 | func (x *OutputStream) WritevAll(VectorsVar []OutputVector, NVectorsVar uint, BytesWrittenVar *uint, CancellableVar *Cancellable) (bool, error) { | |
| 1149 | - | core.LazyRegister(&xOutputStreamWritevAll, "GIO", "g_output_stream_writev_all", false) | |
| 1150 | 1100 | var cerr *glib.Error | |
| 1151 | 1101 | ||
| 1152 | 1102 | cret := xOutputStreamWritevAll(x.GoPointer(), VectorsVar, NVectorsVar, BytesWrittenVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -1175,8 +1125,6 @@ var xOutputStreamWritevAllAsync func(uintptr, []OutputVector, uint, int, uintptr | |||
| 1175 | 1125 | // until @callback is called. The content of the individual elements | |
| 1176 | 1126 | // of @vectors might be changed by this function. | |
| 1177 | 1127 | func (x *OutputStream) WritevAllAsync(VectorsVar []OutputVector, NVectorsVar uint, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 1178 | - | core.LazyRegister(&xOutputStreamWritevAllAsync, "GIO", "g_output_stream_writev_all_async", false) | |
| 1179 | - | ||
| 1180 | 1128 | xOutputStreamWritevAllAsync(x.GoPointer(), VectorsVar, NVectorsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 1181 | 1129 | } | |
| 1182 | 1130 | ||
| @@ -1193,7 +1141,6 @@ var xOutputStreamWritevAllFinish func(uintptr, uintptr, *uint, **glib.Error) boo | |||
| 1193 | 1141 | // language then you must write your own loop around | |
| 1194 | 1142 | // g_output_stream_writev_async(). | |
| 1195 | 1143 | func (x *OutputStream) WritevAllFinish(ResultVar AsyncResult, BytesWrittenVar *uint) (bool, error) { | |
| 1196 | - | core.LazyRegister(&xOutputStreamWritevAllFinish, "GIO", "g_output_stream_writev_all_finish", false) | |
| 1197 | 1144 | var cerr *glib.Error | |
| 1198 | 1145 | ||
| 1199 | 1146 | cret := xOutputStreamWritevAllFinish(x.GoPointer(), ResultVar.GoPointer(), BytesWrittenVar, &cerr) | |
| @@ -1236,8 +1183,6 @@ var xOutputStreamWritevAsync func(uintptr, []OutputVector, uint, int, uintptr, u | |||
| 1236 | 1183 | // Note that no copy of @vectors will be made, so it must stay valid | |
| 1237 | 1184 | // until @callback is called. | |
| 1238 | 1185 | func (x *OutputStream) WritevAsync(VectorsVar []OutputVector, NVectorsVar uint, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 1239 | - | core.LazyRegister(&xOutputStreamWritevAsync, "GIO", "g_output_stream_writev_async", false) | |
| 1240 | - | ||
| 1241 | 1186 | xOutputStreamWritevAsync(x.GoPointer(), VectorsVar, NVectorsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 1242 | 1187 | } | |
| 1243 | 1188 | ||
| @@ -1245,7 +1190,6 @@ var xOutputStreamWritevFinish func(uintptr, uintptr, *uint, **glib.Error) bool | |||
| 1245 | 1190 | ||
| 1246 | 1191 | // Finishes a stream writev operation. | |
| 1247 | 1192 | func (x *OutputStream) WritevFinish(ResultVar AsyncResult, BytesWrittenVar *uint) (bool, error) { | |
| 1248 | - | core.LazyRegister(&xOutputStreamWritevFinish, "GIO", "g_output_stream_writev_finish", false) | |
| 1249 | 1193 | var cerr *glib.Error | |
| 1250 | 1194 | ||
| 1251 | 1195 | cret := xOutputStreamWritevFinish(x.GoPointer(), ResultVar.GoPointer(), BytesWrittenVar, &cerr) | |
| @@ -1269,4 +1213,46 @@ func (c *OutputStream) SetGoPointer(ptr uintptr) { | |||
| 1269 | 1213 | func init() { | |
| 1270 | 1214 | core.SetPackageName("GIO", "gio-2.0") | |
| 1271 | 1215 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | |
| 1216 | + | var libs []uintptr | |
| 1217 | + | for _, libPath := range core.GetPaths("GIO") { | |
| 1218 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 1219 | + | if err != nil { | |
| 1220 | + | panic(err) | |
| 1221 | + | } | |
| 1222 | + | libs = append(libs, lib) | |
| 1223 | + | } | |
| 1224 | + | ||
| 1225 | + | core.PuregoSafeRegister(&xOutputStreamGLibType, libs, "g_output_stream_get_type") | |
| 1226 | + | ||
| 1227 | + | core.PuregoSafeRegister(&xOutputStreamClearPending, libs, "g_output_stream_clear_pending") | |
| 1228 | + | core.PuregoSafeRegister(&xOutputStreamClose, libs, "g_output_stream_close") | |
| 1229 | + | core.PuregoSafeRegister(&xOutputStreamCloseAsync, libs, "g_output_stream_close_async") | |
| 1230 | + | core.PuregoSafeRegister(&xOutputStreamCloseFinish, libs, "g_output_stream_close_finish") | |
| 1231 | + | core.PuregoSafeRegister(&xOutputStreamFlush, libs, "g_output_stream_flush") | |
| 1232 | + | core.PuregoSafeRegister(&xOutputStreamFlushAsync, libs, "g_output_stream_flush_async") | |
| 1233 | + | core.PuregoSafeRegister(&xOutputStreamFlushFinish, libs, "g_output_stream_flush_finish") | |
| 1234 | + | core.PuregoSafeRegister(&xOutputStreamHasPending, libs, "g_output_stream_has_pending") | |
| 1235 | + | core.PuregoSafeRegister(&xOutputStreamIsClosed, libs, "g_output_stream_is_closed") | |
| 1236 | + | core.PuregoSafeRegister(&xOutputStreamIsClosing, libs, "g_output_stream_is_closing") | |
| 1237 | + | core.PuregoSafeRegister(&xOutputStreamPrintf, libs, "g_output_stream_printf") | |
| 1238 | + | core.PuregoSafeRegister(&xOutputStreamSetPending, libs, "g_output_stream_set_pending") | |
| 1239 | + | core.PuregoSafeRegister(&xOutputStreamSplice, libs, "g_output_stream_splice") | |
| 1240 | + | core.PuregoSafeRegister(&xOutputStreamSpliceAsync, libs, "g_output_stream_splice_async") | |
| 1241 | + | core.PuregoSafeRegister(&xOutputStreamSpliceFinish, libs, "g_output_stream_splice_finish") | |
| 1242 | + | core.PuregoSafeRegister(&xOutputStreamVprintf, libs, "g_output_stream_vprintf") | |
| 1243 | + | core.PuregoSafeRegister(&xOutputStreamWrite, libs, "g_output_stream_write") | |
| 1244 | + | core.PuregoSafeRegister(&xOutputStreamWriteAll, libs, "g_output_stream_write_all") | |
| 1245 | + | core.PuregoSafeRegister(&xOutputStreamWriteAllAsync, libs, "g_output_stream_write_all_async") | |
| 1246 | + | core.PuregoSafeRegister(&xOutputStreamWriteAllFinish, libs, "g_output_stream_write_all_finish") | |
| 1247 | + | core.PuregoSafeRegister(&xOutputStreamWriteAsync, libs, "g_output_stream_write_async") | |
| 1248 | + | core.PuregoSafeRegister(&xOutputStreamWriteBytes, libs, "g_output_stream_write_bytes") | |
| 1249 | + | core.PuregoSafeRegister(&xOutputStreamWriteBytesAsync, libs, "g_output_stream_write_bytes_async") | |
| 1250 | + | core.PuregoSafeRegister(&xOutputStreamWriteBytesFinish, libs, "g_output_stream_write_bytes_finish") | |
| 1251 | + | core.PuregoSafeRegister(&xOutputStreamWriteFinish, libs, "g_output_stream_write_finish") | |
| 1252 | + | core.PuregoSafeRegister(&xOutputStreamWritev, libs, "g_output_stream_writev") | |
| 1253 | + | core.PuregoSafeRegister(&xOutputStreamWritevAll, libs, "g_output_stream_writev_all") | |
| 1254 | + | core.PuregoSafeRegister(&xOutputStreamWritevAllAsync, libs, "g_output_stream_writev_all_async") | |
| 1255 | + | core.PuregoSafeRegister(&xOutputStreamWritevAllFinish, libs, "g_output_stream_writev_all_finish") | |
| 1256 | + | core.PuregoSafeRegister(&xOutputStreamWritevAsync, libs, "g_output_stream_writev_async") | |
| 1257 | + | core.PuregoSafeRegister(&xOutputStreamWritevFinish, libs, "g_output_stream_writev_finish") | |
| 1272 | 1258 | } | |
| @@ -75,7 +75,7 @@ func (x *OutputStreamClass) OverrideWriteFn(cb func(*OutputStream, []byte, uint, | |||||
| 75 | if cb == nil { | 75 | if cb == nil { | ||
| 76 | x.xWriteFn = 0 | 76 | x.xWriteFn = 0 | ||
| 77 | } else { | 77 | } else { | ||
| 78 | - | x.xWriteFn = purego.NewCallback(func(StreamVarp uintptr, BufferVarp []byte, CountVarp uint, CancellableVarp uintptr, cerrp **glib.Error) int { | 78 | + | x.xWriteFn = purego.NewCallback(func(StreamVarp uintptr, BufferVarp []byte, CountVarp uint, CancellableVarp uintptr) int { |
| 79 | return cb(OutputStreamNewFromInternalPtr(StreamVarp), BufferVarp, CountVarp, CancellableNewFromInternalPtr(CancellableVarp)) | 79 | return cb(OutputStreamNewFromInternalPtr(StreamVarp), BufferVarp, CountVarp, CancellableNewFromInternalPtr(CancellableVarp)) | ||
| 80 | }) | 80 | }) | ||
| 81 | } | 81 | } | ||
| @@ -86,11 +86,10 @@ func (x *OutputStreamClass) GetWriteFn() func(*OutputStream, []byte, uint, *Canc | |||||
| 86 | if x.xWriteFn == 0 { | 86 | if x.xWriteFn == 0 { | ||
| 87 | return nil | 87 | return nil | ||
| 88 | } | 88 | } | ||
| 89 | - | var rawCallback func(StreamVarp uintptr, BufferVarp []byte, CountVarp uint, CancellableVarp uintptr, cerrp **glib.Error) int | 89 | + | var rawCallback func(StreamVarp uintptr, BufferVarp []byte, CountVarp uint, CancellableVarp uintptr) int |
| 90 | purego.RegisterFunc(&rawCallback, x.xWriteFn) | 90 | purego.RegisterFunc(&rawCallback, x.xWriteFn) | ||
| 91 | return func(StreamVar *OutputStream, BufferVar []byte, CountVar uint, CancellableVar *Cancellable) int { | 91 | return func(StreamVar *OutputStream, BufferVar []byte, CountVar uint, CancellableVar *Cancellable) int { | ||
| 92 | - | var cerr *glib.Error | 92 | + | return rawCallback(StreamVar.GoPointer(), BufferVar, CountVar, CancellableVar.GoPointer()) |
| 93 | - | return rawCallback(StreamVar.GoPointer(), BufferVar, CountVar, CancellableVar.GoPointer(), &cerr) | |||
| 94 | } | 93 | } | ||
| 95 | } | 94 | } | ||
| 96 | 95 | ||||
| @@ -99,7 +98,7 @@ func (x *OutputStreamClass) OverrideSplice(cb func(*OutputStream, *InputStream, | |||||
| 99 | if cb == nil { | 98 | if cb == nil { | ||
| 100 | x.xSplice = 0 | 99 | x.xSplice = 0 | ||
| 101 | } else { | 100 | } else { | ||
| 102 | - | x.xSplice = purego.NewCallback(func(StreamVarp uintptr, SourceVarp uintptr, FlagsVarp OutputStreamSpliceFlags, CancellableVarp uintptr, cerrp **glib.Error) int { | 101 | + | x.xSplice = purego.NewCallback(func(StreamVarp uintptr, SourceVarp uintptr, FlagsVarp OutputStreamSpliceFlags, CancellableVarp uintptr) int { |
| 103 | return cb(OutputStreamNewFromInternalPtr(StreamVarp), InputStreamNewFromInternalPtr(SourceVarp), FlagsVarp, CancellableNewFromInternalPtr(CancellableVarp)) | 102 | return cb(OutputStreamNewFromInternalPtr(StreamVarp), InputStreamNewFromInternalPtr(SourceVarp), FlagsVarp, CancellableNewFromInternalPtr(CancellableVarp)) | ||
| 104 | }) | 103 | }) | ||
| 105 | } | 104 | } | ||
| @@ -110,11 +109,10 @@ func (x *OutputStreamClass) GetSplice() func(*OutputStream, *InputStream, Output | |||||
| 110 | if x.xSplice == 0 { | 109 | if x.xSplice == 0 { | ||
| 111 | return nil | 110 | return nil | ||
| 112 | } | 111 | } | ||
| 113 | - | var rawCallback func(StreamVarp uintptr, SourceVarp uintptr, FlagsVarp OutputStreamSpliceFlags, CancellableVarp uintptr, cerrp **glib.Error) int | 112 | + | var rawCallback func(StreamVarp uintptr, SourceVarp uintptr, FlagsVarp OutputStreamSpliceFlags, CancellableVarp uintptr) int |
| 114 | purego.RegisterFunc(&rawCallback, x.xSplice) | 113 | purego.RegisterFunc(&rawCallback, x.xSplice) | ||
| 115 | return func(StreamVar *OutputStream, SourceVar *InputStream, FlagsVar OutputStreamSpliceFlags, CancellableVar *Cancellable) int { | 114 | return func(StreamVar *OutputStream, SourceVar *InputStream, FlagsVar OutputStreamSpliceFlags, CancellableVar *Cancellable) int { | ||
| 116 | - | var cerr *glib.Error | 115 | + | return rawCallback(StreamVar.GoPointer(), SourceVar.GoPointer(), FlagsVar, CancellableVar.GoPointer()) |
| 117 | - | return rawCallback(StreamVar.GoPointer(), SourceVar.GoPointer(), FlagsVar, CancellableVar.GoPointer(), &cerr) | |||
| 118 | } | 116 | } | ||
| 119 | } | 117 | } | ||
| 120 | 118 | ||||
| @@ -123,7 +121,7 @@ func (x *OutputStreamClass) OverrideFlush(cb func(*OutputStream, *Cancellable) b | |||||
| 123 | if cb == nil { | 121 | if cb == nil { | ||
| 124 | x.xFlush = 0 | 122 | x.xFlush = 0 | ||
| 125 | } else { | 123 | } else { | ||
| 126 | - | x.xFlush = purego.NewCallback(func(StreamVarp uintptr, CancellableVarp uintptr, cerrp **glib.Error) bool { | 124 | + | x.xFlush = purego.NewCallback(func(StreamVarp uintptr, CancellableVarp uintptr) bool { |
| 127 | return cb(OutputStreamNewFromInternalPtr(StreamVarp), CancellableNewFromInternalPtr(CancellableVarp)) | 125 | return cb(OutputStreamNewFromInternalPtr(StreamVarp), CancellableNewFromInternalPtr(CancellableVarp)) | ||
| 128 | }) | 126 | }) | ||
| 129 | } | 127 | } | ||
| @@ -134,11 +132,10 @@ func (x *OutputStreamClass) GetFlush() func(*OutputStream, *Cancellable) bool { | |||||
| 134 | if x.xFlush == 0 { | 132 | if x.xFlush == 0 { | ||
| 135 | return nil | 133 | return nil | ||
| 136 | } | 134 | } | ||
| 137 | - | var rawCallback func(StreamVarp uintptr, CancellableVarp uintptr, cerrp **glib.Error) bool | 135 | + | var rawCallback func(StreamVarp uintptr, CancellableVarp uintptr) bool |
| 138 | purego.RegisterFunc(&rawCallback, x.xFlush) | 136 | purego.RegisterFunc(&rawCallback, x.xFlush) | ||
| 139 | return func(StreamVar *OutputStream, CancellableVar *Cancellable) bool { | 137 | return func(StreamVar *OutputStream, CancellableVar *Cancellable) bool { | ||
| 140 | - | var cerr *glib.Error | 138 | + | return rawCallback(StreamVar.GoPointer(), CancellableVar.GoPointer()) |
| 141 | - | return rawCallback(StreamVar.GoPointer(), CancellableVar.GoPointer(), &cerr) | |||
| 142 | } | 139 | } | ||
| 143 | } | 140 | } | ||
| 144 | 141 | ||||
| @@ -147,7 +144,7 @@ func (x *OutputStreamClass) OverrideCloseFn(cb func(*OutputStream, *Cancellable) | |||||
| 147 | if cb == nil { | 144 | if cb == nil { | ||
| 148 | x.xCloseFn = 0 | 145 | x.xCloseFn = 0 | ||
| 149 | } else { | 146 | } else { | ||
| 150 | - | x.xCloseFn = purego.NewCallback(func(StreamVarp uintptr, CancellableVarp uintptr, cerrp **glib.Error) bool { | 147 | + | x.xCloseFn = purego.NewCallback(func(StreamVarp uintptr, CancellableVarp uintptr) bool { |
| 151 | return cb(OutputStreamNewFromInternalPtr(StreamVarp), CancellableNewFromInternalPtr(CancellableVarp)) | 148 | return cb(OutputStreamNewFromInternalPtr(StreamVarp), CancellableNewFromInternalPtr(CancellableVarp)) | ||
| 152 | }) | 149 | }) | ||
| 153 | } | 150 | } | ||
| @@ -158,11 +155,10 @@ func (x *OutputStreamClass) GetCloseFn() func(*OutputStream, *Cancellable) bool | |||||
| 158 | if x.xCloseFn == 0 { | 155 | if x.xCloseFn == 0 { | ||
| 159 | return nil | 156 | return nil | ||
| 160 | } | 157 | } | ||
| 161 | - | var rawCallback func(StreamVarp uintptr, CancellableVarp uintptr, cerrp **glib.Error) bool | 158 | + | var rawCallback func(StreamVarp uintptr, CancellableVarp uintptr) bool |
| 162 | purego.RegisterFunc(&rawCallback, x.xCloseFn) | 159 | purego.RegisterFunc(&rawCallback, x.xCloseFn) | ||
| 163 | return func(StreamVar *OutputStream, CancellableVar *Cancellable) bool { | 160 | return func(StreamVar *OutputStream, CancellableVar *Cancellable) bool { | ||
| 164 | - | var cerr *glib.Error | 161 | + | return rawCallback(StreamVar.GoPointer(), CancellableVar.GoPointer()) |
| 165 | - | return rawCallback(StreamVar.GoPointer(), CancellableVar.GoPointer(), &cerr) | |||
| 166 | } | 162 | } | ||
| 167 | } | 163 | } | ||
| 168 | 164 | ||||
| @@ -194,7 +190,7 @@ func (x *OutputStreamClass) OverrideWriteFinish(cb func(*OutputStream, AsyncResu | |||||
| 194 | if cb == nil { | 190 | if cb == nil { | ||
| 195 | x.xWriteFinish = 0 | 191 | x.xWriteFinish = 0 | ||
| 196 | } else { | 192 | } else { | ||
| 197 | - | x.xWriteFinish = purego.NewCallback(func(StreamVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) int { | 193 | + | x.xWriteFinish = purego.NewCallback(func(StreamVarp uintptr, ResultVarp uintptr) int { |
| 198 | return cb(OutputStreamNewFromInternalPtr(StreamVarp), &AsyncResultBase{Ptr: ResultVarp}) | 194 | return cb(OutputStreamNewFromInternalPtr(StreamVarp), &AsyncResultBase{Ptr: ResultVarp}) | ||
| 199 | }) | 195 | }) | ||
| 200 | } | 196 | } | ||
| @@ -205,11 +201,10 @@ func (x *OutputStreamClass) GetWriteFinish() func(*OutputStream, AsyncResult) in | |||||
| 205 | if x.xWriteFinish == 0 { | 201 | if x.xWriteFinish == 0 { | ||
| 206 | return nil | 202 | return nil | ||
| 207 | } | 203 | } | ||
| 208 | - | var rawCallback func(StreamVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) int | 204 | + | var rawCallback func(StreamVarp uintptr, ResultVarp uintptr) int |
| 209 | purego.RegisterFunc(&rawCallback, x.xWriteFinish) | 205 | purego.RegisterFunc(&rawCallback, x.xWriteFinish) | ||
| 210 | return func(StreamVar *OutputStream, ResultVar AsyncResult) int { | 206 | return func(StreamVar *OutputStream, ResultVar AsyncResult) int { | ||
| 211 | - | var cerr *glib.Error | 207 | + | return rawCallback(StreamVar.GoPointer(), ResultVar.GoPointer()) |
| 212 | - | return rawCallback(StreamVar.GoPointer(), ResultVar.GoPointer(), &cerr) | |||
| 213 | } | 208 | } | ||
| 214 | } | 209 | } | ||
| 215 | 210 | ||||
| @@ -241,7 +236,7 @@ func (x *OutputStreamClass) OverrideSpliceFinish(cb func(*OutputStream, AsyncRes | |||||
| 241 | if cb == nil { | 236 | if cb == nil { | ||
| 242 | x.xSpliceFinish = 0 | 237 | x.xSpliceFinish = 0 | ||
| 243 | } else { | 238 | } else { | ||
| 244 | - | x.xSpliceFinish = purego.NewCallback(func(StreamVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) int { | 239 | + | x.xSpliceFinish = purego.NewCallback(func(StreamVarp uintptr, ResultVarp uintptr) int { |
| 245 | return cb(OutputStreamNewFromInternalPtr(StreamVarp), &AsyncResultBase{Ptr: ResultVarp}) | 240 | return cb(OutputStreamNewFromInternalPtr(StreamVarp), &AsyncResultBase{Ptr: ResultVarp}) | ||
| 246 | }) | 241 | }) | ||
| 247 | } | 242 | } | ||
| @@ -252,11 +247,10 @@ func (x *OutputStreamClass) GetSpliceFinish() func(*OutputStream, AsyncResult) i | |||||
| 252 | if x.xSpliceFinish == 0 { | 247 | if x.xSpliceFinish == 0 { | ||
| 253 | return nil | 248 | return nil | ||
| 254 | } | 249 | } | ||
| 255 | - | var rawCallback func(StreamVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) int | 250 | + | var rawCallback func(StreamVarp uintptr, ResultVarp uintptr) int |
| 256 | purego.RegisterFunc(&rawCallback, x.xSpliceFinish) | 251 | purego.RegisterFunc(&rawCallback, x.xSpliceFinish) | ||
| 257 | return func(StreamVar *OutputStream, ResultVar AsyncResult) int { | 252 | return func(StreamVar *OutputStream, ResultVar AsyncResult) int { | ||
| 258 | - | var cerr *glib.Error | 253 | + | return rawCallback(StreamVar.GoPointer(), ResultVar.GoPointer()) |
| 259 | - | return rawCallback(StreamVar.GoPointer(), ResultVar.GoPointer(), &cerr) | |||
| 260 | } | 254 | } | ||
| 261 | } | 255 | } | ||
| 262 | 256 | ||||
| @@ -288,7 +282,7 @@ func (x *OutputStreamClass) OverrideFlushFinish(cb func(*OutputStream, AsyncResu | |||||
| 288 | if cb == nil { | 282 | if cb == nil { | ||
| 289 | x.xFlushFinish = 0 | 283 | x.xFlushFinish = 0 | ||
| 290 | } else { | 284 | } else { | ||
| 291 | - | x.xFlushFinish = purego.NewCallback(func(StreamVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) bool { | 285 | + | x.xFlushFinish = purego.NewCallback(func(StreamVarp uintptr, ResultVarp uintptr) bool { |
| 292 | return cb(OutputStreamNewFromInternalPtr(StreamVarp), &AsyncResultBase{Ptr: ResultVarp}) | 286 | return cb(OutputStreamNewFromInternalPtr(StreamVarp), &AsyncResultBase{Ptr: ResultVarp}) | ||
| 293 | }) | 287 | }) | ||
| 294 | } | 288 | } | ||
| @@ -299,11 +293,10 @@ func (x *OutputStreamClass) GetFlushFinish() func(*OutputStream, AsyncResult) bo | |||||
| 299 | if x.xFlushFinish == 0 { | 293 | if x.xFlushFinish == 0 { | ||
| 300 | return nil | 294 | return nil | ||
| 301 | } | 295 | } | ||
| 302 | - | var rawCallback func(StreamVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) bool | 296 | + | var rawCallback func(StreamVarp uintptr, ResultVarp uintptr) bool |
| 303 | purego.RegisterFunc(&rawCallback, x.xFlushFinish) | 297 | purego.RegisterFunc(&rawCallback, x.xFlushFinish) | ||
| 304 | return func(StreamVar *OutputStream, ResultVar AsyncResult) bool { | 298 | return func(StreamVar *OutputStream, ResultVar AsyncResult) bool { | ||
| 305 | - | var cerr *glib.Error | 299 | + | return rawCallback(StreamVar.GoPointer(), ResultVar.GoPointer()) |
| 306 | - | return rawCallback(StreamVar.GoPointer(), ResultVar.GoPointer(), &cerr) | |||
| 307 | } | 300 | } | ||
| 308 | } | 301 | } | ||
| 309 | 302 | ||||
| @@ -335,7 +328,7 @@ func (x *OutputStreamClass) OverrideCloseFinish(cb func(*OutputStream, AsyncResu | |||||
| 335 | if cb == nil { | 328 | if cb == nil { | ||
| 336 | x.xCloseFinish = 0 | 329 | x.xCloseFinish = 0 | ||
| 337 | } else { | 330 | } else { | ||
| 338 | - | x.xCloseFinish = purego.NewCallback(func(StreamVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) bool { | 331 | + | x.xCloseFinish = purego.NewCallback(func(StreamVarp uintptr, ResultVarp uintptr) bool { |
| 339 | return cb(OutputStreamNewFromInternalPtr(StreamVarp), &AsyncResultBase{Ptr: ResultVarp}) | 332 | return cb(OutputStreamNewFromInternalPtr(StreamVarp), &AsyncResultBase{Ptr: ResultVarp}) | ||
| 340 | }) | 333 | }) | ||
| 341 | } | 334 | } | ||
| @@ -346,11 +339,10 @@ func (x *OutputStreamClass) GetCloseFinish() func(*OutputStream, AsyncResult) bo | |||||
| 346 | if x.xCloseFinish == 0 { | 339 | if x.xCloseFinish == 0 { | ||
| 347 | return nil | 340 | return nil | ||
| 348 | } | 341 | } | ||
| 349 | - | var rawCallback func(StreamVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) bool | 342 | + | var rawCallback func(StreamVarp uintptr, ResultVarp uintptr) bool |
| 350 | purego.RegisterFunc(&rawCallback, x.xCloseFinish) | 343 | purego.RegisterFunc(&rawCallback, x.xCloseFinish) | ||
| 351 | return func(StreamVar *OutputStream, ResultVar AsyncResult) bool { | 344 | return func(StreamVar *OutputStream, ResultVar AsyncResult) bool { | ||
| 352 | - | var cerr *glib.Error | 345 | + | return rawCallback(StreamVar.GoPointer(), ResultVar.GoPointer()) |
| 353 | - | return rawCallback(StreamVar.GoPointer(), ResultVar.GoPointer(), &cerr) | |||
| 354 | } | 346 | } | ||
| 355 | } | 347 | } | ||
| 356 | 348 | ||||
| @@ -359,7 +351,7 @@ func (x *OutputStreamClass) OverrideWritevFn(cb func(*OutputStream, []OutputVect | |||||
| 359 | if cb == nil { | 351 | if cb == nil { | ||
| 360 | x.xWritevFn = 0 | 352 | x.xWritevFn = 0 | ||
| 361 | } else { | 353 | } else { | ||
| 362 | - | x.xWritevFn = purego.NewCallback(func(StreamVarp uintptr, VectorsVarp []OutputVector, NVectorsVarp uint, BytesWrittenVarp *uint, CancellableVarp uintptr, cerrp **glib.Error) bool { | 354 | + | x.xWritevFn = purego.NewCallback(func(StreamVarp uintptr, VectorsVarp []OutputVector, NVectorsVarp uint, BytesWrittenVarp *uint, CancellableVarp uintptr) bool { |
| 363 | return cb(OutputStreamNewFromInternalPtr(StreamVarp), VectorsVarp, NVectorsVarp, BytesWrittenVarp, CancellableNewFromInternalPtr(CancellableVarp)) | 355 | return cb(OutputStreamNewFromInternalPtr(StreamVarp), VectorsVarp, NVectorsVarp, BytesWrittenVarp, CancellableNewFromInternalPtr(CancellableVarp)) | ||
| 364 | }) | 356 | }) | ||
| 365 | } | 357 | } | ||
| @@ -370,11 +362,10 @@ func (x *OutputStreamClass) GetWritevFn() func(*OutputStream, []OutputVector, ui | |||||
| 370 | if x.xWritevFn == 0 { | 362 | if x.xWritevFn == 0 { | ||
| 371 | return nil | 363 | return nil | ||
| 372 | } | 364 | } | ||
| 373 | - | var rawCallback func(StreamVarp uintptr, VectorsVarp []OutputVector, NVectorsVarp uint, BytesWrittenVarp *uint, CancellableVarp uintptr, cerrp **glib.Error) bool | 365 | + | var rawCallback func(StreamVarp uintptr, VectorsVarp []OutputVector, NVectorsVarp uint, BytesWrittenVarp *uint, CancellableVarp uintptr) bool |
| 374 | purego.RegisterFunc(&rawCallback, x.xWritevFn) | 366 | purego.RegisterFunc(&rawCallback, x.xWritevFn) | ||
| 375 | return func(StreamVar *OutputStream, VectorsVar []OutputVector, NVectorsVar uint, BytesWrittenVar *uint, CancellableVar *Cancellable) bool { | 367 | return func(StreamVar *OutputStream, VectorsVar []OutputVector, NVectorsVar uint, BytesWrittenVar *uint, CancellableVar *Cancellable) bool { | ||
| 376 | - | var cerr *glib.Error | 368 | + | return rawCallback(StreamVar.GoPointer(), VectorsVar, NVectorsVar, BytesWrittenVar, CancellableVar.GoPointer()) |
| 377 | - | return rawCallback(StreamVar.GoPointer(), VectorsVar, NVectorsVar, BytesWrittenVar, CancellableVar.GoPointer(), &cerr) | |||
| 378 | } | 369 | } | ||
| 379 | } | 370 | } | ||
| 380 | 371 | ||||
| @@ -406,7 +397,7 @@ func (x *OutputStreamClass) OverrideWritevFinish(cb func(*OutputStream, AsyncRes | |||||
| 406 | if cb == nil { | 397 | if cb == nil { | ||
| 407 | x.xWritevFinish = 0 | 398 | x.xWritevFinish = 0 | ||
| 408 | } else { | 399 | } else { | ||
| 409 | - | x.xWritevFinish = purego.NewCallback(func(StreamVarp uintptr, ResultVarp uintptr, BytesWrittenVarp *uint, cerrp **glib.Error) bool { | 400 | + | x.xWritevFinish = purego.NewCallback(func(StreamVarp uintptr, ResultVarp uintptr, BytesWrittenVarp *uint) bool { |
| 410 | return cb(OutputStreamNewFromInternalPtr(StreamVarp), &AsyncResultBase{Ptr: ResultVarp}, BytesWrittenVarp) | 401 | return cb(OutputStreamNewFromInternalPtr(StreamVarp), &AsyncResultBase{Ptr: ResultVarp}, BytesWrittenVarp) | ||
| 411 | }) | 402 | }) | ||
| 412 | } | 403 | } | ||
| @@ -417,11 +408,10 @@ func (x *OutputStreamClass) GetWritevFinish() func(*OutputStream, AsyncResult, * | |||||
| 417 | if x.xWritevFinish == 0 { | 408 | if x.xWritevFinish == 0 { | ||
| 418 | return nil | 409 | return nil | ||
| 419 | } | 410 | } | ||
| 420 | - | var rawCallback func(StreamVarp uintptr, ResultVarp uintptr, BytesWrittenVarp *uint, cerrp **glib.Error) bool | 411 | + | var rawCallback func(StreamVarp uintptr, ResultVarp uintptr, BytesWrittenVarp *uint) bool |
| 421 | purego.RegisterFunc(&rawCallback, x.xWritevFinish) | 412 | purego.RegisterFunc(&rawCallback, x.xWritevFinish) | ||
| 422 | return func(StreamVar *OutputStream, ResultVar AsyncResult, BytesWrittenVar *uint) bool { | 413 | return func(StreamVar *OutputStream, ResultVar AsyncResult, BytesWrittenVar *uint) bool { | ||
| 423 | - | var cerr *glib.Error | 414 | + | return rawCallback(StreamVar.GoPointer(), ResultVar.GoPointer(), BytesWrittenVar) |
| 424 | - | return rawCallback(StreamVar.GoPointer(), ResultVar.GoPointer(), BytesWrittenVar, &cerr) | |||
| 425 | } | 415 | } | ||
| 426 | } | 416 | } | ||
| 427 | 417 | ||||
| @@ -580,7 +570,6 @@ type OutputStream struct { | |||||
| 580 | var xOutputStreamGLibType func() types.GType | 570 | var xOutputStreamGLibType func() types.GType | ||
| 581 | 571 | ||||
| 582 | func OutputStreamGLibType() types.GType { | 572 | func OutputStreamGLibType() types.GType { | ||
| 583 | - | core.LazyRegister(&xOutputStreamGLibType, "GIO", "g_output_stream_get_type", false) | |||
| 584 | return xOutputStreamGLibType() | 573 | return xOutputStreamGLibType() | ||
| 585 | } | 574 | } | ||
| 586 | 575 | ||||
| @@ -594,8 +583,6 @@ var xOutputStreamClearPending func(uintptr) | |||||
| 594 | 583 | ||||
| 595 | // Clears the pending flag on @stream. | 584 | // Clears the pending flag on @stream. | ||
| 596 | func (x *OutputStream) ClearPending() { | 585 | func (x *OutputStream) ClearPending() { | ||
| 597 | - | core.LazyRegister(&xOutputStreamClearPending, "GIO", "g_output_stream_clear_pending", false) | |||
| 598 | - | ||||
| 599 | xOutputStreamClearPending(x.GoPointer()) | 586 | xOutputStreamClearPending(x.GoPointer()) | ||
| 600 | } | 587 | } | ||
| 601 | 588 | ||||
| @@ -631,7 +618,6 @@ var xOutputStreamClose func(uintptr, uintptr, **glib.Error) bool | |||||
| 631 | // cancellation (as with any error) there is no guarantee that all written | 618 | // cancellation (as with any error) there is no guarantee that all written | ||
| 632 | // data will reach the target. | 619 | // data will reach the target. | ||
| 633 | func (x *OutputStream) Close(CancellableVar *Cancellable) (bool, error) { | 620 | func (x *OutputStream) Close(CancellableVar *Cancellable) (bool, error) { | ||
| 634 | - | core.LazyRegister(&xOutputStreamClose, "GIO", "g_output_stream_close", false) | |||
| 635 | var cerr *glib.Error | 621 | var cerr *glib.Error | ||
| 636 | 622 | ||||
| 637 | cret := xOutputStreamClose(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | 623 | cret := xOutputStreamClose(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | ||
| @@ -654,8 +640,6 @@ var xOutputStreamCloseAsync func(uintptr, int, uintptr, uintptr, uintptr) | |||||
| 654 | // to implement asynchronicity, so they are optional for inheriting | 640 | // to implement asynchronicity, so they are optional for inheriting | ||
| 655 | // classes. However, if you override one you must override all. | 641 | // classes. However, if you override one you must override all. | ||
| 656 | func (x *OutputStream) CloseAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 642 | func (x *OutputStream) CloseAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 657 | - | core.LazyRegister(&xOutputStreamCloseAsync, "GIO", "g_output_stream_close_async", false) | |||
| 658 | - | ||||
| 659 | xOutputStreamCloseAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | 643 | xOutputStreamCloseAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | ||
| 660 | } | 644 | } | ||
| 661 | 645 | ||||
| @@ -663,7 +647,6 @@ var xOutputStreamCloseFinish func(uintptr, uintptr, **glib.Error) bool | |||||
| 663 | 647 | ||||
| 664 | // Closes an output stream. | 648 | // Closes an output stream. | ||
| 665 | func (x *OutputStream) CloseFinish(ResultVar AsyncResult) (bool, error) { | 649 | func (x *OutputStream) CloseFinish(ResultVar AsyncResult) (bool, error) { | ||
| 666 | - | core.LazyRegister(&xOutputStreamCloseFinish, "GIO", "g_output_stream_close_finish", false) | |||
| 667 | var cerr *glib.Error | 650 | var cerr *glib.Error | ||
| 668 | 651 | ||||
| 669 | cret := xOutputStreamCloseFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | 652 | cret := xOutputStreamCloseFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | ||
| @@ -685,7 +668,6 @@ var xOutputStreamFlush func(uintptr, uintptr, **glib.Error) bool | |||||
| 685 | // triggering the cancellable object from another thread. If the operation | 668 | // triggering the cancellable object from another thread. If the operation | ||
| 686 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. | 669 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. | ||
| 687 | func (x *OutputStream) Flush(CancellableVar *Cancellable) (bool, error) { | 670 | func (x *OutputStream) Flush(CancellableVar *Cancellable) (bool, error) { | ||
| 688 | - | core.LazyRegister(&xOutputStreamFlush, "GIO", "g_output_stream_flush", false) | |||
| 689 | var cerr *glib.Error | 671 | var cerr *glib.Error | ||
| 690 | 672 | ||||
| 691 | cret := xOutputStreamFlush(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | 673 | cret := xOutputStreamFlush(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | ||
| @@ -705,8 +687,6 @@ var xOutputStreamFlushAsync func(uintptr, int, uintptr, uintptr, uintptr) | |||||
| 705 | // called. You can then call g_output_stream_flush_finish() to get the | 687 | // called. You can then call g_output_stream_flush_finish() to get the | ||
| 706 | // result of the operation. | 688 | // result of the operation. | ||
| 707 | func (x *OutputStream) FlushAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 689 | func (x *OutputStream) FlushAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 708 | - | core.LazyRegister(&xOutputStreamFlushAsync, "GIO", "g_output_stream_flush_async", false) | |||
| 709 | - | ||||
| 710 | xOutputStreamFlushAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | 690 | xOutputStreamFlushAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | ||
| 711 | } | 691 | } | ||
| 712 | 692 | ||||
| @@ -714,7 +694,6 @@ var xOutputStreamFlushFinish func(uintptr, uintptr, **glib.Error) bool | |||||
| 714 | 694 | ||||
| 715 | // Finishes flushing an output stream. | 695 | // Finishes flushing an output stream. | ||
| 716 | func (x *OutputStream) FlushFinish(ResultVar AsyncResult) (bool, error) { | 696 | func (x *OutputStream) FlushFinish(ResultVar AsyncResult) (bool, error) { | ||
| 717 | - | core.LazyRegister(&xOutputStreamFlushFinish, "GIO", "g_output_stream_flush_finish", false) | |||
| 718 | var cerr *glib.Error | 697 | var cerr *glib.Error | ||
| 719 | 698 | ||||
| 720 | cret := xOutputStreamFlushFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | 699 | cret := xOutputStreamFlushFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | ||
| @@ -728,8 +707,6 @@ var xOutputStreamHasPending func(uintptr) bool | |||||
| 728 | 707 | ||||
| 729 | // Checks if an output stream has pending actions. | 708 | // Checks if an output stream has pending actions. | ||
| 730 | func (x *OutputStream) HasPending() bool { | 709 | func (x *OutputStream) HasPending() bool { | ||
| 731 | - | core.LazyRegister(&xOutputStreamHasPending, "GIO", "g_output_stream_has_pending", false) | |||
| 732 | - | ||||
| 733 | cret := xOutputStreamHasPending(x.GoPointer()) | 710 | cret := xOutputStreamHasPending(x.GoPointer()) | ||
| 734 | return cret | 711 | return cret | ||
| 735 | } | 712 | } | ||
| @@ -738,8 +715,6 @@ var xOutputStreamIsClosed func(uintptr) bool | |||||
| 738 | 715 | ||||
| 739 | // Checks if an output stream has already been closed. | 716 | // Checks if an output stream has already been closed. | ||
| 740 | func (x *OutputStream) IsClosed() bool { | 717 | func (x *OutputStream) IsClosed() bool { | ||
| 741 | - | core.LazyRegister(&xOutputStreamIsClosed, "GIO", "g_output_stream_is_closed", false) | |||
| 742 | - | ||||
| 743 | cret := xOutputStreamIsClosed(x.GoPointer()) | 718 | cret := xOutputStreamIsClosed(x.GoPointer()) | ||
| 744 | return cret | 719 | return cret | ||
| 745 | } | 720 | } | ||
| @@ -751,8 +726,6 @@ var xOutputStreamIsClosing func(uintptr) bool | |||||
| 751 | // flush (or other i/o operation) is called from within | 726 | // flush (or other i/o operation) is called from within | ||
| 752 | // the closing operation. | 727 | // the closing operation. | ||
| 753 | func (x *OutputStream) IsClosing() bool { | 728 | func (x *OutputStream) IsClosing() bool { | ||
| 754 | - | core.LazyRegister(&xOutputStreamIsClosing, "GIO", "g_output_stream_is_closing", false) | |||
| 755 | - | ||||
| 756 | cret := xOutputStreamIsClosing(x.GoPointer()) | 729 | cret := xOutputStreamIsClosing(x.GoPointer()) | ||
| 757 | return cret | 730 | return cret | ||
| 758 | } | 731 | } | ||
| @@ -772,8 +745,6 @@ var xOutputStreamPrintf func(uintptr, *uint, uintptr, **glib.Error, string, ...i | |||||
| 772 | // create you own printf()-like wrapper around g_output_stream_write() | 745 | // create you own printf()-like wrapper around g_output_stream_write() | ||
| 773 | // or g_output_stream_write_all(). | 746 | // or g_output_stream_write_all(). | ||
| 774 | func (x *OutputStream) Printf(BytesWrittenVar *uint, CancellableVar *Cancellable, ErrorVar **glib.Error, FormatVar string, varArgs ...interface{}) bool { | 747 | func (x *OutputStream) Printf(BytesWrittenVar *uint, CancellableVar *Cancellable, ErrorVar **glib.Error, FormatVar string, varArgs ...interface{}) bool { | ||
| 775 | - | core.LazyRegister(&xOutputStreamPrintf, "GIO", "g_output_stream_printf", false) | |||
| 776 | - | ||||
| 777 | cret := xOutputStreamPrintf(x.GoPointer(), BytesWrittenVar, CancellableVar.GoPointer(), ErrorVar, FormatVar, varArgs...) | 748 | cret := xOutputStreamPrintf(x.GoPointer(), BytesWrittenVar, CancellableVar.GoPointer(), ErrorVar, FormatVar, varArgs...) | ||
| 778 | return cret | 749 | return cret | ||
| 779 | } | 750 | } | ||
| @@ -784,7 +755,6 @@ var xOutputStreamSetPending func(uintptr, **glib.Error) bool | |||||
| 784 | // already set or @stream is closed, it will return %FALSE and set | 755 | // already set or @stream is closed, it will return %FALSE and set | ||
| 785 | // @error. | 756 | // @error. | ||
| 786 | func (x *OutputStream) SetPending() (bool, error) { | 757 | func (x *OutputStream) SetPending() (bool, error) { | ||
| 787 | - | core.LazyRegister(&xOutputStreamSetPending, "GIO", "g_output_stream_set_pending", false) | |||
| 788 | var cerr *glib.Error | 758 | var cerr *glib.Error | ||
| 789 | 759 | ||||
| 790 | cret := xOutputStreamSetPending(x.GoPointer(), &cerr) | 760 | cret := xOutputStreamSetPending(x.GoPointer(), &cerr) | ||
| @@ -798,7 +768,6 @@ var xOutputStreamSplice func(uintptr, uintptr, OutputStreamSpliceFlags, uintptr, | |||||
| 798 | 768 | ||||
| 799 | // Splices an input stream into an output stream. | 769 | // Splices an input stream into an output stream. | ||
| 800 | func (x *OutputStream) Splice(SourceVar *InputStream, FlagsVar OutputStreamSpliceFlags, CancellableVar *Cancellable) (int, error) { | 770 | func (x *OutputStream) Splice(SourceVar *InputStream, FlagsVar OutputStreamSpliceFlags, CancellableVar *Cancellable) (int, error) { | ||
| 801 | - | core.LazyRegister(&xOutputStreamSplice, "GIO", "g_output_stream_splice", false) | |||
| 802 | var cerr *glib.Error | 771 | var cerr *glib.Error | ||
| 803 | 772 | ||||
| 804 | cret := xOutputStreamSplice(x.GoPointer(), SourceVar.GoPointer(), FlagsVar, CancellableVar.GoPointer(), &cerr) | 773 | cret := xOutputStreamSplice(x.GoPointer(), SourceVar.GoPointer(), FlagsVar, CancellableVar.GoPointer(), &cerr) | ||
| @@ -818,8 +787,6 @@ var xOutputStreamSpliceAsync func(uintptr, uintptr, OutputStreamSpliceFlags, int | |||||
| 818 | // For the synchronous, blocking version of this function, see | 787 | // For the synchronous, blocking version of this function, see | ||
| 819 | // g_output_stream_splice(). | 788 | // g_output_stream_splice(). | ||
| 820 | func (x *OutputStream) SpliceAsync(SourceVar *InputStream, FlagsVar OutputStreamSpliceFlags, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 789 | func (x *OutputStream) SpliceAsync(SourceVar *InputStream, FlagsVar OutputStreamSpliceFlags, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 821 | - | core.LazyRegister(&xOutputStreamSpliceAsync, "GIO", "g_output_stream_splice_async", false) | |||
| 822 | - | ||||
| 823 | xOutputStreamSpliceAsync(x.GoPointer(), SourceVar.GoPointer(), FlagsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | 790 | xOutputStreamSpliceAsync(x.GoPointer(), SourceVar.GoPointer(), FlagsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | ||
| 824 | } | 791 | } | ||
| 825 | 792 | ||||
| @@ -827,7 +794,6 @@ var xOutputStreamSpliceFinish func(uintptr, uintptr, **glib.Error) int | |||||
| 827 | 794 | ||||
| 828 | // Finishes an asynchronous stream splice operation. | 795 | // Finishes an asynchronous stream splice operation. | ||
| 829 | func (x *OutputStream) SpliceFinish(ResultVar AsyncResult) (int, error) { | 796 | func (x *OutputStream) SpliceFinish(ResultVar AsyncResult) (int, error) { | ||
| 830 | - | core.LazyRegister(&xOutputStreamSpliceFinish, "GIO", "g_output_stream_splice_finish", false) | |||
| 831 | var cerr *glib.Error | 797 | var cerr *glib.Error | ||
| 832 | 798 | ||||
| 833 | cret := xOutputStreamSpliceFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | 799 | cret := xOutputStreamSpliceFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | ||
| @@ -852,8 +818,6 @@ var xOutputStreamVprintf func(uintptr, *uint, uintptr, **glib.Error, string, []i | |||||
| 852 | // create you own printf()-like wrapper around g_output_stream_write() | 818 | // create you own printf()-like wrapper around g_output_stream_write() | ||
| 853 | // or g_output_stream_write_all(). | 819 | // or g_output_stream_write_all(). | ||
| 854 | func (x *OutputStream) Vprintf(BytesWrittenVar *uint, CancellableVar *Cancellable, ErrorVar **glib.Error, FormatVar string, ArgsVar []interface{}) bool { | 820 | func (x *OutputStream) Vprintf(BytesWrittenVar *uint, CancellableVar *Cancellable, ErrorVar **glib.Error, FormatVar string, ArgsVar []interface{}) bool { | ||
| 855 | - | core.LazyRegister(&xOutputStreamVprintf, "GIO", "g_output_stream_vprintf", false) | |||
| 856 | - | ||||
| 857 | cret := xOutputStreamVprintf(x.GoPointer(), BytesWrittenVar, CancellableVar.GoPointer(), ErrorVar, FormatVar, ArgsVar) | 821 | cret := xOutputStreamVprintf(x.GoPointer(), BytesWrittenVar, CancellableVar.GoPointer(), ErrorVar, FormatVar, ArgsVar) | ||
| 858 | return cret | 822 | return cret | ||
| 859 | } | 823 | } | ||
| @@ -881,7 +845,6 @@ var xOutputStreamWrite func(uintptr, []byte, uint, uintptr, **glib.Error) int | |||||
| 881 | // | 845 | // | ||
| 882 | // On error -1 is returned and @error is set accordingly. | 846 | // On error -1 is returned and @error is set accordingly. | ||
| 883 | func (x *OutputStream) Write(BufferVar []byte, CountVar uint, CancellableVar *Cancellable) (int, error) { | 847 | func (x *OutputStream) Write(BufferVar []byte, CountVar uint, CancellableVar *Cancellable) (int, error) { | ||
| 884 | - | core.LazyRegister(&xOutputStreamWrite, "GIO", "g_output_stream_write", false) | |||
| 885 | var cerr *glib.Error | 848 | var cerr *glib.Error | ||
| 886 | 849 | ||||
| 887 | cret := xOutputStreamWrite(x.GoPointer(), BufferVar, CountVar, CancellableVar.GoPointer(), &cerr) | 850 | cret := xOutputStreamWrite(x.GoPointer(), BufferVar, CountVar, CancellableVar.GoPointer(), &cerr) | ||
| @@ -913,7 +876,6 @@ var xOutputStreamWriteAll func(uintptr, []byte, uint, *uint, uintptr, **glib.Err | |||||
| 913 | // language then you must write your own loop around | 876 | // language then you must write your own loop around | ||
| 914 | // g_output_stream_write(). | 877 | // g_output_stream_write(). | ||
| 915 | func (x *OutputStream) WriteAll(BufferVar []byte, CountVar uint, BytesWrittenVar *uint, CancellableVar *Cancellable) (bool, error) { | 878 | func (x *OutputStream) WriteAll(BufferVar []byte, CountVar uint, BytesWrittenVar *uint, CancellableVar *Cancellable) (bool, error) { | ||
| 916 | - | core.LazyRegister(&xOutputStreamWriteAll, "GIO", "g_output_stream_write_all", false) | |||
| 917 | var cerr *glib.Error | 879 | var cerr *glib.Error | ||
| 918 | 880 | ||||
| 919 | cret := xOutputStreamWriteAll(x.GoPointer(), BufferVar, CountVar, BytesWrittenVar, CancellableVar.GoPointer(), &cerr) | 881 | cret := xOutputStreamWriteAll(x.GoPointer(), BufferVar, CountVar, BytesWrittenVar, CancellableVar.GoPointer(), &cerr) | ||
| @@ -941,8 +903,6 @@ var xOutputStreamWriteAllAsync func(uintptr, []byte, uint, int, uintptr, uintptr | |||||
| 941 | // Note that no copy of @buffer will be made, so it must stay valid | 903 | // Note that no copy of @buffer will be made, so it must stay valid | ||
| 942 | // until @callback is called. | 904 | // until @callback is called. | ||
| 943 | func (x *OutputStream) WriteAllAsync(BufferVar []byte, CountVar uint, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 905 | func (x *OutputStream) WriteAllAsync(BufferVar []byte, CountVar uint, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 944 | - | core.LazyRegister(&xOutputStreamWriteAllAsync, "GIO", "g_output_stream_write_all_async", false) | |||
| 945 | - | ||||
| 946 | xOutputStreamWriteAllAsync(x.GoPointer(), BufferVar, CountVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | 906 | xOutputStreamWriteAllAsync(x.GoPointer(), BufferVar, CountVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | ||
| 947 | } | 907 | } | ||
| 948 | 908 | ||||
| @@ -959,7 +919,6 @@ var xOutputStreamWriteAllFinish func(uintptr, uintptr, *uint, **glib.Error) bool | |||||
| 959 | // language then you must write your own loop around | 919 | // language then you must write your own loop around | ||
| 960 | // g_output_stream_write_async(). | 920 | // g_output_stream_write_async(). | ||
| 961 | func (x *OutputStream) WriteAllFinish(ResultVar AsyncResult, BytesWrittenVar *uint) (bool, error) { | 921 | func (x *OutputStream) WriteAllFinish(ResultVar AsyncResult, BytesWrittenVar *uint) (bool, error) { | ||
| 962 | - | core.LazyRegister(&xOutputStreamWriteAllFinish, "GIO", "g_output_stream_write_all_finish", false) | |||
| 963 | var cerr *glib.Error | 922 | var cerr *glib.Error | ||
| 964 | 923 | ||||
| 965 | cret := xOutputStreamWriteAllFinish(x.GoPointer(), ResultVar.GoPointer(), BytesWrittenVar, &cerr) | 924 | cret := xOutputStreamWriteAllFinish(x.GoPointer(), ResultVar.GoPointer(), BytesWrittenVar, &cerr) | ||
| @@ -1007,8 +966,6 @@ var xOutputStreamWriteAsync func(uintptr, []byte, uint, int, uintptr, uintptr, u | |||||
| 1007 | // for a #GBytes version that will automatically hold a reference to | 966 | // for a #GBytes version that will automatically hold a reference to | ||
| 1008 | // the contents (without copying) for the duration of the call. | 967 | // the contents (without copying) for the duration of the call. | ||
| 1009 | func (x *OutputStream) WriteAsync(BufferVar []byte, CountVar uint, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 968 | func (x *OutputStream) WriteAsync(BufferVar []byte, CountVar uint, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 1010 | - | core.LazyRegister(&xOutputStreamWriteAsync, "GIO", "g_output_stream_write_async", false) | |||
| 1011 | - | ||||
| 1012 | xOutputStreamWriteAsync(x.GoPointer(), BufferVar, CountVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | 969 | xOutputStreamWriteAsync(x.GoPointer(), BufferVar, CountVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | ||
| 1013 | } | 970 | } | ||
| 1014 | 971 | ||||
| @@ -1026,7 +983,6 @@ var xOutputStreamWriteBytes func(uintptr, *glib.Bytes, uintptr, **glib.Error) in | |||||
| 1026 | // #GBytes instance multiple times potentially can result in duplicated | 983 | // #GBytes instance multiple times potentially can result in duplicated | ||
| 1027 | // data in the output stream. | 984 | // data in the output stream. | ||
| 1028 | func (x *OutputStream) WriteBytes(BytesVar *glib.Bytes, CancellableVar *Cancellable) (int, error) { | 985 | func (x *OutputStream) WriteBytes(BytesVar *glib.Bytes, CancellableVar *Cancellable) (int, error) { | ||
| 1029 | - | core.LazyRegister(&xOutputStreamWriteBytes, "GIO", "g_output_stream_write_bytes", false) | |||
| 1030 | var cerr *glib.Error | 986 | var cerr *glib.Error | ||
| 1031 | 987 | ||||
| 1032 | cret := xOutputStreamWriteBytes(x.GoPointer(), BytesVar, CancellableVar.GoPointer(), &cerr) | 988 | cret := xOutputStreamWriteBytes(x.GoPointer(), BytesVar, CancellableVar.GoPointer(), &cerr) | ||
| @@ -1052,8 +1008,6 @@ var xOutputStreamWriteBytesAsync func(uintptr, *glib.Bytes, int, uintptr, uintpt | |||||
| 1052 | // For the synchronous, blocking version of this function, see | 1008 | // For the synchronous, blocking version of this function, see | ||
| 1053 | // g_output_stream_write_bytes(). | 1009 | // g_output_stream_write_bytes(). | ||
| 1054 | func (x *OutputStream) WriteBytesAsync(BytesVar *glib.Bytes, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 1010 | func (x *OutputStream) WriteBytesAsync(BytesVar *glib.Bytes, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 1055 | - | core.LazyRegister(&xOutputStreamWriteBytesAsync, "GIO", "g_output_stream_write_bytes_async", false) | |||
| 1056 | - | ||||
| 1057 | xOutputStreamWriteBytesAsync(x.GoPointer(), BytesVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | 1011 | xOutputStreamWriteBytesAsync(x.GoPointer(), BytesVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | ||
| 1058 | } | 1012 | } | ||
| 1059 | 1013 | ||||
| @@ -1061,7 +1015,6 @@ var xOutputStreamWriteBytesFinish func(uintptr, uintptr, **glib.Error) int | |||||
| 1061 | 1015 | ||||
| 1062 | // Finishes a stream write-from-#GBytes operation. | 1016 | // Finishes a stream write-from-#GBytes operation. | ||
| 1063 | func (x *OutputStream) WriteBytesFinish(ResultVar AsyncResult) (int, error) { | 1017 | func (x *OutputStream) WriteBytesFinish(ResultVar AsyncResult) (int, error) { | ||
| 1064 | - | core.LazyRegister(&xOutputStreamWriteBytesFinish, "GIO", "g_output_stream_write_bytes_finish", false) | |||
| 1065 | var cerr *glib.Error | 1018 | var cerr *glib.Error | ||
| 1066 | 1019 | ||||
| 1067 | cret := xOutputStreamWriteBytesFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | 1020 | cret := xOutputStreamWriteBytesFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | ||
| @@ -1075,7 +1028,6 @@ var xOutputStreamWriteFinish func(uintptr, uintptr, **glib.Error) int | |||||
| 1075 | 1028 | ||||
| 1076 | // Finishes a stream write operation. | 1029 | // Finishes a stream write operation. | ||
| 1077 | func (x *OutputStream) WriteFinish(ResultVar AsyncResult) (int, error) { | 1030 | func (x *OutputStream) WriteFinish(ResultVar AsyncResult) (int, error) { | ||
| 1078 | - | core.LazyRegister(&xOutputStreamWriteFinish, "GIO", "g_output_stream_write_finish", false) | |||
| 1079 | var cerr *glib.Error | 1031 | var cerr *glib.Error | ||
| 1080 | 1032 | ||||
| 1081 | cret := xOutputStreamWriteFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | 1033 | cret := xOutputStreamWriteFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | ||
| @@ -1111,7 +1063,6 @@ var xOutputStreamWritev func(uintptr, []OutputVector, uint, *uint, uintptr, **gl | |||||
| 1111 | // are exceeded. For example, when writing to a local file on UNIX platforms, | 1063 | // are exceeded. For example, when writing to a local file on UNIX platforms, | ||
| 1112 | // the aggregate buffer size must not exceed %G_MAXSSIZE bytes. | 1064 | // the aggregate buffer size must not exceed %G_MAXSSIZE bytes. | ||
| 1113 | func (x *OutputStream) Writev(VectorsVar []OutputVector, NVectorsVar uint, BytesWrittenVar *uint, CancellableVar *Cancellable) (bool, error) { | 1065 | func (x *OutputStream) Writev(VectorsVar []OutputVector, NVectorsVar uint, BytesWrittenVar *uint, CancellableVar *Cancellable) (bool, error) { | ||
| 1114 | - | core.LazyRegister(&xOutputStreamWritev, "GIO", "g_output_stream_writev", false) | |||
| 1115 | var cerr *glib.Error | 1066 | var cerr *glib.Error | ||
| 1116 | 1067 | ||||
| 1117 | cret := xOutputStreamWritev(x.GoPointer(), VectorsVar, NVectorsVar, BytesWrittenVar, CancellableVar.GoPointer(), &cerr) | 1068 | cret := xOutputStreamWritev(x.GoPointer(), VectorsVar, NVectorsVar, BytesWrittenVar, CancellableVar.GoPointer(), &cerr) | ||
| @@ -1146,7 +1097,6 @@ var xOutputStreamWritevAll func(uintptr, []OutputVector, uint, *uint, uintptr, * | |||||
| 1146 | // The content of the individual elements of @vectors might be changed by this | 1097 | // The content of the individual elements of @vectors might be changed by this | ||
| 1147 | // function. | 1098 | // function. | ||
| 1148 | func (x *OutputStream) WritevAll(VectorsVar []OutputVector, NVectorsVar uint, BytesWrittenVar *uint, CancellableVar *Cancellable) (bool, error) { | 1099 | func (x *OutputStream) WritevAll(VectorsVar []OutputVector, NVectorsVar uint, BytesWrittenVar *uint, CancellableVar *Cancellable) (bool, error) { | ||
| 1149 | - | core.LazyRegister(&xOutputStreamWritevAll, "GIO", "g_output_stream_writev_all", false) | |||
| 1150 | var cerr *glib.Error | 1100 | var cerr *glib.Error | ||
| 1151 | 1101 | ||||
| 1152 | cret := xOutputStreamWritevAll(x.GoPointer(), VectorsVar, NVectorsVar, BytesWrittenVar, CancellableVar.GoPointer(), &cerr) | 1102 | cret := xOutputStreamWritevAll(x.GoPointer(), VectorsVar, NVectorsVar, BytesWrittenVar, CancellableVar.GoPointer(), &cerr) | ||
| @@ -1175,8 +1125,6 @@ var xOutputStreamWritevAllAsync func(uintptr, []OutputVector, uint, int, uintptr | |||||
| 1175 | // until @callback is called. The content of the individual elements | 1125 | // until @callback is called. The content of the individual elements | ||
| 1176 | // of @vectors might be changed by this function. | 1126 | // of @vectors might be changed by this function. | ||
| 1177 | func (x *OutputStream) WritevAllAsync(VectorsVar []OutputVector, NVectorsVar uint, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 1127 | func (x *OutputStream) WritevAllAsync(VectorsVar []OutputVector, NVectorsVar uint, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 1178 | - | core.LazyRegister(&xOutputStreamWritevAllAsync, "GIO", "g_output_stream_writev_all_async", false) | |||
| 1179 | - | ||||
| 1180 | xOutputStreamWritevAllAsync(x.GoPointer(), VectorsVar, NVectorsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | 1128 | xOutputStreamWritevAllAsync(x.GoPointer(), VectorsVar, NVectorsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | ||
| 1181 | } | 1129 | } | ||
| 1182 | 1130 | ||||
| @@ -1193,7 +1141,6 @@ var xOutputStreamWritevAllFinish func(uintptr, uintptr, *uint, **glib.Error) boo | |||||
| 1193 | // language then you must write your own loop around | 1141 | // language then you must write your own loop around | ||
| 1194 | // g_output_stream_writev_async(). | 1142 | // g_output_stream_writev_async(). | ||
| 1195 | func (x *OutputStream) WritevAllFinish(ResultVar AsyncResult, BytesWrittenVar *uint) (bool, error) { | 1143 | func (x *OutputStream) WritevAllFinish(ResultVar AsyncResult, BytesWrittenVar *uint) (bool, error) { | ||
| 1196 | - | core.LazyRegister(&xOutputStreamWritevAllFinish, "GIO", "g_output_stream_writev_all_finish", false) | |||
| 1197 | var cerr *glib.Error | 1144 | var cerr *glib.Error | ||
| 1198 | 1145 | ||||
| 1199 | cret := xOutputStreamWritevAllFinish(x.GoPointer(), ResultVar.GoPointer(), BytesWrittenVar, &cerr) | 1146 | cret := xOutputStreamWritevAllFinish(x.GoPointer(), ResultVar.GoPointer(), BytesWrittenVar, &cerr) | ||
| @@ -1236,8 +1183,6 @@ var xOutputStreamWritevAsync func(uintptr, []OutputVector, uint, int, uintptr, u | |||||
| 1236 | // Note that no copy of @vectors will be made, so it must stay valid | 1183 | // Note that no copy of @vectors will be made, so it must stay valid | ||
| 1237 | // until @callback is called. | 1184 | // until @callback is called. | ||
| 1238 | func (x *OutputStream) WritevAsync(VectorsVar []OutputVector, NVectorsVar uint, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 1185 | func (x *OutputStream) WritevAsync(VectorsVar []OutputVector, NVectorsVar uint, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 1239 | - | core.LazyRegister(&xOutputStreamWritevAsync, "GIO", "g_output_stream_writev_async", false) | |||
| 1240 | - | ||||
| 1241 | xOutputStreamWritevAsync(x.GoPointer(), VectorsVar, NVectorsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | 1186 | xOutputStreamWritevAsync(x.GoPointer(), VectorsVar, NVectorsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | ||
| 1242 | } | 1187 | } | ||
| 1243 | 1188 | ||||
| @@ -1245,7 +1190,6 @@ var xOutputStreamWritevFinish func(uintptr, uintptr, *uint, **glib.Error) bool | |||||
| 1245 | 1190 | ||||
| 1246 | // Finishes a stream writev operation. | 1191 | // Finishes a stream writev operation. | ||
| 1247 | func (x *OutputStream) WritevFinish(ResultVar AsyncResult, BytesWrittenVar *uint) (bool, error) { | 1192 | func (x *OutputStream) WritevFinish(ResultVar AsyncResult, BytesWrittenVar *uint) (bool, error) { | ||
| 1248 | - | core.LazyRegister(&xOutputStreamWritevFinish, "GIO", "g_output_stream_writev_finish", false) | |||
| 1249 | var cerr *glib.Error | 1193 | var cerr *glib.Error | ||
| 1250 | 1194 | ||||
| 1251 | cret := xOutputStreamWritevFinish(x.GoPointer(), ResultVar.GoPointer(), BytesWrittenVar, &cerr) | 1195 | cret := xOutputStreamWritevFinish(x.GoPointer(), ResultVar.GoPointer(), BytesWrittenVar, &cerr) | ||
| @@ -1269,4 +1213,46 @@ func (c *OutputStream) SetGoPointer(ptr uintptr) { | |||||
| 1269 | func init() { | 1213 | func init() { | ||
| 1270 | core.SetPackageName("GIO", "gio-2.0") | 1214 | core.SetPackageName("GIO", "gio-2.0") | ||
| 1271 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | 1215 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | ||
| 1216 | + | var libs []uintptr | |||
| 1217 | + | for _, libPath := range core.GetPaths("GIO") { | |||
| 1218 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 1219 | + | if err != nil { | |||
| 1220 | + | panic(err) | |||
| 1221 | + | } | |||
| 1222 | + | libs = append(libs, lib) | |||
| 1223 | + | } | |||
| 1224 | + | ||||
| 1225 | + | core.PuregoSafeRegister(&xOutputStreamGLibType, libs, "g_output_stream_get_type") | |||
| 1226 | + | ||||
| 1227 | + | core.PuregoSafeRegister(&xOutputStreamClearPending, libs, "g_output_stream_clear_pending") | |||
| 1228 | + | core.PuregoSafeRegister(&xOutputStreamClose, libs, "g_output_stream_close") | |||
| 1229 | + | core.PuregoSafeRegister(&xOutputStreamCloseAsync, libs, "g_output_stream_close_async") | |||
| 1230 | + | core.PuregoSafeRegister(&xOutputStreamCloseFinish, libs, "g_output_stream_close_finish") | |||
| 1231 | + | core.PuregoSafeRegister(&xOutputStreamFlush, libs, "g_output_stream_flush") | |||
| 1232 | + | core.PuregoSafeRegister(&xOutputStreamFlushAsync, libs, "g_output_stream_flush_async") | |||
| 1233 | + | core.PuregoSafeRegister(&xOutputStreamFlushFinish, libs, "g_output_stream_flush_finish") | |||
| 1234 | + | core.PuregoSafeRegister(&xOutputStreamHasPending, libs, "g_output_stream_has_pending") | |||
| 1235 | + | core.PuregoSafeRegister(&xOutputStreamIsClosed, libs, "g_output_stream_is_closed") | |||
| 1236 | + | core.PuregoSafeRegister(&xOutputStreamIsClosing, libs, "g_output_stream_is_closing") | |||
| 1237 | + | core.PuregoSafeRegister(&xOutputStreamPrintf, libs, "g_output_stream_printf") | |||
| 1238 | + | core.PuregoSafeRegister(&xOutputStreamSetPending, libs, "g_output_stream_set_pending") | |||
| 1239 | + | core.PuregoSafeRegister(&xOutputStreamSplice, libs, "g_output_stream_splice") | |||
| 1240 | + | core.PuregoSafeRegister(&xOutputStreamSpliceAsync, libs, "g_output_stream_splice_async") | |||
| 1241 | + | core.PuregoSafeRegister(&xOutputStreamSpliceFinish, libs, "g_output_stream_splice_finish") | |||
| 1242 | + | core.PuregoSafeRegister(&xOutputStreamVprintf, libs, "g_output_stream_vprintf") | |||
| 1243 | + | core.PuregoSafeRegister(&xOutputStreamWrite, libs, "g_output_stream_write") | |||
| 1244 | + | core.PuregoSafeRegister(&xOutputStreamWriteAll, libs, "g_output_stream_write_all") | |||
| 1245 | + | core.PuregoSafeRegister(&xOutputStreamWriteAllAsync, libs, "g_output_stream_write_all_async") | |||
| 1246 | + | core.PuregoSafeRegister(&xOutputStreamWriteAllFinish, libs, "g_output_stream_write_all_finish") | |||
| 1247 | + | core.PuregoSafeRegister(&xOutputStreamWriteAsync, libs, "g_output_stream_write_async") | |||
| 1248 | + | core.PuregoSafeRegister(&xOutputStreamWriteBytes, libs, "g_output_stream_write_bytes") | |||
| 1249 | + | core.PuregoSafeRegister(&xOutputStreamWriteBytesAsync, libs, "g_output_stream_write_bytes_async") | |||
| 1250 | + | core.PuregoSafeRegister(&xOutputStreamWriteBytesFinish, libs, "g_output_stream_write_bytes_finish") | |||
| 1251 | + | core.PuregoSafeRegister(&xOutputStreamWriteFinish, libs, "g_output_stream_write_finish") | |||
| 1252 | + | core.PuregoSafeRegister(&xOutputStreamWritev, libs, "g_output_stream_writev") | |||
| 1253 | + | core.PuregoSafeRegister(&xOutputStreamWritevAll, libs, "g_output_stream_writev_all") | |||
| 1254 | + | core.PuregoSafeRegister(&xOutputStreamWritevAllAsync, libs, "g_output_stream_writev_all_async") | |||
| 1255 | + | core.PuregoSafeRegister(&xOutputStreamWritevAllFinish, libs, "g_output_stream_writev_all_finish") | |||
| 1256 | + | core.PuregoSafeRegister(&xOutputStreamWritevAsync, libs, "g_output_stream_writev_async") | |||
| 1257 | + | core.PuregoSafeRegister(&xOutputStreamWritevFinish, libs, "g_output_stream_writev_finish") | |||
| 1272 | } | 1258 | } | ||