Merge pull request #349 from bnema/fix/rollback-lazy-puregotk
fix(deps): emergency rollback puregotk lazy registration regression
905 files · +25263 -27842
M go.mod +1 -1
| @@ -11,7 +11,7 @@ require ( | |||
| 11 | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | |
| 12 | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | |
| 13 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | |
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | |
| 14 | + | github.com/bnema/puregotk v0.7.0 | |
| 15 | 15 | github.com/charmbracelet/bubbles v1.0.0 | |
| 16 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | |
| 17 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | |
| @@ -11,7 +11,7 @@ require ( | |||||
| 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | ||
| 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | ||
| 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | ||
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | 14 | + | github.com/bnema/puregotk v0.7.0 |
| 15 | github.com/charmbracelet/bubbles v1.0.0 | 15 | github.com/charmbracelet/bubbles v1.0.0 | ||
| 16 | github.com/charmbracelet/bubbletea v1.3.10 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | ||
| 17 | github.com/charmbracelet/lipgloss v1.1.0 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | ||
M go.sum +0 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/internal/core/core.go +4 -197 generated file: collapsed
M vendor/github.com/bnema/puregotk/pkg/core/core.go +0 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-dialog.go +64 -99 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-window.go +62 -95 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-accent-color.go +15 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-action-row.go +29 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-alert-dialog.go +47 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-target.go +27 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-util.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation.go +26 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application-window.go +22 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-avatar.go +25 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-banner.go +26 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bin.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bottom-sheet.go +38 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint-bin.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint.go +37 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-content.go +22 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-row.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-dots.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-lines.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel.go +37 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-layout.go +20 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-scrollable.go +22 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp.go +22 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-combo-row.go +33 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-dialog.go +38 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-easing.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-entry-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-enum-list-model.go +22 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-expander-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-flap.go +48 -61 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-fold-threshold-policy.go +1 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-header-bar.go +33 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-inline-view-switcher.go +24 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout-slot.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout.go +17 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-leaflet.go +56 -69 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-length-unit.go +14 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-main.go +15 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-message-dialog.go +44 -63 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-multi-layout-view.go +23 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-direction.go +1 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-split-view.go +32 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-view.go +49 -60 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-overlay-split-view.go +38 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-password-entry-row.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-dialog.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-group.go +26 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-page.go +33 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-row.go +22 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-window.go +29 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcut-label.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-dialog.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-item.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-section.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-item.go +37 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-section.go +27 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar.go +39 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spin-row.go +34 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner-paintable.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-split-button.go +34 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-animation.go +30 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-params.go +21 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-squeezer.go +44 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-status-page.go +24 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-style-manager.go +28 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipe-tracker.go +30 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipeable.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-switch-row.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-bar.go +32 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-button.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-overview.go +37 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-view.go +87 -123 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-timed-animation.go +28 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast-overlay.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast.go +36 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toggle-group.go +51 -64 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toolbar-view.go +35 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-version.go +16 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-stack.go +62 -78 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-bar.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-sidebar.go +22 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-title.go +23 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher.go +20 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window-title.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window.go +22 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-box.go +46 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-layout.go +46 -57 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/cairo/main.go +79 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkapplaunchcontext.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairo.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairocontext.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcicpparams.go +25 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkclipboard.go +32 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcolorstate.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentdeserializer.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentformats.go +31 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentprovider.go +28 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentserializer.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcursor.go +21 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevice.go +33 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicepad.go +22 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicetool.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplay.go +43 -51 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplaymanager.go +20 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexture.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexturebuilder.go +41 -53 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrag.go +28 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurface.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurfacesize.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrawcontext.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrop.go +24 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkenums.go +1 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkevents.go +118 -120 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframeclock.go +24 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframetimings.go +20 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkglcontext.go +36 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexture.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexturebuilder.go +35 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkkeys.go +22 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexture.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexturebuilder.go +35 -42 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmonitor.go +27 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpaintable.go +33 -63 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpango.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpixbuf.go +12 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopup.go +26 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopuplayout.go +32 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkrgba.go +21 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkseat.go +20 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksnapshot.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksurface.go +40 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktexture.go +31 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevel.go +66 -157 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevellayout.go +25 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevelsize.go +16 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktypes.go +72 -95 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkvulkancontext.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-animation.go +32 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-core.go +0 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-io.go +23 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-loader.go +22 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-simple-anim.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-transform.go +1 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf.go +79 -102 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/main.go +17 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gaction.go +31 -59 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactiongroup.go +39 -96 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactionmap.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gappinfo.go +116 -244 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplication.go +55 -79 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplicationcommandline.go +27 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncinitable.go +22 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncresult.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedinputstream.go +29 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedoutputstream.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbytesicon.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcancellable.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcharsetconverter.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcontenttype.go +26 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverter.go +20 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverterinputstream.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverteroutputstream.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcredentials.go +21 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatagrambased.go +30 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatainputstream.go +35 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdataoutputstream.go +23 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusactiongroup.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusaddress.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusauthobserver.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusconnection.go +66 -77 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbuserror.go +18 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusinterface.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusinterfaceskeleton.go +24 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusintrospection.go +56 -54 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmenumodel.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmessage.go +64 -88 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmethodinvocation.go +30 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusnameowning.go +15 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusnamewatching.go +15 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobject.go +17 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanager.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerclient.go +23 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerserver.go +20 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectproxy.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectskeleton.go +18 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusproxy.go +38 -42 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusserver.go +20 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusutils.go +22 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdebugcontroller.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdebugcontrollerdbus.go +14 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdrive.go +82 -214 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsclientconnection.go +24 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsconnection.go +80 -207 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsserverconnection.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gemblem.go +17 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gemblemedicon.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfile.go +450 -1148 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileattribute.go +19 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileenumerator.go +35 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileicon.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileinfo.go +84 -138 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileinputstream.go +23 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileiostream.go +27 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilemonitor.go +15 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilenamecompleter.go +16 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileoutputstream.go +27 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilterinputstream.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilteroutputstream.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gicon.go +25 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetaddress.go +34 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetaddressmask.go +21 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetsocketaddress.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginitable.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginputstream.go +48 -52 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioenums.go +1 -90 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioerror.go +13 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giomodule.go +29 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioscheduler.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giostream.go +29 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giotypes.go +60 -70
| @@ -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" | |
| @@ -109,7 +110,6 @@ type FileAttributeMatcher struct { | |||
| 109 | 110 | var xFileAttributeMatcherGLibType func() types.GType | |
| 110 | 111 | ||
| 111 | 112 | func FileAttributeMatcherGLibType() types.GType { | |
| 112 | - | core.LazyRegister(&xFileAttributeMatcherGLibType, "GIO", "g_file_attribute_matcher_get_type", false) | |
| 113 | 113 | return xFileAttributeMatcherGLibType() | |
| 114 | 114 | } | |
| 115 | 115 | ||
| @@ -147,8 +147,6 @@ var xNewFileAttributeMatcher func(string) uintptr | |||
| 147 | 147 | // - `"standard::type,unix::*"`: matches the type key in the standard | |
| 148 | 148 | // namespace and all keys in the unix namespace. | |
| 149 | 149 | func NewFileAttributeMatcher(AttributesVar string) *FileAttributeMatcher { | |
| 150 | - | core.LazyRegister(&xNewFileAttributeMatcher, "GIO", "g_file_attribute_matcher_new", false) | |
| 151 | - | ||
| 152 | 150 | cret := xNewFileAttributeMatcher(AttributesVar) | |
| 153 | 151 | if cret == 0 { | |
| 154 | 152 | return nil | |
| @@ -165,8 +163,6 @@ var xFileAttributeMatcherEnumerateNamespace func(uintptr, string) bool | |||
| 165 | 163 | // | |
| 166 | 164 | // TODO: this is awkwardly worded. | |
| 167 | 165 | func (x *FileAttributeMatcher) EnumerateNamespace(NsVar string) bool { | |
| 168 | - | core.LazyRegister(&xFileAttributeMatcherEnumerateNamespace, "GIO", "g_file_attribute_matcher_enumerate_namespace", false) | |
| 169 | - | ||
| 170 | 166 | cret := xFileAttributeMatcherEnumerateNamespace(x.GoPointer(), NsVar) | |
| 171 | 167 | return cret | |
| 172 | 168 | } | |
| @@ -175,8 +171,6 @@ var xFileAttributeMatcherEnumerateNext func(uintptr) string | |||
| 175 | 171 | ||
| 176 | 172 | // Gets the next matched attribute from a #GFileAttributeMatcher. | |
| 177 | 173 | func (x *FileAttributeMatcher) EnumerateNext() string { | |
| 178 | - | core.LazyRegister(&xFileAttributeMatcherEnumerateNext, "GIO", "g_file_attribute_matcher_enumerate_next", false) | |
| 179 | - | ||
| 180 | 174 | cret := xFileAttributeMatcherEnumerateNext(x.GoPointer()) | |
| 181 | 175 | return cret | |
| 182 | 176 | } | |
| @@ -187,8 +181,6 @@ var xFileAttributeMatcherMatches func(uintptr, string) bool | |||
| 187 | 181 | // the matcher was created with the "*" matching string, this function | |
| 188 | 182 | // will always return %TRUE. | |
| 189 | 183 | func (x *FileAttributeMatcher) Matches(AttributeVar string) bool { | |
| 190 | - | core.LazyRegister(&xFileAttributeMatcherMatches, "GIO", "g_file_attribute_matcher_matches", false) | |
| 191 | - | ||
| 192 | 184 | cret := xFileAttributeMatcherMatches(x.GoPointer(), AttributeVar) | |
| 193 | 185 | return cret | |
| 194 | 186 | } | |
| @@ -198,8 +190,6 @@ var xFileAttributeMatcherMatchesOnly func(uintptr, string) bool | |||
| 198 | 190 | // Checks if an attribute matcher only matches a given attribute. Always | |
| 199 | 191 | // returns %FALSE if "*" was used when creating the matcher. | |
| 200 | 192 | func (x *FileAttributeMatcher) MatchesOnly(AttributeVar string) bool { | |
| 201 | - | core.LazyRegister(&xFileAttributeMatcherMatchesOnly, "GIO", "g_file_attribute_matcher_matches_only", false) | |
| 202 | - | ||
| 203 | 193 | cret := xFileAttributeMatcherMatchesOnly(x.GoPointer(), AttributeVar) | |
| 204 | 194 | return cret | |
| 205 | 195 | } | |
| @@ -208,8 +198,6 @@ var xFileAttributeMatcherRef func(uintptr) uintptr | |||
| 208 | 198 | ||
| 209 | 199 | // References a file attribute matcher. | |
| 210 | 200 | func (x *FileAttributeMatcher) Ref() *FileAttributeMatcher { | |
| 211 | - | core.LazyRegister(&xFileAttributeMatcherRef, "GIO", "g_file_attribute_matcher_ref", false) | |
| 212 | - | ||
| 213 | 201 | cret := xFileAttributeMatcherRef(x.GoPointer()) | |
| 214 | 202 | if cret == 0 { | |
| 215 | 203 | return nil | |
| @@ -228,8 +216,6 @@ var xFileAttributeMatcherSubtract func(uintptr, *FileAttributeMatcher) uintptr | |||
| 228 | 216 | // is a limitation of the current implementation, but may be fixed | |
| 229 | 217 | // in the future. | |
| 230 | 218 | func (x *FileAttributeMatcher) Subtract(SubtractVar *FileAttributeMatcher) *FileAttributeMatcher { | |
| 231 | - | core.LazyRegister(&xFileAttributeMatcherSubtract, "GIO", "g_file_attribute_matcher_subtract", false) | |
| 232 | - | ||
| 233 | 219 | cret := xFileAttributeMatcherSubtract(x.GoPointer(), SubtractVar) | |
| 234 | 220 | if cret == 0 { | |
| 235 | 221 | return nil | |
| @@ -244,8 +230,6 @@ var xFileAttributeMatcherToString func(uintptr) string | |||
| 244 | 230 | // The output however, might not be identical, as the matcher may | |
| 245 | 231 | // decide to use a different order or omit needless parts. | |
| 246 | 232 | func (x *FileAttributeMatcher) ToString() string { | |
| 247 | - | core.LazyRegister(&xFileAttributeMatcherToString, "GIO", "g_file_attribute_matcher_to_string", false) | |
| 248 | - | ||
| 249 | 233 | cret := xFileAttributeMatcherToString(x.GoPointer()) | |
| 250 | 234 | return cret | |
| 251 | 235 | } | |
| @@ -255,8 +239,6 @@ var xFileAttributeMatcherUnref func(uintptr) | |||
| 255 | 239 | // Unreferences @matcher. If the reference count falls below 1, | |
| 256 | 240 | // the @matcher is automatically freed. | |
| 257 | 241 | func (x *FileAttributeMatcher) Unref() { | |
| 258 | - | core.LazyRegister(&xFileAttributeMatcherUnref, "GIO", "g_file_attribute_matcher_unref", false) | |
| 259 | - | ||
| 260 | 242 | xFileAttributeMatcherUnref(x.GoPointer()) | |
| 261 | 243 | } | |
| 262 | 244 | ||
| @@ -285,8 +267,6 @@ var xIOExtensionGetName func(uintptr) string | |||
| 285 | 267 | // Note that the same type may be registered as extension | |
| 286 | 268 | // for multiple extension points, under different names. | |
| 287 | 269 | func (x *IOExtension) GetName() string { | |
| 288 | - | core.LazyRegister(&xIOExtensionGetName, "GIO", "g_io_extension_get_name", false) | |
| 289 | - | ||
| 290 | 270 | cret := xIOExtensionGetName(x.GoPointer()) | |
| 291 | 271 | return cret | |
| 292 | 272 | } | |
| @@ -295,8 +275,6 @@ var xIOExtensionGetPriority func(uintptr) int | |||
| 295 | 275 | ||
| 296 | 276 | // Gets the priority with which @extension was registered. | |
| 297 | 277 | func (x *IOExtension) GetPriority() int { | |
| 298 | - | core.LazyRegister(&xIOExtensionGetPriority, "GIO", "g_io_extension_get_priority", false) | |
| 299 | - | ||
| 300 | 278 | cret := xIOExtensionGetPriority(x.GoPointer()) | |
| 301 | 279 | return cret | |
| 302 | 280 | } | |
| @@ -305,8 +283,6 @@ var xIOExtensionGetType func(uintptr) types.GType | |||
| 305 | 283 | ||
| 306 | 284 | // Gets the type associated with @extension. | |
| 307 | 285 | func (x *IOExtension) GetType() types.GType { | |
| 308 | - | core.LazyRegister(&xIOExtensionGetType, "GIO", "g_io_extension_get_type", false) | |
| 309 | - | ||
| 310 | 286 | cret := xIOExtensionGetType(x.GoPointer()) | |
| 311 | 287 | return cret | |
| 312 | 288 | } | |
| @@ -316,8 +292,6 @@ var xIOExtensionRefClass func(uintptr) uintptr | |||
| 316 | 292 | // Gets a reference to the class for the type that is | |
| 317 | 293 | // associated with @extension. | |
| 318 | 294 | func (x *IOExtension) RefClass() *gobject.TypeClass { | |
| 319 | - | core.LazyRegister(&xIOExtensionRefClass, "GIO", "g_io_extension_ref_class", false) | |
| 320 | - | ||
| 321 | 295 | cret := xIOExtensionRefClass(x.GoPointer()) | |
| 322 | 296 | if cret == 0 { | |
| 323 | 297 | return nil | |
| @@ -398,8 +372,6 @@ var xIOExtensionPointGetExtensionByName func(uintptr, string) uintptr | |||
| 398 | 372 | ||
| 399 | 373 | // Finds a #GIOExtension for an extension point by name. | |
| 400 | 374 | func (x *IOExtensionPoint) GetExtensionByName(NameVar string) *IOExtension { | |
| 401 | - | core.LazyRegister(&xIOExtensionPointGetExtensionByName, "GIO", "g_io_extension_point_get_extension_by_name", false) | |
| 402 | - | ||
| 403 | 375 | cret := xIOExtensionPointGetExtensionByName(x.GoPointer(), NameVar) | |
| 404 | 376 | if cret == 0 { | |
| 405 | 377 | return nil | |
| @@ -412,8 +384,6 @@ var xIOExtensionPointGetExtensions func(uintptr) uintptr | |||
| 412 | 384 | // Gets a list of all extensions that implement this extension point. | |
| 413 | 385 | // The list is sorted by priority, beginning with the highest priority. | |
| 414 | 386 | func (x *IOExtensionPoint) GetExtensions() *glib.List { | |
| 415 | - | core.LazyRegister(&xIOExtensionPointGetExtensions, "GIO", "g_io_extension_point_get_extensions", false) | |
| 416 | - | ||
| 417 | 387 | cret := xIOExtensionPointGetExtensions(x.GoPointer()) | |
| 418 | 388 | if cret == 0 { | |
| 419 | 389 | return nil | |
| @@ -425,8 +395,6 @@ var xIOExtensionPointGetRequiredType func(uintptr) types.GType | |||
| 425 | 395 | ||
| 426 | 396 | // Gets the required type for @extension_point. | |
| 427 | 397 | func (x *IOExtensionPoint) GetRequiredType() types.GType { | |
| 428 | - | core.LazyRegister(&xIOExtensionPointGetRequiredType, "GIO", "g_io_extension_point_get_required_type", false) | |
| 429 | - | ||
| 430 | 398 | cret := xIOExtensionPointGetRequiredType(x.GoPointer()) | |
| 431 | 399 | return cret | |
| 432 | 400 | } | |
| @@ -436,8 +404,6 @@ var xIOExtensionPointSetRequiredType func(uintptr, types.GType) | |||
| 436 | 404 | // Sets the required type for @extension_point to @type. | |
| 437 | 405 | // All implementations must henceforth have this type. | |
| 438 | 406 | func (x *IOExtensionPoint) SetRequiredType(TypeVar types.GType) { | |
| 439 | - | core.LazyRegister(&xIOExtensionPointSetRequiredType, "GIO", "g_io_extension_point_set_required_type", false) | |
| 440 | - | ||
| 441 | 407 | xIOExtensionPointSetRequiredType(x.GoPointer(), TypeVar) | |
| 442 | 408 | } | |
| 443 | 409 | ||
| @@ -464,8 +430,6 @@ var xIOSchedulerJobSendToMainloop func(uintptr, uintptr, uintptr, uintptr) bool | |||
| 464 | 430 | // that the job was started from, waiting for the result (and thus | |
| 465 | 431 | // blocking the I/O job). | |
| 466 | 432 | func (x *IOSchedulerJob) SendToMainloop(FuncVar *glib.SourceFunc, UserDataVar uintptr, NotifyVar *glib.DestroyNotify) bool { | |
| 467 | - | core.LazyRegister(&xIOSchedulerJobSendToMainloop, "GIO", "g_io_scheduler_job_send_to_mainloop", false) | |
| 468 | - | ||
| 469 | 433 | cret := xIOSchedulerJobSendToMainloop(x.GoPointer(), glib.NewCallback(FuncVar), UserDataVar, glib.NewCallbackNullable(NotifyVar)) | |
| 470 | 434 | return cret | |
| 471 | 435 | } | |
| @@ -482,8 +446,6 @@ var xIOSchedulerJobSendToMainloopAsync func(uintptr, uintptr, uintptr, uintptr) | |||
| 482 | 446 | // @func is called, either by passing %NULL as @notify to | |
| 483 | 447 | // g_io_scheduler_push_job() or by using refcounting for @user_data. | |
| 484 | 448 | func (x *IOSchedulerJob) SendToMainloopAsync(FuncVar *glib.SourceFunc, UserDataVar uintptr, NotifyVar *glib.DestroyNotify) { | |
| 485 | - | core.LazyRegister(&xIOSchedulerJobSendToMainloopAsync, "GIO", "g_io_scheduler_job_send_to_mainloop_async", false) | |
| 486 | - | ||
| 487 | 449 | xIOSchedulerJobSendToMainloopAsync(x.GoPointer(), glib.NewCallback(FuncVar), UserDataVar, glib.NewCallbackNullable(NotifyVar)) | |
| 488 | 450 | } | |
| 489 | 451 | ||
| @@ -805,7 +767,6 @@ type Resource struct { | |||
| 805 | 767 | var xResourceGLibType func() types.GType | |
| 806 | 768 | ||
| 807 | 769 | func ResourceGLibType() types.GType { | |
| 808 | - | core.LazyRegister(&xResourceGLibType, "GIO", "g_resource_get_type", false) | |
| 809 | 770 | return xResourceGLibType() | |
| 810 | 771 | } | |
| 811 | 772 | ||
| @@ -837,7 +798,6 @@ var xNewResourceFromData func(*glib.Bytes, **glib.Error) uintptr | |||
| 837 | 798 | // | |
| 838 | 799 | // If @data is empty or corrupt, %G_RESOURCE_ERROR_INTERNAL will be returned. | |
| 839 | 800 | func NewResourceFromData(DataVar *glib.Bytes) (*Resource, error) { | |
| 840 | - | core.LazyRegister(&xNewResourceFromData, "GIO", "g_resource_new_from_data", false) | |
| 841 | 801 | var cerr *glib.Error | |
| 842 | 802 | ||
| 843 | 803 | cret := xNewResourceFromData(DataVar, &cerr) | |
| @@ -858,8 +818,6 @@ var xResourceRegister func(uintptr) | |||
| 858 | 818 | // with the global resource lookup functions like | |
| 859 | 819 | // [func@Gio.resources_lookup_data]. | |
| 860 | 820 | func (x *Resource) Register() { | |
| 861 | - | core.LazyRegister(&xResourceRegister, "GIO", "g_resources_register", false) | |
| 862 | - | ||
| 863 | 821 | xResourceRegister(x.GoPointer()) | |
| 864 | 822 | } | |
| 865 | 823 | ||
| @@ -867,8 +825,6 @@ var xResourceUnregister func(uintptr) | |||
| 867 | 825 | ||
| 868 | 826 | // Unregisters the resource from the process-global set of resources. | |
| 869 | 827 | func (x *Resource) Unregister() { | |
| 870 | - | core.LazyRegister(&xResourceUnregister, "GIO", "g_resources_unregister", false) | |
| 871 | - | ||
| 872 | 828 | xResourceUnregister(x.GoPointer()) | |
| 873 | 829 | } | |
| 874 | 830 | ||
| @@ -884,7 +840,6 @@ var xResourceEnumerateChildren func(uintptr, string, ResourceLookupFlags, **glib | |||
| 884 | 840 | // | |
| 885 | 841 | // @lookup_flags controls the behaviour of the lookup. | |
| 886 | 842 | func (x *Resource) EnumerateChildren(PathVar string, LookupFlagsVar ResourceLookupFlags) ([]string, error) { | |
| 887 | - | core.LazyRegister(&xResourceEnumerateChildren, "GIO", "g_resource_enumerate_children", false) | |
| 888 | 843 | var cerr *glib.Error | |
| 889 | 844 | ||
| 890 | 845 | cret := xResourceEnumerateChildren(x.GoPointer(), PathVar, LookupFlagsVar, &cerr) | |
| @@ -904,7 +859,6 @@ var xResourceGetInfo func(uintptr, string, ResourceLookupFlags, *uint, *uint32, | |||
| 904 | 859 | // The only error this can return is %G_RESOURCE_ERROR_NOT_FOUND, if @path was | |
| 905 | 860 | // not found in @resource. | |
| 906 | 861 | func (x *Resource) GetInfo(PathVar string, LookupFlagsVar ResourceLookupFlags, SizeVar *uint, FlagsVar *uint32) (bool, error) { | |
| 907 | - | core.LazyRegister(&xResourceGetInfo, "GIO", "g_resource_get_info", false) | |
| 908 | 862 | var cerr *glib.Error | |
| 909 | 863 | ||
| 910 | 864 | cret := xResourceGetInfo(x.GoPointer(), PathVar, LookupFlagsVar, SizeVar, FlagsVar, &cerr) | |
| @@ -919,8 +873,6 @@ var xResourceHasChildren func(uintptr, string) bool | |||
| 919 | 873 | // Returns whether the specified @path in the resource | |
| 920 | 874 | // has children. | |
| 921 | 875 | func (x *Resource) HasChildren(PathVar string) bool { | |
| 922 | - | core.LazyRegister(&xResourceHasChildren, "GIO", "g_resource_has_children", false) | |
| 923 | - | ||
| 924 | 876 | cret := xResourceHasChildren(x.GoPointer(), PathVar) | |
| 925 | 877 | return cret | |
| 926 | 878 | } | |
| @@ -946,7 +898,6 @@ var xResourceLookupData func(uintptr, string, ResourceLookupFlags, **glib.Error) | |||
| 946 | 898 | // @resource, or %G_RESOURCE_ERROR_INTERNAL if decompression of a compressed | |
| 947 | 899 | // resource failed. | |
| 948 | 900 | func (x *Resource) LookupData(PathVar string, LookupFlagsVar ResourceLookupFlags) (*glib.Bytes, error) { | |
| 949 | - | core.LazyRegister(&xResourceLookupData, "GIO", "g_resource_lookup_data", false) | |
| 950 | 901 | var cerr *glib.Error | |
| 951 | 902 | ||
| 952 | 903 | cret := xResourceLookupData(x.GoPointer(), PathVar, LookupFlagsVar, &cerr) | |
| @@ -969,7 +920,6 @@ var xResourceOpenStream func(uintptr, string, ResourceLookupFlags, **glib.Error) | |||
| 969 | 920 | // The only error this can return is %G_RESOURCE_ERROR_NOT_FOUND, if @path was | |
| 970 | 921 | // not found in @resource. | |
| 971 | 922 | func (x *Resource) OpenStream(PathVar string, LookupFlagsVar ResourceLookupFlags) (*InputStream, error) { | |
| 972 | - | core.LazyRegister(&xResourceOpenStream, "GIO", "g_resource_open_stream", false) | |
| 973 | 923 | var cls *InputStream | |
| 974 | 924 | var cerr *glib.Error | |
| 975 | 925 | ||
| @@ -992,8 +942,6 @@ var xResourceRef func(uintptr) uintptr | |||
| 992 | 942 | // | |
| 993 | 943 | // This function is threadsafe and may be called from any thread. | |
| 994 | 944 | func (x *Resource) Ref() *Resource { | |
| 995 | - | core.LazyRegister(&xResourceRef, "GIO", "g_resource_ref", false) | |
| 996 | - | ||
| 997 | 945 | cret := xResourceRef(x.GoPointer()) | |
| 998 | 946 | if cret == 0 { | |
| 999 | 947 | return nil | |
| @@ -1009,8 +957,6 @@ var xResourceUnref func(uintptr) | |||
| 1009 | 957 | // released. This function is threadsafe and may be called from any | |
| 1010 | 958 | // thread. | |
| 1011 | 959 | func (x *Resource) Unref() { | |
| 1012 | - | core.LazyRegister(&xResourceUnref, "GIO", "g_resource_unref", false) | |
| 1013 | - | ||
| 1014 | 960 | xResourceUnref(x.GoPointer()) | |
| 1015 | 961 | } | |
| 1016 | 962 | ||
| @@ -1037,7 +983,6 @@ type SrvTarget struct { | |||
| 1037 | 983 | var xSrvTargetGLibType func() types.GType | |
| 1038 | 984 | ||
| 1039 | 985 | func SrvTargetGLibType() types.GType { | |
| 1040 | - | core.LazyRegister(&xSrvTargetGLibType, "GIO", "g_srv_target_get_type", false) | |
| 1041 | 986 | return xSrvTargetGLibType() | |
| 1042 | 987 | } | |
| 1043 | 988 | ||
| @@ -1060,8 +1005,6 @@ var xNewSrvTarget func(string, uint16, uint16, uint16) uintptr | |||
| 1060 | 1005 | // You should not need to use this; normally #GSrvTargets are | |
| 1061 | 1006 | // created by #GResolver. | |
| 1062 | 1007 | func NewSrvTarget(HostnameVar string, PortVar uint16, PriorityVar uint16, WeightVar uint16) *SrvTarget { | |
| 1063 | - | core.LazyRegister(&xNewSrvTarget, "GIO", "g_srv_target_new", false) | |
| 1064 | - | ||
| 1065 | 1008 | cret := xNewSrvTarget(HostnameVar, PortVar, PriorityVar, WeightVar) | |
| 1066 | 1009 | if cret == 0 { | |
| 1067 | 1010 | return nil | |
| @@ -1073,8 +1016,6 @@ var xSrvTargetCopy func(uintptr) uintptr | |||
| 1073 | 1016 | ||
| 1074 | 1017 | // Copies @target | |
| 1075 | 1018 | func (x *SrvTarget) Copy() *SrvTarget { | |
| 1076 | - | core.LazyRegister(&xSrvTargetCopy, "GIO", "g_srv_target_copy", false) | |
| 1077 | - | ||
| 1078 | 1019 | cret := xSrvTargetCopy(x.GoPointer()) | |
| 1079 | 1020 | if cret == 0 { | |
| 1080 | 1021 | return nil | |
| @@ -1086,8 +1027,6 @@ var xSrvTargetFree func(uintptr) | |||
| 1086 | 1027 | ||
| 1087 | 1028 | // Frees @target | |
| 1088 | 1029 | func (x *SrvTarget) Free() { | |
| 1089 | - | core.LazyRegister(&xSrvTargetFree, "GIO", "g_srv_target_free", false) | |
| 1090 | - | ||
| 1091 | 1030 | xSrvTargetFree(x.GoPointer()) | |
| 1092 | 1031 | } | |
| 1093 | 1032 | ||
| @@ -1098,8 +1037,6 @@ var xSrvTargetGetHostname func(uintptr) string | |||
| 1098 | 1037 | // check if it contains encoded Unicode segments, and use | |
| 1099 | 1038 | // g_hostname_to_unicode() to convert it if it does.) | |
| 1100 | 1039 | func (x *SrvTarget) GetHostname() string { | |
| 1101 | - | core.LazyRegister(&xSrvTargetGetHostname, "GIO", "g_srv_target_get_hostname", false) | |
| 1102 | - | ||
| 1103 | 1040 | cret := xSrvTargetGetHostname(x.GoPointer()) | |
| 1104 | 1041 | return cret | |
| 1105 | 1042 | } | |
| @@ -1108,8 +1045,6 @@ var xSrvTargetGetPort func(uintptr) uint16 | |||
| 1108 | 1045 | ||
| 1109 | 1046 | // Gets @target's port | |
| 1110 | 1047 | func (x *SrvTarget) GetPort() uint16 { | |
| 1111 | - | core.LazyRegister(&xSrvTargetGetPort, "GIO", "g_srv_target_get_port", false) | |
| 1112 | - | ||
| 1113 | 1048 | cret := xSrvTargetGetPort(x.GoPointer()) | |
| 1114 | 1049 | return cret | |
| 1115 | 1050 | } | |
| @@ -1120,8 +1055,6 @@ var xSrvTargetGetPriority func(uintptr) uint16 | |||
| 1120 | 1055 | // #GResolver already sorts the targets according to the algorithm in | |
| 1121 | 1056 | // RFC 2782. | |
| 1122 | 1057 | func (x *SrvTarget) GetPriority() uint16 { | |
| 1123 | - | core.LazyRegister(&xSrvTargetGetPriority, "GIO", "g_srv_target_get_priority", false) | |
| 1124 | - | ||
| 1125 | 1058 | cret := xSrvTargetGetPriority(x.GoPointer()) | |
| 1126 | 1059 | return cret | |
| 1127 | 1060 | } | |
| @@ -1132,8 +1065,6 @@ var xSrvTargetGetWeight func(uintptr) uint16 | |||
| 1132 | 1065 | // #GResolver already sorts the targets according to the algorithm in | |
| 1133 | 1066 | // RFC 2782. | |
| 1134 | 1067 | func (x *SrvTarget) GetWeight() uint16 { | |
| 1135 | - | core.LazyRegister(&xSrvTargetGetWeight, "GIO", "g_srv_target_get_weight", false) | |
| 1136 | - | ||
| 1137 | 1068 | cret := xSrvTargetGetWeight(x.GoPointer()) | |
| 1138 | 1069 | return cret | |
| 1139 | 1070 | } | |
| @@ -1141,4 +1072,63 @@ func (x *SrvTarget) GetWeight() uint16 { | |||
| 1141 | 1072 | func init() { | |
| 1142 | 1073 | core.SetPackageName("GIO", "gio-2.0") | |
| 1143 | 1074 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | |
| 1075 | + | var libs []uintptr | |
| 1076 | + | for _, libPath := range core.GetPaths("GIO") { | |
| 1077 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 1078 | + | if err != nil { | |
| 1079 | + | panic(err) | |
| 1080 | + | } | |
| 1081 | + | libs = append(libs, lib) | |
| 1082 | + | } | |
| 1083 | + | ||
| 1084 | + | core.PuregoSafeRegister(&xFileAttributeMatcherGLibType, libs, "g_file_attribute_matcher_get_type") | |
| 1085 | + | ||
| 1086 | + | core.PuregoSafeRegister(&xNewFileAttributeMatcher, libs, "g_file_attribute_matcher_new") | |
| 1087 | + | ||
| 1088 | + | core.PuregoSafeRegister(&xFileAttributeMatcherEnumerateNamespace, libs, "g_file_attribute_matcher_enumerate_namespace") | |
| 1089 | + | core.PuregoSafeRegister(&xFileAttributeMatcherEnumerateNext, libs, "g_file_attribute_matcher_enumerate_next") | |
| 1090 | + | core.PuregoSafeRegister(&xFileAttributeMatcherMatches, libs, "g_file_attribute_matcher_matches") | |
| 1091 | + | core.PuregoSafeRegister(&xFileAttributeMatcherMatchesOnly, libs, "g_file_attribute_matcher_matches_only") | |
| 1092 | + | core.PuregoSafeRegister(&xFileAttributeMatcherRef, libs, "g_file_attribute_matcher_ref") | |
| 1093 | + | core.PuregoSafeRegister(&xFileAttributeMatcherSubtract, libs, "g_file_attribute_matcher_subtract") | |
| 1094 | + | core.PuregoSafeRegister(&xFileAttributeMatcherToString, libs, "g_file_attribute_matcher_to_string") | |
| 1095 | + | core.PuregoSafeRegister(&xFileAttributeMatcherUnref, libs, "g_file_attribute_matcher_unref") | |
| 1096 | + | ||
| 1097 | + | core.PuregoSafeRegister(&xIOExtensionGetName, libs, "g_io_extension_get_name") | |
| 1098 | + | core.PuregoSafeRegister(&xIOExtensionGetPriority, libs, "g_io_extension_get_priority") | |
| 1099 | + | core.PuregoSafeRegister(&xIOExtensionGetType, libs, "g_io_extension_get_type") | |
| 1100 | + | core.PuregoSafeRegister(&xIOExtensionRefClass, libs, "g_io_extension_ref_class") | |
| 1101 | + | ||
| 1102 | + | core.PuregoSafeRegister(&xIOExtensionPointGetExtensionByName, libs, "g_io_extension_point_get_extension_by_name") | |
| 1103 | + | core.PuregoSafeRegister(&xIOExtensionPointGetExtensions, libs, "g_io_extension_point_get_extensions") | |
| 1104 | + | core.PuregoSafeRegister(&xIOExtensionPointGetRequiredType, libs, "g_io_extension_point_get_required_type") | |
| 1105 | + | core.PuregoSafeRegister(&xIOExtensionPointSetRequiredType, libs, "g_io_extension_point_set_required_type") | |
| 1106 | + | ||
| 1107 | + | core.PuregoSafeRegister(&xIOSchedulerJobSendToMainloop, libs, "g_io_scheduler_job_send_to_mainloop") | |
| 1108 | + | core.PuregoSafeRegister(&xIOSchedulerJobSendToMainloopAsync, libs, "g_io_scheduler_job_send_to_mainloop_async") | |
| 1109 | + | ||
| 1110 | + | core.PuregoSafeRegister(&xResourceGLibType, libs, "g_resource_get_type") | |
| 1111 | + | ||
| 1112 | + | core.PuregoSafeRegister(&xNewResourceFromData, libs, "g_resource_new_from_data") | |
| 1113 | + | ||
| 1114 | + | core.PuregoSafeRegister(&xResourceRegister, libs, "g_resources_register") | |
| 1115 | + | core.PuregoSafeRegister(&xResourceUnregister, libs, "g_resources_unregister") | |
| 1116 | + | core.PuregoSafeRegister(&xResourceEnumerateChildren, libs, "g_resource_enumerate_children") | |
| 1117 | + | core.PuregoSafeRegister(&xResourceGetInfo, libs, "g_resource_get_info") | |
| 1118 | + | core.PuregoSafeRegister(&xResourceHasChildren, libs, "g_resource_has_children") | |
| 1119 | + | core.PuregoSafeRegister(&xResourceLookupData, libs, "g_resource_lookup_data") | |
| 1120 | + | core.PuregoSafeRegister(&xResourceOpenStream, libs, "g_resource_open_stream") | |
| 1121 | + | core.PuregoSafeRegister(&xResourceRef, libs, "g_resource_ref") | |
| 1122 | + | core.PuregoSafeRegister(&xResourceUnref, libs, "g_resource_unref") | |
| 1123 | + | ||
| 1124 | + | core.PuregoSafeRegister(&xSrvTargetGLibType, libs, "g_srv_target_get_type") | |
| 1125 | + | ||
| 1126 | + | core.PuregoSafeRegister(&xNewSrvTarget, libs, "g_srv_target_new") | |
| 1127 | + | ||
| 1128 | + | core.PuregoSafeRegister(&xSrvTargetCopy, libs, "g_srv_target_copy") | |
| 1129 | + | core.PuregoSafeRegister(&xSrvTargetFree, libs, "g_srv_target_free") | |
| 1130 | + | core.PuregoSafeRegister(&xSrvTargetGetHostname, libs, "g_srv_target_get_hostname") | |
| 1131 | + | core.PuregoSafeRegister(&xSrvTargetGetPort, libs, "g_srv_target_get_port") | |
| 1132 | + | core.PuregoSafeRegister(&xSrvTargetGetPriority, libs, "g_srv_target_get_priority") | |
| 1133 | + | core.PuregoSafeRegister(&xSrvTargetGetWeight, libs, "g_srv_target_get_weight") | |
| 1144 | 1134 | } | |
| @@ -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" | ||
| @@ -109,7 +110,6 @@ type FileAttributeMatcher struct { | |||||
| 109 | var xFileAttributeMatcherGLibType func() types.GType | 110 | var xFileAttributeMatcherGLibType func() types.GType | ||
| 110 | 111 | ||||
| 111 | func FileAttributeMatcherGLibType() types.GType { | 112 | func FileAttributeMatcherGLibType() types.GType { | ||
| 112 | - | core.LazyRegister(&xFileAttributeMatcherGLibType, "GIO", "g_file_attribute_matcher_get_type", false) | |||
| 113 | return xFileAttributeMatcherGLibType() | 113 | return xFileAttributeMatcherGLibType() | ||
| 114 | } | 114 | } | ||
| 115 | 115 | ||||
| @@ -147,8 +147,6 @@ var xNewFileAttributeMatcher func(string) uintptr | |||||
| 147 | // - `"standard::type,unix::*"`: matches the type key in the standard | 147 | // - `"standard::type,unix::*"`: matches the type key in the standard | ||
| 148 | // namespace and all keys in the unix namespace. | 148 | // namespace and all keys in the unix namespace. | ||
| 149 | func NewFileAttributeMatcher(AttributesVar string) *FileAttributeMatcher { | 149 | func NewFileAttributeMatcher(AttributesVar string) *FileAttributeMatcher { | ||
| 150 | - | core.LazyRegister(&xNewFileAttributeMatcher, "GIO", "g_file_attribute_matcher_new", false) | |||
| 151 | - | ||||
| 152 | cret := xNewFileAttributeMatcher(AttributesVar) | 150 | cret := xNewFileAttributeMatcher(AttributesVar) | ||
| 153 | if cret == 0 { | 151 | if cret == 0 { | ||
| 154 | return nil | 152 | return nil | ||
| @@ -165,8 +163,6 @@ var xFileAttributeMatcherEnumerateNamespace func(uintptr, string) bool | |||||
| 165 | // | 163 | // | ||
| 166 | // TODO: this is awkwardly worded. | 164 | // TODO: this is awkwardly worded. | ||
| 167 | func (x *FileAttributeMatcher) EnumerateNamespace(NsVar string) bool { | 165 | func (x *FileAttributeMatcher) EnumerateNamespace(NsVar string) bool { | ||
| 168 | - | core.LazyRegister(&xFileAttributeMatcherEnumerateNamespace, "GIO", "g_file_attribute_matcher_enumerate_namespace", false) | |||
| 169 | - | ||||
| 170 | cret := xFileAttributeMatcherEnumerateNamespace(x.GoPointer(), NsVar) | 166 | cret := xFileAttributeMatcherEnumerateNamespace(x.GoPointer(), NsVar) | ||
| 171 | return cret | 167 | return cret | ||
| 172 | } | 168 | } | ||
| @@ -175,8 +171,6 @@ var xFileAttributeMatcherEnumerateNext func(uintptr) string | |||||
| 175 | 171 | ||||
| 176 | // Gets the next matched attribute from a #GFileAttributeMatcher. | 172 | // Gets the next matched attribute from a #GFileAttributeMatcher. | ||
| 177 | func (x *FileAttributeMatcher) EnumerateNext() string { | 173 | func (x *FileAttributeMatcher) EnumerateNext() string { | ||
| 178 | - | core.LazyRegister(&xFileAttributeMatcherEnumerateNext, "GIO", "g_file_attribute_matcher_enumerate_next", false) | |||
| 179 | - | ||||
| 180 | cret := xFileAttributeMatcherEnumerateNext(x.GoPointer()) | 174 | cret := xFileAttributeMatcherEnumerateNext(x.GoPointer()) | ||
| 181 | return cret | 175 | return cret | ||
| 182 | } | 176 | } | ||
| @@ -187,8 +181,6 @@ var xFileAttributeMatcherMatches func(uintptr, string) bool | |||||
| 187 | // the matcher was created with the "*" matching string, this function | 181 | // the matcher was created with the "*" matching string, this function | ||
| 188 | // will always return %TRUE. | 182 | // will always return %TRUE. | ||
| 189 | func (x *FileAttributeMatcher) Matches(AttributeVar string) bool { | 183 | func (x *FileAttributeMatcher) Matches(AttributeVar string) bool { | ||
| 190 | - | core.LazyRegister(&xFileAttributeMatcherMatches, "GIO", "g_file_attribute_matcher_matches", false) | |||
| 191 | - | ||||
| 192 | cret := xFileAttributeMatcherMatches(x.GoPointer(), AttributeVar) | 184 | cret := xFileAttributeMatcherMatches(x.GoPointer(), AttributeVar) | ||
| 193 | return cret | 185 | return cret | ||
| 194 | } | 186 | } | ||
| @@ -198,8 +190,6 @@ var xFileAttributeMatcherMatchesOnly func(uintptr, string) bool | |||||
| 198 | // Checks if an attribute matcher only matches a given attribute. Always | 190 | // Checks if an attribute matcher only matches a given attribute. Always | ||
| 199 | // returns %FALSE if "*" was used when creating the matcher. | 191 | // returns %FALSE if "*" was used when creating the matcher. | ||
| 200 | func (x *FileAttributeMatcher) MatchesOnly(AttributeVar string) bool { | 192 | func (x *FileAttributeMatcher) MatchesOnly(AttributeVar string) bool { | ||
| 201 | - | core.LazyRegister(&xFileAttributeMatcherMatchesOnly, "GIO", "g_file_attribute_matcher_matches_only", false) | |||
| 202 | - | ||||
| 203 | cret := xFileAttributeMatcherMatchesOnly(x.GoPointer(), AttributeVar) | 193 | cret := xFileAttributeMatcherMatchesOnly(x.GoPointer(), AttributeVar) | ||
| 204 | return cret | 194 | return cret | ||
| 205 | } | 195 | } | ||
| @@ -208,8 +198,6 @@ var xFileAttributeMatcherRef func(uintptr) uintptr | |||||
| 208 | 198 | ||||
| 209 | // References a file attribute matcher. | 199 | // References a file attribute matcher. | ||
| 210 | func (x *FileAttributeMatcher) Ref() *FileAttributeMatcher { | 200 | func (x *FileAttributeMatcher) Ref() *FileAttributeMatcher { | ||
| 211 | - | core.LazyRegister(&xFileAttributeMatcherRef, "GIO", "g_file_attribute_matcher_ref", false) | |||
| 212 | - | ||||
| 213 | cret := xFileAttributeMatcherRef(x.GoPointer()) | 201 | cret := xFileAttributeMatcherRef(x.GoPointer()) | ||
| 214 | if cret == 0 { | 202 | if cret == 0 { | ||
| 215 | return nil | 203 | return nil | ||
| @@ -228,8 +216,6 @@ var xFileAttributeMatcherSubtract func(uintptr, *FileAttributeMatcher) uintptr | |||||
| 228 | // is a limitation of the current implementation, but may be fixed | 216 | // is a limitation of the current implementation, but may be fixed | ||
| 229 | // in the future. | 217 | // in the future. | ||
| 230 | func (x *FileAttributeMatcher) Subtract(SubtractVar *FileAttributeMatcher) *FileAttributeMatcher { | 218 | func (x *FileAttributeMatcher) Subtract(SubtractVar *FileAttributeMatcher) *FileAttributeMatcher { | ||
| 231 | - | core.LazyRegister(&xFileAttributeMatcherSubtract, "GIO", "g_file_attribute_matcher_subtract", false) | |||
| 232 | - | ||||
| 233 | cret := xFileAttributeMatcherSubtract(x.GoPointer(), SubtractVar) | 219 | cret := xFileAttributeMatcherSubtract(x.GoPointer(), SubtractVar) | ||
| 234 | if cret == 0 { | 220 | if cret == 0 { | ||
| 235 | return nil | 221 | return nil | ||
| @@ -244,8 +230,6 @@ var xFileAttributeMatcherToString func(uintptr) string | |||||
| 244 | // The output however, might not be identical, as the matcher may | 230 | // The output however, might not be identical, as the matcher may | ||
| 245 | // decide to use a different order or omit needless parts. | 231 | // decide to use a different order or omit needless parts. | ||
| 246 | func (x *FileAttributeMatcher) ToString() string { | 232 | func (x *FileAttributeMatcher) ToString() string { | ||
| 247 | - | core.LazyRegister(&xFileAttributeMatcherToString, "GIO", "g_file_attribute_matcher_to_string", false) | |||
| 248 | - | ||||
| 249 | cret := xFileAttributeMatcherToString(x.GoPointer()) | 233 | cret := xFileAttributeMatcherToString(x.GoPointer()) | ||
| 250 | return cret | 234 | return cret | ||
| 251 | } | 235 | } | ||
| @@ -255,8 +239,6 @@ var xFileAttributeMatcherUnref func(uintptr) | |||||
| 255 | // Unreferences @matcher. If the reference count falls below 1, | 239 | // Unreferences @matcher. If the reference count falls below 1, | ||
| 256 | // the @matcher is automatically freed. | 240 | // the @matcher is automatically freed. | ||
| 257 | func (x *FileAttributeMatcher) Unref() { | 241 | func (x *FileAttributeMatcher) Unref() { | ||
| 258 | - | core.LazyRegister(&xFileAttributeMatcherUnref, "GIO", "g_file_attribute_matcher_unref", false) | |||
| 259 | - | ||||
| 260 | xFileAttributeMatcherUnref(x.GoPointer()) | 242 | xFileAttributeMatcherUnref(x.GoPointer()) | ||
| 261 | } | 243 | } | ||
| 262 | 244 | ||||
| @@ -285,8 +267,6 @@ var xIOExtensionGetName func(uintptr) string | |||||
| 285 | // Note that the same type may be registered as extension | 267 | // Note that the same type may be registered as extension | ||
| 286 | // for multiple extension points, under different names. | 268 | // for multiple extension points, under different names. | ||
| 287 | func (x *IOExtension) GetName() string { | 269 | func (x *IOExtension) GetName() string { | ||
| 288 | - | core.LazyRegister(&xIOExtensionGetName, "GIO", "g_io_extension_get_name", false) | |||
| 289 | - | ||||
| 290 | cret := xIOExtensionGetName(x.GoPointer()) | 270 | cret := xIOExtensionGetName(x.GoPointer()) | ||
| 291 | return cret | 271 | return cret | ||
| 292 | } | 272 | } | ||
| @@ -295,8 +275,6 @@ var xIOExtensionGetPriority func(uintptr) int | |||||
| 295 | 275 | ||||
| 296 | // Gets the priority with which @extension was registered. | 276 | // Gets the priority with which @extension was registered. | ||
| 297 | func (x *IOExtension) GetPriority() int { | 277 | func (x *IOExtension) GetPriority() int { | ||
| 298 | - | core.LazyRegister(&xIOExtensionGetPriority, "GIO", "g_io_extension_get_priority", false) | |||
| 299 | - | ||||
| 300 | cret := xIOExtensionGetPriority(x.GoPointer()) | 278 | cret := xIOExtensionGetPriority(x.GoPointer()) | ||
| 301 | return cret | 279 | return cret | ||
| 302 | } | 280 | } | ||
| @@ -305,8 +283,6 @@ var xIOExtensionGetType func(uintptr) types.GType | |||||
| 305 | 283 | ||||
| 306 | // Gets the type associated with @extension. | 284 | // Gets the type associated with @extension. | ||
| 307 | func (x *IOExtension) GetType() types.GType { | 285 | func (x *IOExtension) GetType() types.GType { | ||
| 308 | - | core.LazyRegister(&xIOExtensionGetType, "GIO", "g_io_extension_get_type", false) | |||
| 309 | - | ||||
| 310 | cret := xIOExtensionGetType(x.GoPointer()) | 286 | cret := xIOExtensionGetType(x.GoPointer()) | ||
| 311 | return cret | 287 | return cret | ||
| 312 | } | 288 | } | ||
| @@ -316,8 +292,6 @@ var xIOExtensionRefClass func(uintptr) uintptr | |||||
| 316 | // Gets a reference to the class for the type that is | 292 | // Gets a reference to the class for the type that is | ||
| 317 | // associated with @extension. | 293 | // associated with @extension. | ||
| 318 | func (x *IOExtension) RefClass() *gobject.TypeClass { | 294 | func (x *IOExtension) RefClass() *gobject.TypeClass { | ||
| 319 | - | core.LazyRegister(&xIOExtensionRefClass, "GIO", "g_io_extension_ref_class", false) | |||
| 320 | - | ||||
| 321 | cret := xIOExtensionRefClass(x.GoPointer()) | 295 | cret := xIOExtensionRefClass(x.GoPointer()) | ||
| 322 | if cret == 0 { | 296 | if cret == 0 { | ||
| 323 | return nil | 297 | return nil | ||
| @@ -398,8 +372,6 @@ var xIOExtensionPointGetExtensionByName func(uintptr, string) uintptr | |||||
| 398 | 372 | ||||
| 399 | // Finds a #GIOExtension for an extension point by name. | 373 | // Finds a #GIOExtension for an extension point by name. | ||
| 400 | func (x *IOExtensionPoint) GetExtensionByName(NameVar string) *IOExtension { | 374 | func (x *IOExtensionPoint) GetExtensionByName(NameVar string) *IOExtension { | ||
| 401 | - | core.LazyRegister(&xIOExtensionPointGetExtensionByName, "GIO", "g_io_extension_point_get_extension_by_name", false) | |||
| 402 | - | ||||
| 403 | cret := xIOExtensionPointGetExtensionByName(x.GoPointer(), NameVar) | 375 | cret := xIOExtensionPointGetExtensionByName(x.GoPointer(), NameVar) | ||
| 404 | if cret == 0 { | 376 | if cret == 0 { | ||
| 405 | return nil | 377 | return nil | ||
| @@ -412,8 +384,6 @@ var xIOExtensionPointGetExtensions func(uintptr) uintptr | |||||
| 412 | // Gets a list of all extensions that implement this extension point. | 384 | // Gets a list of all extensions that implement this extension point. | ||
| 413 | // The list is sorted by priority, beginning with the highest priority. | 385 | // The list is sorted by priority, beginning with the highest priority. | ||
| 414 | func (x *IOExtensionPoint) GetExtensions() *glib.List { | 386 | func (x *IOExtensionPoint) GetExtensions() *glib.List { | ||
| 415 | - | core.LazyRegister(&xIOExtensionPointGetExtensions, "GIO", "g_io_extension_point_get_extensions", false) | |||
| 416 | - | ||||
| 417 | cret := xIOExtensionPointGetExtensions(x.GoPointer()) | 387 | cret := xIOExtensionPointGetExtensions(x.GoPointer()) | ||
| 418 | if cret == 0 { | 388 | if cret == 0 { | ||
| 419 | return nil | 389 | return nil | ||
| @@ -425,8 +395,6 @@ var xIOExtensionPointGetRequiredType func(uintptr) types.GType | |||||
| 425 | 395 | ||||
| 426 | // Gets the required type for @extension_point. | 396 | // Gets the required type for @extension_point. | ||
| 427 | func (x *IOExtensionPoint) GetRequiredType() types.GType { | 397 | func (x *IOExtensionPoint) GetRequiredType() types.GType { | ||
| 428 | - | core.LazyRegister(&xIOExtensionPointGetRequiredType, "GIO", "g_io_extension_point_get_required_type", false) | |||
| 429 | - | ||||
| 430 | cret := xIOExtensionPointGetRequiredType(x.GoPointer()) | 398 | cret := xIOExtensionPointGetRequiredType(x.GoPointer()) | ||
| 431 | return cret | 399 | return cret | ||
| 432 | } | 400 | } | ||
| @@ -436,8 +404,6 @@ var xIOExtensionPointSetRequiredType func(uintptr, types.GType) | |||||
| 436 | // Sets the required type for @extension_point to @type. | 404 | // Sets the required type for @extension_point to @type. | ||
| 437 | // All implementations must henceforth have this type. | 405 | // All implementations must henceforth have this type. | ||
| 438 | func (x *IOExtensionPoint) SetRequiredType(TypeVar types.GType) { | 406 | func (x *IOExtensionPoint) SetRequiredType(TypeVar types.GType) { | ||
| 439 | - | core.LazyRegister(&xIOExtensionPointSetRequiredType, "GIO", "g_io_extension_point_set_required_type", false) | |||
| 440 | - | ||||
| 441 | xIOExtensionPointSetRequiredType(x.GoPointer(), TypeVar) | 407 | xIOExtensionPointSetRequiredType(x.GoPointer(), TypeVar) | ||
| 442 | } | 408 | } | ||
| 443 | 409 | ||||
| @@ -464,8 +430,6 @@ var xIOSchedulerJobSendToMainloop func(uintptr, uintptr, uintptr, uintptr) bool | |||||
| 464 | // that the job was started from, waiting for the result (and thus | 430 | // that the job was started from, waiting for the result (and thus | ||
| 465 | // blocking the I/O job). | 431 | // blocking the I/O job). | ||
| 466 | func (x *IOSchedulerJob) SendToMainloop(FuncVar *glib.SourceFunc, UserDataVar uintptr, NotifyVar *glib.DestroyNotify) bool { | 432 | func (x *IOSchedulerJob) SendToMainloop(FuncVar *glib.SourceFunc, UserDataVar uintptr, NotifyVar *glib.DestroyNotify) bool { | ||
| 467 | - | core.LazyRegister(&xIOSchedulerJobSendToMainloop, "GIO", "g_io_scheduler_job_send_to_mainloop", false) | |||
| 468 | - | ||||
| 469 | cret := xIOSchedulerJobSendToMainloop(x.GoPointer(), glib.NewCallback(FuncVar), UserDataVar, glib.NewCallbackNullable(NotifyVar)) | 433 | cret := xIOSchedulerJobSendToMainloop(x.GoPointer(), glib.NewCallback(FuncVar), UserDataVar, glib.NewCallbackNullable(NotifyVar)) | ||
| 470 | return cret | 434 | return cret | ||
| 471 | } | 435 | } | ||
| @@ -482,8 +446,6 @@ var xIOSchedulerJobSendToMainloopAsync func(uintptr, uintptr, uintptr, uintptr) | |||||
| 482 | // @func is called, either by passing %NULL as @notify to | 446 | // @func is called, either by passing %NULL as @notify to | ||
| 483 | // g_io_scheduler_push_job() or by using refcounting for @user_data. | 447 | // g_io_scheduler_push_job() or by using refcounting for @user_data. | ||
| 484 | func (x *IOSchedulerJob) SendToMainloopAsync(FuncVar *glib.SourceFunc, UserDataVar uintptr, NotifyVar *glib.DestroyNotify) { | 448 | func (x *IOSchedulerJob) SendToMainloopAsync(FuncVar *glib.SourceFunc, UserDataVar uintptr, NotifyVar *glib.DestroyNotify) { | ||
| 485 | - | core.LazyRegister(&xIOSchedulerJobSendToMainloopAsync, "GIO", "g_io_scheduler_job_send_to_mainloop_async", false) | |||
| 486 | - | ||||
| 487 | xIOSchedulerJobSendToMainloopAsync(x.GoPointer(), glib.NewCallback(FuncVar), UserDataVar, glib.NewCallbackNullable(NotifyVar)) | 449 | xIOSchedulerJobSendToMainloopAsync(x.GoPointer(), glib.NewCallback(FuncVar), UserDataVar, glib.NewCallbackNullable(NotifyVar)) | ||
| 488 | } | 450 | } | ||
| 489 | 451 | ||||
| @@ -805,7 +767,6 @@ type Resource struct { | |||||
| 805 | var xResourceGLibType func() types.GType | 767 | var xResourceGLibType func() types.GType | ||
| 806 | 768 | ||||
| 807 | func ResourceGLibType() types.GType { | 769 | func ResourceGLibType() types.GType { | ||
| 808 | - | core.LazyRegister(&xResourceGLibType, "GIO", "g_resource_get_type", false) | |||
| 809 | return xResourceGLibType() | 770 | return xResourceGLibType() | ||
| 810 | } | 771 | } | ||
| 811 | 772 | ||||
| @@ -837,7 +798,6 @@ var xNewResourceFromData func(*glib.Bytes, **glib.Error) uintptr | |||||
| 837 | // | 798 | // | ||
| 838 | // If @data is empty or corrupt, %G_RESOURCE_ERROR_INTERNAL will be returned. | 799 | // If @data is empty or corrupt, %G_RESOURCE_ERROR_INTERNAL will be returned. | ||
| 839 | func NewResourceFromData(DataVar *glib.Bytes) (*Resource, error) { | 800 | func NewResourceFromData(DataVar *glib.Bytes) (*Resource, error) { | ||
| 840 | - | core.LazyRegister(&xNewResourceFromData, "GIO", "g_resource_new_from_data", false) | |||
| 841 | var cerr *glib.Error | 801 | var cerr *glib.Error | ||
| 842 | 802 | ||||
| 843 | cret := xNewResourceFromData(DataVar, &cerr) | 803 | cret := xNewResourceFromData(DataVar, &cerr) | ||
| @@ -858,8 +818,6 @@ var xResourceRegister func(uintptr) | |||||
| 858 | // with the global resource lookup functions like | 818 | // with the global resource lookup functions like | ||
| 859 | // [func@Gio.resources_lookup_data]. | 819 | // [func@Gio.resources_lookup_data]. | ||
| 860 | func (x *Resource) Register() { | 820 | func (x *Resource) Register() { | ||
| 861 | - | core.LazyRegister(&xResourceRegister, "GIO", "g_resources_register", false) | |||
| 862 | - | ||||
| 863 | xResourceRegister(x.GoPointer()) | 821 | xResourceRegister(x.GoPointer()) | ||
| 864 | } | 822 | } | ||
| 865 | 823 | ||||
| @@ -867,8 +825,6 @@ var xResourceUnregister func(uintptr) | |||||
| 867 | 825 | ||||
| 868 | // Unregisters the resource from the process-global set of resources. | 826 | // Unregisters the resource from the process-global set of resources. | ||
| 869 | func (x *Resource) Unregister() { | 827 | func (x *Resource) Unregister() { | ||
| 870 | - | core.LazyRegister(&xResourceUnregister, "GIO", "g_resources_unregister", false) | |||
| 871 | - | ||||
| 872 | xResourceUnregister(x.GoPointer()) | 828 | xResourceUnregister(x.GoPointer()) | ||
| 873 | } | 829 | } | ||
| 874 | 830 | ||||
| @@ -884,7 +840,6 @@ var xResourceEnumerateChildren func(uintptr, string, ResourceLookupFlags, **glib | |||||
| 884 | // | 840 | // | ||
| 885 | // @lookup_flags controls the behaviour of the lookup. | 841 | // @lookup_flags controls the behaviour of the lookup. | ||
| 886 | func (x *Resource) EnumerateChildren(PathVar string, LookupFlagsVar ResourceLookupFlags) ([]string, error) { | 842 | func (x *Resource) EnumerateChildren(PathVar string, LookupFlagsVar ResourceLookupFlags) ([]string, error) { | ||
| 887 | - | core.LazyRegister(&xResourceEnumerateChildren, "GIO", "g_resource_enumerate_children", false) | |||
| 888 | var cerr *glib.Error | 843 | var cerr *glib.Error | ||
| 889 | 844 | ||||
| 890 | cret := xResourceEnumerateChildren(x.GoPointer(), PathVar, LookupFlagsVar, &cerr) | 845 | cret := xResourceEnumerateChildren(x.GoPointer(), PathVar, LookupFlagsVar, &cerr) | ||
| @@ -904,7 +859,6 @@ var xResourceGetInfo func(uintptr, string, ResourceLookupFlags, *uint, *uint32, | |||||
| 904 | // The only error this can return is %G_RESOURCE_ERROR_NOT_FOUND, if @path was | 859 | // The only error this can return is %G_RESOURCE_ERROR_NOT_FOUND, if @path was | ||
| 905 | // not found in @resource. | 860 | // not found in @resource. | ||
| 906 | func (x *Resource) GetInfo(PathVar string, LookupFlagsVar ResourceLookupFlags, SizeVar *uint, FlagsVar *uint32) (bool, error) { | 861 | func (x *Resource) GetInfo(PathVar string, LookupFlagsVar ResourceLookupFlags, SizeVar *uint, FlagsVar *uint32) (bool, error) { | ||
| 907 | - | core.LazyRegister(&xResourceGetInfo, "GIO", "g_resource_get_info", false) | |||
| 908 | var cerr *glib.Error | 862 | var cerr *glib.Error | ||
| 909 | 863 | ||||
| 910 | cret := xResourceGetInfo(x.GoPointer(), PathVar, LookupFlagsVar, SizeVar, FlagsVar, &cerr) | 864 | cret := xResourceGetInfo(x.GoPointer(), PathVar, LookupFlagsVar, SizeVar, FlagsVar, &cerr) | ||
| @@ -919,8 +873,6 @@ var xResourceHasChildren func(uintptr, string) bool | |||||
| 919 | // Returns whether the specified @path in the resource | 873 | // Returns whether the specified @path in the resource | ||
| 920 | // has children. | 874 | // has children. | ||
| 921 | func (x *Resource) HasChildren(PathVar string) bool { | 875 | func (x *Resource) HasChildren(PathVar string) bool { | ||
| 922 | - | core.LazyRegister(&xResourceHasChildren, "GIO", "g_resource_has_children", false) | |||
| 923 | - | ||||
| 924 | cret := xResourceHasChildren(x.GoPointer(), PathVar) | 876 | cret := xResourceHasChildren(x.GoPointer(), PathVar) | ||
| 925 | return cret | 877 | return cret | ||
| 926 | } | 878 | } | ||
| @@ -946,7 +898,6 @@ var xResourceLookupData func(uintptr, string, ResourceLookupFlags, **glib.Error) | |||||
| 946 | // @resource, or %G_RESOURCE_ERROR_INTERNAL if decompression of a compressed | 898 | // @resource, or %G_RESOURCE_ERROR_INTERNAL if decompression of a compressed | ||
| 947 | // resource failed. | 899 | // resource failed. | ||
| 948 | func (x *Resource) LookupData(PathVar string, LookupFlagsVar ResourceLookupFlags) (*glib.Bytes, error) { | 900 | func (x *Resource) LookupData(PathVar string, LookupFlagsVar ResourceLookupFlags) (*glib.Bytes, error) { | ||
| 949 | - | core.LazyRegister(&xResourceLookupData, "GIO", "g_resource_lookup_data", false) | |||
| 950 | var cerr *glib.Error | 901 | var cerr *glib.Error | ||
| 951 | 902 | ||||
| 952 | cret := xResourceLookupData(x.GoPointer(), PathVar, LookupFlagsVar, &cerr) | 903 | cret := xResourceLookupData(x.GoPointer(), PathVar, LookupFlagsVar, &cerr) | ||
| @@ -969,7 +920,6 @@ var xResourceOpenStream func(uintptr, string, ResourceLookupFlags, **glib.Error) | |||||
| 969 | // The only error this can return is %G_RESOURCE_ERROR_NOT_FOUND, if @path was | 920 | // The only error this can return is %G_RESOURCE_ERROR_NOT_FOUND, if @path was | ||
| 970 | // not found in @resource. | 921 | // not found in @resource. | ||
| 971 | func (x *Resource) OpenStream(PathVar string, LookupFlagsVar ResourceLookupFlags) (*InputStream, error) { | 922 | func (x *Resource) OpenStream(PathVar string, LookupFlagsVar ResourceLookupFlags) (*InputStream, error) { | ||
| 972 | - | core.LazyRegister(&xResourceOpenStream, "GIO", "g_resource_open_stream", false) | |||
| 973 | var cls *InputStream | 923 | var cls *InputStream | ||
| 974 | var cerr *glib.Error | 924 | var cerr *glib.Error | ||
| 975 | 925 | ||||
| @@ -992,8 +942,6 @@ var xResourceRef func(uintptr) uintptr | |||||
| 992 | // | 942 | // | ||
| 993 | // This function is threadsafe and may be called from any thread. | 943 | // This function is threadsafe and may be called from any thread. | ||
| 994 | func (x *Resource) Ref() *Resource { | 944 | func (x *Resource) Ref() *Resource { | ||
| 995 | - | core.LazyRegister(&xResourceRef, "GIO", "g_resource_ref", false) | |||
| 996 | - | ||||
| 997 | cret := xResourceRef(x.GoPointer()) | 945 | cret := xResourceRef(x.GoPointer()) | ||
| 998 | if cret == 0 { | 946 | if cret == 0 { | ||
| 999 | return nil | 947 | return nil | ||
| @@ -1009,8 +957,6 @@ var xResourceUnref func(uintptr) | |||||
| 1009 | // released. This function is threadsafe and may be called from any | 957 | // released. This function is threadsafe and may be called from any | ||
| 1010 | // thread. | 958 | // thread. | ||
| 1011 | func (x *Resource) Unref() { | 959 | func (x *Resource) Unref() { | ||
| 1012 | - | core.LazyRegister(&xResourceUnref, "GIO", "g_resource_unref", false) | |||
| 1013 | - | ||||
| 1014 | xResourceUnref(x.GoPointer()) | 960 | xResourceUnref(x.GoPointer()) | ||
| 1015 | } | 961 | } | ||
| 1016 | 962 | ||||
| @@ -1037,7 +983,6 @@ type SrvTarget struct { | |||||
| 1037 | var xSrvTargetGLibType func() types.GType | 983 | var xSrvTargetGLibType func() types.GType | ||
| 1038 | 984 | ||||
| 1039 | func SrvTargetGLibType() types.GType { | 985 | func SrvTargetGLibType() types.GType { | ||
| 1040 | - | core.LazyRegister(&xSrvTargetGLibType, "GIO", "g_srv_target_get_type", false) | |||
| 1041 | return xSrvTargetGLibType() | 986 | return xSrvTargetGLibType() | ||
| 1042 | } | 987 | } | ||
| 1043 | 988 | ||||
| @@ -1060,8 +1005,6 @@ var xNewSrvTarget func(string, uint16, uint16, uint16) uintptr | |||||
| 1060 | // You should not need to use this; normally #GSrvTargets are | 1005 | // You should not need to use this; normally #GSrvTargets are | ||
| 1061 | // created by #GResolver. | 1006 | // created by #GResolver. | ||
| 1062 | func NewSrvTarget(HostnameVar string, PortVar uint16, PriorityVar uint16, WeightVar uint16) *SrvTarget { | 1007 | func NewSrvTarget(HostnameVar string, PortVar uint16, PriorityVar uint16, WeightVar uint16) *SrvTarget { | ||
| 1063 | - | core.LazyRegister(&xNewSrvTarget, "GIO", "g_srv_target_new", false) | |||
| 1064 | - | ||||
| 1065 | cret := xNewSrvTarget(HostnameVar, PortVar, PriorityVar, WeightVar) | 1008 | cret := xNewSrvTarget(HostnameVar, PortVar, PriorityVar, WeightVar) | ||
| 1066 | if cret == 0 { | 1009 | if cret == 0 { | ||
| 1067 | return nil | 1010 | return nil | ||
| @@ -1073,8 +1016,6 @@ var xSrvTargetCopy func(uintptr) uintptr | |||||
| 1073 | 1016 | ||||
| 1074 | // Copies @target | 1017 | // Copies @target | ||
| 1075 | func (x *SrvTarget) Copy() *SrvTarget { | 1018 | func (x *SrvTarget) Copy() *SrvTarget { | ||
| 1076 | - | core.LazyRegister(&xSrvTargetCopy, "GIO", "g_srv_target_copy", false) | |||
| 1077 | - | ||||
| 1078 | cret := xSrvTargetCopy(x.GoPointer()) | 1019 | cret := xSrvTargetCopy(x.GoPointer()) | ||
| 1079 | if cret == 0 { | 1020 | if cret == 0 { | ||
| 1080 | return nil | 1021 | return nil | ||
| @@ -1086,8 +1027,6 @@ var xSrvTargetFree func(uintptr) | |||||
| 1086 | 1027 | ||||
| 1087 | // Frees @target | 1028 | // Frees @target | ||
| 1088 | func (x *SrvTarget) Free() { | 1029 | func (x *SrvTarget) Free() { | ||
| 1089 | - | core.LazyRegister(&xSrvTargetFree, "GIO", "g_srv_target_free", false) | |||
| 1090 | - | ||||
| 1091 | xSrvTargetFree(x.GoPointer()) | 1030 | xSrvTargetFree(x.GoPointer()) | ||
| 1092 | } | 1031 | } | ||
| 1093 | 1032 | ||||
| @@ -1098,8 +1037,6 @@ var xSrvTargetGetHostname func(uintptr) string | |||||
| 1098 | // check if it contains encoded Unicode segments, and use | 1037 | // check if it contains encoded Unicode segments, and use | ||
| 1099 | // g_hostname_to_unicode() to convert it if it does.) | 1038 | // g_hostname_to_unicode() to convert it if it does.) | ||
| 1100 | func (x *SrvTarget) GetHostname() string { | 1039 | func (x *SrvTarget) GetHostname() string { | ||
| 1101 | - | core.LazyRegister(&xSrvTargetGetHostname, "GIO", "g_srv_target_get_hostname", false) | |||
| 1102 | - | ||||
| 1103 | cret := xSrvTargetGetHostname(x.GoPointer()) | 1040 | cret := xSrvTargetGetHostname(x.GoPointer()) | ||
| 1104 | return cret | 1041 | return cret | ||
| 1105 | } | 1042 | } | ||
| @@ -1108,8 +1045,6 @@ var xSrvTargetGetPort func(uintptr) uint16 | |||||
| 1108 | 1045 | ||||
| 1109 | // Gets @target's port | 1046 | // Gets @target's port | ||
| 1110 | func (x *SrvTarget) GetPort() uint16 { | 1047 | func (x *SrvTarget) GetPort() uint16 { | ||
| 1111 | - | core.LazyRegister(&xSrvTargetGetPort, "GIO", "g_srv_target_get_port", false) | |||
| 1112 | - | ||||
| 1113 | cret := xSrvTargetGetPort(x.GoPointer()) | 1048 | cret := xSrvTargetGetPort(x.GoPointer()) | ||
| 1114 | return cret | 1049 | return cret | ||
| 1115 | } | 1050 | } | ||
| @@ -1120,8 +1055,6 @@ var xSrvTargetGetPriority func(uintptr) uint16 | |||||
| 1120 | // #GResolver already sorts the targets according to the algorithm in | 1055 | // #GResolver already sorts the targets according to the algorithm in | ||
| 1121 | // RFC 2782. | 1056 | // RFC 2782. | ||
| 1122 | func (x *SrvTarget) GetPriority() uint16 { | 1057 | func (x *SrvTarget) GetPriority() uint16 { | ||
| 1123 | - | core.LazyRegister(&xSrvTargetGetPriority, "GIO", "g_srv_target_get_priority", false) | |||
| 1124 | - | ||||
| 1125 | cret := xSrvTargetGetPriority(x.GoPointer()) | 1058 | cret := xSrvTargetGetPriority(x.GoPointer()) | ||
| 1126 | return cret | 1059 | return cret | ||
| 1127 | } | 1060 | } | ||
| @@ -1132,8 +1065,6 @@ var xSrvTargetGetWeight func(uintptr) uint16 | |||||
| 1132 | // #GResolver already sorts the targets according to the algorithm in | 1065 | // #GResolver already sorts the targets according to the algorithm in | ||
| 1133 | // RFC 2782. | 1066 | // RFC 2782. | ||
| 1134 | func (x *SrvTarget) GetWeight() uint16 { | 1067 | func (x *SrvTarget) GetWeight() uint16 { | ||
| 1135 | - | core.LazyRegister(&xSrvTargetGetWeight, "GIO", "g_srv_target_get_weight", false) | |||
| 1136 | - | ||||
| 1137 | cret := xSrvTargetGetWeight(x.GoPointer()) | 1068 | cret := xSrvTargetGetWeight(x.GoPointer()) | ||
| 1138 | return cret | 1069 | return cret | ||
| 1139 | } | 1070 | } | ||
| @@ -1141,4 +1072,63 @@ func (x *SrvTarget) GetWeight() uint16 { | |||||
| 1141 | func init() { | 1072 | func init() { | ||
| 1142 | core.SetPackageName("GIO", "gio-2.0") | 1073 | core.SetPackageName("GIO", "gio-2.0") | ||
| 1143 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | 1074 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | ||
| 1075 | + | var libs []uintptr | |||
| 1076 | + | for _, libPath := range core.GetPaths("GIO") { | |||
| 1077 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 1078 | + | if err != nil { | |||
| 1079 | + | panic(err) | |||
| 1080 | + | } | |||
| 1081 | + | libs = append(libs, lib) | |||
| 1082 | + | } | |||
| 1083 | + | ||||
| 1084 | + | core.PuregoSafeRegister(&xFileAttributeMatcherGLibType, libs, "g_file_attribute_matcher_get_type") | |||
| 1085 | + | ||||
| 1086 | + | core.PuregoSafeRegister(&xNewFileAttributeMatcher, libs, "g_file_attribute_matcher_new") | |||
| 1087 | + | ||||
| 1088 | + | core.PuregoSafeRegister(&xFileAttributeMatcherEnumerateNamespace, libs, "g_file_attribute_matcher_enumerate_namespace") | |||
| 1089 | + | core.PuregoSafeRegister(&xFileAttributeMatcherEnumerateNext, libs, "g_file_attribute_matcher_enumerate_next") | |||
| 1090 | + | core.PuregoSafeRegister(&xFileAttributeMatcherMatches, libs, "g_file_attribute_matcher_matches") | |||
| 1091 | + | core.PuregoSafeRegister(&xFileAttributeMatcherMatchesOnly, libs, "g_file_attribute_matcher_matches_only") | |||
| 1092 | + | core.PuregoSafeRegister(&xFileAttributeMatcherRef, libs, "g_file_attribute_matcher_ref") | |||
| 1093 | + | core.PuregoSafeRegister(&xFileAttributeMatcherSubtract, libs, "g_file_attribute_matcher_subtract") | |||
| 1094 | + | core.PuregoSafeRegister(&xFileAttributeMatcherToString, libs, "g_file_attribute_matcher_to_string") | |||
| 1095 | + | core.PuregoSafeRegister(&xFileAttributeMatcherUnref, libs, "g_file_attribute_matcher_unref") | |||
| 1096 | + | ||||
| 1097 | + | core.PuregoSafeRegister(&xIOExtensionGetName, libs, "g_io_extension_get_name") | |||
| 1098 | + | core.PuregoSafeRegister(&xIOExtensionGetPriority, libs, "g_io_extension_get_priority") | |||
| 1099 | + | core.PuregoSafeRegister(&xIOExtensionGetType, libs, "g_io_extension_get_type") | |||
| 1100 | + | core.PuregoSafeRegister(&xIOExtensionRefClass, libs, "g_io_extension_ref_class") | |||
| 1101 | + | ||||
| 1102 | + | core.PuregoSafeRegister(&xIOExtensionPointGetExtensionByName, libs, "g_io_extension_point_get_extension_by_name") | |||
| 1103 | + | core.PuregoSafeRegister(&xIOExtensionPointGetExtensions, libs, "g_io_extension_point_get_extensions") | |||
| 1104 | + | core.PuregoSafeRegister(&xIOExtensionPointGetRequiredType, libs, "g_io_extension_point_get_required_type") | |||
| 1105 | + | core.PuregoSafeRegister(&xIOExtensionPointSetRequiredType, libs, "g_io_extension_point_set_required_type") | |||
| 1106 | + | ||||
| 1107 | + | core.PuregoSafeRegister(&xIOSchedulerJobSendToMainloop, libs, "g_io_scheduler_job_send_to_mainloop") | |||
| 1108 | + | core.PuregoSafeRegister(&xIOSchedulerJobSendToMainloopAsync, libs, "g_io_scheduler_job_send_to_mainloop_async") | |||
| 1109 | + | ||||
| 1110 | + | core.PuregoSafeRegister(&xResourceGLibType, libs, "g_resource_get_type") | |||
| 1111 | + | ||||
| 1112 | + | core.PuregoSafeRegister(&xNewResourceFromData, libs, "g_resource_new_from_data") | |||
| 1113 | + | ||||
| 1114 | + | core.PuregoSafeRegister(&xResourceRegister, libs, "g_resources_register") | |||
| 1115 | + | core.PuregoSafeRegister(&xResourceUnregister, libs, "g_resources_unregister") | |||
| 1116 | + | core.PuregoSafeRegister(&xResourceEnumerateChildren, libs, "g_resource_enumerate_children") | |||
| 1117 | + | core.PuregoSafeRegister(&xResourceGetInfo, libs, "g_resource_get_info") | |||
| 1118 | + | core.PuregoSafeRegister(&xResourceHasChildren, libs, "g_resource_has_children") | |||
| 1119 | + | core.PuregoSafeRegister(&xResourceLookupData, libs, "g_resource_lookup_data") | |||
| 1120 | + | core.PuregoSafeRegister(&xResourceOpenStream, libs, "g_resource_open_stream") | |||
| 1121 | + | core.PuregoSafeRegister(&xResourceRef, libs, "g_resource_ref") | |||
| 1122 | + | core.PuregoSafeRegister(&xResourceUnref, libs, "g_resource_unref") | |||
| 1123 | + | ||||
| 1124 | + | core.PuregoSafeRegister(&xSrvTargetGLibType, libs, "g_srv_target_get_type") | |||
| 1125 | + | ||||
| 1126 | + | core.PuregoSafeRegister(&xNewSrvTarget, libs, "g_srv_target_new") | |||
| 1127 | + | ||||
| 1128 | + | core.PuregoSafeRegister(&xSrvTargetCopy, libs, "g_srv_target_copy") | |||
| 1129 | + | core.PuregoSafeRegister(&xSrvTargetFree, libs, "g_srv_target_free") | |||
| 1130 | + | core.PuregoSafeRegister(&xSrvTargetGetHostname, libs, "g_srv_target_get_hostname") | |||
| 1131 | + | core.PuregoSafeRegister(&xSrvTargetGetPort, libs, "g_srv_target_get_port") | |||
| 1132 | + | core.PuregoSafeRegister(&xSrvTargetGetPriority, libs, "g_srv_target_get_priority") | |||
| 1133 | + | core.PuregoSafeRegister(&xSrvTargetGetWeight, libs, "g_srv_target_get_weight") | |||
| 1144 | } | 1134 | } | ||