Revert "chore(deps): pin puregotk nil-signal fix"
This reverts commit a161e348e2093172038390b0906448f0ae979a0d.
- commit
- 40378d5e4fd2372d054e49168ab2a6f67aedd0fd
- author
- brice · · 2026-07-14 17:59 UTC
- parent
- 8d647bb
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
905 files · +25263 -27842
M go.mod +1 -1
| @@ -11,7 +11,7 @@ require ( | |||
| 11 | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | |
| 12 | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | |
| 13 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | |
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | |
| 14 | + | github.com/bnema/puregotk v0.7.0 | |
| 15 | 15 | github.com/charmbracelet/bubbles v1.0.0 | |
| 16 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | |
| 17 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | |
| @@ -11,7 +11,7 @@ require ( | |||||
| 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | ||
| 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | ||
| 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | ||
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | 14 | + | github.com/bnema/puregotk v0.7.0 |
| 15 | github.com/charmbracelet/bubbles v1.0.0 | 15 | github.com/charmbracelet/bubbles v1.0.0 | ||
| 16 | github.com/charmbracelet/bubbletea v1.3.10 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | ||
| 17 | github.com/charmbracelet/lipgloss v1.1.0 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | ||
M go.sum +0 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/internal/core/core.go +4 -197 generated file: collapsed
M vendor/github.com/bnema/puregotk/pkg/core/core.go +0 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-dialog.go +64 -99 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-window.go +62 -95 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-accent-color.go +15 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-action-row.go +29 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-alert-dialog.go +47 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-target.go +27 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-util.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation.go +26 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application-window.go +22 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-avatar.go +25 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-banner.go +26 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bin.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bottom-sheet.go +38 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint-bin.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint.go +37 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-content.go +22 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-row.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-dots.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-lines.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel.go +37 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-layout.go +20 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-scrollable.go +22 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp.go +22 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-combo-row.go +33 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-dialog.go +38 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-easing.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-entry-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-enum-list-model.go +22 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-expander-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-flap.go +48 -61 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-fold-threshold-policy.go +1 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-header-bar.go +33 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-inline-view-switcher.go +24 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout-slot.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout.go +17 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-leaflet.go +56 -69 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-length-unit.go +14 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-main.go +15 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-message-dialog.go +44 -63 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-multi-layout-view.go +23 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-direction.go +1 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-split-view.go +32 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-view.go +49 -60 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-overlay-split-view.go +38 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-password-entry-row.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-dialog.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-group.go +26 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-page.go +33 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-row.go +22 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-window.go +29 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcut-label.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-dialog.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-item.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-section.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-item.go +37 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-section.go +27 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar.go +39 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spin-row.go +34 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner-paintable.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-split-button.go +34 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-animation.go +30 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-params.go +21 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-squeezer.go +44 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-status-page.go +24 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-style-manager.go +28 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipe-tracker.go +30 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipeable.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-switch-row.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-bar.go +32 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-button.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-overview.go +37 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-view.go +87 -123 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-timed-animation.go +28 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast-overlay.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast.go +36 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toggle-group.go +51 -64 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toolbar-view.go +35 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-version.go +16 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-stack.go +62 -78 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-bar.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-sidebar.go +22 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-title.go +23 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher.go +20 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window-title.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window.go +22 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-box.go +46 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-layout.go +46 -57 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/cairo/main.go +79 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkapplaunchcontext.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairo.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairocontext.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcicpparams.go +25 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkclipboard.go +32 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcolorstate.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentdeserializer.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentformats.go +31 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentprovider.go +28 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentserializer.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcursor.go +21 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevice.go +33 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicepad.go +22 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicetool.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplay.go +43 -51 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplaymanager.go +20 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexture.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexturebuilder.go +41 -53 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrag.go +28 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurface.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurfacesize.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrawcontext.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrop.go +24 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkenums.go +1 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkevents.go +118 -120 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframeclock.go +24 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframetimings.go +20 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkglcontext.go +36 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexture.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexturebuilder.go +35 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkkeys.go +22 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexture.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexturebuilder.go +35 -42 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmonitor.go +27 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpaintable.go +33 -63 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpango.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpixbuf.go +12 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopup.go +26 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopuplayout.go +32 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkrgba.go +21 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkseat.go +20 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksnapshot.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksurface.go +40 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktexture.go +31 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevel.go +66 -157 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevellayout.go +25 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevelsize.go +16 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktypes.go +72 -95 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkvulkancontext.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-animation.go +32 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-core.go +0 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-io.go +23 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-loader.go +22 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-simple-anim.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-transform.go +1 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf.go +79 -102 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/main.go +17 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gaction.go +31 -59 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactiongroup.go +39 -96 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactionmap.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gappinfo.go +116 -244 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplication.go +55 -79 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplicationcommandline.go +27 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncinitable.go +22 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncresult.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedinputstream.go +29 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedoutputstream.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbytesicon.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcancellable.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcharsetconverter.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcontenttype.go +26 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverter.go +20 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverterinputstream.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverteroutputstream.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcredentials.go +21 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatagrambased.go +30 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatainputstream.go +35 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdataoutputstream.go +23 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusactiongroup.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusaddress.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusauthobserver.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusconnection.go +66 -77 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbuserror.go +18 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusinterface.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusinterfaceskeleton.go +24 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusintrospection.go +56 -54 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmenumodel.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmessage.go +64 -88 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmethodinvocation.go +30 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusnameowning.go +15 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusnamewatching.go +15 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobject.go +17 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanager.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerclient.go +23 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerserver.go +20 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectproxy.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectskeleton.go +18 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusproxy.go +38 -42 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusserver.go +20 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusutils.go +22 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdebugcontroller.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdebugcontrollerdbus.go +14 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdrive.go +82 -214 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsclientconnection.go +24 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsconnection.go +80 -207 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsserverconnection.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gemblem.go +17 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gemblemedicon.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfile.go +450 -1148 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileattribute.go +19 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileenumerator.go +35 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileicon.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileinfo.go +84 -138 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileinputstream.go +23 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileiostream.go +27 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilemonitor.go +15 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilenamecompleter.go +16 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileoutputstream.go +27 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilterinputstream.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilteroutputstream.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gicon.go +25 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetaddress.go +34 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetaddressmask.go +21 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetsocketaddress.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginitable.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginputstream.go +48 -52 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioenums.go +1 -90 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioerror.go +13 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giomodule.go +29 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioscheduler.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giostream.go +29 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giotypes.go +60 -70 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giptosmessage.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gipv6tclassmessage.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/glistmodel.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gliststore.go +24 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gloadableicon.go +23 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemoryinputstream.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemorymonitor.go +12 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemoryoutputstream.go +19 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmenu.go +50 -62 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmenumodel.go +33 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmount.go +86 -215 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmountoperation.go +32 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnativesocketaddress.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnativevolumemonitor.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkaddress.go +21 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworking.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkmonitor.go +31 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkservice.go +19 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnotification.go +26 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/goutputstream.go +72 -86 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpermission.go +33 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableinputstream.go +22 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableoutputstream.go +27 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableutils.go +15 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpowerprofilemonitor.go +16 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpropertyaction.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxy.go +27 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyaddress.go +21 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyaddressenumerator.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyresolver.go +27 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gremoteactiongroup.go +15 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gresolver.go +67 -75
| @@ -90,7 +90,7 @@ func (x *ResolverClass) OverrideLookupByName(cb func(*Resolver, string, *Cancell | |||
| 90 | 90 | if cb == nil { | |
| 91 | 91 | x.xLookupByName = 0 | |
| 92 | 92 | } else { | |
| 93 | - | x.xLookupByName = purego.NewCallback(func(ResolverVarp uintptr, HostnameVarp string, CancellableVarp uintptr, cerrp **glib.Error) uintptr { | |
| 93 | + | x.xLookupByName = purego.NewCallback(func(ResolverVarp uintptr, HostnameVarp string, CancellableVarp uintptr) uintptr { | |
| 94 | 94 | ret := cb(ResolverNewFromInternalPtr(ResolverVarp), HostnameVarp, CancellableNewFromInternalPtr(CancellableVarp)) | |
| 95 | 95 | if ret == nil { | |
| 96 | 96 | return 0 | |
| @@ -105,11 +105,10 @@ func (x *ResolverClass) GetLookupByName() func(*Resolver, string, *Cancellable) | |||
| 105 | 105 | if x.xLookupByName == 0 { | |
| 106 | 106 | return nil | |
| 107 | 107 | } | |
| 108 | - | var rawCallback func(ResolverVarp uintptr, HostnameVarp string, CancellableVarp uintptr, cerrp **glib.Error) uintptr | |
| 108 | + | var rawCallback func(ResolverVarp uintptr, HostnameVarp string, CancellableVarp uintptr) uintptr | |
| 109 | 109 | purego.RegisterFunc(&rawCallback, x.xLookupByName) | |
| 110 | 110 | return func(ResolverVar *Resolver, HostnameVar string, CancellableVar *Cancellable) *glib.List { | |
| 111 | - | var cerr *glib.Error | |
| 112 | - | rawRet := rawCallback(ResolverVar.GoPointer(), HostnameVar, CancellableVar.GoPointer(), &cerr) | |
| 111 | + | rawRet := rawCallback(ResolverVar.GoPointer(), HostnameVar, CancellableVar.GoPointer()) | |
| 113 | 112 | if rawRet == 0 { | |
| 114 | 113 | return nil | |
| 115 | 114 | } | |
| @@ -145,7 +144,7 @@ func (x *ResolverClass) OverrideLookupByNameFinish(cb func(*Resolver, AsyncResul | |||
| 145 | 144 | if cb == nil { | |
| 146 | 145 | x.xLookupByNameFinish = 0 | |
| 147 | 146 | } else { | |
| 148 | - | x.xLookupByNameFinish = purego.NewCallback(func(ResolverVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) uintptr { | |
| 147 | + | x.xLookupByNameFinish = purego.NewCallback(func(ResolverVarp uintptr, ResultVarp uintptr) uintptr { | |
| 149 | 148 | ret := cb(ResolverNewFromInternalPtr(ResolverVarp), &AsyncResultBase{Ptr: ResultVarp}) | |
| 150 | 149 | if ret == nil { | |
| 151 | 150 | return 0 | |
| @@ -160,11 +159,10 @@ func (x *ResolverClass) GetLookupByNameFinish() func(*Resolver, AsyncResult) *gl | |||
| 160 | 159 | if x.xLookupByNameFinish == 0 { | |
| 161 | 160 | return nil | |
| 162 | 161 | } | |
| 163 | - | var rawCallback func(ResolverVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) uintptr | |
| 162 | + | var rawCallback func(ResolverVarp uintptr, ResultVarp uintptr) uintptr | |
| 164 | 163 | purego.RegisterFunc(&rawCallback, x.xLookupByNameFinish) | |
| 165 | 164 | return func(ResolverVar *Resolver, ResultVar AsyncResult) *glib.List { | |
| 166 | - | var cerr *glib.Error | |
| 167 | - | rawRet := rawCallback(ResolverVar.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 165 | + | rawRet := rawCallback(ResolverVar.GoPointer(), ResultVar.GoPointer()) | |
| 168 | 166 | if rawRet == 0 { | |
| 169 | 167 | return nil | |
| 170 | 168 | } | |
| @@ -177,7 +175,7 @@ func (x *ResolverClass) OverrideLookupByAddress(cb func(*Resolver, *InetAddress, | |||
| 177 | 175 | if cb == nil { | |
| 178 | 176 | x.xLookupByAddress = 0 | |
| 179 | 177 | } else { | |
| 180 | - | x.xLookupByAddress = purego.NewCallback(func(ResolverVarp uintptr, AddressVarp uintptr, CancellableVarp uintptr, cerrp **glib.Error) string { | |
| 178 | + | x.xLookupByAddress = purego.NewCallback(func(ResolverVarp uintptr, AddressVarp uintptr, CancellableVarp uintptr) string { | |
| 181 | 179 | return cb(ResolverNewFromInternalPtr(ResolverVarp), InetAddressNewFromInternalPtr(AddressVarp), CancellableNewFromInternalPtr(CancellableVarp)) | |
| 182 | 180 | }) | |
| 183 | 181 | } | |
| @@ -188,11 +186,10 @@ func (x *ResolverClass) GetLookupByAddress() func(*Resolver, *InetAddress, *Canc | |||
| 188 | 186 | if x.xLookupByAddress == 0 { | |
| 189 | 187 | return nil | |
| 190 | 188 | } | |
| 191 | - | var rawCallback func(ResolverVarp uintptr, AddressVarp uintptr, CancellableVarp uintptr, cerrp **glib.Error) string | |
| 189 | + | var rawCallback func(ResolverVarp uintptr, AddressVarp uintptr, CancellableVarp uintptr) string | |
| 192 | 190 | purego.RegisterFunc(&rawCallback, x.xLookupByAddress) | |
| 193 | 191 | return func(ResolverVar *Resolver, AddressVar *InetAddress, CancellableVar *Cancellable) string { | |
| 194 | - | var cerr *glib.Error | |
| 195 | - | return rawCallback(ResolverVar.GoPointer(), AddressVar.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| 192 | + | return rawCallback(ResolverVar.GoPointer(), AddressVar.GoPointer(), CancellableVar.GoPointer()) | |
| 196 | 193 | } | |
| 197 | 194 | } | |
| 198 | 195 | ||
| @@ -224,7 +221,7 @@ func (x *ResolverClass) OverrideLookupByAddressFinish(cb func(*Resolver, AsyncRe | |||
| 224 | 221 | if cb == nil { | |
| 225 | 222 | x.xLookupByAddressFinish = 0 | |
| 226 | 223 | } else { | |
| 227 | - | x.xLookupByAddressFinish = purego.NewCallback(func(ResolverVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) string { | |
| 224 | + | x.xLookupByAddressFinish = purego.NewCallback(func(ResolverVarp uintptr, ResultVarp uintptr) string { | |
| 228 | 225 | return cb(ResolverNewFromInternalPtr(ResolverVarp), &AsyncResultBase{Ptr: ResultVarp}) | |
| 229 | 226 | }) | |
| 230 | 227 | } | |
| @@ -235,11 +232,10 @@ func (x *ResolverClass) GetLookupByAddressFinish() func(*Resolver, AsyncResult) | |||
| 235 | 232 | if x.xLookupByAddressFinish == 0 { | |
| 236 | 233 | return nil | |
| 237 | 234 | } | |
| 238 | - | var rawCallback func(ResolverVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) string | |
| 235 | + | var rawCallback func(ResolverVarp uintptr, ResultVarp uintptr) string | |
| 239 | 236 | purego.RegisterFunc(&rawCallback, x.xLookupByAddressFinish) | |
| 240 | 237 | return func(ResolverVar *Resolver, ResultVar AsyncResult) string { | |
| 241 | - | var cerr *glib.Error | |
| 242 | - | return rawCallback(ResolverVar.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 238 | + | return rawCallback(ResolverVar.GoPointer(), ResultVar.GoPointer()) | |
| 243 | 239 | } | |
| 244 | 240 | } | |
| 245 | 241 | ||
| @@ -248,7 +244,7 @@ func (x *ResolverClass) OverrideLookupService(cb func(*Resolver, string, *Cancel | |||
| 248 | 244 | if cb == nil { | |
| 249 | 245 | x.xLookupService = 0 | |
| 250 | 246 | } else { | |
| 251 | - | x.xLookupService = purego.NewCallback(func(ResolverVarp uintptr, RrnameVarp string, CancellableVarp uintptr, cerrp **glib.Error) uintptr { | |
| 247 | + | x.xLookupService = purego.NewCallback(func(ResolverVarp uintptr, RrnameVarp string, CancellableVarp uintptr) uintptr { | |
| 252 | 248 | ret := cb(ResolverNewFromInternalPtr(ResolverVarp), RrnameVarp, CancellableNewFromInternalPtr(CancellableVarp)) | |
| 253 | 249 | if ret == nil { | |
| 254 | 250 | return 0 | |
| @@ -263,11 +259,10 @@ func (x *ResolverClass) GetLookupService() func(*Resolver, string, *Cancellable) | |||
| 263 | 259 | if x.xLookupService == 0 { | |
| 264 | 260 | return nil | |
| 265 | 261 | } | |
| 266 | - | var rawCallback func(ResolverVarp uintptr, RrnameVarp string, CancellableVarp uintptr, cerrp **glib.Error) uintptr | |
| 262 | + | var rawCallback func(ResolverVarp uintptr, RrnameVarp string, CancellableVarp uintptr) uintptr | |
| 267 | 263 | purego.RegisterFunc(&rawCallback, x.xLookupService) | |
| 268 | 264 | return func(ResolverVar *Resolver, RrnameVar string, CancellableVar *Cancellable) *glib.List { | |
| 269 | - | var cerr *glib.Error | |
| 270 | - | rawRet := rawCallback(ResolverVar.GoPointer(), RrnameVar, CancellableVar.GoPointer(), &cerr) | |
| 265 | + | rawRet := rawCallback(ResolverVar.GoPointer(), RrnameVar, CancellableVar.GoPointer()) | |
| 271 | 266 | if rawRet == 0 { | |
| 272 | 267 | return nil | |
| 273 | 268 | } | |
| @@ -303,7 +298,7 @@ func (x *ResolverClass) OverrideLookupServiceFinish(cb func(*Resolver, AsyncResu | |||
| 303 | 298 | if cb == nil { | |
| 304 | 299 | x.xLookupServiceFinish = 0 | |
| 305 | 300 | } else { | |
| 306 | - | x.xLookupServiceFinish = purego.NewCallback(func(ResolverVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) uintptr { | |
| 301 | + | x.xLookupServiceFinish = purego.NewCallback(func(ResolverVarp uintptr, ResultVarp uintptr) uintptr { | |
| 307 | 302 | ret := cb(ResolverNewFromInternalPtr(ResolverVarp), &AsyncResultBase{Ptr: ResultVarp}) | |
| 308 | 303 | if ret == nil { | |
| 309 | 304 | return 0 | |
| @@ -318,11 +313,10 @@ func (x *ResolverClass) GetLookupServiceFinish() func(*Resolver, AsyncResult) *g | |||
| 318 | 313 | if x.xLookupServiceFinish == 0 { | |
| 319 | 314 | return nil | |
| 320 | 315 | } | |
| 321 | - | var rawCallback func(ResolverVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) uintptr | |
| 316 | + | var rawCallback func(ResolverVarp uintptr, ResultVarp uintptr) uintptr | |
| 322 | 317 | purego.RegisterFunc(&rawCallback, x.xLookupServiceFinish) | |
| 323 | 318 | return func(ResolverVar *Resolver, ResultVar AsyncResult) *glib.List { | |
| 324 | - | var cerr *glib.Error | |
| 325 | - | rawRet := rawCallback(ResolverVar.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 319 | + | rawRet := rawCallback(ResolverVar.GoPointer(), ResultVar.GoPointer()) | |
| 326 | 320 | if rawRet == 0 { | |
| 327 | 321 | return nil | |
| 328 | 322 | } | |
| @@ -335,7 +329,7 @@ func (x *ResolverClass) OverrideLookupRecords(cb func(*Resolver, string, Resolve | |||
| 335 | 329 | if cb == nil { | |
| 336 | 330 | x.xLookupRecords = 0 | |
| 337 | 331 | } else { | |
| 338 | - | x.xLookupRecords = purego.NewCallback(func(ResolverVarp uintptr, RrnameVarp string, RecordTypeVarp ResolverRecordType, CancellableVarp uintptr, cerrp **glib.Error) uintptr { | |
| 332 | + | x.xLookupRecords = purego.NewCallback(func(ResolverVarp uintptr, RrnameVarp string, RecordTypeVarp ResolverRecordType, CancellableVarp uintptr) uintptr { | |
| 339 | 333 | ret := cb(ResolverNewFromInternalPtr(ResolverVarp), RrnameVarp, RecordTypeVarp, CancellableNewFromInternalPtr(CancellableVarp)) | |
| 340 | 334 | if ret == nil { | |
| 341 | 335 | return 0 | |
| @@ -350,11 +344,10 @@ func (x *ResolverClass) GetLookupRecords() func(*Resolver, string, ResolverRecor | |||
| 350 | 344 | if x.xLookupRecords == 0 { | |
| 351 | 345 | return nil | |
| 352 | 346 | } | |
| 353 | - | var rawCallback func(ResolverVarp uintptr, RrnameVarp string, RecordTypeVarp ResolverRecordType, CancellableVarp uintptr, cerrp **glib.Error) uintptr | |
| 347 | + | var rawCallback func(ResolverVarp uintptr, RrnameVarp string, RecordTypeVarp ResolverRecordType, CancellableVarp uintptr) uintptr | |
| 354 | 348 | purego.RegisterFunc(&rawCallback, x.xLookupRecords) | |
| 355 | 349 | return func(ResolverVar *Resolver, RrnameVar string, RecordTypeVar ResolverRecordType, CancellableVar *Cancellable) *glib.List { | |
| 356 | - | var cerr *glib.Error | |
| 357 | - | rawRet := rawCallback(ResolverVar.GoPointer(), RrnameVar, RecordTypeVar, CancellableVar.GoPointer(), &cerr) | |
| 350 | + | rawRet := rawCallback(ResolverVar.GoPointer(), RrnameVar, RecordTypeVar, CancellableVar.GoPointer()) | |
| 358 | 351 | if rawRet == 0 { | |
| 359 | 352 | return nil | |
| 360 | 353 | } | |
| @@ -390,7 +383,7 @@ func (x *ResolverClass) OverrideLookupRecordsFinish(cb func(*Resolver, AsyncResu | |||
| 390 | 383 | if cb == nil { | |
| 391 | 384 | x.xLookupRecordsFinish = 0 | |
| 392 | 385 | } else { | |
| 393 | - | x.xLookupRecordsFinish = purego.NewCallback(func(ResolverVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) uintptr { | |
| 386 | + | x.xLookupRecordsFinish = purego.NewCallback(func(ResolverVarp uintptr, ResultVarp uintptr) uintptr { | |
| 394 | 387 | ret := cb(ResolverNewFromInternalPtr(ResolverVarp), &AsyncResultBase{Ptr: ResultVarp}) | |
| 395 | 388 | if ret == nil { | |
| 396 | 389 | return 0 | |
| @@ -405,11 +398,10 @@ func (x *ResolverClass) GetLookupRecordsFinish() func(*Resolver, AsyncResult) *g | |||
| 405 | 398 | if x.xLookupRecordsFinish == 0 { | |
| 406 | 399 | return nil | |
| 407 | 400 | } | |
| 408 | - | var rawCallback func(ResolverVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) uintptr | |
| 401 | + | var rawCallback func(ResolverVarp uintptr, ResultVarp uintptr) uintptr | |
| 409 | 402 | purego.RegisterFunc(&rawCallback, x.xLookupRecordsFinish) | |
| 410 | 403 | return func(ResolverVar *Resolver, ResultVar AsyncResult) *glib.List { | |
| 411 | - | var cerr *glib.Error | |
| 412 | - | rawRet := rawCallback(ResolverVar.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 404 | + | rawRet := rawCallback(ResolverVar.GoPointer(), ResultVar.GoPointer()) | |
| 413 | 405 | if rawRet == 0 { | |
| 414 | 406 | return nil | |
| 415 | 407 | } | |
| @@ -445,7 +437,7 @@ func (x *ResolverClass) OverrideLookupByNameWithFlagsFinish(cb func(*Resolver, A | |||
| 445 | 437 | if cb == nil { | |
| 446 | 438 | x.xLookupByNameWithFlagsFinish = 0 | |
| 447 | 439 | } else { | |
| 448 | - | x.xLookupByNameWithFlagsFinish = purego.NewCallback(func(ResolverVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) uintptr { | |
| 440 | + | x.xLookupByNameWithFlagsFinish = purego.NewCallback(func(ResolverVarp uintptr, ResultVarp uintptr) uintptr { | |
| 449 | 441 | ret := cb(ResolverNewFromInternalPtr(ResolverVarp), &AsyncResultBase{Ptr: ResultVarp}) | |
| 450 | 442 | if ret == nil { | |
| 451 | 443 | return 0 | |
| @@ -460,11 +452,10 @@ func (x *ResolverClass) GetLookupByNameWithFlagsFinish() func(*Resolver, AsyncRe | |||
| 460 | 452 | if x.xLookupByNameWithFlagsFinish == 0 { | |
| 461 | 453 | return nil | |
| 462 | 454 | } | |
| 463 | - | var rawCallback func(ResolverVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) uintptr | |
| 455 | + | var rawCallback func(ResolverVarp uintptr, ResultVarp uintptr) uintptr | |
| 464 | 456 | purego.RegisterFunc(&rawCallback, x.xLookupByNameWithFlagsFinish) | |
| 465 | 457 | return func(ResolverVar *Resolver, ResultVar AsyncResult) *glib.List { | |
| 466 | - | var cerr *glib.Error | |
| 467 | - | rawRet := rawCallback(ResolverVar.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 458 | + | rawRet := rawCallback(ResolverVar.GoPointer(), ResultVar.GoPointer()) | |
| 468 | 459 | if rawRet == 0 { | |
| 469 | 460 | return nil | |
| 470 | 461 | } | |
| @@ -477,7 +468,7 @@ func (x *ResolverClass) OverrideLookupByNameWithFlags(cb func(*Resolver, string, | |||
| 477 | 468 | if cb == nil { | |
| 478 | 469 | x.xLookupByNameWithFlags = 0 | |
| 479 | 470 | } else { | |
| 480 | - | x.xLookupByNameWithFlags = purego.NewCallback(func(ResolverVarp uintptr, HostnameVarp string, FlagsVarp ResolverNameLookupFlags, CancellableVarp uintptr, cerrp **glib.Error) uintptr { | |
| 471 | + | x.xLookupByNameWithFlags = purego.NewCallback(func(ResolverVarp uintptr, HostnameVarp string, FlagsVarp ResolverNameLookupFlags, CancellableVarp uintptr) uintptr { | |
| 481 | 472 | ret := cb(ResolverNewFromInternalPtr(ResolverVarp), HostnameVarp, FlagsVarp, CancellableNewFromInternalPtr(CancellableVarp)) | |
| 482 | 473 | if ret == nil { | |
| 483 | 474 | return 0 | |
| @@ -492,11 +483,10 @@ func (x *ResolverClass) GetLookupByNameWithFlags() func(*Resolver, string, Resol | |||
| 492 | 483 | if x.xLookupByNameWithFlags == 0 { | |
| 493 | 484 | return nil | |
| 494 | 485 | } | |
| 495 | - | var rawCallback func(ResolverVarp uintptr, HostnameVarp string, FlagsVarp ResolverNameLookupFlags, CancellableVarp uintptr, cerrp **glib.Error) uintptr | |
| 486 | + | var rawCallback func(ResolverVarp uintptr, HostnameVarp string, FlagsVarp ResolverNameLookupFlags, CancellableVarp uintptr) uintptr | |
| 496 | 487 | purego.RegisterFunc(&rawCallback, x.xLookupByNameWithFlags) | |
| 497 | 488 | return func(ResolverVar *Resolver, HostnameVar string, FlagsVar ResolverNameLookupFlags, CancellableVar *Cancellable) *glib.List { | |
| 498 | - | var cerr *glib.Error | |
| 499 | - | rawRet := rawCallback(ResolverVar.GoPointer(), HostnameVar, FlagsVar, CancellableVar.GoPointer(), &cerr) | |
| 489 | + | rawRet := rawCallback(ResolverVar.GoPointer(), HostnameVar, FlagsVar, CancellableVar.GoPointer()) | |
| 500 | 490 | if rawRet == 0 { | |
| 501 | 491 | return nil | |
| 502 | 492 | } | |
| @@ -526,7 +516,6 @@ type ResolverNameLookupFlags int | |||
| 526 | 516 | var xResolverNameLookupFlagsGLibType func() types.GType | |
| 527 | 517 | ||
| 528 | 518 | func ResolverNameLookupFlagsGLibType() types.GType { | |
| 529 | - | core.LazyRegister(&xResolverNameLookupFlagsGLibType, "GIO", "g_resolver_name_lookup_flags_get_type", false) | |
| 530 | 519 | return xResolverNameLookupFlagsGLibType() | |
| 531 | 520 | } | |
| 532 | 521 | ||
| @@ -544,8 +533,6 @@ var xResolverErrorQuark func() glib.Quark | |||
| 544 | 533 | ||
| 545 | 534 | // Gets the #GResolver Error Quark. | |
| 546 | 535 | func ResolverErrorQuark() glib.Quark { | |
| 547 | - | core.LazyRegister(&xResolverErrorQuark, "GIO", "g_resolver_error_quark", false) | |
| 548 | - | ||
| 549 | 536 | cret := xResolverErrorQuark() | |
| 550 | 537 | return cret | |
| 551 | 538 | } | |
| @@ -576,7 +563,6 @@ type Resolver struct { | |||
| 576 | 563 | var xResolverGLibType func() types.GType | |
| 577 | 564 | ||
| 578 | 565 | func ResolverGLibType() types.GType { | |
| 579 | - | core.LazyRegister(&xResolverGLibType, "GIO", "g_resolver_get_type", false) | |
| 580 | 566 | return xResolverGLibType() | |
| 581 | 567 | } | |
| 582 | 568 | ||
| @@ -590,8 +576,6 @@ var xResolverGetTimeout func(uintptr) uint | |||
| 590 | 576 | ||
| 591 | 577 | // Get the timeout applied to all resolver lookups. See #GResolver:timeout. | |
| 592 | 578 | func (x *Resolver) GetTimeout() uint { | |
| 593 | - | core.LazyRegister(&xResolverGetTimeout, "GIO", "g_resolver_get_timeout", false) | |
| 594 | - | ||
| 595 | 579 | cret := xResolverGetTimeout(x.GoPointer()) | |
| 596 | 580 | return cret | |
| 597 | 581 | } | |
| @@ -608,7 +592,6 @@ var xResolverLookupByAddress func(uintptr, uintptr, uintptr, **glib.Error) strin | |||
| 608 | 592 | // operation, in which case @error (if non-%NULL) will be set to | |
| 609 | 593 | // %G_IO_ERROR_CANCELLED. | |
| 610 | 594 | func (x *Resolver) LookupByAddress(AddressVar *InetAddress, CancellableVar *Cancellable) (string, error) { | |
| 611 | - | core.LazyRegister(&xResolverLookupByAddress, "GIO", "g_resolver_lookup_by_address", false) | |
| 612 | 595 | var cerr *glib.Error | |
| 613 | 596 | ||
| 614 | 597 | cret := xResolverLookupByAddress(x.GoPointer(), AddressVar.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| @@ -624,8 +607,6 @@ var xResolverLookupByAddressAsync func(uintptr, uintptr, uintptr, uintptr, uintp | |||
| 624 | 607 | // associated hostname, and eventually calls @callback, which must | |
| 625 | 608 | // call g_resolver_lookup_by_address_finish() to get the final result. | |
| 626 | 609 | func (x *Resolver) LookupByAddressAsync(AddressVar *InetAddress, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 627 | - | core.LazyRegister(&xResolverLookupByAddressAsync, "GIO", "g_resolver_lookup_by_address_async", false) | |
| 628 | - | ||
| 629 | 610 | xResolverLookupByAddressAsync(x.GoPointer(), AddressVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 630 | 611 | } | |
| 631 | 612 | ||
| @@ -638,7 +619,6 @@ var xResolverLookupByAddressFinish func(uintptr, uintptr, **glib.Error) string | |||
| 638 | 619 | // a value from #GResolverError. If the operation was cancelled, | |
| 639 | 620 | // @error will be set to %G_IO_ERROR_CANCELLED. | |
| 640 | 621 | func (x *Resolver) LookupByAddressFinish(ResultVar AsyncResult) (string, error) { | |
| 641 | - | core.LazyRegister(&xResolverLookupByAddressFinish, "GIO", "g_resolver_lookup_by_address_finish", false) | |
| 642 | 622 | var cerr *glib.Error | |
| 643 | 623 | ||
| 644 | 624 | cret := xResolverLookupByAddressFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| @@ -674,7 +654,6 @@ var xResolverLookupByName func(uintptr, string, uintptr, **glib.Error) uintptr | |||
| 674 | 654 | // address, it may be easier to create a #GNetworkAddress and use its | |
| 675 | 655 | // #GSocketConnectable interface. | |
| 676 | 656 | func (x *Resolver) LookupByName(HostnameVar string, CancellableVar *Cancellable) (*glib.List, error) { | |
| 677 | - | core.LazyRegister(&xResolverLookupByName, "GIO", "g_resolver_lookup_by_name", false) | |
| 678 | 657 | var cerr *glib.Error | |
| 679 | 658 | ||
| 680 | 659 | cret := xResolverLookupByName(x.GoPointer(), HostnameVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -694,8 +673,6 @@ var xResolverLookupByNameAsync func(uintptr, string, uintptr, uintptr, uintptr) | |||
| 694 | 673 | // must call g_resolver_lookup_by_name_finish() to get the result. | |
| 695 | 674 | // See g_resolver_lookup_by_name() for more details. | |
| 696 | 675 | func (x *Resolver) LookupByNameAsync(HostnameVar string, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 697 | - | core.LazyRegister(&xResolverLookupByNameAsync, "GIO", "g_resolver_lookup_by_name_async", false) | |
| 698 | - | ||
| 699 | 676 | xResolverLookupByNameAsync(x.GoPointer(), HostnameVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 700 | 677 | } | |
| 701 | 678 | ||
| @@ -708,7 +685,6 @@ var xResolverLookupByNameFinish func(uintptr, uintptr, **glib.Error) uintptr | |||
| 708 | 685 | // a value from #GResolverError. If the operation was cancelled, | |
| 709 | 686 | // @error will be set to %G_IO_ERROR_CANCELLED. | |
| 710 | 687 | func (x *Resolver) LookupByNameFinish(ResultVar AsyncResult) (*glib.List, error) { | |
| 711 | - | core.LazyRegister(&xResolverLookupByNameFinish, "GIO", "g_resolver_lookup_by_name_finish", false) | |
| 712 | 688 | var cerr *glib.Error | |
| 713 | 689 | ||
| 714 | 690 | cret := xResolverLookupByNameFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| @@ -727,7 +703,6 @@ var xResolverLookupByNameWithFlags func(uintptr, string, ResolverNameLookupFlags | |||
| 727 | 703 | // the lookup behavior with @flags. For example this can be used to limit | |
| 728 | 704 | // results with %G_RESOLVER_NAME_LOOKUP_FLAGS_IPV4_ONLY. | |
| 729 | 705 | func (x *Resolver) LookupByNameWithFlags(HostnameVar string, FlagsVar ResolverNameLookupFlags, CancellableVar *Cancellable) (*glib.List, error) { | |
| 730 | - | core.LazyRegister(&xResolverLookupByNameWithFlags, "GIO", "g_resolver_lookup_by_name_with_flags", false) | |
| 731 | 706 | var cerr *glib.Error | |
| 732 | 707 | ||
| 733 | 708 | cret := xResolverLookupByNameWithFlags(x.GoPointer(), HostnameVar, FlagsVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -747,8 +722,6 @@ var xResolverLookupByNameWithFlagsAsync func(uintptr, string, ResolverNameLookup | |||
| 747 | 722 | // must call g_resolver_lookup_by_name_with_flags_finish() to get the result. | |
| 748 | 723 | // See g_resolver_lookup_by_name() for more details. | |
| 749 | 724 | func (x *Resolver) LookupByNameWithFlagsAsync(HostnameVar string, FlagsVar ResolverNameLookupFlags, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 750 | - | core.LazyRegister(&xResolverLookupByNameWithFlagsAsync, "GIO", "g_resolver_lookup_by_name_with_flags_async", false) | |
| 751 | - | ||
| 752 | 725 | xResolverLookupByNameWithFlagsAsync(x.GoPointer(), HostnameVar, FlagsVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 753 | 726 | } | |
| 754 | 727 | ||
| @@ -761,7 +734,6 @@ var xResolverLookupByNameWithFlagsFinish func(uintptr, uintptr, **glib.Error) ui | |||
| 761 | 734 | // a value from #GResolverError. If the operation was cancelled, | |
| 762 | 735 | // @error will be set to %G_IO_ERROR_CANCELLED. | |
| 763 | 736 | func (x *Resolver) LookupByNameWithFlagsFinish(ResultVar AsyncResult) (*glib.List, error) { | |
| 764 | - | core.LazyRegister(&xResolverLookupByNameWithFlagsFinish, "GIO", "g_resolver_lookup_by_name_with_flags_finish", false) | |
| 765 | 737 | var cerr *glib.Error | |
| 766 | 738 | ||
| 767 | 739 | cret := xResolverLookupByNameWithFlagsFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| @@ -787,7 +759,6 @@ var xResolverLookupRecords func(uintptr, string, ResolverRecordType, uintptr, ** | |||
| 787 | 759 | // operation, in which case @error (if non-%NULL) will be set to | |
| 788 | 760 | // %G_IO_ERROR_CANCELLED. | |
| 789 | 761 | func (x *Resolver) LookupRecords(RrnameVar string, RecordTypeVar ResolverRecordType, CancellableVar *Cancellable) (*glib.List, error) { | |
| 790 | - | core.LazyRegister(&xResolverLookupRecords, "GIO", "g_resolver_lookup_records", false) | |
| 791 | 762 | var cerr *glib.Error | |
| 792 | 763 | ||
| 793 | 764 | cret := xResolverLookupRecords(x.GoPointer(), RrnameVar, RecordTypeVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -807,8 +778,6 @@ var xResolverLookupRecordsAsync func(uintptr, string, ResolverRecordType, uintpt | |||
| 807 | 778 | // g_resolver_lookup_records_finish() to get the final result. See | |
| 808 | 779 | // g_resolver_lookup_records() for more details. | |
| 809 | 780 | func (x *Resolver) LookupRecordsAsync(RrnameVar string, RecordTypeVar ResolverRecordType, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 810 | - | core.LazyRegister(&xResolverLookupRecordsAsync, "GIO", "g_resolver_lookup_records_async", false) | |
| 811 | - | ||
| 812 | 781 | xResolverLookupRecordsAsync(x.GoPointer(), RrnameVar, RecordTypeVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 813 | 782 | } | |
| 814 | 783 | ||
| @@ -823,7 +792,6 @@ var xResolverLookupRecordsFinish func(uintptr, uintptr, **glib.Error) uintptr | |||
| 823 | 792 | // a value from #GResolverError. If the operation was cancelled, | |
| 824 | 793 | // @error will be set to %G_IO_ERROR_CANCELLED. | |
| 825 | 794 | func (x *Resolver) LookupRecordsFinish(ResultVar AsyncResult) (*glib.List, error) { | |
| 826 | - | core.LazyRegister(&xResolverLookupRecordsFinish, "GIO", "g_resolver_lookup_records_finish", false) | |
| 827 | 795 | var cerr *glib.Error | |
| 828 | 796 | ||
| 829 | 797 | cret := xResolverLookupRecordsFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| @@ -860,7 +828,6 @@ var xResolverLookupService func(uintptr, string, string, string, uintptr, **glib | |||
| 860 | 828 | // to create a #GNetworkService and use its #GSocketConnectable | |
| 861 | 829 | // interface. | |
| 862 | 830 | func (x *Resolver) LookupService(ServiceVar string, ProtocolVar string, DomainVar string, CancellableVar *Cancellable) (*glib.List, error) { | |
| 863 | - | core.LazyRegister(&xResolverLookupService, "GIO", "g_resolver_lookup_service", false) | |
| 864 | 831 | var cerr *glib.Error | |
| 865 | 832 | ||
| 866 | 833 | cret := xResolverLookupService(x.GoPointer(), ServiceVar, ProtocolVar, DomainVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -881,8 +848,6 @@ var xResolverLookupServiceAsync func(uintptr, string, string, string, uintptr, u | |||
| 881 | 848 | // get the final result. See g_resolver_lookup_service() for more | |
| 882 | 849 | // details. | |
| 883 | 850 | func (x *Resolver) LookupServiceAsync(ServiceVar string, ProtocolVar string, DomainVar string, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 884 | - | core.LazyRegister(&xResolverLookupServiceAsync, "GIO", "g_resolver_lookup_service_async", false) | |
| 885 | - | ||
| 886 | 851 | xResolverLookupServiceAsync(x.GoPointer(), ServiceVar, ProtocolVar, DomainVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 887 | 852 | } | |
| 888 | 853 | ||
| @@ -895,7 +860,6 @@ var xResolverLookupServiceFinish func(uintptr, uintptr, **glib.Error) uintptr | |||
| 895 | 860 | // a value from #GResolverError. If the operation was cancelled, | |
| 896 | 861 | // @error will be set to %G_IO_ERROR_CANCELLED. | |
| 897 | 862 | func (x *Resolver) LookupServiceFinish(ResultVar AsyncResult) (*glib.List, error) { | |
| 898 | - | core.LazyRegister(&xResolverLookupServiceFinish, "GIO", "g_resolver_lookup_service_finish", false) | |
| 899 | 863 | var cerr *glib.Error | |
| 900 | 864 | ||
| 901 | 865 | cret := xResolverLookupServiceFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| @@ -920,8 +884,6 @@ var xResolverSetDefault func(uintptr) | |||
| 920 | 884 | // implements its own cache policies on top of that, and then set | |
| 921 | 885 | // itself as the default resolver for all later code to use. | |
| 922 | 886 | func (x *Resolver) SetDefault() { | |
| 923 | - | core.LazyRegister(&xResolverSetDefault, "GIO", "g_resolver_set_default", false) | |
| 924 | - | ||
| 925 | 887 | xResolverSetDefault(x.GoPointer()) | |
| 926 | 888 | } | |
| 927 | 889 | ||
| @@ -929,8 +891,6 @@ var xResolverSetTimeout func(uintptr, uint) | |||
| 929 | 891 | ||
| 930 | 892 | // Set the timeout applied to all resolver lookups. See #GResolver:timeout. | |
| 931 | 893 | func (x *Resolver) SetTimeout(TimeoutMsVar uint) { | |
| 932 | - | core.LazyRegister(&xResolverSetTimeout, "GIO", "g_resolver_set_timeout", false) | |
| 933 | - | ||
| 934 | 894 | xResolverSetTimeout(x.GoPointer(), TimeoutMsVar) | |
| 935 | 895 | } | |
| 936 | 896 | ||
| @@ -1011,8 +971,6 @@ var xResolverFreeAddresses func(*glib.List) | |||
| 1011 | 971 | // (This is a convenience method; you can also simply free the results | |
| 1012 | 972 | // by hand.) | |
| 1013 | 973 | func ResolverFreeAddresses(AddressesVar *glib.List) { | |
| 1014 | - | core.LazyRegister(&xResolverFreeAddresses, "GIO", "g_resolver_free_addresses", false) | |
| 1015 | - | ||
| 1016 | 974 | xResolverFreeAddresses(AddressesVar) | |
| 1017 | 975 | } | |
| 1018 | 976 | ||
| @@ -1023,8 +981,6 @@ var xResolverFreeTargets func(*glib.List) | |||
| 1023 | 981 | // (This is a convenience method; you can also simply free the | |
| 1024 | 982 | // results by hand.) | |
| 1025 | 983 | func ResolverFreeTargets(TargetsVar *glib.List) { | |
| 1026 | - | core.LazyRegister(&xResolverFreeTargets, "GIO", "g_resolver_free_targets", false) | |
| 1027 | - | ||
| 1028 | 984 | xResolverFreeTargets(TargetsVar) | |
| 1029 | 985 | } | |
| 1030 | 986 | ||
| @@ -1034,7 +990,6 @@ var xResolverGetDefault func() uintptr | |||
| 1034 | 990 | // with it. #GResolver may use its reference count as a hint about how | |
| 1035 | 991 | // many threads it should allocate for concurrent DNS resolutions. | |
| 1036 | 992 | func ResolverGetDefault() *Resolver { | |
| 1037 | - | core.LazyRegister(&xResolverGetDefault, "GIO", "g_resolver_get_default", false) | |
| 1038 | 993 | var cls *Resolver | |
| 1039 | 994 | ||
| 1040 | 995 | cret := xResolverGetDefault() | |
| @@ -1050,4 +1005,41 @@ func ResolverGetDefault() *Resolver { | |||
| 1050 | 1005 | func init() { | |
| 1051 | 1006 | core.SetPackageName("GIO", "gio-2.0") | |
| 1052 | 1007 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | |
| 1008 | + | var libs []uintptr | |
| 1009 | + | for _, libPath := range core.GetPaths("GIO") { | |
| 1010 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 1011 | + | if err != nil { | |
| 1012 | + | panic(err) | |
| 1013 | + | } | |
| 1014 | + | libs = append(libs, lib) | |
| 1015 | + | } | |
| 1016 | + | ||
| 1017 | + | core.PuregoSafeRegister(&xResolverNameLookupFlagsGLibType, libs, "g_resolver_name_lookup_flags_get_type") | |
| 1018 | + | ||
| 1019 | + | core.PuregoSafeRegister(&xResolverErrorQuark, libs, "g_resolver_error_quark") | |
| 1020 | + | ||
| 1021 | + | core.PuregoSafeRegister(&xResolverGLibType, libs, "g_resolver_get_type") | |
| 1022 | + | ||
| 1023 | + | core.PuregoSafeRegister(&xResolverGetTimeout, libs, "g_resolver_get_timeout") | |
| 1024 | + | core.PuregoSafeRegister(&xResolverLookupByAddress, libs, "g_resolver_lookup_by_address") | |
| 1025 | + | core.PuregoSafeRegister(&xResolverLookupByAddressAsync, libs, "g_resolver_lookup_by_address_async") | |
| 1026 | + | core.PuregoSafeRegister(&xResolverLookupByAddressFinish, libs, "g_resolver_lookup_by_address_finish") | |
| 1027 | + | core.PuregoSafeRegister(&xResolverLookupByName, libs, "g_resolver_lookup_by_name") | |
| 1028 | + | core.PuregoSafeRegister(&xResolverLookupByNameAsync, libs, "g_resolver_lookup_by_name_async") | |
| 1029 | + | core.PuregoSafeRegister(&xResolverLookupByNameFinish, libs, "g_resolver_lookup_by_name_finish") | |
| 1030 | + | core.PuregoSafeRegister(&xResolverLookupByNameWithFlags, libs, "g_resolver_lookup_by_name_with_flags") | |
| 1031 | + | core.PuregoSafeRegister(&xResolverLookupByNameWithFlagsAsync, libs, "g_resolver_lookup_by_name_with_flags_async") | |
| 1032 | + | core.PuregoSafeRegister(&xResolverLookupByNameWithFlagsFinish, libs, "g_resolver_lookup_by_name_with_flags_finish") | |
| 1033 | + | core.PuregoSafeRegister(&xResolverLookupRecords, libs, "g_resolver_lookup_records") | |
| 1034 | + | core.PuregoSafeRegister(&xResolverLookupRecordsAsync, libs, "g_resolver_lookup_records_async") | |
| 1035 | + | core.PuregoSafeRegister(&xResolverLookupRecordsFinish, libs, "g_resolver_lookup_records_finish") | |
| 1036 | + | core.PuregoSafeRegister(&xResolverLookupService, libs, "g_resolver_lookup_service") | |
| 1037 | + | core.PuregoSafeRegister(&xResolverLookupServiceAsync, libs, "g_resolver_lookup_service_async") | |
| 1038 | + | core.PuregoSafeRegister(&xResolverLookupServiceFinish, libs, "g_resolver_lookup_service_finish") | |
| 1039 | + | core.PuregoSafeRegister(&xResolverSetDefault, libs, "g_resolver_set_default") | |
| 1040 | + | core.PuregoSafeRegister(&xResolverSetTimeout, libs, "g_resolver_set_timeout") | |
| 1041 | + | ||
| 1042 | + | core.PuregoSafeRegister(&xResolverFreeAddresses, libs, "g_resolver_free_addresses") | |
| 1043 | + | core.PuregoSafeRegister(&xResolverFreeTargets, libs, "g_resolver_free_targets") | |
| 1044 | + | core.PuregoSafeRegister(&xResolverGetDefault, libs, "g_resolver_get_default") | |
| 1053 | 1045 | } | |
| @@ -90,7 +90,7 @@ func (x *ResolverClass) OverrideLookupByName(cb func(*Resolver, string, *Cancell | |||||
| 90 | if cb == nil { | 90 | if cb == nil { | ||
| 91 | x.xLookupByName = 0 | 91 | x.xLookupByName = 0 | ||
| 92 | } else { | 92 | } else { | ||
| 93 | - | x.xLookupByName = purego.NewCallback(func(ResolverVarp uintptr, HostnameVarp string, CancellableVarp uintptr, cerrp **glib.Error) uintptr { | 93 | + | x.xLookupByName = purego.NewCallback(func(ResolverVarp uintptr, HostnameVarp string, CancellableVarp uintptr) uintptr { |
| 94 | ret := cb(ResolverNewFromInternalPtr(ResolverVarp), HostnameVarp, CancellableNewFromInternalPtr(CancellableVarp)) | 94 | ret := cb(ResolverNewFromInternalPtr(ResolverVarp), HostnameVarp, CancellableNewFromInternalPtr(CancellableVarp)) | ||
| 95 | if ret == nil { | 95 | if ret == nil { | ||
| 96 | return 0 | 96 | return 0 | ||
| @@ -105,11 +105,10 @@ func (x *ResolverClass) GetLookupByName() func(*Resolver, string, *Cancellable) | |||||
| 105 | if x.xLookupByName == 0 { | 105 | if x.xLookupByName == 0 { | ||
| 106 | return nil | 106 | return nil | ||
| 107 | } | 107 | } | ||
| 108 | - | var rawCallback func(ResolverVarp uintptr, HostnameVarp string, CancellableVarp uintptr, cerrp **glib.Error) uintptr | 108 | + | var rawCallback func(ResolverVarp uintptr, HostnameVarp string, CancellableVarp uintptr) uintptr |
| 109 | purego.RegisterFunc(&rawCallback, x.xLookupByName) | 109 | purego.RegisterFunc(&rawCallback, x.xLookupByName) | ||
| 110 | return func(ResolverVar *Resolver, HostnameVar string, CancellableVar *Cancellable) *glib.List { | 110 | return func(ResolverVar *Resolver, HostnameVar string, CancellableVar *Cancellable) *glib.List { | ||
| 111 | - | var cerr *glib.Error | 111 | + | rawRet := rawCallback(ResolverVar.GoPointer(), HostnameVar, CancellableVar.GoPointer()) |
| 112 | - | rawRet := rawCallback(ResolverVar.GoPointer(), HostnameVar, CancellableVar.GoPointer(), &cerr) | |||
| 113 | if rawRet == 0 { | 112 | if rawRet == 0 { | ||
| 114 | return nil | 113 | return nil | ||
| 115 | } | 114 | } | ||
| @@ -145,7 +144,7 @@ func (x *ResolverClass) OverrideLookupByNameFinish(cb func(*Resolver, AsyncResul | |||||
| 145 | if cb == nil { | 144 | if cb == nil { | ||
| 146 | x.xLookupByNameFinish = 0 | 145 | x.xLookupByNameFinish = 0 | ||
| 147 | } else { | 146 | } else { | ||
| 148 | - | x.xLookupByNameFinish = purego.NewCallback(func(ResolverVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) uintptr { | 147 | + | x.xLookupByNameFinish = purego.NewCallback(func(ResolverVarp uintptr, ResultVarp uintptr) uintptr { |
| 149 | ret := cb(ResolverNewFromInternalPtr(ResolverVarp), &AsyncResultBase{Ptr: ResultVarp}) | 148 | ret := cb(ResolverNewFromInternalPtr(ResolverVarp), &AsyncResultBase{Ptr: ResultVarp}) | ||
| 150 | if ret == nil { | 149 | if ret == nil { | ||
| 151 | return 0 | 150 | return 0 | ||
| @@ -160,11 +159,10 @@ func (x *ResolverClass) GetLookupByNameFinish() func(*Resolver, AsyncResult) *gl | |||||
| 160 | if x.xLookupByNameFinish == 0 { | 159 | if x.xLookupByNameFinish == 0 { | ||
| 161 | return nil | 160 | return nil | ||
| 162 | } | 161 | } | ||
| 163 | - | var rawCallback func(ResolverVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) uintptr | 162 | + | var rawCallback func(ResolverVarp uintptr, ResultVarp uintptr) uintptr |
| 164 | purego.RegisterFunc(&rawCallback, x.xLookupByNameFinish) | 163 | purego.RegisterFunc(&rawCallback, x.xLookupByNameFinish) | ||
| 165 | return func(ResolverVar *Resolver, ResultVar AsyncResult) *glib.List { | 164 | return func(ResolverVar *Resolver, ResultVar AsyncResult) *glib.List { | ||
| 166 | - | var cerr *glib.Error | 165 | + | rawRet := rawCallback(ResolverVar.GoPointer(), ResultVar.GoPointer()) |
| 167 | - | rawRet := rawCallback(ResolverVar.GoPointer(), ResultVar.GoPointer(), &cerr) | |||
| 168 | if rawRet == 0 { | 166 | if rawRet == 0 { | ||
| 169 | return nil | 167 | return nil | ||
| 170 | } | 168 | } | ||
| @@ -177,7 +175,7 @@ func (x *ResolverClass) OverrideLookupByAddress(cb func(*Resolver, *InetAddress, | |||||
| 177 | if cb == nil { | 175 | if cb == nil { | ||
| 178 | x.xLookupByAddress = 0 | 176 | x.xLookupByAddress = 0 | ||
| 179 | } else { | 177 | } else { | ||
| 180 | - | x.xLookupByAddress = purego.NewCallback(func(ResolverVarp uintptr, AddressVarp uintptr, CancellableVarp uintptr, cerrp **glib.Error) string { | 178 | + | x.xLookupByAddress = purego.NewCallback(func(ResolverVarp uintptr, AddressVarp uintptr, CancellableVarp uintptr) string { |
| 181 | return cb(ResolverNewFromInternalPtr(ResolverVarp), InetAddressNewFromInternalPtr(AddressVarp), CancellableNewFromInternalPtr(CancellableVarp)) | 179 | return cb(ResolverNewFromInternalPtr(ResolverVarp), InetAddressNewFromInternalPtr(AddressVarp), CancellableNewFromInternalPtr(CancellableVarp)) | ||
| 182 | }) | 180 | }) | ||
| 183 | } | 181 | } | ||
| @@ -188,11 +186,10 @@ func (x *ResolverClass) GetLookupByAddress() func(*Resolver, *InetAddress, *Canc | |||||
| 188 | if x.xLookupByAddress == 0 { | 186 | if x.xLookupByAddress == 0 { | ||
| 189 | return nil | 187 | return nil | ||
| 190 | } | 188 | } | ||
| 191 | - | var rawCallback func(ResolverVarp uintptr, AddressVarp uintptr, CancellableVarp uintptr, cerrp **glib.Error) string | 189 | + | var rawCallback func(ResolverVarp uintptr, AddressVarp uintptr, CancellableVarp uintptr) string |
| 192 | purego.RegisterFunc(&rawCallback, x.xLookupByAddress) | 190 | purego.RegisterFunc(&rawCallback, x.xLookupByAddress) | ||
| 193 | return func(ResolverVar *Resolver, AddressVar *InetAddress, CancellableVar *Cancellable) string { | 191 | return func(ResolverVar *Resolver, AddressVar *InetAddress, CancellableVar *Cancellable) string { | ||
| 194 | - | var cerr *glib.Error | 192 | + | return rawCallback(ResolverVar.GoPointer(), AddressVar.GoPointer(), CancellableVar.GoPointer()) |
| 195 | - | return rawCallback(ResolverVar.GoPointer(), AddressVar.GoPointer(), CancellableVar.GoPointer(), &cerr) | |||
| 196 | } | 193 | } | ||
| 197 | } | 194 | } | ||
| 198 | 195 | ||||
| @@ -224,7 +221,7 @@ func (x *ResolverClass) OverrideLookupByAddressFinish(cb func(*Resolver, AsyncRe | |||||
| 224 | if cb == nil { | 221 | if cb == nil { | ||
| 225 | x.xLookupByAddressFinish = 0 | 222 | x.xLookupByAddressFinish = 0 | ||
| 226 | } else { | 223 | } else { | ||
| 227 | - | x.xLookupByAddressFinish = purego.NewCallback(func(ResolverVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) string { | 224 | + | x.xLookupByAddressFinish = purego.NewCallback(func(ResolverVarp uintptr, ResultVarp uintptr) string { |
| 228 | return cb(ResolverNewFromInternalPtr(ResolverVarp), &AsyncResultBase{Ptr: ResultVarp}) | 225 | return cb(ResolverNewFromInternalPtr(ResolverVarp), &AsyncResultBase{Ptr: ResultVarp}) | ||
| 229 | }) | 226 | }) | ||
| 230 | } | 227 | } | ||
| @@ -235,11 +232,10 @@ func (x *ResolverClass) GetLookupByAddressFinish() func(*Resolver, AsyncResult) | |||||
| 235 | if x.xLookupByAddressFinish == 0 { | 232 | if x.xLookupByAddressFinish == 0 { | ||
| 236 | return nil | 233 | return nil | ||
| 237 | } | 234 | } | ||
| 238 | - | var rawCallback func(ResolverVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) string | 235 | + | var rawCallback func(ResolverVarp uintptr, ResultVarp uintptr) string |
| 239 | purego.RegisterFunc(&rawCallback, x.xLookupByAddressFinish) | 236 | purego.RegisterFunc(&rawCallback, x.xLookupByAddressFinish) | ||
| 240 | return func(ResolverVar *Resolver, ResultVar AsyncResult) string { | 237 | return func(ResolverVar *Resolver, ResultVar AsyncResult) string { | ||
| 241 | - | var cerr *glib.Error | 238 | + | return rawCallback(ResolverVar.GoPointer(), ResultVar.GoPointer()) |
| 242 | - | return rawCallback(ResolverVar.GoPointer(), ResultVar.GoPointer(), &cerr) | |||
| 243 | } | 239 | } | ||
| 244 | } | 240 | } | ||
| 245 | 241 | ||||
| @@ -248,7 +244,7 @@ func (x *ResolverClass) OverrideLookupService(cb func(*Resolver, string, *Cancel | |||||
| 248 | if cb == nil { | 244 | if cb == nil { | ||
| 249 | x.xLookupService = 0 | 245 | x.xLookupService = 0 | ||
| 250 | } else { | 246 | } else { | ||
| 251 | - | x.xLookupService = purego.NewCallback(func(ResolverVarp uintptr, RrnameVarp string, CancellableVarp uintptr, cerrp **glib.Error) uintptr { | 247 | + | x.xLookupService = purego.NewCallback(func(ResolverVarp uintptr, RrnameVarp string, CancellableVarp uintptr) uintptr { |
| 252 | ret := cb(ResolverNewFromInternalPtr(ResolverVarp), RrnameVarp, CancellableNewFromInternalPtr(CancellableVarp)) | 248 | ret := cb(ResolverNewFromInternalPtr(ResolverVarp), RrnameVarp, CancellableNewFromInternalPtr(CancellableVarp)) | ||
| 253 | if ret == nil { | 249 | if ret == nil { | ||
| 254 | return 0 | 250 | return 0 | ||
| @@ -263,11 +259,10 @@ func (x *ResolverClass) GetLookupService() func(*Resolver, string, *Cancellable) | |||||
| 263 | if x.xLookupService == 0 { | 259 | if x.xLookupService == 0 { | ||
| 264 | return nil | 260 | return nil | ||
| 265 | } | 261 | } | ||
| 266 | - | var rawCallback func(ResolverVarp uintptr, RrnameVarp string, CancellableVarp uintptr, cerrp **glib.Error) uintptr | 262 | + | var rawCallback func(ResolverVarp uintptr, RrnameVarp string, CancellableVarp uintptr) uintptr |
| 267 | purego.RegisterFunc(&rawCallback, x.xLookupService) | 263 | purego.RegisterFunc(&rawCallback, x.xLookupService) | ||
| 268 | return func(ResolverVar *Resolver, RrnameVar string, CancellableVar *Cancellable) *glib.List { | 264 | return func(ResolverVar *Resolver, RrnameVar string, CancellableVar *Cancellable) *glib.List { | ||
| 269 | - | var cerr *glib.Error | 265 | + | rawRet := rawCallback(ResolverVar.GoPointer(), RrnameVar, CancellableVar.GoPointer()) |
| 270 | - | rawRet := rawCallback(ResolverVar.GoPointer(), RrnameVar, CancellableVar.GoPointer(), &cerr) | |||
| 271 | if rawRet == 0 { | 266 | if rawRet == 0 { | ||
| 272 | return nil | 267 | return nil | ||
| 273 | } | 268 | } | ||
| @@ -303,7 +298,7 @@ func (x *ResolverClass) OverrideLookupServiceFinish(cb func(*Resolver, AsyncResu | |||||
| 303 | if cb == nil { | 298 | if cb == nil { | ||
| 304 | x.xLookupServiceFinish = 0 | 299 | x.xLookupServiceFinish = 0 | ||
| 305 | } else { | 300 | } else { | ||
| 306 | - | x.xLookupServiceFinish = purego.NewCallback(func(ResolverVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) uintptr { | 301 | + | x.xLookupServiceFinish = purego.NewCallback(func(ResolverVarp uintptr, ResultVarp uintptr) uintptr { |
| 307 | ret := cb(ResolverNewFromInternalPtr(ResolverVarp), &AsyncResultBase{Ptr: ResultVarp}) | 302 | ret := cb(ResolverNewFromInternalPtr(ResolverVarp), &AsyncResultBase{Ptr: ResultVarp}) | ||
| 308 | if ret == nil { | 303 | if ret == nil { | ||
| 309 | return 0 | 304 | return 0 | ||
| @@ -318,11 +313,10 @@ func (x *ResolverClass) GetLookupServiceFinish() func(*Resolver, AsyncResult) *g | |||||
| 318 | if x.xLookupServiceFinish == 0 { | 313 | if x.xLookupServiceFinish == 0 { | ||
| 319 | return nil | 314 | return nil | ||
| 320 | } | 315 | } | ||
| 321 | - | var rawCallback func(ResolverVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) uintptr | 316 | + | var rawCallback func(ResolverVarp uintptr, ResultVarp uintptr) uintptr |
| 322 | purego.RegisterFunc(&rawCallback, x.xLookupServiceFinish) | 317 | purego.RegisterFunc(&rawCallback, x.xLookupServiceFinish) | ||
| 323 | return func(ResolverVar *Resolver, ResultVar AsyncResult) *glib.List { | 318 | return func(ResolverVar *Resolver, ResultVar AsyncResult) *glib.List { | ||
| 324 | - | var cerr *glib.Error | 319 | + | rawRet := rawCallback(ResolverVar.GoPointer(), ResultVar.GoPointer()) |
| 325 | - | rawRet := rawCallback(ResolverVar.GoPointer(), ResultVar.GoPointer(), &cerr) | |||
| 326 | if rawRet == 0 { | 320 | if rawRet == 0 { | ||
| 327 | return nil | 321 | return nil | ||
| 328 | } | 322 | } | ||
| @@ -335,7 +329,7 @@ func (x *ResolverClass) OverrideLookupRecords(cb func(*Resolver, string, Resolve | |||||
| 335 | if cb == nil { | 329 | if cb == nil { | ||
| 336 | x.xLookupRecords = 0 | 330 | x.xLookupRecords = 0 | ||
| 337 | } else { | 331 | } else { | ||
| 338 | - | x.xLookupRecords = purego.NewCallback(func(ResolverVarp uintptr, RrnameVarp string, RecordTypeVarp ResolverRecordType, CancellableVarp uintptr, cerrp **glib.Error) uintptr { | 332 | + | x.xLookupRecords = purego.NewCallback(func(ResolverVarp uintptr, RrnameVarp string, RecordTypeVarp ResolverRecordType, CancellableVarp uintptr) uintptr { |
| 339 | ret := cb(ResolverNewFromInternalPtr(ResolverVarp), RrnameVarp, RecordTypeVarp, CancellableNewFromInternalPtr(CancellableVarp)) | 333 | ret := cb(ResolverNewFromInternalPtr(ResolverVarp), RrnameVarp, RecordTypeVarp, CancellableNewFromInternalPtr(CancellableVarp)) | ||
| 340 | if ret == nil { | 334 | if ret == nil { | ||
| 341 | return 0 | 335 | return 0 | ||
| @@ -350,11 +344,10 @@ func (x *ResolverClass) GetLookupRecords() func(*Resolver, string, ResolverRecor | |||||
| 350 | if x.xLookupRecords == 0 { | 344 | if x.xLookupRecords == 0 { | ||
| 351 | return nil | 345 | return nil | ||
| 352 | } | 346 | } | ||
| 353 | - | var rawCallback func(ResolverVarp uintptr, RrnameVarp string, RecordTypeVarp ResolverRecordType, CancellableVarp uintptr, cerrp **glib.Error) uintptr | 347 | + | var rawCallback func(ResolverVarp uintptr, RrnameVarp string, RecordTypeVarp ResolverRecordType, CancellableVarp uintptr) uintptr |
| 354 | purego.RegisterFunc(&rawCallback, x.xLookupRecords) | 348 | purego.RegisterFunc(&rawCallback, x.xLookupRecords) | ||
| 355 | return func(ResolverVar *Resolver, RrnameVar string, RecordTypeVar ResolverRecordType, CancellableVar *Cancellable) *glib.List { | 349 | return func(ResolverVar *Resolver, RrnameVar string, RecordTypeVar ResolverRecordType, CancellableVar *Cancellable) *glib.List { | ||
| 356 | - | var cerr *glib.Error | 350 | + | rawRet := rawCallback(ResolverVar.GoPointer(), RrnameVar, RecordTypeVar, CancellableVar.GoPointer()) |
| 357 | - | rawRet := rawCallback(ResolverVar.GoPointer(), RrnameVar, RecordTypeVar, CancellableVar.GoPointer(), &cerr) | |||
| 358 | if rawRet == 0 { | 351 | if rawRet == 0 { | ||
| 359 | return nil | 352 | return nil | ||
| 360 | } | 353 | } | ||
| @@ -390,7 +383,7 @@ func (x *ResolverClass) OverrideLookupRecordsFinish(cb func(*Resolver, AsyncResu | |||||
| 390 | if cb == nil { | 383 | if cb == nil { | ||
| 391 | x.xLookupRecordsFinish = 0 | 384 | x.xLookupRecordsFinish = 0 | ||
| 392 | } else { | 385 | } else { | ||
| 393 | - | x.xLookupRecordsFinish = purego.NewCallback(func(ResolverVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) uintptr { | 386 | + | x.xLookupRecordsFinish = purego.NewCallback(func(ResolverVarp uintptr, ResultVarp uintptr) uintptr { |
| 394 | ret := cb(ResolverNewFromInternalPtr(ResolverVarp), &AsyncResultBase{Ptr: ResultVarp}) | 387 | ret := cb(ResolverNewFromInternalPtr(ResolverVarp), &AsyncResultBase{Ptr: ResultVarp}) | ||
| 395 | if ret == nil { | 388 | if ret == nil { | ||
| 396 | return 0 | 389 | return 0 | ||
| @@ -405,11 +398,10 @@ func (x *ResolverClass) GetLookupRecordsFinish() func(*Resolver, AsyncResult) *g | |||||
| 405 | if x.xLookupRecordsFinish == 0 { | 398 | if x.xLookupRecordsFinish == 0 { | ||
| 406 | return nil | 399 | return nil | ||
| 407 | } | 400 | } | ||
| 408 | - | var rawCallback func(ResolverVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) uintptr | 401 | + | var rawCallback func(ResolverVarp uintptr, ResultVarp uintptr) uintptr |
| 409 | purego.RegisterFunc(&rawCallback, x.xLookupRecordsFinish) | 402 | purego.RegisterFunc(&rawCallback, x.xLookupRecordsFinish) | ||
| 410 | return func(ResolverVar *Resolver, ResultVar AsyncResult) *glib.List { | 403 | return func(ResolverVar *Resolver, ResultVar AsyncResult) *glib.List { | ||
| 411 | - | var cerr *glib.Error | 404 | + | rawRet := rawCallback(ResolverVar.GoPointer(), ResultVar.GoPointer()) |
| 412 | - | rawRet := rawCallback(ResolverVar.GoPointer(), ResultVar.GoPointer(), &cerr) | |||
| 413 | if rawRet == 0 { | 405 | if rawRet == 0 { | ||
| 414 | return nil | 406 | return nil | ||
| 415 | } | 407 | } | ||
| @@ -445,7 +437,7 @@ func (x *ResolverClass) OverrideLookupByNameWithFlagsFinish(cb func(*Resolver, A | |||||
| 445 | if cb == nil { | 437 | if cb == nil { | ||
| 446 | x.xLookupByNameWithFlagsFinish = 0 | 438 | x.xLookupByNameWithFlagsFinish = 0 | ||
| 447 | } else { | 439 | } else { | ||
| 448 | - | x.xLookupByNameWithFlagsFinish = purego.NewCallback(func(ResolverVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) uintptr { | 440 | + | x.xLookupByNameWithFlagsFinish = purego.NewCallback(func(ResolverVarp uintptr, ResultVarp uintptr) uintptr { |
| 449 | ret := cb(ResolverNewFromInternalPtr(ResolverVarp), &AsyncResultBase{Ptr: ResultVarp}) | 441 | ret := cb(ResolverNewFromInternalPtr(ResolverVarp), &AsyncResultBase{Ptr: ResultVarp}) | ||
| 450 | if ret == nil { | 442 | if ret == nil { | ||
| 451 | return 0 | 443 | return 0 | ||
| @@ -460,11 +452,10 @@ func (x *ResolverClass) GetLookupByNameWithFlagsFinish() func(*Resolver, AsyncRe | |||||
| 460 | if x.xLookupByNameWithFlagsFinish == 0 { | 452 | if x.xLookupByNameWithFlagsFinish == 0 { | ||
| 461 | return nil | 453 | return nil | ||
| 462 | } | 454 | } | ||
| 463 | - | var rawCallback func(ResolverVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) uintptr | 455 | + | var rawCallback func(ResolverVarp uintptr, ResultVarp uintptr) uintptr |
| 464 | purego.RegisterFunc(&rawCallback, x.xLookupByNameWithFlagsFinish) | 456 | purego.RegisterFunc(&rawCallback, x.xLookupByNameWithFlagsFinish) | ||
| 465 | return func(ResolverVar *Resolver, ResultVar AsyncResult) *glib.List { | 457 | return func(ResolverVar *Resolver, ResultVar AsyncResult) *glib.List { | ||
| 466 | - | var cerr *glib.Error | 458 | + | rawRet := rawCallback(ResolverVar.GoPointer(), ResultVar.GoPointer()) |
| 467 | - | rawRet := rawCallback(ResolverVar.GoPointer(), ResultVar.GoPointer(), &cerr) | |||
| 468 | if rawRet == 0 { | 459 | if rawRet == 0 { | ||
| 469 | return nil | 460 | return nil | ||
| 470 | } | 461 | } | ||
| @@ -477,7 +468,7 @@ func (x *ResolverClass) OverrideLookupByNameWithFlags(cb func(*Resolver, string, | |||||
| 477 | if cb == nil { | 468 | if cb == nil { | ||
| 478 | x.xLookupByNameWithFlags = 0 | 469 | x.xLookupByNameWithFlags = 0 | ||
| 479 | } else { | 470 | } else { | ||
| 480 | - | x.xLookupByNameWithFlags = purego.NewCallback(func(ResolverVarp uintptr, HostnameVarp string, FlagsVarp ResolverNameLookupFlags, CancellableVarp uintptr, cerrp **glib.Error) uintptr { | 471 | + | x.xLookupByNameWithFlags = purego.NewCallback(func(ResolverVarp uintptr, HostnameVarp string, FlagsVarp ResolverNameLookupFlags, CancellableVarp uintptr) uintptr { |
| 481 | ret := cb(ResolverNewFromInternalPtr(ResolverVarp), HostnameVarp, FlagsVarp, CancellableNewFromInternalPtr(CancellableVarp)) | 472 | ret := cb(ResolverNewFromInternalPtr(ResolverVarp), HostnameVarp, FlagsVarp, CancellableNewFromInternalPtr(CancellableVarp)) | ||
| 482 | if ret == nil { | 473 | if ret == nil { | ||
| 483 | return 0 | 474 | return 0 | ||
| @@ -492,11 +483,10 @@ func (x *ResolverClass) GetLookupByNameWithFlags() func(*Resolver, string, Resol | |||||
| 492 | if x.xLookupByNameWithFlags == 0 { | 483 | if x.xLookupByNameWithFlags == 0 { | ||
| 493 | return nil | 484 | return nil | ||
| 494 | } | 485 | } | ||
| 495 | - | var rawCallback func(ResolverVarp uintptr, HostnameVarp string, FlagsVarp ResolverNameLookupFlags, CancellableVarp uintptr, cerrp **glib.Error) uintptr | 486 | + | var rawCallback func(ResolverVarp uintptr, HostnameVarp string, FlagsVarp ResolverNameLookupFlags, CancellableVarp uintptr) uintptr |
| 496 | purego.RegisterFunc(&rawCallback, x.xLookupByNameWithFlags) | 487 | purego.RegisterFunc(&rawCallback, x.xLookupByNameWithFlags) | ||
| 497 | return func(ResolverVar *Resolver, HostnameVar string, FlagsVar ResolverNameLookupFlags, CancellableVar *Cancellable) *glib.List { | 488 | return func(ResolverVar *Resolver, HostnameVar string, FlagsVar ResolverNameLookupFlags, CancellableVar *Cancellable) *glib.List { | ||
| 498 | - | var cerr *glib.Error | 489 | + | rawRet := rawCallback(ResolverVar.GoPointer(), HostnameVar, FlagsVar, CancellableVar.GoPointer()) |
| 499 | - | rawRet := rawCallback(ResolverVar.GoPointer(), HostnameVar, FlagsVar, CancellableVar.GoPointer(), &cerr) | |||
| 500 | if rawRet == 0 { | 490 | if rawRet == 0 { | ||
| 501 | return nil | 491 | return nil | ||
| 502 | } | 492 | } | ||
| @@ -526,7 +516,6 @@ type ResolverNameLookupFlags int | |||||
| 526 | var xResolverNameLookupFlagsGLibType func() types.GType | 516 | var xResolverNameLookupFlagsGLibType func() types.GType | ||
| 527 | 517 | ||||
| 528 | func ResolverNameLookupFlagsGLibType() types.GType { | 518 | func ResolverNameLookupFlagsGLibType() types.GType { | ||
| 529 | - | core.LazyRegister(&xResolverNameLookupFlagsGLibType, "GIO", "g_resolver_name_lookup_flags_get_type", false) | |||
| 530 | return xResolverNameLookupFlagsGLibType() | 519 | return xResolverNameLookupFlagsGLibType() | ||
| 531 | } | 520 | } | ||
| 532 | 521 | ||||
| @@ -544,8 +533,6 @@ var xResolverErrorQuark func() glib.Quark | |||||
| 544 | 533 | ||||
| 545 | // Gets the #GResolver Error Quark. | 534 | // Gets the #GResolver Error Quark. | ||
| 546 | func ResolverErrorQuark() glib.Quark { | 535 | func ResolverErrorQuark() glib.Quark { | ||
| 547 | - | core.LazyRegister(&xResolverErrorQuark, "GIO", "g_resolver_error_quark", false) | |||
| 548 | - | ||||
| 549 | cret := xResolverErrorQuark() | 536 | cret := xResolverErrorQuark() | ||
| 550 | return cret | 537 | return cret | ||
| 551 | } | 538 | } | ||
| @@ -576,7 +563,6 @@ type Resolver struct { | |||||
| 576 | var xResolverGLibType func() types.GType | 563 | var xResolverGLibType func() types.GType | ||
| 577 | 564 | ||||
| 578 | func ResolverGLibType() types.GType { | 565 | func ResolverGLibType() types.GType { | ||
| 579 | - | core.LazyRegister(&xResolverGLibType, "GIO", "g_resolver_get_type", false) | |||
| 580 | return xResolverGLibType() | 566 | return xResolverGLibType() | ||
| 581 | } | 567 | } | ||
| 582 | 568 | ||||
| @@ -590,8 +576,6 @@ var xResolverGetTimeout func(uintptr) uint | |||||
| 590 | 576 | ||||
| 591 | // Get the timeout applied to all resolver lookups. See #GResolver:timeout. | 577 | // Get the timeout applied to all resolver lookups. See #GResolver:timeout. | ||
| 592 | func (x *Resolver) GetTimeout() uint { | 578 | func (x *Resolver) GetTimeout() uint { | ||
| 593 | - | core.LazyRegister(&xResolverGetTimeout, "GIO", "g_resolver_get_timeout", false) | |||
| 594 | - | ||||
| 595 | cret := xResolverGetTimeout(x.GoPointer()) | 579 | cret := xResolverGetTimeout(x.GoPointer()) | ||
| 596 | return cret | 580 | return cret | ||
| 597 | } | 581 | } | ||
| @@ -608,7 +592,6 @@ var xResolverLookupByAddress func(uintptr, uintptr, uintptr, **glib.Error) strin | |||||
| 608 | // operation, in which case @error (if non-%NULL) will be set to | 592 | // operation, in which case @error (if non-%NULL) will be set to | ||
| 609 | // %G_IO_ERROR_CANCELLED. | 593 | // %G_IO_ERROR_CANCELLED. | ||
| 610 | func (x *Resolver) LookupByAddress(AddressVar *InetAddress, CancellableVar *Cancellable) (string, error) { | 594 | func (x *Resolver) LookupByAddress(AddressVar *InetAddress, CancellableVar *Cancellable) (string, error) { | ||
| 611 | - | core.LazyRegister(&xResolverLookupByAddress, "GIO", "g_resolver_lookup_by_address", false) | |||
| 612 | var cerr *glib.Error | 595 | var cerr *glib.Error | ||
| 613 | 596 | ||||
| 614 | cret := xResolverLookupByAddress(x.GoPointer(), AddressVar.GoPointer(), CancellableVar.GoPointer(), &cerr) | 597 | cret := xResolverLookupByAddress(x.GoPointer(), AddressVar.GoPointer(), CancellableVar.GoPointer(), &cerr) | ||
| @@ -624,8 +607,6 @@ var xResolverLookupByAddressAsync func(uintptr, uintptr, uintptr, uintptr, uintp | |||||
| 624 | // associated hostname, and eventually calls @callback, which must | 607 | // associated hostname, and eventually calls @callback, which must | ||
| 625 | // call g_resolver_lookup_by_address_finish() to get the final result. | 608 | // call g_resolver_lookup_by_address_finish() to get the final result. | ||
| 626 | func (x *Resolver) LookupByAddressAsync(AddressVar *InetAddress, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 609 | func (x *Resolver) LookupByAddressAsync(AddressVar *InetAddress, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 627 | - | core.LazyRegister(&xResolverLookupByAddressAsync, "GIO", "g_resolver_lookup_by_address_async", false) | |||
| 628 | - | ||||
| 629 | xResolverLookupByAddressAsync(x.GoPointer(), AddressVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | 610 | xResolverLookupByAddressAsync(x.GoPointer(), AddressVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | ||
| 630 | } | 611 | } | ||
| 631 | 612 | ||||
| @@ -638,7 +619,6 @@ var xResolverLookupByAddressFinish func(uintptr, uintptr, **glib.Error) string | |||||
| 638 | // a value from #GResolverError. If the operation was cancelled, | 619 | // a value from #GResolverError. If the operation was cancelled, | ||
| 639 | // @error will be set to %G_IO_ERROR_CANCELLED. | 620 | // @error will be set to %G_IO_ERROR_CANCELLED. | ||
| 640 | func (x *Resolver) LookupByAddressFinish(ResultVar AsyncResult) (string, error) { | 621 | func (x *Resolver) LookupByAddressFinish(ResultVar AsyncResult) (string, error) { | ||
| 641 | - | core.LazyRegister(&xResolverLookupByAddressFinish, "GIO", "g_resolver_lookup_by_address_finish", false) | |||
| 642 | var cerr *glib.Error | 622 | var cerr *glib.Error | ||
| 643 | 623 | ||||
| 644 | cret := xResolverLookupByAddressFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | 624 | cret := xResolverLookupByAddressFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | ||
| @@ -674,7 +654,6 @@ var xResolverLookupByName func(uintptr, string, uintptr, **glib.Error) uintptr | |||||
| 674 | // address, it may be easier to create a #GNetworkAddress and use its | 654 | // address, it may be easier to create a #GNetworkAddress and use its | ||
| 675 | // #GSocketConnectable interface. | 655 | // #GSocketConnectable interface. | ||
| 676 | func (x *Resolver) LookupByName(HostnameVar string, CancellableVar *Cancellable) (*glib.List, error) { | 656 | func (x *Resolver) LookupByName(HostnameVar string, CancellableVar *Cancellable) (*glib.List, error) { | ||
| 677 | - | core.LazyRegister(&xResolverLookupByName, "GIO", "g_resolver_lookup_by_name", false) | |||
| 678 | var cerr *glib.Error | 657 | var cerr *glib.Error | ||
| 679 | 658 | ||||
| 680 | cret := xResolverLookupByName(x.GoPointer(), HostnameVar, CancellableVar.GoPointer(), &cerr) | 659 | cret := xResolverLookupByName(x.GoPointer(), HostnameVar, CancellableVar.GoPointer(), &cerr) | ||
| @@ -694,8 +673,6 @@ var xResolverLookupByNameAsync func(uintptr, string, uintptr, uintptr, uintptr) | |||||
| 694 | // must call g_resolver_lookup_by_name_finish() to get the result. | 673 | // must call g_resolver_lookup_by_name_finish() to get the result. | ||
| 695 | // See g_resolver_lookup_by_name() for more details. | 674 | // See g_resolver_lookup_by_name() for more details. | ||
| 696 | func (x *Resolver) LookupByNameAsync(HostnameVar string, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 675 | func (x *Resolver) LookupByNameAsync(HostnameVar string, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 697 | - | core.LazyRegister(&xResolverLookupByNameAsync, "GIO", "g_resolver_lookup_by_name_async", false) | |||
| 698 | - | ||||
| 699 | xResolverLookupByNameAsync(x.GoPointer(), HostnameVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | 676 | xResolverLookupByNameAsync(x.GoPointer(), HostnameVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | ||
| 700 | } | 677 | } | ||
| 701 | 678 | ||||
| @@ -708,7 +685,6 @@ var xResolverLookupByNameFinish func(uintptr, uintptr, **glib.Error) uintptr | |||||
| 708 | // a value from #GResolverError. If the operation was cancelled, | 685 | // a value from #GResolverError. If the operation was cancelled, | ||
| 709 | // @error will be set to %G_IO_ERROR_CANCELLED. | 686 | // @error will be set to %G_IO_ERROR_CANCELLED. | ||
| 710 | func (x *Resolver) LookupByNameFinish(ResultVar AsyncResult) (*glib.List, error) { | 687 | func (x *Resolver) LookupByNameFinish(ResultVar AsyncResult) (*glib.List, error) { | ||
| 711 | - | core.LazyRegister(&xResolverLookupByNameFinish, "GIO", "g_resolver_lookup_by_name_finish", false) | |||
| 712 | var cerr *glib.Error | 688 | var cerr *glib.Error | ||
| 713 | 689 | ||||
| 714 | cret := xResolverLookupByNameFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | 690 | cret := xResolverLookupByNameFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | ||
| @@ -727,7 +703,6 @@ var xResolverLookupByNameWithFlags func(uintptr, string, ResolverNameLookupFlags | |||||
| 727 | // the lookup behavior with @flags. For example this can be used to limit | 703 | // the lookup behavior with @flags. For example this can be used to limit | ||
| 728 | // results with %G_RESOLVER_NAME_LOOKUP_FLAGS_IPV4_ONLY. | 704 | // results with %G_RESOLVER_NAME_LOOKUP_FLAGS_IPV4_ONLY. | ||
| 729 | func (x *Resolver) LookupByNameWithFlags(HostnameVar string, FlagsVar ResolverNameLookupFlags, CancellableVar *Cancellable) (*glib.List, error) { | 705 | func (x *Resolver) LookupByNameWithFlags(HostnameVar string, FlagsVar ResolverNameLookupFlags, CancellableVar *Cancellable) (*glib.List, error) { | ||
| 730 | - | core.LazyRegister(&xResolverLookupByNameWithFlags, "GIO", "g_resolver_lookup_by_name_with_flags", false) | |||
| 731 | var cerr *glib.Error | 706 | var cerr *glib.Error | ||
| 732 | 707 | ||||
| 733 | cret := xResolverLookupByNameWithFlags(x.GoPointer(), HostnameVar, FlagsVar, CancellableVar.GoPointer(), &cerr) | 708 | cret := xResolverLookupByNameWithFlags(x.GoPointer(), HostnameVar, FlagsVar, CancellableVar.GoPointer(), &cerr) | ||
| @@ -747,8 +722,6 @@ var xResolverLookupByNameWithFlagsAsync func(uintptr, string, ResolverNameLookup | |||||
| 747 | // must call g_resolver_lookup_by_name_with_flags_finish() to get the result. | 722 | // must call g_resolver_lookup_by_name_with_flags_finish() to get the result. | ||
| 748 | // See g_resolver_lookup_by_name() for more details. | 723 | // See g_resolver_lookup_by_name() for more details. | ||
| 749 | func (x *Resolver) LookupByNameWithFlagsAsync(HostnameVar string, FlagsVar ResolverNameLookupFlags, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 724 | func (x *Resolver) LookupByNameWithFlagsAsync(HostnameVar string, FlagsVar ResolverNameLookupFlags, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 750 | - | core.LazyRegister(&xResolverLookupByNameWithFlagsAsync, "GIO", "g_resolver_lookup_by_name_with_flags_async", false) | |||
| 751 | - | ||||
| 752 | xResolverLookupByNameWithFlagsAsync(x.GoPointer(), HostnameVar, FlagsVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | 725 | xResolverLookupByNameWithFlagsAsync(x.GoPointer(), HostnameVar, FlagsVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | ||
| 753 | } | 726 | } | ||
| 754 | 727 | ||||
| @@ -761,7 +734,6 @@ var xResolverLookupByNameWithFlagsFinish func(uintptr, uintptr, **glib.Error) ui | |||||
| 761 | // a value from #GResolverError. If the operation was cancelled, | 734 | // a value from #GResolverError. If the operation was cancelled, | ||
| 762 | // @error will be set to %G_IO_ERROR_CANCELLED. | 735 | // @error will be set to %G_IO_ERROR_CANCELLED. | ||
| 763 | func (x *Resolver) LookupByNameWithFlagsFinish(ResultVar AsyncResult) (*glib.List, error) { | 736 | func (x *Resolver) LookupByNameWithFlagsFinish(ResultVar AsyncResult) (*glib.List, error) { | ||
| 764 | - | core.LazyRegister(&xResolverLookupByNameWithFlagsFinish, "GIO", "g_resolver_lookup_by_name_with_flags_finish", false) | |||
| 765 | var cerr *glib.Error | 737 | var cerr *glib.Error | ||
| 766 | 738 | ||||
| 767 | cret := xResolverLookupByNameWithFlagsFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | 739 | cret := xResolverLookupByNameWithFlagsFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | ||
| @@ -787,7 +759,6 @@ var xResolverLookupRecords func(uintptr, string, ResolverRecordType, uintptr, ** | |||||
| 787 | // operation, in which case @error (if non-%NULL) will be set to | 759 | // operation, in which case @error (if non-%NULL) will be set to | ||
| 788 | // %G_IO_ERROR_CANCELLED. | 760 | // %G_IO_ERROR_CANCELLED. | ||
| 789 | func (x *Resolver) LookupRecords(RrnameVar string, RecordTypeVar ResolverRecordType, CancellableVar *Cancellable) (*glib.List, error) { | 761 | func (x *Resolver) LookupRecords(RrnameVar string, RecordTypeVar ResolverRecordType, CancellableVar *Cancellable) (*glib.List, error) { | ||
| 790 | - | core.LazyRegister(&xResolverLookupRecords, "GIO", "g_resolver_lookup_records", false) | |||
| 791 | var cerr *glib.Error | 762 | var cerr *glib.Error | ||
| 792 | 763 | ||||
| 793 | cret := xResolverLookupRecords(x.GoPointer(), RrnameVar, RecordTypeVar, CancellableVar.GoPointer(), &cerr) | 764 | cret := xResolverLookupRecords(x.GoPointer(), RrnameVar, RecordTypeVar, CancellableVar.GoPointer(), &cerr) | ||
| @@ -807,8 +778,6 @@ var xResolverLookupRecordsAsync func(uintptr, string, ResolverRecordType, uintpt | |||||
| 807 | // g_resolver_lookup_records_finish() to get the final result. See | 778 | // g_resolver_lookup_records_finish() to get the final result. See | ||
| 808 | // g_resolver_lookup_records() for more details. | 779 | // g_resolver_lookup_records() for more details. | ||
| 809 | func (x *Resolver) LookupRecordsAsync(RrnameVar string, RecordTypeVar ResolverRecordType, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 780 | func (x *Resolver) LookupRecordsAsync(RrnameVar string, RecordTypeVar ResolverRecordType, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 810 | - | core.LazyRegister(&xResolverLookupRecordsAsync, "GIO", "g_resolver_lookup_records_async", false) | |||
| 811 | - | ||||
| 812 | xResolverLookupRecordsAsync(x.GoPointer(), RrnameVar, RecordTypeVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | 781 | xResolverLookupRecordsAsync(x.GoPointer(), RrnameVar, RecordTypeVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | ||
| 813 | } | 782 | } | ||
| 814 | 783 | ||||
| @@ -823,7 +792,6 @@ var xResolverLookupRecordsFinish func(uintptr, uintptr, **glib.Error) uintptr | |||||
| 823 | // a value from #GResolverError. If the operation was cancelled, | 792 | // a value from #GResolverError. If the operation was cancelled, | ||
| 824 | // @error will be set to %G_IO_ERROR_CANCELLED. | 793 | // @error will be set to %G_IO_ERROR_CANCELLED. | ||
| 825 | func (x *Resolver) LookupRecordsFinish(ResultVar AsyncResult) (*glib.List, error) { | 794 | func (x *Resolver) LookupRecordsFinish(ResultVar AsyncResult) (*glib.List, error) { | ||
| 826 | - | core.LazyRegister(&xResolverLookupRecordsFinish, "GIO", "g_resolver_lookup_records_finish", false) | |||
| 827 | var cerr *glib.Error | 795 | var cerr *glib.Error | ||
| 828 | 796 | ||||
| 829 | cret := xResolverLookupRecordsFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | 797 | cret := xResolverLookupRecordsFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | ||
| @@ -860,7 +828,6 @@ var xResolverLookupService func(uintptr, string, string, string, uintptr, **glib | |||||
| 860 | // to create a #GNetworkService and use its #GSocketConnectable | 828 | // to create a #GNetworkService and use its #GSocketConnectable | ||
| 861 | // interface. | 829 | // interface. | ||
| 862 | func (x *Resolver) LookupService(ServiceVar string, ProtocolVar string, DomainVar string, CancellableVar *Cancellable) (*glib.List, error) { | 830 | func (x *Resolver) LookupService(ServiceVar string, ProtocolVar string, DomainVar string, CancellableVar *Cancellable) (*glib.List, error) { | ||
| 863 | - | core.LazyRegister(&xResolverLookupService, "GIO", "g_resolver_lookup_service", false) | |||
| 864 | var cerr *glib.Error | 831 | var cerr *glib.Error | ||
| 865 | 832 | ||||
| 866 | cret := xResolverLookupService(x.GoPointer(), ServiceVar, ProtocolVar, DomainVar, CancellableVar.GoPointer(), &cerr) | 833 | cret := xResolverLookupService(x.GoPointer(), ServiceVar, ProtocolVar, DomainVar, CancellableVar.GoPointer(), &cerr) | ||
| @@ -881,8 +848,6 @@ var xResolverLookupServiceAsync func(uintptr, string, string, string, uintptr, u | |||||
| 881 | // get the final result. See g_resolver_lookup_service() for more | 848 | // get the final result. See g_resolver_lookup_service() for more | ||
| 882 | // details. | 849 | // details. | ||
| 883 | func (x *Resolver) LookupServiceAsync(ServiceVar string, ProtocolVar string, DomainVar string, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 850 | func (x *Resolver) LookupServiceAsync(ServiceVar string, ProtocolVar string, DomainVar string, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 884 | - | core.LazyRegister(&xResolverLookupServiceAsync, "GIO", "g_resolver_lookup_service_async", false) | |||
| 885 | - | ||||
| 886 | xResolverLookupServiceAsync(x.GoPointer(), ServiceVar, ProtocolVar, DomainVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | 851 | xResolverLookupServiceAsync(x.GoPointer(), ServiceVar, ProtocolVar, DomainVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | ||
| 887 | } | 852 | } | ||
| 888 | 853 | ||||
| @@ -895,7 +860,6 @@ var xResolverLookupServiceFinish func(uintptr, uintptr, **glib.Error) uintptr | |||||
| 895 | // a value from #GResolverError. If the operation was cancelled, | 860 | // a value from #GResolverError. If the operation was cancelled, | ||
| 896 | // @error will be set to %G_IO_ERROR_CANCELLED. | 861 | // @error will be set to %G_IO_ERROR_CANCELLED. | ||
| 897 | func (x *Resolver) LookupServiceFinish(ResultVar AsyncResult) (*glib.List, error) { | 862 | func (x *Resolver) LookupServiceFinish(ResultVar AsyncResult) (*glib.List, error) { | ||
| 898 | - | core.LazyRegister(&xResolverLookupServiceFinish, "GIO", "g_resolver_lookup_service_finish", false) | |||
| 899 | var cerr *glib.Error | 863 | var cerr *glib.Error | ||
| 900 | 864 | ||||
| 901 | cret := xResolverLookupServiceFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | 865 | cret := xResolverLookupServiceFinish(x.GoPointer(), ResultVar.GoPointer(), &cerr) | ||
| @@ -920,8 +884,6 @@ var xResolverSetDefault func(uintptr) | |||||
| 920 | // implements its own cache policies on top of that, and then set | 884 | // implements its own cache policies on top of that, and then set | ||
| 921 | // itself as the default resolver for all later code to use. | 885 | // itself as the default resolver for all later code to use. | ||
| 922 | func (x *Resolver) SetDefault() { | 886 | func (x *Resolver) SetDefault() { | ||
| 923 | - | core.LazyRegister(&xResolverSetDefault, "GIO", "g_resolver_set_default", false) | |||
| 924 | - | ||||
| 925 | xResolverSetDefault(x.GoPointer()) | 887 | xResolverSetDefault(x.GoPointer()) | ||
| 926 | } | 888 | } | ||
| 927 | 889 | ||||
| @@ -929,8 +891,6 @@ var xResolverSetTimeout func(uintptr, uint) | |||||
| 929 | 891 | ||||
| 930 | // Set the timeout applied to all resolver lookups. See #GResolver:timeout. | 892 | // Set the timeout applied to all resolver lookups. See #GResolver:timeout. | ||
| 931 | func (x *Resolver) SetTimeout(TimeoutMsVar uint) { | 893 | func (x *Resolver) SetTimeout(TimeoutMsVar uint) { | ||
| 932 | - | core.LazyRegister(&xResolverSetTimeout, "GIO", "g_resolver_set_timeout", false) | |||
| 933 | - | ||||
| 934 | xResolverSetTimeout(x.GoPointer(), TimeoutMsVar) | 894 | xResolverSetTimeout(x.GoPointer(), TimeoutMsVar) | ||
| 935 | } | 895 | } | ||
| 936 | 896 | ||||
| @@ -1011,8 +971,6 @@ var xResolverFreeAddresses func(*glib.List) | |||||
| 1011 | // (This is a convenience method; you can also simply free the results | 971 | // (This is a convenience method; you can also simply free the results | ||
| 1012 | // by hand.) | 972 | // by hand.) | ||
| 1013 | func ResolverFreeAddresses(AddressesVar *glib.List) { | 973 | func ResolverFreeAddresses(AddressesVar *glib.List) { | ||
| 1014 | - | core.LazyRegister(&xResolverFreeAddresses, "GIO", "g_resolver_free_addresses", false) | |||
| 1015 | - | ||||
| 1016 | xResolverFreeAddresses(AddressesVar) | 974 | xResolverFreeAddresses(AddressesVar) | ||
| 1017 | } | 975 | } | ||
| 1018 | 976 | ||||
| @@ -1023,8 +981,6 @@ var xResolverFreeTargets func(*glib.List) | |||||
| 1023 | // (This is a convenience method; you can also simply free the | 981 | // (This is a convenience method; you can also simply free the | ||
| 1024 | // results by hand.) | 982 | // results by hand.) | ||
| 1025 | func ResolverFreeTargets(TargetsVar *glib.List) { | 983 | func ResolverFreeTargets(TargetsVar *glib.List) { | ||
| 1026 | - | core.LazyRegister(&xResolverFreeTargets, "GIO", "g_resolver_free_targets", false) | |||
| 1027 | - | ||||
| 1028 | xResolverFreeTargets(TargetsVar) | 984 | xResolverFreeTargets(TargetsVar) | ||
| 1029 | } | 985 | } | ||
| 1030 | 986 | ||||
| @@ -1034,7 +990,6 @@ var xResolverGetDefault func() uintptr | |||||
| 1034 | // with it. #GResolver may use its reference count as a hint about how | 990 | // with it. #GResolver may use its reference count as a hint about how | ||
| 1035 | // many threads it should allocate for concurrent DNS resolutions. | 991 | // many threads it should allocate for concurrent DNS resolutions. | ||
| 1036 | func ResolverGetDefault() *Resolver { | 992 | func ResolverGetDefault() *Resolver { | ||
| 1037 | - | core.LazyRegister(&xResolverGetDefault, "GIO", "g_resolver_get_default", false) | |||
| 1038 | var cls *Resolver | 993 | var cls *Resolver | ||
| 1039 | 994 | ||||
| 1040 | cret := xResolverGetDefault() | 995 | cret := xResolverGetDefault() | ||
| @@ -1050,4 +1005,41 @@ func ResolverGetDefault() *Resolver { | |||||
| 1050 | func init() { | 1005 | func init() { | ||
| 1051 | core.SetPackageName("GIO", "gio-2.0") | 1006 | core.SetPackageName("GIO", "gio-2.0") | ||
| 1052 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | 1007 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | ||
| 1008 | + | var libs []uintptr | |||
| 1009 | + | for _, libPath := range core.GetPaths("GIO") { | |||
| 1010 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 1011 | + | if err != nil { | |||
| 1012 | + | panic(err) | |||
| 1013 | + | } | |||
| 1014 | + | libs = append(libs, lib) | |||
| 1015 | + | } | |||
| 1016 | + | ||||
| 1017 | + | core.PuregoSafeRegister(&xResolverNameLookupFlagsGLibType, libs, "g_resolver_name_lookup_flags_get_type") | |||
| 1018 | + | ||||
| 1019 | + | core.PuregoSafeRegister(&xResolverErrorQuark, libs, "g_resolver_error_quark") | |||
| 1020 | + | ||||
| 1021 | + | core.PuregoSafeRegister(&xResolverGLibType, libs, "g_resolver_get_type") | |||
| 1022 | + | ||||
| 1023 | + | core.PuregoSafeRegister(&xResolverGetTimeout, libs, "g_resolver_get_timeout") | |||
| 1024 | + | core.PuregoSafeRegister(&xResolverLookupByAddress, libs, "g_resolver_lookup_by_address") | |||
| 1025 | + | core.PuregoSafeRegister(&xResolverLookupByAddressAsync, libs, "g_resolver_lookup_by_address_async") | |||
| 1026 | + | core.PuregoSafeRegister(&xResolverLookupByAddressFinish, libs, "g_resolver_lookup_by_address_finish") | |||
| 1027 | + | core.PuregoSafeRegister(&xResolverLookupByName, libs, "g_resolver_lookup_by_name") | |||
| 1028 | + | core.PuregoSafeRegister(&xResolverLookupByNameAsync, libs, "g_resolver_lookup_by_name_async") | |||
| 1029 | + | core.PuregoSafeRegister(&xResolverLookupByNameFinish, libs, "g_resolver_lookup_by_name_finish") | |||
| 1030 | + | core.PuregoSafeRegister(&xResolverLookupByNameWithFlags, libs, "g_resolver_lookup_by_name_with_flags") | |||
| 1031 | + | core.PuregoSafeRegister(&xResolverLookupByNameWithFlagsAsync, libs, "g_resolver_lookup_by_name_with_flags_async") | |||
| 1032 | + | core.PuregoSafeRegister(&xResolverLookupByNameWithFlagsFinish, libs, "g_resolver_lookup_by_name_with_flags_finish") | |||
| 1033 | + | core.PuregoSafeRegister(&xResolverLookupRecords, libs, "g_resolver_lookup_records") | |||
| 1034 | + | core.PuregoSafeRegister(&xResolverLookupRecordsAsync, libs, "g_resolver_lookup_records_async") | |||
| 1035 | + | core.PuregoSafeRegister(&xResolverLookupRecordsFinish, libs, "g_resolver_lookup_records_finish") | |||
| 1036 | + | core.PuregoSafeRegister(&xResolverLookupService, libs, "g_resolver_lookup_service") | |||
| 1037 | + | core.PuregoSafeRegister(&xResolverLookupServiceAsync, libs, "g_resolver_lookup_service_async") | |||
| 1038 | + | core.PuregoSafeRegister(&xResolverLookupServiceFinish, libs, "g_resolver_lookup_service_finish") | |||
| 1039 | + | core.PuregoSafeRegister(&xResolverSetDefault, libs, "g_resolver_set_default") | |||
| 1040 | + | core.PuregoSafeRegister(&xResolverSetTimeout, libs, "g_resolver_set_timeout") | |||
| 1041 | + | ||||
| 1042 | + | core.PuregoSafeRegister(&xResolverFreeAddresses, libs, "g_resolver_free_addresses") | |||
| 1043 | + | core.PuregoSafeRegister(&xResolverFreeTargets, libs, "g_resolver_free_targets") | |||
| 1044 | + | core.PuregoSafeRegister(&xResolverGetDefault, libs, "g_resolver_get_default") | |||
| 1053 | } | 1045 | } | ||