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
| @@ -4,6 +4,7 @@ package gio | |||
| 4 | 4 | import ( | |
| 5 | 5 | "unsafe" | |
| 6 | 6 | ||
| 7 | + | "github.com/bnema/purego" | |
| 7 | 8 | "github.com/bnema/puregotk/pkg/core" | |
| 8 | 9 | "github.com/bnema/puregotk/v4/glib" | |
| 9 | 10 | "github.com/bnema/puregotk/v4/gobject" | |
| @@ -49,7 +50,6 @@ type DBusMethodInvocation struct { | |||
| 49 | 50 | var xDBusMethodInvocationGLibType func() types.GType | |
| 50 | 51 | ||
| 51 | 52 | func DBusMethodInvocationGLibType() types.GType { | |
| 52 | - | core.LazyRegister(&xDBusMethodInvocationGLibType, "GIO", "g_dbus_method_invocation_get_type", false) | |
| 53 | 53 | return xDBusMethodInvocationGLibType() | |
| 54 | 54 | } | |
| 55 | 55 | ||
| @@ -63,7 +63,6 @@ var xDBusMethodInvocationGetConnection func(uintptr) uintptr | |||
| 63 | 63 | ||
| 64 | 64 | // Gets the #GDBusConnection the method was invoked on. | |
| 65 | 65 | func (x *DBusMethodInvocation) GetConnection() *DBusConnection { | |
| 66 | - | core.LazyRegister(&xDBusMethodInvocationGetConnection, "GIO", "g_dbus_method_invocation_get_connection", false) | |
| 67 | 66 | var cls *DBusConnection | |
| 68 | 67 | ||
| 69 | 68 | cret := xDBusMethodInvocationGetConnection(x.GoPointer()) | |
| @@ -91,8 +90,6 @@ var xDBusMethodInvocationGetInterfaceName func(uintptr) string | |||
| 91 | 90 | // "org.freedesktop.DBus.Properties" will be returned. See | |
| 92 | 91 | // #GDBusInterfaceVTable for more information. | |
| 93 | 92 | func (x *DBusMethodInvocation) GetInterfaceName() string { | |
| 94 | - | core.LazyRegister(&xDBusMethodInvocationGetInterfaceName, "GIO", "g_dbus_method_invocation_get_interface_name", false) | |
| 95 | - | ||
| 96 | 93 | cret := xDBusMethodInvocationGetInterfaceName(x.GoPointer()) | |
| 97 | 94 | return cret | |
| 98 | 95 | } | |
| @@ -109,7 +106,6 @@ var xDBusMethodInvocationGetMessage func(uintptr) uintptr | |||
| 109 | 106 | // for an example of how to use this low-level API to send and receive | |
| 110 | 107 | // UNIX file descriptors. | |
| 111 | 108 | func (x *DBusMethodInvocation) GetMessage() *DBusMessage { | |
| 112 | - | core.LazyRegister(&xDBusMethodInvocationGetMessage, "GIO", "g_dbus_method_invocation_get_message", false) | |
| 113 | 109 | var cls *DBusMessage | |
| 114 | 110 | ||
| 115 | 111 | cret := xDBusMethodInvocationGetMessage(x.GoPointer()) | |
| @@ -132,8 +128,6 @@ var xDBusMethodInvocationGetMethodInfo func(uintptr) uintptr | |||
| 132 | 128 | // returned. See g_dbus_method_invocation_get_property_info() and | |
| 133 | 129 | // #GDBusInterfaceVTable for more information. | |
| 134 | 130 | func (x *DBusMethodInvocation) GetMethodInfo() *DBusMethodInfo { | |
| 135 | - | core.LazyRegister(&xDBusMethodInvocationGetMethodInfo, "GIO", "g_dbus_method_invocation_get_method_info", false) | |
| 136 | - | ||
| 137 | 131 | cret := xDBusMethodInvocationGetMethodInfo(x.GoPointer()) | |
| 138 | 132 | if cret == 0 { | |
| 139 | 133 | return nil | |
| @@ -145,8 +139,6 @@ var xDBusMethodInvocationGetMethodName func(uintptr) string | |||
| 145 | 139 | ||
| 146 | 140 | // Gets the name of the method that was invoked. | |
| 147 | 141 | func (x *DBusMethodInvocation) GetMethodName() string { | |
| 148 | - | core.LazyRegister(&xDBusMethodInvocationGetMethodName, "GIO", "g_dbus_method_invocation_get_method_name", false) | |
| 149 | - | ||
| 150 | 142 | cret := xDBusMethodInvocationGetMethodName(x.GoPointer()) | |
| 151 | 143 | return cret | |
| 152 | 144 | } | |
| @@ -155,8 +147,6 @@ var xDBusMethodInvocationGetObjectPath func(uintptr) string | |||
| 155 | 147 | ||
| 156 | 148 | // Gets the object path the method was invoked on. | |
| 157 | 149 | func (x *DBusMethodInvocation) GetObjectPath() string { | |
| 158 | - | core.LazyRegister(&xDBusMethodInvocationGetObjectPath, "GIO", "g_dbus_method_invocation_get_object_path", false) | |
| 159 | - | ||
| 160 | 150 | cret := xDBusMethodInvocationGetObjectPath(x.GoPointer()) | |
| 161 | 151 | return cret | |
| 162 | 152 | } | |
| @@ -166,8 +156,6 @@ var xDBusMethodInvocationGetParameters func(uintptr) uintptr | |||
| 166 | 156 | // Gets the parameters of the method invocation. If there are no input | |
| 167 | 157 | // parameters then this will return a GVariant with 0 children rather than NULL. | |
| 168 | 158 | func (x *DBusMethodInvocation) GetParameters() *glib.Variant { | |
| 169 | - | core.LazyRegister(&xDBusMethodInvocationGetParameters, "GIO", "g_dbus_method_invocation_get_parameters", false) | |
| 170 | - | ||
| 171 | 159 | cret := xDBusMethodInvocationGetParameters(x.GoPointer()) | |
| 172 | 160 | if cret == 0 { | |
| 173 | 161 | return nil | |
| @@ -189,8 +177,6 @@ var xDBusMethodInvocationGetPropertyInfo func(uintptr) uintptr | |||
| 189 | 177 | // | |
| 190 | 178 | // If the call was GetAll, %NULL will be returned. | |
| 191 | 179 | func (x *DBusMethodInvocation) GetPropertyInfo() *DBusPropertyInfo { | |
| 192 | - | core.LazyRegister(&xDBusMethodInvocationGetPropertyInfo, "GIO", "g_dbus_method_invocation_get_property_info", false) | |
| 193 | - | ||
| 194 | 180 | cret := xDBusMethodInvocationGetPropertyInfo(x.GoPointer()) | |
| 195 | 181 | if cret == 0 { | |
| 196 | 182 | return nil | |
| @@ -205,8 +191,6 @@ var xDBusMethodInvocationGetSender func(uintptr) string | |||
| 205 | 191 | // This can return %NULL if not specified by the caller, e.g. on peer-to-peer | |
| 206 | 192 | // connections. | |
| 207 | 193 | func (x *DBusMethodInvocation) GetSender() string { | |
| 208 | - | core.LazyRegister(&xDBusMethodInvocationGetSender, "GIO", "g_dbus_method_invocation_get_sender", false) | |
| 209 | - | ||
| 210 | 194 | cret := xDBusMethodInvocationGetSender(x.GoPointer()) | |
| 211 | 195 | return cret | |
| 212 | 196 | } | |
| @@ -215,8 +199,6 @@ var xDBusMethodInvocationGetUserData func(uintptr) uintptr | |||
| 215 | 199 | ||
| 216 | 200 | // Gets the @user_data #gpointer passed to g_dbus_connection_register_object(). | |
| 217 | 201 | func (x *DBusMethodInvocation) GetUserData() uintptr { | |
| 218 | - | core.LazyRegister(&xDBusMethodInvocationGetUserData, "GIO", "g_dbus_method_invocation_get_user_data", false) | |
| 219 | - | ||
| 220 | 202 | cret := xDBusMethodInvocationGetUserData(x.GoPointer()) | |
| 221 | 203 | return cret | |
| 222 | 204 | } | |
| @@ -229,8 +211,6 @@ var xDBusMethodInvocationReturnDbusError func(uintptr, string, string) | |||
| 229 | 211 | // #GDBusInterfaceVTable for more information about the ownership of | |
| 230 | 212 | // @invocation. | |
| 231 | 213 | func (x *DBusMethodInvocation) ReturnDbusError(ErrorNameVar string, ErrorMessageVar string) { | |
| 232 | - | core.LazyRegister(&xDBusMethodInvocationReturnDbusError, "GIO", "g_dbus_method_invocation_return_dbus_error", false) | |
| 233 | - | ||
| 234 | 214 | xDBusMethodInvocationReturnDbusError(x.GoPointer(), ErrorNameVar, ErrorMessageVar) | |
| 235 | 215 | } | |
| 236 | 216 | ||
| @@ -257,8 +237,6 @@ var xDBusMethodInvocationReturnError func(uintptr, glib.Quark, int, string, ...i | |||
| 257 | 237 | // then this call will free @invocation but otherwise do nothing (as per | |
| 258 | 238 | // the recommendations of the D-Bus specification). | |
| 259 | 239 | func (x *DBusMethodInvocation) ReturnError(DomainVar glib.Quark, CodeVar int, FormatVar string, varArgs ...interface{}) { | |
| 260 | - | core.LazyRegister(&xDBusMethodInvocationReturnError, "GIO", "g_dbus_method_invocation_return_error", false) | |
| 261 | - | ||
| 262 | 240 | xDBusMethodInvocationReturnError(x.GoPointer(), DomainVar, CodeVar, FormatVar, varArgs...) | |
| 263 | 241 | } | |
| 264 | 242 | ||
| @@ -270,8 +248,6 @@ var xDBusMethodInvocationReturnErrorLiteral func(uintptr, glib.Quark, int, strin | |||
| 270 | 248 | // #GDBusInterfaceVTable for more information about the ownership of | |
| 271 | 249 | // @invocation. | |
| 272 | 250 | func (x *DBusMethodInvocation) ReturnErrorLiteral(DomainVar glib.Quark, CodeVar int, MessageVar string) { | |
| 273 | - | core.LazyRegister(&xDBusMethodInvocationReturnErrorLiteral, "GIO", "g_dbus_method_invocation_return_error_literal", false) | |
| 274 | - | ||
| 275 | 251 | xDBusMethodInvocationReturnErrorLiteral(x.GoPointer(), DomainVar, CodeVar, MessageVar) | |
| 276 | 252 | } | |
| 277 | 253 | ||
| @@ -284,8 +260,6 @@ var xDBusMethodInvocationReturnErrorValist func(uintptr, glib.Quark, int, string | |||
| 284 | 260 | // #GDBusInterfaceVTable for more information about the ownership of | |
| 285 | 261 | // @invocation. | |
| 286 | 262 | func (x *DBusMethodInvocation) ReturnErrorValist(DomainVar glib.Quark, CodeVar int, FormatVar string, VarArgsVar []interface{}) { | |
| 287 | - | core.LazyRegister(&xDBusMethodInvocationReturnErrorValist, "GIO", "g_dbus_method_invocation_return_error_valist", false) | |
| 288 | - | ||
| 289 | 263 | xDBusMethodInvocationReturnErrorValist(x.GoPointer(), DomainVar, CodeVar, FormatVar, VarArgsVar) | |
| 290 | 264 | } | |
| 291 | 265 | ||
| @@ -298,8 +272,6 @@ var xDBusMethodInvocationReturnGerror func(uintptr, *glib.Error) | |||
| 298 | 272 | // #GDBusInterfaceVTable for more information about the ownership of | |
| 299 | 273 | // @invocation. | |
| 300 | 274 | func (x *DBusMethodInvocation) ReturnGerror(ErrorVar *glib.Error) { | |
| 301 | - | core.LazyRegister(&xDBusMethodInvocationReturnGerror, "GIO", "g_dbus_method_invocation_return_gerror", false) | |
| 302 | - | ||
| 303 | 275 | xDBusMethodInvocationReturnGerror(x.GoPointer(), ErrorVar) | |
| 304 | 276 | } | |
| 305 | 277 | ||
| @@ -341,8 +313,6 @@ var xDBusMethodInvocationReturnValue func(uintptr, *glib.Variant) | |||
| 341 | 313 | // otherwise do nothing (as per the recommendations of the D-Bus | |
| 342 | 314 | // specification). | |
| 343 | 315 | func (x *DBusMethodInvocation) ReturnValue(ParametersVar *glib.Variant) { | |
| 344 | - | core.LazyRegister(&xDBusMethodInvocationReturnValue, "GIO", "g_dbus_method_invocation_return_value", false) | |
| 345 | - | ||
| 346 | 316 | xDBusMethodInvocationReturnValue(x.GoPointer(), ParametersVar) | |
| 347 | 317 | } | |
| 348 | 318 | ||
| @@ -356,8 +326,6 @@ var xDBusMethodInvocationReturnValueWithUnixFdList func(uintptr, *glib.Variant, | |||
| 356 | 326 | // #GDBusInterfaceVTable for more information about the ownership of | |
| 357 | 327 | // @invocation. | |
| 358 | 328 | func (x *DBusMethodInvocation) ReturnValueWithUnixFdList(ParametersVar *glib.Variant, FdListVar *UnixFDList) { | |
| 359 | - | core.LazyRegister(&xDBusMethodInvocationReturnValueWithUnixFdList, "GIO", "g_dbus_method_invocation_return_value_with_unix_fd_list", false) | |
| 360 | - | ||
| 361 | 329 | xDBusMethodInvocationReturnValueWithUnixFdList(x.GoPointer(), ParametersVar, FdListVar.GoPointer()) | |
| 362 | 330 | } | |
| 363 | 331 | ||
| @@ -370,8 +338,6 @@ var xDBusMethodInvocationTakeError func(uintptr, *glib.Error) | |||
| 370 | 338 | // #GDBusInterfaceVTable for more information about the ownership of | |
| 371 | 339 | // @invocation. | |
| 372 | 340 | func (x *DBusMethodInvocation) TakeError(ErrorVar *glib.Error) { | |
| 373 | - | core.LazyRegister(&xDBusMethodInvocationTakeError, "GIO", "g_dbus_method_invocation_take_error", false) | |
| 374 | - | ||
| 375 | 341 | xDBusMethodInvocationTakeError(x.GoPointer(), ErrorVar) | |
| 376 | 342 | } | |
| 377 | 343 | ||
| @@ -389,4 +355,33 @@ func (c *DBusMethodInvocation) SetGoPointer(ptr uintptr) { | |||
| 389 | 355 | func init() { | |
| 390 | 356 | core.SetPackageName("GIO", "gio-2.0") | |
| 391 | 357 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | |
| 358 | + | var libs []uintptr | |
| 359 | + | for _, libPath := range core.GetPaths("GIO") { | |
| 360 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 361 | + | if err != nil { | |
| 362 | + | panic(err) | |
| 363 | + | } | |
| 364 | + | libs = append(libs, lib) | |
| 365 | + | } | |
| 366 | + | ||
| 367 | + | core.PuregoSafeRegister(&xDBusMethodInvocationGLibType, libs, "g_dbus_method_invocation_get_type") | |
| 368 | + | ||
| 369 | + | core.PuregoSafeRegister(&xDBusMethodInvocationGetConnection, libs, "g_dbus_method_invocation_get_connection") | |
| 370 | + | core.PuregoSafeRegister(&xDBusMethodInvocationGetInterfaceName, libs, "g_dbus_method_invocation_get_interface_name") | |
| 371 | + | core.PuregoSafeRegister(&xDBusMethodInvocationGetMessage, libs, "g_dbus_method_invocation_get_message") | |
| 372 | + | core.PuregoSafeRegister(&xDBusMethodInvocationGetMethodInfo, libs, "g_dbus_method_invocation_get_method_info") | |
| 373 | + | core.PuregoSafeRegister(&xDBusMethodInvocationGetMethodName, libs, "g_dbus_method_invocation_get_method_name") | |
| 374 | + | core.PuregoSafeRegister(&xDBusMethodInvocationGetObjectPath, libs, "g_dbus_method_invocation_get_object_path") | |
| 375 | + | core.PuregoSafeRegister(&xDBusMethodInvocationGetParameters, libs, "g_dbus_method_invocation_get_parameters") | |
| 376 | + | core.PuregoSafeRegister(&xDBusMethodInvocationGetPropertyInfo, libs, "g_dbus_method_invocation_get_property_info") | |
| 377 | + | core.PuregoSafeRegister(&xDBusMethodInvocationGetSender, libs, "g_dbus_method_invocation_get_sender") | |
| 378 | + | core.PuregoSafeRegister(&xDBusMethodInvocationGetUserData, libs, "g_dbus_method_invocation_get_user_data") | |
| 379 | + | core.PuregoSafeRegister(&xDBusMethodInvocationReturnDbusError, libs, "g_dbus_method_invocation_return_dbus_error") | |
| 380 | + | core.PuregoSafeRegister(&xDBusMethodInvocationReturnError, libs, "g_dbus_method_invocation_return_error") | |
| 381 | + | core.PuregoSafeRegister(&xDBusMethodInvocationReturnErrorLiteral, libs, "g_dbus_method_invocation_return_error_literal") | |
| 382 | + | core.PuregoSafeRegister(&xDBusMethodInvocationReturnErrorValist, libs, "g_dbus_method_invocation_return_error_valist") | |
| 383 | + | core.PuregoSafeRegister(&xDBusMethodInvocationReturnGerror, libs, "g_dbus_method_invocation_return_gerror") | |
| 384 | + | core.PuregoSafeRegister(&xDBusMethodInvocationReturnValue, libs, "g_dbus_method_invocation_return_value") | |
| 385 | + | core.PuregoSafeRegister(&xDBusMethodInvocationReturnValueWithUnixFdList, libs, "g_dbus_method_invocation_return_value_with_unix_fd_list") | |
| 386 | + | core.PuregoSafeRegister(&xDBusMethodInvocationTakeError, libs, "g_dbus_method_invocation_take_error") | |
| 392 | 387 | } | |
| @@ -4,6 +4,7 @@ package gio | |||||
| 4 | import ( | 4 | import ( | ||
| 5 | "unsafe" | 5 | "unsafe" | ||
| 6 | 6 | ||||
| 7 | + | "github.com/bnema/purego" | |||
| 7 | "github.com/bnema/puregotk/pkg/core" | 8 | "github.com/bnema/puregotk/pkg/core" | ||
| 8 | "github.com/bnema/puregotk/v4/glib" | 9 | "github.com/bnema/puregotk/v4/glib" | ||
| 9 | "github.com/bnema/puregotk/v4/gobject" | 10 | "github.com/bnema/puregotk/v4/gobject" | ||
| @@ -49,7 +50,6 @@ type DBusMethodInvocation struct { | |||||
| 49 | var xDBusMethodInvocationGLibType func() types.GType | 50 | var xDBusMethodInvocationGLibType func() types.GType | ||
| 50 | 51 | ||||
| 51 | func DBusMethodInvocationGLibType() types.GType { | 52 | func DBusMethodInvocationGLibType() types.GType { | ||
| 52 | - | core.LazyRegister(&xDBusMethodInvocationGLibType, "GIO", "g_dbus_method_invocation_get_type", false) | |||
| 53 | return xDBusMethodInvocationGLibType() | 53 | return xDBusMethodInvocationGLibType() | ||
| 54 | } | 54 | } | ||
| 55 | 55 | ||||
| @@ -63,7 +63,6 @@ var xDBusMethodInvocationGetConnection func(uintptr) uintptr | |||||
| 63 | 63 | ||||
| 64 | // Gets the #GDBusConnection the method was invoked on. | 64 | // Gets the #GDBusConnection the method was invoked on. | ||
| 65 | func (x *DBusMethodInvocation) GetConnection() *DBusConnection { | 65 | func (x *DBusMethodInvocation) GetConnection() *DBusConnection { | ||
| 66 | - | core.LazyRegister(&xDBusMethodInvocationGetConnection, "GIO", "g_dbus_method_invocation_get_connection", false) | |||
| 67 | var cls *DBusConnection | 66 | var cls *DBusConnection | ||
| 68 | 67 | ||||
| 69 | cret := xDBusMethodInvocationGetConnection(x.GoPointer()) | 68 | cret := xDBusMethodInvocationGetConnection(x.GoPointer()) | ||
| @@ -91,8 +90,6 @@ var xDBusMethodInvocationGetInterfaceName func(uintptr) string | |||||
| 91 | // "org.freedesktop.DBus.Properties" will be returned. See | 90 | // "org.freedesktop.DBus.Properties" will be returned. See | ||
| 92 | // #GDBusInterfaceVTable for more information. | 91 | // #GDBusInterfaceVTable for more information. | ||
| 93 | func (x *DBusMethodInvocation) GetInterfaceName() string { | 92 | func (x *DBusMethodInvocation) GetInterfaceName() string { | ||
| 94 | - | core.LazyRegister(&xDBusMethodInvocationGetInterfaceName, "GIO", "g_dbus_method_invocation_get_interface_name", false) | |||
| 95 | - | ||||
| 96 | cret := xDBusMethodInvocationGetInterfaceName(x.GoPointer()) | 93 | cret := xDBusMethodInvocationGetInterfaceName(x.GoPointer()) | ||
| 97 | return cret | 94 | return cret | ||
| 98 | } | 95 | } | ||
| @@ -109,7 +106,6 @@ var xDBusMethodInvocationGetMessage func(uintptr) uintptr | |||||
| 109 | // for an example of how to use this low-level API to send and receive | 106 | // for an example of how to use this low-level API to send and receive | ||
| 110 | // UNIX file descriptors. | 107 | // UNIX file descriptors. | ||
| 111 | func (x *DBusMethodInvocation) GetMessage() *DBusMessage { | 108 | func (x *DBusMethodInvocation) GetMessage() *DBusMessage { | ||
| 112 | - | core.LazyRegister(&xDBusMethodInvocationGetMessage, "GIO", "g_dbus_method_invocation_get_message", false) | |||
| 113 | var cls *DBusMessage | 109 | var cls *DBusMessage | ||
| 114 | 110 | ||||
| 115 | cret := xDBusMethodInvocationGetMessage(x.GoPointer()) | 111 | cret := xDBusMethodInvocationGetMessage(x.GoPointer()) | ||
| @@ -132,8 +128,6 @@ var xDBusMethodInvocationGetMethodInfo func(uintptr) uintptr | |||||
| 132 | // returned. See g_dbus_method_invocation_get_property_info() and | 128 | // returned. See g_dbus_method_invocation_get_property_info() and | ||
| 133 | // #GDBusInterfaceVTable for more information. | 129 | // #GDBusInterfaceVTable for more information. | ||
| 134 | func (x *DBusMethodInvocation) GetMethodInfo() *DBusMethodInfo { | 130 | func (x *DBusMethodInvocation) GetMethodInfo() *DBusMethodInfo { | ||
| 135 | - | core.LazyRegister(&xDBusMethodInvocationGetMethodInfo, "GIO", "g_dbus_method_invocation_get_method_info", false) | |||
| 136 | - | ||||
| 137 | cret := xDBusMethodInvocationGetMethodInfo(x.GoPointer()) | 131 | cret := xDBusMethodInvocationGetMethodInfo(x.GoPointer()) | ||
| 138 | if cret == 0 { | 132 | if cret == 0 { | ||
| 139 | return nil | 133 | return nil | ||
| @@ -145,8 +139,6 @@ var xDBusMethodInvocationGetMethodName func(uintptr) string | |||||
| 145 | 139 | ||||
| 146 | // Gets the name of the method that was invoked. | 140 | // Gets the name of the method that was invoked. | ||
| 147 | func (x *DBusMethodInvocation) GetMethodName() string { | 141 | func (x *DBusMethodInvocation) GetMethodName() string { | ||
| 148 | - | core.LazyRegister(&xDBusMethodInvocationGetMethodName, "GIO", "g_dbus_method_invocation_get_method_name", false) | |||
| 149 | - | ||||
| 150 | cret := xDBusMethodInvocationGetMethodName(x.GoPointer()) | 142 | cret := xDBusMethodInvocationGetMethodName(x.GoPointer()) | ||
| 151 | return cret | 143 | return cret | ||
| 152 | } | 144 | } | ||
| @@ -155,8 +147,6 @@ var xDBusMethodInvocationGetObjectPath func(uintptr) string | |||||
| 155 | 147 | ||||
| 156 | // Gets the object path the method was invoked on. | 148 | // Gets the object path the method was invoked on. | ||
| 157 | func (x *DBusMethodInvocation) GetObjectPath() string { | 149 | func (x *DBusMethodInvocation) GetObjectPath() string { | ||
| 158 | - | core.LazyRegister(&xDBusMethodInvocationGetObjectPath, "GIO", "g_dbus_method_invocation_get_object_path", false) | |||
| 159 | - | ||||
| 160 | cret := xDBusMethodInvocationGetObjectPath(x.GoPointer()) | 150 | cret := xDBusMethodInvocationGetObjectPath(x.GoPointer()) | ||
| 161 | return cret | 151 | return cret | ||
| 162 | } | 152 | } | ||
| @@ -166,8 +156,6 @@ var xDBusMethodInvocationGetParameters func(uintptr) uintptr | |||||
| 166 | // Gets the parameters of the method invocation. If there are no input | 156 | // Gets the parameters of the method invocation. If there are no input | ||
| 167 | // parameters then this will return a GVariant with 0 children rather than NULL. | 157 | // parameters then this will return a GVariant with 0 children rather than NULL. | ||
| 168 | func (x *DBusMethodInvocation) GetParameters() *glib.Variant { | 158 | func (x *DBusMethodInvocation) GetParameters() *glib.Variant { | ||
| 169 | - | core.LazyRegister(&xDBusMethodInvocationGetParameters, "GIO", "g_dbus_method_invocation_get_parameters", false) | |||
| 170 | - | ||||
| 171 | cret := xDBusMethodInvocationGetParameters(x.GoPointer()) | 159 | cret := xDBusMethodInvocationGetParameters(x.GoPointer()) | ||
| 172 | if cret == 0 { | 160 | if cret == 0 { | ||
| 173 | return nil | 161 | return nil | ||
| @@ -189,8 +177,6 @@ var xDBusMethodInvocationGetPropertyInfo func(uintptr) uintptr | |||||
| 189 | // | 177 | // | ||
| 190 | // If the call was GetAll, %NULL will be returned. | 178 | // If the call was GetAll, %NULL will be returned. | ||
| 191 | func (x *DBusMethodInvocation) GetPropertyInfo() *DBusPropertyInfo { | 179 | func (x *DBusMethodInvocation) GetPropertyInfo() *DBusPropertyInfo { | ||
| 192 | - | core.LazyRegister(&xDBusMethodInvocationGetPropertyInfo, "GIO", "g_dbus_method_invocation_get_property_info", false) | |||
| 193 | - | ||||
| 194 | cret := xDBusMethodInvocationGetPropertyInfo(x.GoPointer()) | 180 | cret := xDBusMethodInvocationGetPropertyInfo(x.GoPointer()) | ||
| 195 | if cret == 0 { | 181 | if cret == 0 { | ||
| 196 | return nil | 182 | return nil | ||
| @@ -205,8 +191,6 @@ var xDBusMethodInvocationGetSender func(uintptr) string | |||||
| 205 | // This can return %NULL if not specified by the caller, e.g. on peer-to-peer | 191 | // This can return %NULL if not specified by the caller, e.g. on peer-to-peer | ||
| 206 | // connections. | 192 | // connections. | ||
| 207 | func (x *DBusMethodInvocation) GetSender() string { | 193 | func (x *DBusMethodInvocation) GetSender() string { | ||
| 208 | - | core.LazyRegister(&xDBusMethodInvocationGetSender, "GIO", "g_dbus_method_invocation_get_sender", false) | |||
| 209 | - | ||||
| 210 | cret := xDBusMethodInvocationGetSender(x.GoPointer()) | 194 | cret := xDBusMethodInvocationGetSender(x.GoPointer()) | ||
| 211 | return cret | 195 | return cret | ||
| 212 | } | 196 | } | ||
| @@ -215,8 +199,6 @@ var xDBusMethodInvocationGetUserData func(uintptr) uintptr | |||||
| 215 | 199 | ||||
| 216 | // Gets the @user_data #gpointer passed to g_dbus_connection_register_object(). | 200 | // Gets the @user_data #gpointer passed to g_dbus_connection_register_object(). | ||
| 217 | func (x *DBusMethodInvocation) GetUserData() uintptr { | 201 | func (x *DBusMethodInvocation) GetUserData() uintptr { | ||
| 218 | - | core.LazyRegister(&xDBusMethodInvocationGetUserData, "GIO", "g_dbus_method_invocation_get_user_data", false) | |||
| 219 | - | ||||
| 220 | cret := xDBusMethodInvocationGetUserData(x.GoPointer()) | 202 | cret := xDBusMethodInvocationGetUserData(x.GoPointer()) | ||
| 221 | return cret | 203 | return cret | ||
| 222 | } | 204 | } | ||
| @@ -229,8 +211,6 @@ var xDBusMethodInvocationReturnDbusError func(uintptr, string, string) | |||||
| 229 | // #GDBusInterfaceVTable for more information about the ownership of | 211 | // #GDBusInterfaceVTable for more information about the ownership of | ||
| 230 | // @invocation. | 212 | // @invocation. | ||
| 231 | func (x *DBusMethodInvocation) ReturnDbusError(ErrorNameVar string, ErrorMessageVar string) { | 213 | func (x *DBusMethodInvocation) ReturnDbusError(ErrorNameVar string, ErrorMessageVar string) { | ||
| 232 | - | core.LazyRegister(&xDBusMethodInvocationReturnDbusError, "GIO", "g_dbus_method_invocation_return_dbus_error", false) | |||
| 233 | - | ||||
| 234 | xDBusMethodInvocationReturnDbusError(x.GoPointer(), ErrorNameVar, ErrorMessageVar) | 214 | xDBusMethodInvocationReturnDbusError(x.GoPointer(), ErrorNameVar, ErrorMessageVar) | ||
| 235 | } | 215 | } | ||
| 236 | 216 | ||||
| @@ -257,8 +237,6 @@ var xDBusMethodInvocationReturnError func(uintptr, glib.Quark, int, string, ...i | |||||
| 257 | // then this call will free @invocation but otherwise do nothing (as per | 237 | // then this call will free @invocation but otherwise do nothing (as per | ||
| 258 | // the recommendations of the D-Bus specification). | 238 | // the recommendations of the D-Bus specification). | ||
| 259 | func (x *DBusMethodInvocation) ReturnError(DomainVar glib.Quark, CodeVar int, FormatVar string, varArgs ...interface{}) { | 239 | func (x *DBusMethodInvocation) ReturnError(DomainVar glib.Quark, CodeVar int, FormatVar string, varArgs ...interface{}) { | ||
| 260 | - | core.LazyRegister(&xDBusMethodInvocationReturnError, "GIO", "g_dbus_method_invocation_return_error", false) | |||
| 261 | - | ||||
| 262 | xDBusMethodInvocationReturnError(x.GoPointer(), DomainVar, CodeVar, FormatVar, varArgs...) | 240 | xDBusMethodInvocationReturnError(x.GoPointer(), DomainVar, CodeVar, FormatVar, varArgs...) | ||
| 263 | } | 241 | } | ||
| 264 | 242 | ||||
| @@ -270,8 +248,6 @@ var xDBusMethodInvocationReturnErrorLiteral func(uintptr, glib.Quark, int, strin | |||||
| 270 | // #GDBusInterfaceVTable for more information about the ownership of | 248 | // #GDBusInterfaceVTable for more information about the ownership of | ||
| 271 | // @invocation. | 249 | // @invocation. | ||
| 272 | func (x *DBusMethodInvocation) ReturnErrorLiteral(DomainVar glib.Quark, CodeVar int, MessageVar string) { | 250 | func (x *DBusMethodInvocation) ReturnErrorLiteral(DomainVar glib.Quark, CodeVar int, MessageVar string) { | ||
| 273 | - | core.LazyRegister(&xDBusMethodInvocationReturnErrorLiteral, "GIO", "g_dbus_method_invocation_return_error_literal", false) | |||
| 274 | - | ||||
| 275 | xDBusMethodInvocationReturnErrorLiteral(x.GoPointer(), DomainVar, CodeVar, MessageVar) | 251 | xDBusMethodInvocationReturnErrorLiteral(x.GoPointer(), DomainVar, CodeVar, MessageVar) | ||
| 276 | } | 252 | } | ||
| 277 | 253 | ||||
| @@ -284,8 +260,6 @@ var xDBusMethodInvocationReturnErrorValist func(uintptr, glib.Quark, int, string | |||||
| 284 | // #GDBusInterfaceVTable for more information about the ownership of | 260 | // #GDBusInterfaceVTable for more information about the ownership of | ||
| 285 | // @invocation. | 261 | // @invocation. | ||
| 286 | func (x *DBusMethodInvocation) ReturnErrorValist(DomainVar glib.Quark, CodeVar int, FormatVar string, VarArgsVar []interface{}) { | 262 | func (x *DBusMethodInvocation) ReturnErrorValist(DomainVar glib.Quark, CodeVar int, FormatVar string, VarArgsVar []interface{}) { | ||
| 287 | - | core.LazyRegister(&xDBusMethodInvocationReturnErrorValist, "GIO", "g_dbus_method_invocation_return_error_valist", false) | |||
| 288 | - | ||||
| 289 | xDBusMethodInvocationReturnErrorValist(x.GoPointer(), DomainVar, CodeVar, FormatVar, VarArgsVar) | 263 | xDBusMethodInvocationReturnErrorValist(x.GoPointer(), DomainVar, CodeVar, FormatVar, VarArgsVar) | ||
| 290 | } | 264 | } | ||
| 291 | 265 | ||||
| @@ -298,8 +272,6 @@ var xDBusMethodInvocationReturnGerror func(uintptr, *glib.Error) | |||||
| 298 | // #GDBusInterfaceVTable for more information about the ownership of | 272 | // #GDBusInterfaceVTable for more information about the ownership of | ||
| 299 | // @invocation. | 273 | // @invocation. | ||
| 300 | func (x *DBusMethodInvocation) ReturnGerror(ErrorVar *glib.Error) { | 274 | func (x *DBusMethodInvocation) ReturnGerror(ErrorVar *glib.Error) { | ||
| 301 | - | core.LazyRegister(&xDBusMethodInvocationReturnGerror, "GIO", "g_dbus_method_invocation_return_gerror", false) | |||
| 302 | - | ||||
| 303 | xDBusMethodInvocationReturnGerror(x.GoPointer(), ErrorVar) | 275 | xDBusMethodInvocationReturnGerror(x.GoPointer(), ErrorVar) | ||
| 304 | } | 276 | } | ||
| 305 | 277 | ||||
| @@ -341,8 +313,6 @@ var xDBusMethodInvocationReturnValue func(uintptr, *glib.Variant) | |||||
| 341 | // otherwise do nothing (as per the recommendations of the D-Bus | 313 | // otherwise do nothing (as per the recommendations of the D-Bus | ||
| 342 | // specification). | 314 | // specification). | ||
| 343 | func (x *DBusMethodInvocation) ReturnValue(ParametersVar *glib.Variant) { | 315 | func (x *DBusMethodInvocation) ReturnValue(ParametersVar *glib.Variant) { | ||
| 344 | - | core.LazyRegister(&xDBusMethodInvocationReturnValue, "GIO", "g_dbus_method_invocation_return_value", false) | |||
| 345 | - | ||||
| 346 | xDBusMethodInvocationReturnValue(x.GoPointer(), ParametersVar) | 316 | xDBusMethodInvocationReturnValue(x.GoPointer(), ParametersVar) | ||
| 347 | } | 317 | } | ||
| 348 | 318 | ||||
| @@ -356,8 +326,6 @@ var xDBusMethodInvocationReturnValueWithUnixFdList func(uintptr, *glib.Variant, | |||||
| 356 | // #GDBusInterfaceVTable for more information about the ownership of | 326 | // #GDBusInterfaceVTable for more information about the ownership of | ||
| 357 | // @invocation. | 327 | // @invocation. | ||
| 358 | func (x *DBusMethodInvocation) ReturnValueWithUnixFdList(ParametersVar *glib.Variant, FdListVar *UnixFDList) { | 328 | func (x *DBusMethodInvocation) ReturnValueWithUnixFdList(ParametersVar *glib.Variant, FdListVar *UnixFDList) { | ||
| 359 | - | core.LazyRegister(&xDBusMethodInvocationReturnValueWithUnixFdList, "GIO", "g_dbus_method_invocation_return_value_with_unix_fd_list", false) | |||
| 360 | - | ||||
| 361 | xDBusMethodInvocationReturnValueWithUnixFdList(x.GoPointer(), ParametersVar, FdListVar.GoPointer()) | 329 | xDBusMethodInvocationReturnValueWithUnixFdList(x.GoPointer(), ParametersVar, FdListVar.GoPointer()) | ||
| 362 | } | 330 | } | ||
| 363 | 331 | ||||
| @@ -370,8 +338,6 @@ var xDBusMethodInvocationTakeError func(uintptr, *glib.Error) | |||||
| 370 | // #GDBusInterfaceVTable for more information about the ownership of | 338 | // #GDBusInterfaceVTable for more information about the ownership of | ||
| 371 | // @invocation. | 339 | // @invocation. | ||
| 372 | func (x *DBusMethodInvocation) TakeError(ErrorVar *glib.Error) { | 340 | func (x *DBusMethodInvocation) TakeError(ErrorVar *glib.Error) { | ||
| 373 | - | core.LazyRegister(&xDBusMethodInvocationTakeError, "GIO", "g_dbus_method_invocation_take_error", false) | |||
| 374 | - | ||||
| 375 | xDBusMethodInvocationTakeError(x.GoPointer(), ErrorVar) | 341 | xDBusMethodInvocationTakeError(x.GoPointer(), ErrorVar) | ||
| 376 | } | 342 | } | ||
| 377 | 343 | ||||
| @@ -389,4 +355,33 @@ func (c *DBusMethodInvocation) SetGoPointer(ptr uintptr) { | |||||
| 389 | func init() { | 355 | func init() { | ||
| 390 | core.SetPackageName("GIO", "gio-2.0") | 356 | core.SetPackageName("GIO", "gio-2.0") | ||
| 391 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | 357 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | ||
| 358 | + | var libs []uintptr | |||
| 359 | + | for _, libPath := range core.GetPaths("GIO") { | |||
| 360 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 361 | + | if err != nil { | |||
| 362 | + | panic(err) | |||
| 363 | + | } | |||
| 364 | + | libs = append(libs, lib) | |||
| 365 | + | } | |||
| 366 | + | ||||
| 367 | + | core.PuregoSafeRegister(&xDBusMethodInvocationGLibType, libs, "g_dbus_method_invocation_get_type") | |||
| 368 | + | ||||
| 369 | + | core.PuregoSafeRegister(&xDBusMethodInvocationGetConnection, libs, "g_dbus_method_invocation_get_connection") | |||
| 370 | + | core.PuregoSafeRegister(&xDBusMethodInvocationGetInterfaceName, libs, "g_dbus_method_invocation_get_interface_name") | |||
| 371 | + | core.PuregoSafeRegister(&xDBusMethodInvocationGetMessage, libs, "g_dbus_method_invocation_get_message") | |||
| 372 | + | core.PuregoSafeRegister(&xDBusMethodInvocationGetMethodInfo, libs, "g_dbus_method_invocation_get_method_info") | |||
| 373 | + | core.PuregoSafeRegister(&xDBusMethodInvocationGetMethodName, libs, "g_dbus_method_invocation_get_method_name") | |||
| 374 | + | core.PuregoSafeRegister(&xDBusMethodInvocationGetObjectPath, libs, "g_dbus_method_invocation_get_object_path") | |||
| 375 | + | core.PuregoSafeRegister(&xDBusMethodInvocationGetParameters, libs, "g_dbus_method_invocation_get_parameters") | |||
| 376 | + | core.PuregoSafeRegister(&xDBusMethodInvocationGetPropertyInfo, libs, "g_dbus_method_invocation_get_property_info") | |||
| 377 | + | core.PuregoSafeRegister(&xDBusMethodInvocationGetSender, libs, "g_dbus_method_invocation_get_sender") | |||
| 378 | + | core.PuregoSafeRegister(&xDBusMethodInvocationGetUserData, libs, "g_dbus_method_invocation_get_user_data") | |||
| 379 | + | core.PuregoSafeRegister(&xDBusMethodInvocationReturnDbusError, libs, "g_dbus_method_invocation_return_dbus_error") | |||
| 380 | + | core.PuregoSafeRegister(&xDBusMethodInvocationReturnError, libs, "g_dbus_method_invocation_return_error") | |||
| 381 | + | core.PuregoSafeRegister(&xDBusMethodInvocationReturnErrorLiteral, libs, "g_dbus_method_invocation_return_error_literal") | |||
| 382 | + | core.PuregoSafeRegister(&xDBusMethodInvocationReturnErrorValist, libs, "g_dbus_method_invocation_return_error_valist") | |||
| 383 | + | core.PuregoSafeRegister(&xDBusMethodInvocationReturnGerror, libs, "g_dbus_method_invocation_return_gerror") | |||
| 384 | + | core.PuregoSafeRegister(&xDBusMethodInvocationReturnValue, libs, "g_dbus_method_invocation_return_value") | |||
| 385 | + | core.PuregoSafeRegister(&xDBusMethodInvocationReturnValueWithUnixFdList, libs, "g_dbus_method_invocation_return_value_with_unix_fd_list") | |||
| 386 | + | core.PuregoSafeRegister(&xDBusMethodInvocationTakeError, libs, "g_dbus_method_invocation_take_error") | |||
| 392 | } | 387 | } | ||