Merge pull request #349 from bnema/fix/rollback-lazy-puregotk
fix(deps): emergency rollback puregotk lazy registration regression
905 files · +25263 -27842
M go.mod +1 -1
| @@ -11,7 +11,7 @@ require ( | |||
| 11 | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | |
| 12 | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | |
| 13 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | |
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | |
| 14 | + | github.com/bnema/puregotk v0.7.0 | |
| 15 | 15 | github.com/charmbracelet/bubbles v1.0.0 | |
| 16 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | |
| 17 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | |
| @@ -11,7 +11,7 @@ require ( | |||||
| 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | ||
| 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | ||
| 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | ||
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | 14 | + | github.com/bnema/puregotk v0.7.0 |
| 15 | github.com/charmbracelet/bubbles v1.0.0 | 15 | github.com/charmbracelet/bubbles v1.0.0 | ||
| 16 | github.com/charmbracelet/bubbletea v1.3.10 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | ||
| 17 | github.com/charmbracelet/lipgloss v1.1.0 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | ||
M go.sum +0 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/internal/core/core.go +4 -197 generated file: collapsed
M vendor/github.com/bnema/puregotk/pkg/core/core.go +0 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-dialog.go +64 -99 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-window.go +62 -95 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-accent-color.go +15 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-action-row.go +29 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-alert-dialog.go +47 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-target.go +27 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-util.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation.go +26 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application-window.go +22 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-avatar.go +25 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-banner.go +26 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bin.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bottom-sheet.go +38 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint-bin.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint.go +37 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-content.go +22 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-row.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-dots.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-lines.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel.go +37 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-layout.go +20 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-scrollable.go +22 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp.go +22 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-combo-row.go +33 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-dialog.go +38 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-easing.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-entry-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-enum-list-model.go +22 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-expander-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-flap.go +48 -61 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-fold-threshold-policy.go +1 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-header-bar.go +33 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-inline-view-switcher.go +24 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout-slot.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout.go +17 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-leaflet.go +56 -69 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-length-unit.go +14 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-main.go +15 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-message-dialog.go +44 -63 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-multi-layout-view.go +23 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-direction.go +1 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-split-view.go +32 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-view.go +49 -60 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-overlay-split-view.go +38 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-password-entry-row.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-dialog.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-group.go +26 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-page.go +33 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-row.go +22 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-window.go +29 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcut-label.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-dialog.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-item.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-section.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-item.go +37 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-section.go +27 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar.go +39 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spin-row.go +34 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner-paintable.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-split-button.go +34 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-animation.go +30 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-params.go +21 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-squeezer.go +44 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-status-page.go +24 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-style-manager.go +28 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipe-tracker.go +30 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipeable.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-switch-row.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-bar.go +32 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-button.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-overview.go +37 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-view.go +87 -123 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-timed-animation.go +28 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast-overlay.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast.go +36 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toggle-group.go +51 -64 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toolbar-view.go +35 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-version.go +16 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-stack.go +62 -78 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-bar.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-sidebar.go +22 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-title.go +23 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher.go +20 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window-title.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window.go +22 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-box.go +46 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-layout.go +46 -57 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/cairo/main.go +79 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkapplaunchcontext.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairo.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairocontext.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcicpparams.go +25 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkclipboard.go +32 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcolorstate.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentdeserializer.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentformats.go +31 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentprovider.go +28 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentserializer.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcursor.go +21 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevice.go +33 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicepad.go +22 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicetool.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplay.go +43 -51 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplaymanager.go +20 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexture.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexturebuilder.go +41 -53 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrag.go +28 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurface.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurfacesize.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrawcontext.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrop.go +24 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkenums.go +1 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkevents.go +118 -120 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframeclock.go +24 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframetimings.go +20 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkglcontext.go +36 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexture.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexturebuilder.go +35 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkkeys.go +22 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexture.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexturebuilder.go +35 -42 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmonitor.go +27 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpaintable.go +33 -63 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpango.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpixbuf.go +12 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopup.go +26 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopuplayout.go +32 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkrgba.go +21 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkseat.go +20 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksnapshot.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksurface.go +40 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktexture.go +31 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevel.go +66 -157 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevellayout.go +25 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevelsize.go +16 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktypes.go +72 -95 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkvulkancontext.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-animation.go +32 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-core.go +0 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-io.go +23 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-loader.go +22 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-simple-anim.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-transform.go +1 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf.go +79 -102 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/main.go +17 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gaction.go +31 -59 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactiongroup.go +39 -96 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactionmap.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gappinfo.go +116 -244 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplication.go +55 -79 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplicationcommandline.go +27 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncinitable.go +22 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncresult.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedinputstream.go +29 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedoutputstream.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbytesicon.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcancellable.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcharsetconverter.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcontenttype.go +26 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverter.go +20 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverterinputstream.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverteroutputstream.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcredentials.go +21 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatagrambased.go +30 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatainputstream.go +35 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdataoutputstream.go +23 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusactiongroup.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusaddress.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusauthobserver.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusconnection.go +66 -77
| @@ -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" | |
| @@ -239,8 +240,6 @@ var xBusGet func(BusType, uintptr, uintptr, uintptr) | |||
| 239 | 240 | // This is an asynchronous failable function. See g_bus_get_sync() for | |
| 240 | 241 | // the synchronous version. | |
| 241 | 242 | func BusGet(BusTypeVar BusType, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 242 | - | core.LazyRegister(&xBusGet, "GIO", "g_bus_get", false) | |
| 243 | - | ||
| 244 | 243 | xBusGet(BusTypeVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 245 | 244 | } | |
| 246 | 245 | ||
| @@ -259,7 +258,6 @@ var xBusGetFinish func(uintptr, **glib.Error) uintptr | |||
| 259 | 258 | // Note that the returned #GDBusConnection object will (usually) have | |
| 260 | 259 | // the #GDBusConnection:exit-on-close property set to %TRUE. | |
| 261 | 260 | func BusGetFinish(ResVar AsyncResult) (*DBusConnection, error) { | |
| 262 | - | core.LazyRegister(&xBusGetFinish, "GIO", "g_bus_get_finish", false) | |
| 263 | 261 | var cls *DBusConnection | |
| 264 | 262 | var cerr *glib.Error | |
| 265 | 263 | ||
| @@ -297,7 +295,6 @@ var xBusGetSync func(BusType, uintptr, **glib.Error) uintptr | |||
| 297 | 295 | // Note that the returned #GDBusConnection object will (usually) have | |
| 298 | 296 | // the #GDBusConnection:exit-on-close property set to %TRUE. | |
| 299 | 297 | func BusGetSync(BusTypeVar BusType, CancellableVar *Cancellable) (*DBusConnection, error) { | |
| 300 | - | core.LazyRegister(&xBusGetSync, "GIO", "g_bus_get_sync", false) | |
| 301 | 298 | var cls *DBusConnection | |
| 302 | 299 | var cerr *glib.Error | |
| 303 | 300 | ||
| @@ -373,7 +370,6 @@ type DBusConnection struct { | |||
| 373 | 370 | var xDBusConnectionGLibType func() types.GType | |
| 374 | 371 | ||
| 375 | 372 | func DBusConnectionGLibType() types.GType { | |
| 376 | - | core.LazyRegister(&xDBusConnectionGLibType, "GIO", "g_dbus_connection_get_type", false) | |
| 377 | 373 | return xDBusConnectionGLibType() | |
| 378 | 374 | } | |
| 379 | 375 | ||
| @@ -387,7 +383,6 @@ var xNewDBusConnectionFinish func(uintptr, **glib.Error) uintptr | |||
| 387 | 383 | ||
| 388 | 384 | // Finishes an operation started with g_dbus_connection_new(). | |
| 389 | 385 | func NewDBusConnectionFinish(ResVar AsyncResult) (*DBusConnection, error) { | |
| 390 | - | core.LazyRegister(&xNewDBusConnectionFinish, "GIO", "g_dbus_connection_new_finish", false) | |
| 391 | 386 | var cls *DBusConnection | |
| 392 | 387 | var cerr *glib.Error | |
| 393 | 388 | ||
| @@ -408,7 +403,6 @@ var xNewDBusConnectionForAddressFinish func(uintptr, **glib.Error) uintptr | |||
| 408 | 403 | ||
| 409 | 404 | // Finishes an operation started with g_dbus_connection_new_for_address(). | |
| 410 | 405 | func NewDBusConnectionForAddressFinish(ResVar AsyncResult) (*DBusConnection, error) { | |
| 411 | - | core.LazyRegister(&xNewDBusConnectionForAddressFinish, "GIO", "g_dbus_connection_new_for_address_finish", false) | |
| 412 | 406 | var cls *DBusConnection | |
| 413 | 407 | var cerr *glib.Error | |
| 414 | 408 | ||
| @@ -445,7 +439,6 @@ var xNewDBusConnectionForAddressSync func(string, DBusConnectionFlags, uintptr, | |||
| 445 | 439 | // If @observer is not %NULL it may be used to control the | |
| 446 | 440 | // authentication process. | |
| 447 | 441 | func NewDBusConnectionForAddressSync(AddressVar string, FlagsVar DBusConnectionFlags, ObserverVar *DBusAuthObserver, CancellableVar *Cancellable) (*DBusConnection, error) { | |
| 448 | - | core.LazyRegister(&xNewDBusConnectionForAddressSync, "GIO", "g_dbus_connection_new_for_address_sync", false) | |
| 449 | 442 | var cls *DBusConnection | |
| 450 | 443 | var cerr *glib.Error | |
| 451 | 444 | ||
| @@ -480,7 +473,6 @@ var xNewDBusConnectionSync func(uintptr, uintptr, DBusConnectionFlags, uintptr, | |||
| 480 | 473 | // This is a synchronous failable constructor. See | |
| 481 | 474 | // g_dbus_connection_new() for the asynchronous version. | |
| 482 | 475 | func NewDBusConnectionSync(StreamVar *IOStream, GuidVar *string, FlagsVar DBusConnectionFlags, ObserverVar *DBusAuthObserver, CancellableVar *Cancellable) (*DBusConnection, error) { | |
| 483 | - | core.LazyRegister(&xNewDBusConnectionSync, "GIO", "g_dbus_connection_new_sync", false) | |
| 484 | 476 | var cls *DBusConnection | |
| 485 | 477 | var cerr *glib.Error | |
| 486 | 478 | ||
| @@ -530,8 +522,6 @@ var xDBusConnectionAddFilter func(uintptr, uintptr, uintptr, uintptr) uint | |||
| 530 | 522 | // filter is removed, and may be called after @connection has been | |
| 531 | 523 | // destroyed.) | |
| 532 | 524 | func (x *DBusConnection) AddFilter(FilterFunctionVar *DBusMessageFilterFunction, UserDataVar uintptr, UserDataFreeFuncVar *glib.DestroyNotify) uint { | |
| 533 | - | core.LazyRegister(&xDBusConnectionAddFilter, "GIO", "g_dbus_connection_add_filter", false) | |
| 534 | - | ||
| 535 | 525 | cret := xDBusConnectionAddFilter(x.GoPointer(), glib.NewCallback(FilterFunctionVar), UserDataVar, glib.NewCallback(UserDataFreeFuncVar)) | |
| 536 | 526 | return cret | |
| 537 | 527 | } | |
| @@ -586,8 +576,6 @@ var xDBusConnectionCall func(uintptr, uintptr, string, string, string, *glib.Var | |||
| 586 | 576 | // If @callback is %NULL then the D-Bus method call message will be sent with | |
| 587 | 577 | // the %G_DBUS_MESSAGE_FLAGS_NO_REPLY_EXPECTED flag set. | |
| 588 | 578 | func (x *DBusConnection) Call(BusNameVar *string, ObjectPathVar string, InterfaceNameVar string, MethodNameVar string, ParametersVar *glib.Variant, ReplyTypeVar *glib.VariantType, FlagsVar DBusCallFlags, TimeoutMsecVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 589 | - | core.LazyRegister(&xDBusConnectionCall, "GIO", "g_dbus_connection_call", false) | |
| 590 | - | ||
| 591 | 579 | BusNameVarPtr := core.GStrdupNullable(BusNameVar) | |
| 592 | 580 | defer core.GFreeNullable(BusNameVarPtr) | |
| 593 | 581 | ||
| @@ -598,7 +586,6 @@ var xDBusConnectionCallFinish func(uintptr, uintptr, **glib.Error) uintptr | |||
| 598 | 586 | ||
| 599 | 587 | // Finishes an operation started with g_dbus_connection_call(). | |
| 600 | 588 | func (x *DBusConnection) CallFinish(ResVar AsyncResult) (*glib.Variant, error) { | |
| 601 | - | core.LazyRegister(&xDBusConnectionCallFinish, "GIO", "g_dbus_connection_call_finish", false) | |
| 602 | 589 | var cerr *glib.Error | |
| 603 | 590 | ||
| 604 | 591 | cret := xDBusConnectionCallFinish(x.GoPointer(), ResVar.GoPointer(), &cerr) | |
| @@ -652,7 +639,6 @@ var xDBusConnectionCallSync func(uintptr, uintptr, string, string, string, *glib | |||
| 652 | 639 | // g_dbus_connection_call() for the asynchronous version of | |
| 653 | 640 | // this method. | |
| 654 | 641 | func (x *DBusConnection) CallSync(BusNameVar *string, ObjectPathVar string, InterfaceNameVar string, MethodNameVar string, ParametersVar *glib.Variant, ReplyTypeVar *glib.VariantType, FlagsVar DBusCallFlags, TimeoutMsecVar int, CancellableVar *Cancellable) (*glib.Variant, error) { | |
| 655 | - | core.LazyRegister(&xDBusConnectionCallSync, "GIO", "g_dbus_connection_call_sync", false) | |
| 656 | 642 | var cerr *glib.Error | |
| 657 | 643 | ||
| 658 | 644 | BusNameVarPtr := core.GStrdupNullable(BusNameVar) | |
| @@ -686,8 +672,6 @@ var xDBusConnectionCallWithUnixFdList func(uintptr, uintptr, string, string, str | |||
| 686 | 672 | // | |
| 687 | 673 | // This method is only available on UNIX. | |
| 688 | 674 | func (x *DBusConnection) CallWithUnixFdList(BusNameVar *string, ObjectPathVar string, InterfaceNameVar string, MethodNameVar string, ParametersVar *glib.Variant, ReplyTypeVar *glib.VariantType, FlagsVar DBusCallFlags, TimeoutMsecVar int, FdListVar *UnixFDList, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 689 | - | core.LazyRegister(&xDBusConnectionCallWithUnixFdList, "GIO", "g_dbus_connection_call_with_unix_fd_list", false) | |
| 690 | - | ||
| 691 | 675 | BusNameVarPtr := core.GStrdupNullable(BusNameVar) | |
| 692 | 676 | defer core.GFreeNullable(BusNameVarPtr) | |
| 693 | 677 | ||
| @@ -709,7 +693,6 @@ var xDBusConnectionCallWithUnixFdListFinish func(uintptr, **UnixFDList, uintptr, | |||
| 709 | 693 | // access file descriptors if they are referenced in this way by a | |
| 710 | 694 | // value of type %G_VARIANT_TYPE_HANDLE in the body of the message. | |
| 711 | 695 | func (x *DBusConnection) CallWithUnixFdListFinish(OutFdListVar **UnixFDList, ResVar AsyncResult) (*glib.Variant, error) { | |
| 712 | - | core.LazyRegister(&xDBusConnectionCallWithUnixFdListFinish, "GIO", "g_dbus_connection_call_with_unix_fd_list_finish", false) | |
| 713 | 696 | var cerr *glib.Error | |
| 714 | 697 | ||
| 715 | 698 | cret := xDBusConnectionCallWithUnixFdListFinish(x.GoPointer(), OutFdListVar, ResVar.GoPointer(), &cerr) | |
| @@ -730,7 +713,6 @@ var xDBusConnectionCallWithUnixFdListSync func(uintptr, uintptr, string, string, | |||
| 730 | 713 | // | |
| 731 | 714 | // This method is only available on UNIX. | |
| 732 | 715 | func (x *DBusConnection) CallWithUnixFdListSync(BusNameVar *string, ObjectPathVar string, InterfaceNameVar string, MethodNameVar string, ParametersVar *glib.Variant, ReplyTypeVar *glib.VariantType, FlagsVar DBusCallFlags, TimeoutMsecVar int, FdListVar *UnixFDList, OutFdListVar **UnixFDList, CancellableVar *Cancellable) (*glib.Variant, error) { | |
| 733 | - | core.LazyRegister(&xDBusConnectionCallWithUnixFdListSync, "GIO", "g_dbus_connection_call_with_unix_fd_list_sync", false) | |
| 734 | 716 | var cerr *glib.Error | |
| 735 | 717 | ||
| 736 | 718 | BusNameVarPtr := core.GStrdupNullable(BusNameVar) | |
| @@ -773,8 +755,6 @@ var xDBusConnectionClose func(uintptr, uintptr, uintptr, uintptr) | |||
| 773 | 755 | // operation. See g_dbus_connection_close_sync() for the synchronous | |
| 774 | 756 | // version. | |
| 775 | 757 | func (x *DBusConnection) Close(CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 776 | - | core.LazyRegister(&xDBusConnectionClose, "GIO", "g_dbus_connection_close", false) | |
| 777 | - | ||
| 778 | 758 | xDBusConnectionClose(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 779 | 759 | } | |
| 780 | 760 | ||
| @@ -782,7 +762,6 @@ var xDBusConnectionCloseFinish func(uintptr, uintptr, **glib.Error) bool | |||
| 782 | 762 | ||
| 783 | 763 | // Finishes an operation started with g_dbus_connection_close(). | |
| 784 | 764 | func (x *DBusConnection) CloseFinish(ResVar AsyncResult) (bool, error) { | |
| 785 | - | core.LazyRegister(&xDBusConnectionCloseFinish, "GIO", "g_dbus_connection_close_finish", false) | |
| 786 | 765 | var cerr *glib.Error | |
| 787 | 766 | ||
| 788 | 767 | cret := xDBusConnectionCloseFinish(x.GoPointer(), ResVar.GoPointer(), &cerr) | |
| @@ -799,7 +778,6 @@ var xDBusConnectionCloseSync func(uintptr, uintptr, **glib.Error) bool | |||
| 799 | 778 | // asynchronous version of this method and more details about what it | |
| 800 | 779 | // does. | |
| 801 | 780 | func (x *DBusConnection) CloseSync(CancellableVar *Cancellable) (bool, error) { | |
| 802 | - | core.LazyRegister(&xDBusConnectionCloseSync, "GIO", "g_dbus_connection_close_sync", false) | |
| 803 | 781 | var cerr *glib.Error | |
| 804 | 782 | ||
| 805 | 783 | cret := xDBusConnectionCloseSync(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| @@ -819,7 +797,6 @@ var xDBusConnectionEmitSignal func(uintptr, uintptr, string, string, string, *gl | |||
| 819 | 797 | // (%G_IO_ERROR_INVALID_ARGUMENT), or if @connection has been closed | |
| 820 | 798 | // (%G_IO_ERROR_CLOSED). | |
| 821 | 799 | func (x *DBusConnection) EmitSignal(DestinationBusNameVar *string, ObjectPathVar string, InterfaceNameVar string, SignalNameVar string, ParametersVar *glib.Variant) (bool, error) { | |
| 822 | - | core.LazyRegister(&xDBusConnectionEmitSignal, "GIO", "g_dbus_connection_emit_signal", false) | |
| 823 | 800 | var cerr *glib.Error | |
| 824 | 801 | ||
| 825 | 802 | DestinationBusNameVarPtr := core.GStrdupNullable(DestinationBusNameVar) | |
| @@ -856,7 +833,6 @@ var xDBusConnectionExportActionGroup func(uintptr, string, uintptr, **glib.Error | |||
| 856 | 833 | // limits a given action group to being exported from only one main | |
| 857 | 834 | // context. | |
| 858 | 835 | func (x *DBusConnection) ExportActionGroup(ObjectPathVar string, ActionGroupVar ActionGroup) (uint, error) { | |
| 859 | - | core.LazyRegister(&xDBusConnectionExportActionGroup, "GIO", "g_dbus_connection_export_action_group", false) | |
| 860 | 836 | var cerr *glib.Error | |
| 861 | 837 | ||
| 862 | 838 | cret := xDBusConnectionExportActionGroup(x.GoPointer(), ObjectPathVar, ActionGroupVar.GoPointer(), &cerr) | |
| @@ -885,7 +861,6 @@ var xDBusConnectionExportMenuModel func(uintptr, string, uintptr, **glib.Error) | |||
| 885 | 861 | // g_dbus_connection_unexport_menu_model() with the return value of | |
| 886 | 862 | // this function. | |
| 887 | 863 | func (x *DBusConnection) ExportMenuModel(ObjectPathVar string, MenuVar *MenuModel) (uint, error) { | |
| 888 | - | core.LazyRegister(&xDBusConnectionExportMenuModel, "GIO", "g_dbus_connection_export_menu_model", false) | |
| 889 | 864 | var cerr *glib.Error | |
| 890 | 865 | ||
| 891 | 866 | cret := xDBusConnectionExportMenuModel(x.GoPointer(), ObjectPathVar, MenuVar.GoPointer(), &cerr) | |
| @@ -912,8 +887,6 @@ var xDBusConnectionFlush func(uintptr, uintptr, uintptr, uintptr) | |||
| 912 | 887 | // operation. See g_dbus_connection_flush_sync() for the synchronous | |
| 913 | 888 | // version. | |
| 914 | 889 | func (x *DBusConnection) Flush(CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 915 | - | core.LazyRegister(&xDBusConnectionFlush, "GIO", "g_dbus_connection_flush", false) | |
| 916 | - | ||
| 917 | 890 | xDBusConnectionFlush(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 918 | 891 | } | |
| 919 | 892 | ||
| @@ -921,7 +894,6 @@ var xDBusConnectionFlushFinish func(uintptr, uintptr, **glib.Error) bool | |||
| 921 | 894 | ||
| 922 | 895 | // Finishes an operation started with g_dbus_connection_flush(). | |
| 923 | 896 | func (x *DBusConnection) FlushFinish(ResVar AsyncResult) (bool, error) { | |
| 924 | - | core.LazyRegister(&xDBusConnectionFlushFinish, "GIO", "g_dbus_connection_flush_finish", false) | |
| 925 | 897 | var cerr *glib.Error | |
| 926 | 898 | ||
| 927 | 899 | cret := xDBusConnectionFlushFinish(x.GoPointer(), ResVar.GoPointer(), &cerr) | |
| @@ -938,7 +910,6 @@ var xDBusConnectionFlushSync func(uintptr, uintptr, **glib.Error) bool | |||
| 938 | 910 | // asynchronous version of this method and more details about what it | |
| 939 | 911 | // does. | |
| 940 | 912 | func (x *DBusConnection) FlushSync(CancellableVar *Cancellable) (bool, error) { | |
| 941 | - | core.LazyRegister(&xDBusConnectionFlushSync, "GIO", "g_dbus_connection_flush_sync", false) | |
| 942 | 913 | var cerr *glib.Error | |
| 943 | 914 | ||
| 944 | 915 | cret := xDBusConnectionFlushSync(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| @@ -952,8 +923,6 @@ var xDBusConnectionGetCapabilities func(uintptr) DBusCapabilityFlags | |||
| 952 | 923 | ||
| 953 | 924 | // Gets the capabilities negotiated with the remote peer | |
| 954 | 925 | func (x *DBusConnection) GetCapabilities() DBusCapabilityFlags { | |
| 955 | - | core.LazyRegister(&xDBusConnectionGetCapabilities, "GIO", "g_dbus_connection_get_capabilities", false) | |
| 956 | - | ||
| 957 | 926 | cret := xDBusConnectionGetCapabilities(x.GoPointer()) | |
| 958 | 927 | return cret | |
| 959 | 928 | } | |
| @@ -964,8 +933,6 @@ var xDBusConnectionGetExitOnClose func(uintptr) bool | |||
| 964 | 933 | // closed by the remote peer. See | |
| 965 | 934 | // #GDBusConnection:exit-on-close for more details. | |
| 966 | 935 | func (x *DBusConnection) GetExitOnClose() bool { | |
| 967 | - | core.LazyRegister(&xDBusConnectionGetExitOnClose, "GIO", "g_dbus_connection_get_exit_on_close", false) | |
| 968 | - | ||
| 969 | 936 | cret := xDBusConnectionGetExitOnClose(x.GoPointer()) | |
| 970 | 937 | return cret | |
| 971 | 938 | } | |
| @@ -974,8 +941,6 @@ var xDBusConnectionGetFlags func(uintptr) DBusConnectionFlags | |||
| 974 | 941 | ||
| 975 | 942 | // Gets the flags used to construct this connection | |
| 976 | 943 | func (x *DBusConnection) GetFlags() DBusConnectionFlags { | |
| 977 | - | core.LazyRegister(&xDBusConnectionGetFlags, "GIO", "g_dbus_connection_get_flags", false) | |
| 978 | - | ||
| 979 | 944 | cret := xDBusConnectionGetFlags(x.GoPointer()) | |
| 980 | 945 | return cret | |
| 981 | 946 | } | |
| @@ -985,8 +950,6 @@ var xDBusConnectionGetGuid func(uintptr) string | |||
| 985 | 950 | // The GUID of the peer performing the role of server when | |
| 986 | 951 | // authenticating. See #GDBusConnection:guid for more details. | |
| 987 | 952 | func (x *DBusConnection) GetGuid() string { | |
| 988 | - | core.LazyRegister(&xDBusConnectionGetGuid, "GIO", "g_dbus_connection_get_guid", false) | |
| 989 | - | ||
| 990 | 953 | cret := xDBusConnectionGetGuid(x.GoPointer()) | |
| 991 | 954 | return cret | |
| 992 | 955 | } | |
| @@ -999,8 +962,6 @@ var xDBusConnectionGetLastSerial func(uintptr) uint32 | |||
| 999 | 962 | // high-level API such as g_dbus_connection_emit_signal(), | |
| 1000 | 963 | // g_dbus_connection_call() or g_dbus_proxy_call(). | |
| 1001 | 964 | func (x *DBusConnection) GetLastSerial() uint32 { | |
| 1002 | - | core.LazyRegister(&xDBusConnectionGetLastSerial, "GIO", "g_dbus_connection_get_last_serial", false) | |
| 1003 | - | ||
| 1004 | 965 | cret := xDBusConnectionGetLastSerial(x.GoPointer()) | |
| 1005 | 966 | return cret | |
| 1006 | 967 | } | |
| @@ -1017,7 +978,6 @@ var xDBusConnectionGetPeerCredentials func(uintptr) uintptr | |||
| 1017 | 978 | // each application is a client. So this method will always return | |
| 1018 | 979 | // %NULL for message bus clients. | |
| 1019 | 980 | func (x *DBusConnection) GetPeerCredentials() *Credentials { | |
| 1020 | - | core.LazyRegister(&xDBusConnectionGetPeerCredentials, "GIO", "g_dbus_connection_get_peer_credentials", false) | |
| 1021 | 981 | var cls *Credentials | |
| 1022 | 982 | ||
| 1023 | 983 | cret := xDBusConnectionGetPeerCredentials(x.GoPointer()) | |
| @@ -1039,7 +999,6 @@ var xDBusConnectionGetStream func(uintptr) uintptr | |||
| 1039 | 999 | // stream from a worker thread, so it is not safe to interact with | |
| 1040 | 1000 | // the stream directly. | |
| 1041 | 1001 | func (x *DBusConnection) GetStream() *IOStream { | |
| 1042 | - | core.LazyRegister(&xDBusConnectionGetStream, "GIO", "g_dbus_connection_get_stream", false) | |
| 1043 | 1002 | var cls *IOStream | |
| 1044 | 1003 | ||
| 1045 | 1004 | cret := xDBusConnectionGetStream(x.GoPointer()) | |
| @@ -1059,8 +1018,6 @@ var xDBusConnectionGetUniqueName func(uintptr) string | |||
| 1059 | 1018 | // bus. This can also be used to figure out if @connection is a | |
| 1060 | 1019 | // message bus connection. | |
| 1061 | 1020 | func (x *DBusConnection) GetUniqueName() string { | |
| 1062 | - | core.LazyRegister(&xDBusConnectionGetUniqueName, "GIO", "g_dbus_connection_get_unique_name", false) | |
| 1063 | - | ||
| 1064 | 1021 | cret := xDBusConnectionGetUniqueName(x.GoPointer()) | |
| 1065 | 1022 | return cret | |
| 1066 | 1023 | } | |
| @@ -1069,8 +1026,6 @@ var xDBusConnectionIsClosed func(uintptr) bool | |||
| 1069 | 1026 | ||
| 1070 | 1027 | // Gets whether @connection is closed. | |
| 1071 | 1028 | func (x *DBusConnection) IsClosed() bool { | |
| 1072 | - | core.LazyRegister(&xDBusConnectionIsClosed, "GIO", "g_dbus_connection_is_closed", false) | |
| 1073 | - | ||
| 1074 | 1029 | cret := xDBusConnectionIsClosed(x.GoPointer()) | |
| 1075 | 1030 | return cret | |
| 1076 | 1031 | } | |
| @@ -1117,7 +1072,6 @@ var xDBusConnectionRegisterObject func(uintptr, string, *DBusInterfaceInfo, *DBu | |||
| 1117 | 1072 | // See this [server][class@Gio.DBusConnection#an-example-d-bus-server] | |
| 1118 | 1073 | // for an example of how to use this method. | |
| 1119 | 1074 | func (x *DBusConnection) RegisterObject(ObjectPathVar string, InterfaceInfoVar *DBusInterfaceInfo, VtableVar *DBusInterfaceVTable, UserDataVar uintptr, UserDataFreeFuncVar *glib.DestroyNotify) (uint, error) { | |
| 1120 | - | core.LazyRegister(&xDBusConnectionRegisterObject, "GIO", "g_dbus_connection_register_object", false) | |
| 1121 | 1075 | var cerr *glib.Error | |
| 1122 | 1076 | ||
| 1123 | 1077 | cret := xDBusConnectionRegisterObject(x.GoPointer(), ObjectPathVar, InterfaceInfoVar, VtableVar, UserDataVar, glib.NewCallback(UserDataFreeFuncVar), &cerr) | |
| @@ -1137,7 +1091,6 @@ var xDBusConnectionRegisterObjectWithClosures func(uintptr, string, *DBusInterfa | |||
| 1137 | 1091 | // [callback@Gio.DBusInterfaceMethodCallFunc]: ownership of a reference to the | |
| 1138 | 1092 | // [class@Gio.DBusMethodInvocation] is transferred to the function. | |
| 1139 | 1093 | func (x *DBusConnection) RegisterObjectWithClosures(ObjectPathVar string, InterfaceInfoVar *DBusInterfaceInfo, MethodCallClosureVar *gobject.Closure, GetPropertyClosureVar *gobject.Closure, SetPropertyClosureVar *gobject.Closure) (uint, error) { | |
| 1140 | - | core.LazyRegister(&xDBusConnectionRegisterObjectWithClosures, "GIO", "g_dbus_connection_register_object_with_closures", false) | |
| 1141 | 1094 | var cerr *glib.Error | |
| 1142 | 1095 | ||
| 1143 | 1096 | cret := xDBusConnectionRegisterObjectWithClosures(x.GoPointer(), ObjectPathVar, InterfaceInfoVar, MethodCallClosureVar, GetPropertyClosureVar, SetPropertyClosureVar, &cerr) | |
| @@ -1162,7 +1115,6 @@ var xDBusConnectionRegisterObjectWithClosures2 func(uintptr, string, *DBusInterf | |||
| 1162 | 1115 | // `g_dbus_method_invocation_return_*()` methods on it. This should be automatic | |
| 1163 | 1116 | // as a result of the introspection annotations on those methods. | |
| 1164 | 1117 | func (x *DBusConnection) RegisterObjectWithClosures2(ObjectPathVar string, InterfaceInfoVar *DBusInterfaceInfo, MethodCallClosureVar *gobject.Closure, GetPropertyClosureVar *gobject.Closure, SetPropertyClosureVar *gobject.Closure) (uint, error) { | |
| 1165 | - | core.LazyRegister(&xDBusConnectionRegisterObjectWithClosures2, "GIO", "g_dbus_connection_register_object_with_closures2", false) | |
| 1166 | 1118 | var cerr *glib.Error | |
| 1167 | 1119 | ||
| 1168 | 1120 | cret := xDBusConnectionRegisterObjectWithClosures2(x.GoPointer(), ObjectPathVar, InterfaceInfoVar, MethodCallClosureVar, GetPropertyClosureVar, SetPropertyClosureVar, &cerr) | |
| @@ -1209,7 +1161,6 @@ var xDBusConnectionRegisterSubtree func(uintptr, string, *DBusSubtreeVTable, DBu | |||
| 1209 | 1161 | // See this [server][class@Gio.DBusConnection#an-example-for-exporting-a-subtree] | |
| 1210 | 1162 | // for an example of how to use this method. | |
| 1211 | 1163 | func (x *DBusConnection) RegisterSubtree(ObjectPathVar string, VtableVar *DBusSubtreeVTable, FlagsVar DBusSubtreeFlags, UserDataVar uintptr, UserDataFreeFuncVar *glib.DestroyNotify) (uint, error) { | |
| 1212 | - | core.LazyRegister(&xDBusConnectionRegisterSubtree, "GIO", "g_dbus_connection_register_subtree", false) | |
| 1213 | 1164 | var cerr *glib.Error | |
| 1214 | 1165 | ||
| 1215 | 1166 | cret := xDBusConnectionRegisterSubtree(x.GoPointer(), ObjectPathVar, VtableVar, FlagsVar, UserDataVar, glib.NewCallback(UserDataFreeFuncVar), &cerr) | |
| @@ -1230,8 +1181,6 @@ var xDBusConnectionRemoveFilter func(uintptr, uint) | |||
| 1230 | 1181 | // a #GDestroyNotify to g_dbus_connection_add_filter(), which will be | |
| 1231 | 1182 | // called when it is guaranteed that the data is no longer needed. | |
| 1232 | 1183 | func (x *DBusConnection) RemoveFilter(FilterIdVar uint) { | |
| 1233 | - | core.LazyRegister(&xDBusConnectionRemoveFilter, "GIO", "g_dbus_connection_remove_filter", false) | |
| 1234 | - | ||
| 1235 | 1184 | xDBusConnectionRemoveFilter(x.GoPointer(), FilterIdVar) | |
| 1236 | 1185 | } | |
| 1237 | 1186 | ||
| @@ -1260,7 +1209,6 @@ var xDBusConnectionSendMessage func(uintptr, uintptr, DBusSendMessageFlags, *uin | |||
| 1260 | 1209 | // Note that @message must be unlocked, unless @flags contain the | |
| 1261 | 1210 | // %G_DBUS_SEND_MESSAGE_FLAGS_PRESERVE_SERIAL flag. | |
| 1262 | 1211 | func (x *DBusConnection) SendMessage(MessageVar *DBusMessage, FlagsVar DBusSendMessageFlags, OutSerialVar *uint32) (bool, error) { | |
| 1263 | - | core.LazyRegister(&xDBusConnectionSendMessage, "GIO", "g_dbus_connection_send_message", false) | |
| 1264 | 1212 | var cerr *glib.Error | |
| 1265 | 1213 | ||
| 1266 | 1214 | cret := xDBusConnectionSendMessage(x.GoPointer(), MessageVar.GoPointer(), FlagsVar, OutSerialVar, &cerr) | |
| @@ -1303,8 +1251,6 @@ var xDBusConnectionSendMessageWithReply func(uintptr, uintptr, DBusSendMessageFl | |||
| 1303 | 1251 | // for an example of how to use this low-level API to send and receive | |
| 1304 | 1252 | // UNIX file descriptors. | |
| 1305 | 1253 | func (x *DBusConnection) SendMessageWithReply(MessageVar *DBusMessage, FlagsVar DBusSendMessageFlags, TimeoutMsecVar int, OutSerialVar *uint32, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 1306 | - | core.LazyRegister(&xDBusConnectionSendMessageWithReply, "GIO", "g_dbus_connection_send_message_with_reply", false) | |
| 1307 | - | ||
| 1308 | 1254 | xDBusConnectionSendMessageWithReply(x.GoPointer(), MessageVar.GoPointer(), FlagsVar, TimeoutMsecVar, OutSerialVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 1309 | 1255 | } | |
| 1310 | 1256 | ||
| @@ -1322,7 +1268,6 @@ var xDBusConnectionSendMessageWithReplyFinish func(uintptr, uintptr, **glib.Erro | |||
| 1322 | 1268 | // for an example of how to use this low-level API to send and receive | |
| 1323 | 1269 | // UNIX file descriptors. | |
| 1324 | 1270 | func (x *DBusConnection) SendMessageWithReplyFinish(ResVar AsyncResult) (*DBusMessage, error) { | |
| 1325 | - | core.LazyRegister(&xDBusConnectionSendMessageWithReplyFinish, "GIO", "g_dbus_connection_send_message_with_reply_finish", false) | |
| 1326 | 1271 | var cls *DBusMessage | |
| 1327 | 1272 | var cerr *glib.Error | |
| 1328 | 1273 | ||
| @@ -1373,7 +1318,6 @@ var xDBusConnectionSendMessageWithReplySync func(uintptr, uintptr, DBusSendMessa | |||
| 1373 | 1318 | // Note that @message must be unlocked, unless @flags contain the | |
| 1374 | 1319 | // %G_DBUS_SEND_MESSAGE_FLAGS_PRESERVE_SERIAL flag. | |
| 1375 | 1320 | func (x *DBusConnection) SendMessageWithReplySync(MessageVar *DBusMessage, FlagsVar DBusSendMessageFlags, TimeoutMsecVar int, OutSerialVar *uint32, CancellableVar *Cancellable) (*DBusMessage, error) { | |
| 1376 | - | core.LazyRegister(&xDBusConnectionSendMessageWithReplySync, "GIO", "g_dbus_connection_send_message_with_reply_sync", false) | |
| 1377 | 1321 | var cls *DBusMessage | |
| 1378 | 1322 | var cerr *glib.Error | |
| 1379 | 1323 | ||
| @@ -1403,8 +1347,6 @@ var xDBusConnectionSetExitOnClose func(uintptr, bool) | |||
| 1403 | 1347 | // bus connection, you should make sure that your application exits | |
| 1404 | 1348 | // when the user session ends. | |
| 1405 | 1349 | func (x *DBusConnection) SetExitOnClose(ExitOnCloseVar bool) { | |
| 1406 | - | core.LazyRegister(&xDBusConnectionSetExitOnClose, "GIO", "g_dbus_connection_set_exit_on_close", false) | |
| 1407 | - | ||
| 1408 | 1350 | xDBusConnectionSetExitOnClose(x.GoPointer(), ExitOnCloseVar) | |
| 1409 | 1351 | } | |
| 1410 | 1352 | ||
| @@ -1460,8 +1402,6 @@ var xDBusConnectionSignalSubscribe func(uintptr, uintptr, uintptr, uintptr, uint | |||
| 1460 | 1402 | // | |
| 1461 | 1403 | // This function can never fail. | |
| 1462 | 1404 | func (x *DBusConnection) SignalSubscribe(SenderVar *string, InterfaceNameVar *string, MemberVar *string, ObjectPathVar *string, Arg0Var *string, FlagsVar DBusSignalFlags, CallbackVar *DBusSignalCallback, UserDataVar uintptr, UserDataFreeFuncVar *glib.DestroyNotify) uint { | |
| 1463 | - | core.LazyRegister(&xDBusConnectionSignalSubscribe, "GIO", "g_dbus_connection_signal_subscribe", false) | |
| 1464 | - | ||
| 1465 | 1405 | SenderVarPtr := core.GStrdupNullable(SenderVar) | |
| 1466 | 1406 | defer core.GFreeNullable(SenderVarPtr) | |
| 1467 | 1407 | ||
| @@ -1496,8 +1436,6 @@ var xDBusConnectionSignalUnsubscribe func(uintptr, uint) | |||
| 1496 | 1436 | // that was scheduled after unsubscription, also indicates that all resources | |
| 1497 | 1437 | // of this subscription are released. | |
| 1498 | 1438 | func (x *DBusConnection) SignalUnsubscribe(SubscriptionIdVar uint) { | |
| 1499 | - | core.LazyRegister(&xDBusConnectionSignalUnsubscribe, "GIO", "g_dbus_connection_signal_unsubscribe", false) | |
| 1500 | - | ||
| 1501 | 1439 | xDBusConnectionSignalUnsubscribe(x.GoPointer(), SubscriptionIdVar) | |
| 1502 | 1440 | } | |
| 1503 | 1441 | ||
| @@ -1508,8 +1446,6 @@ var xDBusConnectionStartMessageProcessing func(uintptr) | |||
| 1508 | 1446 | // starts processing messages. Does nothing on if @connection wasn't | |
| 1509 | 1447 | // created with this flag or if the method has already been called. | |
| 1510 | 1448 | func (x *DBusConnection) StartMessageProcessing() { | |
| 1511 | - | core.LazyRegister(&xDBusConnectionStartMessageProcessing, "GIO", "g_dbus_connection_start_message_processing", false) | |
| 1512 | - | ||
| 1513 | 1449 | xDBusConnectionStartMessageProcessing(x.GoPointer()) | |
| 1514 | 1450 | } | |
| 1515 | 1451 | ||
| @@ -1522,8 +1458,6 @@ var xDBusConnectionUnexportActionGroup func(uintptr, uint) | |||
| 1522 | 1458 | // [method@Gio.DBusConnection.export_action_group] or to call it with the same | |
| 1523 | 1459 | // ID more than once. | |
| 1524 | 1460 | func (x *DBusConnection) UnexportActionGroup(ExportIdVar uint) { | |
| 1525 | - | core.LazyRegister(&xDBusConnectionUnexportActionGroup, "GIO", "g_dbus_connection_unexport_action_group", false) | |
| 1526 | - | ||
| 1527 | 1461 | xDBusConnectionUnexportActionGroup(x.GoPointer(), ExportIdVar) | |
| 1528 | 1462 | } | |
| 1529 | 1463 | ||
| @@ -1536,8 +1470,6 @@ var xDBusConnectionUnexportMenuModel func(uintptr, uint) | |||
| 1536 | 1470 | // from g_dbus_connection_export_menu_model() or to call it with the | |
| 1537 | 1471 | // same ID more than once. | |
| 1538 | 1472 | func (x *DBusConnection) UnexportMenuModel(ExportIdVar uint) { | |
| 1539 | - | core.LazyRegister(&xDBusConnectionUnexportMenuModel, "GIO", "g_dbus_connection_unexport_menu_model", false) | |
| 1540 | - | ||
| 1541 | 1473 | xDBusConnectionUnexportMenuModel(x.GoPointer(), ExportIdVar) | |
| 1542 | 1474 | } | |
| 1543 | 1475 | ||
| @@ -1545,8 +1477,6 @@ var xDBusConnectionUnregisterObject func(uintptr, uint) bool | |||
| 1545 | 1477 | ||
| 1546 | 1478 | // Unregisters an object. | |
| 1547 | 1479 | func (x *DBusConnection) UnregisterObject(RegistrationIdVar uint) bool { | |
| 1548 | - | core.LazyRegister(&xDBusConnectionUnregisterObject, "GIO", "g_dbus_connection_unregister_object", false) | |
| 1549 | - | ||
| 1550 | 1480 | cret := xDBusConnectionUnregisterObject(x.GoPointer(), RegistrationIdVar) | |
| 1551 | 1481 | return cret | |
| 1552 | 1482 | } | |
| @@ -1555,8 +1485,6 @@ var xDBusConnectionUnregisterSubtree func(uintptr, uint) bool | |||
| 1555 | 1485 | ||
| 1556 | 1486 | // Unregisters a subtree. | |
| 1557 | 1487 | func (x *DBusConnection) UnregisterSubtree(RegistrationIdVar uint) bool { | |
| 1558 | - | core.LazyRegister(&xDBusConnectionUnregisterSubtree, "GIO", "g_dbus_connection_unregister_subtree", false) | |
| 1559 | - | ||
| 1560 | 1488 | cret := xDBusConnectionUnregisterSubtree(x.GoPointer(), RegistrationIdVar) | |
| 1561 | 1489 | return cret | |
| 1562 | 1490 | } | |
| @@ -1865,8 +1793,6 @@ var xDBusConnectionNew func(uintptr, uintptr, DBusConnectionFlags, uintptr, uint | |||
| 1865 | 1793 | // g_dbus_connection_new_sync() for the synchronous | |
| 1866 | 1794 | // version. | |
| 1867 | 1795 | func DBusConnectionNew(StreamVar *IOStream, GuidVar *string, FlagsVar DBusConnectionFlags, ObserverVar *DBusAuthObserver, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 1868 | - | core.LazyRegister(&xDBusConnectionNew, "GIO", "g_dbus_connection_new", false) | |
| 1869 | - | ||
| 1870 | 1796 | GuidVarPtr := core.GStrdupNullable(GuidVar) | |
| 1871 | 1797 | defer core.GFreeNullable(GuidVarPtr) | |
| 1872 | 1798 | ||
| @@ -1898,12 +1824,75 @@ var xDBusConnectionNewForAddress func(string, DBusConnectionFlags, uintptr, uint | |||
| 1898 | 1824 | // g_dbus_connection_new_for_address_sync() for the synchronous | |
| 1899 | 1825 | // version. | |
| 1900 | 1826 | func DBusConnectionNewForAddress(AddressVar string, FlagsVar DBusConnectionFlags, ObserverVar *DBusAuthObserver, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 1901 | - | core.LazyRegister(&xDBusConnectionNewForAddress, "GIO", "g_dbus_connection_new_for_address", false) | |
| 1902 | - | ||
| 1903 | 1827 | xDBusConnectionNewForAddress(AddressVar, FlagsVar, ObserverVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 1904 | 1828 | } | |
| 1905 | 1829 | ||
| 1906 | 1830 | func init() { | |
| 1907 | 1831 | core.SetPackageName("GIO", "gio-2.0") | |
| 1908 | 1832 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | |
| 1833 | + | var libs []uintptr | |
| 1834 | + | for _, libPath := range core.GetPaths("GIO") { | |
| 1835 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 1836 | + | if err != nil { | |
| 1837 | + | panic(err) | |
| 1838 | + | } | |
| 1839 | + | libs = append(libs, lib) | |
| 1840 | + | } | |
| 1841 | + | ||
| 1842 | + | core.PuregoSafeRegister(&xBusGet, libs, "g_bus_get") | |
| 1843 | + | core.PuregoSafeRegister(&xBusGetFinish, libs, "g_bus_get_finish") | |
| 1844 | + | core.PuregoSafeRegister(&xBusGetSync, libs, "g_bus_get_sync") | |
| 1845 | + | ||
| 1846 | + | core.PuregoSafeRegister(&xDBusConnectionGLibType, libs, "g_dbus_connection_get_type") | |
| 1847 | + | ||
| 1848 | + | core.PuregoSafeRegister(&xNewDBusConnectionFinish, libs, "g_dbus_connection_new_finish") | |
| 1849 | + | core.PuregoSafeRegister(&xNewDBusConnectionForAddressFinish, libs, "g_dbus_connection_new_for_address_finish") | |
| 1850 | + | core.PuregoSafeRegister(&xNewDBusConnectionForAddressSync, libs, "g_dbus_connection_new_for_address_sync") | |
| 1851 | + | core.PuregoSafeRegister(&xNewDBusConnectionSync, libs, "g_dbus_connection_new_sync") | |
| 1852 | + | ||
| 1853 | + | core.PuregoSafeRegister(&xDBusConnectionAddFilter, libs, "g_dbus_connection_add_filter") | |
| 1854 | + | core.PuregoSafeRegister(&xDBusConnectionCall, libs, "g_dbus_connection_call") | |
| 1855 | + | core.PuregoSafeRegister(&xDBusConnectionCallFinish, libs, "g_dbus_connection_call_finish") | |
| 1856 | + | core.PuregoSafeRegister(&xDBusConnectionCallSync, libs, "g_dbus_connection_call_sync") | |
| 1857 | + | core.PuregoSafeRegister(&xDBusConnectionCallWithUnixFdList, libs, "g_dbus_connection_call_with_unix_fd_list") | |
| 1858 | + | core.PuregoSafeRegister(&xDBusConnectionCallWithUnixFdListFinish, libs, "g_dbus_connection_call_with_unix_fd_list_finish") | |
| 1859 | + | core.PuregoSafeRegister(&xDBusConnectionCallWithUnixFdListSync, libs, "g_dbus_connection_call_with_unix_fd_list_sync") | |
| 1860 | + | core.PuregoSafeRegister(&xDBusConnectionClose, libs, "g_dbus_connection_close") | |
| 1861 | + | core.PuregoSafeRegister(&xDBusConnectionCloseFinish, libs, "g_dbus_connection_close_finish") | |
| 1862 | + | core.PuregoSafeRegister(&xDBusConnectionCloseSync, libs, "g_dbus_connection_close_sync") | |
| 1863 | + | core.PuregoSafeRegister(&xDBusConnectionEmitSignal, libs, "g_dbus_connection_emit_signal") | |
| 1864 | + | core.PuregoSafeRegister(&xDBusConnectionExportActionGroup, libs, "g_dbus_connection_export_action_group") | |
| 1865 | + | core.PuregoSafeRegister(&xDBusConnectionExportMenuModel, libs, "g_dbus_connection_export_menu_model") | |
| 1866 | + | core.PuregoSafeRegister(&xDBusConnectionFlush, libs, "g_dbus_connection_flush") | |
| 1867 | + | core.PuregoSafeRegister(&xDBusConnectionFlushFinish, libs, "g_dbus_connection_flush_finish") | |
| 1868 | + | core.PuregoSafeRegister(&xDBusConnectionFlushSync, libs, "g_dbus_connection_flush_sync") | |
| 1869 | + | core.PuregoSafeRegister(&xDBusConnectionGetCapabilities, libs, "g_dbus_connection_get_capabilities") | |
| 1870 | + | core.PuregoSafeRegister(&xDBusConnectionGetExitOnClose, libs, "g_dbus_connection_get_exit_on_close") | |
| 1871 | + | core.PuregoSafeRegister(&xDBusConnectionGetFlags, libs, "g_dbus_connection_get_flags") | |
| 1872 | + | core.PuregoSafeRegister(&xDBusConnectionGetGuid, libs, "g_dbus_connection_get_guid") | |
| 1873 | + | core.PuregoSafeRegister(&xDBusConnectionGetLastSerial, libs, "g_dbus_connection_get_last_serial") | |
| 1874 | + | core.PuregoSafeRegister(&xDBusConnectionGetPeerCredentials, libs, "g_dbus_connection_get_peer_credentials") | |
| 1875 | + | core.PuregoSafeRegister(&xDBusConnectionGetStream, libs, "g_dbus_connection_get_stream") | |
| 1876 | + | core.PuregoSafeRegister(&xDBusConnectionGetUniqueName, libs, "g_dbus_connection_get_unique_name") | |
| 1877 | + | core.PuregoSafeRegister(&xDBusConnectionIsClosed, libs, "g_dbus_connection_is_closed") | |
| 1878 | + | core.PuregoSafeRegister(&xDBusConnectionRegisterObject, libs, "g_dbus_connection_register_object") | |
| 1879 | + | core.PuregoSafeRegister(&xDBusConnectionRegisterObjectWithClosures, libs, "g_dbus_connection_register_object_with_closures") | |
| 1880 | + | core.PuregoSafeRegister(&xDBusConnectionRegisterObjectWithClosures2, libs, "g_dbus_connection_register_object_with_closures2") | |
| 1881 | + | core.PuregoSafeRegister(&xDBusConnectionRegisterSubtree, libs, "g_dbus_connection_register_subtree") | |
| 1882 | + | core.PuregoSafeRegister(&xDBusConnectionRemoveFilter, libs, "g_dbus_connection_remove_filter") | |
| 1883 | + | core.PuregoSafeRegister(&xDBusConnectionSendMessage, libs, "g_dbus_connection_send_message") | |
| 1884 | + | core.PuregoSafeRegister(&xDBusConnectionSendMessageWithReply, libs, "g_dbus_connection_send_message_with_reply") | |
| 1885 | + | core.PuregoSafeRegister(&xDBusConnectionSendMessageWithReplyFinish, libs, "g_dbus_connection_send_message_with_reply_finish") | |
| 1886 | + | core.PuregoSafeRegister(&xDBusConnectionSendMessageWithReplySync, libs, "g_dbus_connection_send_message_with_reply_sync") | |
| 1887 | + | core.PuregoSafeRegister(&xDBusConnectionSetExitOnClose, libs, "g_dbus_connection_set_exit_on_close") | |
| 1888 | + | core.PuregoSafeRegister(&xDBusConnectionSignalSubscribe, libs, "g_dbus_connection_signal_subscribe") | |
| 1889 | + | core.PuregoSafeRegister(&xDBusConnectionSignalUnsubscribe, libs, "g_dbus_connection_signal_unsubscribe") | |
| 1890 | + | core.PuregoSafeRegister(&xDBusConnectionStartMessageProcessing, libs, "g_dbus_connection_start_message_processing") | |
| 1891 | + | core.PuregoSafeRegister(&xDBusConnectionUnexportActionGroup, libs, "g_dbus_connection_unexport_action_group") | |
| 1892 | + | core.PuregoSafeRegister(&xDBusConnectionUnexportMenuModel, libs, "g_dbus_connection_unexport_menu_model") | |
| 1893 | + | core.PuregoSafeRegister(&xDBusConnectionUnregisterObject, libs, "g_dbus_connection_unregister_object") | |
| 1894 | + | core.PuregoSafeRegister(&xDBusConnectionUnregisterSubtree, libs, "g_dbus_connection_unregister_subtree") | |
| 1895 | + | ||
| 1896 | + | core.PuregoSafeRegister(&xDBusConnectionNew, libs, "g_dbus_connection_new") | |
| 1897 | + | core.PuregoSafeRegister(&xDBusConnectionNewForAddress, libs, "g_dbus_connection_new_for_address") | |
| 1909 | 1898 | } | |
| @@ -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" | 11 | "github.com/bnema/puregotk/v4/gobject" | ||
| @@ -239,8 +240,6 @@ var xBusGet func(BusType, uintptr, uintptr, uintptr) | |||||
| 239 | // This is an asynchronous failable function. See g_bus_get_sync() for | 240 | // This is an asynchronous failable function. See g_bus_get_sync() for | ||
| 240 | // the synchronous version. | 241 | // the synchronous version. | ||
| 241 | func BusGet(BusTypeVar BusType, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 242 | func BusGet(BusTypeVar BusType, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 242 | - | core.LazyRegister(&xBusGet, "GIO", "g_bus_get", false) | |||
| 243 | - | ||||
| 244 | xBusGet(BusTypeVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | 243 | xBusGet(BusTypeVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | ||
| 245 | } | 244 | } | ||
| 246 | 245 | ||||
| @@ -259,7 +258,6 @@ var xBusGetFinish func(uintptr, **glib.Error) uintptr | |||||
| 259 | // Note that the returned #GDBusConnection object will (usually) have | 258 | // Note that the returned #GDBusConnection object will (usually) have | ||
| 260 | // the #GDBusConnection:exit-on-close property set to %TRUE. | 259 | // the #GDBusConnection:exit-on-close property set to %TRUE. | ||
| 261 | func BusGetFinish(ResVar AsyncResult) (*DBusConnection, error) { | 260 | func BusGetFinish(ResVar AsyncResult) (*DBusConnection, error) { | ||
| 262 | - | core.LazyRegister(&xBusGetFinish, "GIO", "g_bus_get_finish", false) | |||
| 263 | var cls *DBusConnection | 261 | var cls *DBusConnection | ||
| 264 | var cerr *glib.Error | 262 | var cerr *glib.Error | ||
| 265 | 263 | ||||
| @@ -297,7 +295,6 @@ var xBusGetSync func(BusType, uintptr, **glib.Error) uintptr | |||||
| 297 | // Note that the returned #GDBusConnection object will (usually) have | 295 | // Note that the returned #GDBusConnection object will (usually) have | ||
| 298 | // the #GDBusConnection:exit-on-close property set to %TRUE. | 296 | // the #GDBusConnection:exit-on-close property set to %TRUE. | ||
| 299 | func BusGetSync(BusTypeVar BusType, CancellableVar *Cancellable) (*DBusConnection, error) { | 297 | func BusGetSync(BusTypeVar BusType, CancellableVar *Cancellable) (*DBusConnection, error) { | ||
| 300 | - | core.LazyRegister(&xBusGetSync, "GIO", "g_bus_get_sync", false) | |||
| 301 | var cls *DBusConnection | 298 | var cls *DBusConnection | ||
| 302 | var cerr *glib.Error | 299 | var cerr *glib.Error | ||
| 303 | 300 | ||||
| @@ -373,7 +370,6 @@ type DBusConnection struct { | |||||
| 373 | var xDBusConnectionGLibType func() types.GType | 370 | var xDBusConnectionGLibType func() types.GType | ||
| 374 | 371 | ||||
| 375 | func DBusConnectionGLibType() types.GType { | 372 | func DBusConnectionGLibType() types.GType { | ||
| 376 | - | core.LazyRegister(&xDBusConnectionGLibType, "GIO", "g_dbus_connection_get_type", false) | |||
| 377 | return xDBusConnectionGLibType() | 373 | return xDBusConnectionGLibType() | ||
| 378 | } | 374 | } | ||
| 379 | 375 | ||||
| @@ -387,7 +383,6 @@ var xNewDBusConnectionFinish func(uintptr, **glib.Error) uintptr | |||||
| 387 | 383 | ||||
| 388 | // Finishes an operation started with g_dbus_connection_new(). | 384 | // Finishes an operation started with g_dbus_connection_new(). | ||
| 389 | func NewDBusConnectionFinish(ResVar AsyncResult) (*DBusConnection, error) { | 385 | func NewDBusConnectionFinish(ResVar AsyncResult) (*DBusConnection, error) { | ||
| 390 | - | core.LazyRegister(&xNewDBusConnectionFinish, "GIO", "g_dbus_connection_new_finish", false) | |||
| 391 | var cls *DBusConnection | 386 | var cls *DBusConnection | ||
| 392 | var cerr *glib.Error | 387 | var cerr *glib.Error | ||
| 393 | 388 | ||||
| @@ -408,7 +403,6 @@ var xNewDBusConnectionForAddressFinish func(uintptr, **glib.Error) uintptr | |||||
| 408 | 403 | ||||
| 409 | // Finishes an operation started with g_dbus_connection_new_for_address(). | 404 | // Finishes an operation started with g_dbus_connection_new_for_address(). | ||
| 410 | func NewDBusConnectionForAddressFinish(ResVar AsyncResult) (*DBusConnection, error) { | 405 | func NewDBusConnectionForAddressFinish(ResVar AsyncResult) (*DBusConnection, error) { | ||
| 411 | - | core.LazyRegister(&xNewDBusConnectionForAddressFinish, "GIO", "g_dbus_connection_new_for_address_finish", false) | |||
| 412 | var cls *DBusConnection | 406 | var cls *DBusConnection | ||
| 413 | var cerr *glib.Error | 407 | var cerr *glib.Error | ||
| 414 | 408 | ||||
| @@ -445,7 +439,6 @@ var xNewDBusConnectionForAddressSync func(string, DBusConnectionFlags, uintptr, | |||||
| 445 | // If @observer is not %NULL it may be used to control the | 439 | // If @observer is not %NULL it may be used to control the | ||
| 446 | // authentication process. | 440 | // authentication process. | ||
| 447 | func NewDBusConnectionForAddressSync(AddressVar string, FlagsVar DBusConnectionFlags, ObserverVar *DBusAuthObserver, CancellableVar *Cancellable) (*DBusConnection, error) { | 441 | func NewDBusConnectionForAddressSync(AddressVar string, FlagsVar DBusConnectionFlags, ObserverVar *DBusAuthObserver, CancellableVar *Cancellable) (*DBusConnection, error) { | ||
| 448 | - | core.LazyRegister(&xNewDBusConnectionForAddressSync, "GIO", "g_dbus_connection_new_for_address_sync", false) | |||
| 449 | var cls *DBusConnection | 442 | var cls *DBusConnection | ||
| 450 | var cerr *glib.Error | 443 | var cerr *glib.Error | ||
| 451 | 444 | ||||
| @@ -480,7 +473,6 @@ var xNewDBusConnectionSync func(uintptr, uintptr, DBusConnectionFlags, uintptr, | |||||
| 480 | // This is a synchronous failable constructor. See | 473 | // This is a synchronous failable constructor. See | ||
| 481 | // g_dbus_connection_new() for the asynchronous version. | 474 | // g_dbus_connection_new() for the asynchronous version. | ||
| 482 | func NewDBusConnectionSync(StreamVar *IOStream, GuidVar *string, FlagsVar DBusConnectionFlags, ObserverVar *DBusAuthObserver, CancellableVar *Cancellable) (*DBusConnection, error) { | 475 | func NewDBusConnectionSync(StreamVar *IOStream, GuidVar *string, FlagsVar DBusConnectionFlags, ObserverVar *DBusAuthObserver, CancellableVar *Cancellable) (*DBusConnection, error) { | ||
| 483 | - | core.LazyRegister(&xNewDBusConnectionSync, "GIO", "g_dbus_connection_new_sync", false) | |||
| 484 | var cls *DBusConnection | 476 | var cls *DBusConnection | ||
| 485 | var cerr *glib.Error | 477 | var cerr *glib.Error | ||
| 486 | 478 | ||||
| @@ -530,8 +522,6 @@ var xDBusConnectionAddFilter func(uintptr, uintptr, uintptr, uintptr) uint | |||||
| 530 | // filter is removed, and may be called after @connection has been | 522 | // filter is removed, and may be called after @connection has been | ||
| 531 | // destroyed.) | 523 | // destroyed.) | ||
| 532 | func (x *DBusConnection) AddFilter(FilterFunctionVar *DBusMessageFilterFunction, UserDataVar uintptr, UserDataFreeFuncVar *glib.DestroyNotify) uint { | 524 | func (x *DBusConnection) AddFilter(FilterFunctionVar *DBusMessageFilterFunction, UserDataVar uintptr, UserDataFreeFuncVar *glib.DestroyNotify) uint { | ||
| 533 | - | core.LazyRegister(&xDBusConnectionAddFilter, "GIO", "g_dbus_connection_add_filter", false) | |||
| 534 | - | ||||
| 535 | cret := xDBusConnectionAddFilter(x.GoPointer(), glib.NewCallback(FilterFunctionVar), UserDataVar, glib.NewCallback(UserDataFreeFuncVar)) | 525 | cret := xDBusConnectionAddFilter(x.GoPointer(), glib.NewCallback(FilterFunctionVar), UserDataVar, glib.NewCallback(UserDataFreeFuncVar)) | ||
| 536 | return cret | 526 | return cret | ||
| 537 | } | 527 | } | ||
| @@ -586,8 +576,6 @@ var xDBusConnectionCall func(uintptr, uintptr, string, string, string, *glib.Var | |||||
| 586 | // If @callback is %NULL then the D-Bus method call message will be sent with | 576 | // If @callback is %NULL then the D-Bus method call message will be sent with | ||
| 587 | // the %G_DBUS_MESSAGE_FLAGS_NO_REPLY_EXPECTED flag set. | 577 | // the %G_DBUS_MESSAGE_FLAGS_NO_REPLY_EXPECTED flag set. | ||
| 588 | func (x *DBusConnection) Call(BusNameVar *string, ObjectPathVar string, InterfaceNameVar string, MethodNameVar string, ParametersVar *glib.Variant, ReplyTypeVar *glib.VariantType, FlagsVar DBusCallFlags, TimeoutMsecVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 578 | func (x *DBusConnection) Call(BusNameVar *string, ObjectPathVar string, InterfaceNameVar string, MethodNameVar string, ParametersVar *glib.Variant, ReplyTypeVar *glib.VariantType, FlagsVar DBusCallFlags, TimeoutMsecVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 589 | - | core.LazyRegister(&xDBusConnectionCall, "GIO", "g_dbus_connection_call", false) | |||
| 590 | - | ||||
| 591 | BusNameVarPtr := core.GStrdupNullable(BusNameVar) | 579 | BusNameVarPtr := core.GStrdupNullable(BusNameVar) | ||
| 592 | defer core.GFreeNullable(BusNameVarPtr) | 580 | defer core.GFreeNullable(BusNameVarPtr) | ||
| 593 | 581 | ||||
| @@ -598,7 +586,6 @@ var xDBusConnectionCallFinish func(uintptr, uintptr, **glib.Error) uintptr | |||||
| 598 | 586 | ||||
| 599 | // Finishes an operation started with g_dbus_connection_call(). | 587 | // Finishes an operation started with g_dbus_connection_call(). | ||
| 600 | func (x *DBusConnection) CallFinish(ResVar AsyncResult) (*glib.Variant, error) { | 588 | func (x *DBusConnection) CallFinish(ResVar AsyncResult) (*glib.Variant, error) { | ||
| 601 | - | core.LazyRegister(&xDBusConnectionCallFinish, "GIO", "g_dbus_connection_call_finish", false) | |||
| 602 | var cerr *glib.Error | 589 | var cerr *glib.Error | ||
| 603 | 590 | ||||
| 604 | cret := xDBusConnectionCallFinish(x.GoPointer(), ResVar.GoPointer(), &cerr) | 591 | cret := xDBusConnectionCallFinish(x.GoPointer(), ResVar.GoPointer(), &cerr) | ||
| @@ -652,7 +639,6 @@ var xDBusConnectionCallSync func(uintptr, uintptr, string, string, string, *glib | |||||
| 652 | // g_dbus_connection_call() for the asynchronous version of | 639 | // g_dbus_connection_call() for the asynchronous version of | ||
| 653 | // this method. | 640 | // this method. | ||
| 654 | func (x *DBusConnection) CallSync(BusNameVar *string, ObjectPathVar string, InterfaceNameVar string, MethodNameVar string, ParametersVar *glib.Variant, ReplyTypeVar *glib.VariantType, FlagsVar DBusCallFlags, TimeoutMsecVar int, CancellableVar *Cancellable) (*glib.Variant, error) { | 641 | func (x *DBusConnection) CallSync(BusNameVar *string, ObjectPathVar string, InterfaceNameVar string, MethodNameVar string, ParametersVar *glib.Variant, ReplyTypeVar *glib.VariantType, FlagsVar DBusCallFlags, TimeoutMsecVar int, CancellableVar *Cancellable) (*glib.Variant, error) { | ||
| 655 | - | core.LazyRegister(&xDBusConnectionCallSync, "GIO", "g_dbus_connection_call_sync", false) | |||
| 656 | var cerr *glib.Error | 642 | var cerr *glib.Error | ||
| 657 | 643 | ||||
| 658 | BusNameVarPtr := core.GStrdupNullable(BusNameVar) | 644 | BusNameVarPtr := core.GStrdupNullable(BusNameVar) | ||
| @@ -686,8 +672,6 @@ var xDBusConnectionCallWithUnixFdList func(uintptr, uintptr, string, string, str | |||||
| 686 | // | 672 | // | ||
| 687 | // This method is only available on UNIX. | 673 | // This method is only available on UNIX. | ||
| 688 | func (x *DBusConnection) CallWithUnixFdList(BusNameVar *string, ObjectPathVar string, InterfaceNameVar string, MethodNameVar string, ParametersVar *glib.Variant, ReplyTypeVar *glib.VariantType, FlagsVar DBusCallFlags, TimeoutMsecVar int, FdListVar *UnixFDList, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 674 | func (x *DBusConnection) CallWithUnixFdList(BusNameVar *string, ObjectPathVar string, InterfaceNameVar string, MethodNameVar string, ParametersVar *glib.Variant, ReplyTypeVar *glib.VariantType, FlagsVar DBusCallFlags, TimeoutMsecVar int, FdListVar *UnixFDList, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 689 | - | core.LazyRegister(&xDBusConnectionCallWithUnixFdList, "GIO", "g_dbus_connection_call_with_unix_fd_list", false) | |||
| 690 | - | ||||
| 691 | BusNameVarPtr := core.GStrdupNullable(BusNameVar) | 675 | BusNameVarPtr := core.GStrdupNullable(BusNameVar) | ||
| 692 | defer core.GFreeNullable(BusNameVarPtr) | 676 | defer core.GFreeNullable(BusNameVarPtr) | ||
| 693 | 677 | ||||
| @@ -709,7 +693,6 @@ var xDBusConnectionCallWithUnixFdListFinish func(uintptr, **UnixFDList, uintptr, | |||||
| 709 | // access file descriptors if they are referenced in this way by a | 693 | // access file descriptors if they are referenced in this way by a | ||
| 710 | // value of type %G_VARIANT_TYPE_HANDLE in the body of the message. | 694 | // value of type %G_VARIANT_TYPE_HANDLE in the body of the message. | ||
| 711 | func (x *DBusConnection) CallWithUnixFdListFinish(OutFdListVar **UnixFDList, ResVar AsyncResult) (*glib.Variant, error) { | 695 | func (x *DBusConnection) CallWithUnixFdListFinish(OutFdListVar **UnixFDList, ResVar AsyncResult) (*glib.Variant, error) { | ||
| 712 | - | core.LazyRegister(&xDBusConnectionCallWithUnixFdListFinish, "GIO", "g_dbus_connection_call_with_unix_fd_list_finish", false) | |||
| 713 | var cerr *glib.Error | 696 | var cerr *glib.Error | ||
| 714 | 697 | ||||
| 715 | cret := xDBusConnectionCallWithUnixFdListFinish(x.GoPointer(), OutFdListVar, ResVar.GoPointer(), &cerr) | 698 | cret := xDBusConnectionCallWithUnixFdListFinish(x.GoPointer(), OutFdListVar, ResVar.GoPointer(), &cerr) | ||
| @@ -730,7 +713,6 @@ var xDBusConnectionCallWithUnixFdListSync func(uintptr, uintptr, string, string, | |||||
| 730 | // | 713 | // | ||
| 731 | // This method is only available on UNIX. | 714 | // This method is only available on UNIX. | ||
| 732 | func (x *DBusConnection) CallWithUnixFdListSync(BusNameVar *string, ObjectPathVar string, InterfaceNameVar string, MethodNameVar string, ParametersVar *glib.Variant, ReplyTypeVar *glib.VariantType, FlagsVar DBusCallFlags, TimeoutMsecVar int, FdListVar *UnixFDList, OutFdListVar **UnixFDList, CancellableVar *Cancellable) (*glib.Variant, error) { | 715 | func (x *DBusConnection) CallWithUnixFdListSync(BusNameVar *string, ObjectPathVar string, InterfaceNameVar string, MethodNameVar string, ParametersVar *glib.Variant, ReplyTypeVar *glib.VariantType, FlagsVar DBusCallFlags, TimeoutMsecVar int, FdListVar *UnixFDList, OutFdListVar **UnixFDList, CancellableVar *Cancellable) (*glib.Variant, error) { | ||
| 733 | - | core.LazyRegister(&xDBusConnectionCallWithUnixFdListSync, "GIO", "g_dbus_connection_call_with_unix_fd_list_sync", false) | |||
| 734 | var cerr *glib.Error | 716 | var cerr *glib.Error | ||
| 735 | 717 | ||||
| 736 | BusNameVarPtr := core.GStrdupNullable(BusNameVar) | 718 | BusNameVarPtr := core.GStrdupNullable(BusNameVar) | ||
| @@ -773,8 +755,6 @@ var xDBusConnectionClose func(uintptr, uintptr, uintptr, uintptr) | |||||
| 773 | // operation. See g_dbus_connection_close_sync() for the synchronous | 755 | // operation. See g_dbus_connection_close_sync() for the synchronous | ||
| 774 | // version. | 756 | // version. | ||
| 775 | func (x *DBusConnection) Close(CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 757 | func (x *DBusConnection) Close(CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 776 | - | core.LazyRegister(&xDBusConnectionClose, "GIO", "g_dbus_connection_close", false) | |||
| 777 | - | ||||
| 778 | xDBusConnectionClose(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | 758 | xDBusConnectionClose(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | ||
| 779 | } | 759 | } | ||
| 780 | 760 | ||||
| @@ -782,7 +762,6 @@ var xDBusConnectionCloseFinish func(uintptr, uintptr, **glib.Error) bool | |||||
| 782 | 762 | ||||
| 783 | // Finishes an operation started with g_dbus_connection_close(). | 763 | // Finishes an operation started with g_dbus_connection_close(). | ||
| 784 | func (x *DBusConnection) CloseFinish(ResVar AsyncResult) (bool, error) { | 764 | func (x *DBusConnection) CloseFinish(ResVar AsyncResult) (bool, error) { | ||
| 785 | - | core.LazyRegister(&xDBusConnectionCloseFinish, "GIO", "g_dbus_connection_close_finish", false) | |||
| 786 | var cerr *glib.Error | 765 | var cerr *glib.Error | ||
| 787 | 766 | ||||
| 788 | cret := xDBusConnectionCloseFinish(x.GoPointer(), ResVar.GoPointer(), &cerr) | 767 | cret := xDBusConnectionCloseFinish(x.GoPointer(), ResVar.GoPointer(), &cerr) | ||
| @@ -799,7 +778,6 @@ var xDBusConnectionCloseSync func(uintptr, uintptr, **glib.Error) bool | |||||
| 799 | // asynchronous version of this method and more details about what it | 778 | // asynchronous version of this method and more details about what it | ||
| 800 | // does. | 779 | // does. | ||
| 801 | func (x *DBusConnection) CloseSync(CancellableVar *Cancellable) (bool, error) { | 780 | func (x *DBusConnection) CloseSync(CancellableVar *Cancellable) (bool, error) { | ||
| 802 | - | core.LazyRegister(&xDBusConnectionCloseSync, "GIO", "g_dbus_connection_close_sync", false) | |||
| 803 | var cerr *glib.Error | 781 | var cerr *glib.Error | ||
| 804 | 782 | ||||
| 805 | cret := xDBusConnectionCloseSync(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | 783 | cret := xDBusConnectionCloseSync(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | ||
| @@ -819,7 +797,6 @@ var xDBusConnectionEmitSignal func(uintptr, uintptr, string, string, string, *gl | |||||
| 819 | // (%G_IO_ERROR_INVALID_ARGUMENT), or if @connection has been closed | 797 | // (%G_IO_ERROR_INVALID_ARGUMENT), or if @connection has been closed | ||
| 820 | // (%G_IO_ERROR_CLOSED). | 798 | // (%G_IO_ERROR_CLOSED). | ||
| 821 | func (x *DBusConnection) EmitSignal(DestinationBusNameVar *string, ObjectPathVar string, InterfaceNameVar string, SignalNameVar string, ParametersVar *glib.Variant) (bool, error) { | 799 | func (x *DBusConnection) EmitSignal(DestinationBusNameVar *string, ObjectPathVar string, InterfaceNameVar string, SignalNameVar string, ParametersVar *glib.Variant) (bool, error) { | ||
| 822 | - | core.LazyRegister(&xDBusConnectionEmitSignal, "GIO", "g_dbus_connection_emit_signal", false) | |||
| 823 | var cerr *glib.Error | 800 | var cerr *glib.Error | ||
| 824 | 801 | ||||
| 825 | DestinationBusNameVarPtr := core.GStrdupNullable(DestinationBusNameVar) | 802 | DestinationBusNameVarPtr := core.GStrdupNullable(DestinationBusNameVar) | ||
| @@ -856,7 +833,6 @@ var xDBusConnectionExportActionGroup func(uintptr, string, uintptr, **glib.Error | |||||
| 856 | // limits a given action group to being exported from only one main | 833 | // limits a given action group to being exported from only one main | ||
| 857 | // context. | 834 | // context. | ||
| 858 | func (x *DBusConnection) ExportActionGroup(ObjectPathVar string, ActionGroupVar ActionGroup) (uint, error) { | 835 | func (x *DBusConnection) ExportActionGroup(ObjectPathVar string, ActionGroupVar ActionGroup) (uint, error) { | ||
| 859 | - | core.LazyRegister(&xDBusConnectionExportActionGroup, "GIO", "g_dbus_connection_export_action_group", false) | |||
| 860 | var cerr *glib.Error | 836 | var cerr *glib.Error | ||
| 861 | 837 | ||||
| 862 | cret := xDBusConnectionExportActionGroup(x.GoPointer(), ObjectPathVar, ActionGroupVar.GoPointer(), &cerr) | 838 | cret := xDBusConnectionExportActionGroup(x.GoPointer(), ObjectPathVar, ActionGroupVar.GoPointer(), &cerr) | ||
| @@ -885,7 +861,6 @@ var xDBusConnectionExportMenuModel func(uintptr, string, uintptr, **glib.Error) | |||||
| 885 | // g_dbus_connection_unexport_menu_model() with the return value of | 861 | // g_dbus_connection_unexport_menu_model() with the return value of | ||
| 886 | // this function. | 862 | // this function. | ||
| 887 | func (x *DBusConnection) ExportMenuModel(ObjectPathVar string, MenuVar *MenuModel) (uint, error) { | 863 | func (x *DBusConnection) ExportMenuModel(ObjectPathVar string, MenuVar *MenuModel) (uint, error) { | ||
| 888 | - | core.LazyRegister(&xDBusConnectionExportMenuModel, "GIO", "g_dbus_connection_export_menu_model", false) | |||
| 889 | var cerr *glib.Error | 864 | var cerr *glib.Error | ||
| 890 | 865 | ||||
| 891 | cret := xDBusConnectionExportMenuModel(x.GoPointer(), ObjectPathVar, MenuVar.GoPointer(), &cerr) | 866 | cret := xDBusConnectionExportMenuModel(x.GoPointer(), ObjectPathVar, MenuVar.GoPointer(), &cerr) | ||
| @@ -912,8 +887,6 @@ var xDBusConnectionFlush func(uintptr, uintptr, uintptr, uintptr) | |||||
| 912 | // operation. See g_dbus_connection_flush_sync() for the synchronous | 887 | // operation. See g_dbus_connection_flush_sync() for the synchronous | ||
| 913 | // version. | 888 | // version. | ||
| 914 | func (x *DBusConnection) Flush(CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 889 | func (x *DBusConnection) Flush(CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 915 | - | core.LazyRegister(&xDBusConnectionFlush, "GIO", "g_dbus_connection_flush", false) | |||
| 916 | - | ||||
| 917 | xDBusConnectionFlush(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | 890 | xDBusConnectionFlush(x.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | ||
| 918 | } | 891 | } | ||
| 919 | 892 | ||||
| @@ -921,7 +894,6 @@ var xDBusConnectionFlushFinish func(uintptr, uintptr, **glib.Error) bool | |||||
| 921 | 894 | ||||
| 922 | // Finishes an operation started with g_dbus_connection_flush(). | 895 | // Finishes an operation started with g_dbus_connection_flush(). | ||
| 923 | func (x *DBusConnection) FlushFinish(ResVar AsyncResult) (bool, error) { | 896 | func (x *DBusConnection) FlushFinish(ResVar AsyncResult) (bool, error) { | ||
| 924 | - | core.LazyRegister(&xDBusConnectionFlushFinish, "GIO", "g_dbus_connection_flush_finish", false) | |||
| 925 | var cerr *glib.Error | 897 | var cerr *glib.Error | ||
| 926 | 898 | ||||
| 927 | cret := xDBusConnectionFlushFinish(x.GoPointer(), ResVar.GoPointer(), &cerr) | 899 | cret := xDBusConnectionFlushFinish(x.GoPointer(), ResVar.GoPointer(), &cerr) | ||
| @@ -938,7 +910,6 @@ var xDBusConnectionFlushSync func(uintptr, uintptr, **glib.Error) bool | |||||
| 938 | // asynchronous version of this method and more details about what it | 910 | // asynchronous version of this method and more details about what it | ||
| 939 | // does. | 911 | // does. | ||
| 940 | func (x *DBusConnection) FlushSync(CancellableVar *Cancellable) (bool, error) { | 912 | func (x *DBusConnection) FlushSync(CancellableVar *Cancellable) (bool, error) { | ||
| 941 | - | core.LazyRegister(&xDBusConnectionFlushSync, "GIO", "g_dbus_connection_flush_sync", false) | |||
| 942 | var cerr *glib.Error | 913 | var cerr *glib.Error | ||
| 943 | 914 | ||||
| 944 | cret := xDBusConnectionFlushSync(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | 915 | cret := xDBusConnectionFlushSync(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | ||
| @@ -952,8 +923,6 @@ var xDBusConnectionGetCapabilities func(uintptr) DBusCapabilityFlags | |||||
| 952 | 923 | ||||
| 953 | // Gets the capabilities negotiated with the remote peer | 924 | // Gets the capabilities negotiated with the remote peer | ||
| 954 | func (x *DBusConnection) GetCapabilities() DBusCapabilityFlags { | 925 | func (x *DBusConnection) GetCapabilities() DBusCapabilityFlags { | ||
| 955 | - | core.LazyRegister(&xDBusConnectionGetCapabilities, "GIO", "g_dbus_connection_get_capabilities", false) | |||
| 956 | - | ||||
| 957 | cret := xDBusConnectionGetCapabilities(x.GoPointer()) | 926 | cret := xDBusConnectionGetCapabilities(x.GoPointer()) | ||
| 958 | return cret | 927 | return cret | ||
| 959 | } | 928 | } | ||
| @@ -964,8 +933,6 @@ var xDBusConnectionGetExitOnClose func(uintptr) bool | |||||
| 964 | // closed by the remote peer. See | 933 | // closed by the remote peer. See | ||
| 965 | // #GDBusConnection:exit-on-close for more details. | 934 | // #GDBusConnection:exit-on-close for more details. | ||
| 966 | func (x *DBusConnection) GetExitOnClose() bool { | 935 | func (x *DBusConnection) GetExitOnClose() bool { | ||
| 967 | - | core.LazyRegister(&xDBusConnectionGetExitOnClose, "GIO", "g_dbus_connection_get_exit_on_close", false) | |||
| 968 | - | ||||
| 969 | cret := xDBusConnectionGetExitOnClose(x.GoPointer()) | 936 | cret := xDBusConnectionGetExitOnClose(x.GoPointer()) | ||
| 970 | return cret | 937 | return cret | ||
| 971 | } | 938 | } | ||
| @@ -974,8 +941,6 @@ var xDBusConnectionGetFlags func(uintptr) DBusConnectionFlags | |||||
| 974 | 941 | ||||
| 975 | // Gets the flags used to construct this connection | 942 | // Gets the flags used to construct this connection | ||
| 976 | func (x *DBusConnection) GetFlags() DBusConnectionFlags { | 943 | func (x *DBusConnection) GetFlags() DBusConnectionFlags { | ||
| 977 | - | core.LazyRegister(&xDBusConnectionGetFlags, "GIO", "g_dbus_connection_get_flags", false) | |||
| 978 | - | ||||
| 979 | cret := xDBusConnectionGetFlags(x.GoPointer()) | 944 | cret := xDBusConnectionGetFlags(x.GoPointer()) | ||
| 980 | return cret | 945 | return cret | ||
| 981 | } | 946 | } | ||
| @@ -985,8 +950,6 @@ var xDBusConnectionGetGuid func(uintptr) string | |||||
| 985 | // The GUID of the peer performing the role of server when | 950 | // The GUID of the peer performing the role of server when | ||
| 986 | // authenticating. See #GDBusConnection:guid for more details. | 951 | // authenticating. See #GDBusConnection:guid for more details. | ||
| 987 | func (x *DBusConnection) GetGuid() string { | 952 | func (x *DBusConnection) GetGuid() string { | ||
| 988 | - | core.LazyRegister(&xDBusConnectionGetGuid, "GIO", "g_dbus_connection_get_guid", false) | |||
| 989 | - | ||||
| 990 | cret := xDBusConnectionGetGuid(x.GoPointer()) | 953 | cret := xDBusConnectionGetGuid(x.GoPointer()) | ||
| 991 | return cret | 954 | return cret | ||
| 992 | } | 955 | } | ||
| @@ -999,8 +962,6 @@ var xDBusConnectionGetLastSerial func(uintptr) uint32 | |||||
| 999 | // high-level API such as g_dbus_connection_emit_signal(), | 962 | // high-level API such as g_dbus_connection_emit_signal(), | ||
| 1000 | // g_dbus_connection_call() or g_dbus_proxy_call(). | 963 | // g_dbus_connection_call() or g_dbus_proxy_call(). | ||
| 1001 | func (x *DBusConnection) GetLastSerial() uint32 { | 964 | func (x *DBusConnection) GetLastSerial() uint32 { | ||
| 1002 | - | core.LazyRegister(&xDBusConnectionGetLastSerial, "GIO", "g_dbus_connection_get_last_serial", false) | |||
| 1003 | - | ||||
| 1004 | cret := xDBusConnectionGetLastSerial(x.GoPointer()) | 965 | cret := xDBusConnectionGetLastSerial(x.GoPointer()) | ||
| 1005 | return cret | 966 | return cret | ||
| 1006 | } | 967 | } | ||
| @@ -1017,7 +978,6 @@ var xDBusConnectionGetPeerCredentials func(uintptr) uintptr | |||||
| 1017 | // each application is a client. So this method will always return | 978 | // each application is a client. So this method will always return | ||
| 1018 | // %NULL for message bus clients. | 979 | // %NULL for message bus clients. | ||
| 1019 | func (x *DBusConnection) GetPeerCredentials() *Credentials { | 980 | func (x *DBusConnection) GetPeerCredentials() *Credentials { | ||
| 1020 | - | core.LazyRegister(&xDBusConnectionGetPeerCredentials, "GIO", "g_dbus_connection_get_peer_credentials", false) | |||
| 1021 | var cls *Credentials | 981 | var cls *Credentials | ||
| 1022 | 982 | ||||
| 1023 | cret := xDBusConnectionGetPeerCredentials(x.GoPointer()) | 983 | cret := xDBusConnectionGetPeerCredentials(x.GoPointer()) | ||
| @@ -1039,7 +999,6 @@ var xDBusConnectionGetStream func(uintptr) uintptr | |||||
| 1039 | // stream from a worker thread, so it is not safe to interact with | 999 | // stream from a worker thread, so it is not safe to interact with | ||
| 1040 | // the stream directly. | 1000 | // the stream directly. | ||
| 1041 | func (x *DBusConnection) GetStream() *IOStream { | 1001 | func (x *DBusConnection) GetStream() *IOStream { | ||
| 1042 | - | core.LazyRegister(&xDBusConnectionGetStream, "GIO", "g_dbus_connection_get_stream", false) | |||
| 1043 | var cls *IOStream | 1002 | var cls *IOStream | ||
| 1044 | 1003 | ||||
| 1045 | cret := xDBusConnectionGetStream(x.GoPointer()) | 1004 | cret := xDBusConnectionGetStream(x.GoPointer()) | ||
| @@ -1059,8 +1018,6 @@ var xDBusConnectionGetUniqueName func(uintptr) string | |||||
| 1059 | // bus. This can also be used to figure out if @connection is a | 1018 | // bus. This can also be used to figure out if @connection is a | ||
| 1060 | // message bus connection. | 1019 | // message bus connection. | ||
| 1061 | func (x *DBusConnection) GetUniqueName() string { | 1020 | func (x *DBusConnection) GetUniqueName() string { | ||
| 1062 | - | core.LazyRegister(&xDBusConnectionGetUniqueName, "GIO", "g_dbus_connection_get_unique_name", false) | |||
| 1063 | - | ||||
| 1064 | cret := xDBusConnectionGetUniqueName(x.GoPointer()) | 1021 | cret := xDBusConnectionGetUniqueName(x.GoPointer()) | ||
| 1065 | return cret | 1022 | return cret | ||
| 1066 | } | 1023 | } | ||
| @@ -1069,8 +1026,6 @@ var xDBusConnectionIsClosed func(uintptr) bool | |||||
| 1069 | 1026 | ||||
| 1070 | // Gets whether @connection is closed. | 1027 | // Gets whether @connection is closed. | ||
| 1071 | func (x *DBusConnection) IsClosed() bool { | 1028 | func (x *DBusConnection) IsClosed() bool { | ||
| 1072 | - | core.LazyRegister(&xDBusConnectionIsClosed, "GIO", "g_dbus_connection_is_closed", false) | |||
| 1073 | - | ||||
| 1074 | cret := xDBusConnectionIsClosed(x.GoPointer()) | 1029 | cret := xDBusConnectionIsClosed(x.GoPointer()) | ||
| 1075 | return cret | 1030 | return cret | ||
| 1076 | } | 1031 | } | ||
| @@ -1117,7 +1072,6 @@ var xDBusConnectionRegisterObject func(uintptr, string, *DBusInterfaceInfo, *DBu | |||||
| 1117 | // See this [server][class@Gio.DBusConnection#an-example-d-bus-server] | 1072 | // See this [server][class@Gio.DBusConnection#an-example-d-bus-server] | ||
| 1118 | // for an example of how to use this method. | 1073 | // for an example of how to use this method. | ||
| 1119 | func (x *DBusConnection) RegisterObject(ObjectPathVar string, InterfaceInfoVar *DBusInterfaceInfo, VtableVar *DBusInterfaceVTable, UserDataVar uintptr, UserDataFreeFuncVar *glib.DestroyNotify) (uint, error) { | 1074 | func (x *DBusConnection) RegisterObject(ObjectPathVar string, InterfaceInfoVar *DBusInterfaceInfo, VtableVar *DBusInterfaceVTable, UserDataVar uintptr, UserDataFreeFuncVar *glib.DestroyNotify) (uint, error) { | ||
| 1120 | - | core.LazyRegister(&xDBusConnectionRegisterObject, "GIO", "g_dbus_connection_register_object", false) | |||
| 1121 | var cerr *glib.Error | 1075 | var cerr *glib.Error | ||
| 1122 | 1076 | ||||
| 1123 | cret := xDBusConnectionRegisterObject(x.GoPointer(), ObjectPathVar, InterfaceInfoVar, VtableVar, UserDataVar, glib.NewCallback(UserDataFreeFuncVar), &cerr) | 1077 | cret := xDBusConnectionRegisterObject(x.GoPointer(), ObjectPathVar, InterfaceInfoVar, VtableVar, UserDataVar, glib.NewCallback(UserDataFreeFuncVar), &cerr) | ||
| @@ -1137,7 +1091,6 @@ var xDBusConnectionRegisterObjectWithClosures func(uintptr, string, *DBusInterfa | |||||
| 1137 | // [callback@Gio.DBusInterfaceMethodCallFunc]: ownership of a reference to the | 1091 | // [callback@Gio.DBusInterfaceMethodCallFunc]: ownership of a reference to the | ||
| 1138 | // [class@Gio.DBusMethodInvocation] is transferred to the function. | 1092 | // [class@Gio.DBusMethodInvocation] is transferred to the function. | ||
| 1139 | func (x *DBusConnection) RegisterObjectWithClosures(ObjectPathVar string, InterfaceInfoVar *DBusInterfaceInfo, MethodCallClosureVar *gobject.Closure, GetPropertyClosureVar *gobject.Closure, SetPropertyClosureVar *gobject.Closure) (uint, error) { | 1093 | func (x *DBusConnection) RegisterObjectWithClosures(ObjectPathVar string, InterfaceInfoVar *DBusInterfaceInfo, MethodCallClosureVar *gobject.Closure, GetPropertyClosureVar *gobject.Closure, SetPropertyClosureVar *gobject.Closure) (uint, error) { | ||
| 1140 | - | core.LazyRegister(&xDBusConnectionRegisterObjectWithClosures, "GIO", "g_dbus_connection_register_object_with_closures", false) | |||
| 1141 | var cerr *glib.Error | 1094 | var cerr *glib.Error | ||
| 1142 | 1095 | ||||
| 1143 | cret := xDBusConnectionRegisterObjectWithClosures(x.GoPointer(), ObjectPathVar, InterfaceInfoVar, MethodCallClosureVar, GetPropertyClosureVar, SetPropertyClosureVar, &cerr) | 1096 | cret := xDBusConnectionRegisterObjectWithClosures(x.GoPointer(), ObjectPathVar, InterfaceInfoVar, MethodCallClosureVar, GetPropertyClosureVar, SetPropertyClosureVar, &cerr) | ||
| @@ -1162,7 +1115,6 @@ var xDBusConnectionRegisterObjectWithClosures2 func(uintptr, string, *DBusInterf | |||||
| 1162 | // `g_dbus_method_invocation_return_*()` methods on it. This should be automatic | 1115 | // `g_dbus_method_invocation_return_*()` methods on it. This should be automatic | ||
| 1163 | // as a result of the introspection annotations on those methods. | 1116 | // as a result of the introspection annotations on those methods. | ||
| 1164 | func (x *DBusConnection) RegisterObjectWithClosures2(ObjectPathVar string, InterfaceInfoVar *DBusInterfaceInfo, MethodCallClosureVar *gobject.Closure, GetPropertyClosureVar *gobject.Closure, SetPropertyClosureVar *gobject.Closure) (uint, error) { | 1117 | func (x *DBusConnection) RegisterObjectWithClosures2(ObjectPathVar string, InterfaceInfoVar *DBusInterfaceInfo, MethodCallClosureVar *gobject.Closure, GetPropertyClosureVar *gobject.Closure, SetPropertyClosureVar *gobject.Closure) (uint, error) { | ||
| 1165 | - | core.LazyRegister(&xDBusConnectionRegisterObjectWithClosures2, "GIO", "g_dbus_connection_register_object_with_closures2", false) | |||
| 1166 | var cerr *glib.Error | 1118 | var cerr *glib.Error | ||
| 1167 | 1119 | ||||
| 1168 | cret := xDBusConnectionRegisterObjectWithClosures2(x.GoPointer(), ObjectPathVar, InterfaceInfoVar, MethodCallClosureVar, GetPropertyClosureVar, SetPropertyClosureVar, &cerr) | 1120 | cret := xDBusConnectionRegisterObjectWithClosures2(x.GoPointer(), ObjectPathVar, InterfaceInfoVar, MethodCallClosureVar, GetPropertyClosureVar, SetPropertyClosureVar, &cerr) | ||
| @@ -1209,7 +1161,6 @@ var xDBusConnectionRegisterSubtree func(uintptr, string, *DBusSubtreeVTable, DBu | |||||
| 1209 | // See this [server][class@Gio.DBusConnection#an-example-for-exporting-a-subtree] | 1161 | // See this [server][class@Gio.DBusConnection#an-example-for-exporting-a-subtree] | ||
| 1210 | // for an example of how to use this method. | 1162 | // for an example of how to use this method. | ||
| 1211 | func (x *DBusConnection) RegisterSubtree(ObjectPathVar string, VtableVar *DBusSubtreeVTable, FlagsVar DBusSubtreeFlags, UserDataVar uintptr, UserDataFreeFuncVar *glib.DestroyNotify) (uint, error) { | 1163 | func (x *DBusConnection) RegisterSubtree(ObjectPathVar string, VtableVar *DBusSubtreeVTable, FlagsVar DBusSubtreeFlags, UserDataVar uintptr, UserDataFreeFuncVar *glib.DestroyNotify) (uint, error) { | ||
| 1212 | - | core.LazyRegister(&xDBusConnectionRegisterSubtree, "GIO", "g_dbus_connection_register_subtree", false) | |||
| 1213 | var cerr *glib.Error | 1164 | var cerr *glib.Error | ||
| 1214 | 1165 | ||||
| 1215 | cret := xDBusConnectionRegisterSubtree(x.GoPointer(), ObjectPathVar, VtableVar, FlagsVar, UserDataVar, glib.NewCallback(UserDataFreeFuncVar), &cerr) | 1166 | cret := xDBusConnectionRegisterSubtree(x.GoPointer(), ObjectPathVar, VtableVar, FlagsVar, UserDataVar, glib.NewCallback(UserDataFreeFuncVar), &cerr) | ||
| @@ -1230,8 +1181,6 @@ var xDBusConnectionRemoveFilter func(uintptr, uint) | |||||
| 1230 | // a #GDestroyNotify to g_dbus_connection_add_filter(), which will be | 1181 | // a #GDestroyNotify to g_dbus_connection_add_filter(), which will be | ||
| 1231 | // called when it is guaranteed that the data is no longer needed. | 1182 | // called when it is guaranteed that the data is no longer needed. | ||
| 1232 | func (x *DBusConnection) RemoveFilter(FilterIdVar uint) { | 1183 | func (x *DBusConnection) RemoveFilter(FilterIdVar uint) { | ||
| 1233 | - | core.LazyRegister(&xDBusConnectionRemoveFilter, "GIO", "g_dbus_connection_remove_filter", false) | |||
| 1234 | - | ||||
| 1235 | xDBusConnectionRemoveFilter(x.GoPointer(), FilterIdVar) | 1184 | xDBusConnectionRemoveFilter(x.GoPointer(), FilterIdVar) | ||
| 1236 | } | 1185 | } | ||
| 1237 | 1186 | ||||
| @@ -1260,7 +1209,6 @@ var xDBusConnectionSendMessage func(uintptr, uintptr, DBusSendMessageFlags, *uin | |||||
| 1260 | // Note that @message must be unlocked, unless @flags contain the | 1209 | // Note that @message must be unlocked, unless @flags contain the | ||
| 1261 | // %G_DBUS_SEND_MESSAGE_FLAGS_PRESERVE_SERIAL flag. | 1210 | // %G_DBUS_SEND_MESSAGE_FLAGS_PRESERVE_SERIAL flag. | ||
| 1262 | func (x *DBusConnection) SendMessage(MessageVar *DBusMessage, FlagsVar DBusSendMessageFlags, OutSerialVar *uint32) (bool, error) { | 1211 | func (x *DBusConnection) SendMessage(MessageVar *DBusMessage, FlagsVar DBusSendMessageFlags, OutSerialVar *uint32) (bool, error) { | ||
| 1263 | - | core.LazyRegister(&xDBusConnectionSendMessage, "GIO", "g_dbus_connection_send_message", false) | |||
| 1264 | var cerr *glib.Error | 1212 | var cerr *glib.Error | ||
| 1265 | 1213 | ||||
| 1266 | cret := xDBusConnectionSendMessage(x.GoPointer(), MessageVar.GoPointer(), FlagsVar, OutSerialVar, &cerr) | 1214 | cret := xDBusConnectionSendMessage(x.GoPointer(), MessageVar.GoPointer(), FlagsVar, OutSerialVar, &cerr) | ||
| @@ -1303,8 +1251,6 @@ var xDBusConnectionSendMessageWithReply func(uintptr, uintptr, DBusSendMessageFl | |||||
| 1303 | // for an example of how to use this low-level API to send and receive | 1251 | // for an example of how to use this low-level API to send and receive | ||
| 1304 | // UNIX file descriptors. | 1252 | // UNIX file descriptors. | ||
| 1305 | func (x *DBusConnection) SendMessageWithReply(MessageVar *DBusMessage, FlagsVar DBusSendMessageFlags, TimeoutMsecVar int, OutSerialVar *uint32, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 1253 | func (x *DBusConnection) SendMessageWithReply(MessageVar *DBusMessage, FlagsVar DBusSendMessageFlags, TimeoutMsecVar int, OutSerialVar *uint32, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 1306 | - | core.LazyRegister(&xDBusConnectionSendMessageWithReply, "GIO", "g_dbus_connection_send_message_with_reply", false) | |||
| 1307 | - | ||||
| 1308 | xDBusConnectionSendMessageWithReply(x.GoPointer(), MessageVar.GoPointer(), FlagsVar, TimeoutMsecVar, OutSerialVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | 1254 | xDBusConnectionSendMessageWithReply(x.GoPointer(), MessageVar.GoPointer(), FlagsVar, TimeoutMsecVar, OutSerialVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | ||
| 1309 | } | 1255 | } | ||
| 1310 | 1256 | ||||
| @@ -1322,7 +1268,6 @@ var xDBusConnectionSendMessageWithReplyFinish func(uintptr, uintptr, **glib.Erro | |||||
| 1322 | // for an example of how to use this low-level API to send and receive | 1268 | // for an example of how to use this low-level API to send and receive | ||
| 1323 | // UNIX file descriptors. | 1269 | // UNIX file descriptors. | ||
| 1324 | func (x *DBusConnection) SendMessageWithReplyFinish(ResVar AsyncResult) (*DBusMessage, error) { | 1270 | func (x *DBusConnection) SendMessageWithReplyFinish(ResVar AsyncResult) (*DBusMessage, error) { | ||
| 1325 | - | core.LazyRegister(&xDBusConnectionSendMessageWithReplyFinish, "GIO", "g_dbus_connection_send_message_with_reply_finish", false) | |||
| 1326 | var cls *DBusMessage | 1271 | var cls *DBusMessage | ||
| 1327 | var cerr *glib.Error | 1272 | var cerr *glib.Error | ||
| 1328 | 1273 | ||||
| @@ -1373,7 +1318,6 @@ var xDBusConnectionSendMessageWithReplySync func(uintptr, uintptr, DBusSendMessa | |||||
| 1373 | // Note that @message must be unlocked, unless @flags contain the | 1318 | // Note that @message must be unlocked, unless @flags contain the | ||
| 1374 | // %G_DBUS_SEND_MESSAGE_FLAGS_PRESERVE_SERIAL flag. | 1319 | // %G_DBUS_SEND_MESSAGE_FLAGS_PRESERVE_SERIAL flag. | ||
| 1375 | func (x *DBusConnection) SendMessageWithReplySync(MessageVar *DBusMessage, FlagsVar DBusSendMessageFlags, TimeoutMsecVar int, OutSerialVar *uint32, CancellableVar *Cancellable) (*DBusMessage, error) { | 1320 | func (x *DBusConnection) SendMessageWithReplySync(MessageVar *DBusMessage, FlagsVar DBusSendMessageFlags, TimeoutMsecVar int, OutSerialVar *uint32, CancellableVar *Cancellable) (*DBusMessage, error) { | ||
| 1376 | - | core.LazyRegister(&xDBusConnectionSendMessageWithReplySync, "GIO", "g_dbus_connection_send_message_with_reply_sync", false) | |||
| 1377 | var cls *DBusMessage | 1321 | var cls *DBusMessage | ||
| 1378 | var cerr *glib.Error | 1322 | var cerr *glib.Error | ||
| 1379 | 1323 | ||||
| @@ -1403,8 +1347,6 @@ var xDBusConnectionSetExitOnClose func(uintptr, bool) | |||||
| 1403 | // bus connection, you should make sure that your application exits | 1347 | // bus connection, you should make sure that your application exits | ||
| 1404 | // when the user session ends. | 1348 | // when the user session ends. | ||
| 1405 | func (x *DBusConnection) SetExitOnClose(ExitOnCloseVar bool) { | 1349 | func (x *DBusConnection) SetExitOnClose(ExitOnCloseVar bool) { | ||
| 1406 | - | core.LazyRegister(&xDBusConnectionSetExitOnClose, "GIO", "g_dbus_connection_set_exit_on_close", false) | |||
| 1407 | - | ||||
| 1408 | xDBusConnectionSetExitOnClose(x.GoPointer(), ExitOnCloseVar) | 1350 | xDBusConnectionSetExitOnClose(x.GoPointer(), ExitOnCloseVar) | ||
| 1409 | } | 1351 | } | ||
| 1410 | 1352 | ||||
| @@ -1460,8 +1402,6 @@ var xDBusConnectionSignalSubscribe func(uintptr, uintptr, uintptr, uintptr, uint | |||||
| 1460 | // | 1402 | // | ||
| 1461 | // This function can never fail. | 1403 | // This function can never fail. | ||
| 1462 | func (x *DBusConnection) SignalSubscribe(SenderVar *string, InterfaceNameVar *string, MemberVar *string, ObjectPathVar *string, Arg0Var *string, FlagsVar DBusSignalFlags, CallbackVar *DBusSignalCallback, UserDataVar uintptr, UserDataFreeFuncVar *glib.DestroyNotify) uint { | 1404 | func (x *DBusConnection) SignalSubscribe(SenderVar *string, InterfaceNameVar *string, MemberVar *string, ObjectPathVar *string, Arg0Var *string, FlagsVar DBusSignalFlags, CallbackVar *DBusSignalCallback, UserDataVar uintptr, UserDataFreeFuncVar *glib.DestroyNotify) uint { | ||
| 1463 | - | core.LazyRegister(&xDBusConnectionSignalSubscribe, "GIO", "g_dbus_connection_signal_subscribe", false) | |||
| 1464 | - | ||||
| 1465 | SenderVarPtr := core.GStrdupNullable(SenderVar) | 1405 | SenderVarPtr := core.GStrdupNullable(SenderVar) | ||
| 1466 | defer core.GFreeNullable(SenderVarPtr) | 1406 | defer core.GFreeNullable(SenderVarPtr) | ||
| 1467 | 1407 | ||||
| @@ -1496,8 +1436,6 @@ var xDBusConnectionSignalUnsubscribe func(uintptr, uint) | |||||
| 1496 | // that was scheduled after unsubscription, also indicates that all resources | 1436 | // that was scheduled after unsubscription, also indicates that all resources | ||
| 1497 | // of this subscription are released. | 1437 | // of this subscription are released. | ||
| 1498 | func (x *DBusConnection) SignalUnsubscribe(SubscriptionIdVar uint) { | 1438 | func (x *DBusConnection) SignalUnsubscribe(SubscriptionIdVar uint) { | ||
| 1499 | - | core.LazyRegister(&xDBusConnectionSignalUnsubscribe, "GIO", "g_dbus_connection_signal_unsubscribe", false) | |||
| 1500 | - | ||||
| 1501 | xDBusConnectionSignalUnsubscribe(x.GoPointer(), SubscriptionIdVar) | 1439 | xDBusConnectionSignalUnsubscribe(x.GoPointer(), SubscriptionIdVar) | ||
| 1502 | } | 1440 | } | ||
| 1503 | 1441 | ||||
| @@ -1508,8 +1446,6 @@ var xDBusConnectionStartMessageProcessing func(uintptr) | |||||
| 1508 | // starts processing messages. Does nothing on if @connection wasn't | 1446 | // starts processing messages. Does nothing on if @connection wasn't | ||
| 1509 | // created with this flag or if the method has already been called. | 1447 | // created with this flag or if the method has already been called. | ||
| 1510 | func (x *DBusConnection) StartMessageProcessing() { | 1448 | func (x *DBusConnection) StartMessageProcessing() { | ||
| 1511 | - | core.LazyRegister(&xDBusConnectionStartMessageProcessing, "GIO", "g_dbus_connection_start_message_processing", false) | |||
| 1512 | - | ||||
| 1513 | xDBusConnectionStartMessageProcessing(x.GoPointer()) | 1449 | xDBusConnectionStartMessageProcessing(x.GoPointer()) | ||
| 1514 | } | 1450 | } | ||
| 1515 | 1451 | ||||
| @@ -1522,8 +1458,6 @@ var xDBusConnectionUnexportActionGroup func(uintptr, uint) | |||||
| 1522 | // [method@Gio.DBusConnection.export_action_group] or to call it with the same | 1458 | // [method@Gio.DBusConnection.export_action_group] or to call it with the same | ||
| 1523 | // ID more than once. | 1459 | // ID more than once. | ||
| 1524 | func (x *DBusConnection) UnexportActionGroup(ExportIdVar uint) { | 1460 | func (x *DBusConnection) UnexportActionGroup(ExportIdVar uint) { | ||
| 1525 | - | core.LazyRegister(&xDBusConnectionUnexportActionGroup, "GIO", "g_dbus_connection_unexport_action_group", false) | |||
| 1526 | - | ||||
| 1527 | xDBusConnectionUnexportActionGroup(x.GoPointer(), ExportIdVar) | 1461 | xDBusConnectionUnexportActionGroup(x.GoPointer(), ExportIdVar) | ||
| 1528 | } | 1462 | } | ||
| 1529 | 1463 | ||||
| @@ -1536,8 +1470,6 @@ var xDBusConnectionUnexportMenuModel func(uintptr, uint) | |||||
| 1536 | // from g_dbus_connection_export_menu_model() or to call it with the | 1470 | // from g_dbus_connection_export_menu_model() or to call it with the | ||
| 1537 | // same ID more than once. | 1471 | // same ID more than once. | ||
| 1538 | func (x *DBusConnection) UnexportMenuModel(ExportIdVar uint) { | 1472 | func (x *DBusConnection) UnexportMenuModel(ExportIdVar uint) { | ||
| 1539 | - | core.LazyRegister(&xDBusConnectionUnexportMenuModel, "GIO", "g_dbus_connection_unexport_menu_model", false) | |||
| 1540 | - | ||||
| 1541 | xDBusConnectionUnexportMenuModel(x.GoPointer(), ExportIdVar) | 1473 | xDBusConnectionUnexportMenuModel(x.GoPointer(), ExportIdVar) | ||
| 1542 | } | 1474 | } | ||
| 1543 | 1475 | ||||
| @@ -1545,8 +1477,6 @@ var xDBusConnectionUnregisterObject func(uintptr, uint) bool | |||||
| 1545 | 1477 | ||||
| 1546 | // Unregisters an object. | 1478 | // Unregisters an object. | ||
| 1547 | func (x *DBusConnection) UnregisterObject(RegistrationIdVar uint) bool { | 1479 | func (x *DBusConnection) UnregisterObject(RegistrationIdVar uint) bool { | ||
| 1548 | - | core.LazyRegister(&xDBusConnectionUnregisterObject, "GIO", "g_dbus_connection_unregister_object", false) | |||
| 1549 | - | ||||
| 1550 | cret := xDBusConnectionUnregisterObject(x.GoPointer(), RegistrationIdVar) | 1480 | cret := xDBusConnectionUnregisterObject(x.GoPointer(), RegistrationIdVar) | ||
| 1551 | return cret | 1481 | return cret | ||
| 1552 | } | 1482 | } | ||
| @@ -1555,8 +1485,6 @@ var xDBusConnectionUnregisterSubtree func(uintptr, uint) bool | |||||
| 1555 | 1485 | ||||
| 1556 | // Unregisters a subtree. | 1486 | // Unregisters a subtree. | ||
| 1557 | func (x *DBusConnection) UnregisterSubtree(RegistrationIdVar uint) bool { | 1487 | func (x *DBusConnection) UnregisterSubtree(RegistrationIdVar uint) bool { | ||
| 1558 | - | core.LazyRegister(&xDBusConnectionUnregisterSubtree, "GIO", "g_dbus_connection_unregister_subtree", false) | |||
| 1559 | - | ||||
| 1560 | cret := xDBusConnectionUnregisterSubtree(x.GoPointer(), RegistrationIdVar) | 1488 | cret := xDBusConnectionUnregisterSubtree(x.GoPointer(), RegistrationIdVar) | ||
| 1561 | return cret | 1489 | return cret | ||
| 1562 | } | 1490 | } | ||
| @@ -1865,8 +1793,6 @@ var xDBusConnectionNew func(uintptr, uintptr, DBusConnectionFlags, uintptr, uint | |||||
| 1865 | // g_dbus_connection_new_sync() for the synchronous | 1793 | // g_dbus_connection_new_sync() for the synchronous | ||
| 1866 | // version. | 1794 | // version. | ||
| 1867 | func DBusConnectionNew(StreamVar *IOStream, GuidVar *string, FlagsVar DBusConnectionFlags, ObserverVar *DBusAuthObserver, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 1795 | func DBusConnectionNew(StreamVar *IOStream, GuidVar *string, FlagsVar DBusConnectionFlags, ObserverVar *DBusAuthObserver, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 1868 | - | core.LazyRegister(&xDBusConnectionNew, "GIO", "g_dbus_connection_new", false) | |||
| 1869 | - | ||||
| 1870 | GuidVarPtr := core.GStrdupNullable(GuidVar) | 1796 | GuidVarPtr := core.GStrdupNullable(GuidVar) | ||
| 1871 | defer core.GFreeNullable(GuidVarPtr) | 1797 | defer core.GFreeNullable(GuidVarPtr) | ||
| 1872 | 1798 | ||||
| @@ -1898,12 +1824,75 @@ var xDBusConnectionNewForAddress func(string, DBusConnectionFlags, uintptr, uint | |||||
| 1898 | // g_dbus_connection_new_for_address_sync() for the synchronous | 1824 | // g_dbus_connection_new_for_address_sync() for the synchronous | ||
| 1899 | // version. | 1825 | // version. | ||
| 1900 | func DBusConnectionNewForAddress(AddressVar string, FlagsVar DBusConnectionFlags, ObserverVar *DBusAuthObserver, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 1826 | func DBusConnectionNewForAddress(AddressVar string, FlagsVar DBusConnectionFlags, ObserverVar *DBusAuthObserver, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 1901 | - | core.LazyRegister(&xDBusConnectionNewForAddress, "GIO", "g_dbus_connection_new_for_address", false) | |||
| 1902 | - | ||||
| 1903 | xDBusConnectionNewForAddress(AddressVar, FlagsVar, ObserverVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | 1827 | xDBusConnectionNewForAddress(AddressVar, FlagsVar, ObserverVar.GoPointer(), CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | ||
| 1904 | } | 1828 | } | ||
| 1905 | 1829 | ||||
| 1906 | func init() { | 1830 | func init() { | ||
| 1907 | core.SetPackageName("GIO", "gio-2.0") | 1831 | core.SetPackageName("GIO", "gio-2.0") | ||
| 1908 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | 1832 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | ||
| 1833 | + | var libs []uintptr | |||
| 1834 | + | for _, libPath := range core.GetPaths("GIO") { | |||
| 1835 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 1836 | + | if err != nil { | |||
| 1837 | + | panic(err) | |||
| 1838 | + | } | |||
| 1839 | + | libs = append(libs, lib) | |||
| 1840 | + | } | |||
| 1841 | + | ||||
| 1842 | + | core.PuregoSafeRegister(&xBusGet, libs, "g_bus_get") | |||
| 1843 | + | core.PuregoSafeRegister(&xBusGetFinish, libs, "g_bus_get_finish") | |||
| 1844 | + | core.PuregoSafeRegister(&xBusGetSync, libs, "g_bus_get_sync") | |||
| 1845 | + | ||||
| 1846 | + | core.PuregoSafeRegister(&xDBusConnectionGLibType, libs, "g_dbus_connection_get_type") | |||
| 1847 | + | ||||
| 1848 | + | core.PuregoSafeRegister(&xNewDBusConnectionFinish, libs, "g_dbus_connection_new_finish") | |||
| 1849 | + | core.PuregoSafeRegister(&xNewDBusConnectionForAddressFinish, libs, "g_dbus_connection_new_for_address_finish") | |||
| 1850 | + | core.PuregoSafeRegister(&xNewDBusConnectionForAddressSync, libs, "g_dbus_connection_new_for_address_sync") | |||
| 1851 | + | core.PuregoSafeRegister(&xNewDBusConnectionSync, libs, "g_dbus_connection_new_sync") | |||
| 1852 | + | ||||
| 1853 | + | core.PuregoSafeRegister(&xDBusConnectionAddFilter, libs, "g_dbus_connection_add_filter") | |||
| 1854 | + | core.PuregoSafeRegister(&xDBusConnectionCall, libs, "g_dbus_connection_call") | |||
| 1855 | + | core.PuregoSafeRegister(&xDBusConnectionCallFinish, libs, "g_dbus_connection_call_finish") | |||
| 1856 | + | core.PuregoSafeRegister(&xDBusConnectionCallSync, libs, "g_dbus_connection_call_sync") | |||
| 1857 | + | core.PuregoSafeRegister(&xDBusConnectionCallWithUnixFdList, libs, "g_dbus_connection_call_with_unix_fd_list") | |||
| 1858 | + | core.PuregoSafeRegister(&xDBusConnectionCallWithUnixFdListFinish, libs, "g_dbus_connection_call_with_unix_fd_list_finish") | |||
| 1859 | + | core.PuregoSafeRegister(&xDBusConnectionCallWithUnixFdListSync, libs, "g_dbus_connection_call_with_unix_fd_list_sync") | |||
| 1860 | + | core.PuregoSafeRegister(&xDBusConnectionClose, libs, "g_dbus_connection_close") | |||
| 1861 | + | core.PuregoSafeRegister(&xDBusConnectionCloseFinish, libs, "g_dbus_connection_close_finish") | |||
| 1862 | + | core.PuregoSafeRegister(&xDBusConnectionCloseSync, libs, "g_dbus_connection_close_sync") | |||
| 1863 | + | core.PuregoSafeRegister(&xDBusConnectionEmitSignal, libs, "g_dbus_connection_emit_signal") | |||
| 1864 | + | core.PuregoSafeRegister(&xDBusConnectionExportActionGroup, libs, "g_dbus_connection_export_action_group") | |||
| 1865 | + | core.PuregoSafeRegister(&xDBusConnectionExportMenuModel, libs, "g_dbus_connection_export_menu_model") | |||
| 1866 | + | core.PuregoSafeRegister(&xDBusConnectionFlush, libs, "g_dbus_connection_flush") | |||
| 1867 | + | core.PuregoSafeRegister(&xDBusConnectionFlushFinish, libs, "g_dbus_connection_flush_finish") | |||
| 1868 | + | core.PuregoSafeRegister(&xDBusConnectionFlushSync, libs, "g_dbus_connection_flush_sync") | |||
| 1869 | + | core.PuregoSafeRegister(&xDBusConnectionGetCapabilities, libs, "g_dbus_connection_get_capabilities") | |||
| 1870 | + | core.PuregoSafeRegister(&xDBusConnectionGetExitOnClose, libs, "g_dbus_connection_get_exit_on_close") | |||
| 1871 | + | core.PuregoSafeRegister(&xDBusConnectionGetFlags, libs, "g_dbus_connection_get_flags") | |||
| 1872 | + | core.PuregoSafeRegister(&xDBusConnectionGetGuid, libs, "g_dbus_connection_get_guid") | |||
| 1873 | + | core.PuregoSafeRegister(&xDBusConnectionGetLastSerial, libs, "g_dbus_connection_get_last_serial") | |||
| 1874 | + | core.PuregoSafeRegister(&xDBusConnectionGetPeerCredentials, libs, "g_dbus_connection_get_peer_credentials") | |||
| 1875 | + | core.PuregoSafeRegister(&xDBusConnectionGetStream, libs, "g_dbus_connection_get_stream") | |||
| 1876 | + | core.PuregoSafeRegister(&xDBusConnectionGetUniqueName, libs, "g_dbus_connection_get_unique_name") | |||
| 1877 | + | core.PuregoSafeRegister(&xDBusConnectionIsClosed, libs, "g_dbus_connection_is_closed") | |||
| 1878 | + | core.PuregoSafeRegister(&xDBusConnectionRegisterObject, libs, "g_dbus_connection_register_object") | |||
| 1879 | + | core.PuregoSafeRegister(&xDBusConnectionRegisterObjectWithClosures, libs, "g_dbus_connection_register_object_with_closures") | |||
| 1880 | + | core.PuregoSafeRegister(&xDBusConnectionRegisterObjectWithClosures2, libs, "g_dbus_connection_register_object_with_closures2") | |||
| 1881 | + | core.PuregoSafeRegister(&xDBusConnectionRegisterSubtree, libs, "g_dbus_connection_register_subtree") | |||
| 1882 | + | core.PuregoSafeRegister(&xDBusConnectionRemoveFilter, libs, "g_dbus_connection_remove_filter") | |||
| 1883 | + | core.PuregoSafeRegister(&xDBusConnectionSendMessage, libs, "g_dbus_connection_send_message") | |||
| 1884 | + | core.PuregoSafeRegister(&xDBusConnectionSendMessageWithReply, libs, "g_dbus_connection_send_message_with_reply") | |||
| 1885 | + | core.PuregoSafeRegister(&xDBusConnectionSendMessageWithReplyFinish, libs, "g_dbus_connection_send_message_with_reply_finish") | |||
| 1886 | + | core.PuregoSafeRegister(&xDBusConnectionSendMessageWithReplySync, libs, "g_dbus_connection_send_message_with_reply_sync") | |||
| 1887 | + | core.PuregoSafeRegister(&xDBusConnectionSetExitOnClose, libs, "g_dbus_connection_set_exit_on_close") | |||
| 1888 | + | core.PuregoSafeRegister(&xDBusConnectionSignalSubscribe, libs, "g_dbus_connection_signal_subscribe") | |||
| 1889 | + | core.PuregoSafeRegister(&xDBusConnectionSignalUnsubscribe, libs, "g_dbus_connection_signal_unsubscribe") | |||
| 1890 | + | core.PuregoSafeRegister(&xDBusConnectionStartMessageProcessing, libs, "g_dbus_connection_start_message_processing") | |||
| 1891 | + | core.PuregoSafeRegister(&xDBusConnectionUnexportActionGroup, libs, "g_dbus_connection_unexport_action_group") | |||
| 1892 | + | core.PuregoSafeRegister(&xDBusConnectionUnexportMenuModel, libs, "g_dbus_connection_unexport_menu_model") | |||
| 1893 | + | core.PuregoSafeRegister(&xDBusConnectionUnregisterObject, libs, "g_dbus_connection_unregister_object") | |||
| 1894 | + | core.PuregoSafeRegister(&xDBusConnectionUnregisterSubtree, libs, "g_dbus_connection_unregister_subtree") | |||
| 1895 | + | ||||
| 1896 | + | core.PuregoSafeRegister(&xDBusConnectionNew, libs, "g_dbus_connection_new") | |||
| 1897 | + | core.PuregoSafeRegister(&xDBusConnectionNewForAddress, libs, "g_dbus_connection_new_for_address") | |||
| 1909 | } | 1898 | } | ||