Revert "chore(deps): pin puregotk nil-signal fix"
This reverts commit a161e348e2093172038390b0906448f0ae979a0d.
- commit
- 40378d5e4fd2372d054e49168ab2a6f67aedd0fd
- author
- brice · · 2026-07-14 17:59 UTC
- parent
- 8d647bb
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
905 files · +25263 -27842
M go.mod +1 -1
| @@ -11,7 +11,7 @@ require ( | |||
| 11 | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | |
| 12 | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | |
| 13 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | |
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | |
| 14 | + | github.com/bnema/puregotk v0.7.0 | |
| 15 | 15 | github.com/charmbracelet/bubbles v1.0.0 | |
| 16 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | |
| 17 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | |
| @@ -11,7 +11,7 @@ require ( | |||||
| 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | ||
| 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | ||
| 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | ||
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | 14 | + | github.com/bnema/puregotk v0.7.0 |
| 15 | github.com/charmbracelet/bubbles v1.0.0 | 15 | github.com/charmbracelet/bubbles v1.0.0 | ||
| 16 | github.com/charmbracelet/bubbletea v1.3.10 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | ||
| 17 | github.com/charmbracelet/lipgloss v1.1.0 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | ||
M go.sum +0 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/internal/core/core.go +4 -197 generated file: collapsed
M vendor/github.com/bnema/puregotk/pkg/core/core.go +0 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-dialog.go +64 -99 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-window.go +62 -95 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-accent-color.go +15 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-action-row.go +29 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-alert-dialog.go +47 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-target.go +27 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-util.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation.go +26 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application-window.go +22 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-avatar.go +25 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-banner.go +26 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bin.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bottom-sheet.go +38 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint-bin.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint.go +37 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-content.go +22 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-row.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-dots.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-lines.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel.go +37 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-layout.go +20 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-scrollable.go +22 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp.go +22 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-combo-row.go +33 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-dialog.go +38 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-easing.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-entry-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-enum-list-model.go +22 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-expander-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-flap.go +48 -61 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-fold-threshold-policy.go +1 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-header-bar.go +33 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-inline-view-switcher.go +24 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout-slot.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout.go +17 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-leaflet.go +56 -69 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-length-unit.go +14 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-main.go +15 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-message-dialog.go +44 -63 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-multi-layout-view.go +23 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-direction.go +1 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-split-view.go +32 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-view.go +49 -60 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-overlay-split-view.go +38 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-password-entry-row.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-dialog.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-group.go +26 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-page.go +33 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-row.go +22 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-window.go +29 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcut-label.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-dialog.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-item.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-section.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-item.go +37 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-section.go +27 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar.go +39 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spin-row.go +34 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner-paintable.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-split-button.go +34 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-animation.go +30 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-params.go +21 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-squeezer.go +44 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-status-page.go +24 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-style-manager.go +28 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipe-tracker.go +30 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipeable.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-switch-row.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-bar.go +32 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-button.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-overview.go +37 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-view.go +87 -123 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-timed-animation.go +28 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast-overlay.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast.go +36 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toggle-group.go +51 -64 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toolbar-view.go +35 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-version.go +16 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-stack.go +62 -78 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-bar.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-sidebar.go +22 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-title.go +23 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher.go +20 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window-title.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window.go +22 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-box.go +46 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-layout.go +46 -57 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/cairo/main.go +79 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkapplaunchcontext.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairo.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairocontext.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcicpparams.go +25 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkclipboard.go +32 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcolorstate.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentdeserializer.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentformats.go +31 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentprovider.go +28 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentserializer.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcursor.go +21 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevice.go +33 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicepad.go +22 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicetool.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplay.go +43 -51 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplaymanager.go +20 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexture.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexturebuilder.go +41 -53 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrag.go +28 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurface.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurfacesize.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrawcontext.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrop.go +24 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkenums.go +1 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkevents.go +118 -120 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframeclock.go +24 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframetimings.go +20 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkglcontext.go +36 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexture.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexturebuilder.go +35 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkkeys.go +22 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexture.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexturebuilder.go +35 -42 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmonitor.go +27 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpaintable.go +33 -63 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpango.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpixbuf.go +12 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopup.go +26 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopuplayout.go +32 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkrgba.go +21 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkseat.go +20 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksnapshot.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksurface.go +40 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktexture.go +31 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevel.go +66 -157 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevellayout.go +25 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevelsize.go +16 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktypes.go +72 -95 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkvulkancontext.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-animation.go +32 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-core.go +0 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-io.go +23 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-loader.go +22 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-simple-anim.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-transform.go +1 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf.go +79 -102 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/main.go +17 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gaction.go +31 -59 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactiongroup.go +39 -96 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactionmap.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gappinfo.go +116 -244 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplication.go +55 -79 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplicationcommandline.go +27 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncinitable.go +22 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncresult.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedinputstream.go +29 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedoutputstream.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbytesicon.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcancellable.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcharsetconverter.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcontenttype.go +26 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverter.go +20 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverterinputstream.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverteroutputstream.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcredentials.go +21 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatagrambased.go +30 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatainputstream.go +35 -31
| @@ -179,7 +179,6 @@ 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) | |
| 183 | 182 | return xDataInputStreamGLibType() | |
| 184 | 183 | } | |
| 185 | 184 | ||
| @@ -193,7 +192,6 @@ var xNewDataInputStream func(uintptr) uintptr | |||
| 193 | 192 | ||
| 194 | 193 | // Creates a new data input stream for the @base_stream. | |
| 195 | 194 | func NewDataInputStream(BaseStreamVar *InputStream) *DataInputStream { | |
| 196 | - | core.LazyRegister(&xNewDataInputStream, "GIO", "g_data_input_stream_new", false) | |
| 197 | 195 | var cls *DataInputStream | |
| 198 | 196 | ||
| 199 | 197 | cret := xNewDataInputStream(BaseStreamVar.GoPointer()) | |
| @@ -210,8 +208,6 @@ var xDataInputStreamGetByteOrder func(uintptr) DataStreamByteOrder | |||
| 210 | 208 | ||
| 211 | 209 | // Gets the byte order for the data input stream. | |
| 212 | 210 | func (x *DataInputStream) GetByteOrder() DataStreamByteOrder { | |
| 213 | - | core.LazyRegister(&xDataInputStreamGetByteOrder, "GIO", "g_data_input_stream_get_byte_order", false) | |
| 214 | - | ||
| 215 | 211 | cret := xDataInputStreamGetByteOrder(x.GoPointer()) | |
| 216 | 212 | return cret | |
| 217 | 213 | } | |
| @@ -220,8 +216,6 @@ var xDataInputStreamGetNewlineType func(uintptr) DataStreamNewlineType | |||
| 220 | 216 | ||
| 221 | 217 | // Gets the current newline type for the @stream. | |
| 222 | 218 | func (x *DataInputStream) GetNewlineType() DataStreamNewlineType { | |
| 223 | - | core.LazyRegister(&xDataInputStreamGetNewlineType, "GIO", "g_data_input_stream_get_newline_type", false) | |
| 224 | - | ||
| 225 | 219 | cret := xDataInputStreamGetNewlineType(x.GoPointer()) | |
| 226 | 220 | return cret | |
| 227 | 221 | } | |
| @@ -230,7 +224,6 @@ var xDataInputStreamDataInputStreamReadByte func(uintptr, uintptr, **glib.Error) | |||
| 230 | 224 | ||
| 231 | 225 | // Reads an unsigned 8-bit/1-byte value from @stream. | |
| 232 | 226 | func (x *DataInputStream) DataInputStreamReadByte(CancellableVar *Cancellable) (byte, error) { | |
| 233 | - | core.LazyRegister(&xDataInputStreamDataInputStreamReadByte, "GIO", "g_data_input_stream_read_byte", false) | |
| 234 | 227 | var cerr *glib.Error | |
| 235 | 228 | ||
| 236 | 229 | cret := xDataInputStreamDataInputStreamReadByte(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| @@ -247,7 +240,6 @@ var xDataInputStreamReadInt16 func(uintptr, uintptr, **glib.Error) int16 | |||
| 247 | 240 | // In order to get the correct byte order for this read operation, | |
| 248 | 241 | // see g_data_input_stream_get_byte_order() and g_data_input_stream_set_byte_order(). | |
| 249 | 242 | func (x *DataInputStream) ReadInt16(CancellableVar *Cancellable) (int16, error) { | |
| 250 | - | core.LazyRegister(&xDataInputStreamReadInt16, "GIO", "g_data_input_stream_read_int16", false) | |
| 251 | 243 | var cerr *glib.Error | |
| 252 | 244 | ||
| 253 | 245 | cret := xDataInputStreamReadInt16(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| @@ -268,7 +260,6 @@ var xDataInputStreamReadInt32 func(uintptr, uintptr, **glib.Error) int32 | |||
| 268 | 260 | // triggering the cancellable object from another thread. If the operation | |
| 269 | 261 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. | |
| 270 | 262 | func (x *DataInputStream) ReadInt32(CancellableVar *Cancellable) (int32, error) { | |
| 271 | - | core.LazyRegister(&xDataInputStreamReadInt32, "GIO", "g_data_input_stream_read_int32", false) | |
| 272 | 263 | var cerr *glib.Error | |
| 273 | 264 | ||
| 274 | 265 | cret := xDataInputStreamReadInt32(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| @@ -289,7 +280,6 @@ var xDataInputStreamReadInt64 func(uintptr, uintptr, **glib.Error) int64 | |||
| 289 | 280 | // triggering the cancellable object from another thread. If the operation | |
| 290 | 281 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. | |
| 291 | 282 | func (x *DataInputStream) ReadInt64(CancellableVar *Cancellable) (int64, error) { | |
| 292 | - | core.LazyRegister(&xDataInputStreamReadInt64, "GIO", "g_data_input_stream_read_int64", false) | |
| 293 | 283 | var cerr *glib.Error | |
| 294 | 284 | ||
| 295 | 285 | cret := xDataInputStreamReadInt64(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| @@ -309,7 +299,6 @@ var xDataInputStreamReadLine func(uintptr, *uint, uintptr, **glib.Error) uintptr | |||
| 309 | 299 | // triggering the cancellable object from another thread. If the operation | |
| 310 | 300 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. | |
| 311 | 301 | func (x *DataInputStream) ReadLine(LengthVar *uint, CancellableVar *Cancellable) (uintptr, error) { | |
| 312 | - | core.LazyRegister(&xDataInputStreamReadLine, "GIO", "g_data_input_stream_read_line", false) | |
| 313 | 302 | var cerr *glib.Error | |
| 314 | 303 | ||
| 315 | 304 | cret := xDataInputStreamReadLine(x.GoPointer(), LengthVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -328,8 +317,6 @@ var xDataInputStreamReadLineAsync func(uintptr, int, uintptr, uintptr, uintptr) | |||
| 328 | 317 | // can then call g_data_input_stream_read_line_finish() to get | |
| 329 | 318 | // the result of the operation. | |
| 330 | 319 | 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 | - | ||
| 333 | 320 | xDataInputStreamReadLineAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 334 | 321 | } | |
| 335 | 322 | ||
| @@ -340,7 +327,6 @@ var xDataInputStreamReadLineFinish func(uintptr, uintptr, *uint, **glib.Error) u | |||
| 340 | 327 | // string encoding in g_data_input_stream_read_line() applies here as | |
| 341 | 328 | // well. | |
| 342 | 329 | func (x *DataInputStream) ReadLineFinish(ResultVar AsyncResult, LengthVar *uint) (uintptr, error) { | |
| 343 | - | core.LazyRegister(&xDataInputStreamReadLineFinish, "GIO", "g_data_input_stream_read_line_finish", false) | |
| 344 | 330 | var cerr *glib.Error | |
| 345 | 331 | ||
| 346 | 332 | cret := xDataInputStreamReadLineFinish(x.GoPointer(), ResultVar.GoPointer(), LengthVar, &cerr) | |
| @@ -355,7 +341,6 @@ var xDataInputStreamReadLineFinishUtf8 func(uintptr, uintptr, *uint, **glib.Erro | |||
| 355 | 341 | // Finish an asynchronous call started by | |
| 356 | 342 | // g_data_input_stream_read_line_async(). | |
| 357 | 343 | func (x *DataInputStream) ReadLineFinishUtf8(ResultVar AsyncResult, LengthVar *uint) (string, error) { | |
| 358 | - | core.LazyRegister(&xDataInputStreamReadLineFinishUtf8, "GIO", "g_data_input_stream_read_line_finish_utf8", false) | |
| 359 | 344 | var cerr *glib.Error | |
| 360 | 345 | ||
| 361 | 346 | cret := xDataInputStreamReadLineFinishUtf8(x.GoPointer(), ResultVar.GoPointer(), LengthVar, &cerr) | |
| @@ -373,7 +358,6 @@ var xDataInputStreamReadLineUtf8 func(uintptr, *uint, uintptr, **glib.Error) str | |||
| 373 | 358 | // triggering the cancellable object from another thread. If the operation | |
| 374 | 359 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. | |
| 375 | 360 | func (x *DataInputStream) ReadLineUtf8(LengthVar *uint, CancellableVar *Cancellable) (string, error) { | |
| 376 | - | core.LazyRegister(&xDataInputStreamReadLineUtf8, "GIO", "g_data_input_stream_read_line_utf8", false) | |
| 377 | 361 | var cerr *glib.Error | |
| 378 | 362 | ||
| 379 | 363 | cret := xDataInputStreamReadLineUtf8(x.GoPointer(), LengthVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -390,7 +374,6 @@ var xDataInputStreamReadUint16 func(uintptr, uintptr, **glib.Error) uint16 | |||
| 390 | 374 | // In order to get the correct byte order for this read operation, | |
| 391 | 375 | // see g_data_input_stream_get_byte_order() and g_data_input_stream_set_byte_order(). | |
| 392 | 376 | func (x *DataInputStream) ReadUint16(CancellableVar *Cancellable) (uint16, error) { | |
| 393 | - | core.LazyRegister(&xDataInputStreamReadUint16, "GIO", "g_data_input_stream_read_uint16", false) | |
| 394 | 377 | var cerr *glib.Error | |
| 395 | 378 | ||
| 396 | 379 | cret := xDataInputStreamReadUint16(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| @@ -411,7 +394,6 @@ var xDataInputStreamReadUint32 func(uintptr, uintptr, **glib.Error) uint32 | |||
| 411 | 394 | // triggering the cancellable object from another thread. If the operation | |
| 412 | 395 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. | |
| 413 | 396 | func (x *DataInputStream) ReadUint32(CancellableVar *Cancellable) (uint32, error) { | |
| 414 | - | core.LazyRegister(&xDataInputStreamReadUint32, "GIO", "g_data_input_stream_read_uint32", false) | |
| 415 | 397 | var cerr *glib.Error | |
| 416 | 398 | ||
| 417 | 399 | cret := xDataInputStreamReadUint32(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| @@ -432,7 +414,6 @@ var xDataInputStreamReadUint64 func(uintptr, uintptr, **glib.Error) uint64 | |||
| 432 | 414 | // triggering the cancellable object from another thread. If the operation | |
| 433 | 415 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. | |
| 434 | 416 | func (x *DataInputStream) ReadUint64(CancellableVar *Cancellable) (uint64, error) { | |
| 435 | - | core.LazyRegister(&xDataInputStreamReadUint64, "GIO", "g_data_input_stream_read_uint64", false) | |
| 436 | 417 | var cerr *glib.Error | |
| 437 | 418 | ||
| 438 | 419 | cret := xDataInputStreamReadUint64(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| @@ -456,7 +437,6 @@ var xDataInputStreamReadUntil func(uintptr, string, *uint, uintptr, **glib.Error | |||
| 456 | 437 | // g_data_input_stream_read_upto() instead, but note that that function | |
| 457 | 438 | // does not consume the stop character. | |
| 458 | 439 | func (x *DataInputStream) ReadUntil(StopCharsVar string, LengthVar *uint, CancellableVar *Cancellable) (string, error) { | |
| 459 | - | core.LazyRegister(&xDataInputStreamReadUntil, "GIO", "g_data_input_stream_read_until", false) | |
| 460 | 440 | var cerr *glib.Error | |
| 461 | 441 | ||
| 462 | 442 | cret := xDataInputStreamReadUntil(x.GoPointer(), StopCharsVar, LengthVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -484,8 +464,6 @@ var xDataInputStreamReadUntilAsync func(uintptr, string, int, uintptr, uintptr, | |||
| 484 | 464 | // will be marked as deprecated in a future release. Use | |
| 485 | 465 | // g_data_input_stream_read_upto_async() instead. | |
| 486 | 466 | 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 | - | ||
| 489 | 467 | xDataInputStreamReadUntilAsync(x.GoPointer(), StopCharsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 490 | 468 | } | |
| 491 | 469 | ||
| @@ -494,7 +472,6 @@ var xDataInputStreamReadUntilFinish func(uintptr, uintptr, *uint, **glib.Error) | |||
| 494 | 472 | // Finish an asynchronous call started by | |
| 495 | 473 | // g_data_input_stream_read_until_async(). | |
| 496 | 474 | func (x *DataInputStream) ReadUntilFinish(ResultVar AsyncResult, LengthVar *uint) (string, error) { | |
| 497 | - | core.LazyRegister(&xDataInputStreamReadUntilFinish, "GIO", "g_data_input_stream_read_until_finish", false) | |
| 498 | 475 | var cerr *glib.Error | |
| 499 | 476 | ||
| 500 | 477 | cret := xDataInputStreamReadUntilFinish(x.GoPointer(), ResultVar.GoPointer(), LengthVar, &cerr) | |
| @@ -519,7 +496,6 @@ var xDataInputStreamReadUpto func(uintptr, string, int, *uint, uintptr, **glib.E | |||
| 519 | 496 | // | |
| 520 | 497 | // The returned string will always be nul-terminated on success. | |
| 521 | 498 | 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) | |
| 523 | 499 | var cerr *glib.Error | |
| 524 | 500 | ||
| 525 | 501 | cret := xDataInputStreamReadUpto(x.GoPointer(), StopCharsVar, StopCharsLenVar, LengthVar, CancellableVar.GoPointer(), &cerr) | |
| @@ -546,8 +522,6 @@ var xDataInputStreamReadUptoAsync func(uintptr, string, int, int, uintptr, uintp | |||
| 546 | 522 | // can then call g_data_input_stream_read_upto_finish() to get | |
| 547 | 523 | // the result of the operation. | |
| 548 | 524 | 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 | - | ||
| 551 | 525 | xDataInputStreamReadUptoAsync(x.GoPointer(), StopCharsVar, StopCharsLenVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | |
| 552 | 526 | } | |
| 553 | 527 | ||
| @@ -562,7 +536,6 @@ var xDataInputStreamReadUptoFinish func(uintptr, uintptr, *uint, **glib.Error) s | |||
| 562 | 536 | // | |
| 563 | 537 | // The returned string will always be nul-terminated on success. | |
| 564 | 538 | func (x *DataInputStream) ReadUptoFinish(ResultVar AsyncResult, LengthVar *uint) (string, error) { | |
| 565 | - | core.LazyRegister(&xDataInputStreamReadUptoFinish, "GIO", "g_data_input_stream_read_upto_finish", false) | |
| 566 | 539 | var cerr *glib.Error | |
| 567 | 540 | ||
| 568 | 541 | cret := xDataInputStreamReadUptoFinish(x.GoPointer(), ResultVar.GoPointer(), LengthVar, &cerr) | |
| @@ -577,8 +550,6 @@ var xDataInputStreamSetByteOrder func(uintptr, DataStreamByteOrder) | |||
| 577 | 550 | // This function sets the byte order for the given @stream. All subsequent | |
| 578 | 551 | // reads from the @stream will be read in the given @order. | |
| 579 | 552 | func (x *DataInputStream) SetByteOrder(OrderVar DataStreamByteOrder) { | |
| 580 | - | core.LazyRegister(&xDataInputStreamSetByteOrder, "GIO", "g_data_input_stream_set_byte_order", false) | |
| 581 | - | ||
| 582 | 553 | xDataInputStreamSetByteOrder(x.GoPointer(), OrderVar) | |
| 583 | 554 | } | |
| 584 | 555 | ||
| @@ -590,8 +561,6 @@ var xDataInputStreamSetNewlineType func(uintptr, DataStreamNewlineType) | |||
| 590 | 561 | // chunk ends in "CR" we must read an additional byte to know if this is "CR" or | |
| 591 | 562 | // "CR LF", and this might block if there is no more data available. | |
| 592 | 563 | func (x *DataInputStream) SetNewlineType(TypeVar DataStreamNewlineType) { | |
| 593 | - | core.LazyRegister(&xDataInputStreamSetNewlineType, "GIO", "g_data_input_stream_set_newline_type", false) | |
| 594 | - | ||
| 595 | 564 | xDataInputStreamSetNewlineType(x.GoPointer(), TypeVar) | |
| 596 | 565 | } | |
| 597 | 566 | ||
| @@ -671,4 +640,39 @@ func (x *DataInputStream) Truncate(OffsetVar int64, CancellableVar *Cancellable) | |||
| 671 | 640 | func init() { | |
| 672 | 641 | core.SetPackageName("GIO", "gio-2.0") | |
| 673 | 642 | 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") | |
| 674 | 678 | } | |
| @@ -179,7 +179,6 @@ 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) | |||
| 183 | return xDataInputStreamGLibType() | 182 | return xDataInputStreamGLibType() | ||
| 184 | } | 183 | } | ||
| 185 | 184 | ||||
| @@ -193,7 +192,6 @@ var xNewDataInputStream func(uintptr) uintptr | |||||
| 193 | 192 | ||||
| 194 | // Creates a new data input stream for the @base_stream. | 193 | // Creates a new data input stream for the @base_stream. | ||
| 195 | func NewDataInputStream(BaseStreamVar *InputStream) *DataInputStream { | 194 | func NewDataInputStream(BaseStreamVar *InputStream) *DataInputStream { | ||
| 196 | - | core.LazyRegister(&xNewDataInputStream, "GIO", "g_data_input_stream_new", false) | |||
| 197 | var cls *DataInputStream | 195 | var cls *DataInputStream | ||
| 198 | 196 | ||||
| 199 | cret := xNewDataInputStream(BaseStreamVar.GoPointer()) | 197 | cret := xNewDataInputStream(BaseStreamVar.GoPointer()) | ||
| @@ -210,8 +208,6 @@ var xDataInputStreamGetByteOrder func(uintptr) DataStreamByteOrder | |||||
| 210 | 208 | ||||
| 211 | // Gets the byte order for the data input stream. | 209 | // Gets the byte order for the data input stream. | ||
| 212 | func (x *DataInputStream) GetByteOrder() DataStreamByteOrder { | 210 | func (x *DataInputStream) GetByteOrder() DataStreamByteOrder { | ||
| 213 | - | core.LazyRegister(&xDataInputStreamGetByteOrder, "GIO", "g_data_input_stream_get_byte_order", false) | |||
| 214 | - | ||||
| 215 | cret := xDataInputStreamGetByteOrder(x.GoPointer()) | 211 | cret := xDataInputStreamGetByteOrder(x.GoPointer()) | ||
| 216 | return cret | 212 | return cret | ||
| 217 | } | 213 | } | ||
| @@ -220,8 +216,6 @@ var xDataInputStreamGetNewlineType func(uintptr) DataStreamNewlineType | |||||
| 220 | 216 | ||||
| 221 | // Gets the current newline type for the @stream. | 217 | // Gets the current newline type for the @stream. | ||
| 222 | func (x *DataInputStream) GetNewlineType() DataStreamNewlineType { | 218 | func (x *DataInputStream) GetNewlineType() DataStreamNewlineType { | ||
| 223 | - | core.LazyRegister(&xDataInputStreamGetNewlineType, "GIO", "g_data_input_stream_get_newline_type", false) | |||
| 224 | - | ||||
| 225 | cret := xDataInputStreamGetNewlineType(x.GoPointer()) | 219 | cret := xDataInputStreamGetNewlineType(x.GoPointer()) | ||
| 226 | return cret | 220 | return cret | ||
| 227 | } | 221 | } | ||
| @@ -230,7 +224,6 @@ var xDataInputStreamDataInputStreamReadByte func(uintptr, uintptr, **glib.Error) | |||||
| 230 | 224 | ||||
| 231 | // Reads an unsigned 8-bit/1-byte value from @stream. | 225 | // Reads an unsigned 8-bit/1-byte value from @stream. | ||
| 232 | func (x *DataInputStream) DataInputStreamReadByte(CancellableVar *Cancellable) (byte, error) { | 226 | func (x *DataInputStream) DataInputStreamReadByte(CancellableVar *Cancellable) (byte, error) { | ||
| 233 | - | core.LazyRegister(&xDataInputStreamDataInputStreamReadByte, "GIO", "g_data_input_stream_read_byte", false) | |||
| 234 | var cerr *glib.Error | 227 | var cerr *glib.Error | ||
| 235 | 228 | ||||
| 236 | cret := xDataInputStreamDataInputStreamReadByte(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | 229 | cret := xDataInputStreamDataInputStreamReadByte(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | ||
| @@ -247,7 +240,6 @@ var xDataInputStreamReadInt16 func(uintptr, uintptr, **glib.Error) int16 | |||||
| 247 | // In order to get the correct byte order for this read operation, | 240 | // In order to get the correct byte order for this read operation, | ||
| 248 | // see g_data_input_stream_get_byte_order() and g_data_input_stream_set_byte_order(). | 241 | // see g_data_input_stream_get_byte_order() and g_data_input_stream_set_byte_order(). | ||
| 249 | func (x *DataInputStream) ReadInt16(CancellableVar *Cancellable) (int16, error) { | 242 | func (x *DataInputStream) ReadInt16(CancellableVar *Cancellable) (int16, error) { | ||
| 250 | - | core.LazyRegister(&xDataInputStreamReadInt16, "GIO", "g_data_input_stream_read_int16", false) | |||
| 251 | var cerr *glib.Error | 243 | var cerr *glib.Error | ||
| 252 | 244 | ||||
| 253 | cret := xDataInputStreamReadInt16(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | 245 | cret := xDataInputStreamReadInt16(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | ||
| @@ -268,7 +260,6 @@ var xDataInputStreamReadInt32 func(uintptr, uintptr, **glib.Error) int32 | |||||
| 268 | // triggering the cancellable object from another thread. If the operation | 260 | // triggering the cancellable object from another thread. If the operation | ||
| 269 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. | 261 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. | ||
| 270 | func (x *DataInputStream) ReadInt32(CancellableVar *Cancellable) (int32, error) { | 262 | func (x *DataInputStream) ReadInt32(CancellableVar *Cancellable) (int32, error) { | ||
| 271 | - | core.LazyRegister(&xDataInputStreamReadInt32, "GIO", "g_data_input_stream_read_int32", false) | |||
| 272 | var cerr *glib.Error | 263 | var cerr *glib.Error | ||
| 273 | 264 | ||||
| 274 | cret := xDataInputStreamReadInt32(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | 265 | cret := xDataInputStreamReadInt32(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | ||
| @@ -289,7 +280,6 @@ var xDataInputStreamReadInt64 func(uintptr, uintptr, **glib.Error) int64 | |||||
| 289 | // triggering the cancellable object from another thread. If the operation | 280 | // triggering the cancellable object from another thread. If the operation | ||
| 290 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. | 281 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. | ||
| 291 | func (x *DataInputStream) ReadInt64(CancellableVar *Cancellable) (int64, error) { | 282 | func (x *DataInputStream) ReadInt64(CancellableVar *Cancellable) (int64, error) { | ||
| 292 | - | core.LazyRegister(&xDataInputStreamReadInt64, "GIO", "g_data_input_stream_read_int64", false) | |||
| 293 | var cerr *glib.Error | 283 | var cerr *glib.Error | ||
| 294 | 284 | ||||
| 295 | cret := xDataInputStreamReadInt64(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | 285 | cret := xDataInputStreamReadInt64(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | ||
| @@ -309,7 +299,6 @@ var xDataInputStreamReadLine func(uintptr, *uint, uintptr, **glib.Error) uintptr | |||||
| 309 | // triggering the cancellable object from another thread. If the operation | 299 | // triggering the cancellable object from another thread. If the operation | ||
| 310 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. | 300 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. | ||
| 311 | func (x *DataInputStream) ReadLine(LengthVar *uint, CancellableVar *Cancellable) (uintptr, error) { | 301 | func (x *DataInputStream) ReadLine(LengthVar *uint, CancellableVar *Cancellable) (uintptr, error) { | ||
| 312 | - | core.LazyRegister(&xDataInputStreamReadLine, "GIO", "g_data_input_stream_read_line", false) | |||
| 313 | var cerr *glib.Error | 302 | var cerr *glib.Error | ||
| 314 | 303 | ||||
| 315 | cret := xDataInputStreamReadLine(x.GoPointer(), LengthVar, CancellableVar.GoPointer(), &cerr) | 304 | cret := xDataInputStreamReadLine(x.GoPointer(), LengthVar, CancellableVar.GoPointer(), &cerr) | ||
| @@ -328,8 +317,6 @@ var xDataInputStreamReadLineAsync func(uintptr, int, uintptr, uintptr, uintptr) | |||||
| 328 | // can then call g_data_input_stream_read_line_finish() to get | 317 | // can then call g_data_input_stream_read_line_finish() to get | ||
| 329 | // the result of the operation. | 318 | // the result of the operation. | ||
| 330 | func (x *DataInputStream) ReadLineAsync(IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 319 | 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 | - | ||||
| 333 | xDataInputStreamReadLineAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | 320 | xDataInputStreamReadLineAsync(x.GoPointer(), IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | ||
| 334 | } | 321 | } | ||
| 335 | 322 | ||||
| @@ -340,7 +327,6 @@ var xDataInputStreamReadLineFinish func(uintptr, uintptr, *uint, **glib.Error) u | |||||
| 340 | // string encoding in g_data_input_stream_read_line() applies here as | 327 | // string encoding in g_data_input_stream_read_line() applies here as | ||
| 341 | // well. | 328 | // well. | ||
| 342 | func (x *DataInputStream) ReadLineFinish(ResultVar AsyncResult, LengthVar *uint) (uintptr, error) { | 329 | func (x *DataInputStream) ReadLineFinish(ResultVar AsyncResult, LengthVar *uint) (uintptr, error) { | ||
| 343 | - | core.LazyRegister(&xDataInputStreamReadLineFinish, "GIO", "g_data_input_stream_read_line_finish", false) | |||
| 344 | var cerr *glib.Error | 330 | var cerr *glib.Error | ||
| 345 | 331 | ||||
| 346 | cret := xDataInputStreamReadLineFinish(x.GoPointer(), ResultVar.GoPointer(), LengthVar, &cerr) | 332 | cret := xDataInputStreamReadLineFinish(x.GoPointer(), ResultVar.GoPointer(), LengthVar, &cerr) | ||
| @@ -355,7 +341,6 @@ var xDataInputStreamReadLineFinishUtf8 func(uintptr, uintptr, *uint, **glib.Erro | |||||
| 355 | // Finish an asynchronous call started by | 341 | // Finish an asynchronous call started by | ||
| 356 | // g_data_input_stream_read_line_async(). | 342 | // g_data_input_stream_read_line_async(). | ||
| 357 | func (x *DataInputStream) ReadLineFinishUtf8(ResultVar AsyncResult, LengthVar *uint) (string, error) { | 343 | func (x *DataInputStream) ReadLineFinishUtf8(ResultVar AsyncResult, LengthVar *uint) (string, error) { | ||
| 358 | - | core.LazyRegister(&xDataInputStreamReadLineFinishUtf8, "GIO", "g_data_input_stream_read_line_finish_utf8", false) | |||
| 359 | var cerr *glib.Error | 344 | var cerr *glib.Error | ||
| 360 | 345 | ||||
| 361 | cret := xDataInputStreamReadLineFinishUtf8(x.GoPointer(), ResultVar.GoPointer(), LengthVar, &cerr) | 346 | cret := xDataInputStreamReadLineFinishUtf8(x.GoPointer(), ResultVar.GoPointer(), LengthVar, &cerr) | ||
| @@ -373,7 +358,6 @@ var xDataInputStreamReadLineUtf8 func(uintptr, *uint, uintptr, **glib.Error) str | |||||
| 373 | // triggering the cancellable object from another thread. If the operation | 358 | // triggering the cancellable object from another thread. If the operation | ||
| 374 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. | 359 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. | ||
| 375 | func (x *DataInputStream) ReadLineUtf8(LengthVar *uint, CancellableVar *Cancellable) (string, error) { | 360 | func (x *DataInputStream) ReadLineUtf8(LengthVar *uint, CancellableVar *Cancellable) (string, error) { | ||
| 376 | - | core.LazyRegister(&xDataInputStreamReadLineUtf8, "GIO", "g_data_input_stream_read_line_utf8", false) | |||
| 377 | var cerr *glib.Error | 361 | var cerr *glib.Error | ||
| 378 | 362 | ||||
| 379 | cret := xDataInputStreamReadLineUtf8(x.GoPointer(), LengthVar, CancellableVar.GoPointer(), &cerr) | 363 | cret := xDataInputStreamReadLineUtf8(x.GoPointer(), LengthVar, CancellableVar.GoPointer(), &cerr) | ||
| @@ -390,7 +374,6 @@ var xDataInputStreamReadUint16 func(uintptr, uintptr, **glib.Error) uint16 | |||||
| 390 | // In order to get the correct byte order for this read operation, | 374 | // In order to get the correct byte order for this read operation, | ||
| 391 | // see g_data_input_stream_get_byte_order() and g_data_input_stream_set_byte_order(). | 375 | // see g_data_input_stream_get_byte_order() and g_data_input_stream_set_byte_order(). | ||
| 392 | func (x *DataInputStream) ReadUint16(CancellableVar *Cancellable) (uint16, error) { | 376 | func (x *DataInputStream) ReadUint16(CancellableVar *Cancellable) (uint16, error) { | ||
| 393 | - | core.LazyRegister(&xDataInputStreamReadUint16, "GIO", "g_data_input_stream_read_uint16", false) | |||
| 394 | var cerr *glib.Error | 377 | var cerr *glib.Error | ||
| 395 | 378 | ||||
| 396 | cret := xDataInputStreamReadUint16(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | 379 | cret := xDataInputStreamReadUint16(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | ||
| @@ -411,7 +394,6 @@ var xDataInputStreamReadUint32 func(uintptr, uintptr, **glib.Error) uint32 | |||||
| 411 | // triggering the cancellable object from another thread. If the operation | 394 | // triggering the cancellable object from another thread. If the operation | ||
| 412 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. | 395 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. | ||
| 413 | func (x *DataInputStream) ReadUint32(CancellableVar *Cancellable) (uint32, error) { | 396 | func (x *DataInputStream) ReadUint32(CancellableVar *Cancellable) (uint32, error) { | ||
| 414 | - | core.LazyRegister(&xDataInputStreamReadUint32, "GIO", "g_data_input_stream_read_uint32", false) | |||
| 415 | var cerr *glib.Error | 397 | var cerr *glib.Error | ||
| 416 | 398 | ||||
| 417 | cret := xDataInputStreamReadUint32(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | 399 | cret := xDataInputStreamReadUint32(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | ||
| @@ -432,7 +414,6 @@ var xDataInputStreamReadUint64 func(uintptr, uintptr, **glib.Error) uint64 | |||||
| 432 | // triggering the cancellable object from another thread. If the operation | 414 | // triggering the cancellable object from another thread. If the operation | ||
| 433 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. | 415 | // was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. | ||
| 434 | func (x *DataInputStream) ReadUint64(CancellableVar *Cancellable) (uint64, error) { | 416 | func (x *DataInputStream) ReadUint64(CancellableVar *Cancellable) (uint64, error) { | ||
| 435 | - | core.LazyRegister(&xDataInputStreamReadUint64, "GIO", "g_data_input_stream_read_uint64", false) | |||
| 436 | var cerr *glib.Error | 417 | var cerr *glib.Error | ||
| 437 | 418 | ||||
| 438 | cret := xDataInputStreamReadUint64(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | 419 | cret := xDataInputStreamReadUint64(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | ||
| @@ -456,7 +437,6 @@ var xDataInputStreamReadUntil func(uintptr, string, *uint, uintptr, **glib.Error | |||||
| 456 | // g_data_input_stream_read_upto() instead, but note that that function | 437 | // g_data_input_stream_read_upto() instead, but note that that function | ||
| 457 | // does not consume the stop character. | 438 | // does not consume the stop character. | ||
| 458 | func (x *DataInputStream) ReadUntil(StopCharsVar string, LengthVar *uint, CancellableVar *Cancellable) (string, error) { | 439 | func (x *DataInputStream) ReadUntil(StopCharsVar string, LengthVar *uint, CancellableVar *Cancellable) (string, error) { | ||
| 459 | - | core.LazyRegister(&xDataInputStreamReadUntil, "GIO", "g_data_input_stream_read_until", false) | |||
| 460 | var cerr *glib.Error | 440 | var cerr *glib.Error | ||
| 461 | 441 | ||||
| 462 | cret := xDataInputStreamReadUntil(x.GoPointer(), StopCharsVar, LengthVar, CancellableVar.GoPointer(), &cerr) | 442 | cret := xDataInputStreamReadUntil(x.GoPointer(), StopCharsVar, LengthVar, CancellableVar.GoPointer(), &cerr) | ||
| @@ -484,8 +464,6 @@ var xDataInputStreamReadUntilAsync func(uintptr, string, int, uintptr, uintptr, | |||||
| 484 | // will be marked as deprecated in a future release. Use | 464 | // will be marked as deprecated in a future release. Use | ||
| 485 | // g_data_input_stream_read_upto_async() instead. | 465 | // g_data_input_stream_read_upto_async() instead. | ||
| 486 | func (x *DataInputStream) ReadUntilAsync(StopCharsVar string, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 466 | 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 | - | ||||
| 489 | xDataInputStreamReadUntilAsync(x.GoPointer(), StopCharsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | 467 | xDataInputStreamReadUntilAsync(x.GoPointer(), StopCharsVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | ||
| 490 | } | 468 | } | ||
| 491 | 469 | ||||
| @@ -494,7 +472,6 @@ var xDataInputStreamReadUntilFinish func(uintptr, uintptr, *uint, **glib.Error) | |||||
| 494 | // Finish an asynchronous call started by | 472 | // Finish an asynchronous call started by | ||
| 495 | // g_data_input_stream_read_until_async(). | 473 | // g_data_input_stream_read_until_async(). | ||
| 496 | func (x *DataInputStream) ReadUntilFinish(ResultVar AsyncResult, LengthVar *uint) (string, error) { | 474 | func (x *DataInputStream) ReadUntilFinish(ResultVar AsyncResult, LengthVar *uint) (string, error) { | ||
| 497 | - | core.LazyRegister(&xDataInputStreamReadUntilFinish, "GIO", "g_data_input_stream_read_until_finish", false) | |||
| 498 | var cerr *glib.Error | 475 | var cerr *glib.Error | ||
| 499 | 476 | ||||
| 500 | cret := xDataInputStreamReadUntilFinish(x.GoPointer(), ResultVar.GoPointer(), LengthVar, &cerr) | 477 | cret := xDataInputStreamReadUntilFinish(x.GoPointer(), ResultVar.GoPointer(), LengthVar, &cerr) | ||
| @@ -519,7 +496,6 @@ var xDataInputStreamReadUpto func(uintptr, string, int, *uint, uintptr, **glib.E | |||||
| 519 | // | 496 | // | ||
| 520 | // The returned string will always be nul-terminated on success. | 497 | // The returned string will always be nul-terminated on success. | ||
| 521 | func (x *DataInputStream) ReadUpto(StopCharsVar string, StopCharsLenVar int, LengthVar *uint, CancellableVar *Cancellable) (string, error) { | 498 | 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) | |||
| 523 | var cerr *glib.Error | 499 | var cerr *glib.Error | ||
| 524 | 500 | ||||
| 525 | cret := xDataInputStreamReadUpto(x.GoPointer(), StopCharsVar, StopCharsLenVar, LengthVar, CancellableVar.GoPointer(), &cerr) | 501 | cret := xDataInputStreamReadUpto(x.GoPointer(), StopCharsVar, StopCharsLenVar, LengthVar, CancellableVar.GoPointer(), &cerr) | ||
| @@ -546,8 +522,6 @@ var xDataInputStreamReadUptoAsync func(uintptr, string, int, int, uintptr, uintp | |||||
| 546 | // can then call g_data_input_stream_read_upto_finish() to get | 522 | // can then call g_data_input_stream_read_upto_finish() to get | ||
| 547 | // the result of the operation. | 523 | // the result of the operation. | ||
| 548 | func (x *DataInputStream) ReadUptoAsync(StopCharsVar string, StopCharsLenVar int, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) { | 524 | 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 | - | ||||
| 551 | xDataInputStreamReadUptoAsync(x.GoPointer(), StopCharsVar, StopCharsLenVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | 525 | xDataInputStreamReadUptoAsync(x.GoPointer(), StopCharsVar, StopCharsLenVar, IoPriorityVar, CancellableVar.GoPointer(), glib.NewCallbackNullable(CallbackVar), UserDataVar) | ||
| 552 | } | 526 | } | ||
| 553 | 527 | ||||
| @@ -562,7 +536,6 @@ var xDataInputStreamReadUptoFinish func(uintptr, uintptr, *uint, **glib.Error) s | |||||
| 562 | // | 536 | // | ||
| 563 | // The returned string will always be nul-terminated on success. | 537 | // The returned string will always be nul-terminated on success. | ||
| 564 | func (x *DataInputStream) ReadUptoFinish(ResultVar AsyncResult, LengthVar *uint) (string, error) { | 538 | func (x *DataInputStream) ReadUptoFinish(ResultVar AsyncResult, LengthVar *uint) (string, error) { | ||
| 565 | - | core.LazyRegister(&xDataInputStreamReadUptoFinish, "GIO", "g_data_input_stream_read_upto_finish", false) | |||
| 566 | var cerr *glib.Error | 539 | var cerr *glib.Error | ||
| 567 | 540 | ||||
| 568 | cret := xDataInputStreamReadUptoFinish(x.GoPointer(), ResultVar.GoPointer(), LengthVar, &cerr) | 541 | cret := xDataInputStreamReadUptoFinish(x.GoPointer(), ResultVar.GoPointer(), LengthVar, &cerr) | ||
| @@ -577,8 +550,6 @@ var xDataInputStreamSetByteOrder func(uintptr, DataStreamByteOrder) | |||||
| 577 | // This function sets the byte order for the given @stream. All subsequent | 550 | // This function sets the byte order for the given @stream. All subsequent | ||
| 578 | // reads from the @stream will be read in the given @order. | 551 | // reads from the @stream will be read in the given @order. | ||
| 579 | func (x *DataInputStream) SetByteOrder(OrderVar DataStreamByteOrder) { | 552 | func (x *DataInputStream) SetByteOrder(OrderVar DataStreamByteOrder) { | ||
| 580 | - | core.LazyRegister(&xDataInputStreamSetByteOrder, "GIO", "g_data_input_stream_set_byte_order", false) | |||
| 581 | - | ||||
| 582 | xDataInputStreamSetByteOrder(x.GoPointer(), OrderVar) | 553 | xDataInputStreamSetByteOrder(x.GoPointer(), OrderVar) | ||
| 583 | } | 554 | } | ||
| 584 | 555 | ||||
| @@ -590,8 +561,6 @@ var xDataInputStreamSetNewlineType func(uintptr, DataStreamNewlineType) | |||||
| 590 | // chunk ends in "CR" we must read an additional byte to know if this is "CR" or | 561 | // chunk ends in "CR" we must read an additional byte to know if this is "CR" or | ||
| 591 | // "CR LF", and this might block if there is no more data available. | 562 | // "CR LF", and this might block if there is no more data available. | ||
| 592 | func (x *DataInputStream) SetNewlineType(TypeVar DataStreamNewlineType) { | 563 | func (x *DataInputStream) SetNewlineType(TypeVar DataStreamNewlineType) { | ||
| 593 | - | core.LazyRegister(&xDataInputStreamSetNewlineType, "GIO", "g_data_input_stream_set_newline_type", false) | |||
| 594 | - | ||||
| 595 | xDataInputStreamSetNewlineType(x.GoPointer(), TypeVar) | 564 | xDataInputStreamSetNewlineType(x.GoPointer(), TypeVar) | ||
| 596 | } | 565 | } | ||
| 597 | 566 | ||||
| @@ -671,4 +640,39 @@ func (x *DataInputStream) Truncate(OffsetVar int64, CancellableVar *Cancellable) | |||||
| 671 | func init() { | 640 | func init() { | ||
| 672 | core.SetPackageName("GIO", "gio-2.0") | 641 | core.SetPackageName("GIO", "gio-2.0") | ||
| 673 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | 642 | 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") | |||
| 674 | } | 678 | } | ||