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
| @@ -5,6 +5,7 @@ import ( | |||
| 5 | 5 | "structs" | |
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | + | "github.com/bnema/purego" | |
| 8 | 9 | "github.com/bnema/puregotk/pkg/core" | |
| 9 | 10 | "github.com/bnema/puregotk/v4/glib" | |
| 10 | 11 | "github.com/bnema/puregotk/v4/gobject/types" | |
| @@ -26,7 +27,6 @@ type DBusAnnotationInfo struct { | |||
| 26 | 27 | var xDBusAnnotationInfoGLibType func() types.GType | |
| 27 | 28 | ||
| 28 | 29 | func DBusAnnotationInfoGLibType() types.GType { | |
| 29 | - | core.LazyRegister(&xDBusAnnotationInfoGLibType, "GIO", "g_dbus_annotation_info_get_type", false) | |
| 30 | 30 | return xDBusAnnotationInfoGLibType() | |
| 31 | 31 | } | |
| 32 | 32 | ||
| @@ -47,8 +47,6 @@ var xDBusAnnotationInfoRef func(uintptr) uintptr | |||
| 47 | 47 | // If @info is statically allocated does nothing. Otherwise increases | |
| 48 | 48 | // the reference count. | |
| 49 | 49 | func (x *DBusAnnotationInfo) Ref() *DBusAnnotationInfo { | |
| 50 | - | core.LazyRegister(&xDBusAnnotationInfoRef, "GIO", "g_dbus_annotation_info_ref", false) | |
| 51 | - | ||
| 52 | 50 | cret := xDBusAnnotationInfoRef(x.GoPointer()) | |
| 53 | 51 | if cret == 0 { | |
| 54 | 52 | return nil | |
| @@ -62,8 +60,6 @@ var xDBusAnnotationInfoUnref func(uintptr) | |||
| 62 | 60 | // the reference count of @info. When its reference count drops to 0, | |
| 63 | 61 | // the memory used is freed. | |
| 64 | 62 | func (x *DBusAnnotationInfo) Unref() { | |
| 65 | - | core.LazyRegister(&xDBusAnnotationInfoUnref, "GIO", "g_dbus_annotation_info_unref", false) | |
| 66 | - | ||
| 67 | 63 | xDBusAnnotationInfoUnref(x.GoPointer()) | |
| 68 | 64 | } | |
| 69 | 65 | ||
| @@ -83,7 +79,6 @@ type DBusArgInfo struct { | |||
| 83 | 79 | var xDBusArgInfoGLibType func() types.GType | |
| 84 | 80 | ||
| 85 | 81 | func DBusArgInfoGLibType() types.GType { | |
| 86 | - | core.LazyRegister(&xDBusArgInfoGLibType, "GIO", "g_dbus_arg_info_get_type", false) | |
| 87 | 82 | return xDBusArgInfoGLibType() | |
| 88 | 83 | } | |
| 89 | 84 | ||
| @@ -104,8 +99,6 @@ var xDBusArgInfoRef func(uintptr) uintptr | |||
| 104 | 99 | // If @info is statically allocated does nothing. Otherwise increases | |
| 105 | 100 | // the reference count. | |
| 106 | 101 | func (x *DBusArgInfo) Ref() *DBusArgInfo { | |
| 107 | - | core.LazyRegister(&xDBusArgInfoRef, "GIO", "g_dbus_arg_info_ref", false) | |
| 108 | - | ||
| 109 | 102 | cret := xDBusArgInfoRef(x.GoPointer()) | |
| 110 | 103 | if cret == 0 { | |
| 111 | 104 | return nil | |
| @@ -119,8 +112,6 @@ var xDBusArgInfoUnref func(uintptr) | |||
| 119 | 112 | // the reference count of @info. When its reference count drops to 0, | |
| 120 | 113 | // the memory used is freed. | |
| 121 | 114 | func (x *DBusArgInfo) Unref() { | |
| 122 | - | core.LazyRegister(&xDBusArgInfoUnref, "GIO", "g_dbus_arg_info_unref", false) | |
| 123 | - | ||
| 124 | 115 | xDBusArgInfoUnref(x.GoPointer()) | |
| 125 | 116 | } | |
| 126 | 117 | ||
| @@ -144,7 +135,6 @@ type DBusInterfaceInfo struct { | |||
| 144 | 135 | var xDBusInterfaceInfoGLibType func() types.GType | |
| 145 | 136 | ||
| 146 | 137 | func DBusInterfaceInfoGLibType() types.GType { | |
| 147 | - | core.LazyRegister(&xDBusInterfaceInfoGLibType, "GIO", "g_dbus_interface_info_get_type", false) | |
| 148 | 138 | return xDBusInterfaceInfoGLibType() | |
| 149 | 139 | } | |
| 150 | 140 | ||
| @@ -173,8 +163,6 @@ var xDBusInterfaceInfoCacheBuild func(uintptr) | |||
| 173 | 163 | // Note that @info cannot be modified until | |
| 174 | 164 | // g_dbus_interface_info_cache_release() is called. | |
| 175 | 165 | func (x *DBusInterfaceInfo) CacheBuild() { | |
| 176 | - | core.LazyRegister(&xDBusInterfaceInfoCacheBuild, "GIO", "g_dbus_interface_info_cache_build", false) | |
| 177 | - | ||
| 178 | 166 | xDBusInterfaceInfoCacheBuild(x.GoPointer()) | |
| 179 | 167 | } | |
| 180 | 168 | ||
| @@ -184,8 +172,6 @@ var xDBusInterfaceInfoCacheRelease func(uintptr) | |||
| 184 | 172 | // g_dbus_interface_info_cache_build() (if any) and frees the | |
| 185 | 173 | // resources used by the cache if the usage count drops to zero. | |
| 186 | 174 | func (x *DBusInterfaceInfo) CacheRelease() { | |
| 187 | - | core.LazyRegister(&xDBusInterfaceInfoCacheRelease, "GIO", "g_dbus_interface_info_cache_release", false) | |
| 188 | - | ||
| 189 | 175 | xDBusInterfaceInfoCacheRelease(x.GoPointer()) | |
| 190 | 176 | } | |
| 191 | 177 | ||
| @@ -198,8 +184,6 @@ var xDBusInterfaceInfoGenerateXml func(uintptr, uint, *glib.String) | |||
| 198 | 184 | // `org.freedesktop.DBus.Introspectable.Introspect` | |
| 199 | 185 | // method. | |
| 200 | 186 | func (x *DBusInterfaceInfo) GenerateXml(IndentVar uint, StringBuilderVar *glib.String) { | |
| 201 | - | core.LazyRegister(&xDBusInterfaceInfoGenerateXml, "GIO", "g_dbus_interface_info_generate_xml", false) | |
| 202 | - | ||
| 203 | 187 | xDBusInterfaceInfoGenerateXml(x.GoPointer(), IndentVar, StringBuilderVar) | |
| 204 | 188 | } | |
| 205 | 189 | ||
| @@ -210,8 +194,6 @@ var xDBusInterfaceInfoLookupMethod func(uintptr, string) uintptr | |||
| 210 | 194 | // The cost of this function is O(n) in number of methods unless | |
| 211 | 195 | // g_dbus_interface_info_cache_build() has been used on @info. | |
| 212 | 196 | func (x *DBusInterfaceInfo) LookupMethod(NameVar string) *DBusMethodInfo { | |
| 213 | - | core.LazyRegister(&xDBusInterfaceInfoLookupMethod, "GIO", "g_dbus_interface_info_lookup_method", false) | |
| 214 | - | ||
| 215 | 197 | cret := xDBusInterfaceInfoLookupMethod(x.GoPointer(), NameVar) | |
| 216 | 198 | if cret == 0 { | |
| 217 | 199 | return nil | |
| @@ -226,8 +208,6 @@ var xDBusInterfaceInfoLookupProperty func(uintptr, string) uintptr | |||
| 226 | 208 | // The cost of this function is O(n) in number of properties unless | |
| 227 | 209 | // g_dbus_interface_info_cache_build() has been used on @info. | |
| 228 | 210 | func (x *DBusInterfaceInfo) LookupProperty(NameVar string) *DBusPropertyInfo { | |
| 229 | - | core.LazyRegister(&xDBusInterfaceInfoLookupProperty, "GIO", "g_dbus_interface_info_lookup_property", false) | |
| 230 | - | ||
| 231 | 211 | cret := xDBusInterfaceInfoLookupProperty(x.GoPointer(), NameVar) | |
| 232 | 212 | if cret == 0 { | |
| 233 | 213 | return nil | |
| @@ -242,8 +222,6 @@ var xDBusInterfaceInfoLookupSignal func(uintptr, string) uintptr | |||
| 242 | 222 | // The cost of this function is O(n) in number of signals unless | |
| 243 | 223 | // g_dbus_interface_info_cache_build() has been used on @info. | |
| 244 | 224 | func (x *DBusInterfaceInfo) LookupSignal(NameVar string) *DBusSignalInfo { | |
| 245 | - | core.LazyRegister(&xDBusInterfaceInfoLookupSignal, "GIO", "g_dbus_interface_info_lookup_signal", false) | |
| 246 | - | ||
| 247 | 225 | cret := xDBusInterfaceInfoLookupSignal(x.GoPointer(), NameVar) | |
| 248 | 226 | if cret == 0 { | |
| 249 | 227 | return nil | |
| @@ -256,8 +234,6 @@ var xDBusInterfaceInfoRef func(uintptr) uintptr | |||
| 256 | 234 | // If @info is statically allocated does nothing. Otherwise increases | |
| 257 | 235 | // the reference count. | |
| 258 | 236 | func (x *DBusInterfaceInfo) Ref() *DBusInterfaceInfo { | |
| 259 | - | core.LazyRegister(&xDBusInterfaceInfoRef, "GIO", "g_dbus_interface_info_ref", false) | |
| 260 | - | ||
| 261 | 237 | cret := xDBusInterfaceInfoRef(x.GoPointer()) | |
| 262 | 238 | if cret == 0 { | |
| 263 | 239 | return nil | |
| @@ -271,8 +247,6 @@ var xDBusInterfaceInfoUnref func(uintptr) | |||
| 271 | 247 | // the reference count of @info. When its reference count drops to 0, | |
| 272 | 248 | // the memory used is freed. | |
| 273 | 249 | func (x *DBusInterfaceInfo) Unref() { | |
| 274 | - | core.LazyRegister(&xDBusInterfaceInfoUnref, "GIO", "g_dbus_interface_info_unref", false) | |
| 275 | - | ||
| 276 | 250 | xDBusInterfaceInfoUnref(x.GoPointer()) | |
| 277 | 251 | } | |
| 278 | 252 | ||
| @@ -294,7 +268,6 @@ type DBusMethodInfo struct { | |||
| 294 | 268 | var xDBusMethodInfoGLibType func() types.GType | |
| 295 | 269 | ||
| 296 | 270 | func DBusMethodInfoGLibType() types.GType { | |
| 297 | - | core.LazyRegister(&xDBusMethodInfoGLibType, "GIO", "g_dbus_method_info_get_type", false) | |
| 298 | 271 | return xDBusMethodInfoGLibType() | |
| 299 | 272 | } | |
| 300 | 273 | ||
| @@ -315,8 +288,6 @@ var xDBusMethodInfoRef func(uintptr) uintptr | |||
| 315 | 288 | // If @info is statically allocated does nothing. Otherwise increases | |
| 316 | 289 | // the reference count. | |
| 317 | 290 | func (x *DBusMethodInfo) Ref() *DBusMethodInfo { | |
| 318 | - | core.LazyRegister(&xDBusMethodInfoRef, "GIO", "g_dbus_method_info_ref", false) | |
| 319 | - | ||
| 320 | 291 | cret := xDBusMethodInfoRef(x.GoPointer()) | |
| 321 | 292 | if cret == 0 { | |
| 322 | 293 | return nil | |
| @@ -330,8 +301,6 @@ var xDBusMethodInfoUnref func(uintptr) | |||
| 330 | 301 | // the reference count of @info. When its reference count drops to 0, | |
| 331 | 302 | // the memory used is freed. | |
| 332 | 303 | func (x *DBusMethodInfo) Unref() { | |
| 333 | - | core.LazyRegister(&xDBusMethodInfoUnref, "GIO", "g_dbus_method_info_unref", false) | |
| 334 | - | ||
| 335 | 304 | xDBusMethodInfoUnref(x.GoPointer()) | |
| 336 | 305 | } | |
| 337 | 306 | ||
| @@ -353,7 +322,6 @@ type DBusNodeInfo struct { | |||
| 353 | 322 | var xDBusNodeInfoGLibType func() types.GType | |
| 354 | 323 | ||
| 355 | 324 | func DBusNodeInfoGLibType() types.GType { | |
| 356 | - | core.LazyRegister(&xDBusNodeInfoGLibType, "GIO", "g_dbus_node_info_get_type", false) | |
| 357 | 325 | return xDBusNodeInfoGLibType() | |
| 358 | 326 | } | |
| 359 | 327 | ||
| @@ -380,7 +348,6 @@ var xNewDBusNodeInfoForXml func(string, **glib.Error) uintptr | |||
| 380 | 348 | // [GMarkup](../glib/markup.html)-based | |
| 381 | 349 | // parser that only accepts a subset of valid XML documents. | |
| 382 | 350 | func NewDBusNodeInfoForXml(XmlDataVar string) (*DBusNodeInfo, error) { | |
| 383 | - | core.LazyRegister(&xNewDBusNodeInfoForXml, "GIO", "g_dbus_node_info_new_for_xml", false) | |
| 384 | 351 | var cerr *glib.Error | |
| 385 | 352 | ||
| 386 | 353 | cret := xNewDBusNodeInfoForXml(XmlDataVar, &cerr) | |
| @@ -400,8 +367,6 @@ var xDBusNodeInfoGenerateXml func(uintptr, uint, *glib.String) | |||
| 400 | 367 | // This function is typically used for generating introspection XML documents at run-time for | |
| 401 | 368 | // handling the `org.freedesktop.DBus.Introspectable.Introspect` method. | |
| 402 | 369 | func (x *DBusNodeInfo) GenerateXml(IndentVar uint, StringBuilderVar *glib.String) { | |
| 403 | - | core.LazyRegister(&xDBusNodeInfoGenerateXml, "GIO", "g_dbus_node_info_generate_xml", false) | |
| 404 | - | ||
| 405 | 370 | xDBusNodeInfoGenerateXml(x.GoPointer(), IndentVar, StringBuilderVar) | |
| 406 | 371 | } | |
| 407 | 372 | ||
| @@ -411,8 +376,6 @@ var xDBusNodeInfoLookupInterface func(uintptr, string) uintptr | |||
| 411 | 376 | // | |
| 412 | 377 | // The cost of this function is O(n) in number of interfaces. | |
| 413 | 378 | func (x *DBusNodeInfo) LookupInterface(NameVar string) *DBusInterfaceInfo { | |
| 414 | - | core.LazyRegister(&xDBusNodeInfoLookupInterface, "GIO", "g_dbus_node_info_lookup_interface", false) | |
| 415 | - | ||
| 416 | 379 | cret := xDBusNodeInfoLookupInterface(x.GoPointer(), NameVar) | |
| 417 | 380 | if cret == 0 { | |
| 418 | 381 | return nil | |
| @@ -425,8 +388,6 @@ var xDBusNodeInfoRef func(uintptr) uintptr | |||
| 425 | 388 | // If @info is statically allocated does nothing. Otherwise increases | |
| 426 | 389 | // the reference count. | |
| 427 | 390 | func (x *DBusNodeInfo) Ref() *DBusNodeInfo { | |
| 428 | - | core.LazyRegister(&xDBusNodeInfoRef, "GIO", "g_dbus_node_info_ref", false) | |
| 429 | - | ||
| 430 | 391 | cret := xDBusNodeInfoRef(x.GoPointer()) | |
| 431 | 392 | if cret == 0 { | |
| 432 | 393 | return nil | |
| @@ -440,8 +401,6 @@ var xDBusNodeInfoUnref func(uintptr) | |||
| 440 | 401 | // the reference count of @info. When its reference count drops to 0, | |
| 441 | 402 | // the memory used is freed. | |
| 442 | 403 | func (x *DBusNodeInfo) Unref() { | |
| 443 | - | core.LazyRegister(&xDBusNodeInfoUnref, "GIO", "g_dbus_node_info_unref", false) | |
| 444 | - | ||
| 445 | 404 | xDBusNodeInfoUnref(x.GoPointer()) | |
| 446 | 405 | } | |
| 447 | 406 | ||
| @@ -463,7 +422,6 @@ type DBusPropertyInfo struct { | |||
| 463 | 422 | var xDBusPropertyInfoGLibType func() types.GType | |
| 464 | 423 | ||
| 465 | 424 | func DBusPropertyInfoGLibType() types.GType { | |
| 466 | - | core.LazyRegister(&xDBusPropertyInfoGLibType, "GIO", "g_dbus_property_info_get_type", false) | |
| 467 | 425 | return xDBusPropertyInfoGLibType() | |
| 468 | 426 | } | |
| 469 | 427 | ||
| @@ -484,8 +442,6 @@ var xDBusPropertyInfoRef func(uintptr) uintptr | |||
| 484 | 442 | // If @info is statically allocated does nothing. Otherwise increases | |
| 485 | 443 | // the reference count. | |
| 486 | 444 | func (x *DBusPropertyInfo) Ref() *DBusPropertyInfo { | |
| 487 | - | core.LazyRegister(&xDBusPropertyInfoRef, "GIO", "g_dbus_property_info_ref", false) | |
| 488 | - | ||
| 489 | 445 | cret := xDBusPropertyInfoRef(x.GoPointer()) | |
| 490 | 446 | if cret == 0 { | |
| 491 | 447 | return nil | |
| @@ -499,8 +455,6 @@ var xDBusPropertyInfoUnref func(uintptr) | |||
| 499 | 455 | // the reference count of @info. When its reference count drops to 0, | |
| 500 | 456 | // the memory used is freed. | |
| 501 | 457 | func (x *DBusPropertyInfo) Unref() { | |
| 502 | - | core.LazyRegister(&xDBusPropertyInfoUnref, "GIO", "g_dbus_property_info_unref", false) | |
| 503 | - | ||
| 504 | 458 | xDBusPropertyInfoUnref(x.GoPointer()) | |
| 505 | 459 | } | |
| 506 | 460 | ||
| @@ -520,7 +474,6 @@ type DBusSignalInfo struct { | |||
| 520 | 474 | var xDBusSignalInfoGLibType func() types.GType | |
| 521 | 475 | ||
| 522 | 476 | func DBusSignalInfoGLibType() types.GType { | |
| 523 | - | core.LazyRegister(&xDBusSignalInfoGLibType, "GIO", "g_dbus_signal_info_get_type", false) | |
| 524 | 477 | return xDBusSignalInfoGLibType() | |
| 525 | 478 | } | |
| 526 | 479 | ||
| @@ -541,8 +494,6 @@ var xDBusSignalInfoRef func(uintptr) uintptr | |||
| 541 | 494 | // If @info is statically allocated does nothing. Otherwise increases | |
| 542 | 495 | // the reference count. | |
| 543 | 496 | func (x *DBusSignalInfo) Ref() *DBusSignalInfo { | |
| 544 | - | core.LazyRegister(&xDBusSignalInfoRef, "GIO", "g_dbus_signal_info_ref", false) | |
| 545 | - | ||
| 546 | 497 | cret := xDBusSignalInfoRef(x.GoPointer()) | |
| 547 | 498 | if cret == 0 { | |
| 548 | 499 | return nil | |
| @@ -556,8 +507,6 @@ var xDBusSignalInfoUnref func(uintptr) | |||
| 556 | 507 | // the reference count of @info. When its reference count drops to 0, | |
| 557 | 508 | // the memory used is freed. | |
| 558 | 509 | func (x *DBusSignalInfo) Unref() { | |
| 559 | - | core.LazyRegister(&xDBusSignalInfoUnref, "GIO", "g_dbus_signal_info_unref", false) | |
| 560 | - | ||
| 561 | 510 | xDBusSignalInfoUnref(x.GoPointer()) | |
| 562 | 511 | } | |
| 563 | 512 | ||
| @@ -567,8 +516,6 @@ var xDbusAnnotationInfoLookup func(uintptr, string) string | |||
| 567 | 516 | // | |
| 568 | 517 | // The cost of this function is O(n) in number of annotations. | |
| 569 | 518 | func DbusAnnotationInfoLookup(AnnotationsVar uintptr, NameVar string) string { | |
| 570 | - | core.LazyRegister(&xDbusAnnotationInfoLookup, "GIO", "g_dbus_annotation_info_lookup", false) | |
| 571 | - | ||
| 572 | 519 | cret := xDbusAnnotationInfoLookup(AnnotationsVar, NameVar) | |
| 573 | 520 | return cret | |
| 574 | 521 | } | |
| @@ -576,4 +523,59 @@ func DbusAnnotationInfoLookup(AnnotationsVar uintptr, NameVar string) string { | |||
| 576 | 523 | func init() { | |
| 577 | 524 | core.SetPackageName("GIO", "gio-2.0") | |
| 578 | 525 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | |
| 526 | + | var libs []uintptr | |
| 527 | + | for _, libPath := range core.GetPaths("GIO") { | |
| 528 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 529 | + | if err != nil { | |
| 530 | + | panic(err) | |
| 531 | + | } | |
| 532 | + | libs = append(libs, lib) | |
| 533 | + | } | |
| 534 | + | ||
| 535 | + | core.PuregoSafeRegister(&xDbusAnnotationInfoLookup, libs, "g_dbus_annotation_info_lookup") | |
| 536 | + | ||
| 537 | + | core.PuregoSafeRegister(&xDBusAnnotationInfoGLibType, libs, "g_dbus_annotation_info_get_type") | |
| 538 | + | ||
| 539 | + | core.PuregoSafeRegister(&xDBusAnnotationInfoRef, libs, "g_dbus_annotation_info_ref") | |
| 540 | + | core.PuregoSafeRegister(&xDBusAnnotationInfoUnref, libs, "g_dbus_annotation_info_unref") | |
| 541 | + | ||
| 542 | + | core.PuregoSafeRegister(&xDBusArgInfoGLibType, libs, "g_dbus_arg_info_get_type") | |
| 543 | + | ||
| 544 | + | core.PuregoSafeRegister(&xDBusArgInfoRef, libs, "g_dbus_arg_info_ref") | |
| 545 | + | core.PuregoSafeRegister(&xDBusArgInfoUnref, libs, "g_dbus_arg_info_unref") | |
| 546 | + | ||
| 547 | + | core.PuregoSafeRegister(&xDBusInterfaceInfoGLibType, libs, "g_dbus_interface_info_get_type") | |
| 548 | + | ||
| 549 | + | core.PuregoSafeRegister(&xDBusInterfaceInfoCacheBuild, libs, "g_dbus_interface_info_cache_build") | |
| 550 | + | core.PuregoSafeRegister(&xDBusInterfaceInfoCacheRelease, libs, "g_dbus_interface_info_cache_release") | |
| 551 | + | core.PuregoSafeRegister(&xDBusInterfaceInfoGenerateXml, libs, "g_dbus_interface_info_generate_xml") | |
| 552 | + | core.PuregoSafeRegister(&xDBusInterfaceInfoLookupMethod, libs, "g_dbus_interface_info_lookup_method") | |
| 553 | + | core.PuregoSafeRegister(&xDBusInterfaceInfoLookupProperty, libs, "g_dbus_interface_info_lookup_property") | |
| 554 | + | core.PuregoSafeRegister(&xDBusInterfaceInfoLookupSignal, libs, "g_dbus_interface_info_lookup_signal") | |
| 555 | + | core.PuregoSafeRegister(&xDBusInterfaceInfoRef, libs, "g_dbus_interface_info_ref") | |
| 556 | + | core.PuregoSafeRegister(&xDBusInterfaceInfoUnref, libs, "g_dbus_interface_info_unref") | |
| 557 | + | ||
| 558 | + | core.PuregoSafeRegister(&xDBusMethodInfoGLibType, libs, "g_dbus_method_info_get_type") | |
| 559 | + | ||
| 560 | + | core.PuregoSafeRegister(&xDBusMethodInfoRef, libs, "g_dbus_method_info_ref") | |
| 561 | + | core.PuregoSafeRegister(&xDBusMethodInfoUnref, libs, "g_dbus_method_info_unref") | |
| 562 | + | ||
| 563 | + | core.PuregoSafeRegister(&xDBusNodeInfoGLibType, libs, "g_dbus_node_info_get_type") | |
| 564 | + | ||
| 565 | + | core.PuregoSafeRegister(&xNewDBusNodeInfoForXml, libs, "g_dbus_node_info_new_for_xml") | |
| 566 | + | ||
| 567 | + | core.PuregoSafeRegister(&xDBusNodeInfoGenerateXml, libs, "g_dbus_node_info_generate_xml") | |
| 568 | + | core.PuregoSafeRegister(&xDBusNodeInfoLookupInterface, libs, "g_dbus_node_info_lookup_interface") | |
| 569 | + | core.PuregoSafeRegister(&xDBusNodeInfoRef, libs, "g_dbus_node_info_ref") | |
| 570 | + | core.PuregoSafeRegister(&xDBusNodeInfoUnref, libs, "g_dbus_node_info_unref") | |
| 571 | + | ||
| 572 | + | core.PuregoSafeRegister(&xDBusPropertyInfoGLibType, libs, "g_dbus_property_info_get_type") | |
| 573 | + | ||
| 574 | + | core.PuregoSafeRegister(&xDBusPropertyInfoRef, libs, "g_dbus_property_info_ref") | |
| 575 | + | core.PuregoSafeRegister(&xDBusPropertyInfoUnref, libs, "g_dbus_property_info_unref") | |
| 576 | + | ||
| 577 | + | core.PuregoSafeRegister(&xDBusSignalInfoGLibType, libs, "g_dbus_signal_info_get_type") | |
| 578 | + | ||
| 579 | + | core.PuregoSafeRegister(&xDBusSignalInfoRef, libs, "g_dbus_signal_info_ref") | |
| 580 | + | core.PuregoSafeRegister(&xDBusSignalInfoUnref, libs, "g_dbus_signal_info_unref") | |
| 579 | 581 | } | |
| @@ -5,6 +5,7 @@ import ( | |||||
| 5 | "structs" | 5 | "structs" | ||
| 6 | "unsafe" | 6 | "unsafe" | ||
| 7 | 7 | ||||
| 8 | + | "github.com/bnema/purego" | |||
| 8 | "github.com/bnema/puregotk/pkg/core" | 9 | "github.com/bnema/puregotk/pkg/core" | ||
| 9 | "github.com/bnema/puregotk/v4/glib" | 10 | "github.com/bnema/puregotk/v4/glib" | ||
| 10 | "github.com/bnema/puregotk/v4/gobject/types" | 11 | "github.com/bnema/puregotk/v4/gobject/types" | ||
| @@ -26,7 +27,6 @@ type DBusAnnotationInfo struct { | |||||
| 26 | var xDBusAnnotationInfoGLibType func() types.GType | 27 | var xDBusAnnotationInfoGLibType func() types.GType | ||
| 27 | 28 | ||||
| 28 | func DBusAnnotationInfoGLibType() types.GType { | 29 | func DBusAnnotationInfoGLibType() types.GType { | ||
| 29 | - | core.LazyRegister(&xDBusAnnotationInfoGLibType, "GIO", "g_dbus_annotation_info_get_type", false) | |||
| 30 | return xDBusAnnotationInfoGLibType() | 30 | return xDBusAnnotationInfoGLibType() | ||
| 31 | } | 31 | } | ||
| 32 | 32 | ||||
| @@ -47,8 +47,6 @@ var xDBusAnnotationInfoRef func(uintptr) uintptr | |||||
| 47 | // If @info is statically allocated does nothing. Otherwise increases | 47 | // If @info is statically allocated does nothing. Otherwise increases | ||
| 48 | // the reference count. | 48 | // the reference count. | ||
| 49 | func (x *DBusAnnotationInfo) Ref() *DBusAnnotationInfo { | 49 | func (x *DBusAnnotationInfo) Ref() *DBusAnnotationInfo { | ||
| 50 | - | core.LazyRegister(&xDBusAnnotationInfoRef, "GIO", "g_dbus_annotation_info_ref", false) | |||
| 51 | - | ||||
| 52 | cret := xDBusAnnotationInfoRef(x.GoPointer()) | 50 | cret := xDBusAnnotationInfoRef(x.GoPointer()) | ||
| 53 | if cret == 0 { | 51 | if cret == 0 { | ||
| 54 | return nil | 52 | return nil | ||
| @@ -62,8 +60,6 @@ var xDBusAnnotationInfoUnref func(uintptr) | |||||
| 62 | // the reference count of @info. When its reference count drops to 0, | 60 | // the reference count of @info. When its reference count drops to 0, | ||
| 63 | // the memory used is freed. | 61 | // the memory used is freed. | ||
| 64 | func (x *DBusAnnotationInfo) Unref() { | 62 | func (x *DBusAnnotationInfo) Unref() { | ||
| 65 | - | core.LazyRegister(&xDBusAnnotationInfoUnref, "GIO", "g_dbus_annotation_info_unref", false) | |||
| 66 | - | ||||
| 67 | xDBusAnnotationInfoUnref(x.GoPointer()) | 63 | xDBusAnnotationInfoUnref(x.GoPointer()) | ||
| 68 | } | 64 | } | ||
| 69 | 65 | ||||
| @@ -83,7 +79,6 @@ type DBusArgInfo struct { | |||||
| 83 | var xDBusArgInfoGLibType func() types.GType | 79 | var xDBusArgInfoGLibType func() types.GType | ||
| 84 | 80 | ||||
| 85 | func DBusArgInfoGLibType() types.GType { | 81 | func DBusArgInfoGLibType() types.GType { | ||
| 86 | - | core.LazyRegister(&xDBusArgInfoGLibType, "GIO", "g_dbus_arg_info_get_type", false) | |||
| 87 | return xDBusArgInfoGLibType() | 82 | return xDBusArgInfoGLibType() | ||
| 88 | } | 83 | } | ||
| 89 | 84 | ||||
| @@ -104,8 +99,6 @@ var xDBusArgInfoRef func(uintptr) uintptr | |||||
| 104 | // If @info is statically allocated does nothing. Otherwise increases | 99 | // If @info is statically allocated does nothing. Otherwise increases | ||
| 105 | // the reference count. | 100 | // the reference count. | ||
| 106 | func (x *DBusArgInfo) Ref() *DBusArgInfo { | 101 | func (x *DBusArgInfo) Ref() *DBusArgInfo { | ||
| 107 | - | core.LazyRegister(&xDBusArgInfoRef, "GIO", "g_dbus_arg_info_ref", false) | |||
| 108 | - | ||||
| 109 | cret := xDBusArgInfoRef(x.GoPointer()) | 102 | cret := xDBusArgInfoRef(x.GoPointer()) | ||
| 110 | if cret == 0 { | 103 | if cret == 0 { | ||
| 111 | return nil | 104 | return nil | ||
| @@ -119,8 +112,6 @@ var xDBusArgInfoUnref func(uintptr) | |||||
| 119 | // the reference count of @info. When its reference count drops to 0, | 112 | // the reference count of @info. When its reference count drops to 0, | ||
| 120 | // the memory used is freed. | 113 | // the memory used is freed. | ||
| 121 | func (x *DBusArgInfo) Unref() { | 114 | func (x *DBusArgInfo) Unref() { | ||
| 122 | - | core.LazyRegister(&xDBusArgInfoUnref, "GIO", "g_dbus_arg_info_unref", false) | |||
| 123 | - | ||||
| 124 | xDBusArgInfoUnref(x.GoPointer()) | 115 | xDBusArgInfoUnref(x.GoPointer()) | ||
| 125 | } | 116 | } | ||
| 126 | 117 | ||||
| @@ -144,7 +135,6 @@ type DBusInterfaceInfo struct { | |||||
| 144 | var xDBusInterfaceInfoGLibType func() types.GType | 135 | var xDBusInterfaceInfoGLibType func() types.GType | ||
| 145 | 136 | ||||
| 146 | func DBusInterfaceInfoGLibType() types.GType { | 137 | func DBusInterfaceInfoGLibType() types.GType { | ||
| 147 | - | core.LazyRegister(&xDBusInterfaceInfoGLibType, "GIO", "g_dbus_interface_info_get_type", false) | |||
| 148 | return xDBusInterfaceInfoGLibType() | 138 | return xDBusInterfaceInfoGLibType() | ||
| 149 | } | 139 | } | ||
| 150 | 140 | ||||
| @@ -173,8 +163,6 @@ var xDBusInterfaceInfoCacheBuild func(uintptr) | |||||
| 173 | // Note that @info cannot be modified until | 163 | // Note that @info cannot be modified until | ||
| 174 | // g_dbus_interface_info_cache_release() is called. | 164 | // g_dbus_interface_info_cache_release() is called. | ||
| 175 | func (x *DBusInterfaceInfo) CacheBuild() { | 165 | func (x *DBusInterfaceInfo) CacheBuild() { | ||
| 176 | - | core.LazyRegister(&xDBusInterfaceInfoCacheBuild, "GIO", "g_dbus_interface_info_cache_build", false) | |||
| 177 | - | ||||
| 178 | xDBusInterfaceInfoCacheBuild(x.GoPointer()) | 166 | xDBusInterfaceInfoCacheBuild(x.GoPointer()) | ||
| 179 | } | 167 | } | ||
| 180 | 168 | ||||
| @@ -184,8 +172,6 @@ var xDBusInterfaceInfoCacheRelease func(uintptr) | |||||
| 184 | // g_dbus_interface_info_cache_build() (if any) and frees the | 172 | // g_dbus_interface_info_cache_build() (if any) and frees the | ||
| 185 | // resources used by the cache if the usage count drops to zero. | 173 | // resources used by the cache if the usage count drops to zero. | ||
| 186 | func (x *DBusInterfaceInfo) CacheRelease() { | 174 | func (x *DBusInterfaceInfo) CacheRelease() { | ||
| 187 | - | core.LazyRegister(&xDBusInterfaceInfoCacheRelease, "GIO", "g_dbus_interface_info_cache_release", false) | |||
| 188 | - | ||||
| 189 | xDBusInterfaceInfoCacheRelease(x.GoPointer()) | 175 | xDBusInterfaceInfoCacheRelease(x.GoPointer()) | ||
| 190 | } | 176 | } | ||
| 191 | 177 | ||||
| @@ -198,8 +184,6 @@ var xDBusInterfaceInfoGenerateXml func(uintptr, uint, *glib.String) | |||||
| 198 | // `org.freedesktop.DBus.Introspectable.Introspect` | 184 | // `org.freedesktop.DBus.Introspectable.Introspect` | ||
| 199 | // method. | 185 | // method. | ||
| 200 | func (x *DBusInterfaceInfo) GenerateXml(IndentVar uint, StringBuilderVar *glib.String) { | 186 | func (x *DBusInterfaceInfo) GenerateXml(IndentVar uint, StringBuilderVar *glib.String) { | ||
| 201 | - | core.LazyRegister(&xDBusInterfaceInfoGenerateXml, "GIO", "g_dbus_interface_info_generate_xml", false) | |||
| 202 | - | ||||
| 203 | xDBusInterfaceInfoGenerateXml(x.GoPointer(), IndentVar, StringBuilderVar) | 187 | xDBusInterfaceInfoGenerateXml(x.GoPointer(), IndentVar, StringBuilderVar) | ||
| 204 | } | 188 | } | ||
| 205 | 189 | ||||
| @@ -210,8 +194,6 @@ var xDBusInterfaceInfoLookupMethod func(uintptr, string) uintptr | |||||
| 210 | // The cost of this function is O(n) in number of methods unless | 194 | // The cost of this function is O(n) in number of methods unless | ||
| 211 | // g_dbus_interface_info_cache_build() has been used on @info. | 195 | // g_dbus_interface_info_cache_build() has been used on @info. | ||
| 212 | func (x *DBusInterfaceInfo) LookupMethod(NameVar string) *DBusMethodInfo { | 196 | func (x *DBusInterfaceInfo) LookupMethod(NameVar string) *DBusMethodInfo { | ||
| 213 | - | core.LazyRegister(&xDBusInterfaceInfoLookupMethod, "GIO", "g_dbus_interface_info_lookup_method", false) | |||
| 214 | - | ||||
| 215 | cret := xDBusInterfaceInfoLookupMethod(x.GoPointer(), NameVar) | 197 | cret := xDBusInterfaceInfoLookupMethod(x.GoPointer(), NameVar) | ||
| 216 | if cret == 0 { | 198 | if cret == 0 { | ||
| 217 | return nil | 199 | return nil | ||
| @@ -226,8 +208,6 @@ var xDBusInterfaceInfoLookupProperty func(uintptr, string) uintptr | |||||
| 226 | // The cost of this function is O(n) in number of properties unless | 208 | // The cost of this function is O(n) in number of properties unless | ||
| 227 | // g_dbus_interface_info_cache_build() has been used on @info. | 209 | // g_dbus_interface_info_cache_build() has been used on @info. | ||
| 228 | func (x *DBusInterfaceInfo) LookupProperty(NameVar string) *DBusPropertyInfo { | 210 | func (x *DBusInterfaceInfo) LookupProperty(NameVar string) *DBusPropertyInfo { | ||
| 229 | - | core.LazyRegister(&xDBusInterfaceInfoLookupProperty, "GIO", "g_dbus_interface_info_lookup_property", false) | |||
| 230 | - | ||||
| 231 | cret := xDBusInterfaceInfoLookupProperty(x.GoPointer(), NameVar) | 211 | cret := xDBusInterfaceInfoLookupProperty(x.GoPointer(), NameVar) | ||
| 232 | if cret == 0 { | 212 | if cret == 0 { | ||
| 233 | return nil | 213 | return nil | ||
| @@ -242,8 +222,6 @@ var xDBusInterfaceInfoLookupSignal func(uintptr, string) uintptr | |||||
| 242 | // The cost of this function is O(n) in number of signals unless | 222 | // The cost of this function is O(n) in number of signals unless | ||
| 243 | // g_dbus_interface_info_cache_build() has been used on @info. | 223 | // g_dbus_interface_info_cache_build() has been used on @info. | ||
| 244 | func (x *DBusInterfaceInfo) LookupSignal(NameVar string) *DBusSignalInfo { | 224 | func (x *DBusInterfaceInfo) LookupSignal(NameVar string) *DBusSignalInfo { | ||
| 245 | - | core.LazyRegister(&xDBusInterfaceInfoLookupSignal, "GIO", "g_dbus_interface_info_lookup_signal", false) | |||
| 246 | - | ||||
| 247 | cret := xDBusInterfaceInfoLookupSignal(x.GoPointer(), NameVar) | 225 | cret := xDBusInterfaceInfoLookupSignal(x.GoPointer(), NameVar) | ||
| 248 | if cret == 0 { | 226 | if cret == 0 { | ||
| 249 | return nil | 227 | return nil | ||
| @@ -256,8 +234,6 @@ var xDBusInterfaceInfoRef func(uintptr) uintptr | |||||
| 256 | // If @info is statically allocated does nothing. Otherwise increases | 234 | // If @info is statically allocated does nothing. Otherwise increases | ||
| 257 | // the reference count. | 235 | // the reference count. | ||
| 258 | func (x *DBusInterfaceInfo) Ref() *DBusInterfaceInfo { | 236 | func (x *DBusInterfaceInfo) Ref() *DBusInterfaceInfo { | ||
| 259 | - | core.LazyRegister(&xDBusInterfaceInfoRef, "GIO", "g_dbus_interface_info_ref", false) | |||
| 260 | - | ||||
| 261 | cret := xDBusInterfaceInfoRef(x.GoPointer()) | 237 | cret := xDBusInterfaceInfoRef(x.GoPointer()) | ||
| 262 | if cret == 0 { | 238 | if cret == 0 { | ||
| 263 | return nil | 239 | return nil | ||
| @@ -271,8 +247,6 @@ var xDBusInterfaceInfoUnref func(uintptr) | |||||
| 271 | // the reference count of @info. When its reference count drops to 0, | 247 | // the reference count of @info. When its reference count drops to 0, | ||
| 272 | // the memory used is freed. | 248 | // the memory used is freed. | ||
| 273 | func (x *DBusInterfaceInfo) Unref() { | 249 | func (x *DBusInterfaceInfo) Unref() { | ||
| 274 | - | core.LazyRegister(&xDBusInterfaceInfoUnref, "GIO", "g_dbus_interface_info_unref", false) | |||
| 275 | - | ||||
| 276 | xDBusInterfaceInfoUnref(x.GoPointer()) | 250 | xDBusInterfaceInfoUnref(x.GoPointer()) | ||
| 277 | } | 251 | } | ||
| 278 | 252 | ||||
| @@ -294,7 +268,6 @@ type DBusMethodInfo struct { | |||||
| 294 | var xDBusMethodInfoGLibType func() types.GType | 268 | var xDBusMethodInfoGLibType func() types.GType | ||
| 295 | 269 | ||||
| 296 | func DBusMethodInfoGLibType() types.GType { | 270 | func DBusMethodInfoGLibType() types.GType { | ||
| 297 | - | core.LazyRegister(&xDBusMethodInfoGLibType, "GIO", "g_dbus_method_info_get_type", false) | |||
| 298 | return xDBusMethodInfoGLibType() | 271 | return xDBusMethodInfoGLibType() | ||
| 299 | } | 272 | } | ||
| 300 | 273 | ||||
| @@ -315,8 +288,6 @@ var xDBusMethodInfoRef func(uintptr) uintptr | |||||
| 315 | // If @info is statically allocated does nothing. Otherwise increases | 288 | // If @info is statically allocated does nothing. Otherwise increases | ||
| 316 | // the reference count. | 289 | // the reference count. | ||
| 317 | func (x *DBusMethodInfo) Ref() *DBusMethodInfo { | 290 | func (x *DBusMethodInfo) Ref() *DBusMethodInfo { | ||
| 318 | - | core.LazyRegister(&xDBusMethodInfoRef, "GIO", "g_dbus_method_info_ref", false) | |||
| 319 | - | ||||
| 320 | cret := xDBusMethodInfoRef(x.GoPointer()) | 291 | cret := xDBusMethodInfoRef(x.GoPointer()) | ||
| 321 | if cret == 0 { | 292 | if cret == 0 { | ||
| 322 | return nil | 293 | return nil | ||
| @@ -330,8 +301,6 @@ var xDBusMethodInfoUnref func(uintptr) | |||||
| 330 | // the reference count of @info. When its reference count drops to 0, | 301 | // the reference count of @info. When its reference count drops to 0, | ||
| 331 | // the memory used is freed. | 302 | // the memory used is freed. | ||
| 332 | func (x *DBusMethodInfo) Unref() { | 303 | func (x *DBusMethodInfo) Unref() { | ||
| 333 | - | core.LazyRegister(&xDBusMethodInfoUnref, "GIO", "g_dbus_method_info_unref", false) | |||
| 334 | - | ||||
| 335 | xDBusMethodInfoUnref(x.GoPointer()) | 304 | xDBusMethodInfoUnref(x.GoPointer()) | ||
| 336 | } | 305 | } | ||
| 337 | 306 | ||||
| @@ -353,7 +322,6 @@ type DBusNodeInfo struct { | |||||
| 353 | var xDBusNodeInfoGLibType func() types.GType | 322 | var xDBusNodeInfoGLibType func() types.GType | ||
| 354 | 323 | ||||
| 355 | func DBusNodeInfoGLibType() types.GType { | 324 | func DBusNodeInfoGLibType() types.GType { | ||
| 356 | - | core.LazyRegister(&xDBusNodeInfoGLibType, "GIO", "g_dbus_node_info_get_type", false) | |||
| 357 | return xDBusNodeInfoGLibType() | 325 | return xDBusNodeInfoGLibType() | ||
| 358 | } | 326 | } | ||
| 359 | 327 | ||||
| @@ -380,7 +348,6 @@ var xNewDBusNodeInfoForXml func(string, **glib.Error) uintptr | |||||
| 380 | // [GMarkup](../glib/markup.html)-based | 348 | // [GMarkup](../glib/markup.html)-based | ||
| 381 | // parser that only accepts a subset of valid XML documents. | 349 | // parser that only accepts a subset of valid XML documents. | ||
| 382 | func NewDBusNodeInfoForXml(XmlDataVar string) (*DBusNodeInfo, error) { | 350 | func NewDBusNodeInfoForXml(XmlDataVar string) (*DBusNodeInfo, error) { | ||
| 383 | - | core.LazyRegister(&xNewDBusNodeInfoForXml, "GIO", "g_dbus_node_info_new_for_xml", false) | |||
| 384 | var cerr *glib.Error | 351 | var cerr *glib.Error | ||
| 385 | 352 | ||||
| 386 | cret := xNewDBusNodeInfoForXml(XmlDataVar, &cerr) | 353 | cret := xNewDBusNodeInfoForXml(XmlDataVar, &cerr) | ||
| @@ -400,8 +367,6 @@ var xDBusNodeInfoGenerateXml func(uintptr, uint, *glib.String) | |||||
| 400 | // This function is typically used for generating introspection XML documents at run-time for | 367 | // This function is typically used for generating introspection XML documents at run-time for | ||
| 401 | // handling the `org.freedesktop.DBus.Introspectable.Introspect` method. | 368 | // handling the `org.freedesktop.DBus.Introspectable.Introspect` method. | ||
| 402 | func (x *DBusNodeInfo) GenerateXml(IndentVar uint, StringBuilderVar *glib.String) { | 369 | func (x *DBusNodeInfo) GenerateXml(IndentVar uint, StringBuilderVar *glib.String) { | ||
| 403 | - | core.LazyRegister(&xDBusNodeInfoGenerateXml, "GIO", "g_dbus_node_info_generate_xml", false) | |||
| 404 | - | ||||
| 405 | xDBusNodeInfoGenerateXml(x.GoPointer(), IndentVar, StringBuilderVar) | 370 | xDBusNodeInfoGenerateXml(x.GoPointer(), IndentVar, StringBuilderVar) | ||
| 406 | } | 371 | } | ||
| 407 | 372 | ||||
| @@ -411,8 +376,6 @@ var xDBusNodeInfoLookupInterface func(uintptr, string) uintptr | |||||
| 411 | // | 376 | // | ||
| 412 | // The cost of this function is O(n) in number of interfaces. | 377 | // The cost of this function is O(n) in number of interfaces. | ||
| 413 | func (x *DBusNodeInfo) LookupInterface(NameVar string) *DBusInterfaceInfo { | 378 | func (x *DBusNodeInfo) LookupInterface(NameVar string) *DBusInterfaceInfo { | ||
| 414 | - | core.LazyRegister(&xDBusNodeInfoLookupInterface, "GIO", "g_dbus_node_info_lookup_interface", false) | |||
| 415 | - | ||||
| 416 | cret := xDBusNodeInfoLookupInterface(x.GoPointer(), NameVar) | 379 | cret := xDBusNodeInfoLookupInterface(x.GoPointer(), NameVar) | ||
| 417 | if cret == 0 { | 380 | if cret == 0 { | ||
| 418 | return nil | 381 | return nil | ||
| @@ -425,8 +388,6 @@ var xDBusNodeInfoRef func(uintptr) uintptr | |||||
| 425 | // If @info is statically allocated does nothing. Otherwise increases | 388 | // If @info is statically allocated does nothing. Otherwise increases | ||
| 426 | // the reference count. | 389 | // the reference count. | ||
| 427 | func (x *DBusNodeInfo) Ref() *DBusNodeInfo { | 390 | func (x *DBusNodeInfo) Ref() *DBusNodeInfo { | ||
| 428 | - | core.LazyRegister(&xDBusNodeInfoRef, "GIO", "g_dbus_node_info_ref", false) | |||
| 429 | - | ||||
| 430 | cret := xDBusNodeInfoRef(x.GoPointer()) | 391 | cret := xDBusNodeInfoRef(x.GoPointer()) | ||
| 431 | if cret == 0 { | 392 | if cret == 0 { | ||
| 432 | return nil | 393 | return nil | ||
| @@ -440,8 +401,6 @@ var xDBusNodeInfoUnref func(uintptr) | |||||
| 440 | // the reference count of @info. When its reference count drops to 0, | 401 | // the reference count of @info. When its reference count drops to 0, | ||
| 441 | // the memory used is freed. | 402 | // the memory used is freed. | ||
| 442 | func (x *DBusNodeInfo) Unref() { | 403 | func (x *DBusNodeInfo) Unref() { | ||
| 443 | - | core.LazyRegister(&xDBusNodeInfoUnref, "GIO", "g_dbus_node_info_unref", false) | |||
| 444 | - | ||||
| 445 | xDBusNodeInfoUnref(x.GoPointer()) | 404 | xDBusNodeInfoUnref(x.GoPointer()) | ||
| 446 | } | 405 | } | ||
| 447 | 406 | ||||
| @@ -463,7 +422,6 @@ type DBusPropertyInfo struct { | |||||
| 463 | var xDBusPropertyInfoGLibType func() types.GType | 422 | var xDBusPropertyInfoGLibType func() types.GType | ||
| 464 | 423 | ||||
| 465 | func DBusPropertyInfoGLibType() types.GType { | 424 | func DBusPropertyInfoGLibType() types.GType { | ||
| 466 | - | core.LazyRegister(&xDBusPropertyInfoGLibType, "GIO", "g_dbus_property_info_get_type", false) | |||
| 467 | return xDBusPropertyInfoGLibType() | 425 | return xDBusPropertyInfoGLibType() | ||
| 468 | } | 426 | } | ||
| 469 | 427 | ||||
| @@ -484,8 +442,6 @@ var xDBusPropertyInfoRef func(uintptr) uintptr | |||||
| 484 | // If @info is statically allocated does nothing. Otherwise increases | 442 | // If @info is statically allocated does nothing. Otherwise increases | ||
| 485 | // the reference count. | 443 | // the reference count. | ||
| 486 | func (x *DBusPropertyInfo) Ref() *DBusPropertyInfo { | 444 | func (x *DBusPropertyInfo) Ref() *DBusPropertyInfo { | ||
| 487 | - | core.LazyRegister(&xDBusPropertyInfoRef, "GIO", "g_dbus_property_info_ref", false) | |||
| 488 | - | ||||
| 489 | cret := xDBusPropertyInfoRef(x.GoPointer()) | 445 | cret := xDBusPropertyInfoRef(x.GoPointer()) | ||
| 490 | if cret == 0 { | 446 | if cret == 0 { | ||
| 491 | return nil | 447 | return nil | ||
| @@ -499,8 +455,6 @@ var xDBusPropertyInfoUnref func(uintptr) | |||||
| 499 | // the reference count of @info. When its reference count drops to 0, | 455 | // the reference count of @info. When its reference count drops to 0, | ||
| 500 | // the memory used is freed. | 456 | // the memory used is freed. | ||
| 501 | func (x *DBusPropertyInfo) Unref() { | 457 | func (x *DBusPropertyInfo) Unref() { | ||
| 502 | - | core.LazyRegister(&xDBusPropertyInfoUnref, "GIO", "g_dbus_property_info_unref", false) | |||
| 503 | - | ||||
| 504 | xDBusPropertyInfoUnref(x.GoPointer()) | 458 | xDBusPropertyInfoUnref(x.GoPointer()) | ||
| 505 | } | 459 | } | ||
| 506 | 460 | ||||
| @@ -520,7 +474,6 @@ type DBusSignalInfo struct { | |||||
| 520 | var xDBusSignalInfoGLibType func() types.GType | 474 | var xDBusSignalInfoGLibType func() types.GType | ||
| 521 | 475 | ||||
| 522 | func DBusSignalInfoGLibType() types.GType { | 476 | func DBusSignalInfoGLibType() types.GType { | ||
| 523 | - | core.LazyRegister(&xDBusSignalInfoGLibType, "GIO", "g_dbus_signal_info_get_type", false) | |||
| 524 | return xDBusSignalInfoGLibType() | 477 | return xDBusSignalInfoGLibType() | ||
| 525 | } | 478 | } | ||
| 526 | 479 | ||||
| @@ -541,8 +494,6 @@ var xDBusSignalInfoRef func(uintptr) uintptr | |||||
| 541 | // If @info is statically allocated does nothing. Otherwise increases | 494 | // If @info is statically allocated does nothing. Otherwise increases | ||
| 542 | // the reference count. | 495 | // the reference count. | ||
| 543 | func (x *DBusSignalInfo) Ref() *DBusSignalInfo { | 496 | func (x *DBusSignalInfo) Ref() *DBusSignalInfo { | ||
| 544 | - | core.LazyRegister(&xDBusSignalInfoRef, "GIO", "g_dbus_signal_info_ref", false) | |||
| 545 | - | ||||
| 546 | cret := xDBusSignalInfoRef(x.GoPointer()) | 497 | cret := xDBusSignalInfoRef(x.GoPointer()) | ||
| 547 | if cret == 0 { | 498 | if cret == 0 { | ||
| 548 | return nil | 499 | return nil | ||
| @@ -556,8 +507,6 @@ var xDBusSignalInfoUnref func(uintptr) | |||||
| 556 | // the reference count of @info. When its reference count drops to 0, | 507 | // the reference count of @info. When its reference count drops to 0, | ||
| 557 | // the memory used is freed. | 508 | // the memory used is freed. | ||
| 558 | func (x *DBusSignalInfo) Unref() { | 509 | func (x *DBusSignalInfo) Unref() { | ||
| 559 | - | core.LazyRegister(&xDBusSignalInfoUnref, "GIO", "g_dbus_signal_info_unref", false) | |||
| 560 | - | ||||
| 561 | xDBusSignalInfoUnref(x.GoPointer()) | 510 | xDBusSignalInfoUnref(x.GoPointer()) | ||
| 562 | } | 511 | } | ||
| 563 | 512 | ||||
| @@ -567,8 +516,6 @@ var xDbusAnnotationInfoLookup func(uintptr, string) string | |||||
| 567 | // | 516 | // | ||
| 568 | // The cost of this function is O(n) in number of annotations. | 517 | // The cost of this function is O(n) in number of annotations. | ||
| 569 | func DbusAnnotationInfoLookup(AnnotationsVar uintptr, NameVar string) string { | 518 | func DbusAnnotationInfoLookup(AnnotationsVar uintptr, NameVar string) string { | ||
| 570 | - | core.LazyRegister(&xDbusAnnotationInfoLookup, "GIO", "g_dbus_annotation_info_lookup", false) | |||
| 571 | - | ||||
| 572 | cret := xDbusAnnotationInfoLookup(AnnotationsVar, NameVar) | 519 | cret := xDbusAnnotationInfoLookup(AnnotationsVar, NameVar) | ||
| 573 | return cret | 520 | return cret | ||
| 574 | } | 521 | } | ||
| @@ -576,4 +523,59 @@ func DbusAnnotationInfoLookup(AnnotationsVar uintptr, NameVar string) string { | |||||
| 576 | func init() { | 523 | func init() { | ||
| 577 | core.SetPackageName("GIO", "gio-2.0") | 524 | core.SetPackageName("GIO", "gio-2.0") | ||
| 578 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | 525 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | ||
| 526 | + | var libs []uintptr | |||
| 527 | + | for _, libPath := range core.GetPaths("GIO") { | |||
| 528 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 529 | + | if err != nil { | |||
| 530 | + | panic(err) | |||
| 531 | + | } | |||
| 532 | + | libs = append(libs, lib) | |||
| 533 | + | } | |||
| 534 | + | ||||
| 535 | + | core.PuregoSafeRegister(&xDbusAnnotationInfoLookup, libs, "g_dbus_annotation_info_lookup") | |||
| 536 | + | ||||
| 537 | + | core.PuregoSafeRegister(&xDBusAnnotationInfoGLibType, libs, "g_dbus_annotation_info_get_type") | |||
| 538 | + | ||||
| 539 | + | core.PuregoSafeRegister(&xDBusAnnotationInfoRef, libs, "g_dbus_annotation_info_ref") | |||
| 540 | + | core.PuregoSafeRegister(&xDBusAnnotationInfoUnref, libs, "g_dbus_annotation_info_unref") | |||
| 541 | + | ||||
| 542 | + | core.PuregoSafeRegister(&xDBusArgInfoGLibType, libs, "g_dbus_arg_info_get_type") | |||
| 543 | + | ||||
| 544 | + | core.PuregoSafeRegister(&xDBusArgInfoRef, libs, "g_dbus_arg_info_ref") | |||
| 545 | + | core.PuregoSafeRegister(&xDBusArgInfoUnref, libs, "g_dbus_arg_info_unref") | |||
| 546 | + | ||||
| 547 | + | core.PuregoSafeRegister(&xDBusInterfaceInfoGLibType, libs, "g_dbus_interface_info_get_type") | |||
| 548 | + | ||||
| 549 | + | core.PuregoSafeRegister(&xDBusInterfaceInfoCacheBuild, libs, "g_dbus_interface_info_cache_build") | |||
| 550 | + | core.PuregoSafeRegister(&xDBusInterfaceInfoCacheRelease, libs, "g_dbus_interface_info_cache_release") | |||
| 551 | + | core.PuregoSafeRegister(&xDBusInterfaceInfoGenerateXml, libs, "g_dbus_interface_info_generate_xml") | |||
| 552 | + | core.PuregoSafeRegister(&xDBusInterfaceInfoLookupMethod, libs, "g_dbus_interface_info_lookup_method") | |||
| 553 | + | core.PuregoSafeRegister(&xDBusInterfaceInfoLookupProperty, libs, "g_dbus_interface_info_lookup_property") | |||
| 554 | + | core.PuregoSafeRegister(&xDBusInterfaceInfoLookupSignal, libs, "g_dbus_interface_info_lookup_signal") | |||
| 555 | + | core.PuregoSafeRegister(&xDBusInterfaceInfoRef, libs, "g_dbus_interface_info_ref") | |||
| 556 | + | core.PuregoSafeRegister(&xDBusInterfaceInfoUnref, libs, "g_dbus_interface_info_unref") | |||
| 557 | + | ||||
| 558 | + | core.PuregoSafeRegister(&xDBusMethodInfoGLibType, libs, "g_dbus_method_info_get_type") | |||
| 559 | + | ||||
| 560 | + | core.PuregoSafeRegister(&xDBusMethodInfoRef, libs, "g_dbus_method_info_ref") | |||
| 561 | + | core.PuregoSafeRegister(&xDBusMethodInfoUnref, libs, "g_dbus_method_info_unref") | |||
| 562 | + | ||||
| 563 | + | core.PuregoSafeRegister(&xDBusNodeInfoGLibType, libs, "g_dbus_node_info_get_type") | |||
| 564 | + | ||||
| 565 | + | core.PuregoSafeRegister(&xNewDBusNodeInfoForXml, libs, "g_dbus_node_info_new_for_xml") | |||
| 566 | + | ||||
| 567 | + | core.PuregoSafeRegister(&xDBusNodeInfoGenerateXml, libs, "g_dbus_node_info_generate_xml") | |||
| 568 | + | core.PuregoSafeRegister(&xDBusNodeInfoLookupInterface, libs, "g_dbus_node_info_lookup_interface") | |||
| 569 | + | core.PuregoSafeRegister(&xDBusNodeInfoRef, libs, "g_dbus_node_info_ref") | |||
| 570 | + | core.PuregoSafeRegister(&xDBusNodeInfoUnref, libs, "g_dbus_node_info_unref") | |||
| 571 | + | ||||
| 572 | + | core.PuregoSafeRegister(&xDBusPropertyInfoGLibType, libs, "g_dbus_property_info_get_type") | |||
| 573 | + | ||||
| 574 | + | core.PuregoSafeRegister(&xDBusPropertyInfoRef, libs, "g_dbus_property_info_ref") | |||
| 575 | + | core.PuregoSafeRegister(&xDBusPropertyInfoUnref, libs, "g_dbus_property_info_unref") | |||
| 576 | + | ||||
| 577 | + | core.PuregoSafeRegister(&xDBusSignalInfoGLibType, libs, "g_dbus_signal_info_get_type") | |||
| 578 | + | ||||
| 579 | + | core.PuregoSafeRegister(&xDBusSignalInfoRef, libs, "g_dbus_signal_info_ref") | |||
| 580 | + | core.PuregoSafeRegister(&xDBusSignalInfoUnref, libs, "g_dbus_signal_info_unref") | |||
| 579 | } | 581 | } | ||