Merge pull request #350 from bnema/fix/repin-fixed-puregotk
fix(deps): validate puregotk lazy registration fix
907 files · +27874 -25296
M go.mod +3 -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.0 | |
| 14 | + | github.com/bnema/puregotk v0.7.1-0.20260714200603-7370c78950ef | |
| 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 | |
| @@ -47,6 +47,7 @@ require ( | |||
| 47 | 47 | github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect | |
| 48 | 48 | github.com/fatih/color v1.19.0 // indirect | |
| 49 | 49 | github.com/go-viper/mapstructure/v2 v2.5.0 // indirect | |
| 50 | + | github.com/google/go-cmp v0.7.0 // indirect | |
| 50 | 51 | github.com/inconshreveable/mousetrap v1.1.0 // indirect | |
| 51 | 52 | github.com/lucasb-eyer/go-colorful v1.4.0 // indirect | |
| 52 | 53 | github.com/mattn/go-colorable v0.1.14 // indirect | |
| @@ -80,6 +81,7 @@ require ( | |||
| 80 | 81 | golang.org/x/text v0.40.0 // indirect | |
| 81 | 82 | golang.org/x/tools v0.47.0 // indirect | |
| 82 | 83 | gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect | |
| 84 | + | mvdan.cc/gofumpt v0.9.2 // indirect | |
| 83 | 85 | ) | |
| 84 | 86 | ||
| 85 | 87 | tool github.com/a-h/templ/cmd/templ | |
| @@ -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.0 | 14 | + | github.com/bnema/puregotk v0.7.1-0.20260714200603-7370c78950ef |
| 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 | ||
| @@ -47,6 +47,7 @@ require ( | |||||
| 47 | github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect | 47 | github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect | ||
| 48 | github.com/fatih/color v1.19.0 // indirect | 48 | github.com/fatih/color v1.19.0 // indirect | ||
| 49 | github.com/go-viper/mapstructure/v2 v2.5.0 // indirect | 49 | github.com/go-viper/mapstructure/v2 v2.5.0 // indirect | ||
| 50 | + | github.com/google/go-cmp v0.7.0 // indirect | |||
| 50 | github.com/inconshreveable/mousetrap v1.1.0 // indirect | 51 | github.com/inconshreveable/mousetrap v1.1.0 // indirect | ||
| 51 | github.com/lucasb-eyer/go-colorful v1.4.0 // indirect | 52 | github.com/lucasb-eyer/go-colorful v1.4.0 // indirect | ||
| 52 | github.com/mattn/go-colorable v0.1.14 // indirect | 53 | github.com/mattn/go-colorable v0.1.14 // indirect | ||
| @@ -80,6 +81,7 @@ require ( | |||||
| 80 | golang.org/x/text v0.40.0 // indirect | 81 | golang.org/x/text v0.40.0 // indirect | ||
| 81 | golang.org/x/tools v0.47.0 // indirect | 82 | golang.org/x/tools v0.47.0 // indirect | ||
| 82 | gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect | 83 | gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect | ||
| 84 | + | mvdan.cc/gofumpt v0.9.2 // indirect | |||
| 83 | ) | 85 | ) | ||
| 84 | 86 | ||||
| 85 | tool github.com/a-h/templ/cmd/templ | 87 | tool github.com/a-h/templ/cmd/templ | ||
M go.sum +4 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/internal/core/core.go +197 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/pkg/core/core.go +10 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-dialog.go +99 -64 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-window.go +95 -62 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-accent-color.go +7 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-action-row.go +33 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-alert-dialog.go +66 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-target.go +10 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-util.go +4 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation.go +24 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application-window.go +14 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application.go +3 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-avatar.go +22 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-banner.go +23 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bin.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bottom-sheet.go +47 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint-bin.go +10 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint.go +33 -37 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-content.go +18 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-row.go +10 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-dots.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-lines.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel.go +47 -37 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-layout.go +14 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-scrollable.go +17 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp.go +17 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-combo-row.go +34 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-dialog.go +45 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-easing.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-entry-row.go +40 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-enum-list-model.go +13 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-expander-row.go +40 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-flap.go +61 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-fold-threshold-policy.go +10 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-header-bar.go +36 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-inline-view-switcher.go +18 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout-slot.go +4 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout.go +7 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-leaflet.go +69 -56 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-length-unit.go +5 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-main.go +5 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-message-dialog.go +63 -44 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-multi-layout-view.go +17 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-direction.go +10 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-split-view.go +36 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-view.go +60 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-overlay-split-view.go +48 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-password-entry-row.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-dialog.go +23 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-group.go +24 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-page.go +38 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-row.go +18 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-window.go +31 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcut-label.go +10 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-dialog.go +4 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-item.go +23 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-section.go +8 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-item.go +45 -37 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-section.go +24 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar.go +41 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spin-row.go +40 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner-paintable.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-split-button.go +39 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-animation.go +34 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-params.go +17 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-squeezer.go +49 -44 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-status-page.go +20 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-style-manager.go +25 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipe-tracker.go +33 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipeable.go +33 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-switch-row.go +6 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-bar.go +35 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-button.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-overview.go +45 -37 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-view.go +123 -87 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-timed-animation.go +30 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast-overlay.go +9 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast.go +41 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toggle-group.go +64 -51 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toolbar-view.go +40 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-version.go +7 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-stack.go +78 -62 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-bar.go +9 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-sidebar.go +15 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-title.go +19 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher.go +10 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window-title.go +10 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window.go +14 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-box.go +66 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-layout.go +57 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/cairo/main.go +36 -79 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkapplaunchcontext.go +10 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairo.go +12 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairocontext.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcicpparams.go +20 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkclipboard.go +34 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcolorstate.go +12 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentdeserializer.go +26 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentformats.go +28 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentprovider.go +23 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentserializer.go +26 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcursor.go +12 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevice.go +36 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicepad.go +27 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicetool.go +10 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplay.go +51 -43 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplaymanager.go +10 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexture.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexturebuilder.go +53 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexturebuilder_extra.go +6 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrag.go +20 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurface.go +6 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurfacesize.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrawcontext.go +11 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrop.go +19 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkenums.go +21 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkevents.go +120 -118 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframeclock.go +22 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframetimings.go +17 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkglcontext.go +40 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexture.go +4 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexturebuilder.go +41 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkkeys.go +19 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexture.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexturebuilder.go +42 -35 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 +63 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpango.go +4 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpixbuf.go +2 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopup.go +47 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopuplayout.go +36 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkrgba.go +19 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkseat.go +11 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksnapshot.go +7 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksurface.go +46 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktexture.go +27 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevel.go +157 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevellayout.go +24 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevelsize.go +9 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktypes.go +95 -72 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkvulkancontext.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-animation.go +26 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-core.go +9 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-io.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-loader.go +13 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-simple-anim.go +8 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-transform.go +11 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf.go +102 -79 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/main.go +5 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gaction.go +59 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactiongroup.go +96 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactionmap.go +33 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gappinfo.go +244 -116 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplication.go +79 -55 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplicationcommandline.go +31 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncinitable.go +25 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncresult.go +26 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedinputstream.go +26 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedoutputstream.go +11 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbytesicon.go +4 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcancellable.go +26 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcharsetconverter.go +8 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcontenttype.go +30 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverter.go +23 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverterinputstream.go +3 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverteroutputstream.go +3 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcredentials.go +12 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatagrambased.go +45 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatainputstream.go +31 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdataoutputstream.go +14 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusactiongroup.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusaddress.go +10 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusauthobserver.go +6 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusconnection.go +77 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbuserror.go +16 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusinterface.go +26 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusinterfaceskeleton.go +25 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusintrospection.go +54 -56 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmenumodel.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmessage.go +88 -64 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmethodinvocation.go +35 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusnameowning.go +10 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusnamewatching.go +10 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobject.go +19 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanager.go +26 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerclient.go +16 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerserver.go +13 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectproxy.go +3 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectskeleton.go +12 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusproxy.go +42 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusserver.go +14 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusutils.go +24 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdebugcontroller.go +12 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdebugcontrollerdbus.go +4 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdrive.go +214 -82 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsclientconnection.go +34 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsconnection.go +207 -80 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsserverconnection.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gemblem.go +6 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gemblemedicon.go +9 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfile.go +1148 -450 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileattribute.go +13 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileenumerator.go +34 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileicon.go +3 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileinfo.go +138 -84 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileinputstream.go +17 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileiostream.go +23 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilemonitor.go +9 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilenamecompleter.go +8 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileoutputstream.go +23 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilterinputstream.go +6 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilteroutputstream.go +6 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gicon.go +32 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetaddress.go +40 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetaddressmask.go +14 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetsocketaddress.go +10 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginitable.go +11 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginputstream.go +52 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioenums.go +90 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioerror.go +6 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giomodule.go +26 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioscheduler.go +4 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giostream.go +25 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giotypes.go +70 -60 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giptosmessage.go +6 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gipv6tclassmessage.go +6 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/glistmodel.go +33 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gliststore.go +22 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gloadableicon.go +27 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemoryinputstream.go +8 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemorymonitor.go +2 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemoryoutputstream.go +13 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmenu.go +62 -50 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmenumodel.go +31 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmount.go +215 -86 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmountoperation.go +40 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnativesocketaddress.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnativevolumemonitor.go +7 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkaddress.go +11 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworking.go +3 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkmonitor.go +49 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkservice.go +12 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnotification.go +26 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/goutputstream.go +86 -72 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpermission.go +33 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableinputstream.go +30 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableoutputstream.go +41 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableutils.go +7 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpowerprofilemonitor.go +7 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpropertyaction.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxy.go +35 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyaddress.go +16 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyaddressenumerator.go +7 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyresolver.go +35 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gremoteactiongroup.go +12 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gresolver.go +75 -67 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gresource.go +19 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gseekable.go +41 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettings.go +99 -67 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettingsbackend.go +19 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettingsschema.go +48 -43 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleaction.go +9 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleactiongroup.go +9 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleasyncresult.go +46 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleiostream.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimplepermission.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleproxyresolver.go +8 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocket.go +87 -72 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketaddress.go +11 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketaddressenumerator.go +13 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketclient.go +54 -44 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketconnectable.go +19 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketconnection.go +14 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketcontrolmessage.go +10 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketlistener.go +18 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketservice.go +8 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsrvtarget.go +2 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsubprocess.go +40 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsubprocesslauncher.go +34 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtask.go +70 -52 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtcpconnection.go +5 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtcpwrapperconnection.go +3 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtestdbus.go +16 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gthemedicon.go +10 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gthreadedresolver.go +7 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gthreadedsocketservice.go +2 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsbackend.go +69 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlscertificate.go +25 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsclientconnection.go +55 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsconnection.go +56 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsdatabase.go +51 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsfiledatabase.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsinteraction.go +27 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlspassword.go +20 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsserverconnection.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixconnection.go +11 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixcredentialsmessage.go +6 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixfdlist.go +11 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gunixsocketaddress.go +14 -22 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvfs.go +18 -24 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvolume.go +143 -58 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvolumemonitor.go +11 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gzlibcompressor.go +9 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gzlibdecompressor.go +3 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/main.go +2 -11 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gallocator.go +32 -28 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/garray.go +82 -59 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gasyncqueue.go +56 -39 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gatomic.go +43 -34 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbacktrace.go +5 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbase64.go +13 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbitlock.go +23 -24 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbookmarkfile.go +69 -61 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcache.go +10 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcharset.go +13 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gchecksum.go +23 -25 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcompletion.go +14 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gconvert.go +25 -28 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdataset.go +36 -28 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdate.go +103 -65 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdatetime.go +107 -66 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdir.go +12 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/genviron.go +17 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gerror.go +30 -29 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gfileutils.go +45 -38 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ggettext.go +13 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghash.go +81 -53 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghmac.go +21 -24 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghook.go +28 -26 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghostutils.go +11 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/giochannel.go +83 -67 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gkeyfile.go +72 -62 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/glib-types.go +4 -12 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/glist.go +2 -11 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmain.go +181 -117 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmappedfile.go +15 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmarkup.go +51 -43 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmem.go +44 -31 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmessages.go +70 -45 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gnode.go +50 -35 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/goption.go +57 -43 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gpathbuf.go +26 -24 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gpattern.go +19 -23 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gpoll.go +3 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gprimes.go +3 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gprintf.go +15 -20 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gqsort.go +5 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gquark.go +13 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gqueue.go +84 -52 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grand.go +33 -30 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grcbox.go +29 -27 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grefcount.go +17 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grefstring.go +15 -20 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gregex.go +72 -57 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grel.go +20 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gscanner.go +40 -30 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gsequence.go +74 -49 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gshell.go +5 -16 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gslice.go +17 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gslist.go +2 -11 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gspawn.go +12 -23 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstdio.go +33 -27 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstrfuncs.go +115 -71 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstring.go +77 -51 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstringchunk.go +10 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstrvbuilder.go +19 -22 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtestutils.go +132 -80 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gthread.go +146 -97 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gthreadpool.go +26 -25 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtimer.go +18 -20 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtimezone.go +27 -26 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtrashstack.go +8 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtree.go +63 -45 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtypes.go +4 -12 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gunicode.go +132 -85 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/guri.go +63 -50 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gutils.go +62 -41 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/guuid.go +5 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gvariant-parser.go +3 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gvariant.go +242 -143 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gvarianttype.go +63 -45 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gversion.go +3 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/main.go +31 -28 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gmodule/gmodule.go +14 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gmodule/main.go +2 -11 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gbinding.go +14 -22 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gbindinggroup.go +11 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gboxed.go +6 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gclosure.go +37 -31 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/genums.go +24 -22 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/glib-types.go +2 -11 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gmarshal.go +45 -35 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gobject.go +116 -82 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gparam.go +54 -43 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gparamspecs.go +46 -79 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gsignal.go +79 -50 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gsignalgroup.go +21 -24 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gsourceclosure.go +4 -12 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gtype.go +136 -82
| @@ -5,7 +5,6 @@ import ( | |||
| 5 | 5 | "structs" | |
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | - | "github.com/bnema/purego" | |
| 9 | 8 | "github.com/bnema/puregotk/pkg/core" | |
| 10 | 9 | "github.com/bnema/puregotk/v4/glib" | |
| 11 | 10 | "github.com/bnema/puregotk/v4/gobject/types" | |
| @@ -506,6 +505,8 @@ var xTypeClassAddPrivate func(uintptr, uint) | |||
| 506 | 505 | // | |
| 507 | 506 | // ]| | |
| 508 | 507 | func (x *TypeClass) AddPrivate(PrivateSizeVar uint) { | |
| 508 | + | core.LazyRegister(&xTypeClassAddPrivate, "GOBJECT", "g_type_class_add_private", false) | |
| 509 | + | ||
| 509 | 510 | xTypeClassAddPrivate(x.GoPointer(), PrivateSizeVar) | |
| 510 | 511 | } | |
| 511 | 512 | ||
| @@ -520,6 +521,8 @@ var xTypeClassGetInstancePrivateOffset func(uintptr) int | |||
| 520 | 521 | // You can only call this function after you have registered a private | |
| 521 | 522 | // data area for @g_class using g_type_class_add_private(). | |
| 522 | 523 | func (x *TypeClass) GetInstancePrivateOffset() int { | |
| 524 | + | core.LazyRegister(&xTypeClassGetInstancePrivateOffset, "GOBJECT", "g_type_class_get_instance_private_offset", false) | |
| 525 | + | ||
| 523 | 526 | cret := xTypeClassGetInstancePrivateOffset(x.GoPointer()) | |
| 524 | 527 | return cret | |
| 525 | 528 | } | |
| @@ -527,6 +530,8 @@ func (x *TypeClass) GetInstancePrivateOffset() int { | |||
| 527 | 530 | var xTypeClassGetPrivate func(uintptr, types.GType) uintptr | |
| 528 | 531 | ||
| 529 | 532 | func (x *TypeClass) GetPrivate(PrivateTypeVar types.GType) uintptr { | |
| 533 | + | core.LazyRegister(&xTypeClassGetPrivate, "GOBJECT", "g_type_class_get_private", false) | |
| 534 | + | ||
| 530 | 535 | cret := xTypeClassGetPrivate(x.GoPointer(), PrivateTypeVar) | |
| 531 | 536 | return cret | |
| 532 | 537 | } | |
| @@ -544,6 +549,8 @@ var xTypeClassPeekParent func(uintptr) uintptr | |||
| 544 | 549 | // This function is essentially equivalent to: | |
| 545 | 550 | // g_type_class_peek (g_type_parent (G_TYPE_FROM_CLASS (g_class))) | |
| 546 | 551 | func (x *TypeClass) PeekParent() *TypeClass { | |
| 552 | + | core.LazyRegister(&xTypeClassPeekParent, "GOBJECT", "g_type_class_peek_parent", false) | |
| 553 | + | ||
| 547 | 554 | cret := xTypeClassPeekParent(x.GoPointer()) | |
| 548 | 555 | if cret == 0 { | |
| 549 | 556 | return nil | |
| @@ -559,6 +566,8 @@ var xTypeClassUnref func(uintptr) | |||
| 559 | 566 | // may be finalized by the type system, so further dereferencing of a | |
| 560 | 567 | // class pointer after g_type_class_unref() are invalid. | |
| 561 | 568 | func (x *TypeClass) Unref() { | |
| 569 | + | core.LazyRegister(&xTypeClassUnref, "GOBJECT", "g_type_class_unref", false) | |
| 570 | + | ||
| 562 | 571 | xTypeClassUnref(x.GoPointer()) | |
| 563 | 572 | } | |
| 564 | 573 | ||
| @@ -571,6 +580,8 @@ var xTypeClassUnrefUncached func(uintptr) | |||
| 571 | 580 | // of #GTypeClassCacheFuncs, avoiding the recursion which would occur | |
| 572 | 581 | // otherwise. | |
| 573 | 582 | func (x *TypeClass) UnrefUncached() { | |
| 583 | + | core.LazyRegister(&xTypeClassUnrefUncached, "GOBJECT", "g_type_class_unref_uncached", false) | |
| 584 | + | ||
| 574 | 585 | xTypeClassUnrefUncached(x.GoPointer()) | |
| 575 | 586 | } | |
| 576 | 587 | ||
| @@ -661,6 +672,8 @@ func TypeInstanceNewFromInternalPtr(ptr uintptr) *TypeInstance { | |||
| 661 | 672 | var xTypeInstanceGetPrivate func(uintptr, types.GType) uintptr | |
| 662 | 673 | ||
| 663 | 674 | func (x *TypeInstance) GetPrivate(PrivateTypeVar types.GType) uintptr { | |
| 675 | + | core.LazyRegister(&xTypeInstanceGetPrivate, "GOBJECT", "g_type_instance_get_private", false) | |
| 676 | + | ||
| 664 | 677 | cret := xTypeInstanceGetPrivate(x.GoPointer(), PrivateTypeVar) | |
| 665 | 678 | return cret | |
| 666 | 679 | } | |
| @@ -694,6 +707,8 @@ var xTypeInterfacePeekParent func(uintptr) uintptr | |||
| 694 | 707 | // This is useful when deriving the implementation of an interface from the | |
| 695 | 708 | // parent type and then possibly overriding some methods. | |
| 696 | 709 | func (x *TypeInterface) PeekParent() *TypeInterface { | |
| 710 | + | core.LazyRegister(&xTypeInterfacePeekParent, "GOBJECT", "g_type_interface_peek_parent", false) | |
| 711 | + | ||
| 697 | 712 | cret := xTypeInterfacePeekParent(x.GoPointer()) | |
| 698 | 713 | if cret == 0 { | |
| 699 | 714 | return nil | |
| @@ -868,6 +883,8 @@ var xTypeAddClassCacheFunc func(uintptr, uintptr) | |||
| 868 | 883 | // type, since all classes are routed through the same #GTypeClassCacheFunc | |
| 869 | 884 | // chain. | |
| 870 | 885 | func TypeAddClassCacheFunc(CacheDataVar uintptr, CacheFuncVar *TypeClassCacheFunc) { | |
| 886 | + | core.LazyRegister(&xTypeAddClassCacheFunc, "GOBJECT", "g_type_add_class_cache_func", false) | |
| 887 | + | ||
| 871 | 888 | xTypeAddClassCacheFunc(CacheDataVar, glib.NewCallback(CacheFuncVar)) | |
| 872 | 889 | } | |
| 873 | 890 | ||
| @@ -884,12 +901,16 @@ var xTypeAddClassPrivate func(types.GType, uint) | |||
| 884 | 901 | // The private structure can be retrieved using the | |
| 885 | 902 | // G_TYPE_CLASS_GET_PRIVATE() macro. | |
| 886 | 903 | func TypeAddClassPrivate(ClassTypeVar types.GType, PrivateSizeVar uint) { | |
| 904 | + | core.LazyRegister(&xTypeAddClassPrivate, "GOBJECT", "g_type_add_class_private", false) | |
| 905 | + | ||
| 887 | 906 | xTypeAddClassPrivate(ClassTypeVar, PrivateSizeVar) | |
| 888 | 907 | } | |
| 889 | 908 | ||
| 890 | 909 | var xTypeAddInstancePrivate func(types.GType, uint) int | |
| 891 | 910 | ||
| 892 | 911 | func TypeAddInstancePrivate(ClassTypeVar types.GType, PrivateSizeVar uint) int { | |
| 912 | + | core.LazyRegister(&xTypeAddInstancePrivate, "GOBJECT", "g_type_add_instance_private", false) | |
| 913 | + | ||
| 893 | 914 | cret := xTypeAddInstancePrivate(ClassTypeVar, PrivateSizeVar) | |
| 894 | 915 | return cret | |
| 895 | 916 | } | |
| @@ -906,6 +927,8 @@ var xTypeAddInterfaceCheck func(uintptr, uintptr) | |||
| 906 | 927 | // object implements all of the properties that are defined on its | |
| 907 | 928 | // interfaces. | |
| 908 | 929 | func TypeAddInterfaceCheck(CheckDataVar uintptr, CheckFuncVar *TypeInterfaceCheckFunc) { | |
| 930 | + | core.LazyRegister(&xTypeAddInterfaceCheck, "GOBJECT", "g_type_add_interface_check", false) | |
| 931 | + | ||
| 909 | 932 | xTypeAddInterfaceCheck(CheckDataVar, glib.NewCallback(CheckFuncVar)) | |
| 910 | 933 | } | |
| 911 | 934 | ||
| @@ -915,6 +938,8 @@ var xTypeAddInterfaceDynamic func(types.GType, types.GType, uintptr) | |||
| 915 | 938 | // contained in the #GTypePlugin structure pointed to by @plugin | |
| 916 | 939 | // is used to manage the relationship. | |
| 917 | 940 | func TypeAddInterfaceDynamic(InstanceTypeVar types.GType, InterfaceTypeVar types.GType, PluginVar TypePlugin) { | |
| 941 | + | core.LazyRegister(&xTypeAddInterfaceDynamic, "GOBJECT", "g_type_add_interface_dynamic", false) | |
| 942 | + | ||
| 918 | 943 | xTypeAddInterfaceDynamic(InstanceTypeVar, InterfaceTypeVar, PluginVar.GoPointer()) | |
| 919 | 944 | } | |
| 920 | 945 | ||
| @@ -924,12 +949,16 @@ var xTypeAddInterfaceStatic func(types.GType, types.GType, *InterfaceInfo) | |||
| 924 | 949 | // The information contained in the #GInterfaceInfo structure | |
| 925 | 950 | // pointed to by @info is used to manage the relationship. | |
| 926 | 951 | func TypeAddInterfaceStatic(InstanceTypeVar types.GType, InterfaceTypeVar types.GType, InfoVar *InterfaceInfo) { | |
| 952 | + | core.LazyRegister(&xTypeAddInterfaceStatic, "GOBJECT", "g_type_add_interface_static", false) | |
| 953 | + | ||
| 927 | 954 | xTypeAddInterfaceStatic(InstanceTypeVar, InterfaceTypeVar, InfoVar) | |
| 928 | 955 | } | |
| 929 | 956 | ||
| 930 | 957 | var xTypeCheckClassCast func(*TypeClass, types.GType) uintptr | |
| 931 | 958 | ||
| 932 | 959 | func TypeCheckClassCast(GClassVar *TypeClass, IsATypeVar types.GType) *TypeClass { | |
| 960 | + | core.LazyRegister(&xTypeCheckClassCast, "GOBJECT", "g_type_check_class_cast", false) | |
| 961 | + | ||
| 933 | 962 | cret := xTypeCheckClassCast(GClassVar, IsATypeVar) | |
| 934 | 963 | if cret == 0 { | |
| 935 | 964 | return nil | |
| @@ -940,6 +969,8 @@ func TypeCheckClassCast(GClassVar *TypeClass, IsATypeVar types.GType) *TypeClass | |||
| 940 | 969 | var xTypeCheckClassIsA func(*TypeClass, types.GType) bool | |
| 941 | 970 | ||
| 942 | 971 | func TypeCheckClassIsA(GClassVar *TypeClass, IsATypeVar types.GType) bool { | |
| 972 | + | core.LazyRegister(&xTypeCheckClassIsA, "GOBJECT", "g_type_check_class_is_a", false) | |
| 973 | + | ||
| 943 | 974 | cret := xTypeCheckClassIsA(GClassVar, IsATypeVar) | |
| 944 | 975 | return cret | |
| 945 | 976 | } | |
| @@ -949,6 +980,8 @@ var xTypeCheckInstance func(*TypeInstance) bool | |||
| 949 | 980 | // Private helper function to aid implementation of the | |
| 950 | 981 | // G_TYPE_CHECK_INSTANCE() macro. | |
| 951 | 982 | func TypeCheckInstance(InstanceVar *TypeInstance) bool { | |
| 983 | + | core.LazyRegister(&xTypeCheckInstance, "GOBJECT", "g_type_check_instance", false) | |
| 984 | + | ||
| 952 | 985 | cret := xTypeCheckInstance(InstanceVar) | |
| 953 | 986 | return cret | |
| 954 | 987 | } | |
| @@ -956,6 +989,8 @@ func TypeCheckInstance(InstanceVar *TypeInstance) bool { | |||
| 956 | 989 | var xTypeCheckInstanceCast func(*TypeInstance, types.GType) uintptr | |
| 957 | 990 | ||
| 958 | 991 | func TypeCheckInstanceCast(InstanceVar *TypeInstance, IfaceTypeVar types.GType) *TypeInstance { | |
| 992 | + | core.LazyRegister(&xTypeCheckInstanceCast, "GOBJECT", "g_type_check_instance_cast", false) | |
| 993 | + | ||
| 959 | 994 | cret := xTypeCheckInstanceCast(InstanceVar, IfaceTypeVar) | |
| 960 | 995 | if cret == 0 { | |
| 961 | 996 | return nil | |
| @@ -966,6 +1001,8 @@ func TypeCheckInstanceCast(InstanceVar *TypeInstance, IfaceTypeVar types.GType) | |||
| 966 | 1001 | var xTypeCheckInstanceIsA func(*TypeInstance, types.GType) bool | |
| 967 | 1002 | ||
| 968 | 1003 | func TypeCheckInstanceIsA(InstanceVar *TypeInstance, IfaceTypeVar types.GType) bool { | |
| 1004 | + | core.LazyRegister(&xTypeCheckInstanceIsA, "GOBJECT", "g_type_check_instance_is_a", false) | |
| 1005 | + | ||
| 969 | 1006 | cret := xTypeCheckInstanceIsA(InstanceVar, IfaceTypeVar) | |
| 970 | 1007 | return cret | |
| 971 | 1008 | } | |
| @@ -973,6 +1010,8 @@ func TypeCheckInstanceIsA(InstanceVar *TypeInstance, IfaceTypeVar types.GType) b | |||
| 973 | 1010 | var xTypeCheckInstanceIsFundamentallyA func(*TypeInstance, types.GType) bool | |
| 974 | 1011 | ||
| 975 | 1012 | func TypeCheckInstanceIsFundamentallyA(InstanceVar *TypeInstance, FundamentalTypeVar types.GType) bool { | |
| 1013 | + | core.LazyRegister(&xTypeCheckInstanceIsFundamentallyA, "GOBJECT", "g_type_check_instance_is_fundamentally_a", false) | |
| 1014 | + | ||
| 976 | 1015 | cret := xTypeCheckInstanceIsFundamentallyA(InstanceVar, FundamentalTypeVar) | |
| 977 | 1016 | return cret | |
| 978 | 1017 | } | |
| @@ -980,6 +1019,8 @@ func TypeCheckInstanceIsFundamentallyA(InstanceVar *TypeInstance, FundamentalTyp | |||
| 980 | 1019 | var xTypeCheckIsValueType func(types.GType) bool | |
| 981 | 1020 | ||
| 982 | 1021 | func TypeCheckIsValueType(TypeVar types.GType) bool { | |
| 1022 | + | core.LazyRegister(&xTypeCheckIsValueType, "GOBJECT", "g_type_check_is_value_type", false) | |
| 1023 | + | ||
| 983 | 1024 | cret := xTypeCheckIsValueType(TypeVar) | |
| 984 | 1025 | return cret | |
| 985 | 1026 | } | |
| @@ -987,6 +1028,8 @@ func TypeCheckIsValueType(TypeVar types.GType) bool { | |||
| 987 | 1028 | var xTypeCheckValue func(*Value) bool | |
| 988 | 1029 | ||
| 989 | 1030 | func TypeCheckValue(ValueVar *Value) bool { | |
| 1031 | + | core.LazyRegister(&xTypeCheckValue, "GOBJECT", "g_type_check_value", false) | |
| 1032 | + | ||
| 990 | 1033 | cret := xTypeCheckValue(ValueVar) | |
| 991 | 1034 | return cret | |
| 992 | 1035 | } | |
| @@ -994,6 +1037,8 @@ func TypeCheckValue(ValueVar *Value) bool { | |||
| 994 | 1037 | var xTypeCheckValueHolds func(*Value, types.GType) bool | |
| 995 | 1038 | ||
| 996 | 1039 | func TypeCheckValueHolds(ValueVar *Value, TypeVar types.GType) bool { | |
| 1040 | + | core.LazyRegister(&xTypeCheckValueHolds, "GOBJECT", "g_type_check_value_holds", false) | |
| 1041 | + | ||
| 997 | 1042 | cret := xTypeCheckValueHolds(ValueVar, TypeVar) | |
| 998 | 1043 | return cret | |
| 999 | 1044 | } | |
| @@ -1003,6 +1048,8 @@ var xTypeChildren func(types.GType, *uint) uintptr | |||
| 1003 | 1048 | // Return a newly allocated and 0-terminated array of type IDs, listing | |
| 1004 | 1049 | // the child types of @type. | |
| 1005 | 1050 | func TypeChildren(TypeVar types.GType, NChildrenVar *uint) uintptr { | |
| 1051 | + | core.LazyRegister(&xTypeChildren, "GOBJECT", "g_type_children", false) | |
| 1052 | + | ||
| 1006 | 1053 | cret := xTypeChildren(TypeVar, NChildrenVar) | |
| 1007 | 1054 | return cret | |
| 1008 | 1055 | } | |
| @@ -1010,6 +1057,8 @@ func TypeChildren(TypeVar types.GType, NChildrenVar *uint) uintptr { | |||
| 1010 | 1057 | var xTypeClassAdjustPrivateOffset func(uintptr, int) | |
| 1011 | 1058 | ||
| 1012 | 1059 | func TypeClassAdjustPrivateOffset(GClassVar uintptr, PrivateSizeOrOffsetVar int) { | |
| 1060 | + | core.LazyRegister(&xTypeClassAdjustPrivateOffset, "GOBJECT", "g_type_class_adjust_private_offset", false) | |
| 1061 | + | ||
| 1013 | 1062 | xTypeClassAdjustPrivateOffset(GClassVar, PrivateSizeOrOffsetVar) | |
| 1014 | 1063 | } | |
| 1015 | 1064 | ||
| @@ -1022,6 +1071,8 @@ var xTypeClassGet func(types.GType) uintptr | |||
| 1022 | 1071 | // | |
| 1023 | 1072 | // If you don't want to create the class, use g_type_class_peek() instead. | |
| 1024 | 1073 | func TypeClassGet(TypeVar types.GType) *TypeClass { | |
| 1074 | + | core.LazyRegister(&xTypeClassGet, "GOBJECT", "g_type_class_get", false) | |
| 1075 | + | ||
| 1025 | 1076 | cret := xTypeClassGet(TypeVar) | |
| 1026 | 1077 | if cret == 0 { | |
| 1027 | 1078 | return nil | |
| @@ -1040,6 +1091,8 @@ var xTypeClassPeek func(types.GType) uintptr | |||
| 1040 | 1091 | // of the type passed in does not currently exist (hasn't been | |
| 1041 | 1092 | // referenced before). | |
| 1042 | 1093 | func TypeClassPeek(TypeVar types.GType) *TypeClass { | |
| 1094 | + | core.LazyRegister(&xTypeClassPeek, "GOBJECT", "g_type_class_peek", false) | |
| 1095 | + | ||
| 1043 | 1096 | cret := xTypeClassPeek(TypeVar) | |
| 1044 | 1097 | if cret == 0 { | |
| 1045 | 1098 | return nil | |
| @@ -1052,6 +1105,8 @@ var xTypeClassPeekStatic func(types.GType) uintptr | |||
| 1052 | 1105 | // A more efficient version of g_type_class_peek() which works only for | |
| 1053 | 1106 | // static types. | |
| 1054 | 1107 | func TypeClassPeekStatic(TypeVar types.GType) *TypeClass { | |
| 1108 | + | core.LazyRegister(&xTypeClassPeekStatic, "GOBJECT", "g_type_class_peek_static", false) | |
| 1109 | + | ||
| 1055 | 1110 | cret := xTypeClassPeekStatic(TypeVar) | |
| 1056 | 1111 | if cret == 0 { | |
| 1057 | 1112 | return nil | |
| @@ -1066,6 +1121,8 @@ var xTypeClassRef func(types.GType) uintptr | |||
| 1066 | 1121 | // | |
| 1067 | 1122 | // This function will demand-create the class if it doesn't exist already. | |
| 1068 | 1123 | func TypeClassRef(TypeVar types.GType) *TypeClass { | |
| 1124 | + | core.LazyRegister(&xTypeClassRef, "GOBJECT", "g_type_class_ref", false) | |
| 1125 | + | ||
| 1069 | 1126 | cret := xTypeClassRef(TypeVar) | |
| 1070 | 1127 | if cret == 0 { | |
| 1071 | 1128 | return nil | |
| @@ -1092,6 +1149,8 @@ var xTypeCreateInstance func(types.GType) uintptr | |||
| 1092 | 1149 | // fundamental type. Also language bindings should not use this | |
| 1093 | 1150 | // function, but g_object_new() instead. | |
| 1094 | 1151 | func TypeCreateInstance(TypeVar types.GType) *TypeInstance { | |
| 1152 | + | core.LazyRegister(&xTypeCreateInstance, "GOBJECT", "g_type_create_instance", false) | |
| 1153 | + | ||
| 1095 | 1154 | cret := xTypeCreateInstance(TypeVar) | |
| 1096 | 1155 | if cret == 0 { | |
| 1097 | 1156 | return nil | |
| @@ -1115,6 +1174,8 @@ var xTypeDefaultInterfaceGet func(types.GType) uintptr | |||
| 1115 | 1174 | // want to make sure that signals and properties for an interface | |
| 1116 | 1175 | // have been installed. | |
| 1117 | 1176 | func TypeDefaultInterfaceGet(GTypeVar types.GType) *TypeInterface { | |
| 1177 | + | core.LazyRegister(&xTypeDefaultInterfaceGet, "GOBJECT", "g_type_default_interface_get", false) | |
| 1178 | + | ||
| 1118 | 1179 | cret := xTypeDefaultInterfaceGet(GTypeVar) | |
| 1119 | 1180 | if cret == 0 { | |
| 1120 | 1181 | return nil | |
| @@ -1127,6 +1188,8 @@ var xTypeDefaultInterfacePeek func(types.GType) uintptr | |||
| 1127 | 1188 | // If the interface type @g_type is currently in use, returns its | |
| 1128 | 1189 | // default interface vtable. | |
| 1129 | 1190 | func TypeDefaultInterfacePeek(GTypeVar types.GType) *TypeInterface { | |
| 1191 | + | core.LazyRegister(&xTypeDefaultInterfacePeek, "GOBJECT", "g_type_default_interface_peek", false) | |
| 1192 | + | ||
| 1130 | 1193 | cret := xTypeDefaultInterfacePeek(GTypeVar) | |
| 1131 | 1194 | if cret == 0 { | |
| 1132 | 1195 | return nil | |
| @@ -1147,6 +1210,8 @@ var xTypeDefaultInterfaceRef func(types.GType) uintptr | |||
| 1147 | 1210 | // want to make sure that signals and properties for an interface | |
| 1148 | 1211 | // have been installed. | |
| 1149 | 1212 | func TypeDefaultInterfaceRef(GTypeVar types.GType) *TypeInterface { | |
| 1213 | + | core.LazyRegister(&xTypeDefaultInterfaceRef, "GOBJECT", "g_type_default_interface_ref", false) | |
| 1214 | + | ||
| 1150 | 1215 | cret := xTypeDefaultInterfaceRef(GTypeVar) | |
| 1151 | 1216 | if cret == 0 { | |
| 1152 | 1217 | return nil | |
| @@ -1163,6 +1228,8 @@ var xTypeDefaultInterfaceUnref func(*TypeInterface) | |||
| 1163 | 1228 | // references have been released, the finalize function for the interface's | |
| 1164 | 1229 | // default vtable (the @class_finalize member of #GTypeInfo) will be called. | |
| 1165 | 1230 | func TypeDefaultInterfaceUnref(GIfaceVar *TypeInterface) { | |
| 1231 | + | core.LazyRegister(&xTypeDefaultInterfaceUnref, "GOBJECT", "g_type_default_interface_unref", false) | |
| 1232 | + | ||
| 1166 | 1233 | xTypeDefaultInterfaceUnref(GIfaceVar) | |
| 1167 | 1234 | } | |
| 1168 | 1235 | ||
| @@ -1171,6 +1238,8 @@ var xTypeDepth func(types.GType) uint | |||
| 1171 | 1238 | // Returns the length of the ancestry of the passed in type. This | |
| 1172 | 1239 | // includes the type itself, so that e.g. a fundamental type has depth 1. | |
| 1173 | 1240 | func TypeDepth(TypeVar types.GType) uint { | |
| 1241 | + | core.LazyRegister(&xTypeDepth, "GOBJECT", "g_type_depth", false) | |
| 1242 | + | ||
| 1174 | 1243 | cret := xTypeDepth(TypeVar) | |
| 1175 | 1244 | return cret | |
| 1176 | 1245 | } | |
| @@ -1190,6 +1259,8 @@ var xTypeEnsure func(types.GType) | |||
| 1190 | 1259 | // out by the compiler. Using g_type_ensure() guarantees that the | |
| 1191 | 1260 | // type's _get_type() method is called. | |
| 1192 | 1261 | func TypeEnsure(TypeVar types.GType) { | |
| 1262 | + | core.LazyRegister(&xTypeEnsure, "GOBJECT", "g_type_ensure", false) | |
| 1263 | + | ||
| 1193 | 1264 | xTypeEnsure(TypeVar) | |
| 1194 | 1265 | } | |
| 1195 | 1266 | ||
| @@ -1201,6 +1272,8 @@ var xTypeFreeInstance func(*TypeInstance) | |||
| 1201 | 1272 | // Like g_type_create_instance(), this function is reserved for | |
| 1202 | 1273 | // implementors of fundamental types. | |
| 1203 | 1274 | func TypeFreeInstance(InstanceVar *TypeInstance) { | |
| 1275 | + | core.LazyRegister(&xTypeFreeInstance, "GOBJECT", "g_type_free_instance", false) | |
| 1276 | + | ||
| 1204 | 1277 | xTypeFreeInstance(InstanceVar) | |
| 1205 | 1278 | } | |
| 1206 | 1279 | ||
| @@ -1211,6 +1284,8 @@ var xTypeFromName func(string) types.GType | |||
| 1211 | 1284 | // to find out by name whether a specific type has been registered | |
| 1212 | 1285 | // yet). | |
| 1213 | 1286 | func TypeFromName(NameVar string) types.GType { | |
| 1287 | + | core.LazyRegister(&xTypeFromName, "GOBJECT", "g_type_from_name", false) | |
| 1288 | + | ||
| 1214 | 1289 | cret := xTypeFromName(NameVar) | |
| 1215 | 1290 | return cret | |
| 1216 | 1291 | } | |
| @@ -1220,6 +1295,8 @@ var xTypeFundamental func(types.GType) types.GType | |||
| 1220 | 1295 | // Internal function, used to extract the fundamental type ID portion. | |
| 1221 | 1296 | // Use G_TYPE_FUNDAMENTAL() instead. | |
| 1222 | 1297 | func TypeFundamental(TypeIdVar types.GType) types.GType { | |
| 1298 | + | core.LazyRegister(&xTypeFundamental, "GOBJECT", "g_type_fundamental", false) | |
| 1299 | + | ||
| 1223 | 1300 | cret := xTypeFundamental(TypeIdVar) | |
| 1224 | 1301 | return cret | |
| 1225 | 1302 | } | |
| @@ -1231,6 +1308,8 @@ var xTypeFundamentalNext func() types.GType | |||
| 1231 | 1308 | // The returned type ID represents the highest currently registered | |
| 1232 | 1309 | // fundamental type identifier. | |
| 1233 | 1310 | func TypeFundamentalNext() types.GType { | |
| 1311 | + | core.LazyRegister(&xTypeFundamentalNext, "GOBJECT", "g_type_fundamental_next", false) | |
| 1312 | + | ||
| 1234 | 1313 | cret := xTypeFundamentalNext() | |
| 1235 | 1314 | return cret | |
| 1236 | 1315 | } | |
| @@ -1242,6 +1321,8 @@ var xTypeGetInstanceCount func(types.GType) int | |||
| 1242 | 1321 | // the `instance-count` debug flag is set (by setting the `GOBJECT_DEBUG` | |
| 1243 | 1322 | // variable to include `instance-count`). | |
| 1244 | 1323 | func TypeGetInstanceCount(TypeVar types.GType) int { | |
| 1324 | + | core.LazyRegister(&xTypeGetInstanceCount, "GOBJECT", "g_type_get_instance_count", false) | |
| 1325 | + | ||
| 1245 | 1326 | cret := xTypeGetInstanceCount(TypeVar) | |
| 1246 | 1327 | return cret | |
| 1247 | 1328 | } | |
| @@ -1250,6 +1331,7 @@ var xTypeGetPlugin func(types.GType) uintptr | |||
| 1250 | 1331 | ||
| 1251 | 1332 | // Returns the #GTypePlugin structure for @type. | |
| 1252 | 1333 | func TypeGetPlugin(TypeVar types.GType) *TypePluginBase { | |
| 1334 | + | core.LazyRegister(&xTypeGetPlugin, "GOBJECT", "g_type_get_plugin", false) | |
| 1253 | 1335 | var cls *TypePluginBase | |
| 1254 | 1336 | ||
| 1255 | 1337 | cret := xTypeGetPlugin(TypeVar) | |
| @@ -1272,6 +1354,8 @@ var xTypeGetQdata func(types.GType, glib.Quark) uintptr | |||
| 1272 | 1354 | // attached to one type with g_type_set_qdata() cannot | |
| 1273 | 1355 | // be retrieved from a subtype using g_type_get_qdata(). | |
| 1274 | 1356 | func TypeGetQdata(TypeVar types.GType, QuarkVar glib.Quark) uintptr { | |
| 1357 | + | core.LazyRegister(&xTypeGetQdata, "GOBJECT", "g_type_get_qdata", false) | |
| 1358 | + | ||
| 1275 | 1359 | cret := xTypeGetQdata(TypeVar, QuarkVar) | |
| 1276 | 1360 | return cret | |
| 1277 | 1361 | } | |
| @@ -1284,6 +1368,8 @@ var xTypeGetTypeRegistrationSerial func() uint | |||
| 1284 | 1368 | // g_type_from_name()) and know if the cache is still valid at a later | |
| 1285 | 1369 | // time by comparing the current serial with the one at the type lookup. | |
| 1286 | 1370 | func TypeGetTypeRegistrationSerial() uint { | |
| 1371 | + | core.LazyRegister(&xTypeGetTypeRegistrationSerial, "GOBJECT", "g_type_get_type_registration_serial", false) | |
| 1372 | + | ||
| 1287 | 1373 | cret := xTypeGetTypeRegistrationSerial() | |
| 1288 | 1374 | return cret | |
| 1289 | 1375 | } | |
| @@ -1294,6 +1380,8 @@ var xTypeInit func() | |||
| 1294 | 1380 | // the type system is initialised automatically and this function does | |
| 1295 | 1381 | // nothing. | |
| 1296 | 1382 | func TypeInit() { | |
| 1383 | + | core.LazyRegister(&xTypeInit, "GOBJECT", "g_type_init", false) | |
| 1384 | + | ||
| 1297 | 1385 | xTypeInit() | |
| 1298 | 1386 | } | |
| 1299 | 1387 | ||
| @@ -1306,6 +1394,8 @@ var xTypeInitWithDebugFlags func(TypeDebugFlags) | |||
| 1306 | 1394 | // If you need to enable debugging features, use the `GOBJECT_DEBUG` | |
| 1307 | 1395 | // environment variable. | |
| 1308 | 1396 | func TypeInitWithDebugFlags(DebugFlagsVar TypeDebugFlags) { | |
| 1397 | + | core.LazyRegister(&xTypeInitWithDebugFlags, "GOBJECT", "g_type_init_with_debug_flags", false) | |
| 1398 | + | ||
| 1309 | 1399 | xTypeInitWithDebugFlags(DebugFlagsVar) | |
| 1310 | 1400 | } | |
| 1311 | 1401 | ||
| @@ -1317,6 +1407,8 @@ var xTypeInterfaceAddPrerequisite func(types.GType, types.GType) | |||
| 1317 | 1407 | // interface derivation (which GType doesn't support). An interface can have | |
| 1318 | 1408 | // at most one instantiatable prerequisite type. | |
| 1319 | 1409 | func TypeInterfaceAddPrerequisite(InterfaceTypeVar types.GType, PrerequisiteTypeVar types.GType) { | |
| 1410 | + | core.LazyRegister(&xTypeInterfaceAddPrerequisite, "GOBJECT", "g_type_interface_add_prerequisite", false) | |
| 1411 | + | ||
| 1320 | 1412 | xTypeInterfaceAddPrerequisite(InterfaceTypeVar, PrerequisiteTypeVar) | |
| 1321 | 1413 | } | |
| 1322 | 1414 | ||
| @@ -1327,6 +1419,7 @@ var xTypeInterfaceGetPlugin func(types.GType, types.GType) uintptr | |||
| 1327 | 1419 | // if @interface_type has not been added to @instance_type or does | |
| 1328 | 1420 | // not have a #GTypePlugin structure. See g_type_add_interface_dynamic(). | |
| 1329 | 1421 | func TypeInterfaceGetPlugin(InstanceTypeVar types.GType, InterfaceTypeVar types.GType) *TypePluginBase { | |
| 1422 | + | core.LazyRegister(&xTypeInterfaceGetPlugin, "GOBJECT", "g_type_interface_get_plugin", false) | |
| 1330 | 1423 | var cls *TypePluginBase | |
| 1331 | 1424 | ||
| 1332 | 1425 | cret := xTypeInterfaceGetPlugin(InstanceTypeVar, InterfaceTypeVar) | |
| @@ -1349,6 +1442,8 @@ var xTypeInterfaceInstantiatablePrerequisite func(types.GType) types.GType | |||
| 1349 | 1442 | // See g_type_interface_add_prerequisite() for more information | |
| 1350 | 1443 | // about prerequisites. | |
| 1351 | 1444 | func TypeInterfaceInstantiatablePrerequisite(InterfaceTypeVar types.GType) types.GType { | |
| 1445 | + | core.LazyRegister(&xTypeInterfaceInstantiatablePrerequisite, "GOBJECT", "g_type_interface_instantiatable_prerequisite", false) | |
| 1446 | + | ||
| 1352 | 1447 | cret := xTypeInterfaceInstantiatablePrerequisite(InterfaceTypeVar) | |
| 1353 | 1448 | return cret | |
| 1354 | 1449 | } | |
| @@ -1358,6 +1453,8 @@ var xTypeInterfacePeek func(*TypeClass, types.GType) uintptr | |||
| 1358 | 1453 | // Returns the #GTypeInterface structure of an interface to which the | |
| 1359 | 1454 | // passed in class conforms. | |
| 1360 | 1455 | func TypeInterfacePeek(InstanceClassVar *TypeClass, IfaceTypeVar types.GType) *TypeInterface { | |
| 1456 | + | core.LazyRegister(&xTypeInterfacePeek, "GOBJECT", "g_type_interface_peek", false) | |
| 1457 | + | ||
| 1361 | 1458 | cret := xTypeInterfacePeek(InstanceClassVar, IfaceTypeVar) | |
| 1362 | 1459 | if cret == 0 { | |
| 1363 | 1460 | return nil | |
| @@ -1369,6 +1466,8 @@ var xTypeInterfacePrerequisites func(types.GType, *uint) uintptr | |||
| 1369 | 1466 | ||
| 1370 | 1467 | // Returns the prerequisites of an interfaces type. | |
| 1371 | 1468 | func TypeInterfacePrerequisites(InterfaceTypeVar types.GType, NPrerequisitesVar *uint) uintptr { | |
| 1469 | + | core.LazyRegister(&xTypeInterfacePrerequisites, "GOBJECT", "g_type_interface_prerequisites", false) | |
| 1470 | + | ||
| 1372 | 1471 | cret := xTypeInterfacePrerequisites(InterfaceTypeVar, NPrerequisitesVar) | |
| 1373 | 1472 | return cret | |
| 1374 | 1473 | } | |
| @@ -1378,6 +1477,8 @@ var xTypeInterfaces func(types.GType, *uint) uintptr | |||
| 1378 | 1477 | // Return a newly allocated and 0-terminated array of type IDs, listing | |
| 1379 | 1478 | // the interface types that @type conforms to. | |
| 1380 | 1479 | func TypeInterfaces(TypeVar types.GType, NInterfacesVar *uint) uintptr { | |
| 1480 | + | core.LazyRegister(&xTypeInterfaces, "GOBJECT", "g_type_interfaces", false) | |
| 1481 | + | ||
| 1381 | 1482 | cret := xTypeInterfaces(TypeVar, NInterfacesVar) | |
| 1382 | 1483 | return cret | |
| 1383 | 1484 | } | |
| @@ -1388,6 +1489,8 @@ var xTypeIsA func(types.GType, types.GType) bool | |||
| 1388 | 1489 | // descendant of @is_a_type. If @is_a_type is an interface, check | |
| 1389 | 1490 | // whether @type conforms to it. | |
| 1390 | 1491 | func TypeIsA(TypeVar types.GType, IsATypeVar types.GType) bool { | |
| 1492 | + | core.LazyRegister(&xTypeIsA, "GOBJECT", "g_type_is_a", false) | |
| 1493 | + | ||
| 1391 | 1494 | cret := xTypeIsA(TypeVar, IsATypeVar) | |
| 1392 | 1495 | return cret | |
| 1393 | 1496 | } | |
| @@ -1401,6 +1504,8 @@ var xTypeName func(types.GType) string | |||
| 1401 | 1504 | // may be any other validly registered type ID, but randomized type IDs | |
| 1402 | 1505 | // should not be passed in and will most likely lead to a crash. | |
| 1403 | 1506 | func TypeName(TypeVar types.GType) string { | |
| 1507 | + | core.LazyRegister(&xTypeName, "GOBJECT", "g_type_name", false) | |
| 1508 | + | ||
| 1404 | 1509 | cret := xTypeName(TypeVar) | |
| 1405 | 1510 | return cret | |
| 1406 | 1511 | } | |
| @@ -1408,6 +1513,8 @@ func TypeName(TypeVar types.GType) string { | |||
| 1408 | 1513 | var xTypeNameFromClass func(*TypeClass) string | |
| 1409 | 1514 | ||
| 1410 | 1515 | func TypeNameFromClass(GClassVar *TypeClass) string { | |
| 1516 | + | core.LazyRegister(&xTypeNameFromClass, "GOBJECT", "g_type_name_from_class", false) | |
| 1517 | + | ||
| 1411 | 1518 | cret := xTypeNameFromClass(GClassVar) | |
| 1412 | 1519 | return cret | |
| 1413 | 1520 | } | |
| @@ -1415,6 +1522,8 @@ func TypeNameFromClass(GClassVar *TypeClass) string { | |||
| 1415 | 1522 | var xTypeNameFromInstance func(*TypeInstance) string | |
| 1416 | 1523 | ||
| 1417 | 1524 | func TypeNameFromInstance(InstanceVar *TypeInstance) string { | |
| 1525 | + | core.LazyRegister(&xTypeNameFromInstance, "GOBJECT", "g_type_name_from_instance", false) | |
| 1526 | + | ||
| 1418 | 1527 | cret := xTypeNameFromInstance(InstanceVar) | |
| 1419 | 1528 | return cret | |
| 1420 | 1529 | } | |
| @@ -1429,6 +1538,8 @@ var xTypeNextBase func(types.GType, types.GType) types.GType | |||
| 1429 | 1538 | // be used to determine the types and order in which the leaf type is | |
| 1430 | 1539 | // descended from the root type. | |
| 1431 | 1540 | func TypeNextBase(LeafTypeVar types.GType, RootTypeVar types.GType) types.GType { | |
| 1541 | + | core.LazyRegister(&xTypeNextBase, "GOBJECT", "g_type_next_base", false) | |
| 1542 | + | ||
| 1432 | 1543 | cret := xTypeNextBase(LeafTypeVar, RootTypeVar) | |
| 1433 | 1544 | return cret | |
| 1434 | 1545 | } | |
| @@ -1438,6 +1549,8 @@ var xTypeParent func(types.GType) types.GType | |||
| 1438 | 1549 | // Return the direct parent type of the passed in type. If the passed | |
| 1439 | 1550 | // in type has no parent, i.e. is a fundamental type, 0 is returned. | |
| 1440 | 1551 | func TypeParent(TypeVar types.GType) types.GType { | |
| 1552 | + | core.LazyRegister(&xTypeParent, "GOBJECT", "g_type_parent", false) | |
| 1553 | + | ||
| 1441 | 1554 | cret := xTypeParent(TypeVar) | |
| 1442 | 1555 | return cret | |
| 1443 | 1556 | } | |
| @@ -1446,6 +1559,8 @@ var xTypeQname func(types.GType) glib.Quark | |||
| 1446 | 1559 | ||
| 1447 | 1560 | // Get the corresponding quark of the type IDs name. | |
| 1448 | 1561 | func TypeQname(TypeVar types.GType) glib.Quark { | |
| 1562 | + | core.LazyRegister(&xTypeQname, "GOBJECT", "g_type_qname", false) | |
| 1563 | + | ||
| 1449 | 1564 | cret := xTypeQname(TypeVar) | |
| 1450 | 1565 | return cret | |
| 1451 | 1566 | } | |
| @@ -1463,6 +1578,8 @@ var xNewTypeQuery func(types.GType, *TypeQuery) | |||
| 1463 | 1578 | // Since GLib 2.78, this function allows queries on dynamic types. Previously | |
| 1464 | 1579 | // it only supported static types. | |
| 1465 | 1580 | func NewTypeQuery(TypeVar types.GType, QueryVar *TypeQuery) { | |
| 1581 | + | core.LazyRegister(&xNewTypeQuery, "GOBJECT", "g_type_query", false) | |
| 1582 | + | ||
| 1466 | 1583 | xNewTypeQuery(TypeVar, QueryVar) | |
| 1467 | 1584 | } | |
| 1468 | 1585 | ||
| @@ -1474,6 +1591,8 @@ var xTypeRegisterDynamic func(types.GType, string, uintptr, TypeFlags) types.GTy | |||
| 1474 | 1591 | // instances (if not abstract). The value of @flags determines the nature | |
| 1475 | 1592 | // (e.g. abstract or not) of the type. | |
| 1476 | 1593 | func TypeRegisterDynamic(ParentTypeVar types.GType, TypeNameVar string, PluginVar TypePlugin, FlagsVar TypeFlags) types.GType { | |
| 1594 | + | core.LazyRegister(&xTypeRegisterDynamic, "GOBJECT", "g_type_register_dynamic", false) | |
| 1595 | + | ||
| 1477 | 1596 | cret := xTypeRegisterDynamic(ParentTypeVar, TypeNameVar, PluginVar.GoPointer(), FlagsVar) | |
| 1478 | 1597 | return cret | |
| 1479 | 1598 | } | |
| @@ -1488,6 +1607,8 @@ var xTypeRegisterFundamental func(types.GType, string, *TypeInfo, *TypeFundament | |||
| 1488 | 1607 | // @finfo to manage the type and its instances. The value of @flags determines | |
| 1489 | 1608 | // additional characteristics of the fundamental type. | |
| 1490 | 1609 | func TypeRegisterFundamental(TypeIdVar types.GType, TypeNameVar string, InfoVar *TypeInfo, FinfoVar *TypeFundamentalInfo, FlagsVar TypeFlags) types.GType { | |
| 1610 | + | core.LazyRegister(&xTypeRegisterFundamental, "GOBJECT", "g_type_register_fundamental", false) | |
| 1611 | + | ||
| 1491 | 1612 | cret := xTypeRegisterFundamental(TypeIdVar, TypeNameVar, InfoVar, FinfoVar, FlagsVar) | |
| 1492 | 1613 | return cret | |
| 1493 | 1614 | } | |
| @@ -1500,6 +1621,8 @@ var xTypeRegisterStatic func(types.GType, string, *TypeInfo, TypeFlags) types.GT | |||
| 1500 | 1621 | // instances (if not abstract). The value of @flags determines the nature | |
| 1501 | 1622 | // (e.g. abstract or not) of the type. | |
| 1502 | 1623 | func TypeRegisterStatic(ParentTypeVar types.GType, TypeNameVar string, InfoVar *TypeInfo, FlagsVar TypeFlags) types.GType { | |
| 1624 | + | core.LazyRegister(&xTypeRegisterStatic, "GOBJECT", "g_type_register_static", false) | |
| 1625 | + | ||
| 1503 | 1626 | cret := xTypeRegisterStatic(ParentTypeVar, TypeNameVar, InfoVar, FlagsVar) | |
| 1504 | 1627 | return cret | |
| 1505 | 1628 | } | |
| @@ -1511,6 +1634,8 @@ var xTypeRegisterStaticSimple func(types.GType, string, uint, uintptr, uint, uin | |||
| 1511 | 1634 | // abstract or not) of the type. It works by filling a #GTypeInfo | |
| 1512 | 1635 | // struct and calling g_type_register_static(). | |
| 1513 | 1636 | func TypeRegisterStaticSimple(ParentTypeVar types.GType, TypeNameVar string, ClassSizeVar uint, ClassInitVar *ClassInitFunc, InstanceSizeVar uint, InstanceInitVar *InstanceInitFunc, FlagsVar TypeFlags) types.GType { | |
| 1637 | + | core.LazyRegister(&xTypeRegisterStaticSimple, "GOBJECT", "g_type_register_static_simple", false) | |
| 1638 | + | ||
| 1514 | 1639 | cret := xTypeRegisterStaticSimple(ParentTypeVar, TypeNameVar, ClassSizeVar, glib.NewCallback(ClassInitVar), InstanceSizeVar, glib.NewCallback(InstanceInitVar), FlagsVar) | |
| 1515 | 1640 | return cret | |
| 1516 | 1641 | } | |
| @@ -1521,6 +1646,8 @@ var xTypeRemoveClassCacheFunc func(uintptr, uintptr) | |||
| 1521 | 1646 | // maintained by @cache_func has to be empty when calling | |
| 1522 | 1647 | // g_type_remove_class_cache_func() to avoid leaks. | |
| 1523 | 1648 | func TypeRemoveClassCacheFunc(CacheDataVar uintptr, CacheFuncVar *TypeClassCacheFunc) { | |
| 1649 | + | core.LazyRegister(&xTypeRemoveClassCacheFunc, "GOBJECT", "g_type_remove_class_cache_func", false) | |
| 1650 | + | ||
| 1524 | 1651 | xTypeRemoveClassCacheFunc(CacheDataVar, glib.NewCallback(CacheFuncVar)) | |
| 1525 | 1652 | } | |
| 1526 | 1653 | ||
| @@ -1529,6 +1656,8 @@ var xTypeRemoveInterfaceCheck func(uintptr, uintptr) | |||
| 1529 | 1656 | // Removes an interface check function added with | |
| 1530 | 1657 | // g_type_add_interface_check(). | |
| 1531 | 1658 | func TypeRemoveInterfaceCheck(CheckDataVar uintptr, CheckFuncVar *TypeInterfaceCheckFunc) { | |
| 1659 | + | core.LazyRegister(&xTypeRemoveInterfaceCheck, "GOBJECT", "g_type_remove_interface_check", false) | |
| 1660 | + | ||
| 1532 | 1661 | xTypeRemoveInterfaceCheck(CheckDataVar, glib.NewCallback(CheckFuncVar)) | |
| 1533 | 1662 | } | |
| 1534 | 1663 | ||
| @@ -1536,12 +1665,16 @@ var xTypeSetQdata func(types.GType, glib.Quark, uintptr) | |||
| 1536 | 1665 | ||
| 1537 | 1666 | // Attaches arbitrary data to a type. | |
| 1538 | 1667 | func TypeSetQdata(TypeVar types.GType, QuarkVar glib.Quark, DataVar uintptr) { | |
| 1668 | + | core.LazyRegister(&xTypeSetQdata, "GOBJECT", "g_type_set_qdata", false) | |
| 1669 | + | ||
| 1539 | 1670 | xTypeSetQdata(TypeVar, QuarkVar, DataVar) | |
| 1540 | 1671 | } | |
| 1541 | 1672 | ||
| 1542 | 1673 | var xTypeTestFlags func(types.GType, uint) bool | |
| 1543 | 1674 | ||
| 1544 | 1675 | func TypeTestFlags(TypeVar types.GType, FlagsVar uint) bool { | |
| 1676 | + | core.LazyRegister(&xTypeTestFlags, "GOBJECT", "g_type_test_flags", false) | |
| 1677 | + | ||
| 1545 | 1678 | cret := xTypeTestFlags(TypeVar, FlagsVar) | |
| 1546 | 1679 | return cret | |
| 1547 | 1680 | } | |
| @@ -1554,6 +1687,8 @@ var xTypeValueTablePeek func(types.GType) uintptr | |||
| 1554 | 1687 | // that implements or has internal knowledge of the implementation of | |
| 1555 | 1688 | // @type. | |
| 1556 | 1689 | func TypeValueTablePeek(TypeVar types.GType) *TypeValueTable { | |
| 1690 | + | core.LazyRegister(&xTypeValueTablePeek, "GOBJECT", "g_type_value_table_peek", false) | |
| 1691 | + | ||
| 1557 | 1692 | cret := xTypeValueTablePeek(TypeVar) | |
| 1558 | 1693 | if cret == 0 { | |
| 1559 | 1694 | return nil | |
| @@ -1564,85 +1699,4 @@ func TypeValueTablePeek(TypeVar types.GType) *TypeValueTable { | |||
| 1564 | 1699 | func init() { | |
| 1565 | 1700 | core.SetPackageName("GOBJECT", "gobject-2.0") | |
| 1566 | 1701 | core.SetSharedLibraries("GOBJECT", []string{"libgobject-2.0.so.0", "libgobject-2.0.0.dylib"}) | |
| 1567 | - | var libs []uintptr | |
| 1568 | - | for _, libPath := range core.GetPaths("GOBJECT") { | |
| 1569 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 1570 | - | if err != nil { | |
| 1571 | - | panic(err) | |
| 1572 | - | } | |
| 1573 | - | libs = append(libs, lib) | |
| 1574 | - | } | |
| 1575 | - | ||
| 1576 | - | core.PuregoSafeRegister(&xTypeAddClassCacheFunc, libs, "g_type_add_class_cache_func") | |
| 1577 | - | core.PuregoSafeRegister(&xTypeAddClassPrivate, libs, "g_type_add_class_private") | |
| 1578 | - | core.PuregoSafeRegister(&xTypeAddInstancePrivate, libs, "g_type_add_instance_private") | |
| 1579 | - | core.PuregoSafeRegister(&xTypeAddInterfaceCheck, libs, "g_type_add_interface_check") | |
| 1580 | - | core.PuregoSafeRegister(&xTypeAddInterfaceDynamic, libs, "g_type_add_interface_dynamic") | |
| 1581 | - | core.PuregoSafeRegister(&xTypeAddInterfaceStatic, libs, "g_type_add_interface_static") | |
| 1582 | - | core.PuregoSafeRegister(&xTypeCheckClassCast, libs, "g_type_check_class_cast") | |
| 1583 | - | core.PuregoSafeRegister(&xTypeCheckClassIsA, libs, "g_type_check_class_is_a") | |
| 1584 | - | core.PuregoSafeRegister(&xTypeCheckInstance, libs, "g_type_check_instance") | |
| 1585 | - | core.PuregoSafeRegister(&xTypeCheckInstanceCast, libs, "g_type_check_instance_cast") | |
| 1586 | - | core.PuregoSafeRegister(&xTypeCheckInstanceIsA, libs, "g_type_check_instance_is_a") | |
| 1587 | - | core.PuregoSafeRegister(&xTypeCheckInstanceIsFundamentallyA, libs, "g_type_check_instance_is_fundamentally_a") | |
| 1588 | - | core.PuregoSafeRegister(&xTypeCheckIsValueType, libs, "g_type_check_is_value_type") | |
| 1589 | - | core.PuregoSafeRegister(&xTypeCheckValue, libs, "g_type_check_value") | |
| 1590 | - | core.PuregoSafeRegister(&xTypeCheckValueHolds, libs, "g_type_check_value_holds") | |
| 1591 | - | core.PuregoSafeRegister(&xTypeChildren, libs, "g_type_children") | |
| 1592 | - | core.PuregoSafeRegister(&xTypeClassAdjustPrivateOffset, libs, "g_type_class_adjust_private_offset") | |
| 1593 | - | core.PuregoSafeRegister(&xTypeClassGet, libs, "g_type_class_get") | |
| 1594 | - | core.PuregoSafeRegister(&xTypeClassPeek, libs, "g_type_class_peek") | |
| 1595 | - | core.PuregoSafeRegister(&xTypeClassPeekStatic, libs, "g_type_class_peek_static") | |
| 1596 | - | core.PuregoSafeRegister(&xTypeClassRef, libs, "g_type_class_ref") | |
| 1597 | - | core.PuregoSafeRegister(&xTypeCreateInstance, libs, "g_type_create_instance") | |
| 1598 | - | core.PuregoSafeRegister(&xTypeDefaultInterfaceGet, libs, "g_type_default_interface_get") | |
| 1599 | - | core.PuregoSafeRegister(&xTypeDefaultInterfacePeek, libs, "g_type_default_interface_peek") | |
| 1600 | - | core.PuregoSafeRegister(&xTypeDefaultInterfaceRef, libs, "g_type_default_interface_ref") | |
| 1601 | - | core.PuregoSafeRegister(&xTypeDefaultInterfaceUnref, libs, "g_type_default_interface_unref") | |
| 1602 | - | core.PuregoSafeRegister(&xTypeDepth, libs, "g_type_depth") | |
| 1603 | - | core.PuregoSafeRegister(&xTypeEnsure, libs, "g_type_ensure") | |
| 1604 | - | core.PuregoSafeRegister(&xTypeFreeInstance, libs, "g_type_free_instance") | |
| 1605 | - | core.PuregoSafeRegister(&xTypeFromName, libs, "g_type_from_name") | |
| 1606 | - | core.PuregoSafeRegister(&xTypeFundamental, libs, "g_type_fundamental") | |
| 1607 | - | core.PuregoSafeRegister(&xTypeFundamentalNext, libs, "g_type_fundamental_next") | |
| 1608 | - | core.PuregoSafeRegister(&xTypeGetInstanceCount, libs, "g_type_get_instance_count") | |
| 1609 | - | core.PuregoSafeRegister(&xTypeGetPlugin, libs, "g_type_get_plugin") | |
| 1610 | - | core.PuregoSafeRegister(&xTypeGetQdata, libs, "g_type_get_qdata") | |
| 1611 | - | core.PuregoSafeRegister(&xTypeGetTypeRegistrationSerial, libs, "g_type_get_type_registration_serial") | |
| 1612 | - | core.PuregoSafeRegister(&xTypeInit, libs, "g_type_init") | |
| 1613 | - | core.PuregoSafeRegister(&xTypeInitWithDebugFlags, libs, "g_type_init_with_debug_flags") | |
| 1614 | - | core.PuregoSafeRegister(&xTypeInterfaceAddPrerequisite, libs, "g_type_interface_add_prerequisite") | |
| 1615 | - | core.PuregoSafeRegister(&xTypeInterfaceGetPlugin, libs, "g_type_interface_get_plugin") | |
| 1616 | - | core.PuregoSafeRegister(&xTypeInterfaceInstantiatablePrerequisite, libs, "g_type_interface_instantiatable_prerequisite") | |
| 1617 | - | core.PuregoSafeRegister(&xTypeInterfacePeek, libs, "g_type_interface_peek") | |
| 1618 | - | core.PuregoSafeRegister(&xTypeInterfacePrerequisites, libs, "g_type_interface_prerequisites") | |
| 1619 | - | core.PuregoSafeRegister(&xTypeInterfaces, libs, "g_type_interfaces") | |
| 1620 | - | core.PuregoSafeRegister(&xTypeIsA, libs, "g_type_is_a") | |
| 1621 | - | core.PuregoSafeRegister(&xTypeName, libs, "g_type_name") | |
| 1622 | - | core.PuregoSafeRegister(&xTypeNameFromClass, libs, "g_type_name_from_class") | |
| 1623 | - | core.PuregoSafeRegister(&xTypeNameFromInstance, libs, "g_type_name_from_instance") | |
| 1624 | - | core.PuregoSafeRegister(&xTypeNextBase, libs, "g_type_next_base") | |
| 1625 | - | core.PuregoSafeRegister(&xTypeParent, libs, "g_type_parent") | |
| 1626 | - | core.PuregoSafeRegister(&xTypeQname, libs, "g_type_qname") | |
| 1627 | - | core.PuregoSafeRegister(&xNewTypeQuery, libs, "g_type_query") | |
| 1628 | - | core.PuregoSafeRegister(&xTypeRegisterDynamic, libs, "g_type_register_dynamic") | |
| 1629 | - | core.PuregoSafeRegister(&xTypeRegisterFundamental, libs, "g_type_register_fundamental") | |
| 1630 | - | core.PuregoSafeRegister(&xTypeRegisterStatic, libs, "g_type_register_static") | |
| 1631 | - | core.PuregoSafeRegister(&xTypeRegisterStaticSimple, libs, "g_type_register_static_simple") | |
| 1632 | - | core.PuregoSafeRegister(&xTypeRemoveClassCacheFunc, libs, "g_type_remove_class_cache_func") | |
| 1633 | - | core.PuregoSafeRegister(&xTypeRemoveInterfaceCheck, libs, "g_type_remove_interface_check") | |
| 1634 | - | core.PuregoSafeRegister(&xTypeSetQdata, libs, "g_type_set_qdata") | |
| 1635 | - | core.PuregoSafeRegister(&xTypeTestFlags, libs, "g_type_test_flags") | |
| 1636 | - | core.PuregoSafeRegister(&xTypeValueTablePeek, libs, "g_type_value_table_peek") | |
| 1637 | - | ||
| 1638 | - | core.PuregoSafeRegister(&xTypeClassAddPrivate, libs, "g_type_class_add_private") | |
| 1639 | - | core.PuregoSafeRegister(&xTypeClassGetInstancePrivateOffset, libs, "g_type_class_get_instance_private_offset") | |
| 1640 | - | core.PuregoSafeRegister(&xTypeClassGetPrivate, libs, "g_type_class_get_private") | |
| 1641 | - | core.PuregoSafeRegister(&xTypeClassPeekParent, libs, "g_type_class_peek_parent") | |
| 1642 | - | core.PuregoSafeRegister(&xTypeClassUnref, libs, "g_type_class_unref") | |
| 1643 | - | core.PuregoSafeRegister(&xTypeClassUnrefUncached, libs, "g_type_class_unref_uncached") | |
| 1644 | - | ||
| 1645 | - | core.PuregoSafeRegister(&xTypeInstanceGetPrivate, libs, "g_type_instance_get_private") | |
| 1646 | - | ||
| 1647 | - | core.PuregoSafeRegister(&xTypeInterfacePeekParent, libs, "g_type_interface_peek_parent") | |
| 1648 | 1702 | } | |
| @@ -5,7 +5,6 @@ import ( | |||||
| 5 | "structs" | 5 | "structs" | ||
| 6 | "unsafe" | 6 | "unsafe" | ||
| 7 | 7 | ||||
| 8 | - | "github.com/bnema/purego" | |||
| 9 | "github.com/bnema/puregotk/pkg/core" | 8 | "github.com/bnema/puregotk/pkg/core" | ||
| 10 | "github.com/bnema/puregotk/v4/glib" | 9 | "github.com/bnema/puregotk/v4/glib" | ||
| 11 | "github.com/bnema/puregotk/v4/gobject/types" | 10 | "github.com/bnema/puregotk/v4/gobject/types" | ||
| @@ -506,6 +505,8 @@ var xTypeClassAddPrivate func(uintptr, uint) | |||||
| 506 | // | 505 | // | ||
| 507 | // ]| | 506 | // ]| | ||
| 508 | func (x *TypeClass) AddPrivate(PrivateSizeVar uint) { | 507 | func (x *TypeClass) AddPrivate(PrivateSizeVar uint) { | ||
| 508 | + | core.LazyRegister(&xTypeClassAddPrivate, "GOBJECT", "g_type_class_add_private", false) | |||
| 509 | + | ||||
| 509 | xTypeClassAddPrivate(x.GoPointer(), PrivateSizeVar) | 510 | xTypeClassAddPrivate(x.GoPointer(), PrivateSizeVar) | ||
| 510 | } | 511 | } | ||
| 511 | 512 | ||||
| @@ -520,6 +521,8 @@ var xTypeClassGetInstancePrivateOffset func(uintptr) int | |||||
| 520 | // You can only call this function after you have registered a private | 521 | // You can only call this function after you have registered a private | ||
| 521 | // data area for @g_class using g_type_class_add_private(). | 522 | // data area for @g_class using g_type_class_add_private(). | ||
| 522 | func (x *TypeClass) GetInstancePrivateOffset() int { | 523 | func (x *TypeClass) GetInstancePrivateOffset() int { | ||
| 524 | + | core.LazyRegister(&xTypeClassGetInstancePrivateOffset, "GOBJECT", "g_type_class_get_instance_private_offset", false) | |||
| 525 | + | ||||
| 523 | cret := xTypeClassGetInstancePrivateOffset(x.GoPointer()) | 526 | cret := xTypeClassGetInstancePrivateOffset(x.GoPointer()) | ||
| 524 | return cret | 527 | return cret | ||
| 525 | } | 528 | } | ||
| @@ -527,6 +530,8 @@ func (x *TypeClass) GetInstancePrivateOffset() int { | |||||
| 527 | var xTypeClassGetPrivate func(uintptr, types.GType) uintptr | 530 | var xTypeClassGetPrivate func(uintptr, types.GType) uintptr | ||
| 528 | 531 | ||||
| 529 | func (x *TypeClass) GetPrivate(PrivateTypeVar types.GType) uintptr { | 532 | func (x *TypeClass) GetPrivate(PrivateTypeVar types.GType) uintptr { | ||
| 533 | + | core.LazyRegister(&xTypeClassGetPrivate, "GOBJECT", "g_type_class_get_private", false) | |||
| 534 | + | ||||
| 530 | cret := xTypeClassGetPrivate(x.GoPointer(), PrivateTypeVar) | 535 | cret := xTypeClassGetPrivate(x.GoPointer(), PrivateTypeVar) | ||
| 531 | return cret | 536 | return cret | ||
| 532 | } | 537 | } | ||
| @@ -544,6 +549,8 @@ var xTypeClassPeekParent func(uintptr) uintptr | |||||
| 544 | // This function is essentially equivalent to: | 549 | // This function is essentially equivalent to: | ||
| 545 | // g_type_class_peek (g_type_parent (G_TYPE_FROM_CLASS (g_class))) | 550 | // g_type_class_peek (g_type_parent (G_TYPE_FROM_CLASS (g_class))) | ||
| 546 | func (x *TypeClass) PeekParent() *TypeClass { | 551 | func (x *TypeClass) PeekParent() *TypeClass { | ||
| 552 | + | core.LazyRegister(&xTypeClassPeekParent, "GOBJECT", "g_type_class_peek_parent", false) | |||
| 553 | + | ||||
| 547 | cret := xTypeClassPeekParent(x.GoPointer()) | 554 | cret := xTypeClassPeekParent(x.GoPointer()) | ||
| 548 | if cret == 0 { | 555 | if cret == 0 { | ||
| 549 | return nil | 556 | return nil | ||
| @@ -559,6 +566,8 @@ var xTypeClassUnref func(uintptr) | |||||
| 559 | // may be finalized by the type system, so further dereferencing of a | 566 | // may be finalized by the type system, so further dereferencing of a | ||
| 560 | // class pointer after g_type_class_unref() are invalid. | 567 | // class pointer after g_type_class_unref() are invalid. | ||
| 561 | func (x *TypeClass) Unref() { | 568 | func (x *TypeClass) Unref() { | ||
| 569 | + | core.LazyRegister(&xTypeClassUnref, "GOBJECT", "g_type_class_unref", false) | |||
| 570 | + | ||||
| 562 | xTypeClassUnref(x.GoPointer()) | 571 | xTypeClassUnref(x.GoPointer()) | ||
| 563 | } | 572 | } | ||
| 564 | 573 | ||||
| @@ -571,6 +580,8 @@ var xTypeClassUnrefUncached func(uintptr) | |||||
| 571 | // of #GTypeClassCacheFuncs, avoiding the recursion which would occur | 580 | // of #GTypeClassCacheFuncs, avoiding the recursion which would occur | ||
| 572 | // otherwise. | 581 | // otherwise. | ||
| 573 | func (x *TypeClass) UnrefUncached() { | 582 | func (x *TypeClass) UnrefUncached() { | ||
| 583 | + | core.LazyRegister(&xTypeClassUnrefUncached, "GOBJECT", "g_type_class_unref_uncached", false) | |||
| 584 | + | ||||
| 574 | xTypeClassUnrefUncached(x.GoPointer()) | 585 | xTypeClassUnrefUncached(x.GoPointer()) | ||
| 575 | } | 586 | } | ||
| 576 | 587 | ||||
| @@ -661,6 +672,8 @@ func TypeInstanceNewFromInternalPtr(ptr uintptr) *TypeInstance { | |||||
| 661 | var xTypeInstanceGetPrivate func(uintptr, types.GType) uintptr | 672 | var xTypeInstanceGetPrivate func(uintptr, types.GType) uintptr | ||
| 662 | 673 | ||||
| 663 | func (x *TypeInstance) GetPrivate(PrivateTypeVar types.GType) uintptr { | 674 | func (x *TypeInstance) GetPrivate(PrivateTypeVar types.GType) uintptr { | ||
| 675 | + | core.LazyRegister(&xTypeInstanceGetPrivate, "GOBJECT", "g_type_instance_get_private", false) | |||
| 676 | + | ||||
| 664 | cret := xTypeInstanceGetPrivate(x.GoPointer(), PrivateTypeVar) | 677 | cret := xTypeInstanceGetPrivate(x.GoPointer(), PrivateTypeVar) | ||
| 665 | return cret | 678 | return cret | ||
| 666 | } | 679 | } | ||
| @@ -694,6 +707,8 @@ var xTypeInterfacePeekParent func(uintptr) uintptr | |||||
| 694 | // This is useful when deriving the implementation of an interface from the | 707 | // This is useful when deriving the implementation of an interface from the | ||
| 695 | // parent type and then possibly overriding some methods. | 708 | // parent type and then possibly overriding some methods. | ||
| 696 | func (x *TypeInterface) PeekParent() *TypeInterface { | 709 | func (x *TypeInterface) PeekParent() *TypeInterface { | ||
| 710 | + | core.LazyRegister(&xTypeInterfacePeekParent, "GOBJECT", "g_type_interface_peek_parent", false) | |||
| 711 | + | ||||
| 697 | cret := xTypeInterfacePeekParent(x.GoPointer()) | 712 | cret := xTypeInterfacePeekParent(x.GoPointer()) | ||
| 698 | if cret == 0 { | 713 | if cret == 0 { | ||
| 699 | return nil | 714 | return nil | ||
| @@ -868,6 +883,8 @@ var xTypeAddClassCacheFunc func(uintptr, uintptr) | |||||
| 868 | // type, since all classes are routed through the same #GTypeClassCacheFunc | 883 | // type, since all classes are routed through the same #GTypeClassCacheFunc | ||
| 869 | // chain. | 884 | // chain. | ||
| 870 | func TypeAddClassCacheFunc(CacheDataVar uintptr, CacheFuncVar *TypeClassCacheFunc) { | 885 | func TypeAddClassCacheFunc(CacheDataVar uintptr, CacheFuncVar *TypeClassCacheFunc) { | ||
| 886 | + | core.LazyRegister(&xTypeAddClassCacheFunc, "GOBJECT", "g_type_add_class_cache_func", false) | |||
| 887 | + | ||||
| 871 | xTypeAddClassCacheFunc(CacheDataVar, glib.NewCallback(CacheFuncVar)) | 888 | xTypeAddClassCacheFunc(CacheDataVar, glib.NewCallback(CacheFuncVar)) | ||
| 872 | } | 889 | } | ||
| 873 | 890 | ||||
| @@ -884,12 +901,16 @@ var xTypeAddClassPrivate func(types.GType, uint) | |||||
| 884 | // The private structure can be retrieved using the | 901 | // The private structure can be retrieved using the | ||
| 885 | // G_TYPE_CLASS_GET_PRIVATE() macro. | 902 | // G_TYPE_CLASS_GET_PRIVATE() macro. | ||
| 886 | func TypeAddClassPrivate(ClassTypeVar types.GType, PrivateSizeVar uint) { | 903 | func TypeAddClassPrivate(ClassTypeVar types.GType, PrivateSizeVar uint) { | ||
| 904 | + | core.LazyRegister(&xTypeAddClassPrivate, "GOBJECT", "g_type_add_class_private", false) | |||
| 905 | + | ||||
| 887 | xTypeAddClassPrivate(ClassTypeVar, PrivateSizeVar) | 906 | xTypeAddClassPrivate(ClassTypeVar, PrivateSizeVar) | ||
| 888 | } | 907 | } | ||
| 889 | 908 | ||||
| 890 | var xTypeAddInstancePrivate func(types.GType, uint) int | 909 | var xTypeAddInstancePrivate func(types.GType, uint) int | ||
| 891 | 910 | ||||
| 892 | func TypeAddInstancePrivate(ClassTypeVar types.GType, PrivateSizeVar uint) int { | 911 | func TypeAddInstancePrivate(ClassTypeVar types.GType, PrivateSizeVar uint) int { | ||
| 912 | + | core.LazyRegister(&xTypeAddInstancePrivate, "GOBJECT", "g_type_add_instance_private", false) | |||
| 913 | + | ||||
| 893 | cret := xTypeAddInstancePrivate(ClassTypeVar, PrivateSizeVar) | 914 | cret := xTypeAddInstancePrivate(ClassTypeVar, PrivateSizeVar) | ||
| 894 | return cret | 915 | return cret | ||
| 895 | } | 916 | } | ||
| @@ -906,6 +927,8 @@ var xTypeAddInterfaceCheck func(uintptr, uintptr) | |||||
| 906 | // object implements all of the properties that are defined on its | 927 | // object implements all of the properties that are defined on its | ||
| 907 | // interfaces. | 928 | // interfaces. | ||
| 908 | func TypeAddInterfaceCheck(CheckDataVar uintptr, CheckFuncVar *TypeInterfaceCheckFunc) { | 929 | func TypeAddInterfaceCheck(CheckDataVar uintptr, CheckFuncVar *TypeInterfaceCheckFunc) { | ||
| 930 | + | core.LazyRegister(&xTypeAddInterfaceCheck, "GOBJECT", "g_type_add_interface_check", false) | |||
| 931 | + | ||||
| 909 | xTypeAddInterfaceCheck(CheckDataVar, glib.NewCallback(CheckFuncVar)) | 932 | xTypeAddInterfaceCheck(CheckDataVar, glib.NewCallback(CheckFuncVar)) | ||
| 910 | } | 933 | } | ||
| 911 | 934 | ||||
| @@ -915,6 +938,8 @@ var xTypeAddInterfaceDynamic func(types.GType, types.GType, uintptr) | |||||
| 915 | // contained in the #GTypePlugin structure pointed to by @plugin | 938 | // contained in the #GTypePlugin structure pointed to by @plugin | ||
| 916 | // is used to manage the relationship. | 939 | // is used to manage the relationship. | ||
| 917 | func TypeAddInterfaceDynamic(InstanceTypeVar types.GType, InterfaceTypeVar types.GType, PluginVar TypePlugin) { | 940 | func TypeAddInterfaceDynamic(InstanceTypeVar types.GType, InterfaceTypeVar types.GType, PluginVar TypePlugin) { | ||
| 941 | + | core.LazyRegister(&xTypeAddInterfaceDynamic, "GOBJECT", "g_type_add_interface_dynamic", false) | |||
| 942 | + | ||||
| 918 | xTypeAddInterfaceDynamic(InstanceTypeVar, InterfaceTypeVar, PluginVar.GoPointer()) | 943 | xTypeAddInterfaceDynamic(InstanceTypeVar, InterfaceTypeVar, PluginVar.GoPointer()) | ||
| 919 | } | 944 | } | ||
| 920 | 945 | ||||
| @@ -924,12 +949,16 @@ var xTypeAddInterfaceStatic func(types.GType, types.GType, *InterfaceInfo) | |||||
| 924 | // The information contained in the #GInterfaceInfo structure | 949 | // The information contained in the #GInterfaceInfo structure | ||
| 925 | // pointed to by @info is used to manage the relationship. | 950 | // pointed to by @info is used to manage the relationship. | ||
| 926 | func TypeAddInterfaceStatic(InstanceTypeVar types.GType, InterfaceTypeVar types.GType, InfoVar *InterfaceInfo) { | 951 | func TypeAddInterfaceStatic(InstanceTypeVar types.GType, InterfaceTypeVar types.GType, InfoVar *InterfaceInfo) { | ||
| 952 | + | core.LazyRegister(&xTypeAddInterfaceStatic, "GOBJECT", "g_type_add_interface_static", false) | |||
| 953 | + | ||||
| 927 | xTypeAddInterfaceStatic(InstanceTypeVar, InterfaceTypeVar, InfoVar) | 954 | xTypeAddInterfaceStatic(InstanceTypeVar, InterfaceTypeVar, InfoVar) | ||
| 928 | } | 955 | } | ||
| 929 | 956 | ||||
| 930 | var xTypeCheckClassCast func(*TypeClass, types.GType) uintptr | 957 | var xTypeCheckClassCast func(*TypeClass, types.GType) uintptr | ||
| 931 | 958 | ||||
| 932 | func TypeCheckClassCast(GClassVar *TypeClass, IsATypeVar types.GType) *TypeClass { | 959 | func TypeCheckClassCast(GClassVar *TypeClass, IsATypeVar types.GType) *TypeClass { | ||
| 960 | + | core.LazyRegister(&xTypeCheckClassCast, "GOBJECT", "g_type_check_class_cast", false) | |||
| 961 | + | ||||
| 933 | cret := xTypeCheckClassCast(GClassVar, IsATypeVar) | 962 | cret := xTypeCheckClassCast(GClassVar, IsATypeVar) | ||
| 934 | if cret == 0 { | 963 | if cret == 0 { | ||
| 935 | return nil | 964 | return nil | ||
| @@ -940,6 +969,8 @@ func TypeCheckClassCast(GClassVar *TypeClass, IsATypeVar types.GType) *TypeClass | |||||
| 940 | var xTypeCheckClassIsA func(*TypeClass, types.GType) bool | 969 | var xTypeCheckClassIsA func(*TypeClass, types.GType) bool | ||
| 941 | 970 | ||||
| 942 | func TypeCheckClassIsA(GClassVar *TypeClass, IsATypeVar types.GType) bool { | 971 | func TypeCheckClassIsA(GClassVar *TypeClass, IsATypeVar types.GType) bool { | ||
| 972 | + | core.LazyRegister(&xTypeCheckClassIsA, "GOBJECT", "g_type_check_class_is_a", false) | |||
| 973 | + | ||||
| 943 | cret := xTypeCheckClassIsA(GClassVar, IsATypeVar) | 974 | cret := xTypeCheckClassIsA(GClassVar, IsATypeVar) | ||
| 944 | return cret | 975 | return cret | ||
| 945 | } | 976 | } | ||
| @@ -949,6 +980,8 @@ var xTypeCheckInstance func(*TypeInstance) bool | |||||
| 949 | // Private helper function to aid implementation of the | 980 | // Private helper function to aid implementation of the | ||
| 950 | // G_TYPE_CHECK_INSTANCE() macro. | 981 | // G_TYPE_CHECK_INSTANCE() macro. | ||
| 951 | func TypeCheckInstance(InstanceVar *TypeInstance) bool { | 982 | func TypeCheckInstance(InstanceVar *TypeInstance) bool { | ||
| 983 | + | core.LazyRegister(&xTypeCheckInstance, "GOBJECT", "g_type_check_instance", false) | |||
| 984 | + | ||||
| 952 | cret := xTypeCheckInstance(InstanceVar) | 985 | cret := xTypeCheckInstance(InstanceVar) | ||
| 953 | return cret | 986 | return cret | ||
| 954 | } | 987 | } | ||
| @@ -956,6 +989,8 @@ func TypeCheckInstance(InstanceVar *TypeInstance) bool { | |||||
| 956 | var xTypeCheckInstanceCast func(*TypeInstance, types.GType) uintptr | 989 | var xTypeCheckInstanceCast func(*TypeInstance, types.GType) uintptr | ||
| 957 | 990 | ||||
| 958 | func TypeCheckInstanceCast(InstanceVar *TypeInstance, IfaceTypeVar types.GType) *TypeInstance { | 991 | func TypeCheckInstanceCast(InstanceVar *TypeInstance, IfaceTypeVar types.GType) *TypeInstance { | ||
| 992 | + | core.LazyRegister(&xTypeCheckInstanceCast, "GOBJECT", "g_type_check_instance_cast", false) | |||
| 993 | + | ||||
| 959 | cret := xTypeCheckInstanceCast(InstanceVar, IfaceTypeVar) | 994 | cret := xTypeCheckInstanceCast(InstanceVar, IfaceTypeVar) | ||
| 960 | if cret == 0 { | 995 | if cret == 0 { | ||
| 961 | return nil | 996 | return nil | ||
| @@ -966,6 +1001,8 @@ func TypeCheckInstanceCast(InstanceVar *TypeInstance, IfaceTypeVar types.GType) | |||||
| 966 | var xTypeCheckInstanceIsA func(*TypeInstance, types.GType) bool | 1001 | var xTypeCheckInstanceIsA func(*TypeInstance, types.GType) bool | ||
| 967 | 1002 | ||||
| 968 | func TypeCheckInstanceIsA(InstanceVar *TypeInstance, IfaceTypeVar types.GType) bool { | 1003 | func TypeCheckInstanceIsA(InstanceVar *TypeInstance, IfaceTypeVar types.GType) bool { | ||
| 1004 | + | core.LazyRegister(&xTypeCheckInstanceIsA, "GOBJECT", "g_type_check_instance_is_a", false) | |||
| 1005 | + | ||||
| 969 | cret := xTypeCheckInstanceIsA(InstanceVar, IfaceTypeVar) | 1006 | cret := xTypeCheckInstanceIsA(InstanceVar, IfaceTypeVar) | ||
| 970 | return cret | 1007 | return cret | ||
| 971 | } | 1008 | } | ||
| @@ -973,6 +1010,8 @@ func TypeCheckInstanceIsA(InstanceVar *TypeInstance, IfaceTypeVar types.GType) b | |||||
| 973 | var xTypeCheckInstanceIsFundamentallyA func(*TypeInstance, types.GType) bool | 1010 | var xTypeCheckInstanceIsFundamentallyA func(*TypeInstance, types.GType) bool | ||
| 974 | 1011 | ||||
| 975 | func TypeCheckInstanceIsFundamentallyA(InstanceVar *TypeInstance, FundamentalTypeVar types.GType) bool { | 1012 | func TypeCheckInstanceIsFundamentallyA(InstanceVar *TypeInstance, FundamentalTypeVar types.GType) bool { | ||
| 1013 | + | core.LazyRegister(&xTypeCheckInstanceIsFundamentallyA, "GOBJECT", "g_type_check_instance_is_fundamentally_a", false) | |||
| 1014 | + | ||||
| 976 | cret := xTypeCheckInstanceIsFundamentallyA(InstanceVar, FundamentalTypeVar) | 1015 | cret := xTypeCheckInstanceIsFundamentallyA(InstanceVar, FundamentalTypeVar) | ||
| 977 | return cret | 1016 | return cret | ||
| 978 | } | 1017 | } | ||
| @@ -980,6 +1019,8 @@ func TypeCheckInstanceIsFundamentallyA(InstanceVar *TypeInstance, FundamentalTyp | |||||
| 980 | var xTypeCheckIsValueType func(types.GType) bool | 1019 | var xTypeCheckIsValueType func(types.GType) bool | ||
| 981 | 1020 | ||||
| 982 | func TypeCheckIsValueType(TypeVar types.GType) bool { | 1021 | func TypeCheckIsValueType(TypeVar types.GType) bool { | ||
| 1022 | + | core.LazyRegister(&xTypeCheckIsValueType, "GOBJECT", "g_type_check_is_value_type", false) | |||
| 1023 | + | ||||
| 983 | cret := xTypeCheckIsValueType(TypeVar) | 1024 | cret := xTypeCheckIsValueType(TypeVar) | ||
| 984 | return cret | 1025 | return cret | ||
| 985 | } | 1026 | } | ||
| @@ -987,6 +1028,8 @@ func TypeCheckIsValueType(TypeVar types.GType) bool { | |||||
| 987 | var xTypeCheckValue func(*Value) bool | 1028 | var xTypeCheckValue func(*Value) bool | ||
| 988 | 1029 | ||||
| 989 | func TypeCheckValue(ValueVar *Value) bool { | 1030 | func TypeCheckValue(ValueVar *Value) bool { | ||
| 1031 | + | core.LazyRegister(&xTypeCheckValue, "GOBJECT", "g_type_check_value", false) | |||
| 1032 | + | ||||
| 990 | cret := xTypeCheckValue(ValueVar) | 1033 | cret := xTypeCheckValue(ValueVar) | ||
| 991 | return cret | 1034 | return cret | ||
| 992 | } | 1035 | } | ||
| @@ -994,6 +1037,8 @@ func TypeCheckValue(ValueVar *Value) bool { | |||||
| 994 | var xTypeCheckValueHolds func(*Value, types.GType) bool | 1037 | var xTypeCheckValueHolds func(*Value, types.GType) bool | ||
| 995 | 1038 | ||||
| 996 | func TypeCheckValueHolds(ValueVar *Value, TypeVar types.GType) bool { | 1039 | func TypeCheckValueHolds(ValueVar *Value, TypeVar types.GType) bool { | ||
| 1040 | + | core.LazyRegister(&xTypeCheckValueHolds, "GOBJECT", "g_type_check_value_holds", false) | |||
| 1041 | + | ||||
| 997 | cret := xTypeCheckValueHolds(ValueVar, TypeVar) | 1042 | cret := xTypeCheckValueHolds(ValueVar, TypeVar) | ||
| 998 | return cret | 1043 | return cret | ||
| 999 | } | 1044 | } | ||
| @@ -1003,6 +1048,8 @@ var xTypeChildren func(types.GType, *uint) uintptr | |||||
| 1003 | // Return a newly allocated and 0-terminated array of type IDs, listing | 1048 | // Return a newly allocated and 0-terminated array of type IDs, listing | ||
| 1004 | // the child types of @type. | 1049 | // the child types of @type. | ||
| 1005 | func TypeChildren(TypeVar types.GType, NChildrenVar *uint) uintptr { | 1050 | func TypeChildren(TypeVar types.GType, NChildrenVar *uint) uintptr { | ||
| 1051 | + | core.LazyRegister(&xTypeChildren, "GOBJECT", "g_type_children", false) | |||
| 1052 | + | ||||
| 1006 | cret := xTypeChildren(TypeVar, NChildrenVar) | 1053 | cret := xTypeChildren(TypeVar, NChildrenVar) | ||
| 1007 | return cret | 1054 | return cret | ||
| 1008 | } | 1055 | } | ||
| @@ -1010,6 +1057,8 @@ func TypeChildren(TypeVar types.GType, NChildrenVar *uint) uintptr { | |||||
| 1010 | var xTypeClassAdjustPrivateOffset func(uintptr, int) | 1057 | var xTypeClassAdjustPrivateOffset func(uintptr, int) | ||
| 1011 | 1058 | ||||
| 1012 | func TypeClassAdjustPrivateOffset(GClassVar uintptr, PrivateSizeOrOffsetVar int) { | 1059 | func TypeClassAdjustPrivateOffset(GClassVar uintptr, PrivateSizeOrOffsetVar int) { | ||
| 1060 | + | core.LazyRegister(&xTypeClassAdjustPrivateOffset, "GOBJECT", "g_type_class_adjust_private_offset", false) | |||
| 1061 | + | ||||
| 1013 | xTypeClassAdjustPrivateOffset(GClassVar, PrivateSizeOrOffsetVar) | 1062 | xTypeClassAdjustPrivateOffset(GClassVar, PrivateSizeOrOffsetVar) | ||
| 1014 | } | 1063 | } | ||
| 1015 | 1064 | ||||
| @@ -1022,6 +1071,8 @@ var xTypeClassGet func(types.GType) uintptr | |||||
| 1022 | // | 1071 | // | ||
| 1023 | // If you don't want to create the class, use g_type_class_peek() instead. | 1072 | // If you don't want to create the class, use g_type_class_peek() instead. | ||
| 1024 | func TypeClassGet(TypeVar types.GType) *TypeClass { | 1073 | func TypeClassGet(TypeVar types.GType) *TypeClass { | ||
| 1074 | + | core.LazyRegister(&xTypeClassGet, "GOBJECT", "g_type_class_get", false) | |||
| 1075 | + | ||||
| 1025 | cret := xTypeClassGet(TypeVar) | 1076 | cret := xTypeClassGet(TypeVar) | ||
| 1026 | if cret == 0 { | 1077 | if cret == 0 { | ||
| 1027 | return nil | 1078 | return nil | ||
| @@ -1040,6 +1091,8 @@ var xTypeClassPeek func(types.GType) uintptr | |||||
| 1040 | // of the type passed in does not currently exist (hasn't been | 1091 | // of the type passed in does not currently exist (hasn't been | ||
| 1041 | // referenced before). | 1092 | // referenced before). | ||
| 1042 | func TypeClassPeek(TypeVar types.GType) *TypeClass { | 1093 | func TypeClassPeek(TypeVar types.GType) *TypeClass { | ||
| 1094 | + | core.LazyRegister(&xTypeClassPeek, "GOBJECT", "g_type_class_peek", false) | |||
| 1095 | + | ||||
| 1043 | cret := xTypeClassPeek(TypeVar) | 1096 | cret := xTypeClassPeek(TypeVar) | ||
| 1044 | if cret == 0 { | 1097 | if cret == 0 { | ||
| 1045 | return nil | 1098 | return nil | ||
| @@ -1052,6 +1105,8 @@ var xTypeClassPeekStatic func(types.GType) uintptr | |||||
| 1052 | // A more efficient version of g_type_class_peek() which works only for | 1105 | // A more efficient version of g_type_class_peek() which works only for | ||
| 1053 | // static types. | 1106 | // static types. | ||
| 1054 | func TypeClassPeekStatic(TypeVar types.GType) *TypeClass { | 1107 | func TypeClassPeekStatic(TypeVar types.GType) *TypeClass { | ||
| 1108 | + | core.LazyRegister(&xTypeClassPeekStatic, "GOBJECT", "g_type_class_peek_static", false) | |||
| 1109 | + | ||||
| 1055 | cret := xTypeClassPeekStatic(TypeVar) | 1110 | cret := xTypeClassPeekStatic(TypeVar) | ||
| 1056 | if cret == 0 { | 1111 | if cret == 0 { | ||
| 1057 | return nil | 1112 | return nil | ||
| @@ -1066,6 +1121,8 @@ var xTypeClassRef func(types.GType) uintptr | |||||
| 1066 | // | 1121 | // | ||
| 1067 | // This function will demand-create the class if it doesn't exist already. | 1122 | // This function will demand-create the class if it doesn't exist already. | ||
| 1068 | func TypeClassRef(TypeVar types.GType) *TypeClass { | 1123 | func TypeClassRef(TypeVar types.GType) *TypeClass { | ||
| 1124 | + | core.LazyRegister(&xTypeClassRef, "GOBJECT", "g_type_class_ref", false) | |||
| 1125 | + | ||||
| 1069 | cret := xTypeClassRef(TypeVar) | 1126 | cret := xTypeClassRef(TypeVar) | ||
| 1070 | if cret == 0 { | 1127 | if cret == 0 { | ||
| 1071 | return nil | 1128 | return nil | ||
| @@ -1092,6 +1149,8 @@ var xTypeCreateInstance func(types.GType) uintptr | |||||
| 1092 | // fundamental type. Also language bindings should not use this | 1149 | // fundamental type. Also language bindings should not use this | ||
| 1093 | // function, but g_object_new() instead. | 1150 | // function, but g_object_new() instead. | ||
| 1094 | func TypeCreateInstance(TypeVar types.GType) *TypeInstance { | 1151 | func TypeCreateInstance(TypeVar types.GType) *TypeInstance { | ||
| 1152 | + | core.LazyRegister(&xTypeCreateInstance, "GOBJECT", "g_type_create_instance", false) | |||
| 1153 | + | ||||
| 1095 | cret := xTypeCreateInstance(TypeVar) | 1154 | cret := xTypeCreateInstance(TypeVar) | ||
| 1096 | if cret == 0 { | 1155 | if cret == 0 { | ||
| 1097 | return nil | 1156 | return nil | ||
| @@ -1115,6 +1174,8 @@ var xTypeDefaultInterfaceGet func(types.GType) uintptr | |||||
| 1115 | // want to make sure that signals and properties for an interface | 1174 | // want to make sure that signals and properties for an interface | ||
| 1116 | // have been installed. | 1175 | // have been installed. | ||
| 1117 | func TypeDefaultInterfaceGet(GTypeVar types.GType) *TypeInterface { | 1176 | func TypeDefaultInterfaceGet(GTypeVar types.GType) *TypeInterface { | ||
| 1177 | + | core.LazyRegister(&xTypeDefaultInterfaceGet, "GOBJECT", "g_type_default_interface_get", false) | |||
| 1178 | + | ||||
| 1118 | cret := xTypeDefaultInterfaceGet(GTypeVar) | 1179 | cret := xTypeDefaultInterfaceGet(GTypeVar) | ||
| 1119 | if cret == 0 { | 1180 | if cret == 0 { | ||
| 1120 | return nil | 1181 | return nil | ||
| @@ -1127,6 +1188,8 @@ var xTypeDefaultInterfacePeek func(types.GType) uintptr | |||||
| 1127 | // If the interface type @g_type is currently in use, returns its | 1188 | // If the interface type @g_type is currently in use, returns its | ||
| 1128 | // default interface vtable. | 1189 | // default interface vtable. | ||
| 1129 | func TypeDefaultInterfacePeek(GTypeVar types.GType) *TypeInterface { | 1190 | func TypeDefaultInterfacePeek(GTypeVar types.GType) *TypeInterface { | ||
| 1191 | + | core.LazyRegister(&xTypeDefaultInterfacePeek, "GOBJECT", "g_type_default_interface_peek", false) | |||
| 1192 | + | ||||
| 1130 | cret := xTypeDefaultInterfacePeek(GTypeVar) | 1193 | cret := xTypeDefaultInterfacePeek(GTypeVar) | ||
| 1131 | if cret == 0 { | 1194 | if cret == 0 { | ||
| 1132 | return nil | 1195 | return nil | ||
| @@ -1147,6 +1210,8 @@ var xTypeDefaultInterfaceRef func(types.GType) uintptr | |||||
| 1147 | // want to make sure that signals and properties for an interface | 1210 | // want to make sure that signals and properties for an interface | ||
| 1148 | // have been installed. | 1211 | // have been installed. | ||
| 1149 | func TypeDefaultInterfaceRef(GTypeVar types.GType) *TypeInterface { | 1212 | func TypeDefaultInterfaceRef(GTypeVar types.GType) *TypeInterface { | ||
| 1213 | + | core.LazyRegister(&xTypeDefaultInterfaceRef, "GOBJECT", "g_type_default_interface_ref", false) | |||
| 1214 | + | ||||
| 1150 | cret := xTypeDefaultInterfaceRef(GTypeVar) | 1215 | cret := xTypeDefaultInterfaceRef(GTypeVar) | ||
| 1151 | if cret == 0 { | 1216 | if cret == 0 { | ||
| 1152 | return nil | 1217 | return nil | ||
| @@ -1163,6 +1228,8 @@ var xTypeDefaultInterfaceUnref func(*TypeInterface) | |||||
| 1163 | // references have been released, the finalize function for the interface's | 1228 | // references have been released, the finalize function for the interface's | ||
| 1164 | // default vtable (the @class_finalize member of #GTypeInfo) will be called. | 1229 | // default vtable (the @class_finalize member of #GTypeInfo) will be called. | ||
| 1165 | func TypeDefaultInterfaceUnref(GIfaceVar *TypeInterface) { | 1230 | func TypeDefaultInterfaceUnref(GIfaceVar *TypeInterface) { | ||
| 1231 | + | core.LazyRegister(&xTypeDefaultInterfaceUnref, "GOBJECT", "g_type_default_interface_unref", false) | |||
| 1232 | + | ||||
| 1166 | xTypeDefaultInterfaceUnref(GIfaceVar) | 1233 | xTypeDefaultInterfaceUnref(GIfaceVar) | ||
| 1167 | } | 1234 | } | ||
| 1168 | 1235 | ||||
| @@ -1171,6 +1238,8 @@ var xTypeDepth func(types.GType) uint | |||||
| 1171 | // Returns the length of the ancestry of the passed in type. This | 1238 | // Returns the length of the ancestry of the passed in type. This | ||
| 1172 | // includes the type itself, so that e.g. a fundamental type has depth 1. | 1239 | // includes the type itself, so that e.g. a fundamental type has depth 1. | ||
| 1173 | func TypeDepth(TypeVar types.GType) uint { | 1240 | func TypeDepth(TypeVar types.GType) uint { | ||
| 1241 | + | core.LazyRegister(&xTypeDepth, "GOBJECT", "g_type_depth", false) | |||
| 1242 | + | ||||
| 1174 | cret := xTypeDepth(TypeVar) | 1243 | cret := xTypeDepth(TypeVar) | ||
| 1175 | return cret | 1244 | return cret | ||
| 1176 | } | 1245 | } | ||
| @@ -1190,6 +1259,8 @@ var xTypeEnsure func(types.GType) | |||||
| 1190 | // out by the compiler. Using g_type_ensure() guarantees that the | 1259 | // out by the compiler. Using g_type_ensure() guarantees that the | ||
| 1191 | // type's _get_type() method is called. | 1260 | // type's _get_type() method is called. | ||
| 1192 | func TypeEnsure(TypeVar types.GType) { | 1261 | func TypeEnsure(TypeVar types.GType) { | ||
| 1262 | + | core.LazyRegister(&xTypeEnsure, "GOBJECT", "g_type_ensure", false) | |||
| 1263 | + | ||||
| 1193 | xTypeEnsure(TypeVar) | 1264 | xTypeEnsure(TypeVar) | ||
| 1194 | } | 1265 | } | ||
| 1195 | 1266 | ||||
| @@ -1201,6 +1272,8 @@ var xTypeFreeInstance func(*TypeInstance) | |||||
| 1201 | // Like g_type_create_instance(), this function is reserved for | 1272 | // Like g_type_create_instance(), this function is reserved for | ||
| 1202 | // implementors of fundamental types. | 1273 | // implementors of fundamental types. | ||
| 1203 | func TypeFreeInstance(InstanceVar *TypeInstance) { | 1274 | func TypeFreeInstance(InstanceVar *TypeInstance) { | ||
| 1275 | + | core.LazyRegister(&xTypeFreeInstance, "GOBJECT", "g_type_free_instance", false) | |||
| 1276 | + | ||||
| 1204 | xTypeFreeInstance(InstanceVar) | 1277 | xTypeFreeInstance(InstanceVar) | ||
| 1205 | } | 1278 | } | ||
| 1206 | 1279 | ||||
| @@ -1211,6 +1284,8 @@ var xTypeFromName func(string) types.GType | |||||
| 1211 | // to find out by name whether a specific type has been registered | 1284 | // to find out by name whether a specific type has been registered | ||
| 1212 | // yet). | 1285 | // yet). | ||
| 1213 | func TypeFromName(NameVar string) types.GType { | 1286 | func TypeFromName(NameVar string) types.GType { | ||
| 1287 | + | core.LazyRegister(&xTypeFromName, "GOBJECT", "g_type_from_name", false) | |||
| 1288 | + | ||||
| 1214 | cret := xTypeFromName(NameVar) | 1289 | cret := xTypeFromName(NameVar) | ||
| 1215 | return cret | 1290 | return cret | ||
| 1216 | } | 1291 | } | ||
| @@ -1220,6 +1295,8 @@ var xTypeFundamental func(types.GType) types.GType | |||||
| 1220 | // Internal function, used to extract the fundamental type ID portion. | 1295 | // Internal function, used to extract the fundamental type ID portion. | ||
| 1221 | // Use G_TYPE_FUNDAMENTAL() instead. | 1296 | // Use G_TYPE_FUNDAMENTAL() instead. | ||
| 1222 | func TypeFundamental(TypeIdVar types.GType) types.GType { | 1297 | func TypeFundamental(TypeIdVar types.GType) types.GType { | ||
| 1298 | + | core.LazyRegister(&xTypeFundamental, "GOBJECT", "g_type_fundamental", false) | |||
| 1299 | + | ||||
| 1223 | cret := xTypeFundamental(TypeIdVar) | 1300 | cret := xTypeFundamental(TypeIdVar) | ||
| 1224 | return cret | 1301 | return cret | ||
| 1225 | } | 1302 | } | ||
| @@ -1231,6 +1308,8 @@ var xTypeFundamentalNext func() types.GType | |||||
| 1231 | // The returned type ID represents the highest currently registered | 1308 | // The returned type ID represents the highest currently registered | ||
| 1232 | // fundamental type identifier. | 1309 | // fundamental type identifier. | ||
| 1233 | func TypeFundamentalNext() types.GType { | 1310 | func TypeFundamentalNext() types.GType { | ||
| 1311 | + | core.LazyRegister(&xTypeFundamentalNext, "GOBJECT", "g_type_fundamental_next", false) | |||
| 1312 | + | ||||
| 1234 | cret := xTypeFundamentalNext() | 1313 | cret := xTypeFundamentalNext() | ||
| 1235 | return cret | 1314 | return cret | ||
| 1236 | } | 1315 | } | ||
| @@ -1242,6 +1321,8 @@ var xTypeGetInstanceCount func(types.GType) int | |||||
| 1242 | // the `instance-count` debug flag is set (by setting the `GOBJECT_DEBUG` | 1321 | // the `instance-count` debug flag is set (by setting the `GOBJECT_DEBUG` | ||
| 1243 | // variable to include `instance-count`). | 1322 | // variable to include `instance-count`). | ||
| 1244 | func TypeGetInstanceCount(TypeVar types.GType) int { | 1323 | func TypeGetInstanceCount(TypeVar types.GType) int { | ||
| 1324 | + | core.LazyRegister(&xTypeGetInstanceCount, "GOBJECT", "g_type_get_instance_count", false) | |||
| 1325 | + | ||||
| 1245 | cret := xTypeGetInstanceCount(TypeVar) | 1326 | cret := xTypeGetInstanceCount(TypeVar) | ||
| 1246 | return cret | 1327 | return cret | ||
| 1247 | } | 1328 | } | ||
| @@ -1250,6 +1331,7 @@ var xTypeGetPlugin func(types.GType) uintptr | |||||
| 1250 | 1331 | ||||
| 1251 | // Returns the #GTypePlugin structure for @type. | 1332 | // Returns the #GTypePlugin structure for @type. | ||
| 1252 | func TypeGetPlugin(TypeVar types.GType) *TypePluginBase { | 1333 | func TypeGetPlugin(TypeVar types.GType) *TypePluginBase { | ||
| 1334 | + | core.LazyRegister(&xTypeGetPlugin, "GOBJECT", "g_type_get_plugin", false) | |||
| 1253 | var cls *TypePluginBase | 1335 | var cls *TypePluginBase | ||
| 1254 | 1336 | ||||
| 1255 | cret := xTypeGetPlugin(TypeVar) | 1337 | cret := xTypeGetPlugin(TypeVar) | ||
| @@ -1272,6 +1354,8 @@ var xTypeGetQdata func(types.GType, glib.Quark) uintptr | |||||
| 1272 | // attached to one type with g_type_set_qdata() cannot | 1354 | // attached to one type with g_type_set_qdata() cannot | ||
| 1273 | // be retrieved from a subtype using g_type_get_qdata(). | 1355 | // be retrieved from a subtype using g_type_get_qdata(). | ||
| 1274 | func TypeGetQdata(TypeVar types.GType, QuarkVar glib.Quark) uintptr { | 1356 | func TypeGetQdata(TypeVar types.GType, QuarkVar glib.Quark) uintptr { | ||
| 1357 | + | core.LazyRegister(&xTypeGetQdata, "GOBJECT", "g_type_get_qdata", false) | |||
| 1358 | + | ||||
| 1275 | cret := xTypeGetQdata(TypeVar, QuarkVar) | 1359 | cret := xTypeGetQdata(TypeVar, QuarkVar) | ||
| 1276 | return cret | 1360 | return cret | ||
| 1277 | } | 1361 | } | ||
| @@ -1284,6 +1368,8 @@ var xTypeGetTypeRegistrationSerial func() uint | |||||
| 1284 | // g_type_from_name()) and know if the cache is still valid at a later | 1368 | // g_type_from_name()) and know if the cache is still valid at a later | ||
| 1285 | // time by comparing the current serial with the one at the type lookup. | 1369 | // time by comparing the current serial with the one at the type lookup. | ||
| 1286 | func TypeGetTypeRegistrationSerial() uint { | 1370 | func TypeGetTypeRegistrationSerial() uint { | ||
| 1371 | + | core.LazyRegister(&xTypeGetTypeRegistrationSerial, "GOBJECT", "g_type_get_type_registration_serial", false) | |||
| 1372 | + | ||||
| 1287 | cret := xTypeGetTypeRegistrationSerial() | 1373 | cret := xTypeGetTypeRegistrationSerial() | ||
| 1288 | return cret | 1374 | return cret | ||
| 1289 | } | 1375 | } | ||
| @@ -1294,6 +1380,8 @@ var xTypeInit func() | |||||
| 1294 | // the type system is initialised automatically and this function does | 1380 | // the type system is initialised automatically and this function does | ||
| 1295 | // nothing. | 1381 | // nothing. | ||
| 1296 | func TypeInit() { | 1382 | func TypeInit() { | ||
| 1383 | + | core.LazyRegister(&xTypeInit, "GOBJECT", "g_type_init", false) | |||
| 1384 | + | ||||
| 1297 | xTypeInit() | 1385 | xTypeInit() | ||
| 1298 | } | 1386 | } | ||
| 1299 | 1387 | ||||
| @@ -1306,6 +1394,8 @@ var xTypeInitWithDebugFlags func(TypeDebugFlags) | |||||
| 1306 | // If you need to enable debugging features, use the `GOBJECT_DEBUG` | 1394 | // If you need to enable debugging features, use the `GOBJECT_DEBUG` | ||
| 1307 | // environment variable. | 1395 | // environment variable. | ||
| 1308 | func TypeInitWithDebugFlags(DebugFlagsVar TypeDebugFlags) { | 1396 | func TypeInitWithDebugFlags(DebugFlagsVar TypeDebugFlags) { | ||
| 1397 | + | core.LazyRegister(&xTypeInitWithDebugFlags, "GOBJECT", "g_type_init_with_debug_flags", false) | |||
| 1398 | + | ||||
| 1309 | xTypeInitWithDebugFlags(DebugFlagsVar) | 1399 | xTypeInitWithDebugFlags(DebugFlagsVar) | ||
| 1310 | } | 1400 | } | ||
| 1311 | 1401 | ||||
| @@ -1317,6 +1407,8 @@ var xTypeInterfaceAddPrerequisite func(types.GType, types.GType) | |||||
| 1317 | // interface derivation (which GType doesn't support). An interface can have | 1407 | // interface derivation (which GType doesn't support). An interface can have | ||
| 1318 | // at most one instantiatable prerequisite type. | 1408 | // at most one instantiatable prerequisite type. | ||
| 1319 | func TypeInterfaceAddPrerequisite(InterfaceTypeVar types.GType, PrerequisiteTypeVar types.GType) { | 1409 | func TypeInterfaceAddPrerequisite(InterfaceTypeVar types.GType, PrerequisiteTypeVar types.GType) { | ||
| 1410 | + | core.LazyRegister(&xTypeInterfaceAddPrerequisite, "GOBJECT", "g_type_interface_add_prerequisite", false) | |||
| 1411 | + | ||||
| 1320 | xTypeInterfaceAddPrerequisite(InterfaceTypeVar, PrerequisiteTypeVar) | 1412 | xTypeInterfaceAddPrerequisite(InterfaceTypeVar, PrerequisiteTypeVar) | ||
| 1321 | } | 1413 | } | ||
| 1322 | 1414 | ||||
| @@ -1327,6 +1419,7 @@ var xTypeInterfaceGetPlugin func(types.GType, types.GType) uintptr | |||||
| 1327 | // if @interface_type has not been added to @instance_type or does | 1419 | // if @interface_type has not been added to @instance_type or does | ||
| 1328 | // not have a #GTypePlugin structure. See g_type_add_interface_dynamic(). | 1420 | // not have a #GTypePlugin structure. See g_type_add_interface_dynamic(). | ||
| 1329 | func TypeInterfaceGetPlugin(InstanceTypeVar types.GType, InterfaceTypeVar types.GType) *TypePluginBase { | 1421 | func TypeInterfaceGetPlugin(InstanceTypeVar types.GType, InterfaceTypeVar types.GType) *TypePluginBase { | ||
| 1422 | + | core.LazyRegister(&xTypeInterfaceGetPlugin, "GOBJECT", "g_type_interface_get_plugin", false) | |||
| 1330 | var cls *TypePluginBase | 1423 | var cls *TypePluginBase | ||
| 1331 | 1424 | ||||
| 1332 | cret := xTypeInterfaceGetPlugin(InstanceTypeVar, InterfaceTypeVar) | 1425 | cret := xTypeInterfaceGetPlugin(InstanceTypeVar, InterfaceTypeVar) | ||
| @@ -1349,6 +1442,8 @@ var xTypeInterfaceInstantiatablePrerequisite func(types.GType) types.GType | |||||
| 1349 | // See g_type_interface_add_prerequisite() for more information | 1442 | // See g_type_interface_add_prerequisite() for more information | ||
| 1350 | // about prerequisites. | 1443 | // about prerequisites. | ||
| 1351 | func TypeInterfaceInstantiatablePrerequisite(InterfaceTypeVar types.GType) types.GType { | 1444 | func TypeInterfaceInstantiatablePrerequisite(InterfaceTypeVar types.GType) types.GType { | ||
| 1445 | + | core.LazyRegister(&xTypeInterfaceInstantiatablePrerequisite, "GOBJECT", "g_type_interface_instantiatable_prerequisite", false) | |||
| 1446 | + | ||||
| 1352 | cret := xTypeInterfaceInstantiatablePrerequisite(InterfaceTypeVar) | 1447 | cret := xTypeInterfaceInstantiatablePrerequisite(InterfaceTypeVar) | ||
| 1353 | return cret | 1448 | return cret | ||
| 1354 | } | 1449 | } | ||
| @@ -1358,6 +1453,8 @@ var xTypeInterfacePeek func(*TypeClass, types.GType) uintptr | |||||
| 1358 | // Returns the #GTypeInterface structure of an interface to which the | 1453 | // Returns the #GTypeInterface structure of an interface to which the | ||
| 1359 | // passed in class conforms. | 1454 | // passed in class conforms. | ||
| 1360 | func TypeInterfacePeek(InstanceClassVar *TypeClass, IfaceTypeVar types.GType) *TypeInterface { | 1455 | func TypeInterfacePeek(InstanceClassVar *TypeClass, IfaceTypeVar types.GType) *TypeInterface { | ||
| 1456 | + | core.LazyRegister(&xTypeInterfacePeek, "GOBJECT", "g_type_interface_peek", false) | |||
| 1457 | + | ||||
| 1361 | cret := xTypeInterfacePeek(InstanceClassVar, IfaceTypeVar) | 1458 | cret := xTypeInterfacePeek(InstanceClassVar, IfaceTypeVar) | ||
| 1362 | if cret == 0 { | 1459 | if cret == 0 { | ||
| 1363 | return nil | 1460 | return nil | ||
| @@ -1369,6 +1466,8 @@ var xTypeInterfacePrerequisites func(types.GType, *uint) uintptr | |||||
| 1369 | 1466 | ||||
| 1370 | // Returns the prerequisites of an interfaces type. | 1467 | // Returns the prerequisites of an interfaces type. | ||
| 1371 | func TypeInterfacePrerequisites(InterfaceTypeVar types.GType, NPrerequisitesVar *uint) uintptr { | 1468 | func TypeInterfacePrerequisites(InterfaceTypeVar types.GType, NPrerequisitesVar *uint) uintptr { | ||
| 1469 | + | core.LazyRegister(&xTypeInterfacePrerequisites, "GOBJECT", "g_type_interface_prerequisites", false) | |||
| 1470 | + | ||||
| 1372 | cret := xTypeInterfacePrerequisites(InterfaceTypeVar, NPrerequisitesVar) | 1471 | cret := xTypeInterfacePrerequisites(InterfaceTypeVar, NPrerequisitesVar) | ||
| 1373 | return cret | 1472 | return cret | ||
| 1374 | } | 1473 | } | ||
| @@ -1378,6 +1477,8 @@ var xTypeInterfaces func(types.GType, *uint) uintptr | |||||
| 1378 | // Return a newly allocated and 0-terminated array of type IDs, listing | 1477 | // Return a newly allocated and 0-terminated array of type IDs, listing | ||
| 1379 | // the interface types that @type conforms to. | 1478 | // the interface types that @type conforms to. | ||
| 1380 | func TypeInterfaces(TypeVar types.GType, NInterfacesVar *uint) uintptr { | 1479 | func TypeInterfaces(TypeVar types.GType, NInterfacesVar *uint) uintptr { | ||
| 1480 | + | core.LazyRegister(&xTypeInterfaces, "GOBJECT", "g_type_interfaces", false) | |||
| 1481 | + | ||||
| 1381 | cret := xTypeInterfaces(TypeVar, NInterfacesVar) | 1482 | cret := xTypeInterfaces(TypeVar, NInterfacesVar) | ||
| 1382 | return cret | 1483 | return cret | ||
| 1383 | } | 1484 | } | ||
| @@ -1388,6 +1489,8 @@ var xTypeIsA func(types.GType, types.GType) bool | |||||
| 1388 | // descendant of @is_a_type. If @is_a_type is an interface, check | 1489 | // descendant of @is_a_type. If @is_a_type is an interface, check | ||
| 1389 | // whether @type conforms to it. | 1490 | // whether @type conforms to it. | ||
| 1390 | func TypeIsA(TypeVar types.GType, IsATypeVar types.GType) bool { | 1491 | func TypeIsA(TypeVar types.GType, IsATypeVar types.GType) bool { | ||
| 1492 | + | core.LazyRegister(&xTypeIsA, "GOBJECT", "g_type_is_a", false) | |||
| 1493 | + | ||||
| 1391 | cret := xTypeIsA(TypeVar, IsATypeVar) | 1494 | cret := xTypeIsA(TypeVar, IsATypeVar) | ||
| 1392 | return cret | 1495 | return cret | ||
| 1393 | } | 1496 | } | ||
| @@ -1401,6 +1504,8 @@ var xTypeName func(types.GType) string | |||||
| 1401 | // may be any other validly registered type ID, but randomized type IDs | 1504 | // may be any other validly registered type ID, but randomized type IDs | ||
| 1402 | // should not be passed in and will most likely lead to a crash. | 1505 | // should not be passed in and will most likely lead to a crash. | ||
| 1403 | func TypeName(TypeVar types.GType) string { | 1506 | func TypeName(TypeVar types.GType) string { | ||
| 1507 | + | core.LazyRegister(&xTypeName, "GOBJECT", "g_type_name", false) | |||
| 1508 | + | ||||
| 1404 | cret := xTypeName(TypeVar) | 1509 | cret := xTypeName(TypeVar) | ||
| 1405 | return cret | 1510 | return cret | ||
| 1406 | } | 1511 | } | ||
| @@ -1408,6 +1513,8 @@ func TypeName(TypeVar types.GType) string { | |||||
| 1408 | var xTypeNameFromClass func(*TypeClass) string | 1513 | var xTypeNameFromClass func(*TypeClass) string | ||
| 1409 | 1514 | ||||
| 1410 | func TypeNameFromClass(GClassVar *TypeClass) string { | 1515 | func TypeNameFromClass(GClassVar *TypeClass) string { | ||
| 1516 | + | core.LazyRegister(&xTypeNameFromClass, "GOBJECT", "g_type_name_from_class", false) | |||
| 1517 | + | ||||
| 1411 | cret := xTypeNameFromClass(GClassVar) | 1518 | cret := xTypeNameFromClass(GClassVar) | ||
| 1412 | return cret | 1519 | return cret | ||
| 1413 | } | 1520 | } | ||
| @@ -1415,6 +1522,8 @@ func TypeNameFromClass(GClassVar *TypeClass) string { | |||||
| 1415 | var xTypeNameFromInstance func(*TypeInstance) string | 1522 | var xTypeNameFromInstance func(*TypeInstance) string | ||
| 1416 | 1523 | ||||
| 1417 | func TypeNameFromInstance(InstanceVar *TypeInstance) string { | 1524 | func TypeNameFromInstance(InstanceVar *TypeInstance) string { | ||
| 1525 | + | core.LazyRegister(&xTypeNameFromInstance, "GOBJECT", "g_type_name_from_instance", false) | |||
| 1526 | + | ||||
| 1418 | cret := xTypeNameFromInstance(InstanceVar) | 1527 | cret := xTypeNameFromInstance(InstanceVar) | ||
| 1419 | return cret | 1528 | return cret | ||
| 1420 | } | 1529 | } | ||
| @@ -1429,6 +1538,8 @@ var xTypeNextBase func(types.GType, types.GType) types.GType | |||||
| 1429 | // be used to determine the types and order in which the leaf type is | 1538 | // be used to determine the types and order in which the leaf type is | ||
| 1430 | // descended from the root type. | 1539 | // descended from the root type. | ||
| 1431 | func TypeNextBase(LeafTypeVar types.GType, RootTypeVar types.GType) types.GType { | 1540 | func TypeNextBase(LeafTypeVar types.GType, RootTypeVar types.GType) types.GType { | ||
| 1541 | + | core.LazyRegister(&xTypeNextBase, "GOBJECT", "g_type_next_base", false) | |||
| 1542 | + | ||||
| 1432 | cret := xTypeNextBase(LeafTypeVar, RootTypeVar) | 1543 | cret := xTypeNextBase(LeafTypeVar, RootTypeVar) | ||
| 1433 | return cret | 1544 | return cret | ||
| 1434 | } | 1545 | } | ||
| @@ -1438,6 +1549,8 @@ var xTypeParent func(types.GType) types.GType | |||||
| 1438 | // Return the direct parent type of the passed in type. If the passed | 1549 | // Return the direct parent type of the passed in type. If the passed | ||
| 1439 | // in type has no parent, i.e. is a fundamental type, 0 is returned. | 1550 | // in type has no parent, i.e. is a fundamental type, 0 is returned. | ||
| 1440 | func TypeParent(TypeVar types.GType) types.GType { | 1551 | func TypeParent(TypeVar types.GType) types.GType { | ||
| 1552 | + | core.LazyRegister(&xTypeParent, "GOBJECT", "g_type_parent", false) | |||
| 1553 | + | ||||
| 1441 | cret := xTypeParent(TypeVar) | 1554 | cret := xTypeParent(TypeVar) | ||
| 1442 | return cret | 1555 | return cret | ||
| 1443 | } | 1556 | } | ||
| @@ -1446,6 +1559,8 @@ var xTypeQname func(types.GType) glib.Quark | |||||
| 1446 | 1559 | ||||
| 1447 | // Get the corresponding quark of the type IDs name. | 1560 | // Get the corresponding quark of the type IDs name. | ||
| 1448 | func TypeQname(TypeVar types.GType) glib.Quark { | 1561 | func TypeQname(TypeVar types.GType) glib.Quark { | ||
| 1562 | + | core.LazyRegister(&xTypeQname, "GOBJECT", "g_type_qname", false) | |||
| 1563 | + | ||||
| 1449 | cret := xTypeQname(TypeVar) | 1564 | cret := xTypeQname(TypeVar) | ||
| 1450 | return cret | 1565 | return cret | ||
| 1451 | } | 1566 | } | ||
| @@ -1463,6 +1578,8 @@ var xNewTypeQuery func(types.GType, *TypeQuery) | |||||
| 1463 | // Since GLib 2.78, this function allows queries on dynamic types. Previously | 1578 | // Since GLib 2.78, this function allows queries on dynamic types. Previously | ||
| 1464 | // it only supported static types. | 1579 | // it only supported static types. | ||
| 1465 | func NewTypeQuery(TypeVar types.GType, QueryVar *TypeQuery) { | 1580 | func NewTypeQuery(TypeVar types.GType, QueryVar *TypeQuery) { | ||
| 1581 | + | core.LazyRegister(&xNewTypeQuery, "GOBJECT", "g_type_query", false) | |||
| 1582 | + | ||||
| 1466 | xNewTypeQuery(TypeVar, QueryVar) | 1583 | xNewTypeQuery(TypeVar, QueryVar) | ||
| 1467 | } | 1584 | } | ||
| 1468 | 1585 | ||||
| @@ -1474,6 +1591,8 @@ var xTypeRegisterDynamic func(types.GType, string, uintptr, TypeFlags) types.GTy | |||||
| 1474 | // instances (if not abstract). The value of @flags determines the nature | 1591 | // instances (if not abstract). The value of @flags determines the nature | ||
| 1475 | // (e.g. abstract or not) of the type. | 1592 | // (e.g. abstract or not) of the type. | ||
| 1476 | func TypeRegisterDynamic(ParentTypeVar types.GType, TypeNameVar string, PluginVar TypePlugin, FlagsVar TypeFlags) types.GType { | 1593 | func TypeRegisterDynamic(ParentTypeVar types.GType, TypeNameVar string, PluginVar TypePlugin, FlagsVar TypeFlags) types.GType { | ||
| 1594 | + | core.LazyRegister(&xTypeRegisterDynamic, "GOBJECT", "g_type_register_dynamic", false) | |||
| 1595 | + | ||||
| 1477 | cret := xTypeRegisterDynamic(ParentTypeVar, TypeNameVar, PluginVar.GoPointer(), FlagsVar) | 1596 | cret := xTypeRegisterDynamic(ParentTypeVar, TypeNameVar, PluginVar.GoPointer(), FlagsVar) | ||
| 1478 | return cret | 1597 | return cret | ||
| 1479 | } | 1598 | } | ||
| @@ -1488,6 +1607,8 @@ var xTypeRegisterFundamental func(types.GType, string, *TypeInfo, *TypeFundament | |||||
| 1488 | // @finfo to manage the type and its instances. The value of @flags determines | 1607 | // @finfo to manage the type and its instances. The value of @flags determines | ||
| 1489 | // additional characteristics of the fundamental type. | 1608 | // additional characteristics of the fundamental type. | ||
| 1490 | func TypeRegisterFundamental(TypeIdVar types.GType, TypeNameVar string, InfoVar *TypeInfo, FinfoVar *TypeFundamentalInfo, FlagsVar TypeFlags) types.GType { | 1609 | func TypeRegisterFundamental(TypeIdVar types.GType, TypeNameVar string, InfoVar *TypeInfo, FinfoVar *TypeFundamentalInfo, FlagsVar TypeFlags) types.GType { | ||
| 1610 | + | core.LazyRegister(&xTypeRegisterFundamental, "GOBJECT", "g_type_register_fundamental", false) | |||
| 1611 | + | ||||
| 1491 | cret := xTypeRegisterFundamental(TypeIdVar, TypeNameVar, InfoVar, FinfoVar, FlagsVar) | 1612 | cret := xTypeRegisterFundamental(TypeIdVar, TypeNameVar, InfoVar, FinfoVar, FlagsVar) | ||
| 1492 | return cret | 1613 | return cret | ||
| 1493 | } | 1614 | } | ||
| @@ -1500,6 +1621,8 @@ var xTypeRegisterStatic func(types.GType, string, *TypeInfo, TypeFlags) types.GT | |||||
| 1500 | // instances (if not abstract). The value of @flags determines the nature | 1621 | // instances (if not abstract). The value of @flags determines the nature | ||
| 1501 | // (e.g. abstract or not) of the type. | 1622 | // (e.g. abstract or not) of the type. | ||
| 1502 | func TypeRegisterStatic(ParentTypeVar types.GType, TypeNameVar string, InfoVar *TypeInfo, FlagsVar TypeFlags) types.GType { | 1623 | func TypeRegisterStatic(ParentTypeVar types.GType, TypeNameVar string, InfoVar *TypeInfo, FlagsVar TypeFlags) types.GType { | ||
| 1624 | + | core.LazyRegister(&xTypeRegisterStatic, "GOBJECT", "g_type_register_static", false) | |||
| 1625 | + | ||||
| 1503 | cret := xTypeRegisterStatic(ParentTypeVar, TypeNameVar, InfoVar, FlagsVar) | 1626 | cret := xTypeRegisterStatic(ParentTypeVar, TypeNameVar, InfoVar, FlagsVar) | ||
| 1504 | return cret | 1627 | return cret | ||
| 1505 | } | 1628 | } | ||
| @@ -1511,6 +1634,8 @@ var xTypeRegisterStaticSimple func(types.GType, string, uint, uintptr, uint, uin | |||||
| 1511 | // abstract or not) of the type. It works by filling a #GTypeInfo | 1634 | // abstract or not) of the type. It works by filling a #GTypeInfo | ||
| 1512 | // struct and calling g_type_register_static(). | 1635 | // struct and calling g_type_register_static(). | ||
| 1513 | func TypeRegisterStaticSimple(ParentTypeVar types.GType, TypeNameVar string, ClassSizeVar uint, ClassInitVar *ClassInitFunc, InstanceSizeVar uint, InstanceInitVar *InstanceInitFunc, FlagsVar TypeFlags) types.GType { | 1636 | func TypeRegisterStaticSimple(ParentTypeVar types.GType, TypeNameVar string, ClassSizeVar uint, ClassInitVar *ClassInitFunc, InstanceSizeVar uint, InstanceInitVar *InstanceInitFunc, FlagsVar TypeFlags) types.GType { | ||
| 1637 | + | core.LazyRegister(&xTypeRegisterStaticSimple, "GOBJECT", "g_type_register_static_simple", false) | |||
| 1638 | + | ||||
| 1514 | cret := xTypeRegisterStaticSimple(ParentTypeVar, TypeNameVar, ClassSizeVar, glib.NewCallback(ClassInitVar), InstanceSizeVar, glib.NewCallback(InstanceInitVar), FlagsVar) | 1639 | cret := xTypeRegisterStaticSimple(ParentTypeVar, TypeNameVar, ClassSizeVar, glib.NewCallback(ClassInitVar), InstanceSizeVar, glib.NewCallback(InstanceInitVar), FlagsVar) | ||
| 1515 | return cret | 1640 | return cret | ||
| 1516 | } | 1641 | } | ||
| @@ -1521,6 +1646,8 @@ var xTypeRemoveClassCacheFunc func(uintptr, uintptr) | |||||
| 1521 | // maintained by @cache_func has to be empty when calling | 1646 | // maintained by @cache_func has to be empty when calling | ||
| 1522 | // g_type_remove_class_cache_func() to avoid leaks. | 1647 | // g_type_remove_class_cache_func() to avoid leaks. | ||
| 1523 | func TypeRemoveClassCacheFunc(CacheDataVar uintptr, CacheFuncVar *TypeClassCacheFunc) { | 1648 | func TypeRemoveClassCacheFunc(CacheDataVar uintptr, CacheFuncVar *TypeClassCacheFunc) { | ||
| 1649 | + | core.LazyRegister(&xTypeRemoveClassCacheFunc, "GOBJECT", "g_type_remove_class_cache_func", false) | |||
| 1650 | + | ||||
| 1524 | xTypeRemoveClassCacheFunc(CacheDataVar, glib.NewCallback(CacheFuncVar)) | 1651 | xTypeRemoveClassCacheFunc(CacheDataVar, glib.NewCallback(CacheFuncVar)) | ||
| 1525 | } | 1652 | } | ||
| 1526 | 1653 | ||||
| @@ -1529,6 +1656,8 @@ var xTypeRemoveInterfaceCheck func(uintptr, uintptr) | |||||
| 1529 | // Removes an interface check function added with | 1656 | // Removes an interface check function added with | ||
| 1530 | // g_type_add_interface_check(). | 1657 | // g_type_add_interface_check(). | ||
| 1531 | func TypeRemoveInterfaceCheck(CheckDataVar uintptr, CheckFuncVar *TypeInterfaceCheckFunc) { | 1658 | func TypeRemoveInterfaceCheck(CheckDataVar uintptr, CheckFuncVar *TypeInterfaceCheckFunc) { | ||
| 1659 | + | core.LazyRegister(&xTypeRemoveInterfaceCheck, "GOBJECT", "g_type_remove_interface_check", false) | |||
| 1660 | + | ||||
| 1532 | xTypeRemoveInterfaceCheck(CheckDataVar, glib.NewCallback(CheckFuncVar)) | 1661 | xTypeRemoveInterfaceCheck(CheckDataVar, glib.NewCallback(CheckFuncVar)) | ||
| 1533 | } | 1662 | } | ||
| 1534 | 1663 | ||||
| @@ -1536,12 +1665,16 @@ var xTypeSetQdata func(types.GType, glib.Quark, uintptr) | |||||
| 1536 | 1665 | ||||
| 1537 | // Attaches arbitrary data to a type. | 1666 | // Attaches arbitrary data to a type. | ||
| 1538 | func TypeSetQdata(TypeVar types.GType, QuarkVar glib.Quark, DataVar uintptr) { | 1667 | func TypeSetQdata(TypeVar types.GType, QuarkVar glib.Quark, DataVar uintptr) { | ||
| 1668 | + | core.LazyRegister(&xTypeSetQdata, "GOBJECT", "g_type_set_qdata", false) | |||
| 1669 | + | ||||
| 1539 | xTypeSetQdata(TypeVar, QuarkVar, DataVar) | 1670 | xTypeSetQdata(TypeVar, QuarkVar, DataVar) | ||
| 1540 | } | 1671 | } | ||
| 1541 | 1672 | ||||
| 1542 | var xTypeTestFlags func(types.GType, uint) bool | 1673 | var xTypeTestFlags func(types.GType, uint) bool | ||
| 1543 | 1674 | ||||
| 1544 | func TypeTestFlags(TypeVar types.GType, FlagsVar uint) bool { | 1675 | func TypeTestFlags(TypeVar types.GType, FlagsVar uint) bool { | ||
| 1676 | + | core.LazyRegister(&xTypeTestFlags, "GOBJECT", "g_type_test_flags", false) | |||
| 1677 | + | ||||
| 1545 | cret := xTypeTestFlags(TypeVar, FlagsVar) | 1678 | cret := xTypeTestFlags(TypeVar, FlagsVar) | ||
| 1546 | return cret | 1679 | return cret | ||
| 1547 | } | 1680 | } | ||
| @@ -1554,6 +1687,8 @@ var xTypeValueTablePeek func(types.GType) uintptr | |||||
| 1554 | // that implements or has internal knowledge of the implementation of | 1687 | // that implements or has internal knowledge of the implementation of | ||
| 1555 | // @type. | 1688 | // @type. | ||
| 1556 | func TypeValueTablePeek(TypeVar types.GType) *TypeValueTable { | 1689 | func TypeValueTablePeek(TypeVar types.GType) *TypeValueTable { | ||
| 1690 | + | core.LazyRegister(&xTypeValueTablePeek, "GOBJECT", "g_type_value_table_peek", false) | |||
| 1691 | + | ||||
| 1557 | cret := xTypeValueTablePeek(TypeVar) | 1692 | cret := xTypeValueTablePeek(TypeVar) | ||
| 1558 | if cret == 0 { | 1693 | if cret == 0 { | ||
| 1559 | return nil | 1694 | return nil | ||
| @@ -1564,85 +1699,4 @@ func TypeValueTablePeek(TypeVar types.GType) *TypeValueTable { | |||||
| 1564 | func init() { | 1699 | func init() { | ||
| 1565 | core.SetPackageName("GOBJECT", "gobject-2.0") | 1700 | core.SetPackageName("GOBJECT", "gobject-2.0") | ||
| 1566 | core.SetSharedLibraries("GOBJECT", []string{"libgobject-2.0.so.0", "libgobject-2.0.0.dylib"}) | 1701 | core.SetSharedLibraries("GOBJECT", []string{"libgobject-2.0.so.0", "libgobject-2.0.0.dylib"}) | ||
| 1567 | - | var libs []uintptr | |||
| 1568 | - | for _, libPath := range core.GetPaths("GOBJECT") { | |||
| 1569 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 1570 | - | if err != nil { | |||
| 1571 | - | panic(err) | |||
| 1572 | - | } | |||
| 1573 | - | libs = append(libs, lib) | |||
| 1574 | - | } | |||
| 1575 | - | ||||
| 1576 | - | core.PuregoSafeRegister(&xTypeAddClassCacheFunc, libs, "g_type_add_class_cache_func") | |||
| 1577 | - | core.PuregoSafeRegister(&xTypeAddClassPrivate, libs, "g_type_add_class_private") | |||
| 1578 | - | core.PuregoSafeRegister(&xTypeAddInstancePrivate, libs, "g_type_add_instance_private") | |||
| 1579 | - | core.PuregoSafeRegister(&xTypeAddInterfaceCheck, libs, "g_type_add_interface_check") | |||
| 1580 | - | core.PuregoSafeRegister(&xTypeAddInterfaceDynamic, libs, "g_type_add_interface_dynamic") | |||
| 1581 | - | core.PuregoSafeRegister(&xTypeAddInterfaceStatic, libs, "g_type_add_interface_static") | |||
| 1582 | - | core.PuregoSafeRegister(&xTypeCheckClassCast, libs, "g_type_check_class_cast") | |||
| 1583 | - | core.PuregoSafeRegister(&xTypeCheckClassIsA, libs, "g_type_check_class_is_a") | |||
| 1584 | - | core.PuregoSafeRegister(&xTypeCheckInstance, libs, "g_type_check_instance") | |||
| 1585 | - | core.PuregoSafeRegister(&xTypeCheckInstanceCast, libs, "g_type_check_instance_cast") | |||
| 1586 | - | core.PuregoSafeRegister(&xTypeCheckInstanceIsA, libs, "g_type_check_instance_is_a") | |||
| 1587 | - | core.PuregoSafeRegister(&xTypeCheckInstanceIsFundamentallyA, libs, "g_type_check_instance_is_fundamentally_a") | |||
| 1588 | - | core.PuregoSafeRegister(&xTypeCheckIsValueType, libs, "g_type_check_is_value_type") | |||
| 1589 | - | core.PuregoSafeRegister(&xTypeCheckValue, libs, "g_type_check_value") | |||
| 1590 | - | core.PuregoSafeRegister(&xTypeCheckValueHolds, libs, "g_type_check_value_holds") | |||
| 1591 | - | core.PuregoSafeRegister(&xTypeChildren, libs, "g_type_children") | |||
| 1592 | - | core.PuregoSafeRegister(&xTypeClassAdjustPrivateOffset, libs, "g_type_class_adjust_private_offset") | |||
| 1593 | - | core.PuregoSafeRegister(&xTypeClassGet, libs, "g_type_class_get") | |||
| 1594 | - | core.PuregoSafeRegister(&xTypeClassPeek, libs, "g_type_class_peek") | |||
| 1595 | - | core.PuregoSafeRegister(&xTypeClassPeekStatic, libs, "g_type_class_peek_static") | |||
| 1596 | - | core.PuregoSafeRegister(&xTypeClassRef, libs, "g_type_class_ref") | |||
| 1597 | - | core.PuregoSafeRegister(&xTypeCreateInstance, libs, "g_type_create_instance") | |||
| 1598 | - | core.PuregoSafeRegister(&xTypeDefaultInterfaceGet, libs, "g_type_default_interface_get") | |||
| 1599 | - | core.PuregoSafeRegister(&xTypeDefaultInterfacePeek, libs, "g_type_default_interface_peek") | |||
| 1600 | - | core.PuregoSafeRegister(&xTypeDefaultInterfaceRef, libs, "g_type_default_interface_ref") | |||
| 1601 | - | core.PuregoSafeRegister(&xTypeDefaultInterfaceUnref, libs, "g_type_default_interface_unref") | |||
| 1602 | - | core.PuregoSafeRegister(&xTypeDepth, libs, "g_type_depth") | |||
| 1603 | - | core.PuregoSafeRegister(&xTypeEnsure, libs, "g_type_ensure") | |||
| 1604 | - | core.PuregoSafeRegister(&xTypeFreeInstance, libs, "g_type_free_instance") | |||
| 1605 | - | core.PuregoSafeRegister(&xTypeFromName, libs, "g_type_from_name") | |||
| 1606 | - | core.PuregoSafeRegister(&xTypeFundamental, libs, "g_type_fundamental") | |||
| 1607 | - | core.PuregoSafeRegister(&xTypeFundamentalNext, libs, "g_type_fundamental_next") | |||
| 1608 | - | core.PuregoSafeRegister(&xTypeGetInstanceCount, libs, "g_type_get_instance_count") | |||
| 1609 | - | core.PuregoSafeRegister(&xTypeGetPlugin, libs, "g_type_get_plugin") | |||
| 1610 | - | core.PuregoSafeRegister(&xTypeGetQdata, libs, "g_type_get_qdata") | |||
| 1611 | - | core.PuregoSafeRegister(&xTypeGetTypeRegistrationSerial, libs, "g_type_get_type_registration_serial") | |||
| 1612 | - | core.PuregoSafeRegister(&xTypeInit, libs, "g_type_init") | |||
| 1613 | - | core.PuregoSafeRegister(&xTypeInitWithDebugFlags, libs, "g_type_init_with_debug_flags") | |||
| 1614 | - | core.PuregoSafeRegister(&xTypeInterfaceAddPrerequisite, libs, "g_type_interface_add_prerequisite") | |||
| 1615 | - | core.PuregoSafeRegister(&xTypeInterfaceGetPlugin, libs, "g_type_interface_get_plugin") | |||
| 1616 | - | core.PuregoSafeRegister(&xTypeInterfaceInstantiatablePrerequisite, libs, "g_type_interface_instantiatable_prerequisite") | |||
| 1617 | - | core.PuregoSafeRegister(&xTypeInterfacePeek, libs, "g_type_interface_peek") | |||
| 1618 | - | core.PuregoSafeRegister(&xTypeInterfacePrerequisites, libs, "g_type_interface_prerequisites") | |||
| 1619 | - | core.PuregoSafeRegister(&xTypeInterfaces, libs, "g_type_interfaces") | |||
| 1620 | - | core.PuregoSafeRegister(&xTypeIsA, libs, "g_type_is_a") | |||
| 1621 | - | core.PuregoSafeRegister(&xTypeName, libs, "g_type_name") | |||
| 1622 | - | core.PuregoSafeRegister(&xTypeNameFromClass, libs, "g_type_name_from_class") | |||
| 1623 | - | core.PuregoSafeRegister(&xTypeNameFromInstance, libs, "g_type_name_from_instance") | |||
| 1624 | - | core.PuregoSafeRegister(&xTypeNextBase, libs, "g_type_next_base") | |||
| 1625 | - | core.PuregoSafeRegister(&xTypeParent, libs, "g_type_parent") | |||
| 1626 | - | core.PuregoSafeRegister(&xTypeQname, libs, "g_type_qname") | |||
| 1627 | - | core.PuregoSafeRegister(&xNewTypeQuery, libs, "g_type_query") | |||
| 1628 | - | core.PuregoSafeRegister(&xTypeRegisterDynamic, libs, "g_type_register_dynamic") | |||
| 1629 | - | core.PuregoSafeRegister(&xTypeRegisterFundamental, libs, "g_type_register_fundamental") | |||
| 1630 | - | core.PuregoSafeRegister(&xTypeRegisterStatic, libs, "g_type_register_static") | |||
| 1631 | - | core.PuregoSafeRegister(&xTypeRegisterStaticSimple, libs, "g_type_register_static_simple") | |||
| 1632 | - | core.PuregoSafeRegister(&xTypeRemoveClassCacheFunc, libs, "g_type_remove_class_cache_func") | |||
| 1633 | - | core.PuregoSafeRegister(&xTypeRemoveInterfaceCheck, libs, "g_type_remove_interface_check") | |||
| 1634 | - | core.PuregoSafeRegister(&xTypeSetQdata, libs, "g_type_set_qdata") | |||
| 1635 | - | core.PuregoSafeRegister(&xTypeTestFlags, libs, "g_type_test_flags") | |||
| 1636 | - | core.PuregoSafeRegister(&xTypeValueTablePeek, libs, "g_type_value_table_peek") | |||
| 1637 | - | ||||
| 1638 | - | core.PuregoSafeRegister(&xTypeClassAddPrivate, libs, "g_type_class_add_private") | |||
| 1639 | - | core.PuregoSafeRegister(&xTypeClassGetInstancePrivateOffset, libs, "g_type_class_get_instance_private_offset") | |||
| 1640 | - | core.PuregoSafeRegister(&xTypeClassGetPrivate, libs, "g_type_class_get_private") | |||
| 1641 | - | core.PuregoSafeRegister(&xTypeClassPeekParent, libs, "g_type_class_peek_parent") | |||
| 1642 | - | core.PuregoSafeRegister(&xTypeClassUnref, libs, "g_type_class_unref") | |||
| 1643 | - | core.PuregoSafeRegister(&xTypeClassUnrefUncached, libs, "g_type_class_unref_uncached") | |||
| 1644 | - | ||||
| 1645 | - | core.PuregoSafeRegister(&xTypeInstanceGetPrivate, libs, "g_type_instance_get_private") | |||
| 1646 | - | ||||
| 1647 | - | core.PuregoSafeRegister(&xTypeInterfacePeekParent, libs, "g_type_interface_peek_parent") | |||
| 1648 | } | 1702 | } | ||