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
| @@ -179,6 +179,7 @@ type DataInputStream struct { | |||
| 179 | 179 | var xDataInputStreamGLibType func() types.GType | |
| 180 | 180 | ||
| 181 | 181 | func DataInputStreamGLibType() types.GType { | |
| 182 | + | core.LazyRegister(&xDataInputStreamGLibType, "GIO", "g_data_input_stream_get_type", false) | |
| 182 | 183 | return xDataInputStreamGLibType() | |
| 183 | 184 | } | |
| 184 | 185 | ||
| @@ -192,6 +193,7 @@ var xNewDataInputStream func(uintptr) uintptr | |||
| 192 | 193 | ||
| 193 | 194 | // Creates a new data input stream for the @base_stream. | |
| 194 | 195 | func NewDataInputStream(BaseStreamVar *InputStream) *DataInputStream { | |
| 196 | + | core.LazyRegister(&xNewDataInputStream, "GIO", "g_data_input_stream_new", false) | |
| 195 | 197 | var cls *DataInputStream | |
| 196 | 198 | ||
| 197 | 199 | cret := xNewDataInputStream(BaseStreamVar.GoPointer()) | |
| @@ -208,6 +210,8 @@ var xDataInputStreamGetByteOrder func(uintptr) DataStreamByteOrder | |||
| 208 | 210 | ||
| 209 | 211 | // Gets the byte order for the data input stream. | |
| 210 | 212 | func (x *DataInputStream) GetByteOrder() DataStreamByteOrder { | |
| 213 | + | core.LazyRegister(&xDataInputStreamGetByteOrder, "GIO", "g_data_input_stream_get_byte_order", false) | |
| 214 | + | ||
| 211 | 215 | cret := xDataInputStreamGetByteOrder(x.GoPointer()) | |
| 212 | 216 | return cret | |
| 213 | 217 | } | |
| @@ -216,6 +220,8 @@ var xDataInputStreamGetNewlineType func(uintptr) DataStreamNewlineType | |||
| 216 | 220 | ||
| 217 | 221 | // Gets the current newline type for the @stream. | |
| 218 | 222 | func (x *DataInputStream) GetNewlineType() DataStreamNewlineType { | |
| 223 | + | core.LazyRegister(&xDataInputStreamGetNewlineType, "GIO", "g_data_input_stream_get_newline_type", false) | |
| 224 | + | ||
| 219 | 225 | cret := xDataInputStreamGetNewlineType(x.GoPointer()) | |
| 220 | 226 | return cret | |
| 221 | 227 | } | |
| @@ -224,6 +230,7 @@ var xDataInputStreamDataInputStreamReadByte func(uintptr, uintptr, **glib.Error) | |||
| 224 | 230 | ||
| 225 | 231 | // Reads an unsigned 8-bit/1-byte value from @stream. | |
| 226 | 232 | func (x *DataInputStream) DataInputStreamReadByte(CancellableVar *Cancellable) (byte, error) { | |
| 233 | + | core.LazyRegister(&xDataInputStreamDataInputStreamReadByte, "GIO", "g_data_input_stream_read_byte", false) | |
| 227 | 234 | var cerr *glib.Error | |
| 228 | 235 | ||
| 229 | 236 | cret := xDataInputStreamDataInputStreamReadByte(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| @@ -240,6 +247,7 @@ var xDataInputStreamReadInt16 func(uintptr, uintptr, **glib.Error) int16 | |||
| 240 | 247 | // In order to get the correct byte order for this read operation, | |
| 241 | 248 | // see g_data_input_stream_get_byte_order() and g_data_input_stream_set_byte_order(). | |
| 242 | 249 | func (x *DataInputStream) ReadInt16(CancellableVar *Cancellable) (int16, error) { | |
| 250 | + | core.LazyRegister(&xDataInputStreamReadInt16, "GIO", "g_data_input_stream_read_int16", false) | |
| 243 | 251 | var cerr *glib.Error | |
| 244 | 252 | ||
| 245 | 253 | cret := xDataInputStreamReadInt16(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| @@ -260,6 +268,7 @@ var xDataInputStreamReadInt32 func(uintptr, uintptr, **glib.Error) int32 | |||
| 260 | 268 | // triggering the cancellable object from another thread. If the operation | |
| 261 | 269 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. | |
| 262 | 270 | func (x *DataInputStream) ReadInt32(CancellableVar *Cancellable) (int32, error) { | |
| 271 | + | core.LazyRegister(&xDataInputStreamReadInt32, "GIO", "g_data_input_stream_read_int32", false) | |
| 263 | 272 | var cerr *glib.Error | |
| 264 | 273 | ||
| 265 | 274 | cret := xDataInputStreamReadInt32(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| @@ -280,6 +289,7 @@ var xDataInputStreamReadInt64 func(uintptr, uintptr, **glib.Error) int64 | |||
| 280 | 289 | // triggering the cancellable object from another thread. If the operation | |
| 281 | 290 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. | |
| 282 | 291 | func (x *DataInputStream) ReadInt64(CancellableVar *Cancellable) (int64, error) { | |
| 292 | + | core.LazyRegister(&xDataInputStreamReadInt64, "GIO", "g_data_input_stream_read_int64", false) | |
| 283 | 293 | var cerr *glib.Error | |
| 284 | 294 | ||
| 285 | 295 | cret := xDataInputStreamReadInt64(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| @@ -299,6 +309,7 @@ var xDataInputStreamReadLine func(uintptr, *uint, uintptr, **glib.Error) uintptr | |||
| 299 | 309 | // triggering the cancellable object from another thread. If the operation | |
| 300 | 310 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. | |
| 301 | 311 | func (x *DataInputStream) ReadLine(LengthVar *uint, CancellableVar *Cancellable) (uintptr, error) { | |
| 312 | + | core.LazyRegister(&xDataInputStreamReadLine, "GIO", "g_data_input_stream_read_line", false) | |
| 302 | 313 | var cerr *glib.Error | |
| 303 | 314 | ||
| 304 | 315 | cret := xDataInputStreamReadLine(x.GoPointer(), LengthVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -317,6 +328,8 @@ var xDataInputStreamReadLineAsync func(uintptr, int, uintptr, uintptr, uintptr) | |||
| 317 | 328 | // can then call g_data_input_stream_read_line_finish() to get | |
| 318 | 329 | // the result of the operation. | |
| 319 | 330 | func (x *DataInputStream) ReadLineAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 331 | + | core.LazyRegister(&xDataInputStreamReadLineAsync, "GIO", "g_data_input_stream_read_line_async", false) | |
| 332 | + | ||
| 320 | 333 | xDataInputStreamReadLineAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 321 | 334 | } | |
| 322 | 335 | ||
| @@ -327,6 +340,7 @@ var xDataInputStreamReadLineFinish func(uintptr, uintptr, *uint, **glib.Error) u | |||
| 327 | 340 | // string encoding in g_data_input_stream_read_line() applies here as | |
| 328 | 341 | // well. | |
| 329 | 342 | func (x *DataInputStream) ReadLineFinish(ResultVar AsyncResult, LengthVar *uint) (uintptr, error) { | |
| 343 | + | core.LazyRegister(&xDataInputStreamReadLineFinish, "GIO", "g_data_input_stream_read_line_finish", false) | |
| 330 | 344 | var cerr *glib.Error | |
| 331 | 345 | ||
| 332 | 346 | cret := xDataInputStreamReadLineFinish(x.GoPointer(), ResultVar.GoPointer(), LengthVar, &cerr) | |
| @@ -341,6 +355,7 @@ var xDataInputStreamReadLineFinishUtf8 func(uintptr, uintptr, *uint, **glib.Erro | |||
| 341 | 355 | // Finish an asynchronous call started by | |
| 342 | 356 | // g_data_input_stream_read_line_async(). | |
| 343 | 357 | func (x *DataInputStream) ReadLineFinishUtf8(ResultVar AsyncResult, LengthVar *uint) (string, error) { | |
| 358 | + | core.LazyRegister(&xDataInputStreamReadLineFinishUtf8, "GIO", "g_data_input_stream_read_line_finish_utf8", false) | |
| 344 | 359 | var cerr *glib.Error | |
| 345 | 360 | ||
| 346 | 361 | cret := xDataInputStreamReadLineFinishUtf8(x.GoPointer(), ResultVar.GoPointer(), LengthVar, &cerr) | |
| @@ -358,6 +373,7 @@ var xDataInputStreamReadLineUtf8 func(uintptr, *uint, uintptr, **glib.Error) str | |||
| 358 | 373 | // triggering the cancellable object from another thread. If the operation | |
| 359 | 374 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. | |
| 360 | 375 | func (x *DataInputStream) ReadLineUtf8(LengthVar *uint, CancellableVar *Cancellable) (string, error) { | |
| 376 | + | core.LazyRegister(&xDataInputStreamReadLineUtf8, "GIO", "g_data_input_stream_read_line_utf8", false) | |
| 361 | 377 | var cerr *glib.Error | |
| 362 | 378 | ||
| 363 | 379 | cret := xDataInputStreamReadLineUtf8(x.GoPointer(), LengthVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -374,6 +390,7 @@ var xDataInputStreamReadUint16 func(uintptr, uintptr, **glib.Error) uint16 | |||
| 374 | 390 | // In order to get the correct byte order for this read operation, | |
| 375 | 391 | // see g_data_input_stream_get_byte_order() and g_data_input_stream_set_byte_order(). | |
| 376 | 392 | func (x *DataInputStream) ReadUint16(CancellableVar *Cancellable) (uint16, error) { | |
| 393 | + | core.LazyRegister(&xDataInputStreamReadUint16, "GIO", "g_data_input_stream_read_uint16", false) | |
| 377 | 394 | var cerr *glib.Error | |
| 378 | 395 | ||
| 379 | 396 | cret := xDataInputStreamReadUint16(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| @@ -394,6 +411,7 @@ var xDataInputStreamReadUint32 func(uintptr, uintptr, **glib.Error) uint32 | |||
| 394 | 411 | // triggering the cancellable object from another thread. If the operation | |
| 395 | 412 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. | |
| 396 | 413 | func (x *DataInputStream) ReadUint32(CancellableVar *Cancellable) (uint32, error) { | |
| 414 | + | core.LazyRegister(&xDataInputStreamReadUint32, "GIO", "g_data_input_stream_read_uint32", false) | |
| 397 | 415 | var cerr *glib.Error | |
| 398 | 416 | ||
| 399 | 417 | cret := xDataInputStreamReadUint32(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| @@ -414,6 +432,7 @@ var xDataInputStreamReadUint64 func(uintptr, uintptr, **glib.Error) uint64 | |||
| 414 | 432 | // triggering the cancellable object from another thread. If the operation | |
| 415 | 433 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. | |
| 416 | 434 | func (x *DataInputStream) ReadUint64(CancellableVar *Cancellable) (uint64, error) { | |
| 435 | + | core.LazyRegister(&xDataInputStreamReadUint64, "GIO", "g_data_input_stream_read_uint64", false) | |
| 417 | 436 | var cerr *glib.Error | |
| 418 | 437 | ||
| 419 | 438 | cret := xDataInputStreamReadUint64(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| @@ -437,6 +456,7 @@ var xDataInputStreamReadUntil func(uintptr, string, *uint, uintptr, **glib.Error | |||
| 437 | 456 | // g_data_input_stream_read_upto() instead, but note that that function | |
| 438 | 457 | // does not consume the stop character. | |
| 439 | 458 | func (x *DataInputStream) ReadUntil(StopCharsVar string, LengthVar *uint, CancellableVar *Cancellable) (string, error) { | |
| 459 | + | core.LazyRegister(&xDataInputStreamReadUntil, "GIO", "g_data_input_stream_read_until", false) | |
| 440 | 460 | var cerr *glib.Error | |
| 441 | 461 | ||
| 442 | 462 | cret := xDataInputStreamReadUntil(x.GoPointer(), StopCharsVar, LengthVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -464,6 +484,8 @@ var xDataInputStreamReadUntilAsync func(uintptr, string, int, uintptr, uintptr, | |||
| 464 | 484 | // will be marked as deprecated in a future release. Use | |
| 465 | 485 | // g_data_input_stream_read_upto_async() instead. | |
| 466 | 486 | func (x *DataInputStream) ReadUntilAsync(StopCharsVar string, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 487 | + | core.LazyRegister(&xDataInputStreamReadUntilAsync, "GIO", "g_data_input_stream_read_until_async", false) | |
| 488 | + | ||
| 467 | 489 | xDataInputStreamReadUntilAsync(x.GoPointer(), StopCharsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 468 | 490 | } | |
| 469 | 491 | ||
| @@ -472,6 +494,7 @@ var xDataInputStreamReadUntilFinish func(uintptr, uintptr, *uint, **glib.Error) | |||
| 472 | 494 | // Finish an asynchronous call started by | |
| 473 | 495 | // g_data_input_stream_read_until_async(). | |
| 474 | 496 | func (x *DataInputStream) ReadUntilFinish(ResultVar AsyncResult, LengthVar *uint) (string, error) { | |
| 497 | + | core.LazyRegister(&xDataInputStreamReadUntilFinish, "GIO", "g_data_input_stream_read_until_finish", false) | |
| 475 | 498 | var cerr *glib.Error | |
| 476 | 499 | ||
| 477 | 500 | cret := xDataInputStreamReadUntilFinish(x.GoPointer(), ResultVar.GoPointer(), LengthVar, &cerr) | |
| @@ -496,6 +519,7 @@ var xDataInputStreamReadUpto func(uintptr, string, int, *uint, uintptr, **glib.E | |||
| 496 | 519 | // | |
| 497 | 520 | // The returned string will always be nul-terminated on success. | |
| 498 | 521 | func (x *DataInputStream) ReadUpto(StopCharsVar string, StopCharsLenVar int, LengthVar *uint, CancellableVar *Cancellable) (string, error) { | |
| 522 | + | core.LazyRegister(&xDataInputStreamReadUpto, "GIO", "g_data_input_stream_read_upto", false) | |
| 499 | 523 | var cerr *glib.Error | |
| 500 | 524 | ||
| 501 | 525 | cret := xDataInputStreamReadUpto(x.GoPointer(), StopCharsVar, StopCharsLenVar, LengthVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -522,6 +546,8 @@ var xDataInputStreamReadUptoAsync func(uintptr, string, int, int, uintptr, uintp | |||
| 522 | 546 | // can then call g_data_input_stream_read_upto_finish() to get | |
| 523 | 547 | // the result of the operation. | |
| 524 | 548 | func (x *DataInputStream) ReadUptoAsync(StopCharsVar string, StopCharsLenVar int, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | |
| 549 | + | core.LazyRegister(&xDataInputStreamReadUptoAsync, "GIO", "g_data_input_stream_read_upto_async", false) | |
| 550 | + | ||
| 525 | 551 | xDataInputStreamReadUptoAsync(x.GoPointer(), StopCharsVar, StopCharsLenVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 526 | 552 | } | |
| 527 | 553 | ||
| @@ -536,6 +562,7 @@ var xDataInputStreamReadUptoFinish func(uintptr, uintptr, *uint, **glib.Error) s | |||
| 536 | 562 | // | |
| 537 | 563 | // The returned string will always be nul-terminated on success. | |
| 538 | 564 | func (x *DataInputStream) ReadUptoFinish(ResultVar AsyncResult, LengthVar *uint) (string, error) { | |
| 565 | + | core.LazyRegister(&xDataInputStreamReadUptoFinish, "GIO", "g_data_input_stream_read_upto_finish", false) | |
| 539 | 566 | var cerr *glib.Error | |
| 540 | 567 | ||
| 541 | 568 | cret := xDataInputStreamReadUptoFinish(x.GoPointer(), ResultVar.GoPointer(), LengthVar, &cerr) | |
| @@ -550,6 +577,8 @@ var xDataInputStreamSetByteOrder func(uintptr, DataStreamByteOrder) | |||
| 550 | 577 | // This function sets the byte order for the given @stream. All subsequent | |
| 551 | 578 | // reads from the @stream will be read in the given @order. | |
| 552 | 579 | func (x *DataInputStream) SetByteOrder(OrderVar DataStreamByteOrder) { | |
| 580 | + | core.LazyRegister(&xDataInputStreamSetByteOrder, "GIO", "g_data_input_stream_set_byte_order", false) | |
| 581 | + | ||
| 553 | 582 | xDataInputStreamSetByteOrder(x.GoPointer(), OrderVar) | |
| 554 | 583 | } | |
| 555 | 584 | ||
| @@ -561,6 +590,8 @@ var xDataInputStreamSetNewlineType func(uintptr, DataStreamNewlineType) | |||
| 561 | 590 | // chunk ends in "CR" we must read an additional byte to know if this is "CR" or | |
| 562 | 591 | // "CR LF", and this might block if there is no more data available. | |
| 563 | 592 | func (x *DataInputStream) SetNewlineType(TypeVar DataStreamNewlineType) { | |
| 593 | + | core.LazyRegister(&xDataInputStreamSetNewlineType, "GIO", "g_data_input_stream_set_newline_type", false) | |
| 594 | + | ||
| 564 | 595 | xDataInputStreamSetNewlineType(x.GoPointer(), TypeVar) | |
| 565 | 596 | } | |
| 566 | 597 | ||
| @@ -640,39 +671,4 @@ func (x *DataInputStream) Truncate(OffsetVar int64, CancellableVar *Cancellable) | |||
| 640 | 671 | func init() { | |
| 641 | 672 | core.SetPackageName("GIO", "gio-2.0") | |
| 642 | 673 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | |
| 643 | - | var libs []uintptr | |
| 644 | - | for _, libPath := range core.GetPaths("GIO") { | |
| 645 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 646 | - | if err != nil { | |
| 647 | - | panic(err) | |
| 648 | - | } | |
| 649 | - | libs = append(libs, lib) | |
| 650 | - | } | |
| 651 | - | ||
| 652 | - | core.PuregoSafeRegister(&xDataInputStreamGLibType, libs, "g_data_input_stream_get_type") | |
| 653 | - | ||
| 654 | - | core.PuregoSafeRegister(&xNewDataInputStream, libs, "g_data_input_stream_new") | |
| 655 | - | ||
| 656 | - | core.PuregoSafeRegister(&xDataInputStreamGetByteOrder, libs, "g_data_input_stream_get_byte_order") | |
| 657 | - | core.PuregoSafeRegister(&xDataInputStreamGetNewlineType, libs, "g_data_input_stream_get_newline_type") | |
| 658 | - | core.PuregoSafeRegister(&xDataInputStreamDataInputStreamReadByte, libs, "g_data_input_stream_read_byte") | |
| 659 | - | core.PuregoSafeRegister(&xDataInputStreamReadInt16, libs, "g_data_input_stream_read_int16") | |
| 660 | - | core.PuregoSafeRegister(&xDataInputStreamReadInt32, libs, "g_data_input_stream_read_int32") | |
| 661 | - | core.PuregoSafeRegister(&xDataInputStreamReadInt64, libs, "g_data_input_stream_read_int64") | |
| 662 | - | core.PuregoSafeRegister(&xDataInputStreamReadLine, libs, "g_data_input_stream_read_line") | |
| 663 | - | core.PuregoSafeRegister(&xDataInputStreamReadLineAsync, libs, "g_data_input_stream_read_line_async") | |
| 664 | - | core.PuregoSafeRegister(&xDataInputStreamReadLineFinish, libs, "g_data_input_stream_read_line_finish") | |
| 665 | - | core.PuregoSafeRegister(&xDataInputStreamReadLineFinishUtf8, libs, "g_data_input_stream_read_line_finish_utf8") | |
| 666 | - | core.PuregoSafeRegister(&xDataInputStreamReadLineUtf8, libs, "g_data_input_stream_read_line_utf8") | |
| 667 | - | core.PuregoSafeRegister(&xDataInputStreamReadUint16, libs, "g_data_input_stream_read_uint16") | |
| 668 | - | core.PuregoSafeRegister(&xDataInputStreamReadUint32, libs, "g_data_input_stream_read_uint32") | |
| 669 | - | core.PuregoSafeRegister(&xDataInputStreamReadUint64, libs, "g_data_input_stream_read_uint64") | |
| 670 | - | core.PuregoSafeRegister(&xDataInputStreamReadUntil, libs, "g_data_input_stream_read_until") | |
| 671 | - | core.PuregoSafeRegister(&xDataInputStreamReadUntilAsync, libs, "g_data_input_stream_read_until_async") | |
| 672 | - | core.PuregoSafeRegister(&xDataInputStreamReadUntilFinish, libs, "g_data_input_stream_read_until_finish") | |
| 673 | - | core.PuregoSafeRegister(&xDataInputStreamReadUpto, libs, "g_data_input_stream_read_upto") | |
| 674 | - | core.PuregoSafeRegister(&xDataInputStreamReadUptoAsync, libs, "g_data_input_stream_read_upto_async") | |
| 675 | - | core.PuregoSafeRegister(&xDataInputStreamReadUptoFinish, libs, "g_data_input_stream_read_upto_finish") | |
| 676 | - | core.PuregoSafeRegister(&xDataInputStreamSetByteOrder, libs, "g_data_input_stream_set_byte_order") | |
| 677 | - | core.PuregoSafeRegister(&xDataInputStreamSetNewlineType, libs, "g_data_input_stream_set_newline_type") | |
| 678 | 674 | } | |
| @@ -179,6 +179,7 @@ type DataInputStream struct { | |||||
| 179 | var xDataInputStreamGLibType func() types.GType | 179 | var xDataInputStreamGLibType func() types.GType | ||
| 180 | 180 | ||||
| 181 | func DataInputStreamGLibType() types.GType { | 181 | func DataInputStreamGLibType() types.GType { | ||
| 182 | + | core.LazyRegister(&xDataInputStreamGLibType, "GIO", "g_data_input_stream_get_type", false) | |||
| 182 | return xDataInputStreamGLibType() | 183 | return xDataInputStreamGLibType() | ||
| 183 | } | 184 | } | ||
| 184 | 185 | ||||
| @@ -192,6 +193,7 @@ var xNewDataInputStream func(uintptr) uintptr | |||||
| 192 | 193 | ||||
| 193 | // Creates a new data input stream for the @base_stream. | 194 | // Creates a new data input stream for the @base_stream. | ||
| 194 | func NewDataInputStream(BaseStreamVar *InputStream) *DataInputStream { | 195 | func NewDataInputStream(BaseStreamVar *InputStream) *DataInputStream { | ||
| 196 | + | core.LazyRegister(&xNewDataInputStream, "GIO", "g_data_input_stream_new", false) | |||
| 195 | var cls *DataInputStream | 197 | var cls *DataInputStream | ||
| 196 | 198 | ||||
| 197 | cret := xNewDataInputStream(BaseStreamVar.GoPointer()) | 199 | cret := xNewDataInputStream(BaseStreamVar.GoPointer()) | ||
| @@ -208,6 +210,8 @@ var xDataInputStreamGetByteOrder func(uintptr) DataStreamByteOrder | |||||
| 208 | 210 | ||||
| 209 | // Gets the byte order for the data input stream. | 211 | // Gets the byte order for the data input stream. | ||
| 210 | func (x *DataInputStream) GetByteOrder() DataStreamByteOrder { | 212 | func (x *DataInputStream) GetByteOrder() DataStreamByteOrder { | ||
| 213 | + | core.LazyRegister(&xDataInputStreamGetByteOrder, "GIO", "g_data_input_stream_get_byte_order", false) | |||
| 214 | + | ||||
| 211 | cret := xDataInputStreamGetByteOrder(x.GoPointer()) | 215 | cret := xDataInputStreamGetByteOrder(x.GoPointer()) | ||
| 212 | return cret | 216 | return cret | ||
| 213 | } | 217 | } | ||
| @@ -216,6 +220,8 @@ var xDataInputStreamGetNewlineType func(uintptr) DataStreamNewlineType | |||||
| 216 | 220 | ||||
| 217 | // Gets the current newline type for the @stream. | 221 | // Gets the current newline type for the @stream. | ||
| 218 | func (x *DataInputStream) GetNewlineType() DataStreamNewlineType { | 222 | func (x *DataInputStream) GetNewlineType() DataStreamNewlineType { | ||
| 223 | + | core.LazyRegister(&xDataInputStreamGetNewlineType, "GIO", "g_data_input_stream_get_newline_type", false) | |||
| 224 | + | ||||
| 219 | cret := xDataInputStreamGetNewlineType(x.GoPointer()) | 225 | cret := xDataInputStreamGetNewlineType(x.GoPointer()) | ||
| 220 | return cret | 226 | return cret | ||
| 221 | } | 227 | } | ||
| @@ -224,6 +230,7 @@ var xDataInputStreamDataInputStreamReadByte func(uintptr, uintptr, **glib.Error) | |||||
| 224 | 230 | ||||
| 225 | // Reads an unsigned 8-bit/1-byte value from @stream. | 231 | // Reads an unsigned 8-bit/1-byte value from @stream. | ||
| 226 | func (x *DataInputStream) DataInputStreamReadByte(CancellableVar *Cancellable) (byte, error) { | 232 | func (x *DataInputStream) DataInputStreamReadByte(CancellableVar *Cancellable) (byte, error) { | ||
| 233 | + | core.LazyRegister(&xDataInputStreamDataInputStreamReadByte, "GIO", "g_data_input_stream_read_byte", false) | |||
| 227 | var cerr *glib.Error | 234 | var cerr *glib.Error | ||
| 228 | 235 | ||||
| 229 | cret := xDataInputStreamDataInputStreamReadByte(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | 236 | cret := xDataInputStreamDataInputStreamReadByte(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | ||
| @@ -240,6 +247,7 @@ var xDataInputStreamReadInt16 func(uintptr, uintptr, **glib.Error) int16 | |||||
| 240 | // In order to get the correct byte order for this read operation, | 247 | // In order to get the correct byte order for this read operation, | ||
| 241 | // see g_data_input_stream_get_byte_order() and g_data_input_stream_set_byte_order(). | 248 | // see g_data_input_stream_get_byte_order() and g_data_input_stream_set_byte_order(). | ||
| 242 | func (x *DataInputStream) ReadInt16(CancellableVar *Cancellable) (int16, error) { | 249 | func (x *DataInputStream) ReadInt16(CancellableVar *Cancellable) (int16, error) { | ||
| 250 | + | core.LazyRegister(&xDataInputStreamReadInt16, "GIO", "g_data_input_stream_read_int16", false) | |||
| 243 | var cerr *glib.Error | 251 | var cerr *glib.Error | ||
| 244 | 252 | ||||
| 245 | cret := xDataInputStreamReadInt16(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | 253 | cret := xDataInputStreamReadInt16(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | ||
| @@ -260,6 +268,7 @@ var xDataInputStreamReadInt32 func(uintptr, uintptr, **glib.Error) int32 | |||||
| 260 | // triggering the cancellable object from another thread. If the operation | 268 | // triggering the cancellable object from another thread. If the operation | ||
| 261 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. | 269 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. | ||
| 262 | func (x *DataInputStream) ReadInt32(CancellableVar *Cancellable) (int32, error) { | 270 | func (x *DataInputStream) ReadInt32(CancellableVar *Cancellable) (int32, error) { | ||
| 271 | + | core.LazyRegister(&xDataInputStreamReadInt32, "GIO", "g_data_input_stream_read_int32", false) | |||
| 263 | var cerr *glib.Error | 272 | var cerr *glib.Error | ||
| 264 | 273 | ||||
| 265 | cret := xDataInputStreamReadInt32(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | 274 | cret := xDataInputStreamReadInt32(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | ||
| @@ -280,6 +289,7 @@ var xDataInputStreamReadInt64 func(uintptr, uintptr, **glib.Error) int64 | |||||
| 280 | // triggering the cancellable object from another thread. If the operation | 289 | // triggering the cancellable object from another thread. If the operation | ||
| 281 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. | 290 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. | ||
| 282 | func (x *DataInputStream) ReadInt64(CancellableVar *Cancellable) (int64, error) { | 291 | func (x *DataInputStream) ReadInt64(CancellableVar *Cancellable) (int64, error) { | ||
| 292 | + | core.LazyRegister(&xDataInputStreamReadInt64, "GIO", "g_data_input_stream_read_int64", false) | |||
| 283 | var cerr *glib.Error | 293 | var cerr *glib.Error | ||
| 284 | 294 | ||||
| 285 | cret := xDataInputStreamReadInt64(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | 295 | cret := xDataInputStreamReadInt64(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | ||
| @@ -299,6 +309,7 @@ var xDataInputStreamReadLine func(uintptr, *uint, uintptr, **glib.Error) uintptr | |||||
| 299 | // triggering the cancellable object from another thread. If the operation | 309 | // triggering the cancellable object from another thread. If the operation | ||
| 300 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. | 310 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. | ||
| 301 | func (x *DataInputStream) ReadLine(LengthVar *uint, CancellableVar *Cancellable) (uintptr, error) { | 311 | func (x *DataInputStream) ReadLine(LengthVar *uint, CancellableVar *Cancellable) (uintptr, error) { | ||
| 312 | + | core.LazyRegister(&xDataInputStreamReadLine, "GIO", "g_data_input_stream_read_line", false) | |||
| 302 | var cerr *glib.Error | 313 | var cerr *glib.Error | ||
| 303 | 314 | ||||
| 304 | cret := xDataInputStreamReadLine(x.GoPointer(), LengthVar, CancellableVar.GoPointer(), &cerr) | 315 | cret := xDataInputStreamReadLine(x.GoPointer(), LengthVar, CancellableVar.GoPointer(), &cerr) | ||
| @@ -317,6 +328,8 @@ var xDataInputStreamReadLineAsync func(uintptr, int, uintptr, uintptr, uintptr) | |||||
| 317 | // can then call g_data_input_stream_read_line_finish() to get | 328 | // can then call g_data_input_stream_read_line_finish() to get | ||
| 318 | // the result of the operation. | 329 | // the result of the operation. | ||
| 319 | func (x *DataInputStream) ReadLineAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 330 | func (x *DataInputStream) ReadLineAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 331 | + | core.LazyRegister(&xDataInputStreamReadLineAsync, "GIO", "g_data_input_stream_read_line_async", false) | |||
| 332 | + | ||||
| 320 | xDataInputStreamReadLineAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | 333 | xDataInputStreamReadLineAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | ||
| 321 | } | 334 | } | ||
| 322 | 335 | ||||
| @@ -327,6 +340,7 @@ var xDataInputStreamReadLineFinish func(uintptr, uintptr, *uint, **glib.Error) u | |||||
| 327 | // string encoding in g_data_input_stream_read_line() applies here as | 340 | // string encoding in g_data_input_stream_read_line() applies here as | ||
| 328 | // well. | 341 | // well. | ||
| 329 | func (x *DataInputStream) ReadLineFinish(ResultVar AsyncResult, LengthVar *uint) (uintptr, error) { | 342 | func (x *DataInputStream) ReadLineFinish(ResultVar AsyncResult, LengthVar *uint) (uintptr, error) { | ||
| 343 | + | core.LazyRegister(&xDataInputStreamReadLineFinish, "GIO", "g_data_input_stream_read_line_finish", false) | |||
| 330 | var cerr *glib.Error | 344 | var cerr *glib.Error | ||
| 331 | 345 | ||||
| 332 | cret := xDataInputStreamReadLineFinish(x.GoPointer(), ResultVar.GoPointer(), LengthVar, &cerr) | 346 | cret := xDataInputStreamReadLineFinish(x.GoPointer(), ResultVar.GoPointer(), LengthVar, &cerr) | ||
| @@ -341,6 +355,7 @@ var xDataInputStreamReadLineFinishUtf8 func(uintptr, uintptr, *uint, **glib.Erro | |||||
| 341 | // Finish an asynchronous call started by | 355 | // Finish an asynchronous call started by | ||
| 342 | // g_data_input_stream_read_line_async(). | 356 | // g_data_input_stream_read_line_async(). | ||
| 343 | func (x *DataInputStream) ReadLineFinishUtf8(ResultVar AsyncResult, LengthVar *uint) (string, error) { | 357 | func (x *DataInputStream) ReadLineFinishUtf8(ResultVar AsyncResult, LengthVar *uint) (string, error) { | ||
| 358 | + | core.LazyRegister(&xDataInputStreamReadLineFinishUtf8, "GIO", "g_data_input_stream_read_line_finish_utf8", false) | |||
| 344 | var cerr *glib.Error | 359 | var cerr *glib.Error | ||
| 345 | 360 | ||||
| 346 | cret := xDataInputStreamReadLineFinishUtf8(x.GoPointer(), ResultVar.GoPointer(), LengthVar, &cerr) | 361 | cret := xDataInputStreamReadLineFinishUtf8(x.GoPointer(), ResultVar.GoPointer(), LengthVar, &cerr) | ||
| @@ -358,6 +373,7 @@ var xDataInputStreamReadLineUtf8 func(uintptr, *uint, uintptr, **glib.Error) str | |||||
| 358 | // triggering the cancellable object from another thread. If the operation | 373 | // triggering the cancellable object from another thread. If the operation | ||
| 359 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. | 374 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. | ||
| 360 | func (x *DataInputStream) ReadLineUtf8(LengthVar *uint, CancellableVar *Cancellable) (string, error) { | 375 | func (x *DataInputStream) ReadLineUtf8(LengthVar *uint, CancellableVar *Cancellable) (string, error) { | ||
| 376 | + | core.LazyRegister(&xDataInputStreamReadLineUtf8, "GIO", "g_data_input_stream_read_line_utf8", false) | |||
| 361 | var cerr *glib.Error | 377 | var cerr *glib.Error | ||
| 362 | 378 | ||||
| 363 | cret := xDataInputStreamReadLineUtf8(x.GoPointer(), LengthVar, CancellableVar.GoPointer(), &cerr) | 379 | cret := xDataInputStreamReadLineUtf8(x.GoPointer(), LengthVar, CancellableVar.GoPointer(), &cerr) | ||
| @@ -374,6 +390,7 @@ var xDataInputStreamReadUint16 func(uintptr, uintptr, **glib.Error) uint16 | |||||
| 374 | // In order to get the correct byte order for this read operation, | 390 | // In order to get the correct byte order for this read operation, | ||
| 375 | // see g_data_input_stream_get_byte_order() and g_data_input_stream_set_byte_order(). | 391 | // see g_data_input_stream_get_byte_order() and g_data_input_stream_set_byte_order(). | ||
| 376 | func (x *DataInputStream) ReadUint16(CancellableVar *Cancellable) (uint16, error) { | 392 | func (x *DataInputStream) ReadUint16(CancellableVar *Cancellable) (uint16, error) { | ||
| 393 | + | core.LazyRegister(&xDataInputStreamReadUint16, "GIO", "g_data_input_stream_read_uint16", false) | |||
| 377 | var cerr *glib.Error | 394 | var cerr *glib.Error | ||
| 378 | 395 | ||||
| 379 | cret := xDataInputStreamReadUint16(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | 396 | cret := xDataInputStreamReadUint16(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | ||
| @@ -394,6 +411,7 @@ var xDataInputStreamReadUint32 func(uintptr, uintptr, **glib.Error) uint32 | |||||
| 394 | // triggering the cancellable object from another thread. If the operation | 411 | // triggering the cancellable object from another thread. If the operation | ||
| 395 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. | 412 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. | ||
| 396 | func (x *DataInputStream) ReadUint32(CancellableVar *Cancellable) (uint32, error) { | 413 | func (x *DataInputStream) ReadUint32(CancellableVar *Cancellable) (uint32, error) { | ||
| 414 | + | core.LazyRegister(&xDataInputStreamReadUint32, "GIO", "g_data_input_stream_read_uint32", false) | |||
| 397 | var cerr *glib.Error | 415 | var cerr *glib.Error | ||
| 398 | 416 | ||||
| 399 | cret := xDataInputStreamReadUint32(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | 417 | cret := xDataInputStreamReadUint32(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | ||
| @@ -414,6 +432,7 @@ var xDataInputStreamReadUint64 func(uintptr, uintptr, **glib.Error) uint64 | |||||
| 414 | // triggering the cancellable object from another thread. If the operation | 432 | // triggering the cancellable object from another thread. If the operation | ||
| 415 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. | 433 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. | ||
| 416 | func (x *DataInputStream) ReadUint64(CancellableVar *Cancellable) (uint64, error) { | 434 | func (x *DataInputStream) ReadUint64(CancellableVar *Cancellable) (uint64, error) { | ||
| 435 | + | core.LazyRegister(&xDataInputStreamReadUint64, "GIO", "g_data_input_stream_read_uint64", false) | |||
| 417 | var cerr *glib.Error | 436 | var cerr *glib.Error | ||
| 418 | 437 | ||||
| 419 | cret := xDataInputStreamReadUint64(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | 438 | cret := xDataInputStreamReadUint64(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | ||
| @@ -437,6 +456,7 @@ var xDataInputStreamReadUntil func(uintptr, string, *uint, uintptr, **glib.Error | |||||
| 437 | // g_data_input_stream_read_upto() instead, but note that that function | 456 | // g_data_input_stream_read_upto() instead, but note that that function | ||
| 438 | // does not consume the stop character. | 457 | // does not consume the stop character. | ||
| 439 | func (x *DataInputStream) ReadUntil(StopCharsVar string, LengthVar *uint, CancellableVar *Cancellable) (string, error) { | 458 | func (x *DataInputStream) ReadUntil(StopCharsVar string, LengthVar *uint, CancellableVar *Cancellable) (string, error) { | ||
| 459 | + | core.LazyRegister(&xDataInputStreamReadUntil, "GIO", "g_data_input_stream_read_until", false) | |||
| 440 | var cerr *glib.Error | 460 | var cerr *glib.Error | ||
| 441 | 461 | ||||
| 442 | cret := xDataInputStreamReadUntil(x.GoPointer(), StopCharsVar, LengthVar, CancellableVar.GoPointer(), &cerr) | 462 | cret := xDataInputStreamReadUntil(x.GoPointer(), StopCharsVar, LengthVar, CancellableVar.GoPointer(), &cerr) | ||
| @@ -464,6 +484,8 @@ var xDataInputStreamReadUntilAsync func(uintptr, string, int, uintptr, uintptr, | |||||
| 464 | // will be marked as deprecated in a future release. Use | 484 | // will be marked as deprecated in a future release. Use | ||
| 465 | // g_data_input_stream_read_upto_async() instead. | 485 | // g_data_input_stream_read_upto_async() instead. | ||
| 466 | func (x *DataInputStream) ReadUntilAsync(StopCharsVar string, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 486 | func (x *DataInputStream) ReadUntilAsync(StopCharsVar string, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 487 | + | core.LazyRegister(&xDataInputStreamReadUntilAsync, "GIO", "g_data_input_stream_read_until_async", false) | |||
| 488 | + | ||||
| 467 | xDataInputStreamReadUntilAsync(x.GoPointer(), StopCharsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | 489 | xDataInputStreamReadUntilAsync(x.GoPointer(), StopCharsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | ||
| 468 | } | 490 | } | ||
| 469 | 491 | ||||
| @@ -472,6 +494,7 @@ var xDataInputStreamReadUntilFinish func(uintptr, uintptr, *uint, **glib.Error) | |||||
| 472 | // Finish an asynchronous call started by | 494 | // Finish an asynchronous call started by | ||
| 473 | // g_data_input_stream_read_until_async(). | 495 | // g_data_input_stream_read_until_async(). | ||
| 474 | func (x *DataInputStream) ReadUntilFinish(ResultVar AsyncResult, LengthVar *uint) (string, error) { | 496 | func (x *DataInputStream) ReadUntilFinish(ResultVar AsyncResult, LengthVar *uint) (string, error) { | ||
| 497 | + | core.LazyRegister(&xDataInputStreamReadUntilFinish, "GIO", "g_data_input_stream_read_until_finish", false) | |||
| 475 | var cerr *glib.Error | 498 | var cerr *glib.Error | ||
| 476 | 499 | ||||
| 477 | cret := xDataInputStreamReadUntilFinish(x.GoPointer(), ResultVar.GoPointer(), LengthVar, &cerr) | 500 | cret := xDataInputStreamReadUntilFinish(x.GoPointer(), ResultVar.GoPointer(), LengthVar, &cerr) | ||
| @@ -496,6 +519,7 @@ var xDataInputStreamReadUpto func(uintptr, string, int, *uint, uintptr, **glib.E | |||||
| 496 | // | 519 | // | ||
| 497 | // The returned string will always be nul-terminated on success. | 520 | // The returned string will always be nul-terminated on success. | ||
| 498 | func (x *DataInputStream) ReadUpto(StopCharsVar string, StopCharsLenVar int, LengthVar *uint, CancellableVar *Cancellable) (string, error) { | 521 | func (x *DataInputStream) ReadUpto(StopCharsVar string, StopCharsLenVar int, LengthVar *uint, CancellableVar *Cancellable) (string, error) { | ||
| 522 | + | core.LazyRegister(&xDataInputStreamReadUpto, "GIO", "g_data_input_stream_read_upto", false) | |||
| 499 | var cerr *glib.Error | 523 | var cerr *glib.Error | ||
| 500 | 524 | ||||
| 501 | cret := xDataInputStreamReadUpto(x.GoPointer(), StopCharsVar, StopCharsLenVar, LengthVar, CancellableVar.GoPointer(), &cerr) | 525 | cret := xDataInputStreamReadUpto(x.GoPointer(), StopCharsVar, StopCharsLenVar, LengthVar, CancellableVar.GoPointer(), &cerr) | ||
| @@ -522,6 +546,8 @@ var xDataInputStreamReadUptoAsync func(uintptr, string, int, int, uintptr, uintp | |||||
| 522 | // can then call g_data_input_stream_read_upto_finish() to get | 546 | // can then call g_data_input_stream_read_upto_finish() to get | ||
| 523 | // the result of the operation. | 547 | // the result of the operation. | ||
| 524 | func (x *DataInputStream) ReadUptoAsync(StopCharsVar string, StopCharsLenVar int, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 548 | func (x *DataInputStream) ReadUptoAsync(StopCharsVar string, StopCharsLenVar int, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | ||
| 549 | + | core.LazyRegister(&xDataInputStreamReadUptoAsync, "GIO", "g_data_input_stream_read_upto_async", false) | |||
| 550 | + | ||||
| 525 | xDataInputStreamReadUptoAsync(x.GoPointer(), StopCharsVar, StopCharsLenVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | 551 | xDataInputStreamReadUptoAsync(x.GoPointer(), StopCharsVar, StopCharsLenVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | ||
| 526 | } | 552 | } | ||
| 527 | 553 | ||||
| @@ -536,6 +562,7 @@ var xDataInputStreamReadUptoFinish func(uintptr, uintptr, *uint, **glib.Error) s | |||||
| 536 | // | 562 | // | ||
| 537 | // The returned string will always be nul-terminated on success. | 563 | // The returned string will always be nul-terminated on success. | ||
| 538 | func (x *DataInputStream) ReadUptoFinish(ResultVar AsyncResult, LengthVar *uint) (string, error) { | 564 | func (x *DataInputStream) ReadUptoFinish(ResultVar AsyncResult, LengthVar *uint) (string, error) { | ||
| 565 | + | core.LazyRegister(&xDataInputStreamReadUptoFinish, "GIO", "g_data_input_stream_read_upto_finish", false) | |||
| 539 | var cerr *glib.Error | 566 | var cerr *glib.Error | ||
| 540 | 567 | ||||
| 541 | cret := xDataInputStreamReadUptoFinish(x.GoPointer(), ResultVar.GoPointer(), LengthVar, &cerr) | 568 | cret := xDataInputStreamReadUptoFinish(x.GoPointer(), ResultVar.GoPointer(), LengthVar, &cerr) | ||
| @@ -550,6 +577,8 @@ var xDataInputStreamSetByteOrder func(uintptr, DataStreamByteOrder) | |||||
| 550 | // This function sets the byte order for the given @stream. All subsequent | 577 | // This function sets the byte order for the given @stream. All subsequent | ||
| 551 | // reads from the @stream will be read in the given @order. | 578 | // reads from the @stream will be read in the given @order. | ||
| 552 | func (x *DataInputStream) SetByteOrder(OrderVar DataStreamByteOrder) { | 579 | func (x *DataInputStream) SetByteOrder(OrderVar DataStreamByteOrder) { | ||
| 580 | + | core.LazyRegister(&xDataInputStreamSetByteOrder, "GIO", "g_data_input_stream_set_byte_order", false) | |||
| 581 | + | ||||
| 553 | xDataInputStreamSetByteOrder(x.GoPointer(), OrderVar) | 582 | xDataInputStreamSetByteOrder(x.GoPointer(), OrderVar) | ||
| 554 | } | 583 | } | ||
| 555 | 584 | ||||
| @@ -561,6 +590,8 @@ var xDataInputStreamSetNewlineType func(uintptr, DataStreamNewlineType) | |||||
| 561 | // chunk ends in "CR" we must read an additional byte to know if this is "CR" or | 590 | // chunk ends in "CR" we must read an additional byte to know if this is "CR" or | ||
| 562 | // "CR LF", and this might block if there is no more data available. | 591 | // "CR LF", and this might block if there is no more data available. | ||
| 563 | func (x *DataInputStream) SetNewlineType(TypeVar DataStreamNewlineType) { | 592 | func (x *DataInputStream) SetNewlineType(TypeVar DataStreamNewlineType) { | ||
| 593 | + | core.LazyRegister(&xDataInputStreamSetNewlineType, "GIO", "g_data_input_stream_set_newline_type", false) | |||
| 594 | + | ||||
| 564 | xDataInputStreamSetNewlineType(x.GoPointer(), TypeVar) | 595 | xDataInputStreamSetNewlineType(x.GoPointer(), TypeVar) | ||
| 565 | } | 596 | } | ||
| 566 | 597 | ||||
| @@ -640,39 +671,4 @@ func (x *DataInputStream) Truncate(OffsetVar int64, CancellableVar *Cancellable) | |||||
| 640 | func init() { | 671 | func init() { | ||
| 641 | core.SetPackageName("GIO", "gio-2.0") | 672 | core.SetPackageName("GIO", "gio-2.0") | ||
| 642 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | 673 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | ||
| 643 | - | var libs []uintptr | |||
| 644 | - | for _, libPath := range core.GetPaths("GIO") { | |||
| 645 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 646 | - | if err != nil { | |||
| 647 | - | panic(err) | |||
| 648 | - | } | |||
| 649 | - | libs = append(libs, lib) | |||
| 650 | - | } | |||
| 651 | - | ||||
| 652 | - | core.PuregoSafeRegister(&xDataInputStreamGLibType, libs, "g_data_input_stream_get_type") | |||
| 653 | - | ||||
| 654 | - | core.PuregoSafeRegister(&xNewDataInputStream, libs, "g_data_input_stream_new") | |||
| 655 | - | ||||
| 656 | - | core.PuregoSafeRegister(&xDataInputStreamGetByteOrder, libs, "g_data_input_stream_get_byte_order") | |||
| 657 | - | core.PuregoSafeRegister(&xDataInputStreamGetNewlineType, libs, "g_data_input_stream_get_newline_type") | |||
| 658 | - | core.PuregoSafeRegister(&xDataInputStreamDataInputStreamReadByte, libs, "g_data_input_stream_read_byte") | |||
| 659 | - | core.PuregoSafeRegister(&xDataInputStreamReadInt16, libs, "g_data_input_stream_read_int16") | |||
| 660 | - | core.PuregoSafeRegister(&xDataInputStreamReadInt32, libs, "g_data_input_stream_read_int32") | |||
| 661 | - | core.PuregoSafeRegister(&xDataInputStreamReadInt64, libs, "g_data_input_stream_read_int64") | |||
| 662 | - | core.PuregoSafeRegister(&xDataInputStreamReadLine, libs, "g_data_input_stream_read_line") | |||
| 663 | - | core.PuregoSafeRegister(&xDataInputStreamReadLineAsync, libs, "g_data_input_stream_read_line_async") | |||
| 664 | - | core.PuregoSafeRegister(&xDataInputStreamReadLineFinish, libs, "g_data_input_stream_read_line_finish") | |||
| 665 | - | core.PuregoSafeRegister(&xDataInputStreamReadLineFinishUtf8, libs, "g_data_input_stream_read_line_finish_utf8") | |||
| 666 | - | core.PuregoSafeRegister(&xDataInputStreamReadLineUtf8, libs, "g_data_input_stream_read_line_utf8") | |||
| 667 | - | core.PuregoSafeRegister(&xDataInputStreamReadUint16, libs, "g_data_input_stream_read_uint16") | |||
| 668 | - | core.PuregoSafeRegister(&xDataInputStreamReadUint32, libs, "g_data_input_stream_read_uint32") | |||
| 669 | - | core.PuregoSafeRegister(&xDataInputStreamReadUint64, libs, "g_data_input_stream_read_uint64") | |||
| 670 | - | core.PuregoSafeRegister(&xDataInputStreamReadUntil, libs, "g_data_input_stream_read_until") | |||
| 671 | - | core.PuregoSafeRegister(&xDataInputStreamReadUntilAsync, libs, "g_data_input_stream_read_until_async") | |||
| 672 | - | core.PuregoSafeRegister(&xDataInputStreamReadUntilFinish, libs, "g_data_input_stream_read_until_finish") | |||
| 673 | - | core.PuregoSafeRegister(&xDataInputStreamReadUpto, libs, "g_data_input_stream_read_upto") | |||
| 674 | - | core.PuregoSafeRegister(&xDataInputStreamReadUptoAsync, libs, "g_data_input_stream_read_upto_async") | |||
| 675 | - | core.PuregoSafeRegister(&xDataInputStreamReadUptoFinish, libs, "g_data_input_stream_read_upto_finish") | |||
| 676 | - | core.PuregoSafeRegister(&xDataInputStreamSetByteOrder, libs, "g_data_input_stream_set_byte_order") | |||
| 677 | - | core.PuregoSafeRegister(&xDataInputStreamSetNewlineType, libs, "g_data_input_stream_set_newline_type") | |||
| 678 | } | 674 | } | ||