Merge pull request #350 from bnema/fix/repin-fixed-puregotk
fix(deps): validate puregotk lazy registration fix
907 files · +27874 -25296
M go.mod +3 -1
| @@ -11,7 +11,7 @@ require ( | |||
| 11 | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | |
| 12 | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | |
| 13 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | |
| 14 | - | github.com/bnema/puregotk v0.7.0 | |
| 14 | + | github.com/bnema/puregotk v0.7.1-0.20260714200603-7370c78950ef | |
| 15 | 15 | github.com/charmbracelet/bubbles v1.0.0 | |
| 16 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | |
| 17 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | |
| @@ -47,6 +47,7 @@ require ( | |||
| 47 | 47 | github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect | |
| 48 | 48 | github.com/fatih/color v1.19.0 // indirect | |
| 49 | 49 | github.com/go-viper/mapstructure/v2 v2.5.0 // indirect | |
| 50 | + | github.com/google/go-cmp v0.7.0 // indirect | |
| 50 | 51 | github.com/inconshreveable/mousetrap v1.1.0 // indirect | |
| 51 | 52 | github.com/lucasb-eyer/go-colorful v1.4.0 // indirect | |
| 52 | 53 | github.com/mattn/go-colorable v0.1.14 // indirect | |
| @@ -80,6 +81,7 @@ require ( | |||
| 80 | 81 | golang.org/x/text v0.40.0 // indirect | |
| 81 | 82 | golang.org/x/tools v0.47.0 // indirect | |
| 82 | 83 | gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect | |
| 84 | + | mvdan.cc/gofumpt v0.9.2 // indirect | |
| 83 | 85 | ) | |
| 84 | 86 | ||
| 85 | 87 | tool github.com/a-h/templ/cmd/templ | |
| @@ -11,7 +11,7 @@ require ( | |||||
| 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | ||
| 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | ||
| 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | ||
| 14 | - | github.com/bnema/puregotk v0.7.0 | 14 | + | github.com/bnema/puregotk v0.7.1-0.20260714200603-7370c78950ef |
| 15 | github.com/charmbracelet/bubbles v1.0.0 | 15 | github.com/charmbracelet/bubbles v1.0.0 | ||
| 16 | github.com/charmbracelet/bubbletea v1.3.10 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | ||
| 17 | github.com/charmbracelet/lipgloss v1.1.0 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | ||
| @@ -47,6 +47,7 @@ require ( | |||||
| 47 | github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect | 47 | github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect | ||
| 48 | github.com/fatih/color v1.19.0 // indirect | 48 | github.com/fatih/color v1.19.0 // indirect | ||
| 49 | github.com/go-viper/mapstructure/v2 v2.5.0 // indirect | 49 | github.com/go-viper/mapstructure/v2 v2.5.0 // indirect | ||
| 50 | + | github.com/google/go-cmp v0.7.0 // indirect | |||
| 50 | github.com/inconshreveable/mousetrap v1.1.0 // indirect | 51 | github.com/inconshreveable/mousetrap v1.1.0 // indirect | ||
| 51 | github.com/lucasb-eyer/go-colorful v1.4.0 // indirect | 52 | github.com/lucasb-eyer/go-colorful v1.4.0 // indirect | ||
| 52 | github.com/mattn/go-colorable v0.1.14 // indirect | 53 | github.com/mattn/go-colorable v0.1.14 // indirect | ||
| @@ -80,6 +81,7 @@ require ( | |||||
| 80 | golang.org/x/text v0.40.0 // indirect | 81 | golang.org/x/text v0.40.0 // indirect | ||
| 81 | golang.org/x/tools v0.47.0 // indirect | 82 | golang.org/x/tools v0.47.0 // indirect | ||
| 82 | gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect | 83 | gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect | ||
| 84 | + | mvdan.cc/gofumpt v0.9.2 // indirect | |||
| 83 | ) | 85 | ) | ||
| 84 | 86 | ||||
| 85 | tool github.com/a-h/templ/cmd/templ | 87 | tool github.com/a-h/templ/cmd/templ | ||
M go.sum +4 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/internal/core/core.go +197 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/pkg/core/core.go +10 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-dialog.go +99 -64 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-window.go +95 -62 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-accent-color.go +7 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-action-row.go +33 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-alert-dialog.go +66 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-target.go +10 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-util.go +4 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation.go +24 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application-window.go +14 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application.go +3 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-avatar.go +22 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-banner.go +23 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bin.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bottom-sheet.go +47 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint-bin.go +10 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint.go +33 -37 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-content.go +18 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-row.go +10 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-dots.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-lines.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel.go +47 -37 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-layout.go +14 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-scrollable.go +17 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp.go +17 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-combo-row.go +34 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-dialog.go +45 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-easing.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-entry-row.go +40 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-enum-list-model.go +13 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-expander-row.go +40 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-flap.go +61 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-fold-threshold-policy.go +10 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-header-bar.go +36 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-inline-view-switcher.go +18 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout-slot.go +4 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout.go +7 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-leaflet.go +69 -56 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-length-unit.go +5 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-main.go +5 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-message-dialog.go +63 -44 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-multi-layout-view.go +17 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-direction.go +10 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-split-view.go +36 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-view.go +60 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-overlay-split-view.go +48 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-password-entry-row.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-dialog.go +23 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-group.go +24 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-page.go +38 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-row.go +18 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-window.go +31 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcut-label.go +10 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-dialog.go +4 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-item.go +23 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-section.go +8 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-item.go +45 -37 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-section.go +24 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar.go +41 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spin-row.go +40 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner-paintable.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-split-button.go +39 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-animation.go +34 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-params.go +17 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-squeezer.go +49 -44 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-status-page.go +20 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-style-manager.go +25 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipe-tracker.go +33 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipeable.go +33 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-switch-row.go +6 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-bar.go +35 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-button.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-overview.go +45 -37 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-view.go +123 -87 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-timed-animation.go +30 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast-overlay.go +9 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast.go +41 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toggle-group.go +64 -51 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toolbar-view.go +40 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-version.go +7 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-stack.go +78 -62 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-bar.go +9 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-sidebar.go +15 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-title.go +19 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher.go +10 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window-title.go +10 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window.go +14 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-box.go +66 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-layout.go +57 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/cairo/main.go +36 -79 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkapplaunchcontext.go +10 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairo.go +12 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairocontext.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcicpparams.go +20 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkclipboard.go +34 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcolorstate.go +12 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentdeserializer.go +26 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentformats.go +28 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentprovider.go +23 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentserializer.go +26 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcursor.go +12 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevice.go +36 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicepad.go +27 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicetool.go +10 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplay.go +51 -43 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplaymanager.go +10 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexture.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexturebuilder.go +53 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexturebuilder_extra.go +6 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrag.go +20 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurface.go +6 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurfacesize.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrawcontext.go +11 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrop.go +19 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkenums.go +21 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkevents.go +120 -118 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframeclock.go +22 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframetimings.go +17 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkglcontext.go +40 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexture.go +4 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexturebuilder.go +41 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkkeys.go +19 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexture.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexturebuilder.go +42 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmonitor.go +27 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpaintable.go +63 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpango.go +4 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpixbuf.go +2 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopup.go +47 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopuplayout.go +36 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkrgba.go +19 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkseat.go +11 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksnapshot.go +7 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksurface.go +46 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktexture.go +27 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevel.go +157 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevellayout.go +24 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevelsize.go +9 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktypes.go +95 -72 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkvulkancontext.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-animation.go +26 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-core.go +9 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-io.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-loader.go +13 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-simple-anim.go +8 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-transform.go +11 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf.go +102 -79 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/main.go +5 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gaction.go +59 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactiongroup.go +96 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactionmap.go +33 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gappinfo.go +244 -116 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplication.go +79 -55 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplicationcommandline.go +31 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncinitable.go +25 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncresult.go +26 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedinputstream.go +26 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedoutputstream.go +11 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbytesicon.go +4 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcancellable.go +26 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcharsetconverter.go +8 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcontenttype.go +30 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverter.go +23 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverterinputstream.go +3 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverteroutputstream.go +3 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcredentials.go +12 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatagrambased.go +45 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatainputstream.go +31 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdataoutputstream.go +14 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusactiongroup.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusaddress.go +10 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusauthobserver.go +6 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusconnection.go +77 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbuserror.go +16 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusinterface.go +26 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusinterfaceskeleton.go +25 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusintrospection.go +54 -56 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmenumodel.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmessage.go +88 -64 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmethodinvocation.go +35 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusnameowning.go +10 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusnamewatching.go +10 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobject.go +19 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanager.go +26 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerclient.go +16 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerserver.go +13 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectproxy.go +3 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectskeleton.go +12 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusproxy.go +42 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusserver.go +14 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusutils.go +24 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdebugcontroller.go +12 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdebugcontrollerdbus.go +4 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdrive.go +214 -82
| @@ -443,7 +443,7 @@ func (x *DriveIface) OverrideEjectFinish(cb func(Drive, AsyncResult) bool) { | |||
| 443 | 443 | if cb == nil { | |
| 444 | 444 | x.xEjectFinish = 0 | |
| 445 | 445 | } else { | |
| 446 | - | x.xEjectFinish = purego.NewCallback(func(DriveVarp uintptr, ResultVarp uintptr) bool { | |
| 446 | + | x.xEjectFinish = purego.NewCallback(func(DriveVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) bool { | |
| 447 | 447 | return cb(&DriveBase{Ptr: DriveVarp}, &AsyncResultBase{Ptr: ResultVarp}) | |
| 448 | 448 | }) | |
| 449 | 449 | } | |
| @@ -455,10 +455,11 @@ func (x *DriveIface) GetEjectFinish() func(Drive, AsyncResult) bool { | |||
| 455 | 455 | if x.xEjectFinish == 0 { | |
| 456 | 456 | return nil | |
| 457 | 457 | } | |
| 458 | - | var rawCallback func(DriveVarp uintptr, ResultVarp uintptr) bool | |
| 458 | + | var rawCallback func(DriveVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) bool | |
| 459 | 459 | purego.RegisterFunc(&rawCallback, x.xEjectFinish) | |
| 460 | 460 | return func(DriveVar Drive, ResultVar AsyncResult) bool { | |
| 461 | - | return rawCallback(DriveVar.GoPointer(), ResultVar.GoPointer()) | |
| 461 | + | var cerr *glib.Error | |
| 462 | + | return rawCallback(DriveVar.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 462 | 463 | } | |
| 463 | 464 | } | |
| 464 | 465 | ||
| @@ -493,7 +494,7 @@ func (x *DriveIface) OverridePollForMediaFinish(cb func(Drive, AsyncResult) bool | |||
| 493 | 494 | if cb == nil { | |
| 494 | 495 | x.xPollForMediaFinish = 0 | |
| 495 | 496 | } else { | |
| 496 | - | x.xPollForMediaFinish = purego.NewCallback(func(DriveVarp uintptr, ResultVarp uintptr) bool { | |
| 497 | + | x.xPollForMediaFinish = purego.NewCallback(func(DriveVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) bool { | |
| 497 | 498 | return cb(&DriveBase{Ptr: DriveVarp}, &AsyncResultBase{Ptr: ResultVarp}) | |
| 498 | 499 | }) | |
| 499 | 500 | } | |
| @@ -505,10 +506,11 @@ func (x *DriveIface) GetPollForMediaFinish() func(Drive, AsyncResult) bool { | |||
| 505 | 506 | if x.xPollForMediaFinish == 0 { | |
| 506 | 507 | return nil | |
| 507 | 508 | } | |
| 508 | - | var rawCallback func(DriveVarp uintptr, ResultVarp uintptr) bool | |
| 509 | + | var rawCallback func(DriveVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) bool | |
| 509 | 510 | purego.RegisterFunc(&rawCallback, x.xPollForMediaFinish) | |
| 510 | 511 | return func(DriveVar Drive, ResultVar AsyncResult) bool { | |
| 511 | - | return rawCallback(DriveVar.GoPointer(), ResultVar.GoPointer()) | |
| 512 | + | var cerr *glib.Error | |
| 513 | + | return rawCallback(DriveVar.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 512 | 514 | } | |
| 513 | 515 | } | |
| 514 | 516 | ||
| @@ -676,7 +678,7 @@ func (x *DriveIface) OverrideStartFinish(cb func(Drive, AsyncResult) bool) { | |||
| 676 | 678 | if cb == nil { | |
| 677 | 679 | x.xStartFinish = 0 | |
| 678 | 680 | } else { | |
| 679 | - | x.xStartFinish = purego.NewCallback(func(DriveVarp uintptr, ResultVarp uintptr) bool { | |
| 681 | + | x.xStartFinish = purego.NewCallback(func(DriveVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) bool { | |
| 680 | 682 | return cb(&DriveBase{Ptr: DriveVarp}, &AsyncResultBase{Ptr: ResultVarp}) | |
| 681 | 683 | }) | |
| 682 | 684 | } | |
| @@ -688,10 +690,11 @@ func (x *DriveIface) GetStartFinish() func(Drive, AsyncResult) bool { | |||
| 688 | 690 | if x.xStartFinish == 0 { | |
| 689 | 691 | return nil | |
| 690 | 692 | } | |
| 691 | - | var rawCallback func(DriveVarp uintptr, ResultVarp uintptr) bool | |
| 693 | + | var rawCallback func(DriveVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) bool | |
| 692 | 694 | purego.RegisterFunc(&rawCallback, x.xStartFinish) | |
| 693 | 695 | return func(DriveVar Drive, ResultVar AsyncResult) bool { | |
| 694 | - | return rawCallback(DriveVar.GoPointer(), ResultVar.GoPointer()) | |
| 696 | + | var cerr *glib.Error | |
| 697 | + | return rawCallback(DriveVar.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 695 | 698 | } | |
| 696 | 699 | } | |
| 697 | 700 | ||
| @@ -751,7 +754,7 @@ func (x *DriveIface) OverrideStopFinish(cb func(Drive, AsyncResult) bool) { | |||
| 751 | 754 | if cb == nil { | |
| 752 | 755 | x.xStopFinish = 0 | |
| 753 | 756 | } else { | |
| 754 | - | x.xStopFinish = purego.NewCallback(func(DriveVarp uintptr, ResultVarp uintptr) bool { | |
| 757 | + | x.xStopFinish = purego.NewCallback(func(DriveVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) bool { | |
| 755 | 758 | return cb(&DriveBase{Ptr: DriveVarp}, &AsyncResultBase{Ptr: ResultVarp}) | |
| 756 | 759 | }) | |
| 757 | 760 | } | |
| @@ -763,10 +766,11 @@ func (x *DriveIface) GetStopFinish() func(Drive, AsyncResult) bool { | |||
| 763 | 766 | if x.xStopFinish == 0 { | |
| 764 | 767 | return nil | |
| 765 | 768 | } | |
| 766 | - | var rawCallback func(DriveVarp uintptr, ResultVarp uintptr) bool | |
| 769 | + | var rawCallback func(DriveVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) bool | |
| 767 | 770 | purego.RegisterFunc(&rawCallback, x.xStopFinish) | |
| 768 | 771 | return func(DriveVar Drive, ResultVar AsyncResult) bool { | |
| 769 | - | return rawCallback(DriveVar.GoPointer(), ResultVar.GoPointer()) | |
| 772 | + | var cerr *glib.Error | |
| 773 | + | return rawCallback(DriveVar.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 770 | 774 | } | |
| 771 | 775 | } | |
| 772 | 776 | ||
| @@ -826,7 +830,7 @@ func (x *DriveIface) OverrideEjectWithOperationFinish(cb func(Drive, AsyncResult | |||
| 826 | 830 | if cb == nil { | |
| 827 | 831 | x.xEjectWithOperationFinish = 0 | |
| 828 | 832 | } else { | |
| 829 | - | x.xEjectWithOperationFinish = purego.NewCallback(func(DriveVarp uintptr, ResultVarp uintptr) bool { | |
| 833 | + | x.xEjectWithOperationFinish = purego.NewCallback(func(DriveVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) bool { | |
| 830 | 834 | return cb(&DriveBase{Ptr: DriveVarp}, &AsyncResultBase{Ptr: ResultVarp}) | |
| 831 | 835 | }) | |
| 832 | 836 | } | |
| @@ -838,10 +842,11 @@ func (x *DriveIface) GetEjectWithOperationFinish() func(Drive, AsyncResult) bool | |||
| 838 | 842 | if x.xEjectWithOperationFinish == 0 { | |
| 839 | 843 | return nil | |
| 840 | 844 | } | |
| 841 | - | var rawCallback func(DriveVarp uintptr, ResultVarp uintptr) bool | |
| 845 | + | var rawCallback func(DriveVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) bool | |
| 842 | 846 | purego.RegisterFunc(&rawCallback, x.xEjectWithOperationFinish) | |
| 843 | 847 | return func(DriveVar Drive, ResultVar AsyncResult) bool { | |
| 844 | - | return rawCallback(DriveVar.GoPointer(), ResultVar.GoPointer()) | |
| 848 | + | var cerr *glib.Error | |
| 849 | + | return rawCallback(DriveVar.GoPointer(), ResultVar.GoPointer(), &cerr) | |
| 845 | 850 | } | |
| 846 | 851 | } | |
| 847 | 852 | ||
| @@ -992,6 +997,7 @@ type Drive interface { | |||
| 992 | 997 | var xDriveGLibType func() types.GType | |
| 993 | 998 | ||
| 994 | 999 | func DriveGLibType() types.GType { | |
| 1000 | + | core.LazyRegister(&xDriveGLibType, "GIO", "g_drive_get_type", false) | |
| 995 | 1001 | return xDriveGLibType() | |
| 996 | 1002 | } | |
| 997 | 1003 | ||
| @@ -1246,36 +1252,201 @@ func (x *DriveBase) StopFinish(ResultVar AsyncResult) (bool, error) { | |||
| 1246 | 1252 | return cret, cerr | |
| 1247 | 1253 | } | |
| 1248 | 1254 | ||
| 1255 | + | var XGDriveCanEject func(uintptr) bool = func(instance uintptr) bool { | |
| 1256 | + | core.LazyRegister(&xXGDriveCanEject, "GIO", "g_drive_can_eject", false) | |
| 1257 | + | return xXGDriveCanEject(instance) | |
| 1258 | + | } | |
| 1259 | + | ||
| 1260 | + | var ( | |
| 1261 | + | xXGDriveCanEject func(uintptr) bool | |
| 1262 | + | XGDriveCanPollForMedia func(uintptr) bool = func(instance uintptr) bool { | |
| 1263 | + | core.LazyRegister(&xXGDriveCanPollForMedia, "GIO", "g_drive_can_poll_for_media", false) | |
| 1264 | + | return xXGDriveCanPollForMedia(instance) | |
| 1265 | + | } | |
| 1266 | + | ) | |
| 1267 | + | var ( | |
| 1268 | + | xXGDriveCanPollForMedia func(uintptr) bool | |
| 1269 | + | XGDriveCanStart func(uintptr) bool = func(instance uintptr) bool { | |
| 1270 | + | core.LazyRegister(&xXGDriveCanStart, "GIO", "g_drive_can_start", false) | |
| 1271 | + | return xXGDriveCanStart(instance) | |
| 1272 | + | } | |
| 1273 | + | ) | |
| 1274 | + | var ( | |
| 1275 | + | xXGDriveCanStart func(uintptr) bool | |
| 1276 | + | XGDriveCanStartDegraded func(uintptr) bool = func(instance uintptr) bool { | |
| 1277 | + | core.LazyRegister(&xXGDriveCanStartDegraded, "GIO", "g_drive_can_start_degraded", false) | |
| 1278 | + | return xXGDriveCanStartDegraded(instance) | |
| 1279 | + | } | |
| 1280 | + | ) | |
| 1281 | + | var ( | |
| 1282 | + | xXGDriveCanStartDegraded func(uintptr) bool | |
| 1283 | + | XGDriveCanStop func(uintptr) bool = func(instance uintptr) bool { | |
| 1284 | + | core.LazyRegister(&xXGDriveCanStop, "GIO", "g_drive_can_stop", false) | |
| 1285 | + | return xXGDriveCanStop(instance) | |
| 1286 | + | } | |
| 1287 | + | ) | |
| 1288 | + | var ( | |
| 1289 | + | xXGDriveCanStop func(uintptr) bool | |
| 1290 | + | XGDriveEject func(uintptr, MountUnmountFlags, uintptr, uintptr, uintptr) = func(instance uintptr, FlagsVarp MountUnmountFlags, CancellableVarp uintptr, CallbackVarp uintptr, UserDataVarp uintptr) { | |
| 1291 | + | core.LazyRegister(&xXGDriveEject, "GIO", "g_drive_eject", false) | |
| 1292 | + | xXGDriveEject(instance, FlagsVarp, CancellableVarp, CallbackVarp, UserDataVarp) | |
| 1293 | + | } | |
| 1294 | + | ) | |
| 1295 | + | var ( | |
| 1296 | + | xXGDriveEject func(uintptr, MountUnmountFlags, uintptr, uintptr, uintptr) | |
| 1297 | + | XGDriveEjectFinish func(uintptr, uintptr, **glib.Error) bool = func(instance uintptr, ResultVarp uintptr, cerrp **glib.Error) bool { | |
| 1298 | + | core.LazyRegister(&xXGDriveEjectFinish, "GIO", "g_drive_eject_finish", false) | |
| 1299 | + | return xXGDriveEjectFinish(instance, ResultVarp, cerrp) | |
| 1300 | + | } | |
| 1301 | + | ) | |
| 1302 | + | var ( | |
| 1303 | + | xXGDriveEjectFinish func(uintptr, uintptr, **glib.Error) bool | |
| 1304 | + | XGDriveEjectWithOperation func(uintptr, MountUnmountFlags, uintptr, uintptr, uintptr, uintptr) = func(instance uintptr, FlagsVarp MountUnmountFlags, MountOperationVarp uintptr, CancellableVarp uintptr, CallbackVarp uintptr, UserDataVarp uintptr) { | |
| 1305 | + | core.LazyRegister(&xXGDriveEjectWithOperation, "GIO", "g_drive_eject_with_operation", false) | |
| 1306 | + | xXGDriveEjectWithOperation(instance, FlagsVarp, MountOperationVarp, CancellableVarp, CallbackVarp, UserDataVarp) | |
| 1307 | + | } | |
| 1308 | + | ) | |
| 1309 | + | var ( | |
| 1310 | + | xXGDriveEjectWithOperation func(uintptr, MountUnmountFlags, uintptr, uintptr, uintptr, uintptr) | |
| 1311 | + | XGDriveEjectWithOperationFinish func(uintptr, uintptr, **glib.Error) bool = func(instance uintptr, ResultVarp uintptr, cerrp **glib.Error) bool { | |
| 1312 | + | core.LazyRegister(&xXGDriveEjectWithOperationFinish, "GIO", "g_drive_eject_with_operation_finish", false) | |
| 1313 | + | return xXGDriveEjectWithOperationFinish(instance, ResultVarp, cerrp) | |
| 1314 | + | } | |
| 1315 | + | ) | |
| 1316 | + | var ( | |
| 1317 | + | xXGDriveEjectWithOperationFinish func(uintptr, uintptr, **glib.Error) bool | |
| 1318 | + | XGDriveEnumerateIdentifiers func(uintptr) []string = func(instance uintptr) []string { | |
| 1319 | + | core.LazyRegister(&xXGDriveEnumerateIdentifiers, "GIO", "g_drive_enumerate_identifiers", false) | |
| 1320 | + | return xXGDriveEnumerateIdentifiers(instance) | |
| 1321 | + | } | |
| 1322 | + | ) | |
| 1323 | + | var ( | |
| 1324 | + | xXGDriveEnumerateIdentifiers func(uintptr) []string | |
| 1325 | + | XGDriveGetIcon func(uintptr) uintptr = func(instance uintptr) uintptr { | |
| 1326 | + | core.LazyRegister(&xXGDriveGetIcon, "GIO", "g_drive_get_icon", false) | |
| 1327 | + | return xXGDriveGetIcon(instance) | |
| 1328 | + | } | |
| 1329 | + | ) | |
| 1330 | + | var ( | |
| 1331 | + | xXGDriveGetIcon func(uintptr) uintptr | |
| 1332 | + | XGDriveGetIdentifier func(uintptr, string) string = func(instance uintptr, KindVarp string) string { | |
| 1333 | + | core.LazyRegister(&xXGDriveGetIdentifier, "GIO", "g_drive_get_identifier", false) | |
| 1334 | + | return xXGDriveGetIdentifier(instance, KindVarp) | |
| 1335 | + | } | |
| 1336 | + | ) | |
| 1337 | + | var ( | |
| 1338 | + | xXGDriveGetIdentifier func(uintptr, string) string | |
| 1339 | + | XGDriveGetName func(uintptr) string = func(instance uintptr) string { | |
| 1340 | + | core.LazyRegister(&xXGDriveGetName, "GIO", "g_drive_get_name", false) | |
| 1341 | + | return xXGDriveGetName(instance) | |
| 1342 | + | } | |
| 1343 | + | ) | |
| 1344 | + | var ( | |
| 1345 | + | xXGDriveGetName func(uintptr) string | |
| 1346 | + | XGDriveGetSortKey func(uintptr) string = func(instance uintptr) string { | |
| 1347 | + | core.LazyRegister(&xXGDriveGetSortKey, "GIO", "g_drive_get_sort_key", false) | |
| 1348 | + | return xXGDriveGetSortKey(instance) | |
| 1349 | + | } | |
| 1350 | + | ) | |
| 1249 | 1351 | var ( | |
| 1250 | - | XGDriveCanEject func(uintptr) bool | |
| 1251 | - | XGDriveCanPollForMedia func(uintptr) bool | |
| 1252 | - | XGDriveCanStart func(uintptr) bool | |
| 1253 | - | XGDriveCanStartDegraded func(uintptr) bool | |
| 1254 | - | XGDriveCanStop func(uintptr) bool | |
| 1255 | - | XGDriveEject func(uintptr, MountUnmountFlags, uintptr, uintptr, uintptr) | |
| 1256 | - | XGDriveEjectFinish func(uintptr, uintptr, **glib.Error) bool | |
| 1257 | - | XGDriveEjectWithOperation func(uintptr, MountUnmountFlags, uintptr, uintptr, uintptr, uintptr) | |
| 1258 | - | XGDriveEjectWithOperationFinish func(uintptr, uintptr, **glib.Error) bool | |
| 1259 | - | XGDriveEnumerateIdentifiers func(uintptr) []string | |
| 1260 | - | XGDriveGetIcon func(uintptr) uintptr | |
| 1261 | - | XGDriveGetIdentifier func(uintptr, string) string | |
| 1262 | - | XGDriveGetName func(uintptr) string | |
| 1263 | - | XGDriveGetSortKey func(uintptr) string | |
| 1264 | - | XGDriveGetStartStopType func(uintptr) DriveStartStopType | |
| 1265 | - | XGDriveGetSymbolicIcon func(uintptr) uintptr | |
| 1266 | - | XGDriveGetVolumes func(uintptr) uintptr | |
| 1267 | - | XGDriveHasMedia func(uintptr) bool | |
| 1268 | - | XGDriveHasVolumes func(uintptr) bool | |
| 1269 | - | XGDriveIsMediaCheckAutomatic func(uintptr) bool | |
| 1270 | - | XGDriveIsMediaRemovable func(uintptr) bool | |
| 1271 | - | XGDriveIsRemovable func(uintptr) bool | |
| 1272 | - | XGDrivePollForMedia func(uintptr, uintptr, uintptr, uintptr) | |
| 1273 | - | XGDrivePollForMediaFinish func(uintptr, uintptr, **glib.Error) bool | |
| 1274 | - | XGDriveStart func(uintptr, DriveStartFlags, uintptr, uintptr, uintptr, uintptr) | |
| 1275 | - | XGDriveStartFinish func(uintptr, uintptr, **glib.Error) bool | |
| 1276 | - | XGDriveStop func(uintptr, MountUnmountFlags, uintptr, uintptr, uintptr, uintptr) | |
| 1277 | - | XGDriveStopFinish func(uintptr, uintptr, **glib.Error) bool | |
| 1352 | + | xXGDriveGetSortKey func(uintptr) string | |
| 1353 | + | XGDriveGetStartStopType func(uintptr) DriveStartStopType = func(instance uintptr) DriveStartStopType { | |
| 1354 | + | core.LazyRegister(&xXGDriveGetStartStopType, "GIO", "g_drive_get_start_stop_type", false) | |
| 1355 | + | return xXGDriveGetStartStopType(instance) | |
| 1356 | + | } | |
| 1357 | + | ) | |
| 1358 | + | var ( | |
| 1359 | + | xXGDriveGetStartStopType func(uintptr) DriveStartStopType | |
| 1360 | + | XGDriveGetSymbolicIcon func(uintptr) uintptr = func(instance uintptr) uintptr { | |
| 1361 | + | core.LazyRegister(&xXGDriveGetSymbolicIcon, "GIO", "g_drive_get_symbolic_icon", false) | |
| 1362 | + | return xXGDriveGetSymbolicIcon(instance) | |
| 1363 | + | } | |
| 1278 | 1364 | ) | |
| 1365 | + | var ( | |
| 1366 | + | xXGDriveGetSymbolicIcon func(uintptr) uintptr | |
| 1367 | + | XGDriveGetVolumes func(uintptr) uintptr = func(instance uintptr) uintptr { | |
| 1368 | + | core.LazyRegister(&xXGDriveGetVolumes, "GIO", "g_drive_get_volumes", false) | |
| 1369 | + | return xXGDriveGetVolumes(instance) | |
| 1370 | + | } | |
| 1371 | + | ) | |
| 1372 | + | var ( | |
| 1373 | + | xXGDriveGetVolumes func(uintptr) uintptr | |
| 1374 | + | XGDriveHasMedia func(uintptr) bool = func(instance uintptr) bool { | |
| 1375 | + | core.LazyRegister(&xXGDriveHasMedia, "GIO", "g_drive_has_media", false) | |
| 1376 | + | return xXGDriveHasMedia(instance) | |
| 1377 | + | } | |
| 1378 | + | ) | |
| 1379 | + | var ( | |
| 1380 | + | xXGDriveHasMedia func(uintptr) bool | |
| 1381 | + | XGDriveHasVolumes func(uintptr) bool = func(instance uintptr) bool { | |
| 1382 | + | core.LazyRegister(&xXGDriveHasVolumes, "GIO", "g_drive_has_volumes", false) | |
| 1383 | + | return xXGDriveHasVolumes(instance) | |
| 1384 | + | } | |
| 1385 | + | ) | |
| 1386 | + | var ( | |
| 1387 | + | xXGDriveHasVolumes func(uintptr) bool | |
| 1388 | + | XGDriveIsMediaCheckAutomatic func(uintptr) bool = func(instance uintptr) bool { | |
| 1389 | + | core.LazyRegister(&xXGDriveIsMediaCheckAutomatic, "GIO", "g_drive_is_media_check_automatic", false) | |
| 1390 | + | return xXGDriveIsMediaCheckAutomatic(instance) | |
| 1391 | + | } | |
| 1392 | + | ) | |
| 1393 | + | var ( | |
| 1394 | + | xXGDriveIsMediaCheckAutomatic func(uintptr) bool | |
| 1395 | + | XGDriveIsMediaRemovable func(uintptr) bool = func(instance uintptr) bool { | |
| 1396 | + | core.LazyRegister(&xXGDriveIsMediaRemovable, "GIO", "g_drive_is_media_removable", false) | |
| 1397 | + | return xXGDriveIsMediaRemovable(instance) | |
| 1398 | + | } | |
| 1399 | + | ) | |
| 1400 | + | var ( | |
| 1401 | + | xXGDriveIsMediaRemovable func(uintptr) bool | |
| 1402 | + | XGDriveIsRemovable func(uintptr) bool = func(instance uintptr) bool { | |
| 1403 | + | core.LazyRegister(&xXGDriveIsRemovable, "GIO", "g_drive_is_removable", false) | |
| 1404 | + | return xXGDriveIsRemovable(instance) | |
| 1405 | + | } | |
| 1406 | + | ) | |
| 1407 | + | var ( | |
| 1408 | + | xXGDriveIsRemovable func(uintptr) bool | |
| 1409 | + | XGDrivePollForMedia func(uintptr, uintptr, uintptr, uintptr) = func(instance uintptr, CancellableVarp uintptr, CallbackVarp uintptr, UserDataVarp uintptr) { | |
| 1410 | + | core.LazyRegister(&xXGDrivePollForMedia, "GIO", "g_drive_poll_for_media", false) | |
| 1411 | + | xXGDrivePollForMedia(instance, CancellableVarp, CallbackVarp, UserDataVarp) | |
| 1412 | + | } | |
| 1413 | + | ) | |
| 1414 | + | var ( | |
| 1415 | + | xXGDrivePollForMedia func(uintptr, uintptr, uintptr, uintptr) | |
| 1416 | + | XGDrivePollForMediaFinish func(uintptr, uintptr, **glib.Error) bool = func(instance uintptr, ResultVarp uintptr, cerrp **glib.Error) bool { | |
| 1417 | + | core.LazyRegister(&xXGDrivePollForMediaFinish, "GIO", "g_drive_poll_for_media_finish", false) | |
| 1418 | + | return xXGDrivePollForMediaFinish(instance, ResultVarp, cerrp) | |
| 1419 | + | } | |
| 1420 | + | ) | |
| 1421 | + | var ( | |
| 1422 | + | xXGDrivePollForMediaFinish func(uintptr, uintptr, **glib.Error) bool | |
| 1423 | + | XGDriveStart func(uintptr, DriveStartFlags, uintptr, uintptr, uintptr, uintptr) = func(instance uintptr, FlagsVarp DriveStartFlags, MountOperationVarp uintptr, CancellableVarp uintptr, CallbackVarp uintptr, UserDataVarp uintptr) { | |
| 1424 | + | core.LazyRegister(&xXGDriveStart, "GIO", "g_drive_start", false) | |
| 1425 | + | xXGDriveStart(instance, FlagsVarp, MountOperationVarp, CancellableVarp, CallbackVarp, UserDataVarp) | |
| 1426 | + | } | |
| 1427 | + | ) | |
| 1428 | + | var ( | |
| 1429 | + | xXGDriveStart func(uintptr, DriveStartFlags, uintptr, uintptr, uintptr, uintptr) | |
| 1430 | + | XGDriveStartFinish func(uintptr, uintptr, **glib.Error) bool = func(instance uintptr, ResultVarp uintptr, cerrp **glib.Error) bool { | |
| 1431 | + | core.LazyRegister(&xXGDriveStartFinish, "GIO", "g_drive_start_finish", false) | |
| 1432 | + | return xXGDriveStartFinish(instance, ResultVarp, cerrp) | |
| 1433 | + | } | |
| 1434 | + | ) | |
| 1435 | + | var ( | |
| 1436 | + | xXGDriveStartFinish func(uintptr, uintptr, **glib.Error) bool | |
| 1437 | + | XGDriveStop func(uintptr, MountUnmountFlags, uintptr, uintptr, uintptr, uintptr) = func(instance uintptr, FlagsVarp MountUnmountFlags, MountOperationVarp uintptr, CancellableVarp uintptr, CallbackVarp uintptr, UserDataVarp uintptr) { | |
| 1438 | + | core.LazyRegister(&xXGDriveStop, "GIO", "g_drive_stop", false) | |
| 1439 | + | xXGDriveStop(instance, FlagsVarp, MountOperationVarp, CancellableVarp, CallbackVarp, UserDataVarp) | |
| 1440 | + | } | |
| 1441 | + | ) | |
| 1442 | + | var ( | |
| 1443 | + | xXGDriveStop func(uintptr, MountUnmountFlags, uintptr, uintptr, uintptr, uintptr) | |
| 1444 | + | XGDriveStopFinish func(uintptr, uintptr, **glib.Error) bool = func(instance uintptr, ResultVarp uintptr, cerrp **glib.Error) bool { | |
| 1445 | + | core.LazyRegister(&xXGDriveStopFinish, "GIO", "g_drive_stop_finish", false) | |
| 1446 | + | return xXGDriveStopFinish(instance, ResultVarp, cerrp) | |
| 1447 | + | } | |
| 1448 | + | ) | |
| 1449 | + | var xXGDriveStopFinish func(uintptr, uintptr, **glib.Error) bool | |
| 1279 | 1450 | ||
| 1280 | 1451 | const ( | |
| 1281 | 1452 | // The string used to obtain a Unix device path with g_drive_get_identifier(). | |
| @@ -1285,43 +1456,4 @@ const ( | |||
| 1285 | 1456 | func init() { | |
| 1286 | 1457 | core.SetPackageName("GIO", "gio-2.0") | |
| 1287 | 1458 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | |
| 1288 | - | var libs []uintptr | |
| 1289 | - | for _, libPath := range core.GetPaths("GIO") { | |
| 1290 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 1291 | - | if err != nil { | |
| 1292 | - | panic(err) | |
| 1293 | - | } | |
| 1294 | - | libs = append(libs, lib) | |
| 1295 | - | } | |
| 1296 | - | ||
| 1297 | - | core.PuregoSafeRegister(&xDriveGLibType, libs, "g_drive_get_type") | |
| 1298 | - | ||
| 1299 | - | core.PuregoSafeRegister(&XGDriveCanEject, libs, "g_drive_can_eject") | |
| 1300 | - | core.PuregoSafeRegister(&XGDriveCanPollForMedia, libs, "g_drive_can_poll_for_media") | |
| 1301 | - | core.PuregoSafeRegister(&XGDriveCanStart, libs, "g_drive_can_start") | |
| 1302 | - | core.PuregoSafeRegister(&XGDriveCanStartDegraded, libs, "g_drive_can_start_degraded") | |
| 1303 | - | core.PuregoSafeRegister(&XGDriveCanStop, libs, "g_drive_can_stop") | |
| 1304 | - | core.PuregoSafeRegister(&XGDriveEject, libs, "g_drive_eject") | |
| 1305 | - | core.PuregoSafeRegister(&XGDriveEjectFinish, libs, "g_drive_eject_finish") | |
| 1306 | - | core.PuregoSafeRegister(&XGDriveEjectWithOperation, libs, "g_drive_eject_with_operation") | |
| 1307 | - | core.PuregoSafeRegister(&XGDriveEjectWithOperationFinish, libs, "g_drive_eject_with_operation_finish") | |
| 1308 | - | core.PuregoSafeRegister(&XGDriveEnumerateIdentifiers, libs, "g_drive_enumerate_identifiers") | |
| 1309 | - | core.PuregoSafeRegister(&XGDriveGetIcon, libs, "g_drive_get_icon") | |
| 1310 | - | core.PuregoSafeRegister(&XGDriveGetIdentifier, libs, "g_drive_get_identifier") | |
| 1311 | - | core.PuregoSafeRegister(&XGDriveGetName, libs, "g_drive_get_name") | |
| 1312 | - | core.PuregoSafeRegister(&XGDriveGetSortKey, libs, "g_drive_get_sort_key") | |
| 1313 | - | core.PuregoSafeRegister(&XGDriveGetStartStopType, libs, "g_drive_get_start_stop_type") | |
| 1314 | - | core.PuregoSafeRegister(&XGDriveGetSymbolicIcon, libs, "g_drive_get_symbolic_icon") | |
| 1315 | - | core.PuregoSafeRegister(&XGDriveGetVolumes, libs, "g_drive_get_volumes") | |
| 1316 | - | core.PuregoSafeRegister(&XGDriveHasMedia, libs, "g_drive_has_media") | |
| 1317 | - | core.PuregoSafeRegister(&XGDriveHasVolumes, libs, "g_drive_has_volumes") | |
| 1318 | - | core.PuregoSafeRegister(&XGDriveIsMediaCheckAutomatic, libs, "g_drive_is_media_check_automatic") | |
| 1319 | - | core.PuregoSafeRegister(&XGDriveIsMediaRemovable, libs, "g_drive_is_media_removable") | |
| 1320 | - | core.PuregoSafeRegister(&XGDriveIsRemovable, libs, "g_drive_is_removable") | |
| 1321 | - | core.PuregoSafeRegister(&XGDrivePollForMedia, libs, "g_drive_poll_for_media") | |
| 1322 | - | core.PuregoSafeRegister(&XGDrivePollForMediaFinish, libs, "g_drive_poll_for_media_finish") | |
| 1323 | - | core.PuregoSafeRegister(&XGDriveStart, libs, "g_drive_start") | |
| 1324 | - | core.PuregoSafeRegister(&XGDriveStartFinish, libs, "g_drive_start_finish") | |
| 1325 | - | core.PuregoSafeRegister(&XGDriveStop, libs, "g_drive_stop") | |
| 1326 | - | core.PuregoSafeRegister(&XGDriveStopFinish, libs, "g_drive_stop_finish") | |
| 1327 | 1459 | } | |
| @@ -443,7 +443,7 @@ func (x *DriveIface) OverrideEjectFinish(cb func(Drive, AsyncResult) bool) { | |||||
| 443 | if cb == nil { | 443 | if cb == nil { | ||
| 444 | x.xEjectFinish = 0 | 444 | x.xEjectFinish = 0 | ||
| 445 | } else { | 445 | } else { | ||
| 446 | - | x.xEjectFinish = purego.NewCallback(func(DriveVarp uintptr, ResultVarp uintptr) bool { | 446 | + | x.xEjectFinish = purego.NewCallback(func(DriveVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) bool { |
| 447 | return cb(&DriveBase{Ptr: DriveVarp}, &AsyncResultBase{Ptr: ResultVarp}) | 447 | return cb(&DriveBase{Ptr: DriveVarp}, &AsyncResultBase{Ptr: ResultVarp}) | ||
| 448 | }) | 448 | }) | ||
| 449 | } | 449 | } | ||
| @@ -455,10 +455,11 @@ func (x *DriveIface) GetEjectFinish() func(Drive, AsyncResult) bool { | |||||
| 455 | if x.xEjectFinish == 0 { | 455 | if x.xEjectFinish == 0 { | ||
| 456 | return nil | 456 | return nil | ||
| 457 | } | 457 | } | ||
| 458 | - | var rawCallback func(DriveVarp uintptr, ResultVarp uintptr) bool | 458 | + | var rawCallback func(DriveVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) bool |
| 459 | purego.RegisterFunc(&rawCallback, x.xEjectFinish) | 459 | purego.RegisterFunc(&rawCallback, x.xEjectFinish) | ||
| 460 | return func(DriveVar Drive, ResultVar AsyncResult) bool { | 460 | return func(DriveVar Drive, ResultVar AsyncResult) bool { | ||
| 461 | - | return rawCallback(DriveVar.GoPointer(), ResultVar.GoPointer()) | 461 | + | var cerr *glib.Error |
| 462 | + | return rawCallback(DriveVar.GoPointer(), ResultVar.GoPointer(), &cerr) | |||
| 462 | } | 463 | } | ||
| 463 | } | 464 | } | ||
| 464 | 465 | ||||
| @@ -493,7 +494,7 @@ func (x *DriveIface) OverridePollForMediaFinish(cb func(Drive, AsyncResult) bool | |||||
| 493 | if cb == nil { | 494 | if cb == nil { | ||
| 494 | x.xPollForMediaFinish = 0 | 495 | x.xPollForMediaFinish = 0 | ||
| 495 | } else { | 496 | } else { | ||
| 496 | - | x.xPollForMediaFinish = purego.NewCallback(func(DriveVarp uintptr, ResultVarp uintptr) bool { | 497 | + | x.xPollForMediaFinish = purego.NewCallback(func(DriveVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) bool { |
| 497 | return cb(&DriveBase{Ptr: DriveVarp}, &AsyncResultBase{Ptr: ResultVarp}) | 498 | return cb(&DriveBase{Ptr: DriveVarp}, &AsyncResultBase{Ptr: ResultVarp}) | ||
| 498 | }) | 499 | }) | ||
| 499 | } | 500 | } | ||
| @@ -505,10 +506,11 @@ func (x *DriveIface) GetPollForMediaFinish() func(Drive, AsyncResult) bool { | |||||
| 505 | if x.xPollForMediaFinish == 0 { | 506 | if x.xPollForMediaFinish == 0 { | ||
| 506 | return nil | 507 | return nil | ||
| 507 | } | 508 | } | ||
| 508 | - | var rawCallback func(DriveVarp uintptr, ResultVarp uintptr) bool | 509 | + | var rawCallback func(DriveVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) bool |
| 509 | purego.RegisterFunc(&rawCallback, x.xPollForMediaFinish) | 510 | purego.RegisterFunc(&rawCallback, x.xPollForMediaFinish) | ||
| 510 | return func(DriveVar Drive, ResultVar AsyncResult) bool { | 511 | return func(DriveVar Drive, ResultVar AsyncResult) bool { | ||
| 511 | - | return rawCallback(DriveVar.GoPointer(), ResultVar.GoPointer()) | 512 | + | var cerr *glib.Error |
| 513 | + | return rawCallback(DriveVar.GoPointer(), ResultVar.GoPointer(), &cerr) | |||
| 512 | } | 514 | } | ||
| 513 | } | 515 | } | ||
| 514 | 516 | ||||
| @@ -676,7 +678,7 @@ func (x *DriveIface) OverrideStartFinish(cb func(Drive, AsyncResult) bool) { | |||||
| 676 | if cb == nil { | 678 | if cb == nil { | ||
| 677 | x.xStartFinish = 0 | 679 | x.xStartFinish = 0 | ||
| 678 | } else { | 680 | } else { | ||
| 679 | - | x.xStartFinish = purego.NewCallback(func(DriveVarp uintptr, ResultVarp uintptr) bool { | 681 | + | x.xStartFinish = purego.NewCallback(func(DriveVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) bool { |
| 680 | return cb(&DriveBase{Ptr: DriveVarp}, &AsyncResultBase{Ptr: ResultVarp}) | 682 | return cb(&DriveBase{Ptr: DriveVarp}, &AsyncResultBase{Ptr: ResultVarp}) | ||
| 681 | }) | 683 | }) | ||
| 682 | } | 684 | } | ||
| @@ -688,10 +690,11 @@ func (x *DriveIface) GetStartFinish() func(Drive, AsyncResult) bool { | |||||
| 688 | if x.xStartFinish == 0 { | 690 | if x.xStartFinish == 0 { | ||
| 689 | return nil | 691 | return nil | ||
| 690 | } | 692 | } | ||
| 691 | - | var rawCallback func(DriveVarp uintptr, ResultVarp uintptr) bool | 693 | + | var rawCallback func(DriveVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) bool |
| 692 | purego.RegisterFunc(&rawCallback, x.xStartFinish) | 694 | purego.RegisterFunc(&rawCallback, x.xStartFinish) | ||
| 693 | return func(DriveVar Drive, ResultVar AsyncResult) bool { | 695 | return func(DriveVar Drive, ResultVar AsyncResult) bool { | ||
| 694 | - | return rawCallback(DriveVar.GoPointer(), ResultVar.GoPointer()) | 696 | + | var cerr *glib.Error |
| 697 | + | return rawCallback(DriveVar.GoPointer(), ResultVar.GoPointer(), &cerr) | |||
| 695 | } | 698 | } | ||
| 696 | } | 699 | } | ||
| 697 | 700 | ||||
| @@ -751,7 +754,7 @@ func (x *DriveIface) OverrideStopFinish(cb func(Drive, AsyncResult) bool) { | |||||
| 751 | if cb == nil { | 754 | if cb == nil { | ||
| 752 | x.xStopFinish = 0 | 755 | x.xStopFinish = 0 | ||
| 753 | } else { | 756 | } else { | ||
| 754 | - | x.xStopFinish = purego.NewCallback(func(DriveVarp uintptr, ResultVarp uintptr) bool { | 757 | + | x.xStopFinish = purego.NewCallback(func(DriveVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) bool { |
| 755 | return cb(&DriveBase{Ptr: DriveVarp}, &AsyncResultBase{Ptr: ResultVarp}) | 758 | return cb(&DriveBase{Ptr: DriveVarp}, &AsyncResultBase{Ptr: ResultVarp}) | ||
| 756 | }) | 759 | }) | ||
| 757 | } | 760 | } | ||
| @@ -763,10 +766,11 @@ func (x *DriveIface) GetStopFinish() func(Drive, AsyncResult) bool { | |||||
| 763 | if x.xStopFinish == 0 { | 766 | if x.xStopFinish == 0 { | ||
| 764 | return nil | 767 | return nil | ||
| 765 | } | 768 | } | ||
| 766 | - | var rawCallback func(DriveVarp uintptr, ResultVarp uintptr) bool | 769 | + | var rawCallback func(DriveVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) bool |
| 767 | purego.RegisterFunc(&rawCallback, x.xStopFinish) | 770 | purego.RegisterFunc(&rawCallback, x.xStopFinish) | ||
| 768 | return func(DriveVar Drive, ResultVar AsyncResult) bool { | 771 | return func(DriveVar Drive, ResultVar AsyncResult) bool { | ||
| 769 | - | return rawCallback(DriveVar.GoPointer(), ResultVar.GoPointer()) | 772 | + | var cerr *glib.Error |
| 773 | + | return rawCallback(DriveVar.GoPointer(), ResultVar.GoPointer(), &cerr) | |||
| 770 | } | 774 | } | ||
| 771 | } | 775 | } | ||
| 772 | 776 | ||||
| @@ -826,7 +830,7 @@ func (x *DriveIface) OverrideEjectWithOperationFinish(cb func(Drive, AsyncResult | |||||
| 826 | if cb == nil { | 830 | if cb == nil { | ||
| 827 | x.xEjectWithOperationFinish = 0 | 831 | x.xEjectWithOperationFinish = 0 | ||
| 828 | } else { | 832 | } else { | ||
| 829 | - | x.xEjectWithOperationFinish = purego.NewCallback(func(DriveVarp uintptr, ResultVarp uintptr) bool { | 833 | + | x.xEjectWithOperationFinish = purego.NewCallback(func(DriveVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) bool { |
| 830 | return cb(&DriveBase{Ptr: DriveVarp}, &AsyncResultBase{Ptr: ResultVarp}) | 834 | return cb(&DriveBase{Ptr: DriveVarp}, &AsyncResultBase{Ptr: ResultVarp}) | ||
| 831 | }) | 835 | }) | ||
| 832 | } | 836 | } | ||
| @@ -838,10 +842,11 @@ func (x *DriveIface) GetEjectWithOperationFinish() func(Drive, AsyncResult) bool | |||||
| 838 | if x.xEjectWithOperationFinish == 0 { | 842 | if x.xEjectWithOperationFinish == 0 { | ||
| 839 | return nil | 843 | return nil | ||
| 840 | } | 844 | } | ||
| 841 | - | var rawCallback func(DriveVarp uintptr, ResultVarp uintptr) bool | 845 | + | var rawCallback func(DriveVarp uintptr, ResultVarp uintptr, cerrp **glib.Error) bool |
| 842 | purego.RegisterFunc(&rawCallback, x.xEjectWithOperationFinish) | 846 | purego.RegisterFunc(&rawCallback, x.xEjectWithOperationFinish) | ||
| 843 | return func(DriveVar Drive, ResultVar AsyncResult) bool { | 847 | return func(DriveVar Drive, ResultVar AsyncResult) bool { | ||
| 844 | - | return rawCallback(DriveVar.GoPointer(), ResultVar.GoPointer()) | 848 | + | var cerr *glib.Error |
| 849 | + | return rawCallback(DriveVar.GoPointer(), ResultVar.GoPointer(), &cerr) | |||
| 845 | } | 850 | } | ||
| 846 | } | 851 | } | ||
| 847 | 852 | ||||
| @@ -992,6 +997,7 @@ type Drive interface { | |||||
| 992 | var xDriveGLibType func() types.GType | 997 | var xDriveGLibType func() types.GType | ||
| 993 | 998 | ||||
| 994 | func DriveGLibType() types.GType { | 999 | func DriveGLibType() types.GType { | ||
| 1000 | + | core.LazyRegister(&xDriveGLibType, "GIO", "g_drive_get_type", false) | |||
| 995 | return xDriveGLibType() | 1001 | return xDriveGLibType() | ||
| 996 | } | 1002 | } | ||
| 997 | 1003 | ||||
| @@ -1246,36 +1252,201 @@ func (x *DriveBase) StopFinish(ResultVar AsyncResult) (bool, error) { | |||||
| 1246 | return cret, cerr | 1252 | return cret, cerr | ||
| 1247 | } | 1253 | } | ||
| 1248 | 1254 | ||||
| 1255 | + | var XGDriveCanEject func(uintptr) bool = func(instance uintptr) bool { | |||
| 1256 | + | core.LazyRegister(&xXGDriveCanEject, "GIO", "g_drive_can_eject", false) | |||
| 1257 | + | return xXGDriveCanEject(instance) | |||
| 1258 | + | } | |||
| 1259 | + | ||||
| 1260 | + | var ( | |||
| 1261 | + | xXGDriveCanEject func(uintptr) bool | |||
| 1262 | + | XGDriveCanPollForMedia func(uintptr) bool = func(instance uintptr) bool { | |||
| 1263 | + | core.LazyRegister(&xXGDriveCanPollForMedia, "GIO", "g_drive_can_poll_for_media", false) | |||
| 1264 | + | return xXGDriveCanPollForMedia(instance) | |||
| 1265 | + | } | |||
| 1266 | + | ) | |||
| 1267 | + | var ( | |||
| 1268 | + | xXGDriveCanPollForMedia func(uintptr) bool | |||
| 1269 | + | XGDriveCanStart func(uintptr) bool = func(instance uintptr) bool { | |||
| 1270 | + | core.LazyRegister(&xXGDriveCanStart, "GIO", "g_drive_can_start", false) | |||
| 1271 | + | return xXGDriveCanStart(instance) | |||
| 1272 | + | } | |||
| 1273 | + | ) | |||
| 1274 | + | var ( | |||
| 1275 | + | xXGDriveCanStart func(uintptr) bool | |||
| 1276 | + | XGDriveCanStartDegraded func(uintptr) bool = func(instance uintptr) bool { | |||
| 1277 | + | core.LazyRegister(&xXGDriveCanStartDegraded, "GIO", "g_drive_can_start_degraded", false) | |||
| 1278 | + | return xXGDriveCanStartDegraded(instance) | |||
| 1279 | + | } | |||
| 1280 | + | ) | |||
| 1281 | + | var ( | |||
| 1282 | + | xXGDriveCanStartDegraded func(uintptr) bool | |||
| 1283 | + | XGDriveCanStop func(uintptr) bool = func(instance uintptr) bool { | |||
| 1284 | + | core.LazyRegister(&xXGDriveCanStop, "GIO", "g_drive_can_stop", false) | |||
| 1285 | + | return xXGDriveCanStop(instance) | |||
| 1286 | + | } | |||
| 1287 | + | ) | |||
| 1288 | + | var ( | |||
| 1289 | + | xXGDriveCanStop func(uintptr) bool | |||
| 1290 | + | XGDriveEject func(uintptr, MountUnmountFlags, uintptr, uintptr, uintptr) = func(instance uintptr, FlagsVarp MountUnmountFlags, CancellableVarp uintptr, CallbackVarp uintptr, UserDataVarp uintptr) { | |||
| 1291 | + | core.LazyRegister(&xXGDriveEject, "GIO", "g_drive_eject", false) | |||
| 1292 | + | xXGDriveEject(instance, FlagsVarp, CancellableVarp, CallbackVarp, UserDataVarp) | |||
| 1293 | + | } | |||
| 1294 | + | ) | |||
| 1295 | + | var ( | |||
| 1296 | + | xXGDriveEject func(uintptr, MountUnmountFlags, uintptr, uintptr, uintptr) | |||
| 1297 | + | XGDriveEjectFinish func(uintptr, uintptr, **glib.Error) bool = func(instance uintptr, ResultVarp uintptr, cerrp **glib.Error) bool { | |||
| 1298 | + | core.LazyRegister(&xXGDriveEjectFinish, "GIO", "g_drive_eject_finish", false) | |||
| 1299 | + | return xXGDriveEjectFinish(instance, ResultVarp, cerrp) | |||
| 1300 | + | } | |||
| 1301 | + | ) | |||
| 1302 | + | var ( | |||
| 1303 | + | xXGDriveEjectFinish func(uintptr, uintptr, **glib.Error) bool | |||
| 1304 | + | XGDriveEjectWithOperation func(uintptr, MountUnmountFlags, uintptr, uintptr, uintptr, uintptr) = func(instance uintptr, FlagsVarp MountUnmountFlags, MountOperationVarp uintptr, CancellableVarp uintptr, CallbackVarp uintptr, UserDataVarp uintptr) { | |||
| 1305 | + | core.LazyRegister(&xXGDriveEjectWithOperation, "GIO", "g_drive_eject_with_operation", false) | |||
| 1306 | + | xXGDriveEjectWithOperation(instance, FlagsVarp, MountOperationVarp, CancellableVarp, CallbackVarp, UserDataVarp) | |||
| 1307 | + | } | |||
| 1308 | + | ) | |||
| 1309 | + | var ( | |||
| 1310 | + | xXGDriveEjectWithOperation func(uintptr, MountUnmountFlags, uintptr, uintptr, uintptr, uintptr) | |||
| 1311 | + | XGDriveEjectWithOperationFinish func(uintptr, uintptr, **glib.Error) bool = func(instance uintptr, ResultVarp uintptr, cerrp **glib.Error) bool { | |||
| 1312 | + | core.LazyRegister(&xXGDriveEjectWithOperationFinish, "GIO", "g_drive_eject_with_operation_finish", false) | |||
| 1313 | + | return xXGDriveEjectWithOperationFinish(instance, ResultVarp, cerrp) | |||
| 1314 | + | } | |||
| 1315 | + | ) | |||
| 1316 | + | var ( | |||
| 1317 | + | xXGDriveEjectWithOperationFinish func(uintptr, uintptr, **glib.Error) bool | |||
| 1318 | + | XGDriveEnumerateIdentifiers func(uintptr) []string = func(instance uintptr) []string { | |||
| 1319 | + | core.LazyRegister(&xXGDriveEnumerateIdentifiers, "GIO", "g_drive_enumerate_identifiers", false) | |||
| 1320 | + | return xXGDriveEnumerateIdentifiers(instance) | |||
| 1321 | + | } | |||
| 1322 | + | ) | |||
| 1323 | + | var ( | |||
| 1324 | + | xXGDriveEnumerateIdentifiers func(uintptr) []string | |||
| 1325 | + | XGDriveGetIcon func(uintptr) uintptr = func(instance uintptr) uintptr { | |||
| 1326 | + | core.LazyRegister(&xXGDriveGetIcon, "GIO", "g_drive_get_icon", false) | |||
| 1327 | + | return xXGDriveGetIcon(instance) | |||
| 1328 | + | } | |||
| 1329 | + | ) | |||
| 1330 | + | var ( | |||
| 1331 | + | xXGDriveGetIcon func(uintptr) uintptr | |||
| 1332 | + | XGDriveGetIdentifier func(uintptr, string) string = func(instance uintptr, KindVarp string) string { | |||
| 1333 | + | core.LazyRegister(&xXGDriveGetIdentifier, "GIO", "g_drive_get_identifier", false) | |||
| 1334 | + | return xXGDriveGetIdentifier(instance, KindVarp) | |||
| 1335 | + | } | |||
| 1336 | + | ) | |||
| 1337 | + | var ( | |||
| 1338 | + | xXGDriveGetIdentifier func(uintptr, string) string | |||
| 1339 | + | XGDriveGetName func(uintptr) string = func(instance uintptr) string { | |||
| 1340 | + | core.LazyRegister(&xXGDriveGetName, "GIO", "g_drive_get_name", false) | |||
| 1341 | + | return xXGDriveGetName(instance) | |||
| 1342 | + | } | |||
| 1343 | + | ) | |||
| 1344 | + | var ( | |||
| 1345 | + | xXGDriveGetName func(uintptr) string | |||
| 1346 | + | XGDriveGetSortKey func(uintptr) string = func(instance uintptr) string { | |||
| 1347 | + | core.LazyRegister(&xXGDriveGetSortKey, "GIO", "g_drive_get_sort_key", false) | |||
| 1348 | + | return xXGDriveGetSortKey(instance) | |||
| 1349 | + | } | |||
| 1350 | + | ) | |||
| 1249 | var ( | 1351 | var ( | ||
| 1250 | - | XGDriveCanEject func(uintptr) bool | 1352 | + | xXGDriveGetSortKey func(uintptr) string |
| 1251 | - | XGDriveCanPollForMedia func(uintptr) bool | 1353 | + | XGDriveGetStartStopType func(uintptr) DriveStartStopType = func(instance uintptr) DriveStartStopType { |
| 1252 | - | XGDriveCanStart func(uintptr) bool | 1354 | + | core.LazyRegister(&xXGDriveGetStartStopType, "GIO", "g_drive_get_start_stop_type", false) |
| 1253 | - | XGDriveCanStartDegraded func(uintptr) bool | 1355 | + | return xXGDriveGetStartStopType(instance) |
| 1254 | - | XGDriveCanStop func(uintptr) bool | 1356 | + | } |
| 1255 | - | XGDriveEject func(uintptr, MountUnmountFlags, uintptr, uintptr, uintptr) | 1357 | + | ) |
| 1256 | - | XGDriveEjectFinish func(uintptr, uintptr, **glib.Error) bool | 1358 | + | var ( |
| 1257 | - | XGDriveEjectWithOperation func(uintptr, MountUnmountFlags, uintptr, uintptr, uintptr, uintptr) | 1359 | + | xXGDriveGetStartStopType func(uintptr) DriveStartStopType |
| 1258 | - | XGDriveEjectWithOperationFinish func(uintptr, uintptr, **glib.Error) bool | 1360 | + | XGDriveGetSymbolicIcon func(uintptr) uintptr = func(instance uintptr) uintptr { |
| 1259 | - | XGDriveEnumerateIdentifiers func(uintptr) []string | 1361 | + | core.LazyRegister(&xXGDriveGetSymbolicIcon, "GIO", "g_drive_get_symbolic_icon", false) |
| 1260 | - | XGDriveGetIcon func(uintptr) uintptr | 1362 | + | return xXGDriveGetSymbolicIcon(instance) |
| 1261 | - | XGDriveGetIdentifier func(uintptr, string) string | 1363 | + | } |
| 1262 | - | XGDriveGetName func(uintptr) string | |||
| 1263 | - | XGDriveGetSortKey func(uintptr) string | |||
| 1264 | - | XGDriveGetStartStopType func(uintptr) DriveStartStopType | |||
| 1265 | - | XGDriveGetSymbolicIcon func(uintptr) uintptr | |||
| 1266 | - | XGDriveGetVolumes func(uintptr) uintptr | |||
| 1267 | - | XGDriveHasMedia func(uintptr) bool | |||
| 1268 | - | XGDriveHasVolumes func(uintptr) bool | |||
| 1269 | - | XGDriveIsMediaCheckAutomatic func(uintptr) bool | |||
| 1270 | - | XGDriveIsMediaRemovable func(uintptr) bool | |||
| 1271 | - | XGDriveIsRemovable func(uintptr) bool | |||
| 1272 | - | XGDrivePollForMedia func(uintptr, uintptr, uintptr, uintptr) | |||
| 1273 | - | XGDrivePollForMediaFinish func(uintptr, uintptr, **glib.Error) bool | |||
| 1274 | - | XGDriveStart func(uintptr, DriveStartFlags, uintptr, uintptr, uintptr, uintptr) | |||
| 1275 | - | XGDriveStartFinish func(uintptr, uintptr, **glib.Error) bool | |||
| 1276 | - | XGDriveStop func(uintptr, MountUnmountFlags, uintptr, uintptr, uintptr, uintptr) | |||
| 1277 | - | XGDriveStopFinish func(uintptr, uintptr, **glib.Error) bool | |||
| 1278 | ) | 1364 | ) | ||
| 1365 | + | var ( | |||
| 1366 | + | xXGDriveGetSymbolicIcon func(uintptr) uintptr | |||
| 1367 | + | XGDriveGetVolumes func(uintptr) uintptr = func(instance uintptr) uintptr { | |||
| 1368 | + | core.LazyRegister(&xXGDriveGetVolumes, "GIO", "g_drive_get_volumes", false) | |||
| 1369 | + | return xXGDriveGetVolumes(instance) | |||
| 1370 | + | } | |||
| 1371 | + | ) | |||
| 1372 | + | var ( | |||
| 1373 | + | xXGDriveGetVolumes func(uintptr) uintptr | |||
| 1374 | + | XGDriveHasMedia func(uintptr) bool = func(instance uintptr) bool { | |||
| 1375 | + | core.LazyRegister(&xXGDriveHasMedia, "GIO", "g_drive_has_media", false) | |||
| 1376 | + | return xXGDriveHasMedia(instance) | |||
| 1377 | + | } | |||
| 1378 | + | ) | |||
| 1379 | + | var ( | |||
| 1380 | + | xXGDriveHasMedia func(uintptr) bool | |||
| 1381 | + | XGDriveHasVolumes func(uintptr) bool = func(instance uintptr) bool { | |||
| 1382 | + | core.LazyRegister(&xXGDriveHasVolumes, "GIO", "g_drive_has_volumes", false) | |||
| 1383 | + | return xXGDriveHasVolumes(instance) | |||
| 1384 | + | } | |||
| 1385 | + | ) | |||
| 1386 | + | var ( | |||
| 1387 | + | xXGDriveHasVolumes func(uintptr) bool | |||
| 1388 | + | XGDriveIsMediaCheckAutomatic func(uintptr) bool = func(instance uintptr) bool { | |||
| 1389 | + | core.LazyRegister(&xXGDriveIsMediaCheckAutomatic, "GIO", "g_drive_is_media_check_automatic", false) | |||
| 1390 | + | return xXGDriveIsMediaCheckAutomatic(instance) | |||
| 1391 | + | } | |||
| 1392 | + | ) | |||
| 1393 | + | var ( | |||
| 1394 | + | xXGDriveIsMediaCheckAutomatic func(uintptr) bool | |||
| 1395 | + | XGDriveIsMediaRemovable func(uintptr) bool = func(instance uintptr) bool { | |||
| 1396 | + | core.LazyRegister(&xXGDriveIsMediaRemovable, "GIO", "g_drive_is_media_removable", false) | |||
| 1397 | + | return xXGDriveIsMediaRemovable(instance) | |||
| 1398 | + | } | |||
| 1399 | + | ) | |||
| 1400 | + | var ( | |||
| 1401 | + | xXGDriveIsMediaRemovable func(uintptr) bool | |||
| 1402 | + | XGDriveIsRemovable func(uintptr) bool = func(instance uintptr) bool { | |||
| 1403 | + | core.LazyRegister(&xXGDriveIsRemovable, "GIO", "g_drive_is_removable", false) | |||
| 1404 | + | return xXGDriveIsRemovable(instance) | |||
| 1405 | + | } | |||
| 1406 | + | ) | |||
| 1407 | + | var ( | |||
| 1408 | + | xXGDriveIsRemovable func(uintptr) bool | |||
| 1409 | + | XGDrivePollForMedia func(uintptr, uintptr, uintptr, uintptr) = func(instance uintptr, CancellableVarp uintptr, CallbackVarp uintptr, UserDataVarp uintptr) { | |||
| 1410 | + | core.LazyRegister(&xXGDrivePollForMedia, "GIO", "g_drive_poll_for_media", false) | |||
| 1411 | + | xXGDrivePollForMedia(instance, CancellableVarp, CallbackVarp, UserDataVarp) | |||
| 1412 | + | } | |||
| 1413 | + | ) | |||
| 1414 | + | var ( | |||
| 1415 | + | xXGDrivePollForMedia func(uintptr, uintptr, uintptr, uintptr) | |||
| 1416 | + | XGDrivePollForMediaFinish func(uintptr, uintptr, **glib.Error) bool = func(instance uintptr, ResultVarp uintptr, cerrp **glib.Error) bool { | |||
| 1417 | + | core.LazyRegister(&xXGDrivePollForMediaFinish, "GIO", "g_drive_poll_for_media_finish", false) | |||
| 1418 | + | return xXGDrivePollForMediaFinish(instance, ResultVarp, cerrp) | |||
| 1419 | + | } | |||
| 1420 | + | ) | |||
| 1421 | + | var ( | |||
| 1422 | + | xXGDrivePollForMediaFinish func(uintptr, uintptr, **glib.Error) bool | |||
| 1423 | + | XGDriveStart func(uintptr, DriveStartFlags, uintptr, uintptr, uintptr, uintptr) = func(instance uintptr, FlagsVarp DriveStartFlags, MountOperationVarp uintptr, CancellableVarp uintptr, CallbackVarp uintptr, UserDataVarp uintptr) { | |||
| 1424 | + | core.LazyRegister(&xXGDriveStart, "GIO", "g_drive_start", false) | |||
| 1425 | + | xXGDriveStart(instance, FlagsVarp, MountOperationVarp, CancellableVarp, CallbackVarp, UserDataVarp) | |||
| 1426 | + | } | |||
| 1427 | + | ) | |||
| 1428 | + | var ( | |||
| 1429 | + | xXGDriveStart func(uintptr, DriveStartFlags, uintptr, uintptr, uintptr, uintptr) | |||
| 1430 | + | XGDriveStartFinish func(uintptr, uintptr, **glib.Error) bool = func(instance uintptr, ResultVarp uintptr, cerrp **glib.Error) bool { | |||
| 1431 | + | core.LazyRegister(&xXGDriveStartFinish, "GIO", "g_drive_start_finish", false) | |||
| 1432 | + | return xXGDriveStartFinish(instance, ResultVarp, cerrp) | |||
| 1433 | + | } | |||
| 1434 | + | ) | |||
| 1435 | + | var ( | |||
| 1436 | + | xXGDriveStartFinish func(uintptr, uintptr, **glib.Error) bool | |||
| 1437 | + | XGDriveStop func(uintptr, MountUnmountFlags, uintptr, uintptr, uintptr, uintptr) = func(instance uintptr, FlagsVarp MountUnmountFlags, MountOperationVarp uintptr, CancellableVarp uintptr, CallbackVarp uintptr, UserDataVarp uintptr) { | |||
| 1438 | + | core.LazyRegister(&xXGDriveStop, "GIO", "g_drive_stop", false) | |||
| 1439 | + | xXGDriveStop(instance, FlagsVarp, MountOperationVarp, CancellableVarp, CallbackVarp, UserDataVarp) | |||
| 1440 | + | } | |||
| 1441 | + | ) | |||
| 1442 | + | var ( | |||
| 1443 | + | xXGDriveStop func(uintptr, MountUnmountFlags, uintptr, uintptr, uintptr, uintptr) | |||
| 1444 | + | XGDriveStopFinish func(uintptr, uintptr, **glib.Error) bool = func(instance uintptr, ResultVarp uintptr, cerrp **glib.Error) bool { | |||
| 1445 | + | core.LazyRegister(&xXGDriveStopFinish, "GIO", "g_drive_stop_finish", false) | |||
| 1446 | + | return xXGDriveStopFinish(instance, ResultVarp, cerrp) | |||
| 1447 | + | } | |||
| 1448 | + | ) | |||
| 1449 | + | var xXGDriveStopFinish func(uintptr, uintptr, **glib.Error) bool | |||
| 1279 | 1450 | ||||
| 1280 | const ( | 1451 | const ( | ||
| 1281 | // The string used to obtain a Unix device path with g_drive_get_identifier(). | 1452 | // The string used to obtain a Unix device path with g_drive_get_identifier(). | ||
| @@ -1285,43 +1456,4 @@ const ( | |||||
| 1285 | func init() { | 1456 | func init() { | ||
| 1286 | core.SetPackageName("GIO", "gio-2.0") | 1457 | core.SetPackageName("GIO", "gio-2.0") | ||
| 1287 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | 1458 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | ||
| 1288 | - | var libs []uintptr | |||
| 1289 | - | for _, libPath := range core.GetPaths("GIO") { | |||
| 1290 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 1291 | - | if err != nil { | |||
| 1292 | - | panic(err) | |||
| 1293 | - | } | |||
| 1294 | - | libs = append(libs, lib) | |||
| 1295 | - | } | |||
| 1296 | - | ||||
| 1297 | - | core.PuregoSafeRegister(&xDriveGLibType, libs, "g_drive_get_type") | |||
| 1298 | - | ||||
| 1299 | - | core.PuregoSafeRegister(&XGDriveCanEject, libs, "g_drive_can_eject") | |||
| 1300 | - | core.PuregoSafeRegister(&XGDriveCanPollForMedia, libs, "g_drive_can_poll_for_media") | |||
| 1301 | - | core.PuregoSafeRegister(&XGDriveCanStart, libs, "g_drive_can_start") | |||
| 1302 | - | core.PuregoSafeRegister(&XGDriveCanStartDegraded, libs, "g_drive_can_start_degraded") | |||
| 1303 | - | core.PuregoSafeRegister(&XGDriveCanStop, libs, "g_drive_can_stop") | |||
| 1304 | - | core.PuregoSafeRegister(&XGDriveEject, libs, "g_drive_eject") | |||
| 1305 | - | core.PuregoSafeRegister(&XGDriveEjectFinish, libs, "g_drive_eject_finish") | |||
| 1306 | - | core.PuregoSafeRegister(&XGDriveEjectWithOperation, libs, "g_drive_eject_with_operation") | |||
| 1307 | - | core.PuregoSafeRegister(&XGDriveEjectWithOperationFinish, libs, "g_drive_eject_with_operation_finish") | |||
| 1308 | - | core.PuregoSafeRegister(&XGDriveEnumerateIdentifiers, libs, "g_drive_enumerate_identifiers") | |||
| 1309 | - | core.PuregoSafeRegister(&XGDriveGetIcon, libs, "g_drive_get_icon") | |||
| 1310 | - | core.PuregoSafeRegister(&XGDriveGetIdentifier, libs, "g_drive_get_identifier") | |||
| 1311 | - | core.PuregoSafeRegister(&XGDriveGetName, libs, "g_drive_get_name") | |||
| 1312 | - | core.PuregoSafeRegister(&XGDriveGetSortKey, libs, "g_drive_get_sort_key") | |||
| 1313 | - | core.PuregoSafeRegister(&XGDriveGetStartStopType, libs, "g_drive_get_start_stop_type") | |||
| 1314 | - | core.PuregoSafeRegister(&XGDriveGetSymbolicIcon, libs, "g_drive_get_symbolic_icon") | |||
| 1315 | - | core.PuregoSafeRegister(&XGDriveGetVolumes, libs, "g_drive_get_volumes") | |||
| 1316 | - | core.PuregoSafeRegister(&XGDriveHasMedia, libs, "g_drive_has_media") | |||
| 1317 | - | core.PuregoSafeRegister(&XGDriveHasVolumes, libs, "g_drive_has_volumes") | |||
| 1318 | - | core.PuregoSafeRegister(&XGDriveIsMediaCheckAutomatic, libs, "g_drive_is_media_check_automatic") | |||
| 1319 | - | core.PuregoSafeRegister(&XGDriveIsMediaRemovable, libs, "g_drive_is_media_removable") | |||
| 1320 | - | core.PuregoSafeRegister(&XGDriveIsRemovable, libs, "g_drive_is_removable") | |||
| 1321 | - | core.PuregoSafeRegister(&XGDrivePollForMedia, libs, "g_drive_poll_for_media") | |||
| 1322 | - | core.PuregoSafeRegister(&XGDrivePollForMediaFinish, libs, "g_drive_poll_for_media_finish") | |||
| 1323 | - | core.PuregoSafeRegister(&XGDriveStart, libs, "g_drive_start") | |||
| 1324 | - | core.PuregoSafeRegister(&XGDriveStartFinish, libs, "g_drive_start_finish") | |||
| 1325 | - | core.PuregoSafeRegister(&XGDriveStop, libs, "g_drive_stop") | |||
| 1326 | - | core.PuregoSafeRegister(&XGDriveStopFinish, libs, "g_drive_stop_finish") | |||
| 1327 | } | 1459 | } | ||