Merge pull request #349 from bnema/fix/rollback-lazy-puregotk
fix(deps): emergency rollback puregotk lazy registration regression
905 files · +25263 -27842
M go.mod +1 -1
| @@ -11,7 +11,7 @@ require ( | |||
| 11 | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | |
| 12 | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | |
| 13 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | |
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | |
| 14 | + | github.com/bnema/puregotk v0.7.0 | |
| 15 | 15 | github.com/charmbracelet/bubbles v1.0.0 | |
| 16 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | |
| 17 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | |
| @@ -11,7 +11,7 @@ require ( | |||||
| 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | ||
| 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | ||
| 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | ||
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | 14 | + | github.com/bnema/puregotk v0.7.0 |
| 15 | github.com/charmbracelet/bubbles v1.0.0 | 15 | github.com/charmbracelet/bubbles v1.0.0 | ||
| 16 | github.com/charmbracelet/bubbletea v1.3.10 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | ||
| 17 | github.com/charmbracelet/lipgloss v1.1.0 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | ||
M go.sum +0 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/internal/core/core.go +4 -197 generated file: collapsed
M vendor/github.com/bnema/puregotk/pkg/core/core.go +0 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-dialog.go +64 -99 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-window.go +62 -95 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-accent-color.go +15 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-action-row.go +29 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-alert-dialog.go +47 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-target.go +27 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-util.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation.go +26 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application-window.go +22 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-avatar.go +25 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-banner.go +26 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bin.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bottom-sheet.go +38 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint-bin.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint.go +37 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-content.go +22 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-row.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-dots.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-lines.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel.go +37 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-layout.go +20 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-scrollable.go +22 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp.go +22 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-combo-row.go +33 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-dialog.go +38 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-easing.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-entry-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-enum-list-model.go +22 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-expander-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-flap.go +48 -61 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-fold-threshold-policy.go +1 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-header-bar.go +33 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-inline-view-switcher.go +24 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout-slot.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout.go +17 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-leaflet.go +56 -69 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-length-unit.go +14 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-main.go +15 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-message-dialog.go +44 -63 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-multi-layout-view.go +23 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-direction.go +1 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-split-view.go +32 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-view.go +49 -60 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-overlay-split-view.go +38 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-password-entry-row.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-dialog.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-group.go +26 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-page.go +33 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-row.go +22 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-window.go +29 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcut-label.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-dialog.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-item.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-section.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-item.go +37 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-section.go +27 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar.go +39 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spin-row.go +34 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner-paintable.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-split-button.go +34 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-animation.go +30 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-params.go +21 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-squeezer.go +44 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-status-page.go +24 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-style-manager.go +28 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipe-tracker.go +30 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipeable.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-switch-row.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-bar.go +32 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-button.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-overview.go +37 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-view.go +87 -123 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-timed-animation.go +28 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast-overlay.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast.go +36 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toggle-group.go +51 -64 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toolbar-view.go +35 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-version.go +16 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-stack.go +62 -78 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-bar.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-sidebar.go +22 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-title.go +23 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher.go +20 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window-title.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window.go +22 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-box.go +46 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-layout.go +46 -57 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/cairo/main.go +79 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkapplaunchcontext.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairo.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairocontext.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcicpparams.go +25 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkclipboard.go +32 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcolorstate.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentdeserializer.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentformats.go +31 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentprovider.go +28 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentserializer.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcursor.go +21 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevice.go +33 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicepad.go +22 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicetool.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplay.go +43 -51 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplaymanager.go +20 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexture.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexturebuilder.go +41 -53 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrag.go +28 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurface.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurfacesize.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrawcontext.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrop.go +24 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkenums.go +1 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkevents.go +118 -120 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframeclock.go +24 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframetimings.go +20 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkglcontext.go +36 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexture.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexturebuilder.go +35 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkkeys.go +22 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexture.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexturebuilder.go +35 -42 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmonitor.go +27 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpaintable.go +33 -63 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpango.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpixbuf.go +12 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopup.go +26 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopuplayout.go +32 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkrgba.go +21 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkseat.go +20 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksnapshot.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksurface.go +40 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktexture.go +31 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevel.go +66 -157 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevellayout.go +25 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevelsize.go +16 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktypes.go +72 -95 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkvulkancontext.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-animation.go +32 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-core.go +0 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-io.go +23 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-loader.go +22 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-simple-anim.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-transform.go +1 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf.go +79 -102 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/main.go +17 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gaction.go +31 -59 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactiongroup.go +39 -96 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactionmap.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gappinfo.go +116 -244 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplication.go +55 -79 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplicationcommandline.go +27 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncinitable.go +22 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncresult.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedinputstream.go +29 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedoutputstream.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbytesicon.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcancellable.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcharsetconverter.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcontenttype.go +26 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverter.go +20 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverterinputstream.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverteroutputstream.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcredentials.go +21 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatagrambased.go +30 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatainputstream.go +35 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdataoutputstream.go +23 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusactiongroup.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusaddress.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusauthobserver.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusconnection.go +66 -77 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbuserror.go +18 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusinterface.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusinterfaceskeleton.go +24 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusintrospection.go +56 -54 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmenumodel.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmessage.go +64 -88 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmethodinvocation.go +30 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusnameowning.go +15 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusnamewatching.go +15 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobject.go +17 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanager.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerclient.go +23 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerserver.go +20 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectproxy.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectskeleton.go +18 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusproxy.go +38 -42 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusserver.go +20 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusutils.go +22 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdebugcontroller.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdebugcontrollerdbus.go +14 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdrive.go +82 -214 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsclientconnection.go +24 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsconnection.go +80 -207 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsserverconnection.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gemblem.go +17 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gemblemedicon.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfile.go +450 -1148 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileattribute.go +19 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileenumerator.go +35 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileicon.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileinfo.go +84 -138 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileinputstream.go +23 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileiostream.go +27 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilemonitor.go +15 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilenamecompleter.go +16 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileoutputstream.go +27 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilterinputstream.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilteroutputstream.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gicon.go +25 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetaddress.go +34 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetaddressmask.go +21 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetsocketaddress.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginitable.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginputstream.go +48 -52 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioenums.go +1 -90 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioerror.go +13 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giomodule.go +29 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioscheduler.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giostream.go +29 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giotypes.go +60 -70 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giptosmessage.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gipv6tclassmessage.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/glistmodel.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gliststore.go +24 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gloadableicon.go +23 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemoryinputstream.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemorymonitor.go +12 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemoryoutputstream.go +19 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmenu.go +50 -62 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmenumodel.go +33 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmount.go +86 -215 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmountoperation.go +32 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnativesocketaddress.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnativevolumemonitor.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkaddress.go +21 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworking.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkmonitor.go +31 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkservice.go +19 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnotification.go +26 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/goutputstream.go +72 -86 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpermission.go +33 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableinputstream.go +22 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableoutputstream.go +27 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableutils.go +15 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpowerprofilemonitor.go +16 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpropertyaction.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxy.go +27 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyaddress.go +21 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyaddressenumerator.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyresolver.go +27 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gremoteactiongroup.go +15 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gresolver.go +67 -75 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gresource.go +23 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gseekable.go +27 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettings.go +67 -99 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettingsbackend.go +24 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettingsschema.go +43 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleaction.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleactiongroup.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleasyncresult.go +40 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleiostream.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimplepermission.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleproxyresolver.go +16 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocket.go +72 -87
| @@ -375,7 +375,6 @@ type Socket struct { | |||
| 375 | 375 | var xSocketGLibType func() types.GType | |
| 376 | 376 | ||
| 377 | 377 | func SocketGLibType() types.GType { | |
| 378 | - | core.LazyRegister(&xSocketGLibType, "GIO", "g_socket_get_type", false) | |
| 379 | 378 | return xSocketGLibType() | |
| 380 | 379 | } | |
| 381 | 380 | ||
| @@ -401,7 +400,6 @@ var xNewSocket func(SocketFamily, SocketType, SocketProtocol, **glib.Error) uint | |||
| 401 | 400 | // system, so you can use protocols not listed in #GSocketProtocol if you | |
| 402 | 401 | // know the protocol number used for it. | |
| 403 | 402 | func NewSocket(FamilyVar SocketFamily, TypeVar SocketType, ProtocolVar SocketProtocol) (*Socket, error) { | |
| 404 | - | core.LazyRegister(&xNewSocket, "GIO", "g_socket_new", false) | |
| 405 | 403 | var cls *Socket | |
| 406 | 404 | var cerr *glib.Error | |
| 407 | 405 | ||
| @@ -434,7 +432,6 @@ var xNewSocketFromFd func(int, **glib.Error) uintptr | |||
| 434 | 432 | // Since GLib 2.46, it is no longer a fatal error to call this on a non-socket | |
| 435 | 433 | // descriptor. Instead, a GError will be set with code %G_IO_ERROR_FAILED | |
| 436 | 434 | func NewSocketFromFd(FdVar int) (*Socket, error) { | |
| 437 | - | core.LazyRegister(&xNewSocketFromFd, "GIO", "g_socket_new_from_fd", false) | |
| 438 | 435 | var cls *Socket | |
| 439 | 436 | var cerr *glib.Error | |
| 440 | 437 | ||
| @@ -464,7 +461,6 @@ var xSocketAccept func(uintptr, uintptr, **glib.Error) uintptr | |||
| 464 | 461 | // or return %G_IO_ERROR_WOULD_BLOCK if non-blocking I/O is enabled. | |
| 465 | 462 | // To be notified of an incoming connection, wait for the %G_IO_IN condition. | |
| 466 | 463 | func (x *Socket) Accept(CancellableVar *Cancellable) (*Socket, error) { | |
| 467 | - | core.LazyRegister(&xSocketAccept, "GIO", "g_socket_accept", false) | |
| 468 | 464 | var cls *Socket | |
| 469 | 465 | var cerr *glib.Error | |
| 470 | 466 | ||
| @@ -507,7 +503,6 @@ var xSocketBind func(uintptr, uintptr, bool, **glib.Error) bool | |||
| 507 | 503 | // broadcast packets sent to that address. (The behavior of unicast | |
| 508 | 504 | // UDP packets to an address with multiple listeners is not defined.) | |
| 509 | 505 | func (x *Socket) Bind(AddressVar *SocketAddress, AllowReuseVar bool) (bool, error) { | |
| 510 | - | core.LazyRegister(&xSocketBind, "GIO", "g_socket_bind", false) | |
| 511 | 506 | var cerr *glib.Error | |
| 512 | 507 | ||
| 513 | 508 | cret := xSocketBind(x.GoPointer(), AddressVar.GoPointer(), AllowReuseVar, &cerr) | |
| @@ -523,7 +518,6 @@ var xSocketCheckConnectResult func(uintptr, **glib.Error) bool | |||
| 523 | 518 | // This is used to check for errors when g_socket_connect() is | |
| 524 | 519 | // used in non-blocking mode. | |
| 525 | 520 | func (x *Socket) CheckConnectResult() (bool, error) { | |
| 526 | - | core.LazyRegister(&xSocketCheckConnectResult, "GIO", "g_socket_check_connect_result", false) | |
| 527 | 521 | var cerr *glib.Error | |
| 528 | 522 | ||
| 529 | 523 | cret := xSocketCheckConnectResult(x.GoPointer(), &cerr) | |
| @@ -565,7 +559,6 @@ var xSocketClose func(uintptr, **glib.Error) bool | |||
| 565 | 559 | // only works if the client will close its connection after the server | |
| 566 | 560 | // does.) | |
| 567 | 561 | func (x *Socket) Close() (bool, error) { | |
| 568 | - | core.LazyRegister(&xSocketClose, "GIO", "g_socket_close", false) | |
| 569 | 562 | var cerr *glib.Error | |
| 570 | 563 | ||
| 571 | 564 | cret := xSocketClose(x.GoPointer(), &cerr) | |
| @@ -595,8 +588,6 @@ var xSocketConditionCheck func(uintptr, glib.IOCondition) glib.IOCondition | |||
| 595 | 588 | // | |
| 596 | 589 | // This call never blocks. | |
| 597 | 590 | func (x *Socket) ConditionCheck(ConditionVar glib.IOCondition) glib.IOCondition { | |
| 598 | - | core.LazyRegister(&xSocketConditionCheck, "GIO", "g_socket_condition_check", false) | |
| 599 | - | ||
| 600 | 591 | cret := xSocketConditionCheck(x.GoPointer(), ConditionVar) | |
| 601 | 592 | return cret | |
| 602 | 593 | } | |
| @@ -620,7 +611,6 @@ var xSocketConditionTimedWait func(uintptr, glib.IOCondition, int64, uintptr, ** | |||
| 620 | 611 | // resolution, and the behavior is undefined if @timeout_us is not an | |
| 621 | 612 | // exact number of milliseconds. | |
| 622 | 613 | func (x *Socket) ConditionTimedWait(ConditionVar glib.IOCondition, TimeoutUsVar int64, CancellableVar *Cancellable) (bool, error) { | |
| 623 | - | core.LazyRegister(&xSocketConditionTimedWait, "GIO", "g_socket_condition_timed_wait", false) | |
| 624 | 614 | var cerr *glib.Error | |
| 625 | 615 | ||
| 626 | 616 | cret := xSocketConditionTimedWait(x.GoPointer(), ConditionVar, TimeoutUsVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -643,7 +633,6 @@ var xSocketConditionWait func(uintptr, glib.IOCondition, uintptr, **glib.Error) | |||
| 643 | 633 | // | |
| 644 | 634 | // See also g_socket_condition_timed_wait(). | |
| 645 | 635 | func (x *Socket) ConditionWait(ConditionVar glib.IOCondition, CancellableVar *Cancellable) (bool, error) { | |
| 646 | - | core.LazyRegister(&xSocketConditionWait, "GIO", "g_socket_condition_wait", false) | |
| 647 | 636 | var cerr *glib.Error | |
| 648 | 637 | ||
| 649 | 638 | cret := xSocketConditionWait(x.GoPointer(), ConditionVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -672,7 +661,6 @@ var xSocketConnect func(uintptr, uintptr, uintptr, **glib.Error) bool | |||
| 672 | 661 | // for the G_IO_OUT condition. The result of the connection must then be | |
| 673 | 662 | // checked with g_socket_check_connect_result(). | |
| 674 | 663 | func (x *Socket) Connect(AddressVar *SocketAddress, CancellableVar *Cancellable) (bool, error) { | |
| 675 | - | core.LazyRegister(&xSocketConnect, "GIO", "g_socket_connect", false) | |
| 676 | 664 | var cerr *glib.Error | |
| 677 | 665 | ||
| 678 | 666 | cret := xSocketConnect(x.GoPointer(), AddressVar.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| @@ -687,7 +675,6 @@ var xSocketConnectionFactoryCreateConnection func(uintptr) uintptr | |||
| 687 | 675 | // Creates a #GSocketConnection subclass of the right type for | |
| 688 | 676 | // @socket. | |
| 689 | 677 | func (x *Socket) ConnectionFactoryCreateConnection() *SocketConnection { | |
| 690 | - | core.LazyRegister(&xSocketConnectionFactoryCreateConnection, "GIO", "g_socket_connection_factory_create_connection", false) | |
| 691 | 678 | var cls *SocketConnection | |
| 692 | 679 | ||
| 693 | 680 | cret := xSocketConnectionFactoryCreateConnection(x.GoPointer()) | |
| @@ -723,8 +710,6 @@ var xSocketCreateSource func(uintptr, glib.IOCondition, uintptr) uintptr | |||
| 723 | 710 | // marked as having had a timeout, and so the next #GSocket I/O method | |
| 724 | 711 | // you call will then fail with a %G_IO_ERROR_TIMED_OUT. | |
| 725 | 712 | func (x *Socket) CreateSource(ConditionVar glib.IOCondition, CancellableVar *Cancellable) *glib.Source { | |
| 726 | - | core.LazyRegister(&xSocketCreateSource, "GIO", "g_socket_create_source", false) | |
| 727 | - | ||
| 728 | 713 | cret := xSocketCreateSource(x.GoPointer(), ConditionVar, CancellableVar.GoPointer()) | |
| 729 | 714 | if cret == 0 { | |
| 730 | 715 | return nil | |
| @@ -747,8 +732,6 @@ var xSocketGetAvailableBytes func(uintptr) int | |||
| 747 | 732 | // g_socket_get_available_bytes() first and then doing a receive of | |
| 748 | 733 | // exactly the right size. | |
| 749 | 734 | func (x *Socket) GetAvailableBytes() int { | |
| 750 | - | core.LazyRegister(&xSocketGetAvailableBytes, "GIO", "g_socket_get_available_bytes", false) | |
| 751 | - | ||
| 752 | 735 | cret := xSocketGetAvailableBytes(x.GoPointer()) | |
| 753 | 736 | return cret | |
| 754 | 737 | } | |
| @@ -758,8 +741,6 @@ var xSocketGetBlocking func(uintptr) bool | |||
| 758 | 741 | // Gets the blocking mode of the socket. For details on blocking I/O, | |
| 759 | 742 | // see g_socket_set_blocking(). | |
| 760 | 743 | func (x *Socket) GetBlocking() bool { | |
| 761 | - | core.LazyRegister(&xSocketGetBlocking, "GIO", "g_socket_get_blocking", false) | |
| 762 | - | ||
| 763 | 744 | cret := xSocketGetBlocking(x.GoPointer()) | |
| 764 | 745 | return cret | |
| 765 | 746 | } | |
| @@ -770,8 +751,6 @@ var xSocketGetBroadcast func(uintptr) bool | |||
| 770 | 751 | // it is possible to send packets to broadcast | |
| 771 | 752 | // addresses. | |
| 772 | 753 | func (x *Socket) GetBroadcast() bool { | |
| 773 | - | core.LazyRegister(&xSocketGetBroadcast, "GIO", "g_socket_get_broadcast", false) | |
| 774 | - | ||
| 775 | 754 | cret := xSocketGetBroadcast(x.GoPointer()) | |
| 776 | 755 | return cret | |
| 777 | 756 | } | |
| @@ -799,7 +778,6 @@ var xSocketGetCredentials func(uintptr, **glib.Error) uintptr | |||
| 799 | 778 | // g_unix_connection_send_credentials() / | |
| 800 | 779 | // g_unix_connection_receive_credentials() functions. | |
| 801 | 780 | func (x *Socket) GetCredentials() (*Credentials, error) { | |
| 802 | - | core.LazyRegister(&xSocketGetCredentials, "GIO", "g_socket_get_credentials", false) | |
| 803 | 781 | var cls *Credentials | |
| 804 | 782 | var cerr *glib.Error | |
| 805 | 783 | ||
| @@ -820,8 +798,6 @@ var xSocketGetFamily func(uintptr) SocketFamily | |||
| 820 | 798 | ||
| 821 | 799 | // Gets the socket family of the socket. | |
| 822 | 800 | func (x *Socket) GetFamily() SocketFamily { | |
| 823 | - | core.LazyRegister(&xSocketGetFamily, "GIO", "g_socket_get_family", false) | |
| 824 | - | ||
| 825 | 801 | cret := xSocketGetFamily(x.GoPointer()) | |
| 826 | 802 | return cret | |
| 827 | 803 | } | |
| @@ -834,8 +810,6 @@ var xSocketGetFd func(uintptr) int | |||
| 834 | 810 | // doing platform specific or otherwise unusual operations | |
| 835 | 811 | // on the socket. | |
| 836 | 812 | func (x *Socket) GetFd() int { | |
| 837 | - | core.LazyRegister(&xSocketGetFd, "GIO", "g_socket_get_fd", false) | |
| 838 | - | ||
| 839 | 813 | cret := xSocketGetFd(x.GoPointer()) | |
| 840 | 814 | return cret | |
| 841 | 815 | } | |
| @@ -845,8 +819,6 @@ var xSocketGetKeepalive func(uintptr) bool | |||
| 845 | 819 | // Gets the keepalive mode of the socket. For details on this, | |
| 846 | 820 | // see g_socket_set_keepalive(). | |
| 847 | 821 | func (x *Socket) GetKeepalive() bool { | |
| 848 | - | core.LazyRegister(&xSocketGetKeepalive, "GIO", "g_socket_get_keepalive", false) | |
| 849 | - | ||
| 850 | 822 | cret := xSocketGetKeepalive(x.GoPointer()) | |
| 851 | 823 | return cret | |
| 852 | 824 | } | |
| @@ -856,8 +828,6 @@ var xSocketGetListenBacklog func(uintptr) int | |||
| 856 | 828 | // Gets the listen backlog setting of the socket. For details on this, | |
| 857 | 829 | // see g_socket_set_listen_backlog(). | |
| 858 | 830 | func (x *Socket) GetListenBacklog() int { | |
| 859 | - | core.LazyRegister(&xSocketGetListenBacklog, "GIO", "g_socket_get_listen_backlog", false) | |
| 860 | - | ||
| 861 | 831 | cret := xSocketGetListenBacklog(x.GoPointer()) | |
| 862 | 832 | return cret | |
| 863 | 833 | } | |
| @@ -868,7 +838,6 @@ var xSocketGetLocalAddress func(uintptr, **glib.Error) uintptr | |||
| 868 | 838 | // useful if the socket has been bound to a local address, | |
| 869 | 839 | // either explicitly or implicitly when connecting. | |
| 870 | 840 | func (x *Socket) GetLocalAddress() (*SocketAddress, error) { | |
| 871 | - | core.LazyRegister(&xSocketGetLocalAddress, "GIO", "g_socket_get_local_address", false) | |
| 872 | 841 | var cls *SocketAddress | |
| 873 | 842 | var cerr *glib.Error | |
| 874 | 843 | ||
| @@ -891,8 +860,6 @@ var xSocketGetMulticastLoopback func(uintptr) bool | |||
| 891 | 860 | // default), outgoing multicast packets will be looped back to | |
| 892 | 861 | // multicast listeners on the same host. | |
| 893 | 862 | func (x *Socket) GetMulticastLoopback() bool { | |
| 894 | - | core.LazyRegister(&xSocketGetMulticastLoopback, "GIO", "g_socket_get_multicast_loopback", false) | |
| 895 | - | ||
| 896 | 863 | cret := xSocketGetMulticastLoopback(x.GoPointer()) | |
| 897 | 864 | return cret | |
| 898 | 865 | } | |
| @@ -902,8 +869,6 @@ var xSocketGetMulticastTtl func(uintptr) uint | |||
| 902 | 869 | // Gets the multicast time-to-live setting on @socket; see | |
| 903 | 870 | // g_socket_set_multicast_ttl() for more details. | |
| 904 | 871 | func (x *Socket) GetMulticastTtl() uint { | |
| 905 | - | core.LazyRegister(&xSocketGetMulticastTtl, "GIO", "g_socket_get_multicast_ttl", false) | |
| 906 | - | ||
| 907 | 872 | cret := xSocketGetMulticastTtl(x.GoPointer()) | |
| 908 | 873 | return cret | |
| 909 | 874 | } | |
| @@ -924,7 +889,6 @@ var xSocketGetOption func(uintptr, int, int, *int, **glib.Error) bool | |||
| 924 | 889 | // @value is still a pointer to a #gint variable, not a #guchar; | |
| 925 | 890 | // g_socket_get_option() will handle the conversion internally. | |
| 926 | 891 | func (x *Socket) GetOption(LevelVar int, OptnameVar int, ValueVar *int) (bool, error) { | |
| 927 | - | core.LazyRegister(&xSocketGetOption, "GIO", "g_socket_get_option", false) | |
| 928 | 892 | var cerr *glib.Error | |
| 929 | 893 | ||
| 930 | 894 | cret := xSocketGetOption(x.GoPointer(), LevelVar, OptnameVar, ValueVar, &cerr) | |
| @@ -939,8 +903,6 @@ var xSocketGetProtocol func(uintptr) SocketProtocol | |||
| 939 | 903 | // Gets the socket protocol id the socket was created with. | |
| 940 | 904 | // In case the protocol is unknown, -1 is returned. | |
| 941 | 905 | func (x *Socket) GetProtocol() SocketProtocol { | |
| 942 | - | core.LazyRegister(&xSocketGetProtocol, "GIO", "g_socket_get_protocol", false) | |
| 943 | - | ||
| 944 | 906 | cret := xSocketGetProtocol(x.GoPointer()) | |
| 945 | 907 | return cret | |
| 946 | 908 | } | |
| @@ -950,7 +912,6 @@ var xSocketGetRemoteAddress func(uintptr, **glib.Error) uintptr | |||
| 950 | 912 | // Try to get the remote address of a connected socket. This is only | |
| 951 | 913 | // useful for connection oriented sockets that have been connected. | |
| 952 | 914 | func (x *Socket) GetRemoteAddress() (*SocketAddress, error) { | |
| 953 | - | core.LazyRegister(&xSocketGetRemoteAddress, "GIO", "g_socket_get_remote_address", false) | |
| 954 | 915 | var cls *SocketAddress | |
| 955 | 916 | var cerr *glib.Error | |
| 956 | 917 | ||
| @@ -971,8 +932,6 @@ var xSocketGetSocketType func(uintptr) SocketType | |||
| 971 | 932 | ||
| 972 | 933 | // Gets the socket type of the socket. | |
| 973 | 934 | func (x *Socket) GetSocketType() SocketType { | |
| 974 | - | core.LazyRegister(&xSocketGetSocketType, "GIO", "g_socket_get_socket_type", false) | |
| 975 | - | ||
| 976 | 935 | cret := xSocketGetSocketType(x.GoPointer()) | |
| 977 | 936 | return cret | |
| 978 | 937 | } | |
| @@ -982,8 +941,6 @@ var xSocketGetTimeout func(uintptr) uint | |||
| 982 | 941 | // Gets the timeout setting of the socket. For details on this, see | |
| 983 | 942 | // g_socket_set_timeout(). | |
| 984 | 943 | func (x *Socket) GetTimeout() uint { | |
| 985 | - | core.LazyRegister(&xSocketGetTimeout, "GIO", "g_socket_get_timeout", false) | |
| 986 | - | ||
| 987 | 944 | cret := xSocketGetTimeout(x.GoPointer()) | |
| 988 | 945 | return cret | |
| 989 | 946 | } | |
| @@ -993,8 +950,6 @@ var xSocketGetTtl func(uintptr) uint | |||
| 993 | 950 | // Gets the unicast time-to-live setting on @socket; see | |
| 994 | 951 | // g_socket_set_ttl() for more details. | |
| 995 | 952 | func (x *Socket) GetTtl() uint { | |
| 996 | - | core.LazyRegister(&xSocketGetTtl, "GIO", "g_socket_get_ttl", false) | |
| 997 | - | ||
| 998 | 953 | cret := xSocketGetTtl(x.GoPointer()) | |
| 999 | 954 | return cret | |
| 1000 | 955 | } | |
| @@ -1003,8 +958,6 @@ var xSocketIsClosed func(uintptr) bool | |||
| 1003 | 958 | ||
| 1004 | 959 | // Checks whether a socket is closed. | |
| 1005 | 960 | func (x *Socket) IsClosed() bool { | |
| 1006 | - | core.LazyRegister(&xSocketIsClosed, "GIO", "g_socket_is_closed", false) | |
| 1007 | - | ||
| 1008 | 961 | cret := xSocketIsClosed(x.GoPointer()) | |
| 1009 | 962 | return cret | |
| 1010 | 963 | } | |
| @@ -1019,8 +972,6 @@ var xSocketIsConnected func(uintptr) bool | |||
| 1019 | 972 | // connect, this function will not return %TRUE until after you call | |
| 1020 | 973 | // g_socket_check_connect_result(). | |
| 1021 | 974 | func (x *Socket) IsConnected() bool { | |
| 1022 | - | core.LazyRegister(&xSocketIsConnected, "GIO", "g_socket_is_connected", false) | |
| 1023 | - | ||
| 1024 | 975 | cret := xSocketIsConnected(x.GoPointer()) | |
| 1025 | 976 | return cret | |
| 1026 | 977 | } | |
| @@ -1042,7 +993,6 @@ var xSocketJoinMulticastGroup func(uintptr, uintptr, bool, uintptr, **glib.Error | |||
| 1042 | 993 | // To bind to a given source-specific multicast address, use | |
| 1043 | 994 | // g_socket_join_multicast_group_ssm() instead. | |
| 1044 | 995 | func (x *Socket) JoinMulticastGroup(GroupVar *InetAddress, SourceSpecificVar bool, IfaceVar *string) (bool, error) { | |
| 1045 | - | core.LazyRegister(&xSocketJoinMulticastGroup, "GIO", "g_socket_join_multicast_group", false) | |
| 1046 | 996 | var cerr *glib.Error | |
| 1047 | 997 | ||
| 1048 | 998 | IfaceVarPtr := core.GStrdupNullable(IfaceVar) | |
| @@ -1073,7 +1023,6 @@ var xSocketJoinMulticastGroupSsm func(uintptr, uintptr, uintptr, uintptr, **glib | |||
| 1073 | 1023 | // @group with different @source_specific in order to receive multicast | |
| 1074 | 1024 | // packets from more than one source. | |
| 1075 | 1025 | func (x *Socket) JoinMulticastGroupSsm(GroupVar *InetAddress, SourceSpecificVar *InetAddress, IfaceVar *string) (bool, error) { | |
| 1076 | - | core.LazyRegister(&xSocketJoinMulticastGroupSsm, "GIO", "g_socket_join_multicast_group_ssm", false) | |
| 1077 | 1026 | var cerr *glib.Error | |
| 1078 | 1027 | ||
| 1079 | 1028 | IfaceVarPtr := core.GStrdupNullable(IfaceVar) | |
| @@ -1098,7 +1047,6 @@ var xSocketLeaveMulticastGroup func(uintptr, uintptr, bool, uintptr, **glib.Erro | |||
| 1098 | 1047 | // To unbind to a given source-specific multicast address, use | |
| 1099 | 1048 | // g_socket_leave_multicast_group_ssm() instead. | |
| 1100 | 1049 | func (x *Socket) LeaveMulticastGroup(GroupVar *InetAddress, SourceSpecificVar bool, IfaceVar *string) (bool, error) { | |
| 1101 | - | core.LazyRegister(&xSocketLeaveMulticastGroup, "GIO", "g_socket_leave_multicast_group", false) | |
| 1102 | 1050 | var cerr *glib.Error | |
| 1103 | 1051 | ||
| 1104 | 1052 | IfaceVarPtr := core.GStrdupNullable(IfaceVar) | |
| @@ -1120,7 +1068,6 @@ var xSocketLeaveMulticastGroupSsm func(uintptr, uintptr, uintptr, uintptr, **gli | |||
| 1120 | 1068 | // @socket remains bound to its address and port, and can still receive | |
| 1121 | 1069 | // unicast messages after calling this. | |
| 1122 | 1070 | func (x *Socket) LeaveMulticastGroupSsm(GroupVar *InetAddress, SourceSpecificVar *InetAddress, IfaceVar *string) (bool, error) { | |
| 1123 | - | core.LazyRegister(&xSocketLeaveMulticastGroupSsm, "GIO", "g_socket_leave_multicast_group_ssm", false) | |
| 1124 | 1071 | var cerr *glib.Error | |
| 1125 | 1072 | ||
| 1126 | 1073 | IfaceVarPtr := core.GStrdupNullable(IfaceVar) | |
| @@ -1144,7 +1091,6 @@ var xSocketListen func(uintptr, **glib.Error) bool | |||
| 1144 | 1091 | // To set the maximum amount of outstanding clients, use | |
| 1145 | 1092 | // g_socket_set_listen_backlog(). | |
| 1146 | 1093 | func (x *Socket) Listen() (bool, error) { | |
| 1147 | - | core.LazyRegister(&xSocketListen, "GIO", "g_socket_listen", false) | |
| 1148 | 1094 | var cerr *glib.Error | |
| 1149 | 1095 | ||
| 1150 | 1096 | cret := xSocketListen(x.GoPointer(), &cerr) | |
| @@ -1180,7 +1126,6 @@ var xSocketReceive func(uintptr, *[]byte, uint, uintptr, **glib.Error) int | |||
| 1180 | 1126 | // | |
| 1181 | 1127 | // On error -1 is returned and @error is set accordingly. | |
| 1182 | 1128 | func (x *Socket) Receive(BufferVar *[]byte, SizeVar uint, CancellableVar *Cancellable) (int, error) { | |
| 1183 | - | core.LazyRegister(&xSocketReceive, "GIO", "g_socket_receive", false) | |
| 1184 | 1129 | var cerr *glib.Error | |
| 1185 | 1130 | ||
| 1186 | 1131 | cret := xSocketReceive(x.GoPointer(), BufferVar, SizeVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -1202,7 +1147,6 @@ var xSocketReceiveBytes func(uintptr, uint, int64, uintptr, **glib.Error) uintpt | |||
| 1202 | 1147 | // timeout from [property@Gio.Socket:timeout], or pass a positive number to wait | |
| 1203 | 1148 | // for that many microseconds for data before returning `G_IO_ERROR_TIMED_OUT`. | |
| 1204 | 1149 | func (x *Socket) ReceiveBytes(SizeVar uint, TimeoutUsVar int64, CancellableVar *Cancellable) (*glib.Bytes, error) { | |
| 1205 | - | core.LazyRegister(&xSocketReceiveBytes, "GIO", "g_socket_receive_bytes", false) | |
| 1206 | 1150 | var cerr *glib.Error | |
| 1207 | 1151 | ||
| 1208 | 1152 | cret := xSocketReceiveBytes(x.GoPointer(), SizeVar, TimeoutUsVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -1232,7 +1176,6 @@ var xSocketReceiveBytesFrom func(uintptr, **SocketAddress, uint, int64, uintptr, | |||
| 1232 | 1176 | // timeout from [property@Gio.Socket:timeout], or pass a positive number to wait | |
| 1233 | 1177 | // for that many microseconds for data before returning `G_IO_ERROR_TIMED_OUT`. | |
| 1234 | 1178 | func (x *Socket) ReceiveBytesFrom(AddressVar **SocketAddress, SizeVar uint, TimeoutUsVar int64, CancellableVar *Cancellable) (*glib.Bytes, error) { | |
| 1235 | - | core.LazyRegister(&xSocketReceiveBytesFrom, "GIO", "g_socket_receive_bytes_from", false) | |
| 1236 | 1179 | var cerr *glib.Error | |
| 1237 | 1180 | ||
| 1238 | 1181 | cret := xSocketReceiveBytesFrom(x.GoPointer(), AddressVar, SizeVar, TimeoutUsVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -1255,7 +1198,6 @@ var xSocketReceiveFrom func(uintptr, **SocketAddress, *[]byte, uint, uintptr, ** | |||
| 1255 | 1198 | // | |
| 1256 | 1199 | // See g_socket_receive() for additional information. | |
| 1257 | 1200 | func (x *Socket) ReceiveFrom(AddressVar **SocketAddress, BufferVar *[]byte, SizeVar uint, CancellableVar *Cancellable) (int, error) { | |
| 1258 | - | core.LazyRegister(&xSocketReceiveFrom, "GIO", "g_socket_receive_from", false) | |
| 1259 | 1201 | var cerr *glib.Error | |
| 1260 | 1202 | ||
| 1261 | 1203 | cret := xSocketReceiveFrom(x.GoPointer(), AddressVar, BufferVar, SizeVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -1327,7 +1269,6 @@ var xSocketReceiveMessage func(uintptr, **SocketAddress, []InputVector, int, *ui | |||
| 1327 | 1269 | // | |
| 1328 | 1270 | // On error -1 is returned and @error is set accordingly. | |
| 1329 | 1271 | func (x *Socket) ReceiveMessage(AddressVar **SocketAddress, VectorsVar []InputVector, NumVectorsVar int, MessagesVar *uintptr, NumMessagesVar *int, FlagsVar *int, CancellableVar *Cancellable) (int, error) { | |
| 1330 | - | core.LazyRegister(&xSocketReceiveMessage, "GIO", "g_socket_receive_message", false) | |
| 1331 | 1272 | var cerr *glib.Error | |
| 1332 | 1273 | ||
| 1333 | 1274 | cret := xSocketReceiveMessage(x.GoPointer(), AddressVar, VectorsVar, NumVectorsVar, MessagesVar, NumMessagesVar, FlagsVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -1388,7 +1329,6 @@ var xSocketReceiveMessages func(uintptr, []InputMessage, uint, int, uintptr, **g | |||
| 1388 | 1329 | // be returned if zero messages could be received; otherwise the number of | |
| 1389 | 1330 | // messages successfully received before the error will be returned. | |
| 1390 | 1331 | func (x *Socket) ReceiveMessages(MessagesVar []InputMessage, NumMessagesVar uint, FlagsVar int, CancellableVar *Cancellable) (int, error) { | |
| 1391 | - | core.LazyRegister(&xSocketReceiveMessages, "GIO", "g_socket_receive_messages", false) | |
| 1392 | 1332 | var cerr *glib.Error | |
| 1393 | 1333 | ||
| 1394 | 1334 | cret := xSocketReceiveMessages(x.GoPointer(), MessagesVar, NumMessagesVar, FlagsVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -1404,7 +1344,6 @@ var xSocketReceiveWithBlocking func(uintptr, *[]byte, uint, bool, uintptr, **gli | |||
| 1404 | 1344 | // the choice of blocking or non-blocking behavior is determined by | |
| 1405 | 1345 | // the @blocking argument rather than by @socket's properties. | |
| 1406 | 1346 | func (x *Socket) ReceiveWithBlocking(BufferVar *[]byte, SizeVar uint, BlockingVar bool, CancellableVar *Cancellable) (int, error) { | |
| 1407 | - | core.LazyRegister(&xSocketReceiveWithBlocking, "GIO", "g_socket_receive_with_blocking", false) | |
| 1408 | 1347 | var cerr *glib.Error | |
| 1409 | 1348 | ||
| 1410 | 1349 | cret := xSocketReceiveWithBlocking(x.GoPointer(), BufferVar, SizeVar, BlockingVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -1431,7 +1370,6 @@ var xSocketSend func(uintptr, []byte, uint, uintptr, **glib.Error) int | |||
| 1431 | 1370 | // | |
| 1432 | 1371 | // On error -1 is returned and @error is set accordingly. | |
| 1433 | 1372 | func (x *Socket) Send(BufferVar []byte, SizeVar uint, CancellableVar *Cancellable) (int, error) { | |
| 1434 | - | core.LazyRegister(&xSocketSend, "GIO", "g_socket_send", false) | |
| 1435 | 1373 | var cerr *glib.Error | |
| 1436 | 1374 | ||
| 1437 | 1375 | cret := xSocketSend(x.GoPointer(), BufferVar, SizeVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -1486,7 +1424,6 @@ var xSocketSendMessage func(uintptr, uintptr, []OutputVector, int, uintptr, int, | |||
| 1486 | 1424 | // | |
| 1487 | 1425 | // On error -1 is returned and @error is set accordingly. | |
| 1488 | 1426 | func (x *Socket) SendMessage(AddressVar *SocketAddress, VectorsVar []OutputVector, NumVectorsVar int, MessagesVar uintptr, NumMessagesVar int, FlagsVar int, CancellableVar *Cancellable) (int, error) { | |
| 1489 | - | core.LazyRegister(&xSocketSendMessage, "GIO", "g_socket_send_message", false) | |
| 1490 | 1427 | var cerr *glib.Error | |
| 1491 | 1428 | ||
| 1492 | 1429 | cret := xSocketSendMessage(x.GoPointer(), AddressVar.GoPointer(), VectorsVar, NumVectorsVar, MessagesVar, NumMessagesVar, FlagsVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -1506,7 +1443,6 @@ var xSocketSendMessageWithTimeout func(uintptr, uintptr, []OutputVector, int, ui | |||
| 1506 | 1443 | // if the socket is currently not writable %G_POLLABLE_RETURN_WOULD_BLOCK is | |
| 1507 | 1444 | // returned. @bytes_written will contain 0 in both cases. | |
| 1508 | 1445 | func (x *Socket) SendMessageWithTimeout(AddressVar *SocketAddress, VectorsVar []OutputVector, NumVectorsVar int, MessagesVar uintptr, NumMessagesVar int, FlagsVar int, TimeoutUsVar int64, BytesWrittenVar *uint, CancellableVar *Cancellable) (PollableReturn, error) { | |
| 1509 | - | core.LazyRegister(&xSocketSendMessageWithTimeout, "GIO", "g_socket_send_message_with_timeout", false) | |
| 1510 | 1446 | var cerr *glib.Error | |
| 1511 | 1447 | ||
| 1512 | 1448 | cret := xSocketSendMessageWithTimeout(x.GoPointer(), AddressVar.GoPointer(), VectorsVar, NumVectorsVar, MessagesVar, NumMessagesVar, FlagsVar, TimeoutUsVar, BytesWrittenVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -1553,7 +1489,6 @@ var xSocketSendMessages func(uintptr, []OutputMessage, uint, int, uintptr, **gli | |||
| 1553 | 1489 | // be returned if zero messages could be sent; otherwise the number of messages | |
| 1554 | 1490 | // successfully sent before the error will be returned. | |
| 1555 | 1491 | func (x *Socket) SendMessages(MessagesVar []OutputMessage, NumMessagesVar uint, FlagsVar int, CancellableVar *Cancellable) (int, error) { | |
| 1556 | - | core.LazyRegister(&xSocketSendMessages, "GIO", "g_socket_send_messages", false) | |
| 1557 | 1492 | var cerr *glib.Error | |
| 1558 | 1493 | ||
| 1559 | 1494 | cret := xSocketSendMessages(x.GoPointer(), MessagesVar, NumMessagesVar, FlagsVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -1571,7 +1506,6 @@ var xSocketSendTo func(uintptr, uintptr, []byte, uint, uintptr, **glib.Error) in | |||
| 1571 | 1506 | // | |
| 1572 | 1507 | // See g_socket_send() for additional information. | |
| 1573 | 1508 | func (x *Socket) SendTo(AddressVar *SocketAddress, BufferVar []byte, SizeVar uint, CancellableVar *Cancellable) (int, error) { | |
| 1574 | - | core.LazyRegister(&xSocketSendTo, "GIO", "g_socket_send_to", false) | |
| 1575 | 1509 | var cerr *glib.Error | |
| 1576 | 1510 | ||
| 1577 | 1511 | cret := xSocketSendTo(x.GoPointer(), AddressVar.GoPointer(), BufferVar, SizeVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -1587,7 +1521,6 @@ var xSocketSendWithBlocking func(uintptr, []byte, uint, bool, uintptr, **glib.Er | |||
| 1587 | 1521 | // the choice of blocking or non-blocking behavior is determined by | |
| 1588 | 1522 | // the @blocking argument rather than by @socket's properties. | |
| 1589 | 1523 | func (x *Socket) SendWithBlocking(BufferVar []byte, SizeVar uint, BlockingVar bool, CancellableVar *Cancellable) (int, error) { | |
| 1590 | - | core.LazyRegister(&xSocketSendWithBlocking, "GIO", "g_socket_send_with_blocking", false) | |
| 1591 | 1524 | var cerr *glib.Error | |
| 1592 | 1525 | ||
| 1593 | 1526 | cret := xSocketSendWithBlocking(x.GoPointer(), BufferVar, SizeVar, BlockingVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -1609,8 +1542,6 @@ var xSocketSetBlocking func(uintptr, bool) | |||
| 1609 | 1542 | // platform level socket is always non-blocking, and blocking mode | |
| 1610 | 1543 | // is a GSocket level feature. | |
| 1611 | 1544 | func (x *Socket) SetBlocking(BlockingVar bool) { | |
| 1612 | - | core.LazyRegister(&xSocketSetBlocking, "GIO", "g_socket_set_blocking", false) | |
| 1613 | - | ||
| 1614 | 1545 | xSocketSetBlocking(x.GoPointer(), BlockingVar) | |
| 1615 | 1546 | } | |
| 1616 | 1547 | ||
| @@ -1619,8 +1550,6 @@ var xSocketSetBroadcast func(uintptr, bool) | |||
| 1619 | 1550 | // Sets whether @socket should allow sending to broadcast addresses. | |
| 1620 | 1551 | // This is %FALSE by default. | |
| 1621 | 1552 | func (x *Socket) SetBroadcast(BroadcastVar bool) { | |
| 1622 | - | core.LazyRegister(&xSocketSetBroadcast, "GIO", "g_socket_set_broadcast", false) | |
| 1623 | - | ||
| 1624 | 1553 | xSocketSetBroadcast(x.GoPointer(), BroadcastVar) | |
| 1625 | 1554 | } | |
| 1626 | 1555 | ||
| @@ -1642,8 +1571,6 @@ var xSocketSetKeepalive func(uintptr, bool) | |||
| 1642 | 1571 | // periods of time, but also want to ensure that connections are eventually | |
| 1643 | 1572 | // garbage-collected if clients crash or become unreachable. | |
| 1644 | 1573 | func (x *Socket) SetKeepalive(KeepaliveVar bool) { | |
| 1645 | - | core.LazyRegister(&xSocketSetKeepalive, "GIO", "g_socket_set_keepalive", false) | |
| 1646 | - | ||
| 1647 | 1574 | xSocketSetKeepalive(x.GoPointer(), KeepaliveVar) | |
| 1648 | 1575 | } | |
| 1649 | 1576 | ||
| @@ -1657,8 +1584,6 @@ var xSocketSetListenBacklog func(uintptr, int) | |||
| 1657 | 1584 | // Note that this must be called before g_socket_listen() and has no | |
| 1658 | 1585 | // effect if called after that. | |
| 1659 | 1586 | func (x *Socket) SetListenBacklog(BacklogVar int) { | |
| 1660 | - | core.LazyRegister(&xSocketSetListenBacklog, "GIO", "g_socket_set_listen_backlog", false) | |
| 1661 | - | ||
| 1662 | 1587 | xSocketSetListenBacklog(x.GoPointer(), BacklogVar) | |
| 1663 | 1588 | } | |
| 1664 | 1589 | ||
| @@ -1668,8 +1593,6 @@ var xSocketSetMulticastLoopback func(uintptr, bool) | |||
| 1668 | 1593 | // listening on that multicast address on the same host. This is %TRUE | |
| 1669 | 1594 | // by default. | |
| 1670 | 1595 | func (x *Socket) SetMulticastLoopback(LoopbackVar bool) { | |
| 1671 | - | core.LazyRegister(&xSocketSetMulticastLoopback, "GIO", "g_socket_set_multicast_loopback", false) | |
| 1672 | - | ||
| 1673 | 1596 | xSocketSetMulticastLoopback(x.GoPointer(), LoopbackVar) | |
| 1674 | 1597 | } | |
| 1675 | 1598 | ||
| @@ -1679,8 +1602,6 @@ var xSocketSetMulticastTtl func(uintptr, uint) | |||
| 1679 | 1602 | // By default, this is 1, meaning that multicast packets will not leave | |
| 1680 | 1603 | // the local network. | |
| 1681 | 1604 | func (x *Socket) SetMulticastTtl(TtlVar uint) { | |
| 1682 | - | core.LazyRegister(&xSocketSetMulticastTtl, "GIO", "g_socket_set_multicast_ttl", false) | |
| 1683 | - | ||
| 1684 | 1605 | xSocketSetMulticastTtl(x.GoPointer(), TtlVar) | |
| 1685 | 1606 | } | |
| 1686 | 1607 | ||
| @@ -1696,7 +1617,6 @@ var xSocketSetOption func(uintptr, int, int, int, **glib.Error) bool | |||
| 1696 | 1617 | // platform-dependent options, you may need to include additional | |
| 1697 | 1618 | // headers. | |
| 1698 | 1619 | func (x *Socket) SetOption(LevelVar int, OptnameVar int, ValueVar int) (bool, error) { | |
| 1699 | - | core.LazyRegister(&xSocketSetOption, "GIO", "g_socket_set_option", false) | |
| 1700 | 1620 | var cerr *glib.Error | |
| 1701 | 1621 | ||
| 1702 | 1622 | cret := xSocketSetOption(x.GoPointer(), LevelVar, OptnameVar, ValueVar, &cerr) | |
| @@ -1729,8 +1649,6 @@ var xSocketSetTimeout func(uintptr, uint) | |||
| 1729 | 1649 | // Note that if an I/O operation is interrupted by a signal, this may | |
| 1730 | 1650 | // cause the timeout to be reset. | |
| 1731 | 1651 | func (x *Socket) SetTimeout(TimeoutVar uint) { | |
| 1732 | - | core.LazyRegister(&xSocketSetTimeout, "GIO", "g_socket_set_timeout", false) | |
| 1733 | - | ||
| 1734 | 1652 | xSocketSetTimeout(x.GoPointer(), TimeoutVar) | |
| 1735 | 1653 | } | |
| 1736 | 1654 | ||
| @@ -1739,8 +1657,6 @@ var xSocketSetTtl func(uintptr, uint) | |||
| 1739 | 1657 | // Sets the time-to-live for outgoing unicast packets on @socket. | |
| 1740 | 1658 | // By default the platform-specific default value is used. | |
| 1741 | 1659 | func (x *Socket) SetTtl(TtlVar uint) { | |
| 1742 | - | core.LazyRegister(&xSocketSetTtl, "GIO", "g_socket_set_ttl", false) | |
| 1743 | - | ||
| 1744 | 1660 | xSocketSetTtl(x.GoPointer(), TtlVar) | |
| 1745 | 1661 | } | |
| 1746 | 1662 | ||
| @@ -1761,7 +1677,6 @@ var xSocketShutdown func(uintptr, bool, bool, **glib.Error) bool | |||
| 1761 | 1677 | // then wait for the other side to close the connection, thus ensuring that the | |
| 1762 | 1678 | // other side saw all sent data. | |
| 1763 | 1679 | func (x *Socket) Shutdown(ShutdownReadVar bool, ShutdownWriteVar bool) (bool, error) { | |
| 1764 | - | core.LazyRegister(&xSocketShutdown, "GIO", "g_socket_shutdown", false) | |
| 1765 | 1680 | var cerr *glib.Error | |
| 1766 | 1681 | ||
| 1767 | 1682 | cret := xSocketShutdown(x.GoPointer(), ShutdownReadVar, ShutdownWriteVar, &cerr) | |
| @@ -1783,8 +1698,6 @@ var xSocketSpeaksIpv4 func(uintptr) bool | |||
| 1783 | 1698 | // No other types of sockets are currently considered as being capable | |
| 1784 | 1699 | // of speaking IPv4. | |
| 1785 | 1700 | func (x *Socket) SpeaksIpv4() bool { | |
| 1786 | - | core.LazyRegister(&xSocketSpeaksIpv4, "GIO", "g_socket_speaks_ipv4", false) | |
| 1787 | - | ||
| 1788 | 1701 | cret := xSocketSpeaksIpv4(x.GoPointer()) | |
| 1789 | 1702 | return cret | |
| 1790 | 1703 | } | |
| @@ -2004,4 +1917,76 @@ func (x *Socket) Init(CancellableVar *Cancellable) (bool, error) { | |||
| 2004 | 1917 | func init() { | |
| 2005 | 1918 | core.SetPackageName("GIO", "gio-2.0") | |
| 2006 | 1919 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | |
| 1920 | + | var libs []uintptr | |
| 1921 | + | for _, libPath := range core.GetPaths("GIO") { | |
| 1922 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 1923 | + | if err != nil { | |
| 1924 | + | panic(err) | |
| 1925 | + | } | |
| 1926 | + | libs = append(libs, lib) | |
| 1927 | + | } | |
| 1928 | + | ||
| 1929 | + | core.PuregoSafeRegister(&xSocketGLibType, libs, "g_socket_get_type") | |
| 1930 | + | ||
| 1931 | + | core.PuregoSafeRegister(&xNewSocket, libs, "g_socket_new") | |
| 1932 | + | core.PuregoSafeRegister(&xNewSocketFromFd, libs, "g_socket_new_from_fd") | |
| 1933 | + | ||
| 1934 | + | core.PuregoSafeRegister(&xSocketAccept, libs, "g_socket_accept") | |
| 1935 | + | core.PuregoSafeRegister(&xSocketBind, libs, "g_socket_bind") | |
| 1936 | + | core.PuregoSafeRegister(&xSocketCheckConnectResult, libs, "g_socket_check_connect_result") | |
| 1937 | + | core.PuregoSafeRegister(&xSocketClose, libs, "g_socket_close") | |
| 1938 | + | core.PuregoSafeRegister(&xSocketConditionCheck, libs, "g_socket_condition_check") | |
| 1939 | + | core.PuregoSafeRegister(&xSocketConditionTimedWait, libs, "g_socket_condition_timed_wait") | |
| 1940 | + | core.PuregoSafeRegister(&xSocketConditionWait, libs, "g_socket_condition_wait") | |
| 1941 | + | core.PuregoSafeRegister(&xSocketConnect, libs, "g_socket_connect") | |
| 1942 | + | core.PuregoSafeRegister(&xSocketConnectionFactoryCreateConnection, libs, "g_socket_connection_factory_create_connection") | |
| 1943 | + | core.PuregoSafeRegister(&xSocketCreateSource, libs, "g_socket_create_source") | |
| 1944 | + | core.PuregoSafeRegister(&xSocketGetAvailableBytes, libs, "g_socket_get_available_bytes") | |
| 1945 | + | core.PuregoSafeRegister(&xSocketGetBlocking, libs, "g_socket_get_blocking") | |
| 1946 | + | core.PuregoSafeRegister(&xSocketGetBroadcast, libs, "g_socket_get_broadcast") | |
| 1947 | + | core.PuregoSafeRegister(&xSocketGetCredentials, libs, "g_socket_get_credentials") | |
| 1948 | + | core.PuregoSafeRegister(&xSocketGetFamily, libs, "g_socket_get_family") | |
| 1949 | + | core.PuregoSafeRegister(&xSocketGetFd, libs, "g_socket_get_fd") | |
| 1950 | + | core.PuregoSafeRegister(&xSocketGetKeepalive, libs, "g_socket_get_keepalive") | |
| 1951 | + | core.PuregoSafeRegister(&xSocketGetListenBacklog, libs, "g_socket_get_listen_backlog") | |
| 1952 | + | core.PuregoSafeRegister(&xSocketGetLocalAddress, libs, "g_socket_get_local_address") | |
| 1953 | + | core.PuregoSafeRegister(&xSocketGetMulticastLoopback, libs, "g_socket_get_multicast_loopback") | |
| 1954 | + | core.PuregoSafeRegister(&xSocketGetMulticastTtl, libs, "g_socket_get_multicast_ttl") | |
| 1955 | + | core.PuregoSafeRegister(&xSocketGetOption, libs, "g_socket_get_option") | |
| 1956 | + | core.PuregoSafeRegister(&xSocketGetProtocol, libs, "g_socket_get_protocol") | |
| 1957 | + | core.PuregoSafeRegister(&xSocketGetRemoteAddress, libs, "g_socket_get_remote_address") | |
| 1958 | + | core.PuregoSafeRegister(&xSocketGetSocketType, libs, "g_socket_get_socket_type") | |
| 1959 | + | core.PuregoSafeRegister(&xSocketGetTimeout, libs, "g_socket_get_timeout") | |
| 1960 | + | core.PuregoSafeRegister(&xSocketGetTtl, libs, "g_socket_get_ttl") | |
| 1961 | + | core.PuregoSafeRegister(&xSocketIsClosed, libs, "g_socket_is_closed") | |
| 1962 | + | core.PuregoSafeRegister(&xSocketIsConnected, libs, "g_socket_is_connected") | |
| 1963 | + | core.PuregoSafeRegister(&xSocketJoinMulticastGroup, libs, "g_socket_join_multicast_group") | |
| 1964 | + | core.PuregoSafeRegister(&xSocketJoinMulticastGroupSsm, libs, "g_socket_join_multicast_group_ssm") | |
| 1965 | + | core.PuregoSafeRegister(&xSocketLeaveMulticastGroup, libs, "g_socket_leave_multicast_group") | |
| 1966 | + | core.PuregoSafeRegister(&xSocketLeaveMulticastGroupSsm, libs, "g_socket_leave_multicast_group_ssm") | |
| 1967 | + | core.PuregoSafeRegister(&xSocketListen, libs, "g_socket_listen") | |
| 1968 | + | core.PuregoSafeRegister(&xSocketReceive, libs, "g_socket_receive") | |
| 1969 | + | core.PuregoSafeRegister(&xSocketReceiveBytes, libs, "g_socket_receive_bytes") | |
| 1970 | + | core.PuregoSafeRegister(&xSocketReceiveBytesFrom, libs, "g_socket_receive_bytes_from") | |
| 1971 | + | core.PuregoSafeRegister(&xSocketReceiveFrom, libs, "g_socket_receive_from") | |
| 1972 | + | core.PuregoSafeRegister(&xSocketReceiveMessage, libs, "g_socket_receive_message") | |
| 1973 | + | core.PuregoSafeRegister(&xSocketReceiveMessages, libs, "g_socket_receive_messages") | |
| 1974 | + | core.PuregoSafeRegister(&xSocketReceiveWithBlocking, libs, "g_socket_receive_with_blocking") | |
| 1975 | + | core.PuregoSafeRegister(&xSocketSend, libs, "g_socket_send") | |
| 1976 | + | core.PuregoSafeRegister(&xSocketSendMessage, libs, "g_socket_send_message") | |
| 1977 | + | core.PuregoSafeRegister(&xSocketSendMessageWithTimeout, libs, "g_socket_send_message_with_timeout") | |
| 1978 | + | core.PuregoSafeRegister(&xSocketSendMessages, libs, "g_socket_send_messages") | |
| 1979 | + | core.PuregoSafeRegister(&xSocketSendTo, libs, "g_socket_send_to") | |
| 1980 | + | core.PuregoSafeRegister(&xSocketSendWithBlocking, libs, "g_socket_send_with_blocking") | |
| 1981 | + | core.PuregoSafeRegister(&xSocketSetBlocking, libs, "g_socket_set_blocking") | |
| 1982 | + | core.PuregoSafeRegister(&xSocketSetBroadcast, libs, "g_socket_set_broadcast") | |
| 1983 | + | core.PuregoSafeRegister(&xSocketSetKeepalive, libs, "g_socket_set_keepalive") | |
| 1984 | + | core.PuregoSafeRegister(&xSocketSetListenBacklog, libs, "g_socket_set_listen_backlog") | |
| 1985 | + | core.PuregoSafeRegister(&xSocketSetMulticastLoopback, libs, "g_socket_set_multicast_loopback") | |
| 1986 | + | core.PuregoSafeRegister(&xSocketSetMulticastTtl, libs, "g_socket_set_multicast_ttl") | |
| 1987 | + | core.PuregoSafeRegister(&xSocketSetOption, libs, "g_socket_set_option") | |
| 1988 | + | core.PuregoSafeRegister(&xSocketSetTimeout, libs, "g_socket_set_timeout") | |
| 1989 | + | core.PuregoSafeRegister(&xSocketSetTtl, libs, "g_socket_set_ttl") | |
| 1990 | + | core.PuregoSafeRegister(&xSocketShutdown, libs, "g_socket_shutdown") | |
| 1991 | + | core.PuregoSafeRegister(&xSocketSpeaksIpv4, libs, "g_socket_speaks_ipv4") | |
| 2007 | 1992 | } | |
| @@ -375,7 +375,6 @@ type Socket struct { | |||||
| 375 | var xSocketGLibType func() types.GType | 375 | var xSocketGLibType func() types.GType | ||
| 376 | 376 | ||||
| 377 | func SocketGLibType() types.GType { | 377 | func SocketGLibType() types.GType { | ||
| 378 | - | core.LazyRegister(&xSocketGLibType, "GIO", "g_socket_get_type", false) | |||
| 379 | return xSocketGLibType() | 378 | return xSocketGLibType() | ||
| 380 | } | 379 | } | ||
| 381 | 380 | ||||
| @@ -401,7 +400,6 @@ var xNewSocket func(SocketFamily, SocketType, SocketProtocol, **glib.Error) uint | |||||
| 401 | // system, so you can use protocols not listed in #GSocketProtocol if you | 400 | // system, so you can use protocols not listed in #GSocketProtocol if you | ||
| 402 | // know the protocol number used for it. | 401 | // know the protocol number used for it. | ||
| 403 | func NewSocket(FamilyVar SocketFamily, TypeVar SocketType, ProtocolVar SocketProtocol) (*Socket, error) { | 402 | func NewSocket(FamilyVar SocketFamily, TypeVar SocketType, ProtocolVar SocketProtocol) (*Socket, error) { | ||
| 404 | - | core.LazyRegister(&xNewSocket, "GIO", "g_socket_new", false) | |||
| 405 | var cls *Socket | 403 | var cls *Socket | ||
| 406 | var cerr *glib.Error | 404 | var cerr *glib.Error | ||
| 407 | 405 | ||||
| @@ -434,7 +432,6 @@ var xNewSocketFromFd func(int, **glib.Error) uintptr | |||||
| 434 | // Since GLib 2.46, it is no longer a fatal error to call this on a non-socket | 432 | // Since GLib 2.46, it is no longer a fatal error to call this on a non-socket | ||
| 435 | // descriptor. Instead, a GError will be set with code %G_IO_ERROR_FAILED | 433 | // descriptor. Instead, a GError will be set with code %G_IO_ERROR_FAILED | ||
| 436 | func NewSocketFromFd(FdVar int) (*Socket, error) { | 434 | func NewSocketFromFd(FdVar int) (*Socket, error) { | ||
| 437 | - | core.LazyRegister(&xNewSocketFromFd, "GIO", "g_socket_new_from_fd", false) | |||
| 438 | var cls *Socket | 435 | var cls *Socket | ||
| 439 | var cerr *glib.Error | 436 | var cerr *glib.Error | ||
| 440 | 437 | ||||
| @@ -464,7 +461,6 @@ var xSocketAccept func(uintptr, uintptr, **glib.Error) uintptr | |||||
| 464 | // or return %G_IO_ERROR_WOULD_BLOCK if non-blocking I/O is enabled. | 461 | // or return %G_IO_ERROR_WOULD_BLOCK if non-blocking I/O is enabled. | ||
| 465 | // To be notified of an incoming connection, wait for the %G_IO_IN condition. | 462 | // To be notified of an incoming connection, wait for the %G_IO_IN condition. | ||
| 466 | func (x *Socket) Accept(CancellableVar *Cancellable) (*Socket, error) { | 463 | func (x *Socket) Accept(CancellableVar *Cancellable) (*Socket, error) { | ||
| 467 | - | core.LazyRegister(&xSocketAccept, "GIO", "g_socket_accept", false) | |||
| 468 | var cls *Socket | 464 | var cls *Socket | ||
| 469 | var cerr *glib.Error | 465 | var cerr *glib.Error | ||
| 470 | 466 | ||||
| @@ -507,7 +503,6 @@ var xSocketBind func(uintptr, uintptr, bool, **glib.Error) bool | |||||
| 507 | // broadcast packets sent to that address. (The behavior of unicast | 503 | // broadcast packets sent to that address. (The behavior of unicast | ||
| 508 | // UDP packets to an address with multiple listeners is not defined.) | 504 | // UDP packets to an address with multiple listeners is not defined.) | ||
| 509 | func (x *Socket) Bind(AddressVar *SocketAddress, AllowReuseVar bool) (bool, error) { | 505 | func (x *Socket) Bind(AddressVar *SocketAddress, AllowReuseVar bool) (bool, error) { | ||
| 510 | - | core.LazyRegister(&xSocketBind, "GIO", "g_socket_bind", false) | |||
| 511 | var cerr *glib.Error | 506 | var cerr *glib.Error | ||
| 512 | 507 | ||||
| 513 | cret := xSocketBind(x.GoPointer(), AddressVar.GoPointer(), AllowReuseVar, &cerr) | 508 | cret := xSocketBind(x.GoPointer(), AddressVar.GoPointer(), AllowReuseVar, &cerr) | ||
| @@ -523,7 +518,6 @@ var xSocketCheckConnectResult func(uintptr, **glib.Error) bool | |||||
| 523 | // This is used to check for errors when g_socket_connect() is | 518 | // This is used to check for errors when g_socket_connect() is | ||
| 524 | // used in non-blocking mode. | 519 | // used in non-blocking mode. | ||
| 525 | func (x *Socket) CheckConnectResult() (bool, error) { | 520 | func (x *Socket) CheckConnectResult() (bool, error) { | ||
| 526 | - | core.LazyRegister(&xSocketCheckConnectResult, "GIO", "g_socket_check_connect_result", false) | |||
| 527 | var cerr *glib.Error | 521 | var cerr *glib.Error | ||
| 528 | 522 | ||||
| 529 | cret := xSocketCheckConnectResult(x.GoPointer(), &cerr) | 523 | cret := xSocketCheckConnectResult(x.GoPointer(), &cerr) | ||
| @@ -565,7 +559,6 @@ var xSocketClose func(uintptr, **glib.Error) bool | |||||
| 565 | // only works if the client will close its connection after the server | 559 | // only works if the client will close its connection after the server | ||
| 566 | // does.) | 560 | // does.) | ||
| 567 | func (x *Socket) Close() (bool, error) { | 561 | func (x *Socket) Close() (bool, error) { | ||
| 568 | - | core.LazyRegister(&xSocketClose, "GIO", "g_socket_close", false) | |||
| 569 | var cerr *glib.Error | 562 | var cerr *glib.Error | ||
| 570 | 563 | ||||
| 571 | cret := xSocketClose(x.GoPointer(), &cerr) | 564 | cret := xSocketClose(x.GoPointer(), &cerr) | ||
| @@ -595,8 +588,6 @@ var xSocketConditionCheck func(uintptr, glib.IOCondition) glib.IOCondition | |||||
| 595 | // | 588 | // | ||
| 596 | // This call never blocks. | 589 | // This call never blocks. | ||
| 597 | func (x *Socket) ConditionCheck(ConditionVar glib.IOCondition) glib.IOCondition { | 590 | func (x *Socket) ConditionCheck(ConditionVar glib.IOCondition) glib.IOCondition { | ||
| 598 | - | core.LazyRegister(&xSocketConditionCheck, "GIO", "g_socket_condition_check", false) | |||
| 599 | - | ||||
| 600 | cret := xSocketConditionCheck(x.GoPointer(), ConditionVar) | 591 | cret := xSocketConditionCheck(x.GoPointer(), ConditionVar) | ||
| 601 | return cret | 592 | return cret | ||
| 602 | } | 593 | } | ||
| @@ -620,7 +611,6 @@ var xSocketConditionTimedWait func(uintptr, glib.IOCondition, int64, uintptr, ** | |||||
| 620 | // resolution, and the behavior is undefined if @timeout_us is not an | 611 | // resolution, and the behavior is undefined if @timeout_us is not an | ||
| 621 | // exact number of milliseconds. | 612 | // exact number of milliseconds. | ||
| 622 | func (x *Socket) ConditionTimedWait(ConditionVar glib.IOCondition, TimeoutUsVar int64, CancellableVar *Cancellable) (bool, error) { | 613 | func (x *Socket) ConditionTimedWait(ConditionVar glib.IOCondition, TimeoutUsVar int64, CancellableVar *Cancellable) (bool, error) { | ||
| 623 | - | core.LazyRegister(&xSocketConditionTimedWait, "GIO", "g_socket_condition_timed_wait", false) | |||
| 624 | var cerr *glib.Error | 614 | var cerr *glib.Error | ||
| 625 | 615 | ||||
| 626 | cret := xSocketConditionTimedWait(x.GoPointer(), ConditionVar, TimeoutUsVar, CancellableVar.GoPointer(), &cerr) | 616 | cret := xSocketConditionTimedWait(x.GoPointer(), ConditionVar, TimeoutUsVar, CancellableVar.GoPointer(), &cerr) | ||
| @@ -643,7 +633,6 @@ var xSocketConditionWait func(uintptr, glib.IOCondition, uintptr, **glib.Error) | |||||
| 643 | // | 633 | // | ||
| 644 | // See also g_socket_condition_timed_wait(). | 634 | // See also g_socket_condition_timed_wait(). | ||
| 645 | func (x *Socket) ConditionWait(ConditionVar glib.IOCondition, CancellableVar *Cancellable) (bool, error) { | 635 | func (x *Socket) ConditionWait(ConditionVar glib.IOCondition, CancellableVar *Cancellable) (bool, error) { | ||
| 646 | - | core.LazyRegister(&xSocketConditionWait, "GIO", "g_socket_condition_wait", false) | |||
| 647 | var cerr *glib.Error | 636 | var cerr *glib.Error | ||
| 648 | 637 | ||||
| 649 | cret := xSocketConditionWait(x.GoPointer(), ConditionVar, CancellableVar.GoPointer(), &cerr) | 638 | cret := xSocketConditionWait(x.GoPointer(), ConditionVar, CancellableVar.GoPointer(), &cerr) | ||
| @@ -672,7 +661,6 @@ var xSocketConnect func(uintptr, uintptr, uintptr, **glib.Error) bool | |||||
| 672 | // for the G_IO_OUT condition. The result of the connection must then be | 661 | // for the G_IO_OUT condition. The result of the connection must then be | ||
| 673 | // checked with g_socket_check_connect_result(). | 662 | // checked with g_socket_check_connect_result(). | ||
| 674 | func (x *Socket) Connect(AddressVar *SocketAddress, CancellableVar *Cancellable) (bool, error) { | 663 | func (x *Socket) Connect(AddressVar *SocketAddress, CancellableVar *Cancellable) (bool, error) { | ||
| 675 | - | core.LazyRegister(&xSocketConnect, "GIO", "g_socket_connect", false) | |||
| 676 | var cerr *glib.Error | 664 | var cerr *glib.Error | ||
| 677 | 665 | ||||
| 678 | cret := xSocketConnect(x.GoPointer(), AddressVar.GoPointer(), CancellableVar.GoPointer(), &cerr) | 666 | cret := xSocketConnect(x.GoPointer(), AddressVar.GoPointer(), CancellableVar.GoPointer(), &cerr) | ||
| @@ -687,7 +675,6 @@ var xSocketConnectionFactoryCreateConnection func(uintptr) uintptr | |||||
| 687 | // Creates a #GSocketConnection subclass of the right type for | 675 | // Creates a #GSocketConnection subclass of the right type for | ||
| 688 | // @socket. | 676 | // @socket. | ||
| 689 | func (x *Socket) ConnectionFactoryCreateConnection() *SocketConnection { | 677 | func (x *Socket) ConnectionFactoryCreateConnection() *SocketConnection { | ||
| 690 | - | core.LazyRegister(&xSocketConnectionFactoryCreateConnection, "GIO", "g_socket_connection_factory_create_connection", false) | |||
| 691 | var cls *SocketConnection | 678 | var cls *SocketConnection | ||
| 692 | 679 | ||||
| 693 | cret := xSocketConnectionFactoryCreateConnection(x.GoPointer()) | 680 | cret := xSocketConnectionFactoryCreateConnection(x.GoPointer()) | ||
| @@ -723,8 +710,6 @@ var xSocketCreateSource func(uintptr, glib.IOCondition, uintptr) uintptr | |||||
| 723 | // marked as having had a timeout, and so the next #GSocket I/O method | 710 | // marked as having had a timeout, and so the next #GSocket I/O method | ||
| 724 | // you call will then fail with a %G_IO_ERROR_TIMED_OUT. | 711 | // you call will then fail with a %G_IO_ERROR_TIMED_OUT. | ||
| 725 | func (x *Socket) CreateSource(ConditionVar glib.IOCondition, CancellableVar *Cancellable) *glib.Source { | 712 | func (x *Socket) CreateSource(ConditionVar glib.IOCondition, CancellableVar *Cancellable) *glib.Source { | ||
| 726 | - | core.LazyRegister(&xSocketCreateSource, "GIO", "g_socket_create_source", false) | |||
| 727 | - | ||||
| 728 | cret := xSocketCreateSource(x.GoPointer(), ConditionVar, CancellableVar.GoPointer()) | 713 | cret := xSocketCreateSource(x.GoPointer(), ConditionVar, CancellableVar.GoPointer()) | ||
| 729 | if cret == 0 { | 714 | if cret == 0 { | ||
| 730 | return nil | 715 | return nil | ||
| @@ -747,8 +732,6 @@ var xSocketGetAvailableBytes func(uintptr) int | |||||
| 747 | // g_socket_get_available_bytes() first and then doing a receive of | 732 | // g_socket_get_available_bytes() first and then doing a receive of | ||
| 748 | // exactly the right size. | 733 | // exactly the right size. | ||
| 749 | func (x *Socket) GetAvailableBytes() int { | 734 | func (x *Socket) GetAvailableBytes() int { | ||
| 750 | - | core.LazyRegister(&xSocketGetAvailableBytes, "GIO", "g_socket_get_available_bytes", false) | |||
| 751 | - | ||||
| 752 | cret := xSocketGetAvailableBytes(x.GoPointer()) | 735 | cret := xSocketGetAvailableBytes(x.GoPointer()) | ||
| 753 | return cret | 736 | return cret | ||
| 754 | } | 737 | } | ||
| @@ -758,8 +741,6 @@ var xSocketGetBlocking func(uintptr) bool | |||||
| 758 | // Gets the blocking mode of the socket. For details on blocking I/O, | 741 | // Gets the blocking mode of the socket. For details on blocking I/O, | ||
| 759 | // see g_socket_set_blocking(). | 742 | // see g_socket_set_blocking(). | ||
| 760 | func (x *Socket) GetBlocking() bool { | 743 | func (x *Socket) GetBlocking() bool { | ||
| 761 | - | core.LazyRegister(&xSocketGetBlocking, "GIO", "g_socket_get_blocking", false) | |||
| 762 | - | ||||
| 763 | cret := xSocketGetBlocking(x.GoPointer()) | 744 | cret := xSocketGetBlocking(x.GoPointer()) | ||
| 764 | return cret | 745 | return cret | ||
| 765 | } | 746 | } | ||
| @@ -770,8 +751,6 @@ var xSocketGetBroadcast func(uintptr) bool | |||||
| 770 | // it is possible to send packets to broadcast | 751 | // it is possible to send packets to broadcast | ||
| 771 | // addresses. | 752 | // addresses. | ||
| 772 | func (x *Socket) GetBroadcast() bool { | 753 | func (x *Socket) GetBroadcast() bool { | ||
| 773 | - | core.LazyRegister(&xSocketGetBroadcast, "GIO", "g_socket_get_broadcast", false) | |||
| 774 | - | ||||
| 775 | cret := xSocketGetBroadcast(x.GoPointer()) | 754 | cret := xSocketGetBroadcast(x.GoPointer()) | ||
| 776 | return cret | 755 | return cret | ||
| 777 | } | 756 | } | ||
| @@ -799,7 +778,6 @@ var xSocketGetCredentials func(uintptr, **glib.Error) uintptr | |||||
| 799 | // g_unix_connection_send_credentials() / | 778 | // g_unix_connection_send_credentials() / | ||
| 800 | // g_unix_connection_receive_credentials() functions. | 779 | // g_unix_connection_receive_credentials() functions. | ||
| 801 | func (x *Socket) GetCredentials() (*Credentials, error) { | 780 | func (x *Socket) GetCredentials() (*Credentials, error) { | ||
| 802 | - | core.LazyRegister(&xSocketGetCredentials, "GIO", "g_socket_get_credentials", false) | |||
| 803 | var cls *Credentials | 781 | var cls *Credentials | ||
| 804 | var cerr *glib.Error | 782 | var cerr *glib.Error | ||
| 805 | 783 | ||||
| @@ -820,8 +798,6 @@ var xSocketGetFamily func(uintptr) SocketFamily | |||||
| 820 | 798 | ||||
| 821 | // Gets the socket family of the socket. | 799 | // Gets the socket family of the socket. | ||
| 822 | func (x *Socket) GetFamily() SocketFamily { | 800 | func (x *Socket) GetFamily() SocketFamily { | ||
| 823 | - | core.LazyRegister(&xSocketGetFamily, "GIO", "g_socket_get_family", false) | |||
| 824 | - | ||||
| 825 | cret := xSocketGetFamily(x.GoPointer()) | 801 | cret := xSocketGetFamily(x.GoPointer()) | ||
| 826 | return cret | 802 | return cret | ||
| 827 | } | 803 | } | ||
| @@ -834,8 +810,6 @@ var xSocketGetFd func(uintptr) int | |||||
| 834 | // doing platform specific or otherwise unusual operations | 810 | // doing platform specific or otherwise unusual operations | ||
| 835 | // on the socket. | 811 | // on the socket. | ||
| 836 | func (x *Socket) GetFd() int { | 812 | func (x *Socket) GetFd() int { | ||
| 837 | - | core.LazyRegister(&xSocketGetFd, "GIO", "g_socket_get_fd", false) | |||
| 838 | - | ||||
| 839 | cret := xSocketGetFd(x.GoPointer()) | 813 | cret := xSocketGetFd(x.GoPointer()) | ||
| 840 | return cret | 814 | return cret | ||
| 841 | } | 815 | } | ||
| @@ -845,8 +819,6 @@ var xSocketGetKeepalive func(uintptr) bool | |||||
| 845 | // Gets the keepalive mode of the socket. For details on this, | 819 | // Gets the keepalive mode of the socket. For details on this, | ||
| 846 | // see g_socket_set_keepalive(). | 820 | // see g_socket_set_keepalive(). | ||
| 847 | func (x *Socket) GetKeepalive() bool { | 821 | func (x *Socket) GetKeepalive() bool { | ||
| 848 | - | core.LazyRegister(&xSocketGetKeepalive, "GIO", "g_socket_get_keepalive", false) | |||
| 849 | - | ||||
| 850 | cret := xSocketGetKeepalive(x.GoPointer()) | 822 | cret := xSocketGetKeepalive(x.GoPointer()) | ||
| 851 | return cret | 823 | return cret | ||
| 852 | } | 824 | } | ||
| @@ -856,8 +828,6 @@ var xSocketGetListenBacklog func(uintptr) int | |||||
| 856 | // Gets the listen backlog setting of the socket. For details on this, | 828 | // Gets the listen backlog setting of the socket. For details on this, | ||
| 857 | // see g_socket_set_listen_backlog(). | 829 | // see g_socket_set_listen_backlog(). | ||
| 858 | func (x *Socket) GetListenBacklog() int { | 830 | func (x *Socket) GetListenBacklog() int { | ||
| 859 | - | core.LazyRegister(&xSocketGetListenBacklog, "GIO", "g_socket_get_listen_backlog", false) | |||
| 860 | - | ||||
| 861 | cret := xSocketGetListenBacklog(x.GoPointer()) | 831 | cret := xSocketGetListenBacklog(x.GoPointer()) | ||
| 862 | return cret | 832 | return cret | ||
| 863 | } | 833 | } | ||
| @@ -868,7 +838,6 @@ var xSocketGetLocalAddress func(uintptr, **glib.Error) uintptr | |||||
| 868 | // useful if the socket has been bound to a local address, | 838 | // useful if the socket has been bound to a local address, | ||
| 869 | // either explicitly or implicitly when connecting. | 839 | // either explicitly or implicitly when connecting. | ||
| 870 | func (x *Socket) GetLocalAddress() (*SocketAddress, error) { | 840 | func (x *Socket) GetLocalAddress() (*SocketAddress, error) { | ||
| 871 | - | core.LazyRegister(&xSocketGetLocalAddress, "GIO", "g_socket_get_local_address", false) | |||
| 872 | var cls *SocketAddress | 841 | var cls *SocketAddress | ||
| 873 | var cerr *glib.Error | 842 | var cerr *glib.Error | ||
| 874 | 843 | ||||
| @@ -891,8 +860,6 @@ var xSocketGetMulticastLoopback func(uintptr) bool | |||||
| 891 | // default), outgoing multicast packets will be looped back to | 860 | // default), outgoing multicast packets will be looped back to | ||
| 892 | // multicast listeners on the same host. | 861 | // multicast listeners on the same host. | ||
| 893 | func (x *Socket) GetMulticastLoopback() bool { | 862 | func (x *Socket) GetMulticastLoopback() bool { | ||
| 894 | - | core.LazyRegister(&xSocketGetMulticastLoopback, "GIO", "g_socket_get_multicast_loopback", false) | |||
| 895 | - | ||||
| 896 | cret := xSocketGetMulticastLoopback(x.GoPointer()) | 863 | cret := xSocketGetMulticastLoopback(x.GoPointer()) | ||
| 897 | return cret | 864 | return cret | ||
| 898 | } | 865 | } | ||
| @@ -902,8 +869,6 @@ var xSocketGetMulticastTtl func(uintptr) uint | |||||
| 902 | // Gets the multicast time-to-live setting on @socket; see | 869 | // Gets the multicast time-to-live setting on @socket; see | ||
| 903 | // g_socket_set_multicast_ttl() for more details. | 870 | // g_socket_set_multicast_ttl() for more details. | ||
| 904 | func (x *Socket) GetMulticastTtl() uint { | 871 | func (x *Socket) GetMulticastTtl() uint { | ||
| 905 | - | core.LazyRegister(&xSocketGetMulticastTtl, "GIO", "g_socket_get_multicast_ttl", false) | |||
| 906 | - | ||||
| 907 | cret := xSocketGetMulticastTtl(x.GoPointer()) | 872 | cret := xSocketGetMulticastTtl(x.GoPointer()) | ||
| 908 | return cret | 873 | return cret | ||
| 909 | } | 874 | } | ||
| @@ -924,7 +889,6 @@ var xSocketGetOption func(uintptr, int, int, *int, **glib.Error) bool | |||||
| 924 | // @value is still a pointer to a #gint variable, not a #guchar; | 889 | // @value is still a pointer to a #gint variable, not a #guchar; | ||
| 925 | // g_socket_get_option() will handle the conversion internally. | 890 | // g_socket_get_option() will handle the conversion internally. | ||
| 926 | func (x *Socket) GetOption(LevelVar int, OptnameVar int, ValueVar *int) (bool, error) { | 891 | func (x *Socket) GetOption(LevelVar int, OptnameVar int, ValueVar *int) (bool, error) { | ||
| 927 | - | core.LazyRegister(&xSocketGetOption, "GIO", "g_socket_get_option", false) | |||
| 928 | var cerr *glib.Error | 892 | var cerr *glib.Error | ||
| 929 | 893 | ||||
| 930 | cret := xSocketGetOption(x.GoPointer(), LevelVar, OptnameVar, ValueVar, &cerr) | 894 | cret := xSocketGetOption(x.GoPointer(), LevelVar, OptnameVar, ValueVar, &cerr) | ||
| @@ -939,8 +903,6 @@ var xSocketGetProtocol func(uintptr) SocketProtocol | |||||
| 939 | // Gets the socket protocol id the socket was created with. | 903 | // Gets the socket protocol id the socket was created with. | ||
| 940 | // In case the protocol is unknown, -1 is returned. | 904 | // In case the protocol is unknown, -1 is returned. | ||
| 941 | func (x *Socket) GetProtocol() SocketProtocol { | 905 | func (x *Socket) GetProtocol() SocketProtocol { | ||
| 942 | - | core.LazyRegister(&xSocketGetProtocol, "GIO", "g_socket_get_protocol", false) | |||
| 943 | - | ||||
| 944 | cret := xSocketGetProtocol(x.GoPointer()) | 906 | cret := xSocketGetProtocol(x.GoPointer()) | ||
| 945 | return cret | 907 | return cret | ||
| 946 | } | 908 | } | ||
| @@ -950,7 +912,6 @@ var xSocketGetRemoteAddress func(uintptr, **glib.Error) uintptr | |||||
| 950 | // Try to get the remote address of a connected socket. This is only | 912 | // Try to get the remote address of a connected socket. This is only | ||
| 951 | // useful for connection oriented sockets that have been connected. | 913 | // useful for connection oriented sockets that have been connected. | ||
| 952 | func (x *Socket) GetRemoteAddress() (*SocketAddress, error) { | 914 | func (x *Socket) GetRemoteAddress() (*SocketAddress, error) { | ||
| 953 | - | core.LazyRegister(&xSocketGetRemoteAddress, "GIO", "g_socket_get_remote_address", false) | |||
| 954 | var cls *SocketAddress | 915 | var cls *SocketAddress | ||
| 955 | var cerr *glib.Error | 916 | var cerr *glib.Error | ||
| 956 | 917 | ||||
| @@ -971,8 +932,6 @@ var xSocketGetSocketType func(uintptr) SocketType | |||||
| 971 | 932 | ||||
| 972 | // Gets the socket type of the socket. | 933 | // Gets the socket type of the socket. | ||
| 973 | func (x *Socket) GetSocketType() SocketType { | 934 | func (x *Socket) GetSocketType() SocketType { | ||
| 974 | - | core.LazyRegister(&xSocketGetSocketType, "GIO", "g_socket_get_socket_type", false) | |||
| 975 | - | ||||
| 976 | cret := xSocketGetSocketType(x.GoPointer()) | 935 | cret := xSocketGetSocketType(x.GoPointer()) | ||
| 977 | return cret | 936 | return cret | ||
| 978 | } | 937 | } | ||
| @@ -982,8 +941,6 @@ var xSocketGetTimeout func(uintptr) uint | |||||
| 982 | // Gets the timeout setting of the socket. For details on this, see | 941 | // Gets the timeout setting of the socket. For details on this, see | ||
| 983 | // g_socket_set_timeout(). | 942 | // g_socket_set_timeout(). | ||
| 984 | func (x *Socket) GetTimeout() uint { | 943 | func (x *Socket) GetTimeout() uint { | ||
| 985 | - | core.LazyRegister(&xSocketGetTimeout, "GIO", "g_socket_get_timeout", false) | |||
| 986 | - | ||||
| 987 | cret := xSocketGetTimeout(x.GoPointer()) | 944 | cret := xSocketGetTimeout(x.GoPointer()) | ||
| 988 | return cret | 945 | return cret | ||
| 989 | } | 946 | } | ||
| @@ -993,8 +950,6 @@ var xSocketGetTtl func(uintptr) uint | |||||
| 993 | // Gets the unicast time-to-live setting on @socket; see | 950 | // Gets the unicast time-to-live setting on @socket; see | ||
| 994 | // g_socket_set_ttl() for more details. | 951 | // g_socket_set_ttl() for more details. | ||
| 995 | func (x *Socket) GetTtl() uint { | 952 | func (x *Socket) GetTtl() uint { | ||
| 996 | - | core.LazyRegister(&xSocketGetTtl, "GIO", "g_socket_get_ttl", false) | |||
| 997 | - | ||||
| 998 | cret := xSocketGetTtl(x.GoPointer()) | 953 | cret := xSocketGetTtl(x.GoPointer()) | ||
| 999 | return cret | 954 | return cret | ||
| 1000 | } | 955 | } | ||
| @@ -1003,8 +958,6 @@ var xSocketIsClosed func(uintptr) bool | |||||
| 1003 | 958 | ||||
| 1004 | // Checks whether a socket is closed. | 959 | // Checks whether a socket is closed. | ||
| 1005 | func (x *Socket) IsClosed() bool { | 960 | func (x *Socket) IsClosed() bool { | ||
| 1006 | - | core.LazyRegister(&xSocketIsClosed, "GIO", "g_socket_is_closed", false) | |||
| 1007 | - | ||||
| 1008 | cret := xSocketIsClosed(x.GoPointer()) | 961 | cret := xSocketIsClosed(x.GoPointer()) | ||
| 1009 | return cret | 962 | return cret | ||
| 1010 | } | 963 | } | ||
| @@ -1019,8 +972,6 @@ var xSocketIsConnected func(uintptr) bool | |||||
| 1019 | // connect, this function will not return %TRUE until after you call | 972 | // connect, this function will not return %TRUE until after you call | ||
| 1020 | // g_socket_check_connect_result(). | 973 | // g_socket_check_connect_result(). | ||
| 1021 | func (x *Socket) IsConnected() bool { | 974 | func (x *Socket) IsConnected() bool { | ||
| 1022 | - | core.LazyRegister(&xSocketIsConnected, "GIO", "g_socket_is_connected", false) | |||
| 1023 | - | ||||
| 1024 | cret := xSocketIsConnected(x.GoPointer()) | 975 | cret := xSocketIsConnected(x.GoPointer()) | ||
| 1025 | return cret | 976 | return cret | ||
| 1026 | } | 977 | } | ||
| @@ -1042,7 +993,6 @@ var xSocketJoinMulticastGroup func(uintptr, uintptr, bool, uintptr, **glib.Error | |||||
| 1042 | // To bind to a given source-specific multicast address, use | 993 | // To bind to a given source-specific multicast address, use | ||
| 1043 | // g_socket_join_multicast_group_ssm() instead. | 994 | // g_socket_join_multicast_group_ssm() instead. | ||
| 1044 | func (x *Socket) JoinMulticastGroup(GroupVar *InetAddress, SourceSpecificVar bool, IfaceVar *string) (bool, error) { | 995 | func (x *Socket) JoinMulticastGroup(GroupVar *InetAddress, SourceSpecificVar bool, IfaceVar *string) (bool, error) { | ||
| 1045 | - | core.LazyRegister(&xSocketJoinMulticastGroup, "GIO", "g_socket_join_multicast_group", false) | |||
| 1046 | var cerr *glib.Error | 996 | var cerr *glib.Error | ||
| 1047 | 997 | ||||
| 1048 | IfaceVarPtr := core.GStrdupNullable(IfaceVar) | 998 | IfaceVarPtr := core.GStrdupNullable(IfaceVar) | ||
| @@ -1073,7 +1023,6 @@ var xSocketJoinMulticastGroupSsm func(uintptr, uintptr, uintptr, uintptr, **glib | |||||
| 1073 | // @group with different @source_specific in order to receive multicast | 1023 | // @group with different @source_specific in order to receive multicast | ||
| 1074 | // packets from more than one source. | 1024 | // packets from more than one source. | ||
| 1075 | func (x *Socket) JoinMulticastGroupSsm(GroupVar *InetAddress, SourceSpecificVar *InetAddress, IfaceVar *string) (bool, error) { | 1025 | func (x *Socket) JoinMulticastGroupSsm(GroupVar *InetAddress, SourceSpecificVar *InetAddress, IfaceVar *string) (bool, error) { | ||
| 1076 | - | core.LazyRegister(&xSocketJoinMulticastGroupSsm, "GIO", "g_socket_join_multicast_group_ssm", false) | |||
| 1077 | var cerr *glib.Error | 1026 | var cerr *glib.Error | ||
| 1078 | 1027 | ||||
| 1079 | IfaceVarPtr := core.GStrdupNullable(IfaceVar) | 1028 | IfaceVarPtr := core.GStrdupNullable(IfaceVar) | ||
| @@ -1098,7 +1047,6 @@ var xSocketLeaveMulticastGroup func(uintptr, uintptr, bool, uintptr, **glib.Erro | |||||
| 1098 | // To unbind to a given source-specific multicast address, use | 1047 | // To unbind to a given source-specific multicast address, use | ||
| 1099 | // g_socket_leave_multicast_group_ssm() instead. | 1048 | // g_socket_leave_multicast_group_ssm() instead. | ||
| 1100 | func (x *Socket) LeaveMulticastGroup(GroupVar *InetAddress, SourceSpecificVar bool, IfaceVar *string) (bool, error) { | 1049 | func (x *Socket) LeaveMulticastGroup(GroupVar *InetAddress, SourceSpecificVar bool, IfaceVar *string) (bool, error) { | ||
| 1101 | - | core.LazyRegister(&xSocketLeaveMulticastGroup, "GIO", "g_socket_leave_multicast_group", false) | |||
| 1102 | var cerr *glib.Error | 1050 | var cerr *glib.Error | ||
| 1103 | 1051 | ||||
| 1104 | IfaceVarPtr := core.GStrdupNullable(IfaceVar) | 1052 | IfaceVarPtr := core.GStrdupNullable(IfaceVar) | ||
| @@ -1120,7 +1068,6 @@ var xSocketLeaveMulticastGroupSsm func(uintptr, uintptr, uintptr, uintptr, **gli | |||||
| 1120 | // @socket remains bound to its address and port, and can still receive | 1068 | // @socket remains bound to its address and port, and can still receive | ||
| 1121 | // unicast messages after calling this. | 1069 | // unicast messages after calling this. | ||
| 1122 | func (x *Socket) LeaveMulticastGroupSsm(GroupVar *InetAddress, SourceSpecificVar *InetAddress, IfaceVar *string) (bool, error) { | 1070 | func (x *Socket) LeaveMulticastGroupSsm(GroupVar *InetAddress, SourceSpecificVar *InetAddress, IfaceVar *string) (bool, error) { | ||
| 1123 | - | core.LazyRegister(&xSocketLeaveMulticastGroupSsm, "GIO", "g_socket_leave_multicast_group_ssm", false) | |||
| 1124 | var cerr *glib.Error | 1071 | var cerr *glib.Error | ||
| 1125 | 1072 | ||||
| 1126 | IfaceVarPtr := core.GStrdupNullable(IfaceVar) | 1073 | IfaceVarPtr := core.GStrdupNullable(IfaceVar) | ||
| @@ -1144,7 +1091,6 @@ var xSocketListen func(uintptr, **glib.Error) bool | |||||
| 1144 | // To set the maximum amount of outstanding clients, use | 1091 | // To set the maximum amount of outstanding clients, use | ||
| 1145 | // g_socket_set_listen_backlog(). | 1092 | // g_socket_set_listen_backlog(). | ||
| 1146 | func (x *Socket) Listen() (bool, error) { | 1093 | func (x *Socket) Listen() (bool, error) { | ||
| 1147 | - | core.LazyRegister(&xSocketListen, "GIO", "g_socket_listen", false) | |||
| 1148 | var cerr *glib.Error | 1094 | var cerr *glib.Error | ||
| 1149 | 1095 | ||||
| 1150 | cret := xSocketListen(x.GoPointer(), &cerr) | 1096 | cret := xSocketListen(x.GoPointer(), &cerr) | ||
| @@ -1180,7 +1126,6 @@ var xSocketReceive func(uintptr, *[]byte, uint, uintptr, **glib.Error) int | |||||
| 1180 | // | 1126 | // | ||
| 1181 | // On error -1 is returned and @error is set accordingly. | 1127 | // On error -1 is returned and @error is set accordingly. | ||
| 1182 | func (x *Socket) Receive(BufferVar *[]byte, SizeVar uint, CancellableVar *Cancellable) (int, error) { | 1128 | func (x *Socket) Receive(BufferVar *[]byte, SizeVar uint, CancellableVar *Cancellable) (int, error) { | ||
| 1183 | - | core.LazyRegister(&xSocketReceive, "GIO", "g_socket_receive", false) | |||
| 1184 | var cerr *glib.Error | 1129 | var cerr *glib.Error | ||
| 1185 | 1130 | ||||
| 1186 | cret := xSocketReceive(x.GoPointer(), BufferVar, SizeVar, CancellableVar.GoPointer(), &cerr) | 1131 | cret := xSocketReceive(x.GoPointer(), BufferVar, SizeVar, CancellableVar.GoPointer(), &cerr) | ||
| @@ -1202,7 +1147,6 @@ var xSocketReceiveBytes func(uintptr, uint, int64, uintptr, **glib.Error) uintpt | |||||
| 1202 | // timeout from [property@Gio.Socket:timeout], or pass a positive number to wait | 1147 | // timeout from [property@Gio.Socket:timeout], or pass a positive number to wait | ||
| 1203 | // for that many microseconds for data before returning `G_IO_ERROR_TIMED_OUT`. | 1148 | // for that many microseconds for data before returning `G_IO_ERROR_TIMED_OUT`. | ||
| 1204 | func (x *Socket) ReceiveBytes(SizeVar uint, TimeoutUsVar int64, CancellableVar *Cancellable) (*glib.Bytes, error) { | 1149 | func (x *Socket) ReceiveBytes(SizeVar uint, TimeoutUsVar int64, CancellableVar *Cancellable) (*glib.Bytes, error) { | ||
| 1205 | - | core.LazyRegister(&xSocketReceiveBytes, "GIO", "g_socket_receive_bytes", false) | |||
| 1206 | var cerr *glib.Error | 1150 | var cerr *glib.Error | ||
| 1207 | 1151 | ||||
| 1208 | cret := xSocketReceiveBytes(x.GoPointer(), SizeVar, TimeoutUsVar, CancellableVar.GoPointer(), &cerr) | 1152 | cret := xSocketReceiveBytes(x.GoPointer(), SizeVar, TimeoutUsVar, CancellableVar.GoPointer(), &cerr) | ||
| @@ -1232,7 +1176,6 @@ var xSocketReceiveBytesFrom func(uintptr, **SocketAddress, uint, int64, uintptr, | |||||
| 1232 | // timeout from [property@Gio.Socket:timeout], or pass a positive number to wait | 1176 | // timeout from [property@Gio.Socket:timeout], or pass a positive number to wait | ||
| 1233 | // for that many microseconds for data before returning `G_IO_ERROR_TIMED_OUT`. | 1177 | // for that many microseconds for data before returning `G_IO_ERROR_TIMED_OUT`. | ||
| 1234 | func (x *Socket) ReceiveBytesFrom(AddressVar **SocketAddress, SizeVar uint, TimeoutUsVar int64, CancellableVar *Cancellable) (*glib.Bytes, error) { | 1178 | func (x *Socket) ReceiveBytesFrom(AddressVar **SocketAddress, SizeVar uint, TimeoutUsVar int64, CancellableVar *Cancellable) (*glib.Bytes, error) { | ||
| 1235 | - | core.LazyRegister(&xSocketReceiveBytesFrom, "GIO", "g_socket_receive_bytes_from", false) | |||
| 1236 | var cerr *glib.Error | 1179 | var cerr *glib.Error | ||
| 1237 | 1180 | ||||
| 1238 | cret := xSocketReceiveBytesFrom(x.GoPointer(), AddressVar, SizeVar, TimeoutUsVar, CancellableVar.GoPointer(), &cerr) | 1181 | cret := xSocketReceiveBytesFrom(x.GoPointer(), AddressVar, SizeVar, TimeoutUsVar, CancellableVar.GoPointer(), &cerr) | ||
| @@ -1255,7 +1198,6 @@ var xSocketReceiveFrom func(uintptr, **SocketAddress, *[]byte, uint, uintptr, ** | |||||
| 1255 | // | 1198 | // | ||
| 1256 | // See g_socket_receive() for additional information. | 1199 | // See g_socket_receive() for additional information. | ||
| 1257 | func (x *Socket) ReceiveFrom(AddressVar **SocketAddress, BufferVar *[]byte, SizeVar uint, CancellableVar *Cancellable) (int, error) { | 1200 | func (x *Socket) ReceiveFrom(AddressVar **SocketAddress, BufferVar *[]byte, SizeVar uint, CancellableVar *Cancellable) (int, error) { | ||
| 1258 | - | core.LazyRegister(&xSocketReceiveFrom, "GIO", "g_socket_receive_from", false) | |||
| 1259 | var cerr *glib.Error | 1201 | var cerr *glib.Error | ||
| 1260 | 1202 | ||||
| 1261 | cret := xSocketReceiveFrom(x.GoPointer(), AddressVar, BufferVar, SizeVar, CancellableVar.GoPointer(), &cerr) | 1203 | cret := xSocketReceiveFrom(x.GoPointer(), AddressVar, BufferVar, SizeVar, CancellableVar.GoPointer(), &cerr) | ||
| @@ -1327,7 +1269,6 @@ var xSocketReceiveMessage func(uintptr, **SocketAddress, []InputVector, int, *ui | |||||
| 1327 | // | 1269 | // | ||
| 1328 | // On error -1 is returned and @error is set accordingly. | 1270 | // On error -1 is returned and @error is set accordingly. | ||
| 1329 | func (x *Socket) ReceiveMessage(AddressVar **SocketAddress, VectorsVar []InputVector, NumVectorsVar int, MessagesVar *uintptr, NumMessagesVar *int, FlagsVar *int, CancellableVar *Cancellable) (int, error) { | 1271 | func (x *Socket) ReceiveMessage(AddressVar **SocketAddress, VectorsVar []InputVector, NumVectorsVar int, MessagesVar *uintptr, NumMessagesVar *int, FlagsVar *int, CancellableVar *Cancellable) (int, error) { | ||
| 1330 | - | core.LazyRegister(&xSocketReceiveMessage, "GIO", "g_socket_receive_message", false) | |||
| 1331 | var cerr *glib.Error | 1272 | var cerr *glib.Error | ||
| 1332 | 1273 | ||||
| 1333 | cret := xSocketReceiveMessage(x.GoPointer(), AddressVar, VectorsVar, NumVectorsVar, MessagesVar, NumMessagesVar, FlagsVar, CancellableVar.GoPointer(), &cerr) | 1274 | cret := xSocketReceiveMessage(x.GoPointer(), AddressVar, VectorsVar, NumVectorsVar, MessagesVar, NumMessagesVar, FlagsVar, CancellableVar.GoPointer(), &cerr) | ||
| @@ -1388,7 +1329,6 @@ var xSocketReceiveMessages func(uintptr, []InputMessage, uint, int, uintptr, **g | |||||
| 1388 | // be returned if zero messages could be received; otherwise the number of | 1329 | // be returned if zero messages could be received; otherwise the number of | ||
| 1389 | // messages successfully received before the error will be returned. | 1330 | // messages successfully received before the error will be returned. | ||
| 1390 | func (x *Socket) ReceiveMessages(MessagesVar []InputMessage, NumMessagesVar uint, FlagsVar int, CancellableVar *Cancellable) (int, error) { | 1331 | func (x *Socket) ReceiveMessages(MessagesVar []InputMessage, NumMessagesVar uint, FlagsVar int, CancellableVar *Cancellable) (int, error) { | ||
| 1391 | - | core.LazyRegister(&xSocketReceiveMessages, "GIO", "g_socket_receive_messages", false) | |||
| 1392 | var cerr *glib.Error | 1332 | var cerr *glib.Error | ||
| 1393 | 1333 | ||||
| 1394 | cret := xSocketReceiveMessages(x.GoPointer(), MessagesVar, NumMessagesVar, FlagsVar, CancellableVar.GoPointer(), &cerr) | 1334 | cret := xSocketReceiveMessages(x.GoPointer(), MessagesVar, NumMessagesVar, FlagsVar, CancellableVar.GoPointer(), &cerr) | ||
| @@ -1404,7 +1344,6 @@ var xSocketReceiveWithBlocking func(uintptr, *[]byte, uint, bool, uintptr, **gli | |||||
| 1404 | // the choice of blocking or non-blocking behavior is determined by | 1344 | // the choice of blocking or non-blocking behavior is determined by | ||
| 1405 | // the @blocking argument rather than by @socket's properties. | 1345 | // the @blocking argument rather than by @socket's properties. | ||
| 1406 | func (x *Socket) ReceiveWithBlocking(BufferVar *[]byte, SizeVar uint, BlockingVar bool, CancellableVar *Cancellable) (int, error) { | 1346 | func (x *Socket) ReceiveWithBlocking(BufferVar *[]byte, SizeVar uint, BlockingVar bool, CancellableVar *Cancellable) (int, error) { | ||
| 1407 | - | core.LazyRegister(&xSocketReceiveWithBlocking, "GIO", "g_socket_receive_with_blocking", false) | |||
| 1408 | var cerr *glib.Error | 1347 | var cerr *glib.Error | ||
| 1409 | 1348 | ||||
| 1410 | cret := xSocketReceiveWithBlocking(x.GoPointer(), BufferVar, SizeVar, BlockingVar, CancellableVar.GoPointer(), &cerr) | 1349 | cret := xSocketReceiveWithBlocking(x.GoPointer(), BufferVar, SizeVar, BlockingVar, CancellableVar.GoPointer(), &cerr) | ||
| @@ -1431,7 +1370,6 @@ var xSocketSend func(uintptr, []byte, uint, uintptr, **glib.Error) int | |||||
| 1431 | // | 1370 | // | ||
| 1432 | // On error -1 is returned and @error is set accordingly. | 1371 | // On error -1 is returned and @error is set accordingly. | ||
| 1433 | func (x *Socket) Send(BufferVar []byte, SizeVar uint, CancellableVar *Cancellable) (int, error) { | 1372 | func (x *Socket) Send(BufferVar []byte, SizeVar uint, CancellableVar *Cancellable) (int, error) { | ||
| 1434 | - | core.LazyRegister(&xSocketSend, "GIO", "g_socket_send", false) | |||
| 1435 | var cerr *glib.Error | 1373 | var cerr *glib.Error | ||
| 1436 | 1374 | ||||
| 1437 | cret := xSocketSend(x.GoPointer(), BufferVar, SizeVar, CancellableVar.GoPointer(), &cerr) | 1375 | cret := xSocketSend(x.GoPointer(), BufferVar, SizeVar, CancellableVar.GoPointer(), &cerr) | ||
| @@ -1486,7 +1424,6 @@ var xSocketSendMessage func(uintptr, uintptr, []OutputVector, int, uintptr, int, | |||||
| 1486 | // | 1424 | // | ||
| 1487 | // On error -1 is returned and @error is set accordingly. | 1425 | // On error -1 is returned and @error is set accordingly. | ||
| 1488 | func (x *Socket) SendMessage(AddressVar *SocketAddress, VectorsVar []OutputVector, NumVectorsVar int, MessagesVar uintptr, NumMessagesVar int, FlagsVar int, CancellableVar *Cancellable) (int, error) { | 1426 | func (x *Socket) SendMessage(AddressVar *SocketAddress, VectorsVar []OutputVector, NumVectorsVar int, MessagesVar uintptr, NumMessagesVar int, FlagsVar int, CancellableVar *Cancellable) (int, error) { | ||
| 1489 | - | core.LazyRegister(&xSocketSendMessage, "GIO", "g_socket_send_message", false) | |||
| 1490 | var cerr *glib.Error | 1427 | var cerr *glib.Error | ||
| 1491 | 1428 | ||||
| 1492 | cret := xSocketSendMessage(x.GoPointer(), AddressVar.GoPointer(), VectorsVar, NumVectorsVar, MessagesVar, NumMessagesVar, FlagsVar, CancellableVar.GoPointer(), &cerr) | 1429 | cret := xSocketSendMessage(x.GoPointer(), AddressVar.GoPointer(), VectorsVar, NumVectorsVar, MessagesVar, NumMessagesVar, FlagsVar, CancellableVar.GoPointer(), &cerr) | ||
| @@ -1506,7 +1443,6 @@ var xSocketSendMessageWithTimeout func(uintptr, uintptr, []OutputVector, int, ui | |||||
| 1506 | // if the socket is currently not writable %G_POLLABLE_RETURN_WOULD_BLOCK is | 1443 | // if the socket is currently not writable %G_POLLABLE_RETURN_WOULD_BLOCK is | ||
| 1507 | // returned. @bytes_written will contain 0 in both cases. | 1444 | // returned. @bytes_written will contain 0 in both cases. | ||
| 1508 | func (x *Socket) SendMessageWithTimeout(AddressVar *SocketAddress, VectorsVar []OutputVector, NumVectorsVar int, MessagesVar uintptr, NumMessagesVar int, FlagsVar int, TimeoutUsVar int64, BytesWrittenVar *uint, CancellableVar *Cancellable) (PollableReturn, error) { | 1445 | func (x *Socket) SendMessageWithTimeout(AddressVar *SocketAddress, VectorsVar []OutputVector, NumVectorsVar int, MessagesVar uintptr, NumMessagesVar int, FlagsVar int, TimeoutUsVar int64, BytesWrittenVar *uint, CancellableVar *Cancellable) (PollableReturn, error) { | ||
| 1509 | - | core.LazyRegister(&xSocketSendMessageWithTimeout, "GIO", "g_socket_send_message_with_timeout", false) | |||
| 1510 | var cerr *glib.Error | 1446 | var cerr *glib.Error | ||
| 1511 | 1447 | ||||
| 1512 | cret := xSocketSendMessageWithTimeout(x.GoPointer(), AddressVar.GoPointer(), VectorsVar, NumVectorsVar, MessagesVar, NumMessagesVar, FlagsVar, TimeoutUsVar, BytesWrittenVar, CancellableVar.GoPointer(), &cerr) | 1448 | cret := xSocketSendMessageWithTimeout(x.GoPointer(), AddressVar.GoPointer(), VectorsVar, NumVectorsVar, MessagesVar, NumMessagesVar, FlagsVar, TimeoutUsVar, BytesWrittenVar, CancellableVar.GoPointer(), &cerr) | ||
| @@ -1553,7 +1489,6 @@ var xSocketSendMessages func(uintptr, []OutputMessage, uint, int, uintptr, **gli | |||||
| 1553 | // be returned if zero messages could be sent; otherwise the number of messages | 1489 | // be returned if zero messages could be sent; otherwise the number of messages | ||
| 1554 | // successfully sent before the error will be returned. | 1490 | // successfully sent before the error will be returned. | ||
| 1555 | func (x *Socket) SendMessages(MessagesVar []OutputMessage, NumMessagesVar uint, FlagsVar int, CancellableVar *Cancellable) (int, error) { | 1491 | func (x *Socket) SendMessages(MessagesVar []OutputMessage, NumMessagesVar uint, FlagsVar int, CancellableVar *Cancellable) (int, error) { | ||
| 1556 | - | core.LazyRegister(&xSocketSendMessages, "GIO", "g_socket_send_messages", false) | |||
| 1557 | var cerr *glib.Error | 1492 | var cerr *glib.Error | ||
| 1558 | 1493 | ||||
| 1559 | cret := xSocketSendMessages(x.GoPointer(), MessagesVar, NumMessagesVar, FlagsVar, CancellableVar.GoPointer(), &cerr) | 1494 | cret := xSocketSendMessages(x.GoPointer(), MessagesVar, NumMessagesVar, FlagsVar, CancellableVar.GoPointer(), &cerr) | ||
| @@ -1571,7 +1506,6 @@ var xSocketSendTo func(uintptr, uintptr, []byte, uint, uintptr, **glib.Error) in | |||||
| 1571 | // | 1506 | // | ||
| 1572 | // See g_socket_send() for additional information. | 1507 | // See g_socket_send() for additional information. | ||
| 1573 | func (x *Socket) SendTo(AddressVar *SocketAddress, BufferVar []byte, SizeVar uint, CancellableVar *Cancellable) (int, error) { | 1508 | func (x *Socket) SendTo(AddressVar *SocketAddress, BufferVar []byte, SizeVar uint, CancellableVar *Cancellable) (int, error) { | ||
| 1574 | - | core.LazyRegister(&xSocketSendTo, "GIO", "g_socket_send_to", false) | |||
| 1575 | var cerr *glib.Error | 1509 | var cerr *glib.Error | ||
| 1576 | 1510 | ||||
| 1577 | cret := xSocketSendTo(x.GoPointer(), AddressVar.GoPointer(), BufferVar, SizeVar, CancellableVar.GoPointer(), &cerr) | 1511 | cret := xSocketSendTo(x.GoPointer(), AddressVar.GoPointer(), BufferVar, SizeVar, CancellableVar.GoPointer(), &cerr) | ||
| @@ -1587,7 +1521,6 @@ var xSocketSendWithBlocking func(uintptr, []byte, uint, bool, uintptr, **glib.Er | |||||
| 1587 | // the choice of blocking or non-blocking behavior is determined by | 1521 | // the choice of blocking or non-blocking behavior is determined by | ||
| 1588 | // the @blocking argument rather than by @socket's properties. | 1522 | // the @blocking argument rather than by @socket's properties. | ||
| 1589 | func (x *Socket) SendWithBlocking(BufferVar []byte, SizeVar uint, BlockingVar bool, CancellableVar *Cancellable) (int, error) { | 1523 | func (x *Socket) SendWithBlocking(BufferVar []byte, SizeVar uint, BlockingVar bool, CancellableVar *Cancellable) (int, error) { | ||
| 1590 | - | core.LazyRegister(&xSocketSendWithBlocking, "GIO", "g_socket_send_with_blocking", false) | |||
| 1591 | var cerr *glib.Error | 1524 | var cerr *glib.Error | ||
| 1592 | 1525 | ||||
| 1593 | cret := xSocketSendWithBlocking(x.GoPointer(), BufferVar, SizeVar, BlockingVar, CancellableVar.GoPointer(), &cerr) | 1526 | cret := xSocketSendWithBlocking(x.GoPointer(), BufferVar, SizeVar, BlockingVar, CancellableVar.GoPointer(), &cerr) | ||
| @@ -1609,8 +1542,6 @@ var xSocketSetBlocking func(uintptr, bool) | |||||
| 1609 | // platform level socket is always non-blocking, and blocking mode | 1542 | // platform level socket is always non-blocking, and blocking mode | ||
| 1610 | // is a GSocket level feature. | 1543 | // is a GSocket level feature. | ||
| 1611 | func (x *Socket) SetBlocking(BlockingVar bool) { | 1544 | func (x *Socket) SetBlocking(BlockingVar bool) { | ||
| 1612 | - | core.LazyRegister(&xSocketSetBlocking, "GIO", "g_socket_set_blocking", false) | |||
| 1613 | - | ||||
| 1614 | xSocketSetBlocking(x.GoPointer(), BlockingVar) | 1545 | xSocketSetBlocking(x.GoPointer(), BlockingVar) | ||
| 1615 | } | 1546 | } | ||
| 1616 | 1547 | ||||
| @@ -1619,8 +1550,6 @@ var xSocketSetBroadcast func(uintptr, bool) | |||||
| 1619 | // Sets whether @socket should allow sending to broadcast addresses. | 1550 | // Sets whether @socket should allow sending to broadcast addresses. | ||
| 1620 | // This is %FALSE by default. | 1551 | // This is %FALSE by default. | ||
| 1621 | func (x *Socket) SetBroadcast(BroadcastVar bool) { | 1552 | func (x *Socket) SetBroadcast(BroadcastVar bool) { | ||
| 1622 | - | core.LazyRegister(&xSocketSetBroadcast, "GIO", "g_socket_set_broadcast", false) | |||
| 1623 | - | ||||
| 1624 | xSocketSetBroadcast(x.GoPointer(), BroadcastVar) | 1553 | xSocketSetBroadcast(x.GoPointer(), BroadcastVar) | ||
| 1625 | } | 1554 | } | ||
| 1626 | 1555 | ||||
| @@ -1642,8 +1571,6 @@ var xSocketSetKeepalive func(uintptr, bool) | |||||
| 1642 | // periods of time, but also want to ensure that connections are eventually | 1571 | // periods of time, but also want to ensure that connections are eventually | ||
| 1643 | // garbage-collected if clients crash or become unreachable. | 1572 | // garbage-collected if clients crash or become unreachable. | ||
| 1644 | func (x *Socket) SetKeepalive(KeepaliveVar bool) { | 1573 | func (x *Socket) SetKeepalive(KeepaliveVar bool) { | ||
| 1645 | - | core.LazyRegister(&xSocketSetKeepalive, "GIO", "g_socket_set_keepalive", false) | |||
| 1646 | - | ||||
| 1647 | xSocketSetKeepalive(x.GoPointer(), KeepaliveVar) | 1574 | xSocketSetKeepalive(x.GoPointer(), KeepaliveVar) | ||
| 1648 | } | 1575 | } | ||
| 1649 | 1576 | ||||
| @@ -1657,8 +1584,6 @@ var xSocketSetListenBacklog func(uintptr, int) | |||||
| 1657 | // Note that this must be called before g_socket_listen() and has no | 1584 | // Note that this must be called before g_socket_listen() and has no | ||
| 1658 | // effect if called after that. | 1585 | // effect if called after that. | ||
| 1659 | func (x *Socket) SetListenBacklog(BacklogVar int) { | 1586 | func (x *Socket) SetListenBacklog(BacklogVar int) { | ||
| 1660 | - | core.LazyRegister(&xSocketSetListenBacklog, "GIO", "g_socket_set_listen_backlog", false) | |||
| 1661 | - | ||||
| 1662 | xSocketSetListenBacklog(x.GoPointer(), BacklogVar) | 1587 | xSocketSetListenBacklog(x.GoPointer(), BacklogVar) | ||
| 1663 | } | 1588 | } | ||
| 1664 | 1589 | ||||
| @@ -1668,8 +1593,6 @@ var xSocketSetMulticastLoopback func(uintptr, bool) | |||||
| 1668 | // listening on that multicast address on the same host. This is %TRUE | 1593 | // listening on that multicast address on the same host. This is %TRUE | ||
| 1669 | // by default. | 1594 | // by default. | ||
| 1670 | func (x *Socket) SetMulticastLoopback(LoopbackVar bool) { | 1595 | func (x *Socket) SetMulticastLoopback(LoopbackVar bool) { | ||
| 1671 | - | core.LazyRegister(&xSocketSetMulticastLoopback, "GIO", "g_socket_set_multicast_loopback", false) | |||
| 1672 | - | ||||
| 1673 | xSocketSetMulticastLoopback(x.GoPointer(), LoopbackVar) | 1596 | xSocketSetMulticastLoopback(x.GoPointer(), LoopbackVar) | ||
| 1674 | } | 1597 | } | ||
| 1675 | 1598 | ||||
| @@ -1679,8 +1602,6 @@ var xSocketSetMulticastTtl func(uintptr, uint) | |||||
| 1679 | // By default, this is 1, meaning that multicast packets will not leave | 1602 | // By default, this is 1, meaning that multicast packets will not leave | ||
| 1680 | // the local network. | 1603 | // the local network. | ||
| 1681 | func (x *Socket) SetMulticastTtl(TtlVar uint) { | 1604 | func (x *Socket) SetMulticastTtl(TtlVar uint) { | ||
| 1682 | - | core.LazyRegister(&xSocketSetMulticastTtl, "GIO", "g_socket_set_multicast_ttl", false) | |||
| 1683 | - | ||||
| 1684 | xSocketSetMulticastTtl(x.GoPointer(), TtlVar) | 1605 | xSocketSetMulticastTtl(x.GoPointer(), TtlVar) | ||
| 1685 | } | 1606 | } | ||
| 1686 | 1607 | ||||
| @@ -1696,7 +1617,6 @@ var xSocketSetOption func(uintptr, int, int, int, **glib.Error) bool | |||||
| 1696 | // platform-dependent options, you may need to include additional | 1617 | // platform-dependent options, you may need to include additional | ||
| 1697 | // headers. | 1618 | // headers. | ||
| 1698 | func (x *Socket) SetOption(LevelVar int, OptnameVar int, ValueVar int) (bool, error) { | 1619 | func (x *Socket) SetOption(LevelVar int, OptnameVar int, ValueVar int) (bool, error) { | ||
| 1699 | - | core.LazyRegister(&xSocketSetOption, "GIO", "g_socket_set_option", false) | |||
| 1700 | var cerr *glib.Error | 1620 | var cerr *glib.Error | ||
| 1701 | 1621 | ||||
| 1702 | cret := xSocketSetOption(x.GoPointer(), LevelVar, OptnameVar, ValueVar, &cerr) | 1622 | cret := xSocketSetOption(x.GoPointer(), LevelVar, OptnameVar, ValueVar, &cerr) | ||
| @@ -1729,8 +1649,6 @@ var xSocketSetTimeout func(uintptr, uint) | |||||
| 1729 | // Note that if an I/O operation is interrupted by a signal, this may | 1649 | // Note that if an I/O operation is interrupted by a signal, this may | ||
| 1730 | // cause the timeout to be reset. | 1650 | // cause the timeout to be reset. | ||
| 1731 | func (x *Socket) SetTimeout(TimeoutVar uint) { | 1651 | func (x *Socket) SetTimeout(TimeoutVar uint) { | ||
| 1732 | - | core.LazyRegister(&xSocketSetTimeout, "GIO", "g_socket_set_timeout", false) | |||
| 1733 | - | ||||
| 1734 | xSocketSetTimeout(x.GoPointer(), TimeoutVar) | 1652 | xSocketSetTimeout(x.GoPointer(), TimeoutVar) | ||
| 1735 | } | 1653 | } | ||
| 1736 | 1654 | ||||
| @@ -1739,8 +1657,6 @@ var xSocketSetTtl func(uintptr, uint) | |||||
| 1739 | // Sets the time-to-live for outgoing unicast packets on @socket. | 1657 | // Sets the time-to-live for outgoing unicast packets on @socket. | ||
| 1740 | // By default the platform-specific default value is used. | 1658 | // By default the platform-specific default value is used. | ||
| 1741 | func (x *Socket) SetTtl(TtlVar uint) { | 1659 | func (x *Socket) SetTtl(TtlVar uint) { | ||
| 1742 | - | core.LazyRegister(&xSocketSetTtl, "GIO", "g_socket_set_ttl", false) | |||
| 1743 | - | ||||
| 1744 | xSocketSetTtl(x.GoPointer(), TtlVar) | 1660 | xSocketSetTtl(x.GoPointer(), TtlVar) | ||
| 1745 | } | 1661 | } | ||
| 1746 | 1662 | ||||
| @@ -1761,7 +1677,6 @@ var xSocketShutdown func(uintptr, bool, bool, **glib.Error) bool | |||||
| 1761 | // then wait for the other side to close the connection, thus ensuring that the | 1677 | // then wait for the other side to close the connection, thus ensuring that the | ||
| 1762 | // other side saw all sent data. | 1678 | // other side saw all sent data. | ||
| 1763 | func (x *Socket) Shutdown(ShutdownReadVar bool, ShutdownWriteVar bool) (bool, error) { | 1679 | func (x *Socket) Shutdown(ShutdownReadVar bool, ShutdownWriteVar bool) (bool, error) { | ||
| 1764 | - | core.LazyRegister(&xSocketShutdown, "GIO", "g_socket_shutdown", false) | |||
| 1765 | var cerr *glib.Error | 1680 | var cerr *glib.Error | ||
| 1766 | 1681 | ||||
| 1767 | cret := xSocketShutdown(x.GoPointer(), ShutdownReadVar, ShutdownWriteVar, &cerr) | 1682 | cret := xSocketShutdown(x.GoPointer(), ShutdownReadVar, ShutdownWriteVar, &cerr) | ||
| @@ -1783,8 +1698,6 @@ var xSocketSpeaksIpv4 func(uintptr) bool | |||||
| 1783 | // No other types of sockets are currently considered as being capable | 1698 | // No other types of sockets are currently considered as being capable | ||
| 1784 | // of speaking IPv4. | 1699 | // of speaking IPv4. | ||
| 1785 | func (x *Socket) SpeaksIpv4() bool { | 1700 | func (x *Socket) SpeaksIpv4() bool { | ||
| 1786 | - | core.LazyRegister(&xSocketSpeaksIpv4, "GIO", "g_socket_speaks_ipv4", false) | |||
| 1787 | - | ||||
| 1788 | cret := xSocketSpeaksIpv4(x.GoPointer()) | 1701 | cret := xSocketSpeaksIpv4(x.GoPointer()) | ||
| 1789 | return cret | 1702 | return cret | ||
| 1790 | } | 1703 | } | ||
| @@ -2004,4 +1917,76 @@ func (x *Socket) Init(CancellableVar *Cancellable) (bool, error) { | |||||
| 2004 | func init() { | 1917 | func init() { | ||
| 2005 | core.SetPackageName("GIO", "gio-2.0") | 1918 | core.SetPackageName("GIO", "gio-2.0") | ||
| 2006 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | 1919 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | ||
| 1920 | + | var libs []uintptr | |||
| 1921 | + | for _, libPath := range core.GetPaths("GIO") { | |||
| 1922 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 1923 | + | if err != nil { | |||
| 1924 | + | panic(err) | |||
| 1925 | + | } | |||
| 1926 | + | libs = append(libs, lib) | |||
| 1927 | + | } | |||
| 1928 | + | ||||
| 1929 | + | core.PuregoSafeRegister(&xSocketGLibType, libs, "g_socket_get_type") | |||
| 1930 | + | ||||
| 1931 | + | core.PuregoSafeRegister(&xNewSocket, libs, "g_socket_new") | |||
| 1932 | + | core.PuregoSafeRegister(&xNewSocketFromFd, libs, "g_socket_new_from_fd") | |||
| 1933 | + | ||||
| 1934 | + | core.PuregoSafeRegister(&xSocketAccept, libs, "g_socket_accept") | |||
| 1935 | + | core.PuregoSafeRegister(&xSocketBind, libs, "g_socket_bind") | |||
| 1936 | + | core.PuregoSafeRegister(&xSocketCheckConnectResult, libs, "g_socket_check_connect_result") | |||
| 1937 | + | core.PuregoSafeRegister(&xSocketClose, libs, "g_socket_close") | |||
| 1938 | + | core.PuregoSafeRegister(&xSocketConditionCheck, libs, "g_socket_condition_check") | |||
| 1939 | + | core.PuregoSafeRegister(&xSocketConditionTimedWait, libs, "g_socket_condition_timed_wait") | |||
| 1940 | + | core.PuregoSafeRegister(&xSocketConditionWait, libs, "g_socket_condition_wait") | |||
| 1941 | + | core.PuregoSafeRegister(&xSocketConnect, libs, "g_socket_connect") | |||
| 1942 | + | core.PuregoSafeRegister(&xSocketConnectionFactoryCreateConnection, libs, "g_socket_connection_factory_create_connection") | |||
| 1943 | + | core.PuregoSafeRegister(&xSocketCreateSource, libs, "g_socket_create_source") | |||
| 1944 | + | core.PuregoSafeRegister(&xSocketGetAvailableBytes, libs, "g_socket_get_available_bytes") | |||
| 1945 | + | core.PuregoSafeRegister(&xSocketGetBlocking, libs, "g_socket_get_blocking") | |||
| 1946 | + | core.PuregoSafeRegister(&xSocketGetBroadcast, libs, "g_socket_get_broadcast") | |||
| 1947 | + | core.PuregoSafeRegister(&xSocketGetCredentials, libs, "g_socket_get_credentials") | |||
| 1948 | + | core.PuregoSafeRegister(&xSocketGetFamily, libs, "g_socket_get_family") | |||
| 1949 | + | core.PuregoSafeRegister(&xSocketGetFd, libs, "g_socket_get_fd") | |||
| 1950 | + | core.PuregoSafeRegister(&xSocketGetKeepalive, libs, "g_socket_get_keepalive") | |||
| 1951 | + | core.PuregoSafeRegister(&xSocketGetListenBacklog, libs, "g_socket_get_listen_backlog") | |||
| 1952 | + | core.PuregoSafeRegister(&xSocketGetLocalAddress, libs, "g_socket_get_local_address") | |||
| 1953 | + | core.PuregoSafeRegister(&xSocketGetMulticastLoopback, libs, "g_socket_get_multicast_loopback") | |||
| 1954 | + | core.PuregoSafeRegister(&xSocketGetMulticastTtl, libs, "g_socket_get_multicast_ttl") | |||
| 1955 | + | core.PuregoSafeRegister(&xSocketGetOption, libs, "g_socket_get_option") | |||
| 1956 | + | core.PuregoSafeRegister(&xSocketGetProtocol, libs, "g_socket_get_protocol") | |||
| 1957 | + | core.PuregoSafeRegister(&xSocketGetRemoteAddress, libs, "g_socket_get_remote_address") | |||
| 1958 | + | core.PuregoSafeRegister(&xSocketGetSocketType, libs, "g_socket_get_socket_type") | |||
| 1959 | + | core.PuregoSafeRegister(&xSocketGetTimeout, libs, "g_socket_get_timeout") | |||
| 1960 | + | core.PuregoSafeRegister(&xSocketGetTtl, libs, "g_socket_get_ttl") | |||
| 1961 | + | core.PuregoSafeRegister(&xSocketIsClosed, libs, "g_socket_is_closed") | |||
| 1962 | + | core.PuregoSafeRegister(&xSocketIsConnected, libs, "g_socket_is_connected") | |||
| 1963 | + | core.PuregoSafeRegister(&xSocketJoinMulticastGroup, libs, "g_socket_join_multicast_group") | |||
| 1964 | + | core.PuregoSafeRegister(&xSocketJoinMulticastGroupSsm, libs, "g_socket_join_multicast_group_ssm") | |||
| 1965 | + | core.PuregoSafeRegister(&xSocketLeaveMulticastGroup, libs, "g_socket_leave_multicast_group") | |||
| 1966 | + | core.PuregoSafeRegister(&xSocketLeaveMulticastGroupSsm, libs, "g_socket_leave_multicast_group_ssm") | |||
| 1967 | + | core.PuregoSafeRegister(&xSocketListen, libs, "g_socket_listen") | |||
| 1968 | + | core.PuregoSafeRegister(&xSocketReceive, libs, "g_socket_receive") | |||
| 1969 | + | core.PuregoSafeRegister(&xSocketReceiveBytes, libs, "g_socket_receive_bytes") | |||
| 1970 | + | core.PuregoSafeRegister(&xSocketReceiveBytesFrom, libs, "g_socket_receive_bytes_from") | |||
| 1971 | + | core.PuregoSafeRegister(&xSocketReceiveFrom, libs, "g_socket_receive_from") | |||
| 1972 | + | core.PuregoSafeRegister(&xSocketReceiveMessage, libs, "g_socket_receive_message") | |||
| 1973 | + | core.PuregoSafeRegister(&xSocketReceiveMessages, libs, "g_socket_receive_messages") | |||
| 1974 | + | core.PuregoSafeRegister(&xSocketReceiveWithBlocking, libs, "g_socket_receive_with_blocking") | |||
| 1975 | + | core.PuregoSafeRegister(&xSocketSend, libs, "g_socket_send") | |||
| 1976 | + | core.PuregoSafeRegister(&xSocketSendMessage, libs, "g_socket_send_message") | |||
| 1977 | + | core.PuregoSafeRegister(&xSocketSendMessageWithTimeout, libs, "g_socket_send_message_with_timeout") | |||
| 1978 | + | core.PuregoSafeRegister(&xSocketSendMessages, libs, "g_socket_send_messages") | |||
| 1979 | + | core.PuregoSafeRegister(&xSocketSendTo, libs, "g_socket_send_to") | |||
| 1980 | + | core.PuregoSafeRegister(&xSocketSendWithBlocking, libs, "g_socket_send_with_blocking") | |||
| 1981 | + | core.PuregoSafeRegister(&xSocketSetBlocking, libs, "g_socket_set_blocking") | |||
| 1982 | + | core.PuregoSafeRegister(&xSocketSetBroadcast, libs, "g_socket_set_broadcast") | |||
| 1983 | + | core.PuregoSafeRegister(&xSocketSetKeepalive, libs, "g_socket_set_keepalive") | |||
| 1984 | + | core.PuregoSafeRegister(&xSocketSetListenBacklog, libs, "g_socket_set_listen_backlog") | |||
| 1985 | + | core.PuregoSafeRegister(&xSocketSetMulticastLoopback, libs, "g_socket_set_multicast_loopback") | |||
| 1986 | + | core.PuregoSafeRegister(&xSocketSetMulticastTtl, libs, "g_socket_set_multicast_ttl") | |||
| 1987 | + | core.PuregoSafeRegister(&xSocketSetOption, libs, "g_socket_set_option") | |||
| 1988 | + | core.PuregoSafeRegister(&xSocketSetTimeout, libs, "g_socket_set_timeout") | |||
| 1989 | + | core.PuregoSafeRegister(&xSocketSetTtl, libs, "g_socket_set_ttl") | |||
| 1990 | + | core.PuregoSafeRegister(&xSocketShutdown, libs, "g_socket_shutdown") | |||
| 1991 | + | core.PuregoSafeRegister(&xSocketSpeaksIpv4, libs, "g_socket_speaks_ipv4") | |||
| 2007 | } | 1992 | } | ||