chore(build): repair vendored baseline
- commit
- d4952b41d17da47c4f9870c27e97820adf5202e5
- author
- brice · · 2026-07-14 05:44 UTC
- parent
- ae333bf
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
3316 files · +1391338 -4
M Makefile +2 -2
| @@ -239,13 +239,13 @@ flatpak-deps: ## Install Flatpak build dependencies (Arch) | |||
| 239 | 239 | ||
| 240 | 240 | flatpak-build: ## Build Flatpak bundle locally | |
| 241 | 241 | @echo "Building Flatpak bundle..." | |
| 242 | - | flatpak-builder --force-clean --user --repo=flatpak-repo flatpak-build dev.bnema.Dumber.yml | |
| 242 | + | flatpak-builder --force-clean --user --repo=flatpak-repo flatpak-build flatpak/dev.bnema.Dumber.yml | |
| 243 | 243 | flatpak build-bundle flatpak-repo dumber.flatpak dev.bnema.Dumber | |
| 244 | 244 | @echo "Flatpak bundle created: dumber.flatpak" | |
| 245 | 245 | ||
| 246 | 246 | flatpak-install: ## Install Flatpak locally for testing | |
| 247 | 247 | @echo "Installing Flatpak locally..." | |
| 248 | - | flatpak-builder --force-clean --user --install flatpak-build dev.bnema.Dumber.yml | |
| 248 | + | flatpak-builder --force-clean --user --install flatpak-build flatpak/dev.bnema.Dumber.yml | |
| 249 | 249 | @echo "Flatpak installed! Run with: make flatpak-run" | |
| 250 | 250 | ||
| 251 | 251 | flatpak-run: ## Run the installed Flatpak | |
| @@ -239,13 +239,13 @@ flatpak-deps: ## Install Flatpak build dependencies (Arch) | |||||
| 239 | 239 | ||||
| 240 | flatpak-build: ## Build Flatpak bundle locally | 240 | flatpak-build: ## Build Flatpak bundle locally | ||
| 241 | @echo "Building Flatpak bundle..." | 241 | @echo "Building Flatpak bundle..." | ||
| 242 | - | flatpak-builder --force-clean --user --repo=flatpak-repo flatpak-build dev.bnema.Dumber.yml | 242 | + | flatpak-builder --force-clean --user --repo=flatpak-repo flatpak-build flatpak/dev.bnema.Dumber.yml |
| 243 | flatpak build-bundle flatpak-repo dumber.flatpak dev.bnema.Dumber | 243 | flatpak build-bundle flatpak-repo dumber.flatpak dev.bnema.Dumber | ||
| 244 | @echo "Flatpak bundle created: dumber.flatpak" | 244 | @echo "Flatpak bundle created: dumber.flatpak" | ||
| 245 | 245 | ||||
| 246 | flatpak-install: ## Install Flatpak locally for testing | 246 | flatpak-install: ## Install Flatpak locally for testing | ||
| 247 | @echo "Installing Flatpak locally..." | 247 | @echo "Installing Flatpak locally..." | ||
| 248 | - | flatpak-builder --force-clean --user --install flatpak-build dev.bnema.Dumber.yml | 248 | + | flatpak-builder --force-clean --user --install flatpak-build flatpak/dev.bnema.Dumber.yml |
| 249 | @echo "Flatpak installed! Run with: make flatpak-run" | 249 | @echo "Flatpak installed! Run with: make flatpak-run" | ||
| 250 | 250 | ||||
| 251 | flatpak-run: ## Run the installed Flatpak | 251 | flatpak-run: ## Run the installed Flatpak | ||
M flatpak/dev.bnema.Dumber.yml +2 -2
| @@ -53,10 +53,10 @@ modules: | |||
| 53 | 53 | path: dev.bnema.Dumber.desktop | |
| 54 | 54 | # Icons | |
| 55 | 55 | - type: file | |
| 56 | - | path: assets/logo.svg | |
| 56 | + | path: ../assets/logo.svg | |
| 57 | 57 | dest-filename: logo.svg | |
| 58 | 58 | - type: file | |
| 59 | - | path: assets/logo-512.png | |
| 59 | + | path: ../assets/logo-512.png | |
| 60 | 60 | dest-filename: logo-512.png | |
| 61 | 61 | # Metainfo | |
| 62 | 62 | - type: file | |
| @@ -53,10 +53,10 @@ modules: | |||||
| 53 | path: dev.bnema.Dumber.desktop | 53 | path: dev.bnema.Dumber.desktop | ||
| 54 | # Icons | 54 | # Icons | ||
| 55 | - type: file | 55 | - type: file | ||
| 56 | - | path: assets/logo.svg | 56 | + | path: ../assets/logo.svg |
| 57 | dest-filename: logo.svg | 57 | dest-filename: logo.svg | ||
| 58 | - type: file | 58 | - type: file | ||
| 59 | - | path: assets/logo-512.png | 59 | + | path: ../assets/logo-512.png |
| 60 | dest-filename: logo-512.png | 60 | dest-filename: logo-512.png | ||
| 61 | # Metainfo | 61 | # Metainfo | ||
| 62 | - type: file | 62 | - type: file | ||
A vendor/github.com/a-h/parse/.gitignore +1 -0 generated file: collapsed
A vendor/github.com/a-h/parse/LICENSE +21 -0 generated file: collapsed
A vendor/github.com/a-h/parse/README.md +145 -0 generated file: collapsed
A vendor/github.com/a-h/parse/all.go +26 -0 generated file: collapsed
A vendor/github.com/a-h/parse/any.go +22 -0 generated file: collapsed
A vendor/github.com/a-h/parse/convert.go +14 -0 generated file: collapsed
A vendor/github.com/a-h/parse/digits.go +4 -0 generated file: collapsed
A vendor/github.com/a-h/parse/eof.go +15 -0 generated file: collapsed
A vendor/github.com/a-h/parse/error.go +21 -0 generated file: collapsed
A vendor/github.com/a-h/parse/input.go +79 -0 generated file: collapsed
A vendor/github.com/a-h/parse/optional.go +26 -0 generated file: collapsed
A vendor/github.com/a-h/parse/or.go +37 -0 generated file: collapsed
A vendor/github.com/a-h/parse/regexp.go +46 -0 generated file: collapsed
A vendor/github.com/a-h/parse/rune.go +58 -0 generated file: collapsed
A vendor/github.com/a-h/parse/sequenceof2.go +27 -0 generated file: collapsed
A vendor/github.com/a-h/parse/sequenceof3.go +35 -0 generated file: collapsed
A vendor/github.com/a-h/parse/sequenceof4.go +41 -0 generated file: collapsed
A vendor/github.com/a-h/parse/sequenceof5.go +48 -0 generated file: collapsed
A vendor/github.com/a-h/parse/sequenceof6.go +55 -0 generated file: collapsed
A vendor/github.com/a-h/parse/sequenceof7.go +62 -0 generated file: collapsed
A vendor/github.com/a-h/parse/sequenceof8.go +69 -0 generated file: collapsed
A vendor/github.com/a-h/parse/sequenceof9.go +76 -0 generated file: collapsed
A vendor/github.com/a-h/parse/string.go +40 -0 generated file: collapsed
A vendor/github.com/a-h/parse/stringfrom.go +30 -0 generated file: collapsed
A vendor/github.com/a-h/parse/stringuntil.go +49 -0 generated file: collapsed
A vendor/github.com/a-h/parse/then.go +9 -0 generated file: collapsed
A vendor/github.com/a-h/parse/times.go +83 -0 generated file: collapsed
A vendor/github.com/a-h/parse/tuples.go +69 -0 generated file: collapsed
A vendor/github.com/a-h/parse/types.go +33 -0 generated file: collapsed
A vendor/github.com/a-h/parse/until.go +68 -0 generated file: collapsed
A vendor/github.com/a-h/parse/whitespace.go +29 -0 generated file: collapsed
A vendor/github.com/a-h/templ/.dockerignore +3 -0 generated file: collapsed
A vendor/github.com/a-h/templ/.envrc +1 -0 generated file: collapsed
A vendor/github.com/a-h/templ/.gitignore +40 -0 generated file: collapsed
A vendor/github.com/a-h/templ/.goreleaser.yaml +72 -0 generated file: collapsed
A vendor/github.com/a-h/templ/.ignore +9 -0 generated file: collapsed
A vendor/github.com/a-h/templ/.version +1 -0 generated file: collapsed
A vendor/github.com/a-h/templ/CODE_OF_CONDUCT.md +128 -0 generated file: collapsed
A vendor/github.com/a-h/templ/CONTRIBUTING.md +247 -0 generated file: collapsed
A vendor/github.com/a-h/templ/LICENSE +21 -0 generated file: collapsed
A vendor/github.com/a-h/templ/README.md +194 -0 generated file: collapsed
A vendor/github.com/a-h/templ/SECURITY.md +9 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/fmtcmd/main.go +132 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/fmtcmd/testdata.txtar +66 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/generatecmd/cmd.go +452 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/generatecmd/eventhandler.go +349 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/generatecmd/fatalerror.go +23 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/generatecmd/main.go +237 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/generatecmd/modcheck/modcheck.go +82 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/generatecmd/proxy/proxy.go +385 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/generatecmd/proxy/script.js +10 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/generatecmd/run/run_unix.go +88 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/generatecmd/run/run_windows.go +75 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/generatecmd/sse/server.go +84 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/generatecmd/watcher/watch.go +166 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/infocmd/main.go +195 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/lspcmd/httpdebug/handler.go +130 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/lspcmd/httpdebug/list.templ +22 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/lspcmd/httpdebug/list_templ.go +114 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/lspcmd/main.go +145 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/lspcmd/pls/main.go +128 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/lspcmd/proxy/client.go +146 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/lspcmd/proxy/diagnosticcache.go +61 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/lspcmd/proxy/documentcontents.go +215 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/lspcmd/proxy/rewrite.go +24 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/lspcmd/proxy/server.go +1464 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/lspcmd/proxy/snippets.go +111 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/lspcmd/proxy/sourcemapcache.go +60 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/lspcmd/stdrwc.go +50 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/main.go +280 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/processor/processor.go +66 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/sloghandler/handler.go +120 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/visualize/sourcemapvisualisation.templ +68 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/visualize/sourcemapvisualisation_templ.go +295 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cmd/templ/visualize/types.go +87 -0 generated file: collapsed
A vendor/github.com/a-h/templ/cosign.pub +4 -0 generated file: collapsed
A vendor/github.com/a-h/templ/flake.lock +87 -0 generated file: collapsed
A vendor/github.com/a-h/templ/flake.nix +99 -0 generated file: collapsed
A vendor/github.com/a-h/templ/flush.go +36 -0 generated file: collapsed
A vendor/github.com/a-h/templ/fragment.go +73 -0 generated file: collapsed
A vendor/github.com/a-h/templ/generator/generator.go +1829 -0 generated file: collapsed
A vendor/github.com/a-h/templ/generator/rangewriter.go +122 -0 generated file: collapsed
A vendor/github.com/a-h/templ/handler.go +163 -0 generated file: collapsed
A vendor/github.com/a-h/templ/ide-demo.gif +0 -0 binary file: no text diff
binary file: no text diff
A vendor/github.com/a-h/templ/internal/format/scriptelement.go +96 -0 generated file: collapsed
A vendor/github.com/a-h/templ/internal/format/styleelement.go +25 -0 generated file: collapsed
A vendor/github.com/a-h/templ/internal/format/templ.go +102 -0 generated file: collapsed
A vendor/github.com/a-h/templ/internal/htmlfind/htmlfind.go +67 -0 generated file: collapsed
A vendor/github.com/a-h/templ/internal/imports/process.go +218 -0 generated file: collapsed
A vendor/github.com/a-h/templ/internal/lazyloader/docheader.go +27 -0 generated file: collapsed
A vendor/github.com/a-h/templ/internal/lazyloader/docheaderparser.go +53 -0 generated file: collapsed
A vendor/github.com/a-h/templ/internal/lazyloader/pkgloader.go +55 -0 generated file: collapsed
A vendor/github.com/a-h/templ/internal/lazyloader/pkgtraverser.go +110 -0 generated file: collapsed
A vendor/github.com/a-h/templ/internal/lazyloader/templdoclazyloader.go +161 -0 generated file: collapsed
A vendor/github.com/a-h/templ/internal/prettier/prettier.go +133 -0 generated file: collapsed
A vendor/github.com/a-h/templ/internal/prettier/testdata.txtar +12 -0 generated file: collapsed
A vendor/github.com/a-h/templ/internal/skipdir/skipdir.go +20 -0 generated file: collapsed
A vendor/github.com/a-h/templ/internal/syncmap/map.go +49 -0 generated file: collapsed
A vendor/github.com/a-h/templ/internal/syncset/set.go +42 -0 generated file: collapsed
A vendor/github.com/a-h/templ/join.go +19 -0 generated file: collapsed
A vendor/github.com/a-h/templ/js.go +40 -0 generated file: collapsed
A vendor/github.com/a-h/templ/jsonscript.go +85 -0 generated file: collapsed
A vendor/github.com/a-h/templ/jsonstring.go +14 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/LICENSE +29 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/jsonrpc2/codes.go +86 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/jsonrpc2/conn.go +244 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/jsonrpc2/errors.go +70 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/jsonrpc2/handler.go +120 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/jsonrpc2/jsonrpc2.go +7 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/jsonrpc2/message.go +354 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/jsonrpc2/serve.go +131 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/jsonrpc2/stream.go +225 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/jsonrpc2/wire.go +140 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/base.go +95 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/basic.go +705 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/callhierarchy.go +103 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/capabilities_client.go +1068 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/capabilities_server.go +523 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/client.go +412 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/context.go +26 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/deprecated.go +264 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/diagnostics.go +149 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/doc.go +23 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/errors.go +40 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/general.go +461 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/handler.go +88 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/language.go +1401 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/progress.go +119 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/protocol.go +41 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/registration.go +44 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/selectionrange.go +110 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/semantic_token.go +179 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/server.go +1893 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/text.go +111 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/util.go +9 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/version.go +7 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/window.go +111 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/protocol/workspace.go +213 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/uri/uri.go +245 -0 generated file: collapsed
A vendor/github.com/a-h/templ/lsp/xcontext/xcontext.go +22 -0 generated file: collapsed
A vendor/github.com/a-h/templ/once.go +63 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/calltemplateparser.go +37 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/childrenparser.go +25 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/conditionalattributeparser.go +103 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/cssparser.go +200 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/diagnostics.go +64 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/doctypeparser.go +33 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/elementparser.go +605 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/expressionparser.go +246 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/fallthroughparser.go +26 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/forexpressionparser.go +57 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/fuzz.sh +5 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/gocodeparser.go +64 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/gocommentparser.go +66 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/goexpression/fuzz.sh +19 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/goexpression/parse.go +343 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/goexpression/scanner.go +180 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/goparser.go +70 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/htmlcommentparser.go +40 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/ifexpressionparser.go +144 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/packageparser.go +32 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/parser.go +55 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/raw.go +67 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/scriptparser.go +336 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/scripttemplateparser.go +91 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/sourcemap.go +134 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/stringexpressionparser.go +44 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/structure.go +43 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/switchexpressionparser.go +171 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/templatefile.go +195 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/templateparser.go +154 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/templelementparser.go +59 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/textparser.go +53 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/types.go +1537 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/visitor.go +36 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/visitor/visitor.go +357 -0 generated file: collapsed
A vendor/github.com/a-h/templ/parser/v2/whitespaceparser.go +14 -0 generated file: collapsed
A vendor/github.com/a-h/templ/runtime.go +736 -0 generated file: collapsed
A vendor/github.com/a-h/templ/runtime/buffer.go +62 -0 generated file: collapsed
A vendor/github.com/a-h/templ/runtime/bufferpool.go +38 -0 generated file: collapsed
A vendor/github.com/a-h/templ/runtime/builder.go +8 -0 generated file: collapsed
A vendor/github.com/a-h/templ/runtime/runtime.go +21 -0 generated file: collapsed
A vendor/github.com/a-h/templ/runtime/scriptelement.go +107 -0 generated file: collapsed
A vendor/github.com/a-h/templ/runtime/styleattribute.go +217 -0 generated file: collapsed
A vendor/github.com/a-h/templ/runtime/watchmode.go +181 -0 generated file: collapsed
A vendor/github.com/a-h/templ/safehtml/style.go +199 -0 generated file: collapsed
A vendor/github.com/a-h/templ/scripttemplate.go +150 -0 generated file: collapsed
A vendor/github.com/a-h/templ/templ.png +0 -0 binary file: no text diff
binary file: no text diff
A vendor/github.com/a-h/templ/url.go +31 -0 generated file: collapsed
A vendor/github.com/a-h/templ/version.go +10 -0 generated file: collapsed
A vendor/github.com/a-h/templ/watchmode.go +105 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/.gitignore +2 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/LICENSE +19 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/README.md +19 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/backward_references.go +185 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/backward_references_hq.go +796 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/bit_cost.go +436 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/bit_reader.go +266 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/bitwriter.go +56 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/block_splitter.go +144 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/block_splitter_command.go +434 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/block_splitter_distance.go +433 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/block_splitter_literal.go +433 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/brotli_bit_stream.go +1435 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/cluster.go +30 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/cluster_command.go +164 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/cluster_distance.go +326 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/cluster_literal.go +326 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/command.go +254 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/compress_fragment.go +834 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/compress_fragment_two_pass.go +775 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/constants.go +77 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/context.go +2176 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/decode.go +2570 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/dictionary.go +122890 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/dictionary_hash.go +32779 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/encode.go +1220 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/encoder.go +177 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/encoder_dict.go +22 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/encoder_fast.go +197 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/entropy_encode.go +592 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/entropy_encode_static.go +4399 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/fast_log.go +290 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/find_match_length.go +45 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/flate/LICENSE +27 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/flate/README.md +2 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/flate/gzip.go +65 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/flate/huffman_bit_writer.go +517 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/flate/huffman_code.go +346 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/flate/token.go +80 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/flate/writer.go +66 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/h10.go +287 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/h5.go +214 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/h6.go +216 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/hash.go +342 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/hash_composite.go +93 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/hash_forgetful_chain.go +252 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/hash_longest_match_quickly.go +214 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/hash_rolling.go +168 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/histogram.go +226 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/http.go +189 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/huffman.go +653 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/literal_cost.go +182 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/matchfinder/bargain1.go +212 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/matchfinder/bargain2.go +248 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/matchfinder/bargain3.go +278 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/matchfinder/emitter.go +34 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/matchfinder/m0.go +175 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/matchfinder/m4.go +339 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/matchfinder/matchfinder.go +103 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/matchfinder/pathfinder.go +328 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/matchfinder/textencoder.go +53 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/matchfinder/trio.go +326 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/matchfinder/zdfast.go +258 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/matchfinder/zfast.go +206 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/matchfinder/zm.go +301 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/memory.go +66 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/metablock.go +574 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/metablock_command.go +165 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/metablock_distance.go +165 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/metablock_literal.go +165 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/params.go +37 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/platform.go +103 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/prefix.go +30 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/prefix_dec.go +723 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/quality.go +196 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/reader.go +126 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/ringbuffer.go +134 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/state.go +313 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/static_dict.go +662 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/static_dict_lut.go +75094 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/symbol_list.go +22 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/transform.go +641 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/utf8_util.go +70 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/util.go +7 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/write_bits.go +52 -0 generated file: collapsed
A vendor/github.com/andybalholm/brotli/writer.go +162 -0 generated file: collapsed
A vendor/github.com/atotto/clipboard/.travis.yml +22 -0 generated file: collapsed
A vendor/github.com/atotto/clipboard/LICENSE +27 -0 generated file: collapsed
A vendor/github.com/atotto/clipboard/README.md +48 -0 generated file: collapsed
A vendor/github.com/atotto/clipboard/clipboard.go +20 -0 generated file: collapsed
A vendor/github.com/atotto/clipboard/clipboard_darwin.go +52 -0 generated file: collapsed
A vendor/github.com/atotto/clipboard/clipboard_plan9.go +42 -0 generated file: collapsed
A vendor/github.com/atotto/clipboard/clipboard_unix.go +149 -0 generated file: collapsed
A vendor/github.com/atotto/clipboard/clipboard_windows.go +157 -0 generated file: collapsed
A vendor/github.com/aymanbagabas/go-osc52/v2/LICENSE +21 -0 generated file: collapsed
A vendor/github.com/aymanbagabas/go-osc52/v2/README.md +83 -0 generated file: collapsed
A vendor/github.com/aymanbagabas/go-osc52/v2/osc52.go +305 -0 generated file: collapsed
A vendor/github.com/bnema/purego-cef/LICENSE +21 -0 generated file: collapsed
A vendor/github.com/bnema/purego-cef/cef/bridge.go +779 -0 generated file: collapsed
A vendor/github.com/bnema/purego-cef/cef/cef_accessibility_handler_gen.go +135 -0 generated file: collapsed
A vendor/github.com/bnema/purego-cef/cef/cef_app_gen.go +255 -0 generated file: collapsed
A vendor/github.com/bnema/purego-cef/cef/cef_audio_handler_gen.go +222 -0 generated file: collapsed
A vendor/github.com/bnema/purego-cef/cef/cef_auth_callback_gen.go +80 -0 generated file: collapsed
A vendor/github.com/bnema/purego-cef/cef/cef_base_gen.go +13 -0 generated file: collapsed
A vendor/github.com/bnema/purego-cef/cef/cef_browser_gen.go +1327 -0 generated file: collapsed
A vendor/github.com/bnema/purego-cef/cef/cef_browser_process_handler_gen.go +280 -0 generated file: collapsed
A vendor/github.com/bnema/purego-cef/cef/cef_callback_gen.go +173 -0 generated file: collapsed
A vendor/github.com/bnema/purego-cef/cef/cef_client_gen.go +691 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_command_handler_gen.go +228 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_command_line_gen.go +269 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_context_menu_handler_gen.go +633 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_cookie_gen.go +417 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_crash_util_gen.go +24 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_devtools_message_observer_gen.go +219 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_dialog_handler_gen.go +186 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_display_handler_gen.go +440 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_dom_gen.go +578 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_download_handler_gen.go +308 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_download_item_gen.go +255 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_drag_data_gen.go +316 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_drag_handler_gen.go +144 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_file_util_gen.go +74 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_find_handler_gen.go +116 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_focus_handler_gen.go +162 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_frame_gen.go +284 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_frame_handler_gen.go +214 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_i18n_util_gen.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_image_gen.go +228 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_jsdialog_handler_gen.go +262 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_keyboard_handler_gen.go +142 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_life_span_handler_gen.go +261 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_load_handler_gen.go +198 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_media_router_gen.go +788 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_menu_model_delegate_gen.go +262 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_menu_model_gen.go +594 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_navigation_entry_gen.go +150 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_origin_whitelist_gen.go +39 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_parser_gen.go +114 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_path_util_gen.go +15 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_permission_handler_gen.go +303 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_preference_gen.go +276 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_print_handler_gen.go +364 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_print_settings_gen.go +270 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_process_message_gen.go +122 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_process_util_gen.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_registration_gen.go +60 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_render_handler_gen.go +562 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_render_process_handler_gen.go +325 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_request_context_gen.go +502 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_request_context_handler_gen.go +150 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_request_gen.go +537 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_request_handler_gen.go +490 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_resource_bundle_gen.go +93 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_resource_bundle_handler_gen.go +168 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_resource_handler_gen.go +392 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_resource_request_handler_gen.go +469 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_response_filter_gen.go +141 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_response_gen.go +224 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_scheme_gen.go +175 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_server_gen.go +470 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_shared_memory_region_gen.go +87 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_shared_process_message_builder_gen.go +104 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_ssl_info_gen.go +84 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_ssl_status_gen.go +105 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_stream_gen.go +669 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_string_visitor_gen.go +113 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_task_gen.go +237 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_task_manager_gen.go +137 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_thread_gen.go +103 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_trace_gen.go +135 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_types_color_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_types_content_settings_gen.go +162 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_types_gen.go +1624 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_types_geometry_gen.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_types_linux_gen.go +41 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_types_osr_gen.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_types_runtime_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_unresponsive_process_callback_gen.go +76 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_urlrequest_gen.go +350 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_v8_gen.go +1678 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_values_gen.go +1084 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_waitable_event_gen.go +113 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_x509_certificate_gen.go +300 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_xml_reader_gen.go +341 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/cef_zip_reader_gen.go +188 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/doc.go +26 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/init.go +191 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/.gitkeep +0 -0
no textual change.
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_app.go +261 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_browser.go +929 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_browser_process_handler.go +345 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_client.go +934 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_context_menu_handler.go +487 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_dialog_handler.go +130 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_display_handler.go +743 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_focus_handler.go +180 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_frame.go +1093 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_keyboard_handler.go +169 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_life_span_handler.go +407 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_load_handler.go +263 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_process_message.go +307 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_raw_client.go +934 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_raw_life_span_handler.go +409 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_render_handler.go +959 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_render_process_handler.go +491 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_request.go +1010 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_request_context.go +1167 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_request_handler.go +760 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/mocks/mock_response.go +768 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/opaque_types.go +12 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/string_list.go +46 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/test_cef_api_version_test__gen.go +2176 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/test_cef_test_helpers_gen.go +31 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/test_cef_test_server_gen.go +269 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/test_cef_translator_test__gen.go +1492 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_box_layout_gen.go +76 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_browser_view_delegate_gen.go +348 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_browser_view_gen.go +109 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_button_delegate_gen.go +135 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_button_gen.go +114 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_display_gen.go +182 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_fill_layout_gen.go +60 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_label_button_gen.go +163 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_layout_gen.go +87 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_menu_button_delegate_gen.go +160 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_menu_button_gen.go +84 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_overlay_controller_gen.go +224 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_panel_delegate_gen.go +87 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_panel_gen.go +168 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_scroll_view_gen.go +128 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_textfield_delegate_gen.go +137 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_textfield_gen.go +338 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_view_delegate_gen.go +362 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_view_gen.go +515 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_window_delegate_gen.go +682 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/views_cef_window_gen.go +423 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/cef/window_info_helpers.go +25 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/bridge.go +151 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_accessibility_handler_gen.go +43 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_app_gen.go +99 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_audio_handler_gen.go +72 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_auth_callback_gen.go +39 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_base_gen.go +77 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_browser_gen.go +1091 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_browser_process_handler_gen.go +106 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_callback_gen.go +55 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_client_gen.go +226 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_command_handler_gen.go +80 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_command_line_gen.go +255 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_context_menu_handler_gen.go +381 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_cookie_gen.go +124 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_crash_util_gen.go +16 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_devtools_message_observer_gen.go +78 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_dialog_handler_gen.go +55 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_display_handler_gen.go +168 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_dom_gen.go +478 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_download_handler_gen.go +104 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_download_item_gen.go +237 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_drag_data_gen.go +318 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_drag_handler_gen.go +41 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_file_util_gen.go +34 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_find_handler_gen.go +28 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_focus_handler_gen.go +50 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_frame_gen.go +303 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_frame_handler_gen.go +72 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_i18n_util_gen.go +9 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_image_gen.go +164 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_jsdialog_handler_gen.go +77 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_keyboard_handler_gen.go +39 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_life_span_handler_gen.go +83 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_load_handler_gen.go +61 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_media_router_gen.go +341 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_menu_model_delegate_gen.go +96 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_menu_model_gen.go +637 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_navigation_entry_gen.go +127 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_origin_whitelist_gen.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_parser_gen.go +52 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_path_util_gen.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_permission_handler_gen.go +99 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_preference_gen.go +127 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_print_handler_gen.go +126 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_print_settings_gen.go +265 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_process_message_gen.go +87 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_process_util_gen.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_registration_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_render_handler_gen.go +212 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_render_process_handler_gen.go +124 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_request_context_gen.go +326 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_request_context_handler_gen.go +43 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_request_gen.go +444 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_request_handler_gen.go +166 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_resource_bundle_gen.go +56 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_resource_bundle_handler_gen.go +52 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_resource_handler_gen.go +126 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_resource_request_handler_gen.go +148 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_response_filter_gen.go +39 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_response_gen.go +208 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_scheme_gen.go +51 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_server_gen.go +257 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_shared_memory_region_gen.go +50 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_shared_process_message_builder_gen.go +65 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_ssl_info_gen.go +43 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_ssl_status_gen.go +72 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_stream_gen.go +268 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_string_visitor_gen.go +28 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_task_gen.go +104 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_task_manager_gen.go +76 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_thread_gen.go +65 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_trace_gen.go +40 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_types_color_gen.go +7 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_types_content_settings_gen.go +9 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_types_gen.go +482 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_types_geometry_gen.go +37 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_types_linux_gen.go +51 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_types_osr_gen.go +26 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_types_runtime_gen.go +7 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_unresponsive_process_callback_gen.go +39 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_urlrequest_gen.go +158 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_v8_gen.go +1093 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_values_gen.go +1002 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_waitable_event_gen.go +76 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_x509_certificate_gen.go +217 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_xml_reader_gen.go +340 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/cef_zip_reader_gen.go +153 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/doc.go +25 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/register.go +15 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/register_gen.go +117 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/register_platform_darwin_gen.go +7 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/register_platform_default_gen.go +6 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/register_platform_linux_gen.go +8 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/register_platform_windows_gen.go +7 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/test_cef_api_version_test__gen.go +1231 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/test_cef_test_helpers_gen.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/test_cef_test_server_gen.go +114 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/test_cef_translator_test__gen.go +967 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_box_layout_gen.go +39 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_browser_view_delegate_gen.go +141 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_browser_view_gen.go +68 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_button_delegate_gen.go +39 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_button_gen.go +83 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_display_gen.go +122 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_fill_layout_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_label_button_gen.go +142 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_layout_gen.go +50 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_menu_button_delegate_gen.go +33 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_menu_button_gen.go +43 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_overlay_controller_gen.go +226 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_panel_delegate_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_panel_gen.go +153 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_scroll_view_gen.go +102 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_textfield_delegate_gen.go +39 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_textfield_gen.go +366 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_view_delegate_gen.go +138 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_view_gen.go +589 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_window_delegate_gen.go +278 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/capi/views_cef_window_gen.go +485 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/core/engine.go +29 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/core/helpers.go +20 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/core/init.go +158 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/core/marshal.go +146 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/core/refcount.go +185 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/loader/loader.go +115 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_accessibility_handler_gen.go +9 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_app_gen.go +12 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_audio_handler_gen.go +16 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_auth_callback_gen.go +9 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_base_gen.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_browser_gen.go +124 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_browser_process_handler_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_callback_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_client_gen.go +26 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_command_handler_gen.go +12 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_command_line_gen.go +32 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_context_menu_handler_gen.go +50 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_cookie_gen.go +27 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_devtools_message_observer_gen.go +16 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_dialog_handler_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_display_handler_gen.go +20 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_dom_gen.go +56 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_download_handler_gen.go +22 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_download_item_gen.go +27 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_drag_data_gen.go +34 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_drag_handler_gen.go +9 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_find_handler_gen.go +8 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_focus_handler_gen.go +10 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_frame_gen.go +33 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_frame_handler_gen.go +12 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_image_gen.go +24 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_jsdialog_handler_gen.go +16 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_keyboard_handler_gen.go +9 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_life_span_handler_gen.go +17 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_load_handler_gen.go +11 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_media_router_gen.go +61 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_menu_model_delegate_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_menu_model_gen.go +63 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_navigation_entry_gen.go +17 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_permission_handler_gen.go +21 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_preference_gen.go +23 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_print_handler_gen.go +24 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_print_settings_gen.go +29 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_process_message_gen.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_registration_gen.go +7 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_render_handler_gen.go +24 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_render_process_handler_gen.go +16 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_request_context_gen.go +40 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_request_context_handler_gen.go +9 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_request_gen.go +56 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_request_handler_gen.go +23 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_resource_bundle_gen.go +10 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_resource_bundle_handler_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_resource_handler_gen.go +28 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_resource_request_handler_gen.go +21 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_response_filter_gen.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_response_gen.go +24 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_scheme_gen.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_server_gen.go +36 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_shared_memory_region_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_shared_process_message_builder_gen.go +15 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_ssl_info_gen.go +9 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_ssl_status_gen.go +12 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_stream_gen.go +43 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_string_visitor_gen.go +8 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_task_gen.go +17 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_task_manager_gen.go +12 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_thread_gen.go +11 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_trace_gen.go +8 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_types_color_gen.go +5 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_types_content_settings_gen.go +7 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_types_gen.go +256 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_types_geometry_gen.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_types_linux_gen.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_types_osr_gen.go +10 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_types_runtime_gen.go +5 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_unresponsive_process_callback_gen.go +9 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_urlrequest_gen.go +27 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_v8_gen.go +131 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_values_gen.go +110 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_waitable_event_gen.go +12 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_x509_certificate_gen.go +28 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_xml_reader_gen.go +36 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/cef_zip_reader_gen.go +23 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/opaque_types.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/test_cef_api_version_test__gen.go +160 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/test_cef_test_server_gen.go +26 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/test_cef_translator_test__gen.go +123 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_box_layout_gen.go +9 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_browser_view_delegate_gen.go +17 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_browser_view_gen.go +11 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_button_delegate_gen.go +9 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_button_gen.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_display_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_fill_layout_gen.go +7 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_label_button_gen.go +18 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_layout_gen.go +10 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_menu_button_delegate_gen.go +12 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_menu_button_gen.go +9 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_overlay_controller_gen.go +26 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_panel_delegate_gen.go +7 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_panel_gen.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_scroll_view_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_textfield_delegate_gen.go +9 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_textfield_gen.go +38 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_view_delegate_gen.go +18 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_view_gen.go +59 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_window_delegate_gen.go +30 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_window_gen.go +49 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/capi.go +25 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_app_gen.go +20 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_auth_callback_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_browser_gen.go +112 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_callback_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_command_line_gen.go +39 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_context_menu_handler_gen.go +44 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_cookie_gen.go +22 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_crash_util_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_dialog_handler_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_dom_gen.go +56 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_download_handler_gen.go +20 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_download_item_gen.go +32 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_drag_data_gen.go +44 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_file_util_gen.go +20 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_frame_gen.go +38 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_i18n_util_gen.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_image_gen.go +30 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_jsdialog_handler_gen.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_media_router_gen.go +49 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_menu_model_gen.go +73 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_navigation_entry_gen.go +22 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_origin_whitelist_gen.go +15 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_parser_gen.go +26 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_path_util_gen.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_permission_handler_gen.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_preference_gen.go +30 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_print_handler_gen.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_print_settings_gen.go +39 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_process_message_gen.go +23 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_process_util_gen.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_registration_gen.go +12 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_request_context_gen.go +42 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_request_gen.go +64 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_request_handler_gen.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_resource_bundle_gen.go +20 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_resource_handler_gen.go +18 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_response_gen.go +34 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_scheme_gen.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_server_gen.go +30 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_shared_memory_region_gen.go +15 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_shared_process_message_builder_gen.go +21 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_ssl_info_gen.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_ssl_status_gen.go +17 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_stream_gen.go +35 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_task_gen.go +26 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_task_manager_gen.go +22 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_thread_gen.go +21 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_trace_gen.go +15 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_types_linux_gen.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_unresponsive_process_callback_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_urlrequest_gen.go +24 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_v8_gen.go +131 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_values_gen.go +119 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_waitable_event_gen.go +22 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_x509_certificate_gen.go +33 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_xml_reader_gen.go +46 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/cef_zip_reader_gen.go +29 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/test_cef_api_version_test__gen.go +146 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/test_cef_test_helpers_gen.go +15 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/test_cef_test_server_gen.go +27 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/test_cef_translator_test__gen.go +119 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_box_layout_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_browser_view_gen.go +22 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_button_gen.go +18 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_display_gen.go +32 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_fill_layout_gen.go +12 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_label_button_gen.go +28 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_layout_gen.go +15 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_menu_button_delegate_gen.go +12 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_menu_button_gen.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_overlay_controller_gen.go +31 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_panel_gen.go +29 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_scroll_view_gen.go +24 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_textfield_gen.go +48 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_view_gen.go +64 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_window_gen.go +59 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/.gitignore +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/Makefile +29 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/README.md +124 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/browser_settings.go +20 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/command_line.go +23 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/diagnostics.go +137 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/doc.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/handlers.go +197 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/input.go +277 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/cefadapter/accelerated_paint.go +85 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/cefadapter/command_line.go +108 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/cefadapter/window_info.go +12 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/cutil/cstring.go +18 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/dmabuf/format.go +48 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/dmabuf/frame.go +125 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/dmabuf/modifier.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/egl/attrs.go +82 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/egl/display.go +70 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/egl/extensions.go +47 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/egl/importer.go +165 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/egl/loader.go +104 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/egl/types.go +18 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/gl/copy.go +513 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/gl/loader.go +262 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/gl/timer_query.go +96 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/gtkgdk/renderer.go +922 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/gtkgl/accelerated_renderer.go +470 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/gtkgl/context.go +172 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/gtkgl/gl.go +95 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/gtkgl/glib.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/gtkgl/input_bridge.go +1037 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/gtkgl/main_thread.go +39 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/gtkgl/render_signal.go +17 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/internal/profile/recorder.go +352 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/options.go +158 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/osr_backing_scale.go +135 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/profile.go +50 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/refresh_rate.go +56 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/render_stack.go +68 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/size_observation.go +88 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/view.go +966 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-cef2gtk/window_info.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/capi/.gitkeep +0 -0
no textual change.
A vendor/github.com/bnema/purego-pipewire/internal/capi/adapters_gen.go +93 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/capi/init_gen.go +30 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/capi/loop_gen.go +53 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/capi/loop_lock.go +40 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/capi/register.go +41 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/capi/register_all.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/capi/stream_ops.go +272 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/capi/stream_params.go +172 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/capi/stream_playback_gen.go +79 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/core/context.go +31 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/core/core.go +29 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/core/loop.go +35 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/core/player.go +435 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/core/player_rt.go +203 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/core/player_state.go +15 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/core/pwbuffer.go +139 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/core/registry.go +30 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/core/runtime.go +82 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/core/stream.go +38 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/loader/loader.go +43 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/ports/out/.gitkeep +0 -0
no textual change.
A vendor/github.com/bnema/purego-pipewire/internal/ports/out/capi.go +5 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/ports/out/capi_gen.go +10 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/ports/out/init_gen.go +9 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/ports/out/loop_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/ports/out/stream_ops.go +56 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/internal/ports/out/stream_playback_gen.go +17 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/pipewire/context.go +8 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/pipewire/core.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/pipewire/interfaces.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/pipewire/player.go +218 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/pipewire/registry.go +12 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/pipewire/runtime.go +60 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-pipewire/pipewire/stream.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/driver/driver.go +185 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/driver/register.go +10 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/capi/bridge.go +1461 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/capi/enums_gen.go +863 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/capi/functions_gen.go +358 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/capi/register_gen.go +377 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/capi/variadic_gen.go +141 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/core/db.go +122 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/core/errors.go +51 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/core/rows.go +181 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/core/stmt.go +128 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/loader/loader.go +22 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/in/ports_gen.go +33 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/auth_gen.go +11 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/backup_gen.go +15 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/bind_gen.go +27 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/blob_gen.go +16 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/capi_gen.go +29 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/column_gen.go +32 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/config_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/context_gen.go +12 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/exec_gen.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/func_gen.go +17 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/hook_gen.go +20 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/lifecycle_gen.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/memory_gen.go +25 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/metadata_gen.go +22 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/misc_gen.go +151 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/prepare_gen.go +31 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/result_gen.go +31 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/serialize_gen.go +12 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/str_gen.go +22 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/trace_gen.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/value_gen.go +29 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/vfs_gen.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/vtab_gen.go +20 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/internal/ports/out/wal_gen.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego-sqlite/sqlite/sqlite_gen.go +49 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/.gitignore +1 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/LICENSE +201 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/README.md +147 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/abi_amd64.h +99 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/abi_arm64.h +39 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/abi_loong64.h +60 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/cgo.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/dlerror.go +17 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/dlfcn.go +99 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/dlfcn_android.go +34 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/dlfcn_darwin.go +20 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/dlfcn_freebsd.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/dlfcn_linux.go +16 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/dlfcn_netbsd.go +15 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/dlfcn_nocgo_freebsd.go +11 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/dlfcn_nocgo_linux.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/dlfcn_nocgo_netbsd.go +11 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/dlfcn_playground.go +24 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/dlfcn_stubs.s +22 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/func.go +677 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/gen.go +6 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/go_runtime.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/hostlayout_go123.go +12 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/hostlayout_nogo123.go +11 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/cgo/dlfcn_cgo_unix.go +56 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/cgo/empty.go +6 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/cgo/syscall_cgo_unix.go +55 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/abi_amd64.h +99 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/abi_arm64.h +39 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/abi_loong64.h +60 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/abi_ppc64x.h +195 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/abi_riscv64.h +72 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/asm_386.s +29 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/asm_amd64.s +39 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/asm_arm.s +52 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/asm_arm64.s +36 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/asm_loong64.s +40 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/asm_ppc64le.s +82 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/asm_riscv64.s +37 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/asm_s390x.s +55 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/callbacks.go +93 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/doc.go +32 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/fakecgo.go +14 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/freebsd.go +27 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/go_darwin.go +88 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/go_freebsd.go +79 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/go_libinit.go +72 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/go_linux.go +79 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/go_netbsd.go +85 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/go_setenv.go +18 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/go_util.go +38 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/iscgo.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/libcgo.go +39 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/libcgo_darwin.go +26 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/libcgo_freebsd.go +20 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/libcgo_linux.go +20 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/libcgo_netbsd.go +26 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/linux.go +184 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/netbsd.go +23 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/setenv.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/trampolines_386.s +121 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/trampolines_amd64.s +107 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/trampolines_arm.s +122 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/trampolines_arm64.s +81 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/trampolines_linux_386.s +78 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/trampolines_linux_amd64.s +69 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/trampolines_linux_arm.s +69 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/trampolines_linux_arm64.s +60 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/trampolines_linux_loong64.s +60 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/trampolines_linux_ppc64le.s +69 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/trampolines_linux_riscv64.s +60 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/trampolines_loong64.s +78 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/trampolines_ppc64le.s +128 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/trampolines_riscv64.s +76 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/zsymbols.go +165 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/zsymbols_darwin.go +59 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/zsymbols_freebsd.go +48 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/zsymbols_linux.go +158 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/zsymbols_netbsd.go +59 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/ztrampolines_darwin.s +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/ztrampolines_freebsd.s +16 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/ztrampolines_linux.s +46 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/ztrampolines_netbsd.s +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/fakecgo/ztrampolines_stubs.s +55 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/strings/strings.go +40 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/xreflect/reflect_go124.go +15 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/internal/xreflect/reflect_go125.go +12 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/is_ios.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/nocgo.go +25 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/struct_386.go +52 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/struct_abi_helpers.go +38 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/struct_amd64.go +443 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/struct_arm.go +98 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/struct_arm64.go +759 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/struct_loong64.go +216 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/struct_ppc64le.go +151 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/struct_riscv64.go +151 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/struct_s390x.go +151 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/sys_386.s +147 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/sys_amd64.s +170 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/sys_arm.s +142 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/sys_arm64.s +98 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/sys_loong64.s +96 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/sys_ppc64le.s +120 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/sys_riscv64.s +101 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/sys_s390x.s +114 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/sys_unix_386.s +226 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/sys_unix_arm.s +89 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/sys_unix_arm64.s +75 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/sys_unix_loong64.s +79 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/sys_unix_ppc64le.s +114 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/sys_unix_riscv64.s +79 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/sys_unix_s390x.s +109 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/syscall.go +108 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/syscall_32bit.go +115 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/syscall_cgo_linux.go +21 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/syscall_notstackargs.go +38 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/syscall_stackargs.go +43 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/syscall_unix.go +693 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/syscall_windows.go +112 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/zcallback_386.s +4014 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/zcallback_amd64.s +2014 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/zcallback_arm.s +4014 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/zcallback_arm64.s +4014 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/zcallback_loong64.s +4014 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/zcallback_ppc64le.s +4014 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/zcallback_riscv64.s +4051 -0 collapsed to keep the page light
A vendor/github.com/bnema/purego/zcallback_s390x.s +4015 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/internal/core/core.go +322 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/pkg/core/core.go +20 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-about-dialog.go +2021 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-about-window.go +2050 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-accent-color.go +88 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-action-row.go +808 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-alert-dialog.go +1195 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-animation-target.go +330 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-animation-util.go +43 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-animation.go +390 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-application-window.go +977 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-application.go +505 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-avatar.go +596 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-banner.go +707 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-bin.go +393 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-bottom-sheet.go +1010 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint-bin.go +532 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint.go +566 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-button-content.go +572 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-button-row.go +580 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-dots.go +410 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-lines.go +409 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-carousel.go +861 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-layout.go +264 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-scrollable.go +610 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-clamp.go +553 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-combo-row.go +815 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-dialog.go +947 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-easing.go +154 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-entry-row.go +1070 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-enum-list-model.go +309 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-expander-row.go +784 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-flap.go +1036 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-fold-threshold-policy.go +21 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-header-bar.go +812 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-inline-view-switcher.go +572 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-layout-slot.go +389 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-layout.go +157 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-leaflet.go +1283 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-length-unit.go +70 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-main.go +49 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-message-dialog.go +1199 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-multi-layout-view.go +565 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-direction.go +21 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-split-view.go +855 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-view.go +1895 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-overlay-split-view.go +989 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-password-entry-row.go +701 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-dialog.go +522 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-group.go +588 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-page.go +667 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-row.go +607 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-window.go +713 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-shortcut-label.go +488 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-dialog.go +452 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-item.go +287 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-section.go +255 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-item.go +553 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-section.go +389 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar.go +1142 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-spin-row.go +1112 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-spinner-paintable.go +300 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-spinner.go +392 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-split-button.go +884 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-spring-animation.go +473 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-spring-params.go +179 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-squeezer.go +966 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-status-page.go +563 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-style-manager.go +423 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-swipe-tracker.go +516 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-swipeable.go +275 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-switch-row.go +501 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-tab-bar.go +799 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-tab-button.go +540 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-tab-overview.go +962 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-tab-view.go +2291 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-timed-animation.go +385 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-toast-overlay.go +452 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-toast.go +712 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-toggle-group.go +1183 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-toolbar-view.go +933 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-version.go +81 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-view-stack.go +1874 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-bar.go +479 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-sidebar.go +554 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-title.go +603 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher.go +490 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-window-title.go +451 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-window.go +693 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-box.go +925 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-layout.go +676 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/cairo/main.go +990 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkapplaunchcontext.go +160 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkcairo.go +101 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkcairocontext.go +78 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkcicpparams.go +334 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkclipboard.go +412 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkcolorstate.go +131 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentdeserializer.go +279 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentformats.go +248 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentprovider.go +522 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentserializer.go +280 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkcursor.go +340 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkdevice.go +616 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicepad.go +151 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicetool.go +168 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplay.go +733 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplaymanager.go +254 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexture.go +309 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexturebuilder.go +613 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexturebuilder_extra.go +41 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkdrag.go +374 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurface.go +81 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurfacesize.go +58 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkdrawcontext.go +178 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkdrop.go +297 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkenums.go +876 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkevents.go +1447 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkframeclock.go +476 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkframetimings.go +165 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkglcontext.go +420 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexture.go +329 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexturebuilder.go +502 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkkeys.go +116 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkkeysyms.go +4904 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexture.go +315 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexturebuilder.go +453 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkmonitor.go +382 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkpaintable.go +545 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkpango.go +72 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkpixbuf.go +67 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkpopup.go +193 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkpopuplayout.go +307 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkrgba.go +192 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkseat.go +272 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdksnapshot.go +56 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdksurface.go +704 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdktexture.go +720 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevel.go +660 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevellayout.go +197 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevelsize.go +108 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdktypes.go +830 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdk/gdkvulkancontext.go +96 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-animation.go +752 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-core.go +107 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-features.go +19 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-io.go +547 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-loader.go +561 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-simple-anim.go +134 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-transform.go +73 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf.go +1760 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gdkpixbuf/main.go +106 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gaction.go +635 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gactiongroup.go +795 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gactionmap.go +422 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gappinfo.go +2114 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gapplication.go +2189 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gapplicationcommandline.go +711 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gasyncinitable.go +336 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gasyncresult.go +318 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gbufferedinputstream.go +559 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gbufferedoutputstream.go +321 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gbytesicon.go +197 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gcancellable.go +618 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gcharsetconverter.go +336 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gcontenttype.go +239 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gconverter.go +263 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gconverterinputstream.go +327 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gconverteroutputstream.go +360 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gcredentials.go +244 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdatagrambased.go +481 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdatainputstream.go +678 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdataoutputstream.go +425 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusactiongroup.go +341 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusaddress.go +159 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusauthobserver.go +209 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusconnection.go +1898 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbuserror.go +184 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusinterface.go +284 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusinterfaceskeleton.go +541 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusintrospection.go +581 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusmenumodel.go +81 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusmessage.go +729 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusmethodinvocation.go +387 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusnameowning.go +136 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusnamewatching.go +115 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusobject.go +272 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanager.go +383 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerclient.go +726 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerserver.go +275 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectproxy.go +181 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectskeleton.go +273 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusproxy.go +1098 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusserver.go +317 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdbusutils.go +211 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdebugcontroller.go +138 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdebugcontrollerdbus.go +371 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdrive.go +1327 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdtlsclientconnection.go +176 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdtlsconnection.go +914 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gdtlsserverconnection.go +96 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gemblem.go +186 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gemblemedicon.go +206 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gfile.go +6341 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gfileattribute.go +145 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gfileenumerator.go +769 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gfileicon.go +202 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gfileinfo.go +1628 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gfileinputstream.go +519 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gfileiostream.go +623 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gfilemonitor.go +394 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gfilenamecompleter.go +251 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gfileoutputstream.go +618 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gfilterinputstream.go +205 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gfilteroutputstream.go +205 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gicon.go +371 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/ginetaddress.go +550 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/ginetaddressmask.go +269 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/ginetsocketaddress.go +289 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/ginitable.go +202 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/ginputstream.go +865 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gioenums.go +2321 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gioerror.go +68 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/giomodule.go +350 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gioscheduler.go +48 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/giostream.go +727 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/giotypes.go +1134 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/giptosmessage.go +122 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gipv6tclassmessage.go +122 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/glistmodel.go +336 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gliststore.go +328 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gloadableicon.go +232 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gmemoryinputstream.go +420 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gmemorymonitor.go +177 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gmemoryoutputstream.go +616 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gmenu.go +760 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gmenuexporter.go +10 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gmenumodel.go +995 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gmount.go +1293 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gmountoperation.go +1009 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gnativesocketaddress.go +155 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gnativevolumemonitor.go +94 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gnetworkaddress.go +346 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gnetworking.go +32 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gnetworkmonitor.go +394 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gnetworkservice.go +279 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gnotification.go +283 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/goutputstream.go +1258 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gpermission.go +443 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gpollableinputstream.go +297 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gpollableoutputstream.go +370 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gpollableutils.go +132 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gpowerprofilemonitor.go +145 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gpropertyaction.go +337 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gproxy.go +307 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gproxyaddress.go +357 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gproxyaddressenumerator.go +294 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gproxyresolver.go +290 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gremoteactiongroup.go +183 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gresolver.go +1045 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gresource.go +254 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gseekable.go +302 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsettings.go +1830 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsettingsbackend.go +681 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsettingsschema.go +587 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsimpleaction.go +442 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsimpleactiongroup.go +498 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsimpleasyncresult.go +612 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsimpleiostream.go +79 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsimplepermission.go +75 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsimpleproxyresolver.go +454 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsocket.go +1992 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsocketaddress.go +257 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsocketaddressenumerator.go +260 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsocketclient.go +945 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsocketconnectable.go +296 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsocketconnection.go +404 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsocketcontrolmessage.go +447 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsocketlistener.go +626 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsocketservice.go +414 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsrvtarget.go +36 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsubprocess.go +632 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gsubprocesslauncher.go +409 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gtask.go +1334 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gtcpconnection.go +134 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gtcpwrapperconnection.go +131 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gtestdbus.go +234 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gthemedicon.go +300 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gthreadedresolver.go +56 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gthreadedsocketservice.go +319 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gtlsbackend.go +463 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gtlscertificate.go +768 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gtlsclientconnection.go +293 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gtlsconnection.go +826 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gtlsdatabase.go +883 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gtlsfiledatabase.go +130 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gtlsinteraction.go +522 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gtlspassword.go +330 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gtlsserverconnection.go +101 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gunixconnection.go +276 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gunixcredentialsmessage.go +222 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gunixfdlist.go +378 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gunixsocketaddress.go +349 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gvfs.go +704 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gvolume.go +1055 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gvolumemonitor.go +1190 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gzlibcompressor.go +316 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/gzlibdecompressor.go +225 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gio/main.go +30 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gallocator.go +184 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/garray.go +794 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gasyncqueue.go +431 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gatomic.go +395 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gbacktrace.go +101 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gbase64.go +110 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gbitlock.go +187 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gbookmarkfile.go +950 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gcache.go +123 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gcharset.go +144 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gchecksum.go +224 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gcompletion.go +159 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gconvert.go +460 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gdataset.go +278 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gdate.go +812 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gdatetime.go +1043 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gdir.go +145 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/genviron.go +151 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gerror.go +284 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gfileutils.go +799 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/ggettext.go +150 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/ghash.go +714 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/ghmac.go +208 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/ghook.go +258 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/ghostutils.go +90 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/giochannel.go +1123 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gkeyfile.go +1164 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/glib-types.go +38 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/glibconfig.go +116 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/glist.go +57 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gmacros.go +30 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gmain.go +2504 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gmappedfile.go +184 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gmarkup.go +780 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gmem.go +519 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gmessages.go +1005 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gnode.go +424 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/goption.go +652 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gpathbuf.go +314 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gpattern.go +209 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gpoll.go +86 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gprimes.go +35 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gprintf.go +121 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gqsort.go +45 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gquark.go +159 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gqueue.go +471 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/grand.go +223 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/grcbox.go +198 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/grefcount.go +138 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/grefstring.go +108 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gregex.go +1610 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/grel.go +205 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gscanner.go +473 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gsequence.go +578 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gshell.go +123 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gslice.go +142 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gslist.go +56 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gspawn.go +618 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gstdio.go +375 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gstrfuncs.go +1120 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gstring.go +596 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gstringchunk.go +140 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gstrvbuilder.go +179 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gtestutils.go +1439 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gthread.go +2438 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gthreadpool.go +277 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gtimer.go +164 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gtimezone.go +377 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gtrashstack.go +94 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gtree.go +503 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gtypes.go +258 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gunicode.go +1656 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/guri.go +1099 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gutils.go +745 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/guuid.go +48 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gvariant-parser.go +30 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gvariant.go +3035 -0
| @@ -0,0 +1,3035 @@ | |||
| 1 | + | // Package glib was automatically generated by github.com/bnema/puregotk DO NOT EDIT | |
| 2 | + | package glib | |
| 3 | + | ||
| 4 | + | import ( | |
| 5 | + | "structs" | |
| 6 | + | "unsafe" | |
| 7 | + | ||
| 8 | + | "github.com/bnema/purego" | |
| 9 | + | "github.com/bnema/puregotk/pkg/core" | |
| 10 | + | "github.com/bnema/puregotk/v4/gobject/types" | |
| 11 | + | ) | |
| 12 | + | ||
| 13 | + | // `GVariant` is a variant datatype; it can contain one or more values | |
| 14 | + | // along with information about the type of the values. | |
| 15 | + | // | |
| 16 | + | // A `GVariant` may contain simple types, like an integer, or a boolean value; | |
| 17 | + | // or complex types, like an array of two strings, or a dictionary of key | |
| 18 | + | // value pairs. A `GVariant` is also immutable: once it’s been created neither | |
| 19 | + | // its type nor its content can be modified further. | |
| 20 | + | // | |
| 21 | + | // `GVariant` is useful whenever data needs to be serialized, for example when | |
| 22 | + | // sending method parameters in D-Bus, or when saving settings using | |
| 23 | + | // [`GSettings`](../gio/class.Settings.html). | |
| 24 | + | // | |
| 25 | + | // When creating a new `GVariant`, you pass the data you want to store in it | |
| 26 | + | // along with a string representing the type of data you wish to pass to it. | |
| 27 | + | // | |
| 28 | + | // For instance, if you want to create a `GVariant` holding an integer value you | |
| 29 | + | // can use: | |
| 30 | + | // | |
| 31 | + | // ```c | |
| 32 | + | // GVariant *v = g_variant_new ("u", 40); | |
| 33 | + | // ``` | |
| 34 | + | // | |
| 35 | + | // The string `u` in the first argument tells `GVariant` that the data passed to | |
| 36 | + | // the constructor (`40`) is going to be an unsigned integer. | |
| 37 | + | // | |
| 38 | + | // More advanced examples of `GVariant` in use can be found in documentation for | |
| 39 | + | // [`GVariant` format strings](gvariant-format-strings.html#pointers). | |
| 40 | + | // | |
| 41 | + | // The range of possible values is determined by the type. | |
| 42 | + | // | |
| 43 | + | // The type system used by `GVariant` is [type@GLib.VariantType]. | |
| 44 | + | // | |
| 45 | + | // `GVariant` instances always have a type and a value (which are given | |
| 46 | + | // at construction time). The type and value of a `GVariant` instance | |
| 47 | + | // can never change other than by the `GVariant` itself being | |
| 48 | + | // destroyed. A `GVariant` cannot contain a pointer. | |
| 49 | + | // | |
| 50 | + | // `GVariant` is reference counted using [method@GLib.Variant.ref] and | |
| 51 | + | // [method@GLib.Variant.unref]. `GVariant` also has floating reference counts — | |
| 52 | + | // see [method@GLib.Variant.ref_sink]. | |
| 53 | + | // | |
| 54 | + | // `GVariant` is completely threadsafe. A `GVariant` instance can be | |
| 55 | + | // concurrently accessed in any way from any number of threads without | |
| 56 | + | // problems. | |
| 57 | + | // | |
| 58 | + | // `GVariant` is heavily optimised for dealing with data in serialized | |
| 59 | + | // form. It works particularly well with data located in memory-mapped | |
| 60 | + | // files. It can perform nearly all deserialization operations in a | |
| 61 | + | // small constant time, usually touching only a single memory page. | |
| 62 | + | // Serialized `GVariant` data can also be sent over the network. | |
| 63 | + | // | |
| 64 | + | // `GVariant` is largely compatible with D-Bus. Almost all types of | |
| 65 | + | // `GVariant` instances can be sent over D-Bus. See [type@GLib.VariantType] for | |
| 66 | + | // exceptions. (However, `GVariant`’s serialization format is not the same | |
| 67 | + | // as the serialization format of a D-Bus message body: use | |
| 68 | + | // [GDBusMessage](../gio/class.DBusMessage.html), in the GIO library, for those.) | |
| 69 | + | // | |
| 70 | + | // For space-efficiency, the `GVariant` serialization format does not | |
| 71 | + | // automatically include the variant’s length, type or endianness, | |
| 72 | + | // which must either be implied from context (such as knowledge that a | |
| 73 | + | // particular file format always contains a little-endian | |
| 74 | + | // `G_VARIANT_TYPE_VARIANT` which occupies the whole length of the file) | |
| 75 | + | // or supplied out-of-band (for instance, a length, type and/or endianness | |
| 76 | + | // indicator could be placed at the beginning of a file, network message | |
| 77 | + | // or network stream). | |
| 78 | + | // | |
| 79 | + | // A `GVariant`’s size is limited mainly by any lower level operating | |
| 80 | + | // system constraints, such as the number of bits in `gsize`. For | |
| 81 | + | // example, it is reasonable to have a 2GB file mapped into memory | |
| 82 | + | // with [struct@GLib.MappedFile], and call [ctor@GLib.Variant.new_from_data] on | |
| 83 | + | // it. | |
| 84 | + | // | |
| 85 | + | // For convenience to C programmers, `GVariant` features powerful | |
| 86 | + | // varargs-based value construction and destruction. This feature is | |
| 87 | + | // designed to be embedded in other libraries. | |
| 88 | + | // | |
| 89 | + | // There is a Python-inspired text language for describing `GVariant` | |
| 90 | + | // values. `GVariant` includes a printer for this language and a parser | |
| 91 | + | // with type inferencing. | |
| 92 | + | // | |
| 93 | + | // ## Memory Use | |
| 94 | + | // | |
| 95 | + | // `GVariant` tries to be quite efficient with respect to memory use. | |
| 96 | + | // This section gives a rough idea of how much memory is used by the | |
| 97 | + | // current implementation. The information here is subject to change | |
| 98 | + | // in the future. | |
| 99 | + | // | |
| 100 | + | // The memory allocated by `GVariant` can be grouped into 4 broad | |
| 101 | + | // purposes: memory for serialized data, memory for the type | |
| 102 | + | // information cache, buffer management memory and memory for the | |
| 103 | + | // `GVariant` structure itself. | |
| 104 | + | // | |
| 105 | + | // ## Serialized Data Memory | |
| 106 | + | // | |
| 107 | + | // This is the memory that is used for storing `GVariant` data in | |
| 108 | + | // serialized form. This is what would be sent over the network or | |
| 109 | + | // what would end up on disk, not counting any indicator of the | |
| 110 | + | // endianness, or of the length or type of the top-level variant. | |
| 111 | + | // | |
| 112 | + | // The amount of memory required to store a boolean is 1 byte. 16, | |
| 113 | + | // 32 and 64 bit integers and double precision floating point numbers | |
| 114 | + | // use their ‘natural’ size. Strings (including object path and | |
| 115 | + | // signature strings) are stored with a nul terminator, and as such | |
| 116 | + | // use the length of the string plus 1 byte. | |
| 117 | + | // | |
| 118 | + | // ‘Maybe’ types use no space at all to represent the null value and | |
| 119 | + | // use the same amount of space (sometimes plus one byte) as the | |
| 120 | + | // equivalent non-maybe-typed value to represent the non-null case. | |
| 121 | + | // | |
| 122 | + | // Arrays use the amount of space required to store each of their | |
| 123 | + | // members, concatenated. Additionally, if the items stored in an | |
| 124 | + | // array are not of a fixed-size (ie: strings, other arrays, etc) | |
| 125 | + | // then an additional framing offset is stored for each item. The | |
| 126 | + | // size of this offset is either 1, 2 or 4 bytes depending on the | |
| 127 | + | // overall size of the container. Additionally, extra padding bytes | |
| 128 | + | // are added as required for alignment of child values. | |
| 129 | + | // | |
| 130 | + | // Tuples (including dictionary entries) use the amount of space | |
| 131 | + | // required to store each of their members, concatenated, plus one | |
| 132 | + | // framing offset (as per arrays) for each non-fixed-sized item in | |
| 133 | + | // the tuple, except for the last one. Additionally, extra padding | |
| 134 | + | // bytes are added as required for alignment of child values. | |
| 135 | + | // | |
| 136 | + | // Variants use the same amount of space as the item inside of the | |
| 137 | + | // variant, plus 1 byte, plus the length of the type string for the | |
| 138 | + | // item inside the variant. | |
| 139 | + | // | |
| 140 | + | // As an example, consider a dictionary mapping strings to variants. | |
| 141 | + | // In the case that the dictionary is empty, 0 bytes are required for | |
| 142 | + | // the serialization. | |
| 143 | + | // | |
| 144 | + | // If we add an item ‘width’ that maps to the int32 value of 500 then | |
| 145 | + | // we will use 4 bytes to store the int32 (so 6 for the variant | |
| 146 | + | // containing it) and 6 bytes for the string. The variant must be | |
| 147 | + | // aligned to 8 after the 6 bytes of the string, so that’s 2 extra | |
| 148 | + | // bytes. 6 (string) + 2 (padding) + 6 (variant) is 14 bytes used | |
| 149 | + | // for the dictionary entry. An additional 1 byte is added to the | |
| 150 | + | // array as a framing offset making a total of 15 bytes. | |
| 151 | + | // | |
| 152 | + | // If we add another entry, ‘title’ that maps to a nullable string | |
| 153 | + | // that happens to have a value of null, then we use 0 bytes for the | |
| 154 | + | // null value (and 3 bytes for the variant to contain it along with | |
| 155 | + | // its type string) plus 6 bytes for the string. Again, we need 2 | |
| 156 | + | // padding bytes. That makes a total of 6 + 2 + 3 = 11 bytes. | |
| 157 | + | // | |
| 158 | + | // We now require extra padding between the two items in the array. | |
| 159 | + | // After the 14 bytes of the first item, that’s 2 bytes required. | |
| 160 | + | // We now require 2 framing offsets for an extra two | |
| 161 | + | // bytes. 14 + 2 + 11 + 2 = 29 bytes to encode the entire two-item | |
| 162 | + | // dictionary. | |
| 163 | + | // | |
| 164 | + | // ## Type Information Cache | |
| 165 | + | // | |
| 166 | + | // For each `GVariant` type that currently exists in the program a type | |
| 167 | + | // information structure is kept in the type information cache. The | |
| 168 | + | // type information structure is required for rapid deserialization. | |
| 169 | + | // | |
| 170 | + | // Continuing with the above example, if a `GVariant` exists with the | |
| 171 | + | // type `a{sv}` then a type information struct will exist for | |
| 172 | + | // `a{sv}`, `{sv}`, `s`, and `v`. Multiple uses of the same type | |
| 173 | + | // will share the same type information. Additionally, all | |
| 174 | + | // single-digit types are stored in read-only static memory and do | |
| 175 | + | // not contribute to the writable memory footprint of a program using | |
| 176 | + | // `GVariant`. | |
| 177 | + | // | |
| 178 | + | // Aside from the type information structures stored in read-only | |
| 179 | + | // memory, there are two forms of type information. One is used for | |
| 180 | + | // container types where there is a single element type: arrays and | |
| 181 | + | // maybe types. The other is used for container types where there | |
| 182 | + | // are multiple element types: tuples and dictionary entries. | |
| 183 | + | // | |
| 184 | + | // Array type info structures are `6 * sizeof (void *)`, plus the | |
| 185 | + | // memory required to store the type string itself. This means that | |
| 186 | + | // on 32-bit systems, the cache entry for `a{sv}` would require 30 | |
| 187 | + | // bytes of memory (plus allocation overhead). | |
| 188 | + | // | |
| 189 | + | // Tuple type info structures are `6 * sizeof (void *)`, plus `4 * | |
| 190 | + | // sizeof (void *)` for each item in the tuple, plus the memory | |
| 191 | + | // required to store the type string itself. A 2-item tuple, for | |
| 192 | + | // example, would have a type information structure that consumed | |
| 193 | + | // writable memory in the size of `14 * sizeof (void *)` (plus type | |
| 194 | + | // string) This means that on 32-bit systems, the cache entry for | |
| 195 | + | // `{sv}` would require 61 bytes of memory (plus allocation overhead). | |
| 196 | + | // | |
| 197 | + | // This means that in total, for our `a{sv}` example, 91 bytes of | |
| 198 | + | // type information would be allocated. | |
| 199 | + | // | |
| 200 | + | // The type information cache, additionally, uses a [struct@GLib.HashTable] to | |
| 201 | + | // store and look up the cached items and stores a pointer to this | |
| 202 | + | // hash table in static storage. The hash table is freed when there | |
| 203 | + | // are zero items in the type cache. | |
| 204 | + | // | |
| 205 | + | // Although these sizes may seem large it is important to remember | |
| 206 | + | // that a program will probably only have a very small number of | |
| 207 | + | // different types of values in it and that only one type information | |
| 208 | + | // structure is required for many different values of the same type. | |
| 209 | + | // | |
| 210 | + | // ## Buffer Management Memory | |
| 211 | + | // | |
| 212 | + | // `GVariant` uses an internal buffer management structure to deal | |
| 213 | + | // with the various different possible sources of serialized data | |
| 214 | + | // that it uses. The buffer is responsible for ensuring that the | |
| 215 | + | // correct call is made when the data is no longer in use by | |
| 216 | + | // `GVariant`. This may involve a [func@GLib.free] or | |
| 217 | + | // even [method@GLib.MappedFile.unref]. | |
| 218 | + | // | |
| 219 | + | // One buffer management structure is used for each chunk of | |
| 220 | + | // serialized data. The size of the buffer management structure | |
| 221 | + | // is `4 * (void *)`. On 32-bit systems, that’s 16 bytes. | |
| 222 | + | // | |
| 223 | + | // ## GVariant structure | |
| 224 | + | // | |
| 225 | + | // The size of a `GVariant` structure is `6 * (void *)`. On 32-bit | |
| 226 | + | // systems, that’s 24 bytes. | |
| 227 | + | // | |
| 228 | + | // `GVariant` structures only exist if they are explicitly created | |
| 229 | + | // with API calls. For example, if a `GVariant` is constructed out of | |
| 230 | + | // serialized data for the example given above (with the dictionary) | |
| 231 | + | // then although there are 9 individual values that comprise the | |
| 232 | + | // entire dictionary (two keys, two values, two variants containing | |
| 233 | + | // the values, two dictionary entries, plus the dictionary itself), | |
| 234 | + | // only 1 `GVariant` instance exists — the one referring to the | |
| 235 | + | // dictionary. | |
| 236 | + | // | |
| 237 | + | // If calls are made to start accessing the other values then | |
| 238 | + | // `GVariant` instances will exist for those values only for as long | |
| 239 | + | // as they are in use (ie: until you call [method@GLib.Variant.unref]). The | |
| 240 | + | // type information is shared. The serialized data and the buffer | |
| 241 | + | // management structure for that serialized data is shared by the | |
| 242 | + | // child. | |
| 243 | + | // | |
| 244 | + | // ## Summary | |
| 245 | + | // | |
| 246 | + | // To put the entire example together, for our dictionary mapping | |
| 247 | + | // strings to variants (with two entries, as given above), we are | |
| 248 | + | // using 91 bytes of memory for type information, 29 bytes of memory | |
| 249 | + | // for the serialized data, 16 bytes for buffer management and 24 | |
| 250 | + | // bytes for the `GVariant` instance, or a total of 160 bytes, plus | |
| 251 | + | // allocation overhead. If we were to use [method@GLib.Variant.get_child_value] | |
| 252 | + | // to access the two dictionary entries, we would use an additional 48 | |
| 253 | + | // bytes. If we were to have other dictionaries of the same type, we | |
| 254 | + | // would use more memory for the serialized data and buffer | |
| 255 | + | // management for those dictionaries, but the type information would | |
| 256 | + | // be shared. | |
| 257 | + | type Variant struct { | |
| 258 | + | _ structs.HostLayout | |
| 259 | + | } | |
| 260 | + | ||
| 261 | + | var xVariantGLibType func() types.GType | |
| 262 | + | ||
| 263 | + | func VariantGLibType() types.GType { | |
| 264 | + | return xVariantGLibType() | |
| 265 | + | } | |
| 266 | + | ||
| 267 | + | func (x *Variant) GoPointer() uintptr { | |
| 268 | + | return uintptr(unsafe.Pointer(x)) | |
| 269 | + | } | |
| 270 | + | ||
| 271 | + | func VariantNewFromInternalPtr(ptr uintptr) *Variant { | |
| 272 | + | if ptr == 0 { | |
| 273 | + | return nil | |
| 274 | + | } | |
| 275 | + | rawPtr := *(*unsafe.Pointer)(unsafe.Pointer(&ptr)) | |
| 276 | + | return (*Variant)(rawPtr) | |
| 277 | + | } | |
| 278 | + | ||
| 279 | + | var xNewVariant func(string, ...interface{}) uintptr | |
| 280 | + | ||
| 281 | + | // Creates a new #GVariant instance. | |
| 282 | + | // | |
| 283 | + | // Think of this function as an analogue to g_strdup_printf(). | |
| 284 | + | // | |
| 285 | + | // The type of the created instance and the arguments that are expected | |
| 286 | + | // by this function are determined by @format_string. See the section on | |
| 287 | + | // [GVariant format strings](gvariant-format-strings.html). Please note that | |
| 288 | + | // the syntax of the format string is very likely to be extended in the | |
| 289 | + | // future. | |
| 290 | + | // | |
| 291 | + | // The first character of the format string must not be '*' '?' '@' or | |
| 292 | + | // 'r'; in essence, a new #GVariant must always be constructed by this | |
| 293 | + | // function (and not merely passed through it unmodified). | |
| 294 | + | // | |
| 295 | + | // Note that the arguments must be of the correct width for their types | |
| 296 | + | // specified in @format_string. This can be achieved by casting them. See | |
| 297 | + | // the [GVariant varargs documentation](gvariant-format-strings.html#varargs). | |
| 298 | + | // | |
| 299 | + | // |[<!-- language="C" --> | |
| 300 | + | // MyFlags some_flags = FLAG_ONE | FLAG_TWO; | |
| 301 | + | // const gchar *some_strings[] = { "a", "b", "c", NULL }; | |
| 302 | + | // GVariant *new_variant; | |
| 303 | + | // | |
| 304 | + | // new_variant = g_variant_new ("(t^as)", | |
| 305 | + | // | |
| 306 | + | // // This cast is required. | |
| 307 | + | // (guint64) some_flags, | |
| 308 | + | // some_strings); | |
| 309 | + | // | |
| 310 | + | // ]| | |
| 311 | + | func NewVariant(FormatStringVar string, varArgs ...interface{}) *Variant { | |
| 312 | + | cret := xNewVariant(FormatStringVar, varArgs...) | |
| 313 | + | if cret == 0 { | |
| 314 | + | return nil | |
| 315 | + | } | |
| 316 | + | return (*Variant)(unsafe.Pointer(cret)) | |
| 317 | + | } | |
| 318 | + | ||
| 319 | + | var xNewVariantArray func(*VariantType, uintptr, uint) uintptr | |
| 320 | + | ||
| 321 | + | // Creates a new #GVariant array from @children. | |
| 322 | + | // | |
| 323 | + | // @child_type must be non-%NULL if @n_children is zero. Otherwise, the | |
| 324 | + | // child type is determined by inspecting the first element of the | |
| 325 | + | // @children array. If @child_type is non-%NULL then it must be a | |
| 326 | + | // definite type. | |
| 327 | + | // | |
| 328 | + | // The items of the array are taken from the @children array. No entry | |
| 329 | + | // in the @children array may be %NULL. | |
| 330 | + | // | |
| 331 | + | // All items in the array must have the same type, which must be the | |
| 332 | + | // same as @child_type, if given. | |
| 333 | + | // | |
| 334 | + | // If the @children are floating references (see g_variant_ref_sink()), the | |
| 335 | + | // new instance takes ownership of them as if via g_variant_ref_sink(). | |
| 336 | + | func NewVariantArray(ChildTypeVar *VariantType, ChildrenVar uintptr, NChildrenVar uint) *Variant { | |
| 337 | + | cret := xNewVariantArray(ChildTypeVar, ChildrenVar, NChildrenVar) | |
| 338 | + | if cret == 0 { | |
| 339 | + | return nil | |
| 340 | + | } | |
| 341 | + | return (*Variant)(unsafe.Pointer(cret)) | |
| 342 | + | } | |
| 343 | + | ||
| 344 | + | var xNewVariantBoolean func(bool) uintptr | |
| 345 | + | ||
| 346 | + | // Creates a new boolean #GVariant instance -- either %TRUE or %FALSE. | |
| 347 | + | func NewVariantBoolean(ValueVar bool) *Variant { | |
| 348 | + | cret := xNewVariantBoolean(ValueVar) | |
| 349 | + | if cret == 0 { | |
| 350 | + | return nil | |
| 351 | + | } | |
| 352 | + | return (*Variant)(unsafe.Pointer(cret)) | |
| 353 | + | } | |
| 354 | + | ||
| 355 | + | var xNewVariantByte func(byte) uintptr | |
| 356 | + | ||
| 357 | + | // Creates a new byte #GVariant instance. | |
| 358 | + | func NewVariantByte(ValueVar byte) *Variant { | |
| 359 | + | cret := xNewVariantByte(ValueVar) | |
| 360 | + | if cret == 0 { | |
| 361 | + | return nil | |
| 362 | + | } | |
| 363 | + | return (*Variant)(unsafe.Pointer(cret)) | |
| 364 | + | } | |
| 365 | + | ||
| 366 | + | var xNewVariantBytestring func([]byte) uintptr | |
| 367 | + | ||
| 368 | + | // Creates an array-of-bytes #GVariant with the contents of @string. | |
| 369 | + | // This function is just like g_variant_new_string() except that the | |
| 370 | + | // string need not be valid UTF-8. | |
| 371 | + | // | |
| 372 | + | // The nul terminator character at the end of the string is stored in | |
| 373 | + | // the array. | |
| 374 | + | func NewVariantBytestring(StringVar []byte) *Variant { | |
| 375 | + | cret := xNewVariantBytestring(StringVar) | |
| 376 | + | if cret == 0 { | |
| 377 | + | return nil | |
| 378 | + | } | |
| 379 | + | return (*Variant)(unsafe.Pointer(cret)) | |
| 380 | + | } | |
| 381 | + | ||
| 382 | + | var xNewVariantBytestringArray func([]string, int) uintptr | |
| 383 | + | ||
| 384 | + | // Constructs an array of bytestring #GVariant from the given array of | |
| 385 | + | // strings. | |
| 386 | + | // | |
| 387 | + | // If @length is -1 then @strv is %NULL-terminated. | |
| 388 | + | func NewVariantBytestringArray(StrvVar []string, LengthVar int) *Variant { | |
| 389 | + | cret := xNewVariantBytestringArray(StrvVar, LengthVar) | |
| 390 | + | if cret == 0 { | |
| 391 | + | return nil | |
| 392 | + | } | |
| 393 | + | return (*Variant)(unsafe.Pointer(cret)) | |
| 394 | + | } | |
| 395 | + | ||
| 396 | + | var xNewVariantDictEntry func(*Variant, *Variant) uintptr | |
| 397 | + | ||
| 398 | + | // Creates a new dictionary entry #GVariant. @key and @value must be | |
| 399 | + | // non-%NULL. @key must be a value of a basic type (ie: not a container). | |
| 400 | + | // | |
| 401 | + | // If the @key or @value are floating references (see g_variant_ref_sink()), | |
| 402 | + | // the new instance takes ownership of them as if via g_variant_ref_sink(). | |
| 403 | + | func NewVariantDictEntry(KeyVar *Variant, ValueVar *Variant) *Variant { | |
| 404 | + | cret := xNewVariantDictEntry(KeyVar, ValueVar) | |
| 405 | + | if cret == 0 { | |
| 406 | + | return nil | |
| 407 | + | } | |
| 408 | + | return (*Variant)(unsafe.Pointer(cret)) | |
| 409 | + | } | |
| 410 | + | ||
| 411 | + | var xNewVariantDouble func(float64) uintptr | |
| 412 | + | ||
| 413 | + | // Creates a new double #GVariant instance. | |
| 414 | + | func NewVariantDouble(ValueVar float64) *Variant { | |
| 415 | + | cret := xNewVariantDouble(ValueVar) | |
| 416 | + | if cret == 0 { | |
| 417 | + | return nil | |
| 418 | + | } | |
| 419 | + | return (*Variant)(unsafe.Pointer(cret)) | |
| 420 | + | } | |
| 421 | + | ||
| 422 | + | var xNewVariantFixedArray func(*VariantType, uintptr, uint, uint) uintptr | |
| 423 | + | ||
| 424 | + | // Constructs a new array #GVariant instance, where the elements are | |
| 425 | + | // of @element_type type. | |
| 426 | + | // | |
| 427 | + | // @elements must be an array with fixed-sized elements. Numeric types are | |
| 428 | + | // fixed-size as are tuples containing only other fixed-sized types. | |
| 429 | + | // | |
| 430 | + | // @element_size must be the size of a single element in the array. | |
| 431 | + | // For example, if calling this function for an array of 32-bit integers, | |
| 432 | + | // you might say sizeof(gint32). This value isn't used except for the purpose | |
| 433 | + | // of a double-check that the form of the serialized data matches the caller's | |
| 434 | + | // expectation. | |
| 435 | + | // | |
| 436 | + | // @n_elements must be the length of the @elements array. | |
| 437 | + | func NewVariantFixedArray(ElementTypeVar *VariantType, ElementsVar uintptr, NElementsVar uint, ElementSizeVar uint) *Variant { | |
| 438 | + | cret := xNewVariantFixedArray(ElementTypeVar, ElementsVar, NElementsVar, ElementSizeVar) | |
| 439 | + | if cret == 0 { | |
| 440 | + | return nil | |
| 441 | + | } | |
| 442 | + | return (*Variant)(unsafe.Pointer(cret)) | |
| 443 | + | } | |
| 444 | + | ||
| 445 | + | var xNewVariantFromBytes func(*VariantType, *Bytes, bool) uintptr | |
| 446 | + | ||
| 447 | + | // Constructs a new serialized-mode #GVariant instance. This is the | |
| 448 | + | // inner interface for creation of new serialized values that gets | |
| 449 | + | // called from various functions in gvariant.c. | |
| 450 | + | // | |
| 451 | + | // A reference is taken on @bytes. | |
| 452 | + | // | |
| 453 | + | // The data in @bytes must be aligned appropriately for the @type being loaded. | |
| 454 | + | // Otherwise this function will internally create a copy of the memory (since | |
| 455 | + | // GLib 2.60) or (in older versions) fail and exit the process. | |
| 456 | + | func NewVariantFromBytes(TypeVar *VariantType, BytesVar *Bytes, TrustedVar bool) *Variant { | |
| 457 | + | cret := xNewVariantFromBytes(TypeVar, BytesVar, TrustedVar) | |
| 458 | + | if cret == 0 { | |
| 459 | + | return nil | |
| 460 | + | } | |
| 461 | + | return (*Variant)(unsafe.Pointer(cret)) | |
| 462 | + | } | |
| 463 | + | ||
| 464 | + | var xNewVariantFromData func(*VariantType, []byte, uint, bool, uintptr, uintptr) uintptr | |
| 465 | + | ||
| 466 | + | // Creates a new #GVariant instance from serialized data. | |
| 467 | + | // | |
| 468 | + | // @type is the type of #GVariant instance that will be constructed. | |
| 469 | + | // The interpretation of @data depends on knowing the type. | |
| 470 | + | // | |
| 471 | + | // @data is not modified by this function and must remain valid with an | |
| 472 | + | // unchanging value until such a time as @notify is called with | |
| 473 | + | // @user_data. If the contents of @data change before that time then | |
| 474 | + | // the result is undefined. | |
| 475 | + | // | |
| 476 | + | // If @data is trusted to be serialized data in normal form then | |
| 477 | + | // @trusted should be %TRUE. This applies to serialized data created | |
| 478 | + | // within this process or read from a trusted location on the disk (such | |
| 479 | + | // as a file installed in /usr/lib alongside your application). You | |
| 480 | + | // should set trusted to %FALSE if @data is read from the network, a | |
| 481 | + | // file in the user's home directory, etc. | |
| 482 | + | // | |
| 483 | + | // If @data was not stored in this machine's native endianness, any multi-byte | |
| 484 | + | // numeric values in the returned variant will also be in non-native | |
| 485 | + | // endianness. g_variant_byteswap() can be used to recover the original values. | |
| 486 | + | // | |
| 487 | + | // @notify will be called with @user_data when @data is no longer | |
| 488 | + | // needed. The exact time of this call is unspecified and might even be | |
| 489 | + | // before this function returns. | |
| 490 | + | // | |
| 491 | + | // Note: @data must be backed by memory that is aligned appropriately for the | |
| 492 | + | // @type being loaded. Otherwise this function will internally create a copy of | |
| 493 | + | // the memory (since GLib 2.60) or (in older versions) fail and exit the | |
| 494 | + | // process. | |
| 495 | + | func NewVariantFromData(TypeVar *VariantType, DataVar []byte, SizeVar uint, TrustedVar bool, NotifyVar *DestroyNotify, UserDataVar uintptr) *Variant { | |
| 496 | + | cret := xNewVariantFromData(TypeVar, DataVar, SizeVar, TrustedVar, NewCallbackNullable(NotifyVar), UserDataVar) | |
| 497 | + | if cret == 0 { | |
| 498 | + | return nil | |
| 499 | + | } | |
| 500 | + | return (*Variant)(unsafe.Pointer(cret)) | |
| 501 | + | } | |
| 502 | + | ||
| 503 | + | var xNewVariantHandle func(int32) uintptr | |
| 504 | + | ||
| 505 | + | // Creates a new handle #GVariant instance. | |
| 506 | + | // | |
| 507 | + | // By convention, handles are indexes into an array of file descriptors | |
| 508 | + | // that are sent alongside a D-Bus message. If you're not interacting | |
| 509 | + | // with D-Bus, you probably don't need them. | |
| 510 | + | func NewVariantHandle(ValueVar int32) *Variant { | |
| 511 | + | cret := xNewVariantHandle(ValueVar) | |
| 512 | + | if cret == 0 { | |
| 513 | + | return nil | |
| 514 | + | } | |
| 515 | + | return (*Variant)(unsafe.Pointer(cret)) | |
| 516 | + | } | |
| 517 | + | ||
| 518 | + | var xNewVariantInt16 func(int16) uintptr | |
| 519 | + | ||
| 520 | + | // Creates a new int16 #GVariant instance. | |
| 521 | + | func NewVariantInt16(ValueVar int16) *Variant { | |
| 522 | + | cret := xNewVariantInt16(ValueVar) | |
| 523 | + | if cret == 0 { | |
| 524 | + | return nil | |
| 525 | + | } | |
| 526 | + | return (*Variant)(unsafe.Pointer(cret)) | |
| 527 | + | } | |
| 528 | + | ||
| 529 | + | var xNewVariantInt32 func(int32) uintptr | |
| 530 | + | ||
| 531 | + | // Creates a new int32 #GVariant instance. | |
| 532 | + | func NewVariantInt32(ValueVar int32) *Variant { | |
| 533 | + | cret := xNewVariantInt32(ValueVar) | |
| 534 | + | if cret == 0 { | |
| 535 | + | return nil | |
| 536 | + | } | |
| 537 | + | return (*Variant)(unsafe.Pointer(cret)) | |
| 538 | + | } | |
| 539 | + | ||
| 540 | + | var xNewVariantInt64 func(int64) uintptr | |
| 541 | + | ||
| 542 | + | // Creates a new int64 #GVariant instance. | |
| 543 | + | func NewVariantInt64(ValueVar int64) *Variant { | |
| 544 | + | cret := xNewVariantInt64(ValueVar) | |
| 545 | + | if cret == 0 { | |
| 546 | + | return nil | |
| 547 | + | } | |
| 548 | + | return (*Variant)(unsafe.Pointer(cret)) | |
| 549 | + | } | |
| 550 | + | ||
| 551 | + | var xNewVariantMaybe func(*VariantType, *Variant) uintptr | |
| 552 | + | ||
| 553 | + | // Depending on if @child is %NULL, either wraps @child inside of a | |
| 554 | + | // maybe container or creates a Nothing instance for the given @type. | |
| 555 | + | // | |
| 556 | + | // At least one of @child_type and @child must be non-%NULL. | |
| 557 | + | // If @child_type is non-%NULL then it must be a definite type. | |
| 558 | + | // If they are both non-%NULL then @child_type must be the type | |
| 559 | + | // of @child. | |
| 560 | + | // | |
| 561 | + | // If @child is a floating reference (see g_variant_ref_sink()), the new | |
| 562 | + | // instance takes ownership of @child. | |
| 563 | + | func NewVariantMaybe(ChildTypeVar *VariantType, ChildVar *Variant) *Variant { | |
| 564 | + | cret := xNewVariantMaybe(ChildTypeVar, ChildVar) | |
| 565 | + | if cret == 0 { | |
| 566 | + | return nil | |
| 567 | + | } | |
| 568 | + | return (*Variant)(unsafe.Pointer(cret)) | |
| 569 | + | } | |
| 570 | + | ||
| 571 | + | var xNewVariantObjectPath func(string) uintptr | |
| 572 | + | ||
| 573 | + | // Creates a D-Bus object path #GVariant with the contents of @object_path. | |
| 574 | + | // @object_path must be a valid D-Bus object path. Use | |
| 575 | + | // g_variant_is_object_path() if you're not sure. | |
| 576 | + | func NewVariantObjectPath(ObjectPathVar string) *Variant { | |
| 577 | + | cret := xNewVariantObjectPath(ObjectPathVar) | |
| 578 | + | if cret == 0 { | |
| 579 | + | return nil | |
| 580 | + | } | |
| 581 | + | return (*Variant)(unsafe.Pointer(cret)) | |
| 582 | + | } | |
| 583 | + | ||
| 584 | + | var xNewVariantObjv func([]string, int) uintptr | |
| 585 | + | ||
| 586 | + | // Constructs an array of object paths #GVariant from the given array of | |
| 587 | + | // strings. | |
| 588 | + | // | |
| 589 | + | // Each string must be a valid #GVariant object path; see | |
| 590 | + | // g_variant_is_object_path(). | |
| 591 | + | // | |
| 592 | + | // If @length is -1 then @strv is %NULL-terminated. | |
| 593 | + | func NewVariantObjv(StrvVar []string, LengthVar int) *Variant { | |
| 594 | + | cret := xNewVariantObjv(StrvVar, LengthVar) | |
| 595 | + | if cret == 0 { | |
| 596 | + | return nil | |
| 597 | + | } | |
| 598 | + | return (*Variant)(unsafe.Pointer(cret)) | |
| 599 | + | } | |
| 600 | + | ||
| 601 | + | var xNewVariantParsed func(string, ...interface{}) uintptr | |
| 602 | + | ||
| 603 | + | // Parses @format and returns the result. | |
| 604 | + | // | |
| 605 | + | // @format must be a text format #GVariant with one extension: at any | |
| 606 | + | // point that a value may appear in the text, a '%' character followed | |
| 607 | + | // by a GVariant format string (as per g_variant_new()) may appear. In | |
| 608 | + | // that case, the same arguments are collected from the argument list as | |
| 609 | + | // g_variant_new() would have collected. | |
| 610 | + | // | |
| 611 | + | // Note that the arguments must be of the correct width for their types | |
| 612 | + | // specified in @format. This can be achieved by casting them. See | |
| 613 | + | // the [GVariant varargs documentation](gvariant-format-strings.html#varargs). | |
| 614 | + | // | |
| 615 | + | // Consider this simple example: | |
| 616 | + | // |[<!-- language="C" --> | |
| 617 | + | // | |
| 618 | + | // g_variant_new_parsed ("[('one', 1), ('two', %i), (%s, 3)]", 2, "three"); | |
| 619 | + | // | |
| 620 | + | // ]| | |
| 621 | + | // | |
| 622 | + | // In the example, the variable argument parameters are collected and | |
| 623 | + | // filled in as if they were part of the original string to produce the | |
| 624 | + | // result of | |
| 625 | + | // |[<!-- language="C" --> | |
| 626 | + | // [('one', 1), ('two', 2), ('three', 3)] | |
| 627 | + | // ]| | |
| 628 | + | // | |
| 629 | + | // This function is intended only to be used with @format as a string | |
| 630 | + | // literal. Any parse error is fatal to the calling process. If you | |
| 631 | + | // want to parse data from untrusted sources, use g_variant_parse(). | |
| 632 | + | // | |
| 633 | + | // You may not use this function to return, unmodified, a single | |
| 634 | + | // #GVariant pointer from the argument list. ie: @format may not solely | |
| 635 | + | // be anything along the lines of "%*", "%?", "\%r", or anything starting | |
| 636 | + | // with "%@". | |
| 637 | + | func NewVariantParsed(FormatVar string, varArgs ...interface{}) *Variant { | |
| 638 | + | cret := xNewVariantParsed(FormatVar, varArgs...) | |
| 639 | + | if cret == 0 { | |
| 640 | + | return nil | |
| 641 | + | } | |
| 642 | + | return (*Variant)(unsafe.Pointer(cret)) | |
| 643 | + | } | |
| 644 | + | ||
| 645 | + | var xNewVariantParsedVa func(string, []interface{}) uintptr | |
| 646 | + | ||
| 647 | + | // Parses @format and returns the result. | |
| 648 | + | // | |
| 649 | + | // This is the version of g_variant_new_parsed() intended to be used | |
| 650 | + | // from libraries. | |
| 651 | + | // | |
| 652 | + | // The return value will be floating if it was a newly created GVariant | |
| 653 | + | // instance. In the case that @format simply specified the collection | |
| 654 | + | // of a #GVariant pointer (eg: @format was "%*") then the collected | |
| 655 | + | // #GVariant pointer will be returned unmodified, without adding any | |
| 656 | + | // additional references. | |
| 657 | + | // | |
| 658 | + | // Note that the arguments in @app must be of the correct width for their types | |
| 659 | + | // specified in @format when collected into the #va_list. See | |
| 660 | + | // the [GVariant varargs documentation](gvariant-format-strings.html#varargs). | |
| 661 | + | // | |
| 662 | + | // In order to behave correctly in all cases it is necessary for the | |
| 663 | + | // calling function to g_variant_ref_sink() the return result before | |
| 664 | + | // returning control to the user that originally provided the pointer. | |
| 665 | + | // At this point, the caller will have their own full reference to the | |
| 666 | + | // result. This can also be done by adding the result to a container, | |
| 667 | + | // or by passing it to another g_variant_new() call. | |
| 668 | + | func NewVariantParsedVa(FormatVar string, AppVar []interface{}) *Variant { | |
| 669 | + | cret := xNewVariantParsedVa(FormatVar, AppVar) | |
| 670 | + | if cret == 0 { | |
| 671 | + | return nil | |
| 672 | + | } | |
| 673 | + | return (*Variant)(unsafe.Pointer(cret)) | |
| 674 | + | } | |
| 675 | + | ||
| 676 | + | var xNewVariantPrintf func(string, ...interface{}) uintptr | |
| 677 | + | ||
| 678 | + | // Creates a string-type GVariant using printf formatting. | |
| 679 | + | // | |
| 680 | + | // This is similar to calling g_strdup_printf() and then | |
| 681 | + | // g_variant_new_string() but it saves a temporary variable and an | |
| 682 | + | // unnecessary copy. | |
| 683 | + | func NewVariantPrintf(FormatStringVar string, varArgs ...interface{}) *Variant { | |
| 684 | + | cret := xNewVariantPrintf(FormatStringVar, varArgs...) | |
| 685 | + | if cret == 0 { | |
| 686 | + | return nil | |
| 687 | + | } | |
| 688 | + | return (*Variant)(unsafe.Pointer(cret)) | |
| 689 | + | } | |
| 690 | + | ||
| 691 | + | var xNewVariantSignature func(string) uintptr | |
| 692 | + | ||
| 693 | + | // Creates a D-Bus type signature #GVariant with the contents of | |
| 694 | + | // @string. @string must be a valid D-Bus type signature. Use | |
| 695 | + | // g_variant_is_signature() if you're not sure. | |
| 696 | + | func NewVariantSignature(SignatureVar string) *Variant { | |
| 697 | + | cret := xNewVariantSignature(SignatureVar) | |
| 698 | + | if cret == 0 { | |
| 699 | + | return nil | |
| 700 | + | } | |
| 701 | + | return (*Variant)(unsafe.Pointer(cret)) | |
| 702 | + | } | |
| 703 | + | ||
| 704 | + | var xNewVariantString func(string) uintptr | |
| 705 | + | ||
| 706 | + | // Creates a string #GVariant with the contents of @string. | |
| 707 | + | // | |
| 708 | + | // @string must be valid UTF-8, and must not be %NULL. To encode | |
| 709 | + | // potentially-%NULL strings, use g_variant_new() with `ms` as the | |
| 710 | + | // [format string](gvariant-format-strings.html#maybe-types). | |
| 711 | + | func NewVariantString(StringVar string) *Variant { | |
| 712 | + | cret := xNewVariantString(StringVar) | |
| 713 | + | if cret == 0 { | |
| 714 | + | return nil | |
| 715 | + | } | |
| 716 | + | return (*Variant)(unsafe.Pointer(cret)) | |
| 717 | + | } | |
| 718 | + | ||
| 719 | + | var xNewVariantStrv func([]string, int) uintptr | |
| 720 | + | ||
| 721 | + | // Constructs an array of strings #GVariant from the given array of | |
| 722 | + | // strings. | |
| 723 | + | // | |
| 724 | + | // If @length is -1 then @strv is %NULL-terminated. | |
| 725 | + | func NewVariantStrv(StrvVar []string, LengthVar int) *Variant { | |
| 726 | + | cret := xNewVariantStrv(StrvVar, LengthVar) | |
| 727 | + | if cret == 0 { | |
| 728 | + | return nil | |
| 729 | + | } | |
| 730 | + | return (*Variant)(unsafe.Pointer(cret)) | |
| 731 | + | } | |
| 732 | + | ||
| 733 | + | var xNewVariantTakeString func(string) uintptr | |
| 734 | + | ||
| 735 | + | // Creates a string #GVariant with the contents of @string. | |
| 736 | + | // | |
| 737 | + | // @string must be valid UTF-8, and must not be %NULL. To encode | |
| 738 | + | // potentially-%NULL strings, use this with g_variant_new_maybe(). | |
| 739 | + | // | |
| 740 | + | // After this call, @string belongs to the #GVariant and may no longer be | |
| 741 | + | // modified by the caller. The memory of @data has to be dynamically | |
| 742 | + | // allocated and will eventually be freed with g_free(). | |
| 743 | + | // | |
| 744 | + | // You must not modify or access @string in any other way after passing | |
| 745 | + | // it to this function. It is even possible that @string is immediately | |
| 746 | + | // freed. | |
| 747 | + | func NewVariantTakeString(StringVar string) *Variant { | |
| 748 | + | cret := xNewVariantTakeString(StringVar) | |
| 749 | + | if cret == 0 { | |
| 750 | + | return nil | |
| 751 | + | } | |
| 752 | + | return (*Variant)(unsafe.Pointer(cret)) | |
| 753 | + | } | |
| 754 | + | ||
| 755 | + | var xNewVariantTuple func(uintptr, uint) uintptr | |
| 756 | + | ||
| 757 | + | // Creates a new tuple #GVariant out of the items in @children. The | |
| 758 | + | // type is determined from the types of @children. No entry in the | |
| 759 | + | // @children array may be %NULL. | |
| 760 | + | // | |
| 761 | + | // If @n_children is 0 then the unit tuple is constructed. | |
| 762 | + | // | |
| 763 | + | // If the @children are floating references (see g_variant_ref_sink()), the | |
| 764 | + | // new instance takes ownership of them as if via g_variant_ref_sink(). | |
| 765 | + | func NewVariantTuple(ChildrenVar uintptr, NChildrenVar uint) *Variant { | |
| 766 | + | cret := xNewVariantTuple(ChildrenVar, NChildrenVar) | |
| 767 | + | if cret == 0 { | |
| 768 | + | return nil | |
| 769 | + | } | |
| 770 | + | return (*Variant)(unsafe.Pointer(cret)) | |
| 771 | + | } | |
| 772 | + | ||
| 773 | + | var xNewVariantUint16 func(uint16) uintptr | |
| 774 | + | ||
| 775 | + | // Creates a new uint16 #GVariant instance. | |
| 776 | + | func NewVariantUint16(ValueVar uint16) *Variant { | |
| 777 | + | cret := xNewVariantUint16(ValueVar) | |
| 778 | + | if cret == 0 { | |
| 779 | + | return nil | |
| 780 | + | } | |
| 781 | + | return (*Variant)(unsafe.Pointer(cret)) | |
| 782 | + | } | |
| 783 | + | ||
| 784 | + | var xNewVariantUint32 func(uint32) uintptr | |
| 785 | + | ||
| 786 | + | // Creates a new uint32 #GVariant instance. | |
| 787 | + | func NewVariantUint32(ValueVar uint32) *Variant { | |
| 788 | + | cret := xNewVariantUint32(ValueVar) | |
| 789 | + | if cret == 0 { | |
| 790 | + | return nil | |
| 791 | + | } | |
| 792 | + | return (*Variant)(unsafe.Pointer(cret)) | |
| 793 | + | } | |
| 794 | + | ||
| 795 | + | var xNewVariantUint64 func(uint64) uintptr | |
| 796 | + | ||
| 797 | + | // Creates a new uint64 #GVariant instance. | |
| 798 | + | func NewVariantUint64(ValueVar uint64) *Variant { | |
| 799 | + | cret := xNewVariantUint64(ValueVar) | |
| 800 | + | if cret == 0 { | |
| 801 | + | return nil | |
| 802 | + | } | |
| 803 | + | return (*Variant)(unsafe.Pointer(cret)) | |
| 804 | + | } | |
| 805 | + | ||
| 806 | + | var xNewVariantVa func(string, uintptr, []interface{}) uintptr | |
| 807 | + | ||
| 808 | + | // This function is intended to be used by libraries based on | |
| 809 | + | // #GVariant that want to provide g_variant_new()-like functionality | |
| 810 | + | // to their users. | |
| 811 | + | // | |
| 812 | + | // The API is more general than g_variant_new() to allow a wider range | |
| 813 | + | // of possible uses. | |
| 814 | + | // | |
| 815 | + | // @format_string must still point to a valid format string, but it only | |
| 816 | + | // needs to be nul-terminated if @endptr is %NULL. If @endptr is | |
| 817 | + | // non-%NULL then it is updated to point to the first character past the | |
| 818 | + | // end of the format string. | |
| 819 | + | // | |
| 820 | + | // @app is a pointer to a #va_list. The arguments, according to | |
| 821 | + | // @format_string, are collected from this #va_list and the list is left | |
| 822 | + | // pointing to the argument following the last. | |
| 823 | + | // | |
| 824 | + | // Note that the arguments in @app must be of the correct width for their | |
| 825 | + | // types specified in @format_string when collected into the #va_list. | |
| 826 | + | // See the [GVariant varargs documentation](gvariant-format-strings.html#varargs). | |
| 827 | + | // | |
| 828 | + | // These two generalisations allow mixing of multiple calls to | |
| 829 | + | // g_variant_new_va() and g_variant_get_va() within a single actual | |
| 830 | + | // varargs call by the user. | |
| 831 | + | // | |
| 832 | + | // The return value will be floating if it was a newly created GVariant | |
| 833 | + | // instance (for example, if the format string was "(ii)"). In the case | |
| 834 | + | // that the format_string was '*', '?', 'r', or a format starting with | |
| 835 | + | // '@' then the collected #GVariant pointer will be returned unmodified, | |
| 836 | + | // without adding any additional references. | |
| 837 | + | // | |
| 838 | + | // In order to behave correctly in all cases it is necessary for the | |
| 839 | + | // calling function to g_variant_ref_sink() the return result before | |
| 840 | + | // returning control to the user that originally provided the pointer. | |
| 841 | + | // At this point, the caller will have their own full reference to the | |
| 842 | + | // result. This can also be done by adding the result to a container, | |
| 843 | + | // or by passing it to another g_variant_new() call. | |
| 844 | + | func NewVariantVa(FormatStringVar string, EndptrVar *string, AppVar []interface{}) *Variant { | |
| 845 | + | EndptrVarPtr := core.GStrdupNullable(EndptrVar) | |
| 846 | + | defer core.GFreeNullable(EndptrVarPtr) | |
| 847 | + | ||
| 848 | + | cret := xNewVariantVa(FormatStringVar, EndptrVarPtr, AppVar) | |
| 849 | + | if cret == 0 { | |
| 850 | + | return nil | |
| 851 | + | } | |
| 852 | + | return (*Variant)(unsafe.Pointer(cret)) | |
| 853 | + | } | |
| 854 | + | ||
| 855 | + | var xNewVariantVariant func(*Variant) uintptr | |
| 856 | + | ||
| 857 | + | // Boxes @value. The result is a #GVariant instance representing a | |
| 858 | + | // variant containing the original value. | |
| 859 | + | // | |
| 860 | + | // If @child is a floating reference (see g_variant_ref_sink()), the new | |
| 861 | + | // instance takes ownership of @child. | |
| 862 | + | func NewVariantVariant(ValueVar *Variant) *Variant { | |
| 863 | + | cret := xNewVariantVariant(ValueVar) | |
| 864 | + | if cret == 0 { | |
| 865 | + | return nil | |
| 866 | + | } | |
| 867 | + | return (*Variant)(unsafe.Pointer(cret)) | |
| 868 | + | } | |
| 869 | + | ||
| 870 | + | var xVariantByteswap func(uintptr) uintptr | |
| 871 | + | ||
| 872 | + | // Performs a byteswapping operation on the contents of @value. The | |
| 873 | + | // result is that all multi-byte numeric data contained in @value is | |
| 874 | + | // byteswapped. That includes 16, 32, and 64bit signed and unsigned | |
| 875 | + | // integers as well as file handles and double precision floating point | |
| 876 | + | // values. | |
| 877 | + | // | |
| 878 | + | // This function is an identity mapping on any value that does not | |
| 879 | + | // contain multi-byte numeric data. That include strings, booleans, | |
| 880 | + | // bytes and containers containing only these things (recursively). | |
| 881 | + | // | |
| 882 | + | // While this function can safely handle untrusted, non-normal data, it is | |
| 883 | + | // recommended to check whether the input is in normal form beforehand, using | |
| 884 | + | // g_variant_is_normal_form(), and to reject non-normal inputs if your | |
| 885 | + | // application can be strict about what inputs it rejects. | |
| 886 | + | // | |
| 887 | + | // The returned value is always in normal form and is marked as trusted. | |
| 888 | + | // A full, not floating, reference is returned. | |
| 889 | + | func (x *Variant) Byteswap() *Variant { | |
| 890 | + | cret := xVariantByteswap(x.GoPointer()) | |
| 891 | + | if cret == 0 { | |
| 892 | + | return nil | |
| 893 | + | } | |
| 894 | + | return (*Variant)(unsafe.Pointer(cret)) | |
| 895 | + | } | |
| 896 | + | ||
| 897 | + | var xVariantCheckFormatString func(uintptr, string, bool) bool | |
| 898 | + | ||
| 899 | + | // Checks if calling g_variant_get() with @format_string on @value would | |
| 900 | + | // be valid from a type-compatibility standpoint. @format_string is | |
| 901 | + | // assumed to be a valid format string (from a syntactic standpoint). | |
| 902 | + | // | |
| 903 | + | // If @copy_only is %TRUE then this function additionally checks that it | |
| 904 | + | // would be safe to call g_variant_unref() on @value immediately after | |
| 905 | + | // the call to g_variant_get() without invalidating the result. This is | |
| 906 | + | // only possible if deep copies are made (ie: there are no pointers to | |
| 907 | + | // the data inside of the soon-to-be-freed #GVariant instance). If this | |
| 908 | + | // check fails then a g_critical() is printed and %FALSE is returned. | |
| 909 | + | // | |
| 910 | + | // This function is meant to be used by functions that wish to provide | |
| 911 | + | // varargs accessors to #GVariant values of uncertain values (eg: | |
| 912 | + | // g_variant_lookup() or g_menu_model_get_item_attribute()). | |
| 913 | + | func (x *Variant) CheckFormatString(FormatStringVar string, CopyOnlyVar bool) bool { | |
| 914 | + | cret := xVariantCheckFormatString(x.GoPointer(), FormatStringVar, CopyOnlyVar) | |
| 915 | + | return cret | |
| 916 | + | } | |
| 917 | + | ||
| 918 | + | var xVariantClassify func(uintptr) VariantClass | |
| 919 | + | ||
| 920 | + | // Classifies @value according to its top-level type. | |
| 921 | + | func (x *Variant) Classify() VariantClass { | |
| 922 | + | cret := xVariantClassify(x.GoPointer()) | |
| 923 | + | return cret | |
| 924 | + | } | |
| 925 | + | ||
| 926 | + | var xVariantCompare func(uintptr, uintptr) int | |
| 927 | + | ||
| 928 | + | // Compares @one and @two. | |
| 929 | + | // | |
| 930 | + | // The types of @one and @two are #gconstpointer only to allow use of | |
| 931 | + | // this function with #GTree, #GPtrArray, etc. They must each be a | |
| 932 | + | // #GVariant. | |
| 933 | + | // | |
| 934 | + | // Comparison is only defined for basic types (ie: booleans, numbers, | |
| 935 | + | // strings). For booleans, %FALSE is less than %TRUE. Numbers are | |
| 936 | + | // ordered in the usual way. Strings are in ASCII lexographical order. | |
| 937 | + | // | |
| 938 | + | // It is a programmer error to attempt to compare container values or | |
| 939 | + | // two values that have types that are not exactly equal. For example, | |
| 940 | + | // you cannot compare a 32-bit signed integer with a 32-bit unsigned | |
| 941 | + | // integer. Also note that this function is not particularly | |
| 942 | + | // well-behaved when it comes to comparison of doubles; in particular, | |
| 943 | + | // the handling of incomparable values (ie: NaN) is undefined. | |
| 944 | + | // | |
| 945 | + | // If you only require an equality comparison, g_variant_equal() is more | |
| 946 | + | // general. | |
| 947 | + | func (x *Variant) Compare(TwoVar uintptr) int { | |
| 948 | + | cret := xVariantCompare(x.GoPointer(), TwoVar) | |
| 949 | + | return cret | |
| 950 | + | } | |
| 951 | + | ||
| 952 | + | var xVariantDupBytestring func(uintptr, *uint) uintptr | |
| 953 | + | ||
| 954 | + | // Similar to g_variant_get_bytestring() except that instead of | |
| 955 | + | // returning a constant string, the string is duplicated. | |
| 956 | + | // | |
| 957 | + | // The return value must be freed using g_free(). | |
| 958 | + | func (x *Variant) DupBytestring(LengthVar *uint) uintptr { | |
| 959 | + | cret := xVariantDupBytestring(x.GoPointer(), LengthVar) | |
| 960 | + | return cret | |
| 961 | + | } | |
| 962 | + | ||
| 963 | + | var xVariantDupBytestringArray func(uintptr, *uint) []string | |
| 964 | + | ||
| 965 | + | // Gets the contents of an array of array of bytes #GVariant. This call | |
| 966 | + | // makes a deep copy; the return result should be released with | |
| 967 | + | // g_strfreev(). | |
| 968 | + | // | |
| 969 | + | // If @length is non-%NULL then the number of elements in the result is | |
| 970 | + | // stored there. In any case, the resulting array will be | |
| 971 | + | // %NULL-terminated. | |
| 972 | + | // | |
| 973 | + | // For an empty array, @length will be set to 0 and a pointer to a | |
| 974 | + | // %NULL pointer will be returned. | |
| 975 | + | func (x *Variant) DupBytestringArray(LengthVar *uint) []string { | |
| 976 | + | cret := xVariantDupBytestringArray(x.GoPointer(), LengthVar) | |
| 977 | + | return cret | |
| 978 | + | } | |
| 979 | + | ||
| 980 | + | var xVariantDupObjv func(uintptr, *uint) []string | |
| 981 | + | ||
| 982 | + | // Gets the contents of an array of object paths #GVariant. This call | |
| 983 | + | // makes a deep copy; the return result should be released with | |
| 984 | + | // g_strfreev(). | |
| 985 | + | // | |
| 986 | + | // If @length is non-%NULL then the number of elements in the result | |
| 987 | + | // is stored there. In any case, the resulting array will be | |
| 988 | + | // %NULL-terminated. | |
| 989 | + | // | |
| 990 | + | // For an empty array, @length will be set to 0 and a pointer to a | |
| 991 | + | // %NULL pointer will be returned. | |
| 992 | + | func (x *Variant) DupObjv(LengthVar *uint) []string { | |
| 993 | + | cret := xVariantDupObjv(x.GoPointer(), LengthVar) | |
| 994 | + | return cret | |
| 995 | + | } | |
| 996 | + | ||
| 997 | + | var xVariantDupString func(uintptr, *uint) string | |
| 998 | + | ||
| 999 | + | // Similar to g_variant_get_string() except that instead of returning | |
| 1000 | + | // a constant string, the string is duplicated. | |
| 1001 | + | // | |
| 1002 | + | // The string will always be UTF-8 encoded. | |
| 1003 | + | // | |
| 1004 | + | // The return value must be freed using g_free(). | |
| 1005 | + | func (x *Variant) DupString(LengthVar *uint) string { | |
| 1006 | + | cret := xVariantDupString(x.GoPointer(), LengthVar) | |
| 1007 | + | return cret | |
| 1008 | + | } | |
| 1009 | + | ||
| 1010 | + | var xVariantDupStrv func(uintptr, *uint) []string | |
| 1011 | + | ||
| 1012 | + | // Gets the contents of an array of strings #GVariant. This call | |
| 1013 | + | // makes a deep copy; the return result should be released with | |
| 1014 | + | // g_strfreev(). | |
| 1015 | + | // | |
| 1016 | + | // If @length is non-%NULL then the number of elements in the result | |
| 1017 | + | // is stored there. In any case, the resulting array will be | |
| 1018 | + | // %NULL-terminated. | |
| 1019 | + | // | |
| 1020 | + | // For an empty array, @length will be set to 0 and a pointer to a | |
| 1021 | + | // %NULL pointer will be returned. | |
| 1022 | + | func (x *Variant) DupStrv(LengthVar *uint) []string { | |
| 1023 | + | cret := xVariantDupStrv(x.GoPointer(), LengthVar) | |
| 1024 | + | return cret | |
| 1025 | + | } | |
| 1026 | + | ||
| 1027 | + | var xVariantEqual func(uintptr, uintptr) bool | |
| 1028 | + | ||
| 1029 | + | // Checks if @one and @two have the same type and value. | |
| 1030 | + | // | |
| 1031 | + | // The types of @one and @two are #gconstpointer only to allow use of | |
| 1032 | + | // this function with #GHashTable. They must each be a #GVariant. | |
| 1033 | + | func (x *Variant) Equal(TwoVar uintptr) bool { | |
| 1034 | + | cret := xVariantEqual(x.GoPointer(), TwoVar) | |
| 1035 | + | return cret | |
| 1036 | + | } | |
| 1037 | + | ||
| 1038 | + | var xVariantGet func(uintptr, string, ...interface{}) | |
| 1039 | + | ||
| 1040 | + | // Deconstructs a #GVariant instance. | |
| 1041 | + | // | |
| 1042 | + | // Think of this function as an analogue to scanf(). | |
| 1043 | + | // | |
| 1044 | + | // The arguments that are expected by this function are entirely | |
| 1045 | + | // determined by @format_string. @format_string also restricts the | |
| 1046 | + | // permissible types of @value. It is an error to give a value with | |
| 1047 | + | // an incompatible type. See the section on | |
| 1048 | + | // [GVariant format strings](gvariant-format-strings.html). | |
| 1049 | + | // Please note that the syntax of the format string is very likely to be | |
| 1050 | + | // extended in the future. | |
| 1051 | + | // | |
| 1052 | + | // @format_string determines the C types that are used for unpacking | |
| 1053 | + | // the values and also determines if the values are copied or borrowed, | |
| 1054 | + | // see the section on | |
| 1055 | + | // [`GVariant` format strings](gvariant-format-strings.html#pointers). | |
| 1056 | + | func (x *Variant) Get(FormatStringVar string, varArgs ...interface{}) { | |
| 1057 | + | xVariantGet(x.GoPointer(), FormatStringVar, varArgs...) | |
| 1058 | + | } | |
| 1059 | + | ||
| 1060 | + | var xVariantGetBoolean func(uintptr) bool | |
| 1061 | + | ||
| 1062 | + | // Returns the boolean value of @value. | |
| 1063 | + | // | |
| 1064 | + | // It is an error to call this function with a @value of any type | |
| 1065 | + | // other than %G_VARIANT_TYPE_BOOLEAN. | |
| 1066 | + | func (x *Variant) GetBoolean() bool { | |
| 1067 | + | cret := xVariantGetBoolean(x.GoPointer()) | |
| 1068 | + | return cret | |
| 1069 | + | } | |
| 1070 | + | ||
| 1071 | + | var xVariantGetByte func(uintptr) byte | |
| 1072 | + | ||
| 1073 | + | // Returns the byte value of @value. | |
| 1074 | + | // | |
| 1075 | + | // It is an error to call this function with a @value of any type | |
| 1076 | + | // other than %G_VARIANT_TYPE_BYTE. | |
| 1077 | + | func (x *Variant) GetByte() byte { | |
| 1078 | + | cret := xVariantGetByte(x.GoPointer()) | |
| 1079 | + | return cret | |
| 1080 | + | } | |
| 1081 | + | ||
| 1082 | + | var xVariantGetBytestring func(uintptr) uintptr | |
| 1083 | + | ||
| 1084 | + | // Returns the string value of a #GVariant instance with an | |
| 1085 | + | // array-of-bytes type. The string has no particular encoding. | |
| 1086 | + | // | |
| 1087 | + | // If the array does not end with a nul terminator character, the empty | |
| 1088 | + | // string is returned. For this reason, you can always trust that a | |
| 1089 | + | // non-%NULL nul-terminated string will be returned by this function. | |
| 1090 | + | // | |
| 1091 | + | // If the array contains a nul terminator character somewhere other than | |
| 1092 | + | // the last byte then the returned string is the string, up to the first | |
| 1093 | + | // such nul character. | |
| 1094 | + | // | |
| 1095 | + | // g_variant_get_fixed_array() should be used instead if the array contains | |
| 1096 | + | // arbitrary data that could not be nul-terminated or could contain nul bytes. | |
| 1097 | + | // | |
| 1098 | + | // It is an error to call this function with a @value that is not an | |
| 1099 | + | // array of bytes. | |
| 1100 | + | // | |
| 1101 | + | // The return value remains valid as long as @value exists. | |
| 1102 | + | func (x *Variant) GetBytestring() uintptr { | |
| 1103 | + | cret := xVariantGetBytestring(x.GoPointer()) | |
| 1104 | + | return cret | |
| 1105 | + | } | |
| 1106 | + | ||
| 1107 | + | var xVariantGetBytestringArray func(uintptr, *uint) []string | |
| 1108 | + | ||
| 1109 | + | // Gets the contents of an array of array of bytes #GVariant. This call | |
| 1110 | + | // makes a shallow copy; the return result should be released with | |
| 1111 | + | // g_free(), but the individual strings must not be modified. | |
| 1112 | + | // | |
| 1113 | + | // If @length is non-%NULL then the number of elements in the result is | |
| 1114 | + | // stored there. In any case, the resulting array will be | |
| 1115 | + | // %NULL-terminated. | |
| 1116 | + | // | |
| 1117 | + | // For an empty array, @length will be set to 0 and a pointer to a | |
| 1118 | + | // %NULL pointer will be returned. | |
| 1119 | + | func (x *Variant) GetBytestringArray(LengthVar *uint) []string { | |
| 1120 | + | cret := xVariantGetBytestringArray(x.GoPointer(), LengthVar) | |
| 1121 | + | return cret | |
| 1122 | + | } | |
| 1123 | + | ||
| 1124 | + | var xVariantGetChild func(uintptr, uint, string, ...interface{}) | |
| 1125 | + | ||
| 1126 | + | // Reads a child item out of a container #GVariant instance and | |
| 1127 | + | // deconstructs it according to @format_string. This call is | |
| 1128 | + | // essentially a combination of g_variant_get_child_value() and | |
| 1129 | + | // g_variant_get(). | |
| 1130 | + | // | |
| 1131 | + | // @format_string determines the C types that are used for unpacking | |
| 1132 | + | // the values and also determines if the values are copied or borrowed, | |
| 1133 | + | // see the section on | |
| 1134 | + | // [`GVariant` format strings](gvariant-format-strings.html#pointers). | |
| 1135 | + | func (x *Variant) GetChild(IndexVar uint, FormatStringVar string, varArgs ...interface{}) { | |
| 1136 | + | xVariantGetChild(x.GoPointer(), IndexVar, FormatStringVar, varArgs...) | |
| 1137 | + | } | |
| 1138 | + | ||
| 1139 | + | var xVariantGetChildValue func(uintptr, uint) uintptr | |
| 1140 | + | ||
| 1141 | + | // Reads a child item out of a container #GVariant instance. This | |
| 1142 | + | // includes variants, maybes, arrays, tuples and dictionary | |
| 1143 | + | // entries. It is an error to call this function on any other type of | |
| 1144 | + | // #GVariant. | |
| 1145 | + | // | |
| 1146 | + | // It is an error if @index_ is greater than the number of child items | |
| 1147 | + | // in the container. See g_variant_n_children(). | |
| 1148 | + | // | |
| 1149 | + | // The returned value is never floating. You should free it with | |
| 1150 | + | // g_variant_unref() when you're done with it. | |
| 1151 | + | // | |
| 1152 | + | // Note that values borrowed from the returned child are not guaranteed to | |
| 1153 | + | // still be valid after the child is freed even if you still hold a reference | |
| 1154 | + | // to @value, if @value has not been serialized at the time this function is | |
| 1155 | + | // called. To avoid this, you can serialize @value by calling | |
| 1156 | + | // g_variant_get_data() and optionally ignoring the return value. | |
| 1157 | + | // | |
| 1158 | + | // There may be implementation specific restrictions on deeply nested values, | |
| 1159 | + | // which would result in the unit tuple being returned as the child value, | |
| 1160 | + | // instead of further nested children. #GVariant is guaranteed to handle | |
| 1161 | + | // nesting up to at least 64 levels. | |
| 1162 | + | // | |
| 1163 | + | // This function is O(1). | |
| 1164 | + | func (x *Variant) GetChildValue(IndexVar uint) *Variant { | |
| 1165 | + | cret := xVariantGetChildValue(x.GoPointer(), IndexVar) | |
| 1166 | + | if cret == 0 { | |
| 1167 | + | return nil | |
| 1168 | + | } | |
| 1169 | + | return (*Variant)(unsafe.Pointer(cret)) | |
| 1170 | + | } | |
| 1171 | + | ||
| 1172 | + | var xVariantGetData func(uintptr) uintptr | |
| 1173 | + | ||
| 1174 | + | // Returns a pointer to the serialized form of a #GVariant instance. | |
| 1175 | + | // The returned data may not be in fully-normalised form if read from an | |
| 1176 | + | // untrusted source. The returned data must not be freed; it remains | |
| 1177 | + | // valid for as long as @value exists. | |
| 1178 | + | // | |
| 1179 | + | // If @value is a fixed-sized value that was deserialized from a | |
| 1180 | + | // corrupted serialized container then %NULL may be returned. In this | |
| 1181 | + | // case, the proper thing to do is typically to use the appropriate | |
| 1182 | + | // number of nul bytes in place of @value. If @value is not fixed-sized | |
| 1183 | + | // then %NULL is never returned. | |
| 1184 | + | // | |
| 1185 | + | // In the case that @value is already in serialized form, this function | |
| 1186 | + | // is O(1). If the value is not already in serialized form, | |
| 1187 | + | // serialization occurs implicitly and is approximately O(n) in the size | |
| 1188 | + | // of the result. | |
| 1189 | + | // | |
| 1190 | + | // To deserialize the data returned by this function, in addition to the | |
| 1191 | + | // serialized data, you must know the type of the #GVariant, and (if the | |
| 1192 | + | // machine might be different) the endianness of the machine that stored | |
| 1193 | + | // it. As a result, file formats or network messages that incorporate | |
| 1194 | + | // serialized #GVariants must include this information either | |
| 1195 | + | // implicitly (for instance "the file always contains a | |
| 1196 | + | // %G_VARIANT_TYPE_VARIANT and it is always in little-endian order") or | |
| 1197 | + | // explicitly (by storing the type and/or endianness in addition to the | |
| 1198 | + | // serialized data). | |
| 1199 | + | func (x *Variant) GetData() uintptr { | |
| 1200 | + | cret := xVariantGetData(x.GoPointer()) | |
| 1201 | + | return cret | |
| 1202 | + | } | |
| 1203 | + | ||
| 1204 | + | var xVariantGetDataAsBytes func(uintptr) uintptr | |
| 1205 | + | ||
| 1206 | + | // Returns a pointer to the serialized form of a #GVariant instance. | |
| 1207 | + | // The semantics of this function are exactly the same as | |
| 1208 | + | // g_variant_get_data(), except that the returned #GBytes holds | |
| 1209 | + | // a reference to the variant data. | |
| 1210 | + | func (x *Variant) GetDataAsBytes() *Bytes { | |
| 1211 | + | cret := xVariantGetDataAsBytes(x.GoPointer()) | |
| 1212 | + | if cret == 0 { | |
| 1213 | + | return nil | |
| 1214 | + | } | |
| 1215 | + | return (*Bytes)(unsafe.Pointer(cret)) | |
| 1216 | + | } | |
| 1217 | + | ||
| 1218 | + | var xVariantGetDouble func(uintptr) float64 | |
| 1219 | + | ||
| 1220 | + | // Returns the double precision floating point value of @value. | |
| 1221 | + | // | |
| 1222 | + | // It is an error to call this function with a @value of any type | |
| 1223 | + | // other than %G_VARIANT_TYPE_DOUBLE. | |
| 1224 | + | func (x *Variant) GetDouble() float64 { | |
| 1225 | + | cret := xVariantGetDouble(x.GoPointer()) | |
| 1226 | + | return cret | |
| 1227 | + | } | |
| 1228 | + | ||
| 1229 | + | var xVariantGetFixedArray func(uintptr, *uint, uint) uintptr | |
| 1230 | + | ||
| 1231 | + | // Provides access to the serialized data for an array of fixed-sized | |
| 1232 | + | // items. | |
| 1233 | + | // | |
| 1234 | + | // @value must be an array with fixed-sized elements. Numeric types are | |
| 1235 | + | // fixed-size, as are tuples containing only other fixed-sized types. | |
| 1236 | + | // | |
| 1237 | + | // @element_size must be the size of a single element in the array, | |
| 1238 | + | // as given by the section on | |
| 1239 | + | // [serialized data memory](struct.Variant.html#serialized-data-memory). | |
| 1240 | + | // | |
| 1241 | + | // In particular, arrays of these fixed-sized types can be interpreted | |
| 1242 | + | // as an array of the given C type, with @element_size set to the size | |
| 1243 | + | // the appropriate type: | |
| 1244 | + | // - %G_VARIANT_TYPE_INT16 (etc.): #gint16 (etc.) | |
| 1245 | + | // - %G_VARIANT_TYPE_BOOLEAN: #guchar (not #gboolean!) | |
| 1246 | + | // - %G_VARIANT_TYPE_BYTE: #guint8 | |
| 1247 | + | // - %G_VARIANT_TYPE_HANDLE: #guint32 | |
| 1248 | + | // - %G_VARIANT_TYPE_DOUBLE: #gdouble | |
| 1249 | + | // | |
| 1250 | + | // For example, if calling this function for an array of 32-bit integers, | |
| 1251 | + | // you might say `sizeof(gint32)`. This value isn't used except for the purpose | |
| 1252 | + | // of a double-check that the form of the serialized data matches the caller's | |
| 1253 | + | // expectation. | |
| 1254 | + | // | |
| 1255 | + | // @n_elements, which must be non-%NULL, is set equal to the number of | |
| 1256 | + | // items in the array. | |
| 1257 | + | func (x *Variant) GetFixedArray(NElementsVar *uint, ElementSizeVar uint) uintptr { | |
| 1258 | + | cret := xVariantGetFixedArray(x.GoPointer(), NElementsVar, ElementSizeVar) | |
| 1259 | + | return cret | |
| 1260 | + | } | |
| 1261 | + | ||
| 1262 | + | var xVariantGetHandle func(uintptr) int32 | |
| 1263 | + | ||
| 1264 | + | // Returns the 32-bit signed integer value of @value. | |
| 1265 | + | // | |
| 1266 | + | // It is an error to call this function with a @value of any type other | |
| 1267 | + | // than %G_VARIANT_TYPE_HANDLE. | |
| 1268 | + | // | |
| 1269 | + | // By convention, handles are indexes into an array of file descriptors | |
| 1270 | + | // that are sent alongside a D-Bus message. If you're not interacting | |
| 1271 | + | // with D-Bus, you probably don't need them. | |
| 1272 | + | func (x *Variant) GetHandle() int32 { | |
| 1273 | + | cret := xVariantGetHandle(x.GoPointer()) | |
| 1274 | + | return cret | |
| 1275 | + | } | |
| 1276 | + | ||
| 1277 | + | var xVariantGetInt16 func(uintptr) int16 | |
| 1278 | + | ||
| 1279 | + | // Returns the 16-bit signed integer value of @value. | |
| 1280 | + | // | |
| 1281 | + | // It is an error to call this function with a @value of any type | |
| 1282 | + | // other than %G_VARIANT_TYPE_INT16. | |
| 1283 | + | func (x *Variant) GetInt16() int16 { | |
| 1284 | + | cret := xVariantGetInt16(x.GoPointer()) | |
| 1285 | + | return cret | |
| 1286 | + | } | |
| 1287 | + | ||
| 1288 | + | var xVariantGetInt32 func(uintptr) int32 | |
| 1289 | + | ||
| 1290 | + | // Returns the 32-bit signed integer value of @value. | |
| 1291 | + | // | |
| 1292 | + | // It is an error to call this function with a @value of any type | |
| 1293 | + | // other than %G_VARIANT_TYPE_INT32. | |
| 1294 | + | func (x *Variant) GetInt32() int32 { | |
| 1295 | + | cret := xVariantGetInt32(x.GoPointer()) | |
| 1296 | + | return cret | |
| 1297 | + | } | |
| 1298 | + | ||
| 1299 | + | var xVariantGetInt64 func(uintptr) int64 | |
| 1300 | + | ||
| 1301 | + | // Returns the 64-bit signed integer value of @value. | |
| 1302 | + | // | |
| 1303 | + | // It is an error to call this function with a @value of any type | |
| 1304 | + | // other than %G_VARIANT_TYPE_INT64. | |
| 1305 | + | func (x *Variant) GetInt64() int64 { | |
| 1306 | + | cret := xVariantGetInt64(x.GoPointer()) | |
| 1307 | + | return cret | |
| 1308 | + | } | |
| 1309 | + | ||
| 1310 | + | var xVariantGetMaybe func(uintptr) uintptr | |
| 1311 | + | ||
| 1312 | + | // Given a maybe-typed #GVariant instance, extract its value. If the | |
| 1313 | + | // value is Nothing, then this function returns %NULL. | |
| 1314 | + | func (x *Variant) GetMaybe() *Variant { | |
| 1315 | + | cret := xVariantGetMaybe(x.GoPointer()) | |
| 1316 | + | if cret == 0 { | |
| 1317 | + | return nil | |
| 1318 | + | } | |
| 1319 | + | return (*Variant)(unsafe.Pointer(cret)) | |
| 1320 | + | } | |
| 1321 | + | ||
| 1322 | + | var xVariantGetNormalForm func(uintptr) uintptr | |
| 1323 | + | ||
| 1324 | + | // Gets a #GVariant instance that has the same value as @value and is | |
| 1325 | + | // trusted to be in normal form. | |
| 1326 | + | // | |
| 1327 | + | // If @value is already trusted to be in normal form then a new | |
| 1328 | + | // reference to @value is returned. | |
| 1329 | + | // | |
| 1330 | + | // If @value is not already trusted, then it is scanned to check if it | |
| 1331 | + | // is in normal form. If it is found to be in normal form then it is | |
| 1332 | + | // marked as trusted and a new reference to it is returned. | |
| 1333 | + | // | |
| 1334 | + | // If @value is found not to be in normal form then a new trusted | |
| 1335 | + | // #GVariant is created with the same value as @value. The non-normal parts of | |
| 1336 | + | // @value will be replaced with default values which are guaranteed to be in | |
| 1337 | + | // normal form. | |
| 1338 | + | // | |
| 1339 | + | // It makes sense to call this function if you've received #GVariant | |
| 1340 | + | // data from untrusted sources and you want to ensure your serialized | |
| 1341 | + | // output is definitely in normal form. | |
| 1342 | + | // | |
| 1343 | + | // If @value is already in normal form, a new reference will be returned | |
| 1344 | + | // (which will be floating if @value is floating). If it is not in normal form, | |
| 1345 | + | // the newly created #GVariant will be returned with a single non-floating | |
| 1346 | + | // reference. Typically, g_variant_take_ref() should be called on the return | |
| 1347 | + | // value from this function to guarantee ownership of a single non-floating | |
| 1348 | + | // reference to it. | |
| 1349 | + | func (x *Variant) GetNormalForm() *Variant { | |
| 1350 | + | cret := xVariantGetNormalForm(x.GoPointer()) | |
| 1351 | + | if cret == 0 { | |
| 1352 | + | return nil | |
| 1353 | + | } | |
| 1354 | + | return (*Variant)(unsafe.Pointer(cret)) | |
| 1355 | + | } | |
| 1356 | + | ||
| 1357 | + | var xVariantGetObjv func(uintptr, *uint) []string | |
| 1358 | + | ||
| 1359 | + | // Gets the contents of an array of object paths #GVariant. This call | |
| 1360 | + | // makes a shallow copy; the return result should be released with | |
| 1361 | + | // g_free(), but the individual strings must not be modified. | |
| 1362 | + | // | |
| 1363 | + | // If @length is non-%NULL then the number of elements in the result | |
| 1364 | + | // is stored there. In any case, the resulting array will be | |
| 1365 | + | // %NULL-terminated. | |
| 1366 | + | // | |
| 1367 | + | // For an empty array, @length will be set to 0 and a pointer to a | |
| 1368 | + | // %NULL pointer will be returned. | |
| 1369 | + | func (x *Variant) GetObjv(LengthVar *uint) []string { | |
| 1370 | + | cret := xVariantGetObjv(x.GoPointer(), LengthVar) | |
| 1371 | + | return cret | |
| 1372 | + | } | |
| 1373 | + | ||
| 1374 | + | var xVariantGetSize func(uintptr) uint | |
| 1375 | + | ||
| 1376 | + | // Determines the number of bytes that would be required to store @value | |
| 1377 | + | // with g_variant_store(). | |
| 1378 | + | // | |
| 1379 | + | // If @value has a fixed-sized type then this function always returned | |
| 1380 | + | // that fixed size. | |
| 1381 | + | // | |
| 1382 | + | // In the case that @value is already in serialized form or the size has | |
| 1383 | + | // already been calculated (ie: this function has been called before) | |
| 1384 | + | // then this function is O(1). Otherwise, the size is calculated, an | |
| 1385 | + | // operation which is approximately O(n) in the number of values | |
| 1386 | + | // involved. | |
| 1387 | + | func (x *Variant) GetSize() uint { | |
| 1388 | + | cret := xVariantGetSize(x.GoPointer()) | |
| 1389 | + | return cret | |
| 1390 | + | } | |
| 1391 | + | ||
| 1392 | + | var xVariantGetString func(uintptr, *uint) string | |
| 1393 | + | ||
| 1394 | + | // Returns the string value of a #GVariant instance with a string | |
| 1395 | + | // type. This includes the types %G_VARIANT_TYPE_STRING, | |
| 1396 | + | // %G_VARIANT_TYPE_OBJECT_PATH and %G_VARIANT_TYPE_SIGNATURE. | |
| 1397 | + | // | |
| 1398 | + | // The string will always be UTF-8 encoded, will never be %NULL, and will never | |
| 1399 | + | // contain nul bytes. | |
| 1400 | + | // | |
| 1401 | + | // If @length is non-%NULL then the length of the string (in bytes) is | |
| 1402 | + | // returned there. For trusted values, this information is already | |
| 1403 | + | // known. Untrusted values will be validated and, if valid, a strlen() will be | |
| 1404 | + | // performed. If invalid, a default value will be returned — for | |
| 1405 | + | // %G_VARIANT_TYPE_OBJECT_PATH, this is `"/"`, and for other types it is the | |
| 1406 | + | // empty string. | |
| 1407 | + | // | |
| 1408 | + | // It is an error to call this function with a @value of any type | |
| 1409 | + | // other than those three. | |
| 1410 | + | // | |
| 1411 | + | // The return value remains valid as long as @value exists. | |
| 1412 | + | func (x *Variant) GetString(LengthVar *uint) string { | |
| 1413 | + | cret := xVariantGetString(x.GoPointer(), LengthVar) | |
| 1414 | + | return cret | |
| 1415 | + | } | |
| 1416 | + | ||
| 1417 | + | var xVariantGetStrv func(uintptr, *uint) []string | |
| 1418 | + | ||
| 1419 | + | // Gets the contents of an array of strings #GVariant. This call | |
| 1420 | + | // makes a shallow copy; the return result should be released with | |
| 1421 | + | // g_free(), but the individual strings must not be modified. | |
| 1422 | + | // | |
| 1423 | + | // If @length is non-%NULL then the number of elements in the result | |
| 1424 | + | // is stored there. In any case, the resulting array will be | |
| 1425 | + | // %NULL-terminated. | |
| 1426 | + | // | |
| 1427 | + | // For an empty array, @length will be set to 0 and a pointer to a | |
| 1428 | + | // %NULL pointer will be returned. | |
| 1429 | + | func (x *Variant) GetStrv(LengthVar *uint) []string { | |
| 1430 | + | cret := xVariantGetStrv(x.GoPointer(), LengthVar) | |
| 1431 | + | return cret | |
| 1432 | + | } | |
| 1433 | + | ||
| 1434 | + | var xVariantGetType func(uintptr) uintptr | |
| 1435 | + | ||
| 1436 | + | // Determines the type of @value. | |
| 1437 | + | // | |
| 1438 | + | // The return value is valid for the lifetime of @value and must not | |
| 1439 | + | // be freed. | |
| 1440 | + | func (x *Variant) GetType() *VariantType { | |
| 1441 | + | cret := xVariantGetType(x.GoPointer()) | |
| 1442 | + | if cret == 0 { | |
| 1443 | + | return nil | |
| 1444 | + | } | |
| 1445 | + | return (*VariantType)(unsafe.Pointer(cret)) | |
| 1446 | + | } | |
| 1447 | + | ||
| 1448 | + | var xVariantGetTypeString func(uintptr) string | |
| 1449 | + | ||
| 1450 | + | // Returns the type string of @value. Unlike the result of calling | |
| 1451 | + | // g_variant_type_peek_string(), this string is nul-terminated. This | |
| 1452 | + | // string belongs to #GVariant and must not be freed. | |
| 1453 | + | func (x *Variant) GetTypeString() string { | |
| 1454 | + | cret := xVariantGetTypeString(x.GoPointer()) | |
| 1455 | + | return cret | |
| 1456 | + | } | |
| 1457 | + | ||
| 1458 | + | var xVariantGetUint16 func(uintptr) uint16 | |
| 1459 | + | ||
| 1460 | + | // Returns the 16-bit unsigned integer value of @value. | |
| 1461 | + | // | |
| 1462 | + | // It is an error to call this function with a @value of any type | |
| 1463 | + | // other than %G_VARIANT_TYPE_UINT16. | |
| 1464 | + | func (x *Variant) GetUint16() uint16 { | |
| 1465 | + | cret := xVariantGetUint16(x.GoPointer()) | |
| 1466 | + | return cret | |
| 1467 | + | } | |
| 1468 | + | ||
| 1469 | + | var xVariantGetUint32 func(uintptr) uint32 | |
| 1470 | + | ||
| 1471 | + | // Returns the 32-bit unsigned integer value of @value. | |
| 1472 | + | // | |
| 1473 | + | // It is an error to call this function with a @value of any type | |
| 1474 | + | // other than %G_VARIANT_TYPE_UINT32. | |
| 1475 | + | func (x *Variant) GetUint32() uint32 { | |
| 1476 | + | cret := xVariantGetUint32(x.GoPointer()) | |
| 1477 | + | return cret | |
| 1478 | + | } | |
| 1479 | + | ||
| 1480 | + | var xVariantGetUint64 func(uintptr) uint64 | |
| 1481 | + | ||
| 1482 | + | // Returns the 64-bit unsigned integer value of @value. | |
| 1483 | + | // | |
| 1484 | + | // It is an error to call this function with a @value of any type | |
| 1485 | + | // other than %G_VARIANT_TYPE_UINT64. | |
| 1486 | + | func (x *Variant) GetUint64() uint64 { | |
| 1487 | + | cret := xVariantGetUint64(x.GoPointer()) | |
| 1488 | + | return cret | |
| 1489 | + | } | |
| 1490 | + | ||
| 1491 | + | var xVariantGetVa func(uintptr, string, uintptr, []interface{}) | |
| 1492 | + | ||
| 1493 | + | // This function is intended to be used by libraries based on #GVariant | |
| 1494 | + | // that want to provide g_variant_get()-like functionality to their | |
| 1495 | + | // users. | |
| 1496 | + | // | |
| 1497 | + | // The API is more general than g_variant_get() to allow a wider range | |
| 1498 | + | // of possible uses. | |
| 1499 | + | // | |
| 1500 | + | // @format_string must still point to a valid format string, but it only | |
| 1501 | + | // need to be nul-terminated if @endptr is %NULL. If @endptr is | |
| 1502 | + | // non-%NULL then it is updated to point to the first character past the | |
| 1503 | + | // end of the format string. | |
| 1504 | + | // | |
| 1505 | + | // @app is a pointer to a #va_list. The arguments, according to | |
| 1506 | + | // @format_string, are collected from this #va_list and the list is left | |
| 1507 | + | // pointing to the argument following the last. | |
| 1508 | + | // | |
| 1509 | + | // These two generalisations allow mixing of multiple calls to | |
| 1510 | + | // g_variant_new_va() and g_variant_get_va() within a single actual | |
| 1511 | + | // varargs call by the user. | |
| 1512 | + | // | |
| 1513 | + | // @format_string determines the C types that are used for unpacking | |
| 1514 | + | // the values and also determines if the values are copied or borrowed, | |
| 1515 | + | // see the section on | |
| 1516 | + | // [`GVariant` format strings](gvariant-format-strings.html#pointers). | |
| 1517 | + | func (x *Variant) GetVa(FormatStringVar string, EndptrVar *string, AppVar []interface{}) { | |
| 1518 | + | EndptrVarPtr := core.GStrdupNullable(EndptrVar) | |
| 1519 | + | defer core.GFreeNullable(EndptrVarPtr) | |
| 1520 | + | ||
| 1521 | + | xVariantGetVa(x.GoPointer(), FormatStringVar, EndptrVarPtr, AppVar) | |
| 1522 | + | } | |
| 1523 | + | ||
| 1524 | + | var xVariantGetVariant func(uintptr) uintptr | |
| 1525 | + | ||
| 1526 | + | // Unboxes @value. The result is the #GVariant instance that was | |
| 1527 | + | // contained in @value. | |
| 1528 | + | func (x *Variant) GetVariant() *Variant { | |
| 1529 | + | cret := xVariantGetVariant(x.GoPointer()) | |
| 1530 | + | if cret == 0 { | |
| 1531 | + | return nil | |
| 1532 | + | } | |
| 1533 | + | return (*Variant)(unsafe.Pointer(cret)) | |
| 1534 | + | } | |
| 1535 | + | ||
| 1536 | + | var xVariantHash func(uintptr) uint | |
| 1537 | + | ||
| 1538 | + | // Generates a hash value for a #GVariant instance. | |
| 1539 | + | // | |
| 1540 | + | // The output of this function is guaranteed to be the same for a given | |
| 1541 | + | // value only per-process. It may change between different processor | |
| 1542 | + | // architectures or even different versions of GLib. Do not use this | |
| 1543 | + | // function as a basis for building protocols or file formats. | |
| 1544 | + | // | |
| 1545 | + | // The type of @value is #gconstpointer only to allow use of this | |
| 1546 | + | // function with #GHashTable. @value must be a #GVariant. | |
| 1547 | + | func (x *Variant) Hash() uint { | |
| 1548 | + | cret := xVariantHash(x.GoPointer()) | |
| 1549 | + | return cret | |
| 1550 | + | } | |
| 1551 | + | ||
| 1552 | + | var xVariantIsContainer func(uintptr) bool | |
| 1553 | + | ||
| 1554 | + | // Checks if @value is a container. | |
| 1555 | + | func (x *Variant) IsContainer() bool { | |
| 1556 | + | cret := xVariantIsContainer(x.GoPointer()) | |
| 1557 | + | return cret | |
| 1558 | + | } | |
| 1559 | + | ||
| 1560 | + | var xVariantIsFloating func(uintptr) bool | |
| 1561 | + | ||
| 1562 | + | // Checks whether @value has a floating reference count. | |
| 1563 | + | // | |
| 1564 | + | // This function should only ever be used to assert that a given variant | |
| 1565 | + | // is or is not floating, or for debug purposes. To acquire a reference | |
| 1566 | + | // to a variant that might be floating, always use g_variant_ref_sink() | |
| 1567 | + | // or g_variant_take_ref(). | |
| 1568 | + | // | |
| 1569 | + | // See g_variant_ref_sink() for more information about floating reference | |
| 1570 | + | // counts. | |
| 1571 | + | func (x *Variant) IsFloating() bool { | |
| 1572 | + | cret := xVariantIsFloating(x.GoPointer()) | |
| 1573 | + | return cret | |
| 1574 | + | } | |
| 1575 | + | ||
| 1576 | + | var xVariantIsNormalForm func(uintptr) bool | |
| 1577 | + | ||
| 1578 | + | // Checks if @value is in normal form. | |
| 1579 | + | // | |
| 1580 | + | // The main reason to do this is to detect if a given chunk of | |
| 1581 | + | // serialized data is in normal form: load the data into a #GVariant | |
| 1582 | + | // using g_variant_new_from_data() and then use this function to | |
| 1583 | + | // check. | |
| 1584 | + | // | |
| 1585 | + | // If @value is found to be in normal form then it will be marked as | |
| 1586 | + | // being trusted. If the value was already marked as being trusted then | |
| 1587 | + | // this function will immediately return %TRUE. | |
| 1588 | + | // | |
| 1589 | + | // There may be implementation specific restrictions on deeply nested values. | |
| 1590 | + | // GVariant is guaranteed to handle nesting up to at least 64 levels. | |
| 1591 | + | func (x *Variant) IsNormalForm() bool { | |
| 1592 | + | cret := xVariantIsNormalForm(x.GoPointer()) | |
| 1593 | + | return cret | |
| 1594 | + | } | |
| 1595 | + | ||
| 1596 | + | var xVariantIsOfType func(uintptr, *VariantType) bool | |
| 1597 | + | ||
| 1598 | + | // Checks if a value has a type matching the provided type. | |
| 1599 | + | func (x *Variant) IsOfType(TypeVar *VariantType) bool { | |
| 1600 | + | cret := xVariantIsOfType(x.GoPointer(), TypeVar) | |
| 1601 | + | return cret | |
| 1602 | + | } | |
| 1603 | + | ||
| 1604 | + | var xVariantIterNew func(uintptr) uintptr | |
| 1605 | + | ||
| 1606 | + | // Creates a heap-allocated #GVariantIter for iterating over the items | |
| 1607 | + | // in @value. | |
| 1608 | + | // | |
| 1609 | + | // Use g_variant_iter_free() to free the return value when you no longer | |
| 1610 | + | // need it. | |
| 1611 | + | // | |
| 1612 | + | // A reference is taken to @value and will be released only when | |
| 1613 | + | // g_variant_iter_free() is called. | |
| 1614 | + | func (x *Variant) IterNew() *VariantIter { | |
| 1615 | + | cret := xVariantIterNew(x.GoPointer()) | |
| 1616 | + | if cret == 0 { | |
| 1617 | + | return nil | |
| 1618 | + | } | |
| 1619 | + | return (*VariantIter)(unsafe.Pointer(cret)) | |
| 1620 | + | } | |
| 1621 | + | ||
| 1622 | + | var xVariantLookup func(uintptr, string, string, ...interface{}) bool | |
| 1623 | + | ||
| 1624 | + | // Looks up a value in a dictionary #GVariant. | |
| 1625 | + | // | |
| 1626 | + | // This function is a wrapper around g_variant_lookup_value() and | |
| 1627 | + | // g_variant_get(). In the case that %NULL would have been returned, | |
| 1628 | + | // this function returns %FALSE. Otherwise, it unpacks the returned | |
| 1629 | + | // value and returns %TRUE. | |
| 1630 | + | // | |
| 1631 | + | // @format_string determines the C types that are used for unpacking | |
| 1632 | + | // the values and also determines if the values are copied or borrowed, | |
| 1633 | + | // see the section on | |
| 1634 | + | // [`GVariant` format strings](gvariant-format-strings.html#pointers). | |
| 1635 | + | // | |
| 1636 | + | // This function is currently implemented with a linear scan. If you | |
| 1637 | + | // plan to do many lookups then #GVariantDict may be more efficient. | |
| 1638 | + | func (x *Variant) Lookup(KeyVar string, FormatStringVar string, varArgs ...interface{}) bool { | |
| 1639 | + | cret := xVariantLookup(x.GoPointer(), KeyVar, FormatStringVar, varArgs...) | |
| 1640 | + | return cret | |
| 1641 | + | } | |
| 1642 | + | ||
| 1643 | + | var xVariantLookupValue func(uintptr, string, *VariantType) uintptr | |
| 1644 | + | ||
| 1645 | + | // Looks up a value in a dictionary #GVariant. | |
| 1646 | + | // | |
| 1647 | + | // This function works with dictionaries of the type `a{s*}` (and equally | |
| 1648 | + | // well with type `a{o*}`), but we only further discuss the string case | |
| 1649 | + | // for sake of clarity). | |
| 1650 | + | // | |
| 1651 | + | // In the event that @dictionary has the type `a{sv}`, the @expected_type | |
| 1652 | + | // string specifies what type of value is expected to be inside of the | |
| 1653 | + | // variant. If the value inside the variant has a different type then | |
| 1654 | + | // %NULL is returned. In the event that @dictionary has a value type other | |
| 1655 | + | // than v then @expected_type must directly match the value type and it is | |
| 1656 | + | // used to unpack the value directly or an error occurs. | |
| 1657 | + | // | |
| 1658 | + | // In either case, if @key is not found in @dictionary, %NULL is returned. | |
| 1659 | + | // | |
| 1660 | + | // If the key is found and the value has the correct type, it is | |
| 1661 | + | // returned. If @expected_type was specified then any non-%NULL return | |
| 1662 | + | // value will have this type. | |
| 1663 | + | // | |
| 1664 | + | // This function is currently implemented with a linear scan. If you | |
| 1665 | + | // plan to do many lookups then [struct@VariantDict] may be more efficient. | |
| 1666 | + | func (x *Variant) LookupValue(KeyVar string, ExpectedTypeVar *VariantType) *Variant { | |
| 1667 | + | cret := xVariantLookupValue(x.GoPointer(), KeyVar, ExpectedTypeVar) | |
| 1668 | + | if cret == 0 { | |
| 1669 | + | return nil | |
| 1670 | + | } | |
| 1671 | + | return (*Variant)(unsafe.Pointer(cret)) | |
| 1672 | + | } | |
| 1673 | + | ||
| 1674 | + | var xVariantNChildren func(uintptr) uint | |
| 1675 | + | ||
| 1676 | + | // Determines the number of children in a container #GVariant instance. | |
| 1677 | + | // This includes variants, maybes, arrays, tuples and dictionary | |
| 1678 | + | // entries. It is an error to call this function on any other type of | |
| 1679 | + | // #GVariant. | |
| 1680 | + | // | |
| 1681 | + | // For variants, the return value is always 1. For values with maybe | |
| 1682 | + | // types, it is always zero or one. For arrays, it is the length of the | |
| 1683 | + | // array. For tuples it is the number of tuple items (which depends | |
| 1684 | + | // only on the type). For dictionary entries, it is always 2 | |
| 1685 | + | // | |
| 1686 | + | // This function is O(1). | |
| 1687 | + | func (x *Variant) NChildren() uint { | |
| 1688 | + | cret := xVariantNChildren(x.GoPointer()) | |
| 1689 | + | return cret | |
| 1690 | + | } | |
| 1691 | + | ||
| 1692 | + | var xVariantPrint func(uintptr, bool) string | |
| 1693 | + | ||
| 1694 | + | // Pretty-prints @value in the format understood by g_variant_parse(). | |
| 1695 | + | // | |
| 1696 | + | // The format is described [here](gvariant-text-format.html). | |
| 1697 | + | // | |
| 1698 | + | // If @type_annotate is %TRUE, then type information is included in | |
| 1699 | + | // the output. | |
| 1700 | + | func (x *Variant) Print(TypeAnnotateVar bool) string { | |
| 1701 | + | cret := xVariantPrint(x.GoPointer(), TypeAnnotateVar) | |
| 1702 | + | return cret | |
| 1703 | + | } | |
| 1704 | + | ||
| 1705 | + | var xVariantPrintString func(uintptr, *String, bool) uintptr | |
| 1706 | + | ||
| 1707 | + | // Behaves as g_variant_print(), but operates on a #GString. | |
| 1708 | + | // | |
| 1709 | + | // If @string is non-%NULL then it is appended to and returned. Else, | |
| 1710 | + | // a new empty #GString is allocated and it is returned. | |
| 1711 | + | func (x *Variant) PrintString(StringVar *String, TypeAnnotateVar bool) *String { | |
| 1712 | + | cret := xVariantPrintString(x.GoPointer(), StringVar, TypeAnnotateVar) | |
| 1713 | + | if cret == 0 { | |
| 1714 | + | return nil | |
| 1715 | + | } | |
| 1716 | + | return (*String)(unsafe.Pointer(cret)) | |
| 1717 | + | } | |
| 1718 | + | ||
| 1719 | + | var xVariantRef func(uintptr) uintptr | |
| 1720 | + | ||
| 1721 | + | // Increases the reference count of @value. | |
| 1722 | + | func (x *Variant) Ref() *Variant { | |
| 1723 | + | cret := xVariantRef(x.GoPointer()) | |
| 1724 | + | if cret == 0 { | |
| 1725 | + | return nil | |
| 1726 | + | } | |
| 1727 | + | return (*Variant)(unsafe.Pointer(cret)) | |
| 1728 | + | } | |
| 1729 | + | ||
| 1730 | + | var xVariantRefSink func(uintptr) uintptr | |
| 1731 | + | ||
| 1732 | + | // #GVariant uses a floating reference count system. All functions with | |
| 1733 | + | // names starting with `g_variant_new_` return floating | |
| 1734 | + | // references. | |
| 1735 | + | // | |
| 1736 | + | // Calling g_variant_ref_sink() on a #GVariant with a floating reference | |
| 1737 | + | // will convert the floating reference into a full reference. Calling | |
| 1738 | + | // g_variant_ref_sink() on a non-floating #GVariant results in an | |
| 1739 | + | // additional normal reference being added. | |
| 1740 | + | // | |
| 1741 | + | // In other words, if the @value is floating, then this call "assumes | |
| 1742 | + | // ownership" of the floating reference, converting it to a normal | |
| 1743 | + | // reference. If the @value is not floating, then this call adds a | |
| 1744 | + | // new normal reference increasing the reference count by one. | |
| 1745 | + | // | |
| 1746 | + | // All calls that result in a #GVariant instance being inserted into a | |
| 1747 | + | // container will call g_variant_ref_sink() on the instance. This means | |
| 1748 | + | // that if the value was just created (and has only its floating | |
| 1749 | + | // reference) then the container will assume sole ownership of the value | |
| 1750 | + | // at that point and the caller will not need to unreference it. This | |
| 1751 | + | // makes certain common styles of programming much easier while still | |
| 1752 | + | // maintaining normal refcounting semantics in situations where values | |
| 1753 | + | // are not floating. | |
| 1754 | + | func (x *Variant) RefSink() *Variant { | |
| 1755 | + | cret := xVariantRefSink(x.GoPointer()) | |
| 1756 | + | if cret == 0 { | |
| 1757 | + | return nil | |
| 1758 | + | } | |
| 1759 | + | return (*Variant)(unsafe.Pointer(cret)) | |
| 1760 | + | } | |
| 1761 | + | ||
| 1762 | + | var xVariantStore func(uintptr, uintptr) | |
| 1763 | + | ||
| 1764 | + | // Stores the serialized form of @value at @data. @data should be | |
| 1765 | + | // large enough. See g_variant_get_size(). | |
| 1766 | + | // | |
| 1767 | + | // The stored data is in machine native byte order but may not be in | |
| 1768 | + | // fully-normalised form if read from an untrusted source. See | |
| 1769 | + | // g_variant_get_normal_form() for a solution. | |
| 1770 | + | // | |
| 1771 | + | // As with g_variant_get_data(), to be able to deserialize the | |
| 1772 | + | // serialized variant successfully, its type and (if the destination | |
| 1773 | + | // machine might be different) its endianness must also be available. | |
| 1774 | + | // | |
| 1775 | + | // This function is approximately O(n) in the size of @data. | |
| 1776 | + | func (x *Variant) Store(DataVar uintptr) { | |
| 1777 | + | xVariantStore(x.GoPointer(), DataVar) | |
| 1778 | + | } | |
| 1779 | + | ||
| 1780 | + | var xVariantTakeRef func(uintptr) uintptr | |
| 1781 | + | ||
| 1782 | + | // If @value is floating, sink it. Otherwise, do nothing. | |
| 1783 | + | // | |
| 1784 | + | // Typically you want to use g_variant_ref_sink() in order to | |
| 1785 | + | // automatically do the correct thing with respect to floating or | |
| 1786 | + | // non-floating references, but there is one specific scenario where | |
| 1787 | + | // this function is helpful. | |
| 1788 | + | // | |
| 1789 | + | // The situation where this function is helpful is when creating an API | |
| 1790 | + | // that allows the user to provide a callback function that returns a | |
| 1791 | + | // #GVariant. We certainly want to allow the user the flexibility to | |
| 1792 | + | // return a non-floating reference from this callback (for the case | |
| 1793 | + | // where the value that is being returned already exists). | |
| 1794 | + | // | |
| 1795 | + | // At the same time, the style of the #GVariant API makes it likely that | |
| 1796 | + | // for newly-created #GVariant instances, the user can be saved some | |
| 1797 | + | // typing if they are allowed to return a #GVariant with a floating | |
| 1798 | + | // reference. | |
| 1799 | + | // | |
| 1800 | + | // Using this function on the return value of the user's callback allows | |
| 1801 | + | // the user to do whichever is more convenient for them. The caller | |
| 1802 | + | // will always receives exactly one full reference to the value: either | |
| 1803 | + | // the one that was returned in the first place, or a floating reference | |
| 1804 | + | // that has been converted to a full reference. | |
| 1805 | + | // | |
| 1806 | + | // This function has an odd interaction when combined with | |
| 1807 | + | // g_variant_ref_sink() running at the same time in another thread on | |
| 1808 | + | // the same #GVariant instance. If g_variant_ref_sink() runs first then | |
| 1809 | + | // the result will be that the floating reference is converted to a hard | |
| 1810 | + | // reference. If g_variant_take_ref() runs first then the result will | |
| 1811 | + | // be that the floating reference is converted to a hard reference and | |
| 1812 | + | // an additional reference on top of that one is added. It is best to | |
| 1813 | + | // avoid this situation. | |
| 1814 | + | func (x *Variant) TakeRef() *Variant { | |
| 1815 | + | cret := xVariantTakeRef(x.GoPointer()) | |
| 1816 | + | if cret == 0 { | |
| 1817 | + | return nil | |
| 1818 | + | } | |
| 1819 | + | return (*Variant)(unsafe.Pointer(cret)) | |
| 1820 | + | } | |
| 1821 | + | ||
| 1822 | + | var xVariantUnref func(uintptr) | |
| 1823 | + | ||
| 1824 | + | // Decreases the reference count of @value. When its reference count | |
| 1825 | + | // drops to 0, the memory used by the variant is freed. | |
| 1826 | + | func (x *Variant) Unref() { | |
| 1827 | + | xVariantUnref(x.GoPointer()) | |
| 1828 | + | } | |
| 1829 | + | ||
| 1830 | + | // A utility type for constructing container-type #GVariant instances. | |
| 1831 | + | // | |
| 1832 | + | // This is an opaque structure and may only be accessed using the | |
| 1833 | + | // following functions. | |
| 1834 | + | // | |
| 1835 | + | // #GVariantBuilder is not threadsafe in any way. Do not attempt to | |
| 1836 | + | // access it from more than one thread. | |
| 1837 | + | type VariantBuilder struct { | |
| 1838 | + | _ structs.HostLayout | |
| 1839 | + | } | |
| 1840 | + | ||
| 1841 | + | var xVariantBuilderGLibType func() types.GType | |
| 1842 | + | ||
| 1843 | + | func VariantBuilderGLibType() types.GType { | |
| 1844 | + | return xVariantBuilderGLibType() | |
| 1845 | + | } | |
| 1846 | + | ||
| 1847 | + | func (x *VariantBuilder) GoPointer() uintptr { | |
| 1848 | + | return uintptr(unsafe.Pointer(x)) | |
| 1849 | + | } | |
| 1850 | + | ||
| 1851 | + | func VariantBuilderNewFromInternalPtr(ptr uintptr) *VariantBuilder { | |
| 1852 | + | if ptr == 0 { | |
| 1853 | + | return nil | |
| 1854 | + | } | |
| 1855 | + | rawPtr := *(*unsafe.Pointer)(unsafe.Pointer(&ptr)) | |
| 1856 | + | return (*VariantBuilder)(rawPtr) | |
| 1857 | + | } | |
| 1858 | + | ||
| 1859 | + | var xNewVariantBuilder func(*VariantType) uintptr | |
| 1860 | + | ||
| 1861 | + | // Allocates and initialises a new #GVariantBuilder. | |
| 1862 | + | // | |
| 1863 | + | // You should call g_variant_builder_unref() on the return value when it | |
| 1864 | + | // is no longer needed. The memory will not be automatically freed by | |
| 1865 | + | // any other call. | |
| 1866 | + | // | |
| 1867 | + | // In most cases it is easier to place a #GVariantBuilder directly on | |
| 1868 | + | // the stack of the calling function and initialise it with | |
| 1869 | + | // g_variant_builder_init_static(). | |
| 1870 | + | func NewVariantBuilder(TypeVar *VariantType) *VariantBuilder { | |
| 1871 | + | cret := xNewVariantBuilder(TypeVar) | |
| 1872 | + | if cret == 0 { | |
| 1873 | + | return nil | |
| 1874 | + | } | |
| 1875 | + | return (*VariantBuilder)(unsafe.Pointer(cret)) | |
| 1876 | + | } | |
| 1877 | + | ||
| 1878 | + | var xVariantBuilderAdd func(uintptr, string, ...interface{}) | |
| 1879 | + | ||
| 1880 | + | // Adds to a #GVariantBuilder. | |
| 1881 | + | // | |
| 1882 | + | // This call is a convenience wrapper that is exactly equivalent to | |
| 1883 | + | // calling g_variant_new() followed by g_variant_builder_add_value(). | |
| 1884 | + | // | |
| 1885 | + | // Note that the arguments must be of the correct width for their types | |
| 1886 | + | // specified in @format_string. This can be achieved by casting them. See | |
| 1887 | + | // the [GVariant varargs documentation](gvariant-format-strings.html#varargs). | |
| 1888 | + | // | |
| 1889 | + | // This function might be used as follows: | |
| 1890 | + | // | |
| 1891 | + | // |[<!-- language="C" --> | |
| 1892 | + | // GVariant * | |
| 1893 | + | // make_pointless_dictionary (void) | |
| 1894 | + | // | |
| 1895 | + | // { | |
| 1896 | + | // GVariantBuilder builder; | |
| 1897 | + | // int i; | |
| 1898 | + | // | |
| 1899 | + | // g_variant_builder_init_static (&builder, G_VARIANT_TYPE_ARRAY); | |
| 1900 | + | // for (i = 0; i < 16; i++) | |
| 1901 | + | // { | |
| 1902 | + | // gchar buf[3]; | |
| 1903 | + | // | |
| 1904 | + | // sprintf (buf, "%d", i); | |
| 1905 | + | // g_variant_builder_add (&builder, "{is}", i, buf); | |
| 1906 | + | // } | |
| 1907 | + | // | |
| 1908 | + | // return g_variant_builder_end (&builder); | |
| 1909 | + | // } | |
| 1910 | + | // | |
| 1911 | + | // ]| | |
| 1912 | + | func (x *VariantBuilder) Add(FormatStringVar string, varArgs ...interface{}) { | |
| 1913 | + | xVariantBuilderAdd(x.GoPointer(), FormatStringVar, varArgs...) | |
| 1914 | + | } | |
| 1915 | + | ||
| 1916 | + | var xVariantBuilderAddParsed func(uintptr, string, ...interface{}) | |
| 1917 | + | ||
| 1918 | + | // Adds to a #GVariantBuilder. | |
| 1919 | + | // | |
| 1920 | + | // This call is a convenience wrapper that is exactly equivalent to | |
| 1921 | + | // calling g_variant_new_parsed() followed by | |
| 1922 | + | // g_variant_builder_add_value(). | |
| 1923 | + | // | |
| 1924 | + | // Note that the arguments must be of the correct width for their types | |
| 1925 | + | // specified in @format_string. This can be achieved by casting them. See | |
| 1926 | + | // the [GVariant varargs documentation](gvariant-format-strings.html#varargs). | |
| 1927 | + | // | |
| 1928 | + | // This function might be used as follows: | |
| 1929 | + | // | |
| 1930 | + | // |[<!-- language="C" --> | |
| 1931 | + | // GVariant * | |
| 1932 | + | // make_pointless_dictionary (void) | |
| 1933 | + | // | |
| 1934 | + | // { | |
| 1935 | + | // GVariantBuilder builder; | |
| 1936 | + | // int i; | |
| 1937 | + | // | |
| 1938 | + | // g_variant_builder_init_static (&builder, G_VARIANT_TYPE_ARRAY); | |
| 1939 | + | // g_variant_builder_add_parsed (&builder, "{'width', <%i>}", 600); | |
| 1940 | + | // g_variant_builder_add_parsed (&builder, "{'title', <%s>}", "foo"); | |
| 1941 | + | // g_variant_builder_add_parsed (&builder, "{'transparency', <0.5>}"); | |
| 1942 | + | // return g_variant_builder_end (&builder); | |
| 1943 | + | // } | |
| 1944 | + | // | |
| 1945 | + | // ]| | |
| 1946 | + | func (x *VariantBuilder) AddParsed(FormatVar string, varArgs ...interface{}) { | |
| 1947 | + | xVariantBuilderAddParsed(x.GoPointer(), FormatVar, varArgs...) | |
| 1948 | + | } | |
| 1949 | + | ||
| 1950 | + | var xVariantBuilderAddValue func(uintptr, *Variant) | |
| 1951 | + | ||
| 1952 | + | // Adds @value to @builder. | |
| 1953 | + | // | |
| 1954 | + | // It is an error to call this function in any way that would create an | |
| 1955 | + | // inconsistent value to be constructed. Some examples of this are | |
| 1956 | + | // putting different types of items into an array, putting the wrong | |
| 1957 | + | // types or number of items in a tuple, putting more than one value into | |
| 1958 | + | // a variant, etc. | |
| 1959 | + | // | |
| 1960 | + | // If @value is a floating reference (see g_variant_ref_sink()), | |
| 1961 | + | // the @builder instance takes ownership of @value. | |
| 1962 | + | func (x *VariantBuilder) AddValue(ValueVar *Variant) { | |
| 1963 | + | xVariantBuilderAddValue(x.GoPointer(), ValueVar) | |
| 1964 | + | } | |
| 1965 | + | ||
| 1966 | + | var xVariantBuilderClear func(uintptr) | |
| 1967 | + | ||
| 1968 | + | // Releases all memory associated with a #GVariantBuilder without | |
| 1969 | + | // freeing the #GVariantBuilder structure itself. | |
| 1970 | + | // | |
| 1971 | + | // It typically only makes sense to do this on a stack-allocated | |
| 1972 | + | // #GVariantBuilder if you want to abort building the value part-way | |
| 1973 | + | // through. This function need not be called if you call | |
| 1974 | + | // g_variant_builder_end() and it also doesn't need to be called on | |
| 1975 | + | // builders allocated with g_variant_builder_new() (see | |
| 1976 | + | // g_variant_builder_unref() for that). | |
| 1977 | + | // | |
| 1978 | + | // This function leaves the #GVariantBuilder structure set to all-zeros. | |
| 1979 | + | // It is valid to call this function on either an initialised | |
| 1980 | + | // #GVariantBuilder or one that is set to all-zeros but it is not valid | |
| 1981 | + | // to call this function on uninitialised memory. | |
| 1982 | + | func (x *VariantBuilder) Clear() { | |
| 1983 | + | xVariantBuilderClear(x.GoPointer()) | |
| 1984 | + | } | |
| 1985 | + | ||
| 1986 | + | var xVariantBuilderClose func(uintptr) | |
| 1987 | + | ||
| 1988 | + | // Closes the subcontainer inside the given @builder that was opened by | |
| 1989 | + | // the most recent call to g_variant_builder_open(). | |
| 1990 | + | // | |
| 1991 | + | // It is an error to call this function in any way that would create an | |
| 1992 | + | // inconsistent value to be constructed (ie: too few values added to the | |
| 1993 | + | // subcontainer). | |
| 1994 | + | func (x *VariantBuilder) Close() { | |
| 1995 | + | xVariantBuilderClose(x.GoPointer()) | |
| 1996 | + | } | |
| 1997 | + | ||
| 1998 | + | var xVariantBuilderEnd func(uintptr) uintptr | |
| 1999 | + | ||
| 2000 | + | // Ends the builder process and returns the constructed value. | |
| 2001 | + | // | |
| 2002 | + | // It is not permissible to use @builder in any way after this call | |
| 2003 | + | // except for reference counting operations (in the case of a | |
| 2004 | + | // heap-allocated #GVariantBuilder) or by reinitialising it with | |
| 2005 | + | // g_variant_builder_init() (in the case of stack-allocated). This | |
| 2006 | + | // means that for the stack-allocated builders there is no need to | |
| 2007 | + | // call g_variant_builder_clear() after the call to | |
| 2008 | + | // g_variant_builder_end(). | |
| 2009 | + | // | |
| 2010 | + | // It is an error to call this function in any way that would create an | |
| 2011 | + | // inconsistent value to be constructed (ie: insufficient number of | |
| 2012 | + | // items added to a container with a specific number of children | |
| 2013 | + | // required). It is also an error to call this function if the builder | |
| 2014 | + | // was created with an indefinite array or maybe type and no children | |
| 2015 | + | // have been added; in this case it is impossible to infer the type of | |
| 2016 | + | // the empty array. | |
| 2017 | + | func (x *VariantBuilder) End() *Variant { | |
| 2018 | + | cret := xVariantBuilderEnd(x.GoPointer()) | |
| 2019 | + | if cret == 0 { | |
| 2020 | + | return nil | |
| 2021 | + | } | |
| 2022 | + | return (*Variant)(unsafe.Pointer(cret)) | |
| 2023 | + | } | |
| 2024 | + | ||
| 2025 | + | var xVariantBuilderInit func(uintptr, *VariantType) | |
| 2026 | + | ||
| 2027 | + | // Initialises a #GVariantBuilder structure. | |
| 2028 | + | // | |
| 2029 | + | // @type must be non-%NULL. It specifies the type of container to | |
| 2030 | + | // construct. It can be an indefinite type such as | |
| 2031 | + | // %G_VARIANT_TYPE_ARRAY or a definite type such as "as" or "(ii)". | |
| 2032 | + | // Maybe, array, tuple, dictionary entry and variant-typed values may be | |
| 2033 | + | // constructed. | |
| 2034 | + | // | |
| 2035 | + | // If using a static type such as one of the `G_VARIANT_TYPE_*` constants | |
| 2036 | + | // or a `G_VARIANT_TYPE ("(ii)")` macro, it is more performant to use | |
| 2037 | + | // g_variant_builder_init_static() rather than g_variant_builder_init(). | |
| 2038 | + | // | |
| 2039 | + | // After the builder is initialised, values are added using | |
| 2040 | + | // g_variant_builder_add_value() or g_variant_builder_add(). | |
| 2041 | + | // | |
| 2042 | + | // After all the child values are added, g_variant_builder_end() frees | |
| 2043 | + | // the memory associated with the builder and returns the #GVariant that | |
| 2044 | + | // was created. | |
| 2045 | + | // | |
| 2046 | + | // This function completely ignores the previous contents of @builder. | |
| 2047 | + | // On one hand this means that it is valid to pass in completely | |
| 2048 | + | // uninitialised memory. On the other hand, this means that if you are | |
| 2049 | + | // initialising over top of an existing #GVariantBuilder you need to | |
| 2050 | + | // first call g_variant_builder_clear() in order to avoid leaking | |
| 2051 | + | // memory. | |
| 2052 | + | // | |
| 2053 | + | // You must not call g_variant_builder_ref() or | |
| 2054 | + | // g_variant_builder_unref() on a #GVariantBuilder that was initialised | |
| 2055 | + | // with this function. If you ever pass a reference to a | |
| 2056 | + | // #GVariantBuilder outside of the control of your own code then you | |
| 2057 | + | // should assume that the person receiving that reference may try to use | |
| 2058 | + | // reference counting; you should use g_variant_builder_new() instead of | |
| 2059 | + | // this function. | |
| 2060 | + | func (x *VariantBuilder) Init(TypeVar *VariantType) { | |
| 2061 | + | xVariantBuilderInit(x.GoPointer(), TypeVar) | |
| 2062 | + | } | |
| 2063 | + | ||
| 2064 | + | var xVariantBuilderInitStatic func(uintptr, *VariantType) | |
| 2065 | + | ||
| 2066 | + | // Initialises a #GVariantBuilder structure. | |
| 2067 | + | // | |
| 2068 | + | // This function works exactly like g_variant_builder_init() but does | |
| 2069 | + | // not make a copy of @type. Therefore, @type must remain valid for the | |
| 2070 | + | // lifetime of @builder. This is always true of type constants like | |
| 2071 | + | // `G_VARIANT_TYPE_*` or `G_VARIANT_TYPE ("(ii)")`. | |
| 2072 | + | func (x *VariantBuilder) InitStatic(TypeVar *VariantType) { | |
| 2073 | + | xVariantBuilderInitStatic(x.GoPointer(), TypeVar) | |
| 2074 | + | } | |
| 2075 | + | ||
| 2076 | + | var xVariantBuilderOpen func(uintptr, *VariantType) | |
| 2077 | + | ||
| 2078 | + | // Opens a subcontainer inside the given @builder. When done adding | |
| 2079 | + | // items to the subcontainer, g_variant_builder_close() must be called. @type | |
| 2080 | + | // is the type of the container: so to build a tuple of several values, @type | |
| 2081 | + | // must include the tuple itself. | |
| 2082 | + | // | |
| 2083 | + | // It is an error to call this function in any way that would cause an | |
| 2084 | + | // inconsistent value to be constructed (ie: adding too many values or | |
| 2085 | + | // a value of an incorrect type). | |
| 2086 | + | // | |
| 2087 | + | // Example of building a nested variant: | |
| 2088 | + | // |[<!-- language="C" --> | |
| 2089 | + | // GVariantBuilder builder; | |
| 2090 | + | // guint32 some_number = get_number (); | |
| 2091 | + | // g_autoptr (GHashTable) some_dict = get_dict (); | |
| 2092 | + | // GHashTableIter iter; | |
| 2093 | + | // const gchar *key; | |
| 2094 | + | // const GVariant *value; | |
| 2095 | + | // g_autoptr (GVariant) output = NULL; | |
| 2096 | + | // | |
| 2097 | + | // g_variant_builder_init (&builder, G_VARIANT_TYPE ("(ua{sv})")); | |
| 2098 | + | // g_variant_builder_add (&builder, "u", some_number); | |
| 2099 | + | // g_variant_builder_open (&builder, G_VARIANT_TYPE ("a{sv}")); | |
| 2100 | + | // | |
| 2101 | + | // g_hash_table_iter_init (&iter, some_dict); | |
| 2102 | + | // while (g_hash_table_iter_next (&iter, (gpointer *) &key, (gpointer *) &value)) | |
| 2103 | + | // | |
| 2104 | + | // { | |
| 2105 | + | // g_variant_builder_open (&builder, G_VARIANT_TYPE ("{sv}")); | |
| 2106 | + | // g_variant_builder_add (&builder, "s", key); | |
| 2107 | + | // g_variant_builder_add (&builder, "v", value); | |
| 2108 | + | // g_variant_builder_close (&builder); | |
| 2109 | + | // } | |
| 2110 | + | // | |
| 2111 | + | // g_variant_builder_close (&builder); | |
| 2112 | + | // | |
| 2113 | + | // output = g_variant_builder_end (&builder); | |
| 2114 | + | // ]| | |
| 2115 | + | func (x *VariantBuilder) Open(TypeVar *VariantType) { | |
| 2116 | + | xVariantBuilderOpen(x.GoPointer(), TypeVar) | |
| 2117 | + | } | |
| 2118 | + | ||
| 2119 | + | var xVariantBuilderRef func(uintptr) uintptr | |
| 2120 | + | ||
| 2121 | + | // Increases the reference count on @builder. | |
| 2122 | + | // | |
| 2123 | + | // Don't call this on stack-allocated #GVariantBuilder instances or bad | |
| 2124 | + | // things will happen. | |
| 2125 | + | func (x *VariantBuilder) Ref() *VariantBuilder { | |
| 2126 | + | cret := xVariantBuilderRef(x.GoPointer()) | |
| 2127 | + | if cret == 0 { | |
| 2128 | + | return nil | |
| 2129 | + | } | |
| 2130 | + | return (*VariantBuilder)(unsafe.Pointer(cret)) | |
| 2131 | + | } | |
| 2132 | + | ||
| 2133 | + | var xVariantBuilderUnref func(uintptr) | |
| 2134 | + | ||
| 2135 | + | // Decreases the reference count on @builder. | |
| 2136 | + | // | |
| 2137 | + | // In the event that there are no more references, releases all memory | |
| 2138 | + | // associated with the #GVariantBuilder. | |
| 2139 | + | // | |
| 2140 | + | // Don't call this on stack-allocated #GVariantBuilder instances or bad | |
| 2141 | + | // things will happen. | |
| 2142 | + | func (x *VariantBuilder) Unref() { | |
| 2143 | + | xVariantBuilderUnref(x.GoPointer()) | |
| 2144 | + | } | |
| 2145 | + | ||
| 2146 | + | // #GVariantDict is a mutable interface to #GVariant dictionaries. | |
| 2147 | + | // | |
| 2148 | + | // It can be used for doing a sequence of dictionary lookups in an | |
| 2149 | + | // efficient way on an existing #GVariant dictionary or it can be used | |
| 2150 | + | // to construct new dictionaries with a hashtable-like interface. It | |
| 2151 | + | // can also be used for taking existing dictionaries and modifying them | |
| 2152 | + | // in order to create new ones. | |
| 2153 | + | // | |
| 2154 | + | // #GVariantDict can only be used with %G_VARIANT_TYPE_VARDICT | |
| 2155 | + | // dictionaries. | |
| 2156 | + | // | |
| 2157 | + | // It is possible to use #GVariantDict allocated on the stack or on the | |
| 2158 | + | // heap. When using a stack-allocated #GVariantDict, you begin with a | |
| 2159 | + | // call to g_variant_dict_init() and free the resources with a call to | |
| 2160 | + | // g_variant_dict_clear(). | |
| 2161 | + | // | |
| 2162 | + | // Heap-allocated #GVariantDict follows normal refcounting rules: you | |
| 2163 | + | // allocate it with g_variant_dict_new() and use g_variant_dict_ref() | |
| 2164 | + | // and g_variant_dict_unref(). | |
| 2165 | + | // | |
| 2166 | + | // g_variant_dict_end() is used to convert the #GVariantDict back into a | |
| 2167 | + | // dictionary-type #GVariant. When used with stack-allocated instances, | |
| 2168 | + | // this also implicitly frees all associated memory, but for | |
| 2169 | + | // heap-allocated instances, you must still call g_variant_dict_unref() | |
| 2170 | + | // afterwards. | |
| 2171 | + | // | |
| 2172 | + | // You will typically want to use a heap-allocated #GVariantDict when | |
| 2173 | + | // you expose it as part of an API. For most other uses, the | |
| 2174 | + | // stack-allocated form will be more convenient. | |
| 2175 | + | // | |
| 2176 | + | // Consider the following two examples that do the same thing in each | |
| 2177 | + | // style: take an existing dictionary and look up the "count" uint32 | |
| 2178 | + | // key, adding 1 to it if it is found, or returning an error if the | |
| 2179 | + | // key is not found. Each returns the new dictionary as a floating | |
| 2180 | + | // #GVariant. | |
| 2181 | + | // | |
| 2182 | + | // ## Using a stack-allocated GVariantDict | |
| 2183 | + | // | |
| 2184 | + | // |[<!-- language="C" --> | |
| 2185 | + | // | |
| 2186 | + | // GVariant * | |
| 2187 | + | // add_to_count (GVariant *orig, | |
| 2188 | + | // GError **error) | |
| 2189 | + | // { | |
| 2190 | + | // GVariantDict dict; | |
| 2191 | + | // guint32 count; | |
| 2192 | + | // | |
| 2193 | + | // g_variant_dict_init (&dict, orig); | |
| 2194 | + | // if (!g_variant_dict_lookup (&dict, "count", "u", &count)) | |
| 2195 | + | // { | |
| 2196 | + | // g_set_error (...); | |
| 2197 | + | // g_variant_dict_clear (&dict); | |
| 2198 | + | // return NULL; | |
| 2199 | + | // } | |
| 2200 | + | // | |
| 2201 | + | // g_variant_dict_insert (&dict, "count", "u", count + 1); | |
| 2202 | + | // | |
| 2203 | + | // return g_variant_dict_end (&dict); | |
| 2204 | + | // } | |
| 2205 | + | // | |
| 2206 | + | // ]| | |
| 2207 | + | // | |
| 2208 | + | // ## Using heap-allocated GVariantDict | |
| 2209 | + | // | |
| 2210 | + | // |[<!-- language="C" --> | |
| 2211 | + | // | |
| 2212 | + | // GVariant * | |
| 2213 | + | // add_to_count (GVariant *orig, | |
| 2214 | + | // GError **error) | |
| 2215 | + | // { | |
| 2216 | + | // GVariantDict *dict; | |
| 2217 | + | // GVariant *result; | |
| 2218 | + | // guint32 count; | |
| 2219 | + | // | |
| 2220 | + | // dict = g_variant_dict_new (orig); | |
| 2221 | + | // | |
| 2222 | + | // if (g_variant_dict_lookup (dict, "count", "u", &count)) | |
| 2223 | + | // { | |
| 2224 | + | // g_variant_dict_insert (dict, "count", "u", count + 1); | |
| 2225 | + | // result = g_variant_dict_end (dict); | |
| 2226 | + | // } | |
| 2227 | + | // else | |
| 2228 | + | // { | |
| 2229 | + | // g_set_error (...); | |
| 2230 | + | // result = NULL; | |
| 2231 | + | // } | |
| 2232 | + | // | |
| 2233 | + | // g_variant_dict_unref (dict); | |
| 2234 | + | // | |
| 2235 | + | // return result; | |
| 2236 | + | // } | |
| 2237 | + | // | |
| 2238 | + | // ]| | |
| 2239 | + | type VariantDict struct { | |
| 2240 | + | _ structs.HostLayout | |
| 2241 | + | } | |
| 2242 | + | ||
| 2243 | + | var xVariantDictGLibType func() types.GType | |
| 2244 | + | ||
| 2245 | + | func VariantDictGLibType() types.GType { | |
| 2246 | + | return xVariantDictGLibType() | |
| 2247 | + | } | |
| 2248 | + | ||
| 2249 | + | func (x *VariantDict) GoPointer() uintptr { | |
| 2250 | + | return uintptr(unsafe.Pointer(x)) | |
| 2251 | + | } | |
| 2252 | + | ||
| 2253 | + | func VariantDictNewFromInternalPtr(ptr uintptr) *VariantDict { | |
| 2254 | + | if ptr == 0 { | |
| 2255 | + | return nil | |
| 2256 | + | } | |
| 2257 | + | rawPtr := *(*unsafe.Pointer)(unsafe.Pointer(&ptr)) | |
| 2258 | + | return (*VariantDict)(rawPtr) | |
| 2259 | + | } | |
| 2260 | + | ||
| 2261 | + | var xNewVariantDict func(*Variant) uintptr | |
| 2262 | + | ||
| 2263 | + | // Allocates and initialises a new #GVariantDict. | |
| 2264 | + | // | |
| 2265 | + | // You should call g_variant_dict_unref() on the return value when it | |
| 2266 | + | // is no longer needed. The memory will not be automatically freed by | |
| 2267 | + | // any other call. | |
| 2268 | + | // | |
| 2269 | + | // In some cases it may be easier to place a #GVariantDict directly on | |
| 2270 | + | // the stack of the calling function and initialise it with | |
| 2271 | + | // g_variant_dict_init(). This is particularly useful when you are | |
| 2272 | + | // using #GVariantDict to construct a #GVariant. | |
| 2273 | + | func NewVariantDict(FromAsvVar *Variant) *VariantDict { | |
| 2274 | + | cret := xNewVariantDict(FromAsvVar) | |
| 2275 | + | if cret == 0 { | |
| 2276 | + | return nil | |
| 2277 | + | } | |
| 2278 | + | return (*VariantDict)(unsafe.Pointer(cret)) | |
| 2279 | + | } | |
| 2280 | + | ||
| 2281 | + | var xVariantDictClear func(uintptr) | |
| 2282 | + | ||
| 2283 | + | // Releases all memory associated with a #GVariantDict without freeing | |
| 2284 | + | // the #GVariantDict structure itself. | |
| 2285 | + | // | |
| 2286 | + | // It typically only makes sense to do this on a stack-allocated | |
| 2287 | + | // #GVariantDict if you want to abort building the value part-way | |
| 2288 | + | // through. This function need not be called if you call | |
| 2289 | + | // g_variant_dict_end() and it also doesn't need to be called on dicts | |
| 2290 | + | // allocated with g_variant_dict_new (see g_variant_dict_unref() for | |
| 2291 | + | // that). | |
| 2292 | + | // | |
| 2293 | + | // It is valid to call this function on either an initialised | |
| 2294 | + | // #GVariantDict or one that was previously cleared by an earlier call | |
| 2295 | + | // to g_variant_dict_clear() but it is not valid to call this function | |
| 2296 | + | // on uninitialised memory. | |
| 2297 | + | func (x *VariantDict) Clear() { | |
| 2298 | + | xVariantDictClear(x.GoPointer()) | |
| 2299 | + | } | |
| 2300 | + | ||
| 2301 | + | var xVariantDictContains func(uintptr, string) bool | |
| 2302 | + | ||
| 2303 | + | // Checks if @key exists in @dict. | |
| 2304 | + | func (x *VariantDict) Contains(KeyVar string) bool { | |
| 2305 | + | cret := xVariantDictContains(x.GoPointer(), KeyVar) | |
| 2306 | + | return cret | |
| 2307 | + | } | |
| 2308 | + | ||
| 2309 | + | var xVariantDictEnd func(uintptr) uintptr | |
| 2310 | + | ||
| 2311 | + | // Returns the current value of @dict as a #GVariant of type | |
| 2312 | + | // %G_VARIANT_TYPE_VARDICT, clearing it in the process. | |
| 2313 | + | // | |
| 2314 | + | // It is not permissible to use @dict in any way after this call except | |
| 2315 | + | // for reference counting operations (in the case of a heap-allocated | |
| 2316 | + | // #GVariantDict) or by reinitialising it with g_variant_dict_init() (in | |
| 2317 | + | // the case of stack-allocated). | |
| 2318 | + | func (x *VariantDict) End() *Variant { | |
| 2319 | + | cret := xVariantDictEnd(x.GoPointer()) | |
| 2320 | + | if cret == 0 { | |
| 2321 | + | return nil | |
| 2322 | + | } | |
| 2323 | + | return (*Variant)(unsafe.Pointer(cret)) | |
| 2324 | + | } | |
| 2325 | + | ||
| 2326 | + | var xVariantDictInit func(uintptr, *Variant) | |
| 2327 | + | ||
| 2328 | + | // Initialises a #GVariantDict structure. | |
| 2329 | + | // | |
| 2330 | + | // If @from_asv is given, it is used to initialise the dictionary. | |
| 2331 | + | // | |
| 2332 | + | // This function completely ignores the previous contents of @dict. On | |
| 2333 | + | // one hand this means that it is valid to pass in completely | |
| 2334 | + | // uninitialised memory. On the other hand, this means that if you are | |
| 2335 | + | // initialising over top of an existing #GVariantDict you need to first | |
| 2336 | + | // call g_variant_dict_clear() in order to avoid leaking memory. | |
| 2337 | + | // | |
| 2338 | + | // You must not call g_variant_dict_ref() or g_variant_dict_unref() on a | |
| 2339 | + | // #GVariantDict that was initialised with this function. If you ever | |
| 2340 | + | // pass a reference to a #GVariantDict outside of the control of your | |
| 2341 | + | // own code then you should assume that the person receiving that | |
| 2342 | + | // reference may try to use reference counting; you should use | |
| 2343 | + | // g_variant_dict_new() instead of this function. | |
| 2344 | + | func (x *VariantDict) Init(FromAsvVar *Variant) { | |
| 2345 | + | xVariantDictInit(x.GoPointer(), FromAsvVar) | |
| 2346 | + | } | |
| 2347 | + | ||
| 2348 | + | var xVariantDictInsert func(uintptr, string, string, ...interface{}) | |
| 2349 | + | ||
| 2350 | + | // Inserts a value into a #GVariantDict. | |
| 2351 | + | // | |
| 2352 | + | // This call is a convenience wrapper that is exactly equivalent to | |
| 2353 | + | // calling g_variant_new() followed by g_variant_dict_insert_value(). | |
| 2354 | + | func (x *VariantDict) Insert(KeyVar string, FormatStringVar string, varArgs ...interface{}) { | |
| 2355 | + | xVariantDictInsert(x.GoPointer(), KeyVar, FormatStringVar, varArgs...) | |
| 2356 | + | } | |
| 2357 | + | ||
| 2358 | + | var xVariantDictInsertValue func(uintptr, string, *Variant) | |
| 2359 | + | ||
| 2360 | + | // Inserts (or replaces) a key in a #GVariantDict. | |
| 2361 | + | // | |
| 2362 | + | // @value is consumed if it is floating. | |
| 2363 | + | func (x *VariantDict) InsertValue(KeyVar string, ValueVar *Variant) { | |
| 2364 | + | xVariantDictInsertValue(x.GoPointer(), KeyVar, ValueVar) | |
| 2365 | + | } | |
| 2366 | + | ||
| 2367 | + | var xVariantDictLookup func(uintptr, string, string, ...interface{}) bool | |
| 2368 | + | ||
| 2369 | + | // Looks up a value in a #GVariantDict. | |
| 2370 | + | // | |
| 2371 | + | // This function is a wrapper around g_variant_dict_lookup_value() and | |
| 2372 | + | // g_variant_get(). In the case that %NULL would have been returned, | |
| 2373 | + | // this function returns %FALSE and does not modify the values of the arguments | |
| 2374 | + | // passed in to @.... Otherwise, it unpacks the returned | |
| 2375 | + | // value and returns %TRUE. | |
| 2376 | + | // | |
| 2377 | + | // @format_string determines the C types that are used for unpacking the | |
| 2378 | + | // values and also determines if the values are copied or borrowed, see the | |
| 2379 | + | // section on [`GVariant` format strings](gvariant-format-strings.html#pointers). | |
| 2380 | + | func (x *VariantDict) Lookup(KeyVar string, FormatStringVar string, varArgs ...interface{}) bool { | |
| 2381 | + | cret := xVariantDictLookup(x.GoPointer(), KeyVar, FormatStringVar, varArgs...) | |
| 2382 | + | return cret | |
| 2383 | + | } | |
| 2384 | + | ||
| 2385 | + | var xVariantDictLookupValue func(uintptr, string, *VariantType) uintptr | |
| 2386 | + | ||
| 2387 | + | // Looks up a value in a #GVariantDict. | |
| 2388 | + | // | |
| 2389 | + | // If @key is not found in @dictionary, %NULL is returned. | |
| 2390 | + | // | |
| 2391 | + | // The @expected_type string specifies what type of value is expected. | |
| 2392 | + | // If the value associated with @key has a different type then %NULL is | |
| 2393 | + | // returned. | |
| 2394 | + | // | |
| 2395 | + | // If the key is found and the value has the correct type, it is | |
| 2396 | + | // returned. If @expected_type was specified then any non-%NULL return | |
| 2397 | + | // value will have this type. | |
| 2398 | + | func (x *VariantDict) LookupValue(KeyVar string, ExpectedTypeVar *VariantType) *Variant { | |
| 2399 | + | cret := xVariantDictLookupValue(x.GoPointer(), KeyVar, ExpectedTypeVar) | |
| 2400 | + | if cret == 0 { | |
| 2401 | + | return nil | |
| 2402 | + | } | |
| 2403 | + | return (*Variant)(unsafe.Pointer(cret)) | |
| 2404 | + | } | |
| 2405 | + | ||
| 2406 | + | var xVariantDictRef func(uintptr) uintptr | |
| 2407 | + | ||
| 2408 | + | // Increases the reference count on @dict. | |
| 2409 | + | // | |
| 2410 | + | // Don't call this on stack-allocated #GVariantDict instances or bad | |
| 2411 | + | // things will happen. | |
| 2412 | + | func (x *VariantDict) Ref() *VariantDict { | |
| 2413 | + | cret := xVariantDictRef(x.GoPointer()) | |
| 2414 | + | if cret == 0 { | |
| 2415 | + | return nil | |
| 2416 | + | } | |
| 2417 | + | return (*VariantDict)(unsafe.Pointer(cret)) | |
| 2418 | + | } | |
| 2419 | + | ||
| 2420 | + | var xVariantDictRemove func(uintptr, string) bool | |
| 2421 | + | ||
| 2422 | + | // Removes a key and its associated value from a #GVariantDict. | |
| 2423 | + | func (x *VariantDict) Remove(KeyVar string) bool { | |
| 2424 | + | cret := xVariantDictRemove(x.GoPointer(), KeyVar) | |
| 2425 | + | return cret | |
| 2426 | + | } | |
| 2427 | + | ||
| 2428 | + | var xVariantDictUnref func(uintptr) | |
| 2429 | + | ||
| 2430 | + | // Decreases the reference count on @dict. | |
| 2431 | + | // | |
| 2432 | + | // In the event that there are no more references, releases all memory | |
| 2433 | + | // associated with the #GVariantDict. | |
| 2434 | + | // | |
| 2435 | + | // Don't call this on stack-allocated #GVariantDict instances or bad | |
| 2436 | + | // things will happen. | |
| 2437 | + | func (x *VariantDict) Unref() { | |
| 2438 | + | xVariantDictUnref(x.GoPointer()) | |
| 2439 | + | } | |
| 2440 | + | ||
| 2441 | + | // #GVariantIter is an opaque data structure and can only be accessed | |
| 2442 | + | // using the following functions. | |
| 2443 | + | type VariantIter struct { | |
| 2444 | + | _ structs.HostLayout | |
| 2445 | + | ||
| 2446 | + | X [16]uintptr | |
| 2447 | + | } | |
| 2448 | + | ||
| 2449 | + | func (x *VariantIter) GoPointer() uintptr { | |
| 2450 | + | return uintptr(unsafe.Pointer(x)) | |
| 2451 | + | } | |
| 2452 | + | ||
| 2453 | + | func VariantIterNewFromInternalPtr(ptr uintptr) *VariantIter { | |
| 2454 | + | if ptr == 0 { | |
| 2455 | + | return nil | |
| 2456 | + | } | |
| 2457 | + | rawPtr := *(*unsafe.Pointer)(unsafe.Pointer(&ptr)) | |
| 2458 | + | return (*VariantIter)(rawPtr) | |
| 2459 | + | } | |
| 2460 | + | ||
| 2461 | + | var xVariantIterCopy func(uintptr) uintptr | |
| 2462 | + | ||
| 2463 | + | // Creates a new heap-allocated #GVariantIter to iterate over the | |
| 2464 | + | // container that was being iterated over by @iter. Iteration begins on | |
| 2465 | + | // the new iterator from the current position of the old iterator but | |
| 2466 | + | // the two copies are independent past that point. | |
| 2467 | + | // | |
| 2468 | + | // Use g_variant_iter_free() to free the return value when you no longer | |
| 2469 | + | // need it. | |
| 2470 | + | // | |
| 2471 | + | // A reference is taken to the container that @iter is iterating over | |
| 2472 | + | // and will be related only when g_variant_iter_free() is called. | |
| 2473 | + | func (x *VariantIter) Copy() *VariantIter { | |
| 2474 | + | cret := xVariantIterCopy(x.GoPointer()) | |
| 2475 | + | if cret == 0 { | |
| 2476 | + | return nil | |
| 2477 | + | } | |
| 2478 | + | return (*VariantIter)(unsafe.Pointer(cret)) | |
| 2479 | + | } | |
| 2480 | + | ||
| 2481 | + | var xVariantIterFree func(uintptr) | |
| 2482 | + | ||
| 2483 | + | // Frees a heap-allocated #GVariantIter. Only call this function on | |
| 2484 | + | // iterators that were returned by g_variant_iter_new() or | |
| 2485 | + | // g_variant_iter_copy(). | |
| 2486 | + | func (x *VariantIter) Free() { | |
| 2487 | + | xVariantIterFree(x.GoPointer()) | |
| 2488 | + | } | |
| 2489 | + | ||
| 2490 | + | var xVariantIterInit func(uintptr, *Variant) uint | |
| 2491 | + | ||
| 2492 | + | // Initialises (without allocating) a #GVariantIter. @iter may be | |
| 2493 | + | // completely uninitialised prior to this call; its old value is | |
| 2494 | + | // ignored. | |
| 2495 | + | // | |
| 2496 | + | // The iterator remains valid for as long as @value exists, and need not | |
| 2497 | + | // be freed in any way. | |
| 2498 | + | func (x *VariantIter) Init(ValueVar *Variant) uint { | |
| 2499 | + | cret := xVariantIterInit(x.GoPointer(), ValueVar) | |
| 2500 | + | return cret | |
| 2501 | + | } | |
| 2502 | + | ||
| 2503 | + | var xVariantIterLoop func(uintptr, string, ...interface{}) bool | |
| 2504 | + | ||
| 2505 | + | // Gets the next item in the container and unpacks it into the variable | |
| 2506 | + | // argument list according to @format_string, returning %TRUE. | |
| 2507 | + | // | |
| 2508 | + | // If no more items remain then %FALSE is returned. | |
| 2509 | + | // | |
| 2510 | + | // On the first call to this function, the pointers appearing on the | |
| 2511 | + | // variable argument list are assumed to point at uninitialised memory. | |
| 2512 | + | // On the second and later calls, it is assumed that the same pointers | |
| 2513 | + | // will be given and that they will point to the memory as set by the | |
| 2514 | + | // previous call to this function. This allows the previous values to | |
| 2515 | + | // be freed, as appropriate. | |
| 2516 | + | // | |
| 2517 | + | // This function is intended to be used with a while loop as | |
| 2518 | + | // demonstrated in the following example. This function can only be | |
| 2519 | + | // used when iterating over an array. It is only valid to call this | |
| 2520 | + | // function with a string constant for the format string and the same | |
| 2521 | + | // string constant must be used each time. Mixing calls to this | |
| 2522 | + | // function and g_variant_iter_next() or g_variant_iter_next_value() on | |
| 2523 | + | // the same iterator causes undefined behavior. | |
| 2524 | + | // | |
| 2525 | + | // If you break out of a such a while loop using g_variant_iter_loop() then | |
| 2526 | + | // you must free or unreference all the unpacked values as you would with | |
| 2527 | + | // g_variant_get(). Failure to do so will cause a memory leak. | |
| 2528 | + | // | |
| 2529 | + | // Here is an example for memory management with g_variant_iter_loop(): | |
| 2530 | + | // |[<!-- language="C" --> | |
| 2531 | + | // | |
| 2532 | + | // // Iterates a dictionary of type 'a{sv}' | |
| 2533 | + | // void | |
| 2534 | + | // iterate_dictionary (GVariant *dictionary) | |
| 2535 | + | // { | |
| 2536 | + | // GVariantIter iter; | |
| 2537 | + | // GVariant *value; | |
| 2538 | + | // gchar *key; | |
| 2539 | + | // | |
| 2540 | + | // g_variant_iter_init (&iter, dictionary); | |
| 2541 | + | // while (g_variant_iter_loop (&iter, "{sv}", &key, &value)) | |
| 2542 | + | // { | |
| 2543 | + | // g_print ("Item '%s' has type '%s'\n", key, | |
| 2544 | + | // g_variant_get_type_string (value)); | |
| 2545 | + | // | |
| 2546 | + | // // no need to free 'key' and 'value' here | |
| 2547 | + | // // unless breaking out of this loop | |
| 2548 | + | // } | |
| 2549 | + | // } | |
| 2550 | + | // | |
| 2551 | + | // ]| | |
| 2552 | + | // | |
| 2553 | + | // For most cases you should use g_variant_iter_next(). | |
| 2554 | + | // | |
| 2555 | + | // This function is really only useful when unpacking into #GVariant or | |
| 2556 | + | // #GVariantIter in order to allow you to skip the call to | |
| 2557 | + | // g_variant_unref() or g_variant_iter_free(). | |
| 2558 | + | // | |
| 2559 | + | // For example, if you are only looping over simple integer and string | |
| 2560 | + | // types, g_variant_iter_next() is definitely preferred. For string | |
| 2561 | + | // types, use the '&' prefix to avoid allocating any memory at all (and | |
| 2562 | + | // thereby avoiding the need to free anything as well). | |
| 2563 | + | // | |
| 2564 | + | // @format_string determines the C types that are used for unpacking | |
| 2565 | + | // the values and also determines if the values are copied or borrowed. | |
| 2566 | + | // | |
| 2567 | + | // See the section on | |
| 2568 | + | // [`GVariant` format strings](gvariant-format-strings.html#pointers). | |
| 2569 | + | func (x *VariantIter) Loop(FormatStringVar string, varArgs ...interface{}) bool { | |
| 2570 | + | cret := xVariantIterLoop(x.GoPointer(), FormatStringVar, varArgs...) | |
| 2571 | + | return cret | |
| 2572 | + | } | |
| 2573 | + | ||
| 2574 | + | var xVariantIterNChildren func(uintptr) uint | |
| 2575 | + | ||
| 2576 | + | // Queries the number of child items in the container that we are | |
| 2577 | + | // iterating over. This is the total number of items -- not the number | |
| 2578 | + | // of items remaining. | |
| 2579 | + | // | |
| 2580 | + | // This function might be useful for preallocation of arrays. | |
| 2581 | + | func (x *VariantIter) NChildren() uint { | |
| 2582 | + | cret := xVariantIterNChildren(x.GoPointer()) | |
| 2583 | + | return cret | |
| 2584 | + | } | |
| 2585 | + | ||
| 2586 | + | var xVariantIterNext func(uintptr, string, ...interface{}) bool | |
| 2587 | + | ||
| 2588 | + | // Gets the next item in the container and unpacks it into the variable | |
| 2589 | + | // argument list according to @format_string, returning %TRUE. | |
| 2590 | + | // | |
| 2591 | + | // If no more items remain then %FALSE is returned. | |
| 2592 | + | // | |
| 2593 | + | // All of the pointers given on the variable arguments list of this | |
| 2594 | + | // function are assumed to point at uninitialised memory. It is the | |
| 2595 | + | // responsibility of the caller to free all of the values returned by | |
| 2596 | + | // the unpacking process. | |
| 2597 | + | // | |
| 2598 | + | // Here is an example for memory management with g_variant_iter_next(): | |
| 2599 | + | // |[<!-- language="C" --> | |
| 2600 | + | // | |
| 2601 | + | // // Iterates a dictionary of type 'a{sv}' | |
| 2602 | + | // void | |
| 2603 | + | // iterate_dictionary (GVariant *dictionary) | |
| 2604 | + | // { | |
| 2605 | + | // GVariantIter iter; | |
| 2606 | + | // GVariant *value; | |
| 2607 | + | // gchar *key; | |
| 2608 | + | // | |
| 2609 | + | // g_variant_iter_init (&iter, dictionary); | |
| 2610 | + | // while (g_variant_iter_next (&iter, "{sv}", &key, &value)) | |
| 2611 | + | // { | |
| 2612 | + | // g_print ("Item '%s' has type '%s'\n", key, | |
| 2613 | + | // g_variant_get_type_string (value)); | |
| 2614 | + | // | |
| 2615 | + | // // must free data for ourselves | |
| 2616 | + | // g_variant_unref (value); | |
| 2617 | + | // g_free (key); | |
| 2618 | + | // } | |
| 2619 | + | // } | |
| 2620 | + | // | |
| 2621 | + | // ]| | |
| 2622 | + | // | |
| 2623 | + | // For a solution that is likely to be more convenient to C programmers | |
| 2624 | + | // when dealing with loops, see g_variant_iter_loop(). | |
| 2625 | + | // | |
| 2626 | + | // @format_string determines the C types that are used for unpacking | |
| 2627 | + | // the values and also determines if the values are copied or borrowed. | |
| 2628 | + | // | |
| 2629 | + | // See the section on | |
| 2630 | + | // [`GVariant` format strings](gvariant-format-strings.html#pointers). | |
| 2631 | + | func (x *VariantIter) Next(FormatStringVar string, varArgs ...interface{}) bool { | |
| 2632 | + | cret := xVariantIterNext(x.GoPointer(), FormatStringVar, varArgs...) | |
| 2633 | + | return cret | |
| 2634 | + | } | |
| 2635 | + | ||
| 2636 | + | var xVariantIterNextValue func(uintptr) uintptr | |
| 2637 | + | ||
| 2638 | + | // Gets the next item in the container. If no more items remain then | |
| 2639 | + | // %NULL is returned. | |
| 2640 | + | // | |
| 2641 | + | // Use g_variant_unref() to drop your reference on the return value when | |
| 2642 | + | // you no longer need it. | |
| 2643 | + | // | |
| 2644 | + | // Here is an example for iterating with g_variant_iter_next_value(): | |
| 2645 | + | // |[<!-- language="C" --> | |
| 2646 | + | // | |
| 2647 | + | // // recursively iterate a container | |
| 2648 | + | // void | |
| 2649 | + | // iterate_container_recursive (GVariant *container) | |
| 2650 | + | // { | |
| 2651 | + | // GVariantIter iter; | |
| 2652 | + | // GVariant *child; | |
| 2653 | + | // | |
| 2654 | + | // g_variant_iter_init (&iter, container); | |
| 2655 | + | // while ((child = g_variant_iter_next_value (&iter))) | |
| 2656 | + | // { | |
| 2657 | + | // g_print ("type '%s'\n", g_variant_get_type_string (child)); | |
| 2658 | + | // | |
| 2659 | + | // if (g_variant_is_container (child)) | |
| 2660 | + | // iterate_container_recursive (child); | |
| 2661 | + | // | |
| 2662 | + | // g_variant_unref (child); | |
| 2663 | + | // } | |
| 2664 | + | // } | |
| 2665 | + | // | |
| 2666 | + | // ]| | |
| 2667 | + | func (x *VariantIter) NextValue() *Variant { | |
| 2668 | + | cret := xVariantIterNextValue(x.GoPointer()) | |
| 2669 | + | if cret == 0 { | |
| 2670 | + | return nil | |
| 2671 | + | } | |
| 2672 | + | return (*Variant)(unsafe.Pointer(cret)) | |
| 2673 | + | } | |
| 2674 | + | ||
| 2675 | + | // The range of possible top-level types of #GVariant instances. | |
| 2676 | + | type VariantClass int | |
| 2677 | + | ||
| 2678 | + | const ( | |
| 2679 | + | ||
| 2680 | + | // The #GVariant is a boolean. | |
| 2681 | + | GVariantClassBooleanValue VariantClass = 98 | |
| 2682 | + | // The #GVariant is a byte. | |
| 2683 | + | GVariantClassByteValue VariantClass = 121 | |
| 2684 | + | // The #GVariant is a signed 16 bit integer. | |
| 2685 | + | GVariantClassInt16Value VariantClass = 110 | |
| 2686 | + | // The #GVariant is an unsigned 16 bit integer. | |
| 2687 | + | GVariantClassUint16Value VariantClass = 113 | |
| 2688 | + | // The #GVariant is a signed 32 bit integer. | |
| 2689 | + | GVariantClassInt32Value VariantClass = 105 | |
| 2690 | + | // The #GVariant is an unsigned 32 bit integer. | |
| 2691 | + | GVariantClassUint32Value VariantClass = 117 | |
| 2692 | + | // The #GVariant is a signed 64 bit integer. | |
| 2693 | + | GVariantClassInt64Value VariantClass = 120 | |
| 2694 | + | // The #GVariant is an unsigned 64 bit integer. | |
| 2695 | + | GVariantClassUint64Value VariantClass = 116 | |
| 2696 | + | // The #GVariant is a file handle index. | |
| 2697 | + | GVariantClassHandleValue VariantClass = 104 | |
| 2698 | + | // The #GVariant is a double precision floating | |
| 2699 | + | // point value. | |
| 2700 | + | GVariantClassDoubleValue VariantClass = 100 | |
| 2701 | + | // The #GVariant is a normal string. | |
| 2702 | + | GVariantClassStringValue VariantClass = 115 | |
| 2703 | + | // The #GVariant is a D-Bus object path | |
| 2704 | + | // string. | |
| 2705 | + | GVariantClassObjectPathValue VariantClass = 111 | |
| 2706 | + | // The #GVariant is a D-Bus signature string. | |
| 2707 | + | GVariantClassSignatureValue VariantClass = 103 | |
| 2708 | + | // The #GVariant is a variant. | |
| 2709 | + | GVariantClassVariantValue VariantClass = 118 | |
| 2710 | + | // The #GVariant is a maybe-typed value. | |
| 2711 | + | GVariantClassMaybeValue VariantClass = 109 | |
| 2712 | + | // The #GVariant is an array. | |
| 2713 | + | GVariantClassArrayValue VariantClass = 97 | |
| 2714 | + | // The #GVariant is a tuple. | |
| 2715 | + | GVariantClassTupleValue VariantClass = 40 | |
| 2716 | + | // The #GVariant is a dictionary entry. | |
| 2717 | + | GVariantClassDictEntryValue VariantClass = 123 | |
| 2718 | + | ) | |
| 2719 | + | ||
| 2720 | + | // Error codes returned by parsing text-format GVariants. | |
| 2721 | + | type VariantParseError int | |
| 2722 | + | ||
| 2723 | + | const ( | |
| 2724 | + | ||
| 2725 | + | // generic error (unused) | |
| 2726 | + | GVariantParseErrorFailedValue VariantParseError = 0 | |
| 2727 | + | // a non-basic #GVariantType was given where a basic type was expected | |
| 2728 | + | GVariantParseErrorBasicTypeExpectedValue VariantParseError = 1 | |
| 2729 | + | // cannot infer the #GVariantType | |
| 2730 | + | GVariantParseErrorCannotInferTypeValue VariantParseError = 2 | |
| 2731 | + | // an indefinite #GVariantType was given where a definite type was expected | |
| 2732 | + | GVariantParseErrorDefiniteTypeExpectedValue VariantParseError = 3 | |
| 2733 | + | // extra data after parsing finished | |
| 2734 | + | GVariantParseErrorInputNotAtEndValue VariantParseError = 4 | |
| 2735 | + | // invalid character in number or unicode escape | |
| 2736 | + | GVariantParseErrorInvalidCharacterValue VariantParseError = 5 | |
| 2737 | + | // not a valid #GVariant format string | |
| 2738 | + | GVariantParseErrorInvalidFormatStringValue VariantParseError = 6 | |
| 2739 | + | // not a valid object path | |
| 2740 | + | GVariantParseErrorInvalidObjectPathValue VariantParseError = 7 | |
| 2741 | + | // not a valid type signature | |
| 2742 | + | GVariantParseErrorInvalidSignatureValue VariantParseError = 8 | |
| 2743 | + | // not a valid #GVariant type string | |
| 2744 | + | GVariantParseErrorInvalidTypeStringValue VariantParseError = 9 | |
| 2745 | + | // could not find a common type for array entries | |
| 2746 | + | GVariantParseErrorNoCommonTypeValue VariantParseError = 10 | |
| 2747 | + | // the numerical value is out of range of the given type | |
| 2748 | + | GVariantParseErrorNumberOutOfRangeValue VariantParseError = 11 | |
| 2749 | + | // the numerical value is out of range for any type | |
| 2750 | + | GVariantParseErrorNumberTooBigValue VariantParseError = 12 | |
| 2751 | + | // cannot parse as variant of the specified type | |
| 2752 | + | GVariantParseErrorTypeErrorValue VariantParseError = 13 | |
| 2753 | + | // an unexpected token was encountered | |
| 2754 | + | GVariantParseErrorUnexpectedTokenValue VariantParseError = 14 | |
| 2755 | + | // an unknown keyword was encountered | |
| 2756 | + | GVariantParseErrorUnknownKeywordValue VariantParseError = 15 | |
| 2757 | + | // unterminated string constant | |
| 2758 | + | GVariantParseErrorUnterminatedStringConstantValue VariantParseError = 16 | |
| 2759 | + | // no value given | |
| 2760 | + | GVariantParseErrorValueExpectedValue VariantParseError = 17 | |
| 2761 | + | // variant was too deeply nested; #GVariant is only guaranteed to handle nesting up to 64 levels (Since: 2.64) | |
| 2762 | + | GVariantParseErrorRecursionValue VariantParseError = 18 | |
| 2763 | + | ) | |
| 2764 | + | ||
| 2765 | + | var xVariantIsObjectPath func(string) bool | |
| 2766 | + | ||
| 2767 | + | // Determines if a given string is a valid D-Bus object path. You | |
| 2768 | + | // should ensure that a string is a valid D-Bus object path before | |
| 2769 | + | // passing it to g_variant_new_object_path(). | |
| 2770 | + | // | |
| 2771 | + | // A valid object path starts with `/` followed by zero or more | |
| 2772 | + | // sequences of characters separated by `/` characters. Each sequence | |
| 2773 | + | // must contain only the characters `[A-Z][a-z][0-9]_`. No sequence | |
| 2774 | + | // (including the one following the final `/` character) may be empty. | |
| 2775 | + | func VariantIsObjectPath(StringVar string) bool { | |
| 2776 | + | cret := xVariantIsObjectPath(StringVar) | |
| 2777 | + | return cret | |
| 2778 | + | } | |
| 2779 | + | ||
| 2780 | + | var xVariantIsSignature func(string) bool | |
| 2781 | + | ||
| 2782 | + | // Determines if a given string is a valid D-Bus type signature. You | |
| 2783 | + | // should ensure that a string is a valid D-Bus type signature before | |
| 2784 | + | // passing it to g_variant_new_signature(). | |
| 2785 | + | // | |
| 2786 | + | // D-Bus type signatures consist of zero or more definite #GVariantType | |
| 2787 | + | // strings in sequence. | |
| 2788 | + | func VariantIsSignature(StringVar string) bool { | |
| 2789 | + | cret := xVariantIsSignature(StringVar) | |
| 2790 | + | return cret | |
| 2791 | + | } | |
| 2792 | + | ||
| 2793 | + | var xVariantParse func(*VariantType, string, uintptr, uintptr, **Error) uintptr | |
| 2794 | + | ||
| 2795 | + | // Parses a #GVariant from a text representation. | |
| 2796 | + | // | |
| 2797 | + | // A single #GVariant is parsed from the content of @text. | |
| 2798 | + | // | |
| 2799 | + | // The format is described [here](gvariant-text-format.html). | |
| 2800 | + | // | |
| 2801 | + | // The memory at @limit will never be accessed and the parser behaves as | |
| 2802 | + | // if the character at @limit is the nul terminator. This has the | |
| 2803 | + | // effect of bounding @text. | |
| 2804 | + | // | |
| 2805 | + | // If @endptr is non-%NULL then @text is permitted to contain data | |
| 2806 | + | // following the value that this function parses and @endptr will be | |
| 2807 | + | // updated to point to the first character past the end of the text | |
| 2808 | + | // parsed by this function. If @endptr is %NULL and there is extra data | |
| 2809 | + | // then an error is returned. | |
| 2810 | + | // | |
| 2811 | + | // If @type is non-%NULL then the value will be parsed to have that | |
| 2812 | + | // type. This may result in additional parse errors (in the case that | |
| 2813 | + | // the parsed value doesn't fit the type) but may also result in fewer | |
| 2814 | + | // errors (in the case that the type would have been ambiguous, such as | |
| 2815 | + | // with empty arrays). | |
| 2816 | + | // | |
| 2817 | + | // In the event that the parsing is successful, the resulting #GVariant | |
| 2818 | + | // is returned. It is never floating, and must be freed with | |
| 2819 | + | // [method@GLib.Variant.unref]. | |
| 2820 | + | // | |
| 2821 | + | // In case of any error, %NULL will be returned. If @error is non-%NULL | |
| 2822 | + | // then it will be set to reflect the error that occurred. | |
| 2823 | + | // | |
| 2824 | + | // Officially, the language understood by the parser is “any string | |
| 2825 | + | // produced by [method@GLib.Variant.print]”. This explicitly includes | |
| 2826 | + | // `g_variant_print()`’s annotated types like `int64 -1000`. | |
| 2827 | + | // | |
| 2828 | + | // There may be implementation specific restrictions on deeply nested values, | |
| 2829 | + | // which would result in a %G_VARIANT_PARSE_ERROR_RECURSION error. #GVariant is | |
| 2830 | + | // guaranteed to handle nesting up to at least 64 levels. | |
| 2831 | + | func VariantParse(TypeVar *VariantType, TextVar string, LimitVar *string, EndptrVar *string) (*Variant, error) { | |
| 2832 | + | var cerr *Error | |
| 2833 | + | ||
| 2834 | + | LimitVarPtr := core.GStrdupNullable(LimitVar) | |
| 2835 | + | defer core.GFreeNullable(LimitVarPtr) | |
| 2836 | + | ||
| 2837 | + | EndptrVarPtr := core.GStrdupNullable(EndptrVar) | |
| 2838 | + | defer core.GFreeNullable(EndptrVarPtr) | |
| 2839 | + | ||
| 2840 | + | cret := xVariantParse(TypeVar, TextVar, LimitVarPtr, EndptrVarPtr, &cerr) | |
| 2841 | + | if cerr != nil { | |
| 2842 | + | return nil, cerr | |
| 2843 | + | } | |
| 2844 | + | if cret == 0 { | |
| 2845 | + | return nil, nil | |
| 2846 | + | } | |
| 2847 | + | return (*Variant)(unsafe.Pointer(cret)), nil | |
| 2848 | + | } | |
| 2849 | + | ||
| 2850 | + | var xVariantParseErrorPrintContext func(*Error, string) string | |
| 2851 | + | ||
| 2852 | + | // Pretty-prints a message showing the context of a #GVariant parse | |
| 2853 | + | // error within the string for which parsing was attempted. | |
| 2854 | + | // | |
| 2855 | + | // The resulting string is suitable for output to the console or other | |
| 2856 | + | // monospace media where newlines are treated in the usual way. | |
| 2857 | + | // | |
| 2858 | + | // The message will typically look something like one of the following: | |
| 2859 | + | // | |
| 2860 | + | // |[ | |
| 2861 | + | // unterminated string constant: | |
| 2862 | + | // | |
| 2863 | + | // (1, 2, 3, 'abc | |
| 2864 | + | // ^^^^ | |
| 2865 | + | // | |
| 2866 | + | // ]| | |
| 2867 | + | // | |
| 2868 | + | // or | |
| 2869 | + | // | |
| 2870 | + | // |[ | |
| 2871 | + | // unable to find a common type: | |
| 2872 | + | // | |
| 2873 | + | // [1, 2, 3, 'str'] | |
| 2874 | + | // ^ ^^^^^ | |
| 2875 | + | // | |
| 2876 | + | // ]| | |
| 2877 | + | // | |
| 2878 | + | // The format of the message may change in a future version. | |
| 2879 | + | // | |
| 2880 | + | // @error must have come from a failed attempt to g_variant_parse() and | |
| 2881 | + | // @source_str must be exactly the same string that caused the error. | |
| 2882 | + | // If @source_str was not nul-terminated when you passed it to | |
| 2883 | + | // g_variant_parse() then you must add nul termination before using this | |
| 2884 | + | // function. | |
| 2885 | + | func VariantParseErrorPrintContext(ErrorVar *Error, SourceStrVar string) string { | |
| 2886 | + | cret := xVariantParseErrorPrintContext(ErrorVar, SourceStrVar) | |
| 2887 | + | return cret | |
| 2888 | + | } | |
| 2889 | + | ||
| 2890 | + | func init() { | |
| 2891 | + | core.SetPackageName("GLIB", "glib-2.0") | |
| 2892 | + | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | |
| 2893 | + | var libs []uintptr | |
| 2894 | + | for _, libPath := range core.GetPaths("GLIB") { | |
| 2895 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 2896 | + | if err != nil { | |
| 2897 | + | panic(err) | |
| 2898 | + | } | |
| 2899 | + | libs = append(libs, lib) | |
| 2900 | + | } | |
| 2901 | + | ||
| 2902 | + | core.PuregoSafeRegister(&xVariantIsObjectPath, libs, "g_variant_is_object_path") | |
| 2903 | + | core.PuregoSafeRegister(&xVariantIsSignature, libs, "g_variant_is_signature") | |
| 2904 | + | core.PuregoSafeRegister(&xVariantParse, libs, "g_variant_parse") | |
| 2905 | + | core.PuregoSafeRegister(&xVariantParseErrorPrintContext, libs, "g_variant_parse_error_print_context") | |
| 2906 | + | ||
| 2907 | + | core.PuregoSafeRegister(&xVariantGLibType, libs, "intern") | |
| 2908 | + | ||
| 2909 | + | core.PuregoSafeRegister(&xNewVariant, libs, "g_variant_new") | |
| 2910 | + | core.PuregoSafeRegister(&xNewVariantArray, libs, "g_variant_new_array") | |
| 2911 | + | core.PuregoSafeRegister(&xNewVariantBoolean, libs, "g_variant_new_boolean") | |
| 2912 | + | core.PuregoSafeRegister(&xNewVariantByte, libs, "g_variant_new_byte") | |
| 2913 | + | core.PuregoSafeRegister(&xNewVariantBytestring, libs, "g_variant_new_bytestring") | |
| 2914 | + | core.PuregoSafeRegister(&xNewVariantBytestringArray, libs, "g_variant_new_bytestring_array") | |
| 2915 | + | core.PuregoSafeRegister(&xNewVariantDictEntry, libs, "g_variant_new_dict_entry") | |
| 2916 | + | core.PuregoSafeRegister(&xNewVariantDouble, libs, "g_variant_new_double") | |
| 2917 | + | core.PuregoSafeRegister(&xNewVariantFixedArray, libs, "g_variant_new_fixed_array") | |
| 2918 | + | core.PuregoSafeRegister(&xNewVariantFromBytes, libs, "g_variant_new_from_bytes") | |
| 2919 | + | core.PuregoSafeRegister(&xNewVariantFromData, libs, "g_variant_new_from_data") | |
| 2920 | + | core.PuregoSafeRegister(&xNewVariantHandle, libs, "g_variant_new_handle") | |
| 2921 | + | core.PuregoSafeRegister(&xNewVariantInt16, libs, "g_variant_new_int16") | |
| 2922 | + | core.PuregoSafeRegister(&xNewVariantInt32, libs, "g_variant_new_int32") | |
| 2923 | + | core.PuregoSafeRegister(&xNewVariantInt64, libs, "g_variant_new_int64") | |
| 2924 | + | core.PuregoSafeRegister(&xNewVariantMaybe, libs, "g_variant_new_maybe") | |
| 2925 | + | core.PuregoSafeRegister(&xNewVariantObjectPath, libs, "g_variant_new_object_path") | |
| 2926 | + | core.PuregoSafeRegister(&xNewVariantObjv, libs, "g_variant_new_objv") | |
| 2927 | + | core.PuregoSafeRegister(&xNewVariantParsed, libs, "g_variant_new_parsed") | |
| 2928 | + | core.PuregoSafeRegister(&xNewVariantParsedVa, libs, "g_variant_new_parsed_va") | |
| 2929 | + | core.PuregoSafeRegister(&xNewVariantPrintf, libs, "g_variant_new_printf") | |
| 2930 | + | core.PuregoSafeRegister(&xNewVariantSignature, libs, "g_variant_new_signature") | |
| 2931 | + | core.PuregoSafeRegister(&xNewVariantString, libs, "g_variant_new_string") | |
| 2932 | + | core.PuregoSafeRegister(&xNewVariantStrv, libs, "g_variant_new_strv") | |
| 2933 | + | core.PuregoSafeRegister(&xNewVariantTakeString, libs, "g_variant_new_take_string") | |
| 2934 | + | core.PuregoSafeRegister(&xNewVariantTuple, libs, "g_variant_new_tuple") | |
| 2935 | + | core.PuregoSafeRegister(&xNewVariantUint16, libs, "g_variant_new_uint16") | |
| 2936 | + | core.PuregoSafeRegister(&xNewVariantUint32, libs, "g_variant_new_uint32") | |
| 2937 | + | core.PuregoSafeRegister(&xNewVariantUint64, libs, "g_variant_new_uint64") | |
| 2938 | + | core.PuregoSafeRegister(&xNewVariantVa, libs, "g_variant_new_va") | |
| 2939 | + | core.PuregoSafeRegister(&xNewVariantVariant, libs, "g_variant_new_variant") | |
| 2940 | + | ||
| 2941 | + | core.PuregoSafeRegister(&xVariantByteswap, libs, "g_variant_byteswap") | |
| 2942 | + | core.PuregoSafeRegister(&xVariantCheckFormatString, libs, "g_variant_check_format_string") | |
| 2943 | + | core.PuregoSafeRegister(&xVariantClassify, libs, "g_variant_classify") | |
| 2944 | + | core.PuregoSafeRegister(&xVariantCompare, libs, "g_variant_compare") | |
| 2945 | + | core.PuregoSafeRegister(&xVariantDupBytestring, libs, "g_variant_dup_bytestring") | |
| 2946 | + | core.PuregoSafeRegister(&xVariantDupBytestringArray, libs, "g_variant_dup_bytestring_array") | |
| 2947 | + | core.PuregoSafeRegister(&xVariantDupObjv, libs, "g_variant_dup_objv") | |
| 2948 | + | core.PuregoSafeRegister(&xVariantDupString, libs, "g_variant_dup_string") | |
| 2949 | + | core.PuregoSafeRegister(&xVariantDupStrv, libs, "g_variant_dup_strv") | |
| 2950 | + | core.PuregoSafeRegister(&xVariantEqual, libs, "g_variant_equal") | |
| 2951 | + | core.PuregoSafeRegister(&xVariantGet, libs, "g_variant_get") | |
| 2952 | + | core.PuregoSafeRegister(&xVariantGetBoolean, libs, "g_variant_get_boolean") | |
| 2953 | + | core.PuregoSafeRegister(&xVariantGetByte, libs, "g_variant_get_byte") | |
| 2954 | + | core.PuregoSafeRegister(&xVariantGetBytestring, libs, "g_variant_get_bytestring") | |
| 2955 | + | core.PuregoSafeRegister(&xVariantGetBytestringArray, libs, "g_variant_get_bytestring_array") | |
| 2956 | + | core.PuregoSafeRegister(&xVariantGetChild, libs, "g_variant_get_child") | |
| 2957 | + | core.PuregoSafeRegister(&xVariantGetChildValue, libs, "g_variant_get_child_value") | |
| 2958 | + | core.PuregoSafeRegister(&xVariantGetData, libs, "g_variant_get_data") | |
| 2959 | + | core.PuregoSafeRegister(&xVariantGetDataAsBytes, libs, "g_variant_get_data_as_bytes") | |
| 2960 | + | core.PuregoSafeRegister(&xVariantGetDouble, libs, "g_variant_get_double") | |
| 2961 | + | core.PuregoSafeRegister(&xVariantGetFixedArray, libs, "g_variant_get_fixed_array") | |
| 2962 | + | core.PuregoSafeRegister(&xVariantGetHandle, libs, "g_variant_get_handle") | |
| 2963 | + | core.PuregoSafeRegister(&xVariantGetInt16, libs, "g_variant_get_int16") | |
| 2964 | + | core.PuregoSafeRegister(&xVariantGetInt32, libs, "g_variant_get_int32") | |
| 2965 | + | core.PuregoSafeRegister(&xVariantGetInt64, libs, "g_variant_get_int64") | |
| 2966 | + | core.PuregoSafeRegister(&xVariantGetMaybe, libs, "g_variant_get_maybe") | |
| 2967 | + | core.PuregoSafeRegister(&xVariantGetNormalForm, libs, "g_variant_get_normal_form") | |
| 2968 | + | core.PuregoSafeRegister(&xVariantGetObjv, libs, "g_variant_get_objv") | |
| 2969 | + | core.PuregoSafeRegister(&xVariantGetSize, libs, "g_variant_get_size") | |
| 2970 | + | core.PuregoSafeRegister(&xVariantGetString, libs, "g_variant_get_string") | |
| 2971 | + | core.PuregoSafeRegister(&xVariantGetStrv, libs, "g_variant_get_strv") | |
| 2972 | + | core.PuregoSafeRegister(&xVariantGetType, libs, "g_variant_get_type") | |
| 2973 | + | core.PuregoSafeRegister(&xVariantGetTypeString, libs, "g_variant_get_type_string") | |
| 2974 | + | core.PuregoSafeRegister(&xVariantGetUint16, libs, "g_variant_get_uint16") | |
| 2975 | + | core.PuregoSafeRegister(&xVariantGetUint32, libs, "g_variant_get_uint32") | |
| 2976 | + | core.PuregoSafeRegister(&xVariantGetUint64, libs, "g_variant_get_uint64") | |
| 2977 | + | core.PuregoSafeRegister(&xVariantGetVa, libs, "g_variant_get_va") | |
| 2978 | + | core.PuregoSafeRegister(&xVariantGetVariant, libs, "g_variant_get_variant") | |
| 2979 | + | core.PuregoSafeRegister(&xVariantHash, libs, "g_variant_hash") | |
| 2980 | + | core.PuregoSafeRegister(&xVariantIsContainer, libs, "g_variant_is_container") | |
| 2981 | + | core.PuregoSafeRegister(&xVariantIsFloating, libs, "g_variant_is_floating") | |
| 2982 | + | core.PuregoSafeRegister(&xVariantIsNormalForm, libs, "g_variant_is_normal_form") | |
| 2983 | + | core.PuregoSafeRegister(&xVariantIsOfType, libs, "g_variant_is_of_type") | |
| 2984 | + | core.PuregoSafeRegister(&xVariantIterNew, libs, "g_variant_iter_new") | |
| 2985 | + | core.PuregoSafeRegister(&xVariantLookup, libs, "g_variant_lookup") | |
| 2986 | + | core.PuregoSafeRegister(&xVariantLookupValue, libs, "g_variant_lookup_value") | |
| 2987 | + | core.PuregoSafeRegister(&xVariantNChildren, libs, "g_variant_n_children") | |
| 2988 | + | core.PuregoSafeRegister(&xVariantPrint, libs, "g_variant_print") | |
| 2989 | + | core.PuregoSafeRegister(&xVariantPrintString, libs, "g_variant_print_string") | |
| 2990 | + | core.PuregoSafeRegister(&xVariantRef, libs, "g_variant_ref") | |
| 2991 | + | core.PuregoSafeRegister(&xVariantRefSink, libs, "g_variant_ref_sink") | |
| 2992 | + | core.PuregoSafeRegister(&xVariantStore, libs, "g_variant_store") | |
| 2993 | + | core.PuregoSafeRegister(&xVariantTakeRef, libs, "g_variant_take_ref") | |
| 2994 | + | core.PuregoSafeRegister(&xVariantUnref, libs, "g_variant_unref") | |
| 2995 | + | ||
| 2996 | + | core.PuregoSafeRegister(&xVariantBuilderGLibType, libs, "g_variant_builder_get_type") | |
| 2997 | + | ||
| 2998 | + | core.PuregoSafeRegister(&xNewVariantBuilder, libs, "g_variant_builder_new") | |
| 2999 | + | ||
| 3000 | + | core.PuregoSafeRegister(&xVariantBuilderAdd, libs, "g_variant_builder_add") | |
| 3001 | + | core.PuregoSafeRegister(&xVariantBuilderAddParsed, libs, "g_variant_builder_add_parsed") | |
| 3002 | + | core.PuregoSafeRegister(&xVariantBuilderAddValue, libs, "g_variant_builder_add_value") | |
| 3003 | + | core.PuregoSafeRegister(&xVariantBuilderClear, libs, "g_variant_builder_clear") | |
| 3004 | + | core.PuregoSafeRegister(&xVariantBuilderClose, libs, "g_variant_builder_close") | |
| 3005 | + | core.PuregoSafeRegister(&xVariantBuilderEnd, libs, "g_variant_builder_end") | |
| 3006 | + | core.PuregoSafeRegister(&xVariantBuilderInit, libs, "g_variant_builder_init") | |
| 3007 | + | core.PuregoSafeRegister(&xVariantBuilderInitStatic, libs, "g_variant_builder_init_static") | |
| 3008 | + | core.PuregoSafeRegister(&xVariantBuilderOpen, libs, "g_variant_builder_open") | |
| 3009 | + | core.PuregoSafeRegister(&xVariantBuilderRef, libs, "g_variant_builder_ref") | |
| 3010 | + | core.PuregoSafeRegister(&xVariantBuilderUnref, libs, "g_variant_builder_unref") | |
| 3011 | + | ||
| 3012 | + | core.PuregoSafeRegister(&xVariantDictGLibType, libs, "g_variant_dict_get_type") | |
| 3013 | + | ||
| 3014 | + | core.PuregoSafeRegister(&xNewVariantDict, libs, "g_variant_dict_new") | |
| 3015 | + | ||
| 3016 | + | core.PuregoSafeRegister(&xVariantDictClear, libs, "g_variant_dict_clear") | |
| 3017 | + | core.PuregoSafeRegister(&xVariantDictContains, libs, "g_variant_dict_contains") | |
| 3018 | + | core.PuregoSafeRegister(&xVariantDictEnd, libs, "g_variant_dict_end") | |
| 3019 | + | core.PuregoSafeRegister(&xVariantDictInit, libs, "g_variant_dict_init") | |
| 3020 | + | core.PuregoSafeRegister(&xVariantDictInsert, libs, "g_variant_dict_insert") | |
| 3021 | + | core.PuregoSafeRegister(&xVariantDictInsertValue, libs, "g_variant_dict_insert_value") | |
| 3022 | + | core.PuregoSafeRegister(&xVariantDictLookup, libs, "g_variant_dict_lookup") | |
| 3023 | + | core.PuregoSafeRegister(&xVariantDictLookupValue, libs, "g_variant_dict_lookup_value") | |
| 3024 | + | core.PuregoSafeRegister(&xVariantDictRef, libs, "g_variant_dict_ref") | |
| 3025 | + | core.PuregoSafeRegister(&xVariantDictRemove, libs, "g_variant_dict_remove") | |
| 3026 | + | core.PuregoSafeRegister(&xVariantDictUnref, libs, "g_variant_dict_unref") | |
| 3027 | + | ||
| 3028 | + | core.PuregoSafeRegister(&xVariantIterCopy, libs, "g_variant_iter_copy") | |
| 3029 | + | core.PuregoSafeRegister(&xVariantIterFree, libs, "g_variant_iter_free") | |
| 3030 | + | core.PuregoSafeRegister(&xVariantIterInit, libs, "g_variant_iter_init") | |
| 3031 | + | core.PuregoSafeRegister(&xVariantIterLoop, libs, "g_variant_iter_loop") | |
| 3032 | + | core.PuregoSafeRegister(&xVariantIterNChildren, libs, "g_variant_iter_n_children") | |
| 3033 | + | core.PuregoSafeRegister(&xVariantIterNext, libs, "g_variant_iter_next") | |
| 3034 | + | core.PuregoSafeRegister(&xVariantIterNextValue, libs, "g_variant_iter_next_value") | |
| 3035 | + | } | |
| @@ -0,0 +1,3035 @@ | |||||
| 1 | + | // Package glib was automatically generated by github.com/bnema/puregotk DO NOT EDIT | |||
| 2 | + | package glib | |||
| 3 | + | ||||
| 4 | + | import ( | |||
| 5 | + | "structs" | |||
| 6 | + | "unsafe" | |||
| 7 | + | ||||
| 8 | + | "github.com/bnema/purego" | |||
| 9 | + | "github.com/bnema/puregotk/pkg/core" | |||
| 10 | + | "github.com/bnema/puregotk/v4/gobject/types" | |||
| 11 | + | ) | |||
| 12 | + | ||||
| 13 | + | // `GVariant` is a variant datatype; it can contain one or more values | |||
| 14 | + | // along with information about the type of the values. | |||
| 15 | + | // | |||
| 16 | + | // A `GVariant` may contain simple types, like an integer, or a boolean value; | |||
| 17 | + | // or complex types, like an array of two strings, or a dictionary of key | |||
| 18 | + | // value pairs. A `GVariant` is also immutable: once it’s been created neither | |||
| 19 | + | // its type nor its content can be modified further. | |||
| 20 | + | // | |||
| 21 | + | // `GVariant` is useful whenever data needs to be serialized, for example when | |||
| 22 | + | // sending method parameters in D-Bus, or when saving settings using | |||
| 23 | + | // [`GSettings`](../gio/class.Settings.html). | |||
| 24 | + | // | |||
| 25 | + | // When creating a new `GVariant`, you pass the data you want to store in it | |||
| 26 | + | // along with a string representing the type of data you wish to pass to it. | |||
| 27 | + | // | |||
| 28 | + | // For instance, if you want to create a `GVariant` holding an integer value you | |||
| 29 | + | // can use: | |||
| 30 | + | // | |||
| 31 | + | // ```c | |||
| 32 | + | // GVariant *v = g_variant_new ("u", 40); | |||
| 33 | + | // ``` | |||
| 34 | + | // | |||
| 35 | + | // The string `u` in the first argument tells `GVariant` that the data passed to | |||
| 36 | + | // the constructor (`40`) is going to be an unsigned integer. | |||
| 37 | + | // | |||
| 38 | + | // More advanced examples of `GVariant` in use can be found in documentation for | |||
| 39 | + | // [`GVariant` format strings](gvariant-format-strings.html#pointers). | |||
| 40 | + | // | |||
| 41 | + | // The range of possible values is determined by the type. | |||
| 42 | + | // | |||
| 43 | + | // The type system used by `GVariant` is [type@GLib.VariantType]. | |||
| 44 | + | // | |||
| 45 | + | // `GVariant` instances always have a type and a value (which are given | |||
| 46 | + | // at construction time). The type and value of a `GVariant` instance | |||
| 47 | + | // can never change other than by the `GVariant` itself being | |||
| 48 | + | // destroyed. A `GVariant` cannot contain a pointer. | |||
| 49 | + | // | |||
| 50 | + | // `GVariant` is reference counted using [method@GLib.Variant.ref] and | |||
| 51 | + | // [method@GLib.Variant.unref]. `GVariant` also has floating reference counts — | |||
| 52 | + | // see [method@GLib.Variant.ref_sink]. | |||
| 53 | + | // | |||
| 54 | + | // `GVariant` is completely threadsafe. A `GVariant` instance can be | |||
| 55 | + | // concurrently accessed in any way from any number of threads without | |||
| 56 | + | // problems. | |||
| 57 | + | // | |||
| 58 | + | // `GVariant` is heavily optimised for dealing with data in serialized | |||
| 59 | + | // form. It works particularly well with data located in memory-mapped | |||
| 60 | + | // files. It can perform nearly all deserialization operations in a | |||
| 61 | + | // small constant time, usually touching only a single memory page. | |||
| 62 | + | // Serialized `GVariant` data can also be sent over the network. | |||
| 63 | + | // | |||
| 64 | + | // `GVariant` is largely compatible with D-Bus. Almost all types of | |||
| 65 | + | // `GVariant` instances can be sent over D-Bus. See [type@GLib.VariantType] for | |||
| 66 | + | // exceptions. (However, `GVariant`’s serialization format is not the same | |||
| 67 | + | // as the serialization format of a D-Bus message body: use | |||
| 68 | + | // [GDBusMessage](../gio/class.DBusMessage.html), in the GIO library, for those.) | |||
| 69 | + | // | |||
| 70 | + | // For space-efficiency, the `GVariant` serialization format does not | |||
| 71 | + | // automatically include the variant’s length, type or endianness, | |||
| 72 | + | // which must either be implied from context (such as knowledge that a | |||
| 73 | + | // particular file format always contains a little-endian | |||
| 74 | + | // `G_VARIANT_TYPE_VARIANT` which occupies the whole length of the file) | |||
| 75 | + | // or supplied out-of-band (for instance, a length, type and/or endianness | |||
| 76 | + | // indicator could be placed at the beginning of a file, network message | |||
| 77 | + | // or network stream). | |||
| 78 | + | // | |||
| 79 | + | // A `GVariant`’s size is limited mainly by any lower level operating | |||
| 80 | + | // system constraints, such as the number of bits in `gsize`. For | |||
| 81 | + | // example, it is reasonable to have a 2GB file mapped into memory | |||
| 82 | + | // with [struct@GLib.MappedFile], and call [ctor@GLib.Variant.new_from_data] on | |||
| 83 | + | // it. | |||
| 84 | + | // | |||
| 85 | + | // For convenience to C programmers, `GVariant` features powerful | |||
| 86 | + | // varargs-based value construction and destruction. This feature is | |||
| 87 | + | // designed to be embedded in other libraries. | |||
| 88 | + | // | |||
| 89 | + | // There is a Python-inspired text language for describing `GVariant` | |||
| 90 | + | // values. `GVariant` includes a printer for this language and a parser | |||
| 91 | + | // with type inferencing. | |||
| 92 | + | // | |||
| 93 | + | // ## Memory Use | |||
| 94 | + | // | |||
| 95 | + | // `GVariant` tries to be quite efficient with respect to memory use. | |||
| 96 | + | // This section gives a rough idea of how much memory is used by the | |||
| 97 | + | // current implementation. The information here is subject to change | |||
| 98 | + | // in the future. | |||
| 99 | + | // | |||
| 100 | + | // The memory allocated by `GVariant` can be grouped into 4 broad | |||
| 101 | + | // purposes: memory for serialized data, memory for the type | |||
| 102 | + | // information cache, buffer management memory and memory for the | |||
| 103 | + | // `GVariant` structure itself. | |||
| 104 | + | // | |||
| 105 | + | // ## Serialized Data Memory | |||
| 106 | + | // | |||
| 107 | + | // This is the memory that is used for storing `GVariant` data in | |||
| 108 | + | // serialized form. This is what would be sent over the network or | |||
| 109 | + | // what would end up on disk, not counting any indicator of the | |||
| 110 | + | // endianness, or of the length or type of the top-level variant. | |||
| 111 | + | // | |||
| 112 | + | // The amount of memory required to store a boolean is 1 byte. 16, | |||
| 113 | + | // 32 and 64 bit integers and double precision floating point numbers | |||
| 114 | + | // use their ‘natural’ size. Strings (including object path and | |||
| 115 | + | // signature strings) are stored with a nul terminator, and as such | |||
| 116 | + | // use the length of the string plus 1 byte. | |||
| 117 | + | // | |||
| 118 | + | // ‘Maybe’ types use no space at all to represent the null value and | |||
| 119 | + | // use the same amount of space (sometimes plus one byte) as the | |||
| 120 | + | // equivalent non-maybe-typed value to represent the non-null case. | |||
| 121 | + | // | |||
| 122 | + | // Arrays use the amount of space required to store each of their | |||
| 123 | + | // members, concatenated. Additionally, if the items stored in an | |||
| 124 | + | // array are not of a fixed-size (ie: strings, other arrays, etc) | |||
| 125 | + | // then an additional framing offset is stored for each item. The | |||
| 126 | + | // size of this offset is either 1, 2 or 4 bytes depending on the | |||
| 127 | + | // overall size of the container. Additionally, extra padding bytes | |||
| 128 | + | // are added as required for alignment of child values. | |||
| 129 | + | // | |||
| 130 | + | // Tuples (including dictionary entries) use the amount of space | |||
| 131 | + | // required to store each of their members, concatenated, plus one | |||
| 132 | + | // framing offset (as per arrays) for each non-fixed-sized item in | |||
| 133 | + | // the tuple, except for the last one. Additionally, extra padding | |||
| 134 | + | // bytes are added as required for alignment of child values. | |||
| 135 | + | // | |||
| 136 | + | // Variants use the same amount of space as the item inside of the | |||
| 137 | + | // variant, plus 1 byte, plus the length of the type string for the | |||
| 138 | + | // item inside the variant. | |||
| 139 | + | // | |||
| 140 | + | // As an example, consider a dictionary mapping strings to variants. | |||
| 141 | + | // In the case that the dictionary is empty, 0 bytes are required for | |||
| 142 | + | // the serialization. | |||
| 143 | + | // | |||
| 144 | + | // If we add an item ‘width’ that maps to the int32 value of 500 then | |||
| 145 | + | // we will use 4 bytes to store the int32 (so 6 for the variant | |||
| 146 | + | // containing it) and 6 bytes for the string. The variant must be | |||
| 147 | + | // aligned to 8 after the 6 bytes of the string, so that’s 2 extra | |||
| 148 | + | // bytes. 6 (string) + 2 (padding) + 6 (variant) is 14 bytes used | |||
| 149 | + | // for the dictionary entry. An additional 1 byte is added to the | |||
| 150 | + | // array as a framing offset making a total of 15 bytes. | |||
| 151 | + | // | |||
| 152 | + | // If we add another entry, ‘title’ that maps to a nullable string | |||
| 153 | + | // that happens to have a value of null, then we use 0 bytes for the | |||
| 154 | + | // null value (and 3 bytes for the variant to contain it along with | |||
| 155 | + | // its type string) plus 6 bytes for the string. Again, we need 2 | |||
| 156 | + | // padding bytes. That makes a total of 6 + 2 + 3 = 11 bytes. | |||
| 157 | + | // | |||
| 158 | + | // We now require extra padding between the two items in the array. | |||
| 159 | + | // After the 14 bytes of the first item, that’s 2 bytes required. | |||
| 160 | + | // We now require 2 framing offsets for an extra two | |||
| 161 | + | // bytes. 14 + 2 + 11 + 2 = 29 bytes to encode the entire two-item | |||
| 162 | + | // dictionary. | |||
| 163 | + | // | |||
| 164 | + | // ## Type Information Cache | |||
| 165 | + | // | |||
| 166 | + | // For each `GVariant` type that currently exists in the program a type | |||
| 167 | + | // information structure is kept in the type information cache. The | |||
| 168 | + | // type information structure is required for rapid deserialization. | |||
| 169 | + | // | |||
| 170 | + | // Continuing with the above example, if a `GVariant` exists with the | |||
| 171 | + | // type `a{sv}` then a type information struct will exist for | |||
| 172 | + | // `a{sv}`, `{sv}`, `s`, and `v`. Multiple uses of the same type | |||
| 173 | + | // will share the same type information. Additionally, all | |||
| 174 | + | // single-digit types are stored in read-only static memory and do | |||
| 175 | + | // not contribute to the writable memory footprint of a program using | |||
| 176 | + | // `GVariant`. | |||
| 177 | + | // | |||
| 178 | + | // Aside from the type information structures stored in read-only | |||
| 179 | + | // memory, there are two forms of type information. One is used for | |||
| 180 | + | // container types where there is a single element type: arrays and | |||
| 181 | + | // maybe types. The other is used for container types where there | |||
| 182 | + | // are multiple element types: tuples and dictionary entries. | |||
| 183 | + | // | |||
| 184 | + | // Array type info structures are `6 * sizeof (void *)`, plus the | |||
| 185 | + | // memory required to store the type string itself. This means that | |||
| 186 | + | // on 32-bit systems, the cache entry for `a{sv}` would require 30 | |||
| 187 | + | // bytes of memory (plus allocation overhead). | |||
| 188 | + | // | |||
| 189 | + | // Tuple type info structures are `6 * sizeof (void *)`, plus `4 * | |||
| 190 | + | // sizeof (void *)` for each item in the tuple, plus the memory | |||
| 191 | + | // required to store the type string itself. A 2-item tuple, for | |||
| 192 | + | // example, would have a type information structure that consumed | |||
| 193 | + | // writable memory in the size of `14 * sizeof (void *)` (plus type | |||
| 194 | + | // string) This means that on 32-bit systems, the cache entry for | |||
| 195 | + | // `{sv}` would require 61 bytes of memory (plus allocation overhead). | |||
| 196 | + | // | |||
| 197 | + | // This means that in total, for our `a{sv}` example, 91 bytes of | |||
| 198 | + | // type information would be allocated. | |||
| 199 | + | // | |||
| 200 | + | // The type information cache, additionally, uses a [struct@GLib.HashTable] to | |||
| 201 | + | // store and look up the cached items and stores a pointer to this | |||
| 202 | + | // hash table in static storage. The hash table is freed when there | |||
| 203 | + | // are zero items in the type cache. | |||
| 204 | + | // | |||
| 205 | + | // Although these sizes may seem large it is important to remember | |||
| 206 | + | // that a program will probably only have a very small number of | |||
| 207 | + | // different types of values in it and that only one type information | |||
| 208 | + | // structure is required for many different values of the same type. | |||
| 209 | + | // | |||
| 210 | + | // ## Buffer Management Memory | |||
| 211 | + | // | |||
| 212 | + | // `GVariant` uses an internal buffer management structure to deal | |||
| 213 | + | // with the various different possible sources of serialized data | |||
| 214 | + | // that it uses. The buffer is responsible for ensuring that the | |||
| 215 | + | // correct call is made when the data is no longer in use by | |||
| 216 | + | // `GVariant`. This may involve a [func@GLib.free] or | |||
| 217 | + | // even [method@GLib.MappedFile.unref]. | |||
| 218 | + | // | |||
| 219 | + | // One buffer management structure is used for each chunk of | |||
| 220 | + | // serialized data. The size of the buffer management structure | |||
| 221 | + | // is `4 * (void *)`. On 32-bit systems, that’s 16 bytes. | |||
| 222 | + | // | |||
| 223 | + | // ## GVariant structure | |||
| 224 | + | // | |||
| 225 | + | // The size of a `GVariant` structure is `6 * (void *)`. On 32-bit | |||
| 226 | + | // systems, that’s 24 bytes. | |||
| 227 | + | // | |||
| 228 | + | // `GVariant` structures only exist if they are explicitly created | |||
| 229 | + | // with API calls. For example, if a `GVariant` is constructed out of | |||
| 230 | + | // serialized data for the example given above (with the dictionary) | |||
| 231 | + | // then although there are 9 individual values that comprise the | |||
| 232 | + | // entire dictionary (two keys, two values, two variants containing | |||
| 233 | + | // the values, two dictionary entries, plus the dictionary itself), | |||
| 234 | + | // only 1 `GVariant` instance exists — the one referring to the | |||
| 235 | + | // dictionary. | |||
| 236 | + | // | |||
| 237 | + | // If calls are made to start accessing the other values then | |||
| 238 | + | // `GVariant` instances will exist for those values only for as long | |||
| 239 | + | // as they are in use (ie: until you call [method@GLib.Variant.unref]). The | |||
| 240 | + | // type information is shared. The serialized data and the buffer | |||
| 241 | + | // management structure for that serialized data is shared by the | |||
| 242 | + | // child. | |||
| 243 | + | // | |||
| 244 | + | // ## Summary | |||
| 245 | + | // | |||
| 246 | + | // To put the entire example together, for our dictionary mapping | |||
| 247 | + | // strings to variants (with two entries, as given above), we are | |||
| 248 | + | // using 91 bytes of memory for type information, 29 bytes of memory | |||
| 249 | + | // for the serialized data, 16 bytes for buffer management and 24 | |||
| 250 | + | // bytes for the `GVariant` instance, or a total of 160 bytes, plus | |||
| 251 | + | // allocation overhead. If we were to use [method@GLib.Variant.get_child_value] | |||
| 252 | + | // to access the two dictionary entries, we would use an additional 48 | |||
| 253 | + | // bytes. If we were to have other dictionaries of the same type, we | |||
| 254 | + | // would use more memory for the serialized data and buffer | |||
| 255 | + | // management for those dictionaries, but the type information would | |||
| 256 | + | // be shared. | |||
| 257 | + | type Variant struct { | |||
| 258 | + | _ structs.HostLayout | |||
| 259 | + | } | |||
| 260 | + | ||||
| 261 | + | var xVariantGLibType func() types.GType | |||
| 262 | + | ||||
| 263 | + | func VariantGLibType() types.GType { | |||
| 264 | + | return xVariantGLibType() | |||
| 265 | + | } | |||
| 266 | + | ||||
| 267 | + | func (x *Variant) GoPointer() uintptr { | |||
| 268 | + | return uintptr(unsafe.Pointer(x)) | |||
| 269 | + | } | |||
| 270 | + | ||||
| 271 | + | func VariantNewFromInternalPtr(ptr uintptr) *Variant { | |||
| 272 | + | if ptr == 0 { | |||
| 273 | + | return nil | |||
| 274 | + | } | |||
| 275 | + | rawPtr := *(*unsafe.Pointer)(unsafe.Pointer(&ptr)) | |||
| 276 | + | return (*Variant)(rawPtr) | |||
| 277 | + | } | |||
| 278 | + | ||||
| 279 | + | var xNewVariant func(string, ...interface{}) uintptr | |||
| 280 | + | ||||
| 281 | + | // Creates a new #GVariant instance. | |||
| 282 | + | // | |||
| 283 | + | // Think of this function as an analogue to g_strdup_printf(). | |||
| 284 | + | // | |||
| 285 | + | // The type of the created instance and the arguments that are expected | |||
| 286 | + | // by this function are determined by @format_string. See the section on | |||
| 287 | + | // [GVariant format strings](gvariant-format-strings.html). Please note that | |||
| 288 | + | // the syntax of the format string is very likely to be extended in the | |||
| 289 | + | // future. | |||
| 290 | + | // | |||
| 291 | + | // The first character of the format string must not be '*' '?' '@' or | |||
| 292 | + | // 'r'; in essence, a new #GVariant must always be constructed by this | |||
| 293 | + | // function (and not merely passed through it unmodified). | |||
| 294 | + | // | |||
| 295 | + | // Note that the arguments must be of the correct width for their types | |||
| 296 | + | // specified in @format_string. This can be achieved by casting them. See | |||
| 297 | + | // the [GVariant varargs documentation](gvariant-format-strings.html#varargs). | |||
| 298 | + | // | |||
| 299 | + | // |[<!-- language="C" --> | |||
| 300 | + | // MyFlags some_flags = FLAG_ONE | FLAG_TWO; | |||
| 301 | + | // const gchar *some_strings[] = { "a", "b", "c", NULL }; | |||
| 302 | + | // GVariant *new_variant; | |||
| 303 | + | // | |||
| 304 | + | // new_variant = g_variant_new ("(t^as)", | |||
| 305 | + | // | |||
| 306 | + | // // This cast is required. | |||
| 307 | + | // (guint64) some_flags, | |||
| 308 | + | // some_strings); | |||
| 309 | + | // | |||
| 310 | + | // ]| | |||
| 311 | + | func NewVariant(FormatStringVar string, varArgs ...interface{}) *Variant { | |||
| 312 | + | cret := xNewVariant(FormatStringVar, varArgs...) | |||
| 313 | + | if cret == 0 { | |||
| 314 | + | return nil | |||
| 315 | + | } | |||
| 316 | + | return (*Variant)(unsafe.Pointer(cret)) | |||
| 317 | + | } | |||
| 318 | + | ||||
| 319 | + | var xNewVariantArray func(*VariantType, uintptr, uint) uintptr | |||
| 320 | + | ||||
| 321 | + | // Creates a new #GVariant array from @children. | |||
| 322 | + | // | |||
| 323 | + | // @child_type must be non-%NULL if @n_children is zero. Otherwise, the | |||
| 324 | + | // child type is determined by inspecting the first element of the | |||
| 325 | + | // @children array. If @child_type is non-%NULL then it must be a | |||
| 326 | + | // definite type. | |||
| 327 | + | // | |||
| 328 | + | // The items of the array are taken from the @children array. No entry | |||
| 329 | + | // in the @children array may be %NULL. | |||
| 330 | + | // | |||
| 331 | + | // All items in the array must have the same type, which must be the | |||
| 332 | + | // same as @child_type, if given. | |||
| 333 | + | // | |||
| 334 | + | // If the @children are floating references (see g_variant_ref_sink()), the | |||
| 335 | + | // new instance takes ownership of them as if via g_variant_ref_sink(). | |||
| 336 | + | func NewVariantArray(ChildTypeVar *VariantType, ChildrenVar uintptr, NChildrenVar uint) *Variant { | |||
| 337 | + | cret := xNewVariantArray(ChildTypeVar, ChildrenVar, NChildrenVar) | |||
| 338 | + | if cret == 0 { | |||
| 339 | + | return nil | |||
| 340 | + | } | |||
| 341 | + | return (*Variant)(unsafe.Pointer(cret)) | |||
| 342 | + | } | |||
| 343 | + | ||||
| 344 | + | var xNewVariantBoolean func(bool) uintptr | |||
| 345 | + | ||||
| 346 | + | // Creates a new boolean #GVariant instance -- either %TRUE or %FALSE. | |||
| 347 | + | func NewVariantBoolean(ValueVar bool) *Variant { | |||
| 348 | + | cret := xNewVariantBoolean(ValueVar) | |||
| 349 | + | if cret == 0 { | |||
| 350 | + | return nil | |||
| 351 | + | } | |||
| 352 | + | return (*Variant)(unsafe.Pointer(cret)) | |||
| 353 | + | } | |||
| 354 | + | ||||
| 355 | + | var xNewVariantByte func(byte) uintptr | |||
| 356 | + | ||||
| 357 | + | // Creates a new byte #GVariant instance. | |||
| 358 | + | func NewVariantByte(ValueVar byte) *Variant { | |||
| 359 | + | cret := xNewVariantByte(ValueVar) | |||
| 360 | + | if cret == 0 { | |||
| 361 | + | return nil | |||
| 362 | + | } | |||
| 363 | + | return (*Variant)(unsafe.Pointer(cret)) | |||
| 364 | + | } | |||
| 365 | + | ||||
| 366 | + | var xNewVariantBytestring func([]byte) uintptr | |||
| 367 | + | ||||
| 368 | + | // Creates an array-of-bytes #GVariant with the contents of @string. | |||
| 369 | + | // This function is just like g_variant_new_string() except that the | |||
| 370 | + | // string need not be valid UTF-8. | |||
| 371 | + | // | |||
| 372 | + | // The nul terminator character at the end of the string is stored in | |||
| 373 | + | // the array. | |||
| 374 | + | func NewVariantBytestring(StringVar []byte) *Variant { | |||
| 375 | + | cret := xNewVariantBytestring(StringVar) | |||
| 376 | + | if cret == 0 { | |||
| 377 | + | return nil | |||
| 378 | + | } | |||
| 379 | + | return (*Variant)(unsafe.Pointer(cret)) | |||
| 380 | + | } | |||
| 381 | + | ||||
| 382 | + | var xNewVariantBytestringArray func([]string, int) uintptr | |||
| 383 | + | ||||
| 384 | + | // Constructs an array of bytestring #GVariant from the given array of | |||
| 385 | + | // strings. | |||
| 386 | + | // | |||
| 387 | + | // If @length is -1 then @strv is %NULL-terminated. | |||
| 388 | + | func NewVariantBytestringArray(StrvVar []string, LengthVar int) *Variant { | |||
| 389 | + | cret := xNewVariantBytestringArray(StrvVar, LengthVar) | |||
| 390 | + | if cret == 0 { | |||
| 391 | + | return nil | |||
| 392 | + | } | |||
| 393 | + | return (*Variant)(unsafe.Pointer(cret)) | |||
| 394 | + | } | |||
| 395 | + | ||||
| 396 | + | var xNewVariantDictEntry func(*Variant, *Variant) uintptr | |||
| 397 | + | ||||
| 398 | + | // Creates a new dictionary entry #GVariant. @key and @value must be | |||
| 399 | + | // non-%NULL. @key must be a value of a basic type (ie: not a container). | |||
| 400 | + | // | |||
| 401 | + | // If the @key or @value are floating references (see g_variant_ref_sink()), | |||
| 402 | + | // the new instance takes ownership of them as if via g_variant_ref_sink(). | |||
| 403 | + | func NewVariantDictEntry(KeyVar *Variant, ValueVar *Variant) *Variant { | |||
| 404 | + | cret := xNewVariantDictEntry(KeyVar, ValueVar) | |||
| 405 | + | if cret == 0 { | |||
| 406 | + | return nil | |||
| 407 | + | } | |||
| 408 | + | return (*Variant)(unsafe.Pointer(cret)) | |||
| 409 | + | } | |||
| 410 | + | ||||
| 411 | + | var xNewVariantDouble func(float64) uintptr | |||
| 412 | + | ||||
| 413 | + | // Creates a new double #GVariant instance. | |||
| 414 | + | func NewVariantDouble(ValueVar float64) *Variant { | |||
| 415 | + | cret := xNewVariantDouble(ValueVar) | |||
| 416 | + | if cret == 0 { | |||
| 417 | + | return nil | |||
| 418 | + | } | |||
| 419 | + | return (*Variant)(unsafe.Pointer(cret)) | |||
| 420 | + | } | |||
| 421 | + | ||||
| 422 | + | var xNewVariantFixedArray func(*VariantType, uintptr, uint, uint) uintptr | |||
| 423 | + | ||||
| 424 | + | // Constructs a new array #GVariant instance, where the elements are | |||
| 425 | + | // of @element_type type. | |||
| 426 | + | // | |||
| 427 | + | // @elements must be an array with fixed-sized elements. Numeric types are | |||
| 428 | + | // fixed-size as are tuples containing only other fixed-sized types. | |||
| 429 | + | // | |||
| 430 | + | // @element_size must be the size of a single element in the array. | |||
| 431 | + | // For example, if calling this function for an array of 32-bit integers, | |||
| 432 | + | // you might say sizeof(gint32). This value isn't used except for the purpose | |||
| 433 | + | // of a double-check that the form of the serialized data matches the caller's | |||
| 434 | + | // expectation. | |||
| 435 | + | // | |||
| 436 | + | // @n_elements must be the length of the @elements array. | |||
| 437 | + | func NewVariantFixedArray(ElementTypeVar *VariantType, ElementsVar uintptr, NElementsVar uint, ElementSizeVar uint) *Variant { | |||
| 438 | + | cret := xNewVariantFixedArray(ElementTypeVar, ElementsVar, NElementsVar, ElementSizeVar) | |||
| 439 | + | if cret == 0 { | |||
| 440 | + | return nil | |||
| 441 | + | } | |||
| 442 | + | return (*Variant)(unsafe.Pointer(cret)) | |||
| 443 | + | } | |||
| 444 | + | ||||
| 445 | + | var xNewVariantFromBytes func(*VariantType, *Bytes, bool) uintptr | |||
| 446 | + | ||||
| 447 | + | // Constructs a new serialized-mode #GVariant instance. This is the | |||
| 448 | + | // inner interface for creation of new serialized values that gets | |||
| 449 | + | // called from various functions in gvariant.c. | |||
| 450 | + | // | |||
| 451 | + | // A reference is taken on @bytes. | |||
| 452 | + | // | |||
| 453 | + | // The data in @bytes must be aligned appropriately for the @type being loaded. | |||
| 454 | + | // Otherwise this function will internally create a copy of the memory (since | |||
| 455 | + | // GLib 2.60) or (in older versions) fail and exit the process. | |||
| 456 | + | func NewVariantFromBytes(TypeVar *VariantType, BytesVar *Bytes, TrustedVar bool) *Variant { | |||
| 457 | + | cret := xNewVariantFromBytes(TypeVar, BytesVar, TrustedVar) | |||
| 458 | + | if cret == 0 { | |||
| 459 | + | return nil | |||
| 460 | + | } | |||
| 461 | + | return (*Variant)(unsafe.Pointer(cret)) | |||
| 462 | + | } | |||
| 463 | + | ||||
| 464 | + | var xNewVariantFromData func(*VariantType, []byte, uint, bool, uintptr, uintptr) uintptr | |||
| 465 | + | ||||
| 466 | + | // Creates a new #GVariant instance from serialized data. | |||
| 467 | + | // | |||
| 468 | + | // @type is the type of #GVariant instance that will be constructed. | |||
| 469 | + | // The interpretation of @data depends on knowing the type. | |||
| 470 | + | // | |||
| 471 | + | // @data is not modified by this function and must remain valid with an | |||
| 472 | + | // unchanging value until such a time as @notify is called with | |||
| 473 | + | // @user_data. If the contents of @data change before that time then | |||
| 474 | + | // the result is undefined. | |||
| 475 | + | // | |||
| 476 | + | // If @data is trusted to be serialized data in normal form then | |||
| 477 | + | // @trusted should be %TRUE. This applies to serialized data created | |||
| 478 | + | // within this process or read from a trusted location on the disk (such | |||
| 479 | + | // as a file installed in /usr/lib alongside your application). You | |||
| 480 | + | // should set trusted to %FALSE if @data is read from the network, a | |||
| 481 | + | // file in the user's home directory, etc. | |||
| 482 | + | // | |||
| 483 | + | // If @data was not stored in this machine's native endianness, any multi-byte | |||
| 484 | + | // numeric values in the returned variant will also be in non-native | |||
| 485 | + | // endianness. g_variant_byteswap() can be used to recover the original values. | |||
| 486 | + | // | |||
| 487 | + | // @notify will be called with @user_data when @data is no longer | |||
| 488 | + | // needed. The exact time of this call is unspecified and might even be | |||
| 489 | + | // before this function returns. | |||
| 490 | + | // | |||
| 491 | + | // Note: @data must be backed by memory that is aligned appropriately for the | |||
| 492 | + | // @type being loaded. Otherwise this function will internally create a copy of | |||
| 493 | + | // the memory (since GLib 2.60) or (in older versions) fail and exit the | |||
| 494 | + | // process. | |||
| 495 | + | func NewVariantFromData(TypeVar *VariantType, DataVar []byte, SizeVar uint, TrustedVar bool, NotifyVar *DestroyNotify, UserDataVar uintptr) *Variant { | |||
| 496 | + | cret := xNewVariantFromData(TypeVar, DataVar, SizeVar, TrustedVar, NewCallbackNullable(NotifyVar), UserDataVar) | |||
| 497 | + | if cret == 0 { | |||
| 498 | + | return nil | |||
| 499 | + | } | |||
| 500 | + | return (*Variant)(unsafe.Pointer(cret)) | |||
| 501 | + | } | |||
| 502 | + | ||||
| 503 | + | var xNewVariantHandle func(int32) uintptr | |||
| 504 | + | ||||
| 505 | + | // Creates a new handle #GVariant instance. | |||
| 506 | + | // | |||
| 507 | + | // By convention, handles are indexes into an array of file descriptors | |||
| 508 | + | // that are sent alongside a D-Bus message. If you're not interacting | |||
| 509 | + | // with D-Bus, you probably don't need them. | |||
| 510 | + | func NewVariantHandle(ValueVar int32) *Variant { | |||
| 511 | + | cret := xNewVariantHandle(ValueVar) | |||
| 512 | + | if cret == 0 { | |||
| 513 | + | return nil | |||
| 514 | + | } | |||
| 515 | + | return (*Variant)(unsafe.Pointer(cret)) | |||
| 516 | + | } | |||
| 517 | + | ||||
| 518 | + | var xNewVariantInt16 func(int16) uintptr | |||
| 519 | + | ||||
| 520 | + | // Creates a new int16 #GVariant instance. | |||
| 521 | + | func NewVariantInt16(ValueVar int16) *Variant { | |||
| 522 | + | cret := xNewVariantInt16(ValueVar) | |||
| 523 | + | if cret == 0 { | |||
| 524 | + | return nil | |||
| 525 | + | } | |||
| 526 | + | return (*Variant)(unsafe.Pointer(cret)) | |||
| 527 | + | } | |||
| 528 | + | ||||
| 529 | + | var xNewVariantInt32 func(int32) uintptr | |||
| 530 | + | ||||
| 531 | + | // Creates a new int32 #GVariant instance. | |||
| 532 | + | func NewVariantInt32(ValueVar int32) *Variant { | |||
| 533 | + | cret := xNewVariantInt32(ValueVar) | |||
| 534 | + | if cret == 0 { | |||
| 535 | + | return nil | |||
| 536 | + | } | |||
| 537 | + | return (*Variant)(unsafe.Pointer(cret)) | |||
| 538 | + | } | |||
| 539 | + | ||||
| 540 | + | var xNewVariantInt64 func(int64) uintptr | |||
| 541 | + | ||||
| 542 | + | // Creates a new int64 #GVariant instance. | |||
| 543 | + | func NewVariantInt64(ValueVar int64) *Variant { | |||
| 544 | + | cret := xNewVariantInt64(ValueVar) | |||
| 545 | + | if cret == 0 { | |||
| 546 | + | return nil | |||
| 547 | + | } | |||
| 548 | + | return (*Variant)(unsafe.Pointer(cret)) | |||
| 549 | + | } | |||
| 550 | + | ||||
| 551 | + | var xNewVariantMaybe func(*VariantType, *Variant) uintptr | |||
| 552 | + | ||||
| 553 | + | // Depending on if @child is %NULL, either wraps @child inside of a | |||
| 554 | + | // maybe container or creates a Nothing instance for the given @type. | |||
| 555 | + | // | |||
| 556 | + | // At least one of @child_type and @child must be non-%NULL. | |||
| 557 | + | // If @child_type is non-%NULL then it must be a definite type. | |||
| 558 | + | // If they are both non-%NULL then @child_type must be the type | |||
| 559 | + | // of @child. | |||
| 560 | + | // | |||
| 561 | + | // If @child is a floating reference (see g_variant_ref_sink()), the new | |||
| 562 | + | // instance takes ownership of @child. | |||
| 563 | + | func NewVariantMaybe(ChildTypeVar *VariantType, ChildVar *Variant) *Variant { | |||
| 564 | + | cret := xNewVariantMaybe(ChildTypeVar, ChildVar) | |||
| 565 | + | if cret == 0 { | |||
| 566 | + | return nil | |||
| 567 | + | } | |||
| 568 | + | return (*Variant)(unsafe.Pointer(cret)) | |||
| 569 | + | } | |||
| 570 | + | ||||
| 571 | + | var xNewVariantObjectPath func(string) uintptr | |||
| 572 | + | ||||
| 573 | + | // Creates a D-Bus object path #GVariant with the contents of @object_path. | |||
| 574 | + | // @object_path must be a valid D-Bus object path. Use | |||
| 575 | + | // g_variant_is_object_path() if you're not sure. | |||
| 576 | + | func NewVariantObjectPath(ObjectPathVar string) *Variant { | |||
| 577 | + | cret := xNewVariantObjectPath(ObjectPathVar) | |||
| 578 | + | if cret == 0 { | |||
| 579 | + | return nil | |||
| 580 | + | } | |||
| 581 | + | return (*Variant)(unsafe.Pointer(cret)) | |||
| 582 | + | } | |||
| 583 | + | ||||
| 584 | + | var xNewVariantObjv func([]string, int) uintptr | |||
| 585 | + | ||||
| 586 | + | // Constructs an array of object paths #GVariant from the given array of | |||
| 587 | + | // strings. | |||
| 588 | + | // | |||
| 589 | + | // Each string must be a valid #GVariant object path; see | |||
| 590 | + | // g_variant_is_object_path(). | |||
| 591 | + | // | |||
| 592 | + | // If @length is -1 then @strv is %NULL-terminated. | |||
| 593 | + | func NewVariantObjv(StrvVar []string, LengthVar int) *Variant { | |||
| 594 | + | cret := xNewVariantObjv(StrvVar, LengthVar) | |||
| 595 | + | if cret == 0 { | |||
| 596 | + | return nil | |||
| 597 | + | } | |||
| 598 | + | return (*Variant)(unsafe.Pointer(cret)) | |||
| 599 | + | } | |||
| 600 | + | ||||
| 601 | + | var xNewVariantParsed func(string, ...interface{}) uintptr | |||
| 602 | + | ||||
| 603 | + | // Parses @format and returns the result. | |||
| 604 | + | // | |||
| 605 | + | // @format must be a text format #GVariant with one extension: at any | |||
| 606 | + | // point that a value may appear in the text, a '%' character followed | |||
| 607 | + | // by a GVariant format string (as per g_variant_new()) may appear. In | |||
| 608 | + | // that case, the same arguments are collected from the argument list as | |||
| 609 | + | // g_variant_new() would have collected. | |||
| 610 | + | // | |||
| 611 | + | // Note that the arguments must be of the correct width for their types | |||
| 612 | + | // specified in @format. This can be achieved by casting them. See | |||
| 613 | + | // the [GVariant varargs documentation](gvariant-format-strings.html#varargs). | |||
| 614 | + | // | |||
| 615 | + | // Consider this simple example: | |||
| 616 | + | // |[<!-- language="C" --> | |||
| 617 | + | // | |||
| 618 | + | // g_variant_new_parsed ("[('one', 1), ('two', %i), (%s, 3)]", 2, "three"); | |||
| 619 | + | // | |||
| 620 | + | // ]| | |||
| 621 | + | // | |||
| 622 | + | // In the example, the variable argument parameters are collected and | |||
| 623 | + | // filled in as if they were part of the original string to produce the | |||
| 624 | + | // result of | |||
| 625 | + | // |[<!-- language="C" --> | |||
| 626 | + | // [('one', 1), ('two', 2), ('three', 3)] | |||
| 627 | + | // ]| | |||
| 628 | + | // | |||
| 629 | + | // This function is intended only to be used with @format as a string | |||
| 630 | + | // literal. Any parse error is fatal to the calling process. If you | |||
| 631 | + | // want to parse data from untrusted sources, use g_variant_parse(). | |||
| 632 | + | // | |||
| 633 | + | // You may not use this function to return, unmodified, a single | |||
| 634 | + | // #GVariant pointer from the argument list. ie: @format may not solely | |||
| 635 | + | // be anything along the lines of "%*", "%?", "\%r", or anything starting | |||
| 636 | + | // with "%@". | |||
| 637 | + | func NewVariantParsed(FormatVar string, varArgs ...interface{}) *Variant { | |||
| 638 | + | cret := xNewVariantParsed(FormatVar, varArgs...) | |||
| 639 | + | if cret == 0 { | |||
| 640 | + | return nil | |||
| 641 | + | } | |||
| 642 | + | return (*Variant)(unsafe.Pointer(cret)) | |||
| 643 | + | } | |||
| 644 | + | ||||
| 645 | + | var xNewVariantParsedVa func(string, []interface{}) uintptr | |||
| 646 | + | ||||
| 647 | + | // Parses @format and returns the result. | |||
| 648 | + | // | |||
| 649 | + | // This is the version of g_variant_new_parsed() intended to be used | |||
| 650 | + | // from libraries. | |||
| 651 | + | // | |||
| 652 | + | // The return value will be floating if it was a newly created GVariant | |||
| 653 | + | // instance. In the case that @format simply specified the collection | |||
| 654 | + | // of a #GVariant pointer (eg: @format was "%*") then the collected | |||
| 655 | + | // #GVariant pointer will be returned unmodified, without adding any | |||
| 656 | + | // additional references. | |||
| 657 | + | // | |||
| 658 | + | // Note that the arguments in @app must be of the correct width for their types | |||
| 659 | + | // specified in @format when collected into the #va_list. See | |||
| 660 | + | // the [GVariant varargs documentation](gvariant-format-strings.html#varargs). | |||
| 661 | + | // | |||
| 662 | + | // In order to behave correctly in all cases it is necessary for the | |||
| 663 | + | // calling function to g_variant_ref_sink() the return result before | |||
| 664 | + | // returning control to the user that originally provided the pointer. | |||
| 665 | + | // At this point, the caller will have their own full reference to the | |||
| 666 | + | // result. This can also be done by adding the result to a container, | |||
| 667 | + | // or by passing it to another g_variant_new() call. | |||
| 668 | + | func NewVariantParsedVa(FormatVar string, AppVar []interface{}) *Variant { | |||
| 669 | + | cret := xNewVariantParsedVa(FormatVar, AppVar) | |||
| 670 | + | if cret == 0 { | |||
| 671 | + | return nil | |||
| 672 | + | } | |||
| 673 | + | return (*Variant)(unsafe.Pointer(cret)) | |||
| 674 | + | } | |||
| 675 | + | ||||
| 676 | + | var xNewVariantPrintf func(string, ...interface{}) uintptr | |||
| 677 | + | ||||
| 678 | + | // Creates a string-type GVariant using printf formatting. | |||
| 679 | + | // | |||
| 680 | + | // This is similar to calling g_strdup_printf() and then | |||
| 681 | + | // g_variant_new_string() but it saves a temporary variable and an | |||
| 682 | + | // unnecessary copy. | |||
| 683 | + | func NewVariantPrintf(FormatStringVar string, varArgs ...interface{}) *Variant { | |||
| 684 | + | cret := xNewVariantPrintf(FormatStringVar, varArgs...) | |||
| 685 | + | if cret == 0 { | |||
| 686 | + | return nil | |||
| 687 | + | } | |||
| 688 | + | return (*Variant)(unsafe.Pointer(cret)) | |||
| 689 | + | } | |||
| 690 | + | ||||
| 691 | + | var xNewVariantSignature func(string) uintptr | |||
| 692 | + | ||||
| 693 | + | // Creates a D-Bus type signature #GVariant with the contents of | |||
| 694 | + | // @string. @string must be a valid D-Bus type signature. Use | |||
| 695 | + | // g_variant_is_signature() if you're not sure. | |||
| 696 | + | func NewVariantSignature(SignatureVar string) *Variant { | |||
| 697 | + | cret := xNewVariantSignature(SignatureVar) | |||
| 698 | + | if cret == 0 { | |||
| 699 | + | return nil | |||
| 700 | + | } | |||
| 701 | + | return (*Variant)(unsafe.Pointer(cret)) | |||
| 702 | + | } | |||
| 703 | + | ||||
| 704 | + | var xNewVariantString func(string) uintptr | |||
| 705 | + | ||||
| 706 | + | // Creates a string #GVariant with the contents of @string. | |||
| 707 | + | // | |||
| 708 | + | // @string must be valid UTF-8, and must not be %NULL. To encode | |||
| 709 | + | // potentially-%NULL strings, use g_variant_new() with `ms` as the | |||
| 710 | + | // [format string](gvariant-format-strings.html#maybe-types). | |||
| 711 | + | func NewVariantString(StringVar string) *Variant { | |||
| 712 | + | cret := xNewVariantString(StringVar) | |||
| 713 | + | if cret == 0 { | |||
| 714 | + | return nil | |||
| 715 | + | } | |||
| 716 | + | return (*Variant)(unsafe.Pointer(cret)) | |||
| 717 | + | } | |||
| 718 | + | ||||
| 719 | + | var xNewVariantStrv func([]string, int) uintptr | |||
| 720 | + | ||||
| 721 | + | // Constructs an array of strings #GVariant from the given array of | |||
| 722 | + | // strings. | |||
| 723 | + | // | |||
| 724 | + | // If @length is -1 then @strv is %NULL-terminated. | |||
| 725 | + | func NewVariantStrv(StrvVar []string, LengthVar int) *Variant { | |||
| 726 | + | cret := xNewVariantStrv(StrvVar, LengthVar) | |||
| 727 | + | if cret == 0 { | |||
| 728 | + | return nil | |||
| 729 | + | } | |||
| 730 | + | return (*Variant)(unsafe.Pointer(cret)) | |||
| 731 | + | } | |||
| 732 | + | ||||
| 733 | + | var xNewVariantTakeString func(string) uintptr | |||
| 734 | + | ||||
| 735 | + | // Creates a string #GVariant with the contents of @string. | |||
| 736 | + | // | |||
| 737 | + | // @string must be valid UTF-8, and must not be %NULL. To encode | |||
| 738 | + | // potentially-%NULL strings, use this with g_variant_new_maybe(). | |||
| 739 | + | // | |||
| 740 | + | // After this call, @string belongs to the #GVariant and may no longer be | |||
| 741 | + | // modified by the caller. The memory of @data has to be dynamically | |||
| 742 | + | // allocated and will eventually be freed with g_free(). | |||
| 743 | + | // | |||
| 744 | + | // You must not modify or access @string in any other way after passing | |||
| 745 | + | // it to this function. It is even possible that @string is immediately | |||
| 746 | + | // freed. | |||
| 747 | + | func NewVariantTakeString(StringVar string) *Variant { | |||
| 748 | + | cret := xNewVariantTakeString(StringVar) | |||
| 749 | + | if cret == 0 { | |||
| 750 | + | return nil | |||
| 751 | + | } | |||
| 752 | + | return (*Variant)(unsafe.Pointer(cret)) | |||
| 753 | + | } | |||
| 754 | + | ||||
| 755 | + | var xNewVariantTuple func(uintptr, uint) uintptr | |||
| 756 | + | ||||
| 757 | + | // Creates a new tuple #GVariant out of the items in @children. The | |||
| 758 | + | // type is determined from the types of @children. No entry in the | |||
| 759 | + | // @children array may be %NULL. | |||
| 760 | + | // | |||
| 761 | + | // If @n_children is 0 then the unit tuple is constructed. | |||
| 762 | + | // | |||
| 763 | + | // If the @children are floating references (see g_variant_ref_sink()), the | |||
| 764 | + | // new instance takes ownership of them as if via g_variant_ref_sink(). | |||
| 765 | + | func NewVariantTuple(ChildrenVar uintptr, NChildrenVar uint) *Variant { | |||
| 766 | + | cret := xNewVariantTuple(ChildrenVar, NChildrenVar) | |||
| 767 | + | if cret == 0 { | |||
| 768 | + | return nil | |||
| 769 | + | } | |||
| 770 | + | return (*Variant)(unsafe.Pointer(cret)) | |||
| 771 | + | } | |||
| 772 | + | ||||
| 773 | + | var xNewVariantUint16 func(uint16) uintptr | |||
| 774 | + | ||||
| 775 | + | // Creates a new uint16 #GVariant instance. | |||
| 776 | + | func NewVariantUint16(ValueVar uint16) *Variant { | |||
| 777 | + | cret := xNewVariantUint16(ValueVar) | |||
| 778 | + | if cret == 0 { | |||
| 779 | + | return nil | |||
| 780 | + | } | |||
| 781 | + | return (*Variant)(unsafe.Pointer(cret)) | |||
| 782 | + | } | |||
| 783 | + | ||||
| 784 | + | var xNewVariantUint32 func(uint32) uintptr | |||
| 785 | + | ||||
| 786 | + | // Creates a new uint32 #GVariant instance. | |||
| 787 | + | func NewVariantUint32(ValueVar uint32) *Variant { | |||
| 788 | + | cret := xNewVariantUint32(ValueVar) | |||
| 789 | + | if cret == 0 { | |||
| 790 | + | return nil | |||
| 791 | + | } | |||
| 792 | + | return (*Variant)(unsafe.Pointer(cret)) | |||
| 793 | + | } | |||
| 794 | + | ||||
| 795 | + | var xNewVariantUint64 func(uint64) uintptr | |||
| 796 | + | ||||
| 797 | + | // Creates a new uint64 #GVariant instance. | |||
| 798 | + | func NewVariantUint64(ValueVar uint64) *Variant { | |||
| 799 | + | cret := xNewVariantUint64(ValueVar) | |||
| 800 | + | if cret == 0 { | |||
| 801 | + | return nil | |||
| 802 | + | } | |||
| 803 | + | return (*Variant)(unsafe.Pointer(cret)) | |||
| 804 | + | } | |||
| 805 | + | ||||
| 806 | + | var xNewVariantVa func(string, uintptr, []interface{}) uintptr | |||
| 807 | + | ||||
| 808 | + | // This function is intended to be used by libraries based on | |||
| 809 | + | // #GVariant that want to provide g_variant_new()-like functionality | |||
| 810 | + | // to their users. | |||
| 811 | + | // | |||
| 812 | + | // The API is more general than g_variant_new() to allow a wider range | |||
| 813 | + | // of possible uses. | |||
| 814 | + | // | |||
| 815 | + | // @format_string must still point to a valid format string, but it only | |||
| 816 | + | // needs to be nul-terminated if @endptr is %NULL. If @endptr is | |||
| 817 | + | // non-%NULL then it is updated to point to the first character past the | |||
| 818 | + | // end of the format string. | |||
| 819 | + | // | |||
| 820 | + | // @app is a pointer to a #va_list. The arguments, according to | |||
| 821 | + | // @format_string, are collected from this #va_list and the list is left | |||
| 822 | + | // pointing to the argument following the last. | |||
| 823 | + | // | |||
| 824 | + | // Note that the arguments in @app must be of the correct width for their | |||
| 825 | + | // types specified in @format_string when collected into the #va_list. | |||
| 826 | + | // See the [GVariant varargs documentation](gvariant-format-strings.html#varargs). | |||
| 827 | + | // | |||
| 828 | + | // These two generalisations allow mixing of multiple calls to | |||
| 829 | + | // g_variant_new_va() and g_variant_get_va() within a single actual | |||
| 830 | + | // varargs call by the user. | |||
| 831 | + | // | |||
| 832 | + | // The return value will be floating if it was a newly created GVariant | |||
| 833 | + | // instance (for example, if the format string was "(ii)"). In the case | |||
| 834 | + | // that the format_string was '*', '?', 'r', or a format starting with | |||
| 835 | + | // '@' then the collected #GVariant pointer will be returned unmodified, | |||
| 836 | + | // without adding any additional references. | |||
| 837 | + | // | |||
| 838 | + | // In order to behave correctly in all cases it is necessary for the | |||
| 839 | + | // calling function to g_variant_ref_sink() the return result before | |||
| 840 | + | // returning control to the user that originally provided the pointer. | |||
| 841 | + | // At this point, the caller will have their own full reference to the | |||
| 842 | + | // result. This can also be done by adding the result to a container, | |||
| 843 | + | // or by passing it to another g_variant_new() call. | |||
| 844 | + | func NewVariantVa(FormatStringVar string, EndptrVar *string, AppVar []interface{}) *Variant { | |||
| 845 | + | EndptrVarPtr := core.GStrdupNullable(EndptrVar) | |||
| 846 | + | defer core.GFreeNullable(EndptrVarPtr) | |||
| 847 | + | ||||
| 848 | + | cret := xNewVariantVa(FormatStringVar, EndptrVarPtr, AppVar) | |||
| 849 | + | if cret == 0 { | |||
| 850 | + | return nil | |||
| 851 | + | } | |||
| 852 | + | return (*Variant)(unsafe.Pointer(cret)) | |||
| 853 | + | } | |||
| 854 | + | ||||
| 855 | + | var xNewVariantVariant func(*Variant) uintptr | |||
| 856 | + | ||||
| 857 | + | // Boxes @value. The result is a #GVariant instance representing a | |||
| 858 | + | // variant containing the original value. | |||
| 859 | + | // | |||
| 860 | + | // If @child is a floating reference (see g_variant_ref_sink()), the new | |||
| 861 | + | // instance takes ownership of @child. | |||
| 862 | + | func NewVariantVariant(ValueVar *Variant) *Variant { | |||
| 863 | + | cret := xNewVariantVariant(ValueVar) | |||
| 864 | + | if cret == 0 { | |||
| 865 | + | return nil | |||
| 866 | + | } | |||
| 867 | + | return (*Variant)(unsafe.Pointer(cret)) | |||
| 868 | + | } | |||
| 869 | + | ||||
| 870 | + | var xVariantByteswap func(uintptr) uintptr | |||
| 871 | + | ||||
| 872 | + | // Performs a byteswapping operation on the contents of @value. The | |||
| 873 | + | // result is that all multi-byte numeric data contained in @value is | |||
| 874 | + | // byteswapped. That includes 16, 32, and 64bit signed and unsigned | |||
| 875 | + | // integers as well as file handles and double precision floating point | |||
| 876 | + | // values. | |||
| 877 | + | // | |||
| 878 | + | // This function is an identity mapping on any value that does not | |||
| 879 | + | // contain multi-byte numeric data. That include strings, booleans, | |||
| 880 | + | // bytes and containers containing only these things (recursively). | |||
| 881 | + | // | |||
| 882 | + | // While this function can safely handle untrusted, non-normal data, it is | |||
| 883 | + | // recommended to check whether the input is in normal form beforehand, using | |||
| 884 | + | // g_variant_is_normal_form(), and to reject non-normal inputs if your | |||
| 885 | + | // application can be strict about what inputs it rejects. | |||
| 886 | + | // | |||
| 887 | + | // The returned value is always in normal form and is marked as trusted. | |||
| 888 | + | // A full, not floating, reference is returned. | |||
| 889 | + | func (x *Variant) Byteswap() *Variant { | |||
| 890 | + | cret := xVariantByteswap(x.GoPointer()) | |||
| 891 | + | if cret == 0 { | |||
| 892 | + | return nil | |||
| 893 | + | } | |||
| 894 | + | return (*Variant)(unsafe.Pointer(cret)) | |||
| 895 | + | } | |||
| 896 | + | ||||
| 897 | + | var xVariantCheckFormatString func(uintptr, string, bool) bool | |||
| 898 | + | ||||
| 899 | + | // Checks if calling g_variant_get() with @format_string on @value would | |||
| 900 | + | // be valid from a type-compatibility standpoint. @format_string is | |||
| 901 | + | // assumed to be a valid format string (from a syntactic standpoint). | |||
| 902 | + | // | |||
| 903 | + | // If @copy_only is %TRUE then this function additionally checks that it | |||
| 904 | + | // would be safe to call g_variant_unref() on @value immediately after | |||
| 905 | + | // the call to g_variant_get() without invalidating the result. This is | |||
| 906 | + | // only possible if deep copies are made (ie: there are no pointers to | |||
| 907 | + | // the data inside of the soon-to-be-freed #GVariant instance). If this | |||
| 908 | + | // check fails then a g_critical() is printed and %FALSE is returned. | |||
| 909 | + | // | |||
| 910 | + | // This function is meant to be used by functions that wish to provide | |||
| 911 | + | // varargs accessors to #GVariant values of uncertain values (eg: | |||
| 912 | + | // g_variant_lookup() or g_menu_model_get_item_attribute()). | |||
| 913 | + | func (x *Variant) CheckFormatString(FormatStringVar string, CopyOnlyVar bool) bool { | |||
| 914 | + | cret := xVariantCheckFormatString(x.GoPointer(), FormatStringVar, CopyOnlyVar) | |||
| 915 | + | return cret | |||
| 916 | + | } | |||
| 917 | + | ||||
| 918 | + | var xVariantClassify func(uintptr) VariantClass | |||
| 919 | + | ||||
| 920 | + | // Classifies @value according to its top-level type. | |||
| 921 | + | func (x *Variant) Classify() VariantClass { | |||
| 922 | + | cret := xVariantClassify(x.GoPointer()) | |||
| 923 | + | return cret | |||
| 924 | + | } | |||
| 925 | + | ||||
| 926 | + | var xVariantCompare func(uintptr, uintptr) int | |||
| 927 | + | ||||
| 928 | + | // Compares @one and @two. | |||
| 929 | + | // | |||
| 930 | + | // The types of @one and @two are #gconstpointer only to allow use of | |||
| 931 | + | // this function with #GTree, #GPtrArray, etc. They must each be a | |||
| 932 | + | // #GVariant. | |||
| 933 | + | // | |||
| 934 | + | // Comparison is only defined for basic types (ie: booleans, numbers, | |||
| 935 | + | // strings). For booleans, %FALSE is less than %TRUE. Numbers are | |||
| 936 | + | // ordered in the usual way. Strings are in ASCII lexographical order. | |||
| 937 | + | // | |||
| 938 | + | // It is a programmer error to attempt to compare container values or | |||
| 939 | + | // two values that have types that are not exactly equal. For example, | |||
| 940 | + | // you cannot compare a 32-bit signed integer with a 32-bit unsigned | |||
| 941 | + | // integer. Also note that this function is not particularly | |||
| 942 | + | // well-behaved when it comes to comparison of doubles; in particular, | |||
| 943 | + | // the handling of incomparable values (ie: NaN) is undefined. | |||
| 944 | + | // | |||
| 945 | + | // If you only require an equality comparison, g_variant_equal() is more | |||
| 946 | + | // general. | |||
| 947 | + | func (x *Variant) Compare(TwoVar uintptr) int { | |||
| 948 | + | cret := xVariantCompare(x.GoPointer(), TwoVar) | |||
| 949 | + | return cret | |||
| 950 | + | } | |||
| 951 | + | ||||
| 952 | + | var xVariantDupBytestring func(uintptr, *uint) uintptr | |||
| 953 | + | ||||
| 954 | + | // Similar to g_variant_get_bytestring() except that instead of | |||
| 955 | + | // returning a constant string, the string is duplicated. | |||
| 956 | + | // | |||
| 957 | + | // The return value must be freed using g_free(). | |||
| 958 | + | func (x *Variant) DupBytestring(LengthVar *uint) uintptr { | |||
| 959 | + | cret := xVariantDupBytestring(x.GoPointer(), LengthVar) | |||
| 960 | + | return cret | |||
| 961 | + | } | |||
| 962 | + | ||||
| 963 | + | var xVariantDupBytestringArray func(uintptr, *uint) []string | |||
| 964 | + | ||||
| 965 | + | // Gets the contents of an array of array of bytes #GVariant. This call | |||
| 966 | + | // makes a deep copy; the return result should be released with | |||
| 967 | + | // g_strfreev(). | |||
| 968 | + | // | |||
| 969 | + | // If @length is non-%NULL then the number of elements in the result is | |||
| 970 | + | // stored there. In any case, the resulting array will be | |||
| 971 | + | // %NULL-terminated. | |||
| 972 | + | // | |||
| 973 | + | // For an empty array, @length will be set to 0 and a pointer to a | |||
| 974 | + | // %NULL pointer will be returned. | |||
| 975 | + | func (x *Variant) DupBytestringArray(LengthVar *uint) []string { | |||
| 976 | + | cret := xVariantDupBytestringArray(x.GoPointer(), LengthVar) | |||
| 977 | + | return cret | |||
| 978 | + | } | |||
| 979 | + | ||||
| 980 | + | var xVariantDupObjv func(uintptr, *uint) []string | |||
| 981 | + | ||||
| 982 | + | // Gets the contents of an array of object paths #GVariant. This call | |||
| 983 | + | // makes a deep copy; the return result should be released with | |||
| 984 | + | // g_strfreev(). | |||
| 985 | + | // | |||
| 986 | + | // If @length is non-%NULL then the number of elements in the result | |||
| 987 | + | // is stored there. In any case, the resulting array will be | |||
| 988 | + | // %NULL-terminated. | |||
| 989 | + | // | |||
| 990 | + | // For an empty array, @length will be set to 0 and a pointer to a | |||
| 991 | + | // %NULL pointer will be returned. | |||
| 992 | + | func (x *Variant) DupObjv(LengthVar *uint) []string { | |||
| 993 | + | cret := xVariantDupObjv(x.GoPointer(), LengthVar) | |||
| 994 | + | return cret | |||
| 995 | + | } | |||
| 996 | + | ||||
| 997 | + | var xVariantDupString func(uintptr, *uint) string | |||
| 998 | + | ||||
| 999 | + | // Similar to g_variant_get_string() except that instead of returning | |||
| 1000 | + | // a constant string, the string is duplicated. | |||
| 1001 | + | // | |||
| 1002 | + | // The string will always be UTF-8 encoded. | |||
| 1003 | + | // | |||
| 1004 | + | // The return value must be freed using g_free(). | |||
| 1005 | + | func (x *Variant) DupString(LengthVar *uint) string { | |||
| 1006 | + | cret := xVariantDupString(x.GoPointer(), LengthVar) | |||
| 1007 | + | return cret | |||
| 1008 | + | } | |||
| 1009 | + | ||||
| 1010 | + | var xVariantDupStrv func(uintptr, *uint) []string | |||
| 1011 | + | ||||
| 1012 | + | // Gets the contents of an array of strings #GVariant. This call | |||
| 1013 | + | // makes a deep copy; the return result should be released with | |||
| 1014 | + | // g_strfreev(). | |||
| 1015 | + | // | |||
| 1016 | + | // If @length is non-%NULL then the number of elements in the result | |||
| 1017 | + | // is stored there. In any case, the resulting array will be | |||
| 1018 | + | // %NULL-terminated. | |||
| 1019 | + | // | |||
| 1020 | + | // For an empty array, @length will be set to 0 and a pointer to a | |||
| 1021 | + | // %NULL pointer will be returned. | |||
| 1022 | + | func (x *Variant) DupStrv(LengthVar *uint) []string { | |||
| 1023 | + | cret := xVariantDupStrv(x.GoPointer(), LengthVar) | |||
| 1024 | + | return cret | |||
| 1025 | + | } | |||
| 1026 | + | ||||
| 1027 | + | var xVariantEqual func(uintptr, uintptr) bool | |||
| 1028 | + | ||||
| 1029 | + | // Checks if @one and @two have the same type and value. | |||
| 1030 | + | // | |||
| 1031 | + | // The types of @one and @two are #gconstpointer only to allow use of | |||
| 1032 | + | // this function with #GHashTable. They must each be a #GVariant. | |||
| 1033 | + | func (x *Variant) Equal(TwoVar uintptr) bool { | |||
| 1034 | + | cret := xVariantEqual(x.GoPointer(), TwoVar) | |||
| 1035 | + | return cret | |||
| 1036 | + | } | |||
| 1037 | + | ||||
| 1038 | + | var xVariantGet func(uintptr, string, ...interface{}) | |||
| 1039 | + | ||||
| 1040 | + | // Deconstructs a #GVariant instance. | |||
| 1041 | + | // | |||
| 1042 | + | // Think of this function as an analogue to scanf(). | |||
| 1043 | + | // | |||
| 1044 | + | // The arguments that are expected by this function are entirely | |||
| 1045 | + | // determined by @format_string. @format_string also restricts the | |||
| 1046 | + | // permissible types of @value. It is an error to give a value with | |||
| 1047 | + | // an incompatible type. See the section on | |||
| 1048 | + | // [GVariant format strings](gvariant-format-strings.html). | |||
| 1049 | + | // Please note that the syntax of the format string is very likely to be | |||
| 1050 | + | // extended in the future. | |||
| 1051 | + | // | |||
| 1052 | + | // @format_string determines the C types that are used for unpacking | |||
| 1053 | + | // the values and also determines if the values are copied or borrowed, | |||
| 1054 | + | // see the section on | |||
| 1055 | + | // [`GVariant` format strings](gvariant-format-strings.html#pointers). | |||
| 1056 | + | func (x *Variant) Get(FormatStringVar string, varArgs ...interface{}) { | |||
| 1057 | + | xVariantGet(x.GoPointer(), FormatStringVar, varArgs...) | |||
| 1058 | + | } | |||
| 1059 | + | ||||
| 1060 | + | var xVariantGetBoolean func(uintptr) bool | |||
| 1061 | + | ||||
| 1062 | + | // Returns the boolean value of @value. | |||
| 1063 | + | // | |||
| 1064 | + | // It is an error to call this function with a @value of any type | |||
| 1065 | + | // other than %G_VARIANT_TYPE_BOOLEAN. | |||
| 1066 | + | func (x *Variant) GetBoolean() bool { | |||
| 1067 | + | cret := xVariantGetBoolean(x.GoPointer()) | |||
| 1068 | + | return cret | |||
| 1069 | + | } | |||
| 1070 | + | ||||
| 1071 | + | var xVariantGetByte func(uintptr) byte | |||
| 1072 | + | ||||
| 1073 | + | // Returns the byte value of @value. | |||
| 1074 | + | // | |||
| 1075 | + | // It is an error to call this function with a @value of any type | |||
| 1076 | + | // other than %G_VARIANT_TYPE_BYTE. | |||
| 1077 | + | func (x *Variant) GetByte() byte { | |||
| 1078 | + | cret := xVariantGetByte(x.GoPointer()) | |||
| 1079 | + | return cret | |||
| 1080 | + | } | |||
| 1081 | + | ||||
| 1082 | + | var xVariantGetBytestring func(uintptr) uintptr | |||
| 1083 | + | ||||
| 1084 | + | // Returns the string value of a #GVariant instance with an | |||
| 1085 | + | // array-of-bytes type. The string has no particular encoding. | |||
| 1086 | + | // | |||
| 1087 | + | // If the array does not end with a nul terminator character, the empty | |||
| 1088 | + | // string is returned. For this reason, you can always trust that a | |||
| 1089 | + | // non-%NULL nul-terminated string will be returned by this function. | |||
| 1090 | + | // | |||
| 1091 | + | // If the array contains a nul terminator character somewhere other than | |||
| 1092 | + | // the last byte then the returned string is the string, up to the first | |||
| 1093 | + | // such nul character. | |||
| 1094 | + | // | |||
| 1095 | + | // g_variant_get_fixed_array() should be used instead if the array contains | |||
| 1096 | + | // arbitrary data that could not be nul-terminated or could contain nul bytes. | |||
| 1097 | + | // | |||
| 1098 | + | // It is an error to call this function with a @value that is not an | |||
| 1099 | + | // array of bytes. | |||
| 1100 | + | // | |||
| 1101 | + | // The return value remains valid as long as @value exists. | |||
| 1102 | + | func (x *Variant) GetBytestring() uintptr { | |||
| 1103 | + | cret := xVariantGetBytestring(x.GoPointer()) | |||
| 1104 | + | return cret | |||
| 1105 | + | } | |||
| 1106 | + | ||||
| 1107 | + | var xVariantGetBytestringArray func(uintptr, *uint) []string | |||
| 1108 | + | ||||
| 1109 | + | // Gets the contents of an array of array of bytes #GVariant. This call | |||
| 1110 | + | // makes a shallow copy; the return result should be released with | |||
| 1111 | + | // g_free(), but the individual strings must not be modified. | |||
| 1112 | + | // | |||
| 1113 | + | // If @length is non-%NULL then the number of elements in the result is | |||
| 1114 | + | // stored there. In any case, the resulting array will be | |||
| 1115 | + | // %NULL-terminated. | |||
| 1116 | + | // | |||
| 1117 | + | // For an empty array, @length will be set to 0 and a pointer to a | |||
| 1118 | + | // %NULL pointer will be returned. | |||
| 1119 | + | func (x *Variant) GetBytestringArray(LengthVar *uint) []string { | |||
| 1120 | + | cret := xVariantGetBytestringArray(x.GoPointer(), LengthVar) | |||
| 1121 | + | return cret | |||
| 1122 | + | } | |||
| 1123 | + | ||||
| 1124 | + | var xVariantGetChild func(uintptr, uint, string, ...interface{}) | |||
| 1125 | + | ||||
| 1126 | + | // Reads a child item out of a container #GVariant instance and | |||
| 1127 | + | // deconstructs it according to @format_string. This call is | |||
| 1128 | + | // essentially a combination of g_variant_get_child_value() and | |||
| 1129 | + | // g_variant_get(). | |||
| 1130 | + | // | |||
| 1131 | + | // @format_string determines the C types that are used for unpacking | |||
| 1132 | + | // the values and also determines if the values are copied or borrowed, | |||
| 1133 | + | // see the section on | |||
| 1134 | + | // [`GVariant` format strings](gvariant-format-strings.html#pointers). | |||
| 1135 | + | func (x *Variant) GetChild(IndexVar uint, FormatStringVar string, varArgs ...interface{}) { | |||
| 1136 | + | xVariantGetChild(x.GoPointer(), IndexVar, FormatStringVar, varArgs...) | |||
| 1137 | + | } | |||
| 1138 | + | ||||
| 1139 | + | var xVariantGetChildValue func(uintptr, uint) uintptr | |||
| 1140 | + | ||||
| 1141 | + | // Reads a child item out of a container #GVariant instance. This | |||
| 1142 | + | // includes variants, maybes, arrays, tuples and dictionary | |||
| 1143 | + | // entries. It is an error to call this function on any other type of | |||
| 1144 | + | // #GVariant. | |||
| 1145 | + | // | |||
| 1146 | + | // It is an error if @index_ is greater than the number of child items | |||
| 1147 | + | // in the container. See g_variant_n_children(). | |||
| 1148 | + | // | |||
| 1149 | + | // The returned value is never floating. You should free it with | |||
| 1150 | + | // g_variant_unref() when you're done with it. | |||
| 1151 | + | // | |||
| 1152 | + | // Note that values borrowed from the returned child are not guaranteed to | |||
| 1153 | + | // still be valid after the child is freed even if you still hold a reference | |||
| 1154 | + | // to @value, if @value has not been serialized at the time this function is | |||
| 1155 | + | // called. To avoid this, you can serialize @value by calling | |||
| 1156 | + | // g_variant_get_data() and optionally ignoring the return value. | |||
| 1157 | + | // | |||
| 1158 | + | // There may be implementation specific restrictions on deeply nested values, | |||
| 1159 | + | // which would result in the unit tuple being returned as the child value, | |||
| 1160 | + | // instead of further nested children. #GVariant is guaranteed to handle | |||
| 1161 | + | // nesting up to at least 64 levels. | |||
| 1162 | + | // | |||
| 1163 | + | // This function is O(1). | |||
| 1164 | + | func (x *Variant) GetChildValue(IndexVar uint) *Variant { | |||
| 1165 | + | cret := xVariantGetChildValue(x.GoPointer(), IndexVar) | |||
| 1166 | + | if cret == 0 { | |||
| 1167 | + | return nil | |||
| 1168 | + | } | |||
| 1169 | + | return (*Variant)(unsafe.Pointer(cret)) | |||
| 1170 | + | } | |||
| 1171 | + | ||||
| 1172 | + | var xVariantGetData func(uintptr) uintptr | |||
| 1173 | + | ||||
| 1174 | + | // Returns a pointer to the serialized form of a #GVariant instance. | |||
| 1175 | + | // The returned data may not be in fully-normalised form if read from an | |||
| 1176 | + | // untrusted source. The returned data must not be freed; it remains | |||
| 1177 | + | // valid for as long as @value exists. | |||
| 1178 | + | // | |||
| 1179 | + | // If @value is a fixed-sized value that was deserialized from a | |||
| 1180 | + | // corrupted serialized container then %NULL may be returned. In this | |||
| 1181 | + | // case, the proper thing to do is typically to use the appropriate | |||
| 1182 | + | // number of nul bytes in place of @value. If @value is not fixed-sized | |||
| 1183 | + | // then %NULL is never returned. | |||
| 1184 | + | // | |||
| 1185 | + | // In the case that @value is already in serialized form, this function | |||
| 1186 | + | // is O(1). If the value is not already in serialized form, | |||
| 1187 | + | // serialization occurs implicitly and is approximately O(n) in the size | |||
| 1188 | + | // of the result. | |||
| 1189 | + | // | |||
| 1190 | + | // To deserialize the data returned by this function, in addition to the | |||
| 1191 | + | // serialized data, you must know the type of the #GVariant, and (if the | |||
| 1192 | + | // machine might be different) the endianness of the machine that stored | |||
| 1193 | + | // it. As a result, file formats or network messages that incorporate | |||
| 1194 | + | // serialized #GVariants must include this information either | |||
| 1195 | + | // implicitly (for instance "the file always contains a | |||
| 1196 | + | // %G_VARIANT_TYPE_VARIANT and it is always in little-endian order") or | |||
| 1197 | + | // explicitly (by storing the type and/or endianness in addition to the | |||
| 1198 | + | // serialized data). | |||
| 1199 | + | func (x *Variant) GetData() uintptr { | |||
| 1200 | + | cret := xVariantGetData(x.GoPointer()) | |||
| 1201 | + | return cret | |||
| 1202 | + | } | |||
| 1203 | + | ||||
| 1204 | + | var xVariantGetDataAsBytes func(uintptr) uintptr | |||
| 1205 | + | ||||
| 1206 | + | // Returns a pointer to the serialized form of a #GVariant instance. | |||
| 1207 | + | // The semantics of this function are exactly the same as | |||
| 1208 | + | // g_variant_get_data(), except that the returned #GBytes holds | |||
| 1209 | + | // a reference to the variant data. | |||
| 1210 | + | func (x *Variant) GetDataAsBytes() *Bytes { | |||
| 1211 | + | cret := xVariantGetDataAsBytes(x.GoPointer()) | |||
| 1212 | + | if cret == 0 { | |||
| 1213 | + | return nil | |||
| 1214 | + | } | |||
| 1215 | + | return (*Bytes)(unsafe.Pointer(cret)) | |||
| 1216 | + | } | |||
| 1217 | + | ||||
| 1218 | + | var xVariantGetDouble func(uintptr) float64 | |||
| 1219 | + | ||||
| 1220 | + | // Returns the double precision floating point value of @value. | |||
| 1221 | + | // | |||
| 1222 | + | // It is an error to call this function with a @value of any type | |||
| 1223 | + | // other than %G_VARIANT_TYPE_DOUBLE. | |||
| 1224 | + | func (x *Variant) GetDouble() float64 { | |||
| 1225 | + | cret := xVariantGetDouble(x.GoPointer()) | |||
| 1226 | + | return cret | |||
| 1227 | + | } | |||
| 1228 | + | ||||
| 1229 | + | var xVariantGetFixedArray func(uintptr, *uint, uint) uintptr | |||
| 1230 | + | ||||
| 1231 | + | // Provides access to the serialized data for an array of fixed-sized | |||
| 1232 | + | // items. | |||
| 1233 | + | // | |||
| 1234 | + | // @value must be an array with fixed-sized elements. Numeric types are | |||
| 1235 | + | // fixed-size, as are tuples containing only other fixed-sized types. | |||
| 1236 | + | // | |||
| 1237 | + | // @element_size must be the size of a single element in the array, | |||
| 1238 | + | // as given by the section on | |||
| 1239 | + | // [serialized data memory](struct.Variant.html#serialized-data-memory). | |||
| 1240 | + | // | |||
| 1241 | + | // In particular, arrays of these fixed-sized types can be interpreted | |||
| 1242 | + | // as an array of the given C type, with @element_size set to the size | |||
| 1243 | + | // the appropriate type: | |||
| 1244 | + | // - %G_VARIANT_TYPE_INT16 (etc.): #gint16 (etc.) | |||
| 1245 | + | // - %G_VARIANT_TYPE_BOOLEAN: #guchar (not #gboolean!) | |||
| 1246 | + | // - %G_VARIANT_TYPE_BYTE: #guint8 | |||
| 1247 | + | // - %G_VARIANT_TYPE_HANDLE: #guint32 | |||
| 1248 | + | // - %G_VARIANT_TYPE_DOUBLE: #gdouble | |||
| 1249 | + | // | |||
| 1250 | + | // For example, if calling this function for an array of 32-bit integers, | |||
| 1251 | + | // you might say `sizeof(gint32)`. This value isn't used except for the purpose | |||
| 1252 | + | // of a double-check that the form of the serialized data matches the caller's | |||
| 1253 | + | // expectation. | |||
| 1254 | + | // | |||
| 1255 | + | // @n_elements, which must be non-%NULL, is set equal to the number of | |||
| 1256 | + | // items in the array. | |||
| 1257 | + | func (x *Variant) GetFixedArray(NElementsVar *uint, ElementSizeVar uint) uintptr { | |||
| 1258 | + | cret := xVariantGetFixedArray(x.GoPointer(), NElementsVar, ElementSizeVar) | |||
| 1259 | + | return cret | |||
| 1260 | + | } | |||
| 1261 | + | ||||
| 1262 | + | var xVariantGetHandle func(uintptr) int32 | |||
| 1263 | + | ||||
| 1264 | + | // Returns the 32-bit signed integer value of @value. | |||
| 1265 | + | // | |||
| 1266 | + | // It is an error to call this function with a @value of any type other | |||
| 1267 | + | // than %G_VARIANT_TYPE_HANDLE. | |||
| 1268 | + | // | |||
| 1269 | + | // By convention, handles are indexes into an array of file descriptors | |||
| 1270 | + | // that are sent alongside a D-Bus message. If you're not interacting | |||
| 1271 | + | // with D-Bus, you probably don't need them. | |||
| 1272 | + | func (x *Variant) GetHandle() int32 { | |||
| 1273 | + | cret := xVariantGetHandle(x.GoPointer()) | |||
| 1274 | + | return cret | |||
| 1275 | + | } | |||
| 1276 | + | ||||
| 1277 | + | var xVariantGetInt16 func(uintptr) int16 | |||
| 1278 | + | ||||
| 1279 | + | // Returns the 16-bit signed integer value of @value. | |||
| 1280 | + | // | |||
| 1281 | + | // It is an error to call this function with a @value of any type | |||
| 1282 | + | // other than %G_VARIANT_TYPE_INT16. | |||
| 1283 | + | func (x *Variant) GetInt16() int16 { | |||
| 1284 | + | cret := xVariantGetInt16(x.GoPointer()) | |||
| 1285 | + | return cret | |||
| 1286 | + | } | |||
| 1287 | + | ||||
| 1288 | + | var xVariantGetInt32 func(uintptr) int32 | |||
| 1289 | + | ||||
| 1290 | + | // Returns the 32-bit signed integer value of @value. | |||
| 1291 | + | // | |||
| 1292 | + | // It is an error to call this function with a @value of any type | |||
| 1293 | + | // other than %G_VARIANT_TYPE_INT32. | |||
| 1294 | + | func (x *Variant) GetInt32() int32 { | |||
| 1295 | + | cret := xVariantGetInt32(x.GoPointer()) | |||
| 1296 | + | return cret | |||
| 1297 | + | } | |||
| 1298 | + | ||||
| 1299 | + | var xVariantGetInt64 func(uintptr) int64 | |||
| 1300 | + | ||||
| 1301 | + | // Returns the 64-bit signed integer value of @value. | |||
| 1302 | + | // | |||
| 1303 | + | // It is an error to call this function with a @value of any type | |||
| 1304 | + | // other than %G_VARIANT_TYPE_INT64. | |||
| 1305 | + | func (x *Variant) GetInt64() int64 { | |||
| 1306 | + | cret := xVariantGetInt64(x.GoPointer()) | |||
| 1307 | + | return cret | |||
| 1308 | + | } | |||
| 1309 | + | ||||
| 1310 | + | var xVariantGetMaybe func(uintptr) uintptr | |||
| 1311 | + | ||||
| 1312 | + | // Given a maybe-typed #GVariant instance, extract its value. If the | |||
| 1313 | + | // value is Nothing, then this function returns %NULL. | |||
| 1314 | + | func (x *Variant) GetMaybe() *Variant { | |||
| 1315 | + | cret := xVariantGetMaybe(x.GoPointer()) | |||
| 1316 | + | if cret == 0 { | |||
| 1317 | + | return nil | |||
| 1318 | + | } | |||
| 1319 | + | return (*Variant)(unsafe.Pointer(cret)) | |||
| 1320 | + | } | |||
| 1321 | + | ||||
| 1322 | + | var xVariantGetNormalForm func(uintptr) uintptr | |||
| 1323 | + | ||||
| 1324 | + | // Gets a #GVariant instance that has the same value as @value and is | |||
| 1325 | + | // trusted to be in normal form. | |||
| 1326 | + | // | |||
| 1327 | + | // If @value is already trusted to be in normal form then a new | |||
| 1328 | + | // reference to @value is returned. | |||
| 1329 | + | // | |||
| 1330 | + | // If @value is not already trusted, then it is scanned to check if it | |||
| 1331 | + | // is in normal form. If it is found to be in normal form then it is | |||
| 1332 | + | // marked as trusted and a new reference to it is returned. | |||
| 1333 | + | // | |||
| 1334 | + | // If @value is found not to be in normal form then a new trusted | |||
| 1335 | + | // #GVariant is created with the same value as @value. The non-normal parts of | |||
| 1336 | + | // @value will be replaced with default values which are guaranteed to be in | |||
| 1337 | + | // normal form. | |||
| 1338 | + | // | |||
| 1339 | + | // It makes sense to call this function if you've received #GVariant | |||
| 1340 | + | // data from untrusted sources and you want to ensure your serialized | |||
| 1341 | + | // output is definitely in normal form. | |||
| 1342 | + | // | |||
| 1343 | + | // If @value is already in normal form, a new reference will be returned | |||
| 1344 | + | // (which will be floating if @value is floating). If it is not in normal form, | |||
| 1345 | + | // the newly created #GVariant will be returned with a single non-floating | |||
| 1346 | + | // reference. Typically, g_variant_take_ref() should be called on the return | |||
| 1347 | + | // value from this function to guarantee ownership of a single non-floating | |||
| 1348 | + | // reference to it. | |||
| 1349 | + | func (x *Variant) GetNormalForm() *Variant { | |||
| 1350 | + | cret := xVariantGetNormalForm(x.GoPointer()) | |||
| 1351 | + | if cret == 0 { | |||
| 1352 | + | return nil | |||
| 1353 | + | } | |||
| 1354 | + | return (*Variant)(unsafe.Pointer(cret)) | |||
| 1355 | + | } | |||
| 1356 | + | ||||
| 1357 | + | var xVariantGetObjv func(uintptr, *uint) []string | |||
| 1358 | + | ||||
| 1359 | + | // Gets the contents of an array of object paths #GVariant. This call | |||
| 1360 | + | // makes a shallow copy; the return result should be released with | |||
| 1361 | + | // g_free(), but the individual strings must not be modified. | |||
| 1362 | + | // | |||
| 1363 | + | // If @length is non-%NULL then the number of elements in the result | |||
| 1364 | + | // is stored there. In any case, the resulting array will be | |||
| 1365 | + | // %NULL-terminated. | |||
| 1366 | + | // | |||
| 1367 | + | // For an empty array, @length will be set to 0 and a pointer to a | |||
| 1368 | + | // %NULL pointer will be returned. | |||
| 1369 | + | func (x *Variant) GetObjv(LengthVar *uint) []string { | |||
| 1370 | + | cret := xVariantGetObjv(x.GoPointer(), LengthVar) | |||
| 1371 | + | return cret | |||
| 1372 | + | } | |||
| 1373 | + | ||||
| 1374 | + | var xVariantGetSize func(uintptr) uint | |||
| 1375 | + | ||||
| 1376 | + | // Determines the number of bytes that would be required to store @value | |||
| 1377 | + | // with g_variant_store(). | |||
| 1378 | + | // | |||
| 1379 | + | // If @value has a fixed-sized type then this function always returned | |||
| 1380 | + | // that fixed size. | |||
| 1381 | + | // | |||
| 1382 | + | // In the case that @value is already in serialized form or the size has | |||
| 1383 | + | // already been calculated (ie: this function has been called before) | |||
| 1384 | + | // then this function is O(1). Otherwise, the size is calculated, an | |||
| 1385 | + | // operation which is approximately O(n) in the number of values | |||
| 1386 | + | // involved. | |||
| 1387 | + | func (x *Variant) GetSize() uint { | |||
| 1388 | + | cret := xVariantGetSize(x.GoPointer()) | |||
| 1389 | + | return cret | |||
| 1390 | + | } | |||
| 1391 | + | ||||
| 1392 | + | var xVariantGetString func(uintptr, *uint) string | |||
| 1393 | + | ||||
| 1394 | + | // Returns the string value of a #GVariant instance with a string | |||
| 1395 | + | // type. This includes the types %G_VARIANT_TYPE_STRING, | |||
| 1396 | + | // %G_VARIANT_TYPE_OBJECT_PATH and %G_VARIANT_TYPE_SIGNATURE. | |||
| 1397 | + | // | |||
| 1398 | + | // The string will always be UTF-8 encoded, will never be %NULL, and will never | |||
| 1399 | + | // contain nul bytes. | |||
| 1400 | + | // | |||
| 1401 | + | // If @length is non-%NULL then the length of the string (in bytes) is | |||
| 1402 | + | // returned there. For trusted values, this information is already | |||
| 1403 | + | // known. Untrusted values will be validated and, if valid, a strlen() will be | |||
| 1404 | + | // performed. If invalid, a default value will be returned — for | |||
| 1405 | + | // %G_VARIANT_TYPE_OBJECT_PATH, this is `"/"`, and for other types it is the | |||
| 1406 | + | // empty string. | |||
| 1407 | + | // | |||
| 1408 | + | // It is an error to call this function with a @value of any type | |||
| 1409 | + | // other than those three. | |||
| 1410 | + | // | |||
| 1411 | + | // The return value remains valid as long as @value exists. | |||
| 1412 | + | func (x *Variant) GetString(LengthVar *uint) string { | |||
| 1413 | + | cret := xVariantGetString(x.GoPointer(), LengthVar) | |||
| 1414 | + | return cret | |||
| 1415 | + | } | |||
| 1416 | + | ||||
| 1417 | + | var xVariantGetStrv func(uintptr, *uint) []string | |||
| 1418 | + | ||||
| 1419 | + | // Gets the contents of an array of strings #GVariant. This call | |||
| 1420 | + | // makes a shallow copy; the return result should be released with | |||
| 1421 | + | // g_free(), but the individual strings must not be modified. | |||
| 1422 | + | // | |||
| 1423 | + | // If @length is non-%NULL then the number of elements in the result | |||
| 1424 | + | // is stored there. In any case, the resulting array will be | |||
| 1425 | + | // %NULL-terminated. | |||
| 1426 | + | // | |||
| 1427 | + | // For an empty array, @length will be set to 0 and a pointer to a | |||
| 1428 | + | // %NULL pointer will be returned. | |||
| 1429 | + | func (x *Variant) GetStrv(LengthVar *uint) []string { | |||
| 1430 | + | cret := xVariantGetStrv(x.GoPointer(), LengthVar) | |||
| 1431 | + | return cret | |||
| 1432 | + | } | |||
| 1433 | + | ||||
| 1434 | + | var xVariantGetType func(uintptr) uintptr | |||
| 1435 | + | ||||
| 1436 | + | // Determines the type of @value. | |||
| 1437 | + | // | |||
| 1438 | + | // The return value is valid for the lifetime of @value and must not | |||
| 1439 | + | // be freed. | |||
| 1440 | + | func (x *Variant) GetType() *VariantType { | |||
| 1441 | + | cret := xVariantGetType(x.GoPointer()) | |||
| 1442 | + | if cret == 0 { | |||
| 1443 | + | return nil | |||
| 1444 | + | } | |||
| 1445 | + | return (*VariantType)(unsafe.Pointer(cret)) | |||
| 1446 | + | } | |||
| 1447 | + | ||||
| 1448 | + | var xVariantGetTypeString func(uintptr) string | |||
| 1449 | + | ||||
| 1450 | + | // Returns the type string of @value. Unlike the result of calling | |||
| 1451 | + | // g_variant_type_peek_string(), this string is nul-terminated. This | |||
| 1452 | + | // string belongs to #GVariant and must not be freed. | |||
| 1453 | + | func (x *Variant) GetTypeString() string { | |||
| 1454 | + | cret := xVariantGetTypeString(x.GoPointer()) | |||
| 1455 | + | return cret | |||
| 1456 | + | } | |||
| 1457 | + | ||||
| 1458 | + | var xVariantGetUint16 func(uintptr) uint16 | |||
| 1459 | + | ||||
| 1460 | + | // Returns the 16-bit unsigned integer value of @value. | |||
| 1461 | + | // | |||
| 1462 | + | // It is an error to call this function with a @value of any type | |||
| 1463 | + | // other than %G_VARIANT_TYPE_UINT16. | |||
| 1464 | + | func (x *Variant) GetUint16() uint16 { | |||
| 1465 | + | cret := xVariantGetUint16(x.GoPointer()) | |||
| 1466 | + | return cret | |||
| 1467 | + | } | |||
| 1468 | + | ||||
| 1469 | + | var xVariantGetUint32 func(uintptr) uint32 | |||
| 1470 | + | ||||
| 1471 | + | // Returns the 32-bit unsigned integer value of @value. | |||
| 1472 | + | // | |||
| 1473 | + | // It is an error to call this function with a @value of any type | |||
| 1474 | + | // other than %G_VARIANT_TYPE_UINT32. | |||
| 1475 | + | func (x *Variant) GetUint32() uint32 { | |||
| 1476 | + | cret := xVariantGetUint32(x.GoPointer()) | |||
| 1477 | + | return cret | |||
| 1478 | + | } | |||
| 1479 | + | ||||
| 1480 | + | var xVariantGetUint64 func(uintptr) uint64 | |||
| 1481 | + | ||||
| 1482 | + | // Returns the 64-bit unsigned integer value of @value. | |||
| 1483 | + | // | |||
| 1484 | + | // It is an error to call this function with a @value of any type | |||
| 1485 | + | // other than %G_VARIANT_TYPE_UINT64. | |||
| 1486 | + | func (x *Variant) GetUint64() uint64 { | |||
| 1487 | + | cret := xVariantGetUint64(x.GoPointer()) | |||
| 1488 | + | return cret | |||
| 1489 | + | } | |||
| 1490 | + | ||||
| 1491 | + | var xVariantGetVa func(uintptr, string, uintptr, []interface{}) | |||
| 1492 | + | ||||
| 1493 | + | // This function is intended to be used by libraries based on #GVariant | |||
| 1494 | + | // that want to provide g_variant_get()-like functionality to their | |||
| 1495 | + | // users. | |||
| 1496 | + | // | |||
| 1497 | + | // The API is more general than g_variant_get() to allow a wider range | |||
| 1498 | + | // of possible uses. | |||
| 1499 | + | // | |||
| 1500 | + | // @format_string must still point to a valid format string, but it only | |||
| 1501 | + | // need to be nul-terminated if @endptr is %NULL. If @endptr is | |||
| 1502 | + | // non-%NULL then it is updated to point to the first character past the | |||
| 1503 | + | // end of the format string. | |||
| 1504 | + | // | |||
| 1505 | + | // @app is a pointer to a #va_list. The arguments, according to | |||
| 1506 | + | // @format_string, are collected from this #va_list and the list is left | |||
| 1507 | + | // pointing to the argument following the last. | |||
| 1508 | + | // | |||
| 1509 | + | // These two generalisations allow mixing of multiple calls to | |||
| 1510 | + | // g_variant_new_va() and g_variant_get_va() within a single actual | |||
| 1511 | + | // varargs call by the user. | |||
| 1512 | + | // | |||
| 1513 | + | // @format_string determines the C types that are used for unpacking | |||
| 1514 | + | // the values and also determines if the values are copied or borrowed, | |||
| 1515 | + | // see the section on | |||
| 1516 | + | // [`GVariant` format strings](gvariant-format-strings.html#pointers). | |||
| 1517 | + | func (x *Variant) GetVa(FormatStringVar string, EndptrVar *string, AppVar []interface{}) { | |||
| 1518 | + | EndptrVarPtr := core.GStrdupNullable(EndptrVar) | |||
| 1519 | + | defer core.GFreeNullable(EndptrVarPtr) | |||
| 1520 | + | ||||
| 1521 | + | xVariantGetVa(x.GoPointer(), FormatStringVar, EndptrVarPtr, AppVar) | |||
| 1522 | + | } | |||
| 1523 | + | ||||
| 1524 | + | var xVariantGetVariant func(uintptr) uintptr | |||
| 1525 | + | ||||
| 1526 | + | // Unboxes @value. The result is the #GVariant instance that was | |||
| 1527 | + | // contained in @value. | |||
| 1528 | + | func (x *Variant) GetVariant() *Variant { | |||
| 1529 | + | cret := xVariantGetVariant(x.GoPointer()) | |||
| 1530 | + | if cret == 0 { | |||
| 1531 | + | return nil | |||
| 1532 | + | } | |||
| 1533 | + | return (*Variant)(unsafe.Pointer(cret)) | |||
| 1534 | + | } | |||
| 1535 | + | ||||
| 1536 | + | var xVariantHash func(uintptr) uint | |||
| 1537 | + | ||||
| 1538 | + | // Generates a hash value for a #GVariant instance. | |||
| 1539 | + | // | |||
| 1540 | + | // The output of this function is guaranteed to be the same for a given | |||
| 1541 | + | // value only per-process. It may change between different processor | |||
| 1542 | + | // architectures or even different versions of GLib. Do not use this | |||
| 1543 | + | // function as a basis for building protocols or file formats. | |||
| 1544 | + | // | |||
| 1545 | + | // The type of @value is #gconstpointer only to allow use of this | |||
| 1546 | + | // function with #GHashTable. @value must be a #GVariant. | |||
| 1547 | + | func (x *Variant) Hash() uint { | |||
| 1548 | + | cret := xVariantHash(x.GoPointer()) | |||
| 1549 | + | return cret | |||
| 1550 | + | } | |||
| 1551 | + | ||||
| 1552 | + | var xVariantIsContainer func(uintptr) bool | |||
| 1553 | + | ||||
| 1554 | + | // Checks if @value is a container. | |||
| 1555 | + | func (x *Variant) IsContainer() bool { | |||
| 1556 | + | cret := xVariantIsContainer(x.GoPointer()) | |||
| 1557 | + | return cret | |||
| 1558 | + | } | |||
| 1559 | + | ||||
| 1560 | + | var xVariantIsFloating func(uintptr) bool | |||
| 1561 | + | ||||
| 1562 | + | // Checks whether @value has a floating reference count. | |||
| 1563 | + | // | |||
| 1564 | + | // This function should only ever be used to assert that a given variant | |||
| 1565 | + | // is or is not floating, or for debug purposes. To acquire a reference | |||
| 1566 | + | // to a variant that might be floating, always use g_variant_ref_sink() | |||
| 1567 | + | // or g_variant_take_ref(). | |||
| 1568 | + | // | |||
| 1569 | + | // See g_variant_ref_sink() for more information about floating reference | |||
| 1570 | + | // counts. | |||
| 1571 | + | func (x *Variant) IsFloating() bool { | |||
| 1572 | + | cret := xVariantIsFloating(x.GoPointer()) | |||
| 1573 | + | return cret | |||
| 1574 | + | } | |||
| 1575 | + | ||||
| 1576 | + | var xVariantIsNormalForm func(uintptr) bool | |||
| 1577 | + | ||||
| 1578 | + | // Checks if @value is in normal form. | |||
| 1579 | + | // | |||
| 1580 | + | // The main reason to do this is to detect if a given chunk of | |||
| 1581 | + | // serialized data is in normal form: load the data into a #GVariant | |||
| 1582 | + | // using g_variant_new_from_data() and then use this function to | |||
| 1583 | + | // check. | |||
| 1584 | + | // | |||
| 1585 | + | // If @value is found to be in normal form then it will be marked as | |||
| 1586 | + | // being trusted. If the value was already marked as being trusted then | |||
| 1587 | + | // this function will immediately return %TRUE. | |||
| 1588 | + | // | |||
| 1589 | + | // There may be implementation specific restrictions on deeply nested values. | |||
| 1590 | + | // GVariant is guaranteed to handle nesting up to at least 64 levels. | |||
| 1591 | + | func (x *Variant) IsNormalForm() bool { | |||
| 1592 | + | cret := xVariantIsNormalForm(x.GoPointer()) | |||
| 1593 | + | return cret | |||
| 1594 | + | } | |||
| 1595 | + | ||||
| 1596 | + | var xVariantIsOfType func(uintptr, *VariantType) bool | |||
| 1597 | + | ||||
| 1598 | + | // Checks if a value has a type matching the provided type. | |||
| 1599 | + | func (x *Variant) IsOfType(TypeVar *VariantType) bool { | |||
| 1600 | + | cret := xVariantIsOfType(x.GoPointer(), TypeVar) | |||
| 1601 | + | return cret | |||
| 1602 | + | } | |||
| 1603 | + | ||||
| 1604 | + | var xVariantIterNew func(uintptr) uintptr | |||
| 1605 | + | ||||
| 1606 | + | // Creates a heap-allocated #GVariantIter for iterating over the items | |||
| 1607 | + | // in @value. | |||
| 1608 | + | // | |||
| 1609 | + | // Use g_variant_iter_free() to free the return value when you no longer | |||
| 1610 | + | // need it. | |||
| 1611 | + | // | |||
| 1612 | + | // A reference is taken to @value and will be released only when | |||
| 1613 | + | // g_variant_iter_free() is called. | |||
| 1614 | + | func (x *Variant) IterNew() *VariantIter { | |||
| 1615 | + | cret := xVariantIterNew(x.GoPointer()) | |||
| 1616 | + | if cret == 0 { | |||
| 1617 | + | return nil | |||
| 1618 | + | } | |||
| 1619 | + | return (*VariantIter)(unsafe.Pointer(cret)) | |||
| 1620 | + | } | |||
| 1621 | + | ||||
| 1622 | + | var xVariantLookup func(uintptr, string, string, ...interface{}) bool | |||
| 1623 | + | ||||
| 1624 | + | // Looks up a value in a dictionary #GVariant. | |||
| 1625 | + | // | |||
| 1626 | + | // This function is a wrapper around g_variant_lookup_value() and | |||
| 1627 | + | // g_variant_get(). In the case that %NULL would have been returned, | |||
| 1628 | + | // this function returns %FALSE. Otherwise, it unpacks the returned | |||
| 1629 | + | // value and returns %TRUE. | |||
| 1630 | + | // | |||
| 1631 | + | // @format_string determines the C types that are used for unpacking | |||
| 1632 | + | // the values and also determines if the values are copied or borrowed, | |||
| 1633 | + | // see the section on | |||
| 1634 | + | // [`GVariant` format strings](gvariant-format-strings.html#pointers). | |||
| 1635 | + | // | |||
| 1636 | + | // This function is currently implemented with a linear scan. If you | |||
| 1637 | + | // plan to do many lookups then #GVariantDict may be more efficient. | |||
| 1638 | + | func (x *Variant) Lookup(KeyVar string, FormatStringVar string, varArgs ...interface{}) bool { | |||
| 1639 | + | cret := xVariantLookup(x.GoPointer(), KeyVar, FormatStringVar, varArgs...) | |||
| 1640 | + | return cret | |||
| 1641 | + | } | |||
| 1642 | + | ||||
| 1643 | + | var xVariantLookupValue func(uintptr, string, *VariantType) uintptr | |||
| 1644 | + | ||||
| 1645 | + | // Looks up a value in a dictionary #GVariant. | |||
| 1646 | + | // | |||
| 1647 | + | // This function works with dictionaries of the type `a{s*}` (and equally | |||
| 1648 | + | // well with type `a{o*}`), but we only further discuss the string case | |||
| 1649 | + | // for sake of clarity). | |||
| 1650 | + | // | |||
| 1651 | + | // In the event that @dictionary has the type `a{sv}`, the @expected_type | |||
| 1652 | + | // string specifies what type of value is expected to be inside of the | |||
| 1653 | + | // variant. If the value inside the variant has a different type then | |||
| 1654 | + | // %NULL is returned. In the event that @dictionary has a value type other | |||
| 1655 | + | // than v then @expected_type must directly match the value type and it is | |||
| 1656 | + | // used to unpack the value directly or an error occurs. | |||
| 1657 | + | // | |||
| 1658 | + | // In either case, if @key is not found in @dictionary, %NULL is returned. | |||
| 1659 | + | // | |||
| 1660 | + | // If the key is found and the value has the correct type, it is | |||
| 1661 | + | // returned. If @expected_type was specified then any non-%NULL return | |||
| 1662 | + | // value will have this type. | |||
| 1663 | + | // | |||
| 1664 | + | // This function is currently implemented with a linear scan. If you | |||
| 1665 | + | // plan to do many lookups then [struct@VariantDict] may be more efficient. | |||
| 1666 | + | func (x *Variant) LookupValue(KeyVar string, ExpectedTypeVar *VariantType) *Variant { | |||
| 1667 | + | cret := xVariantLookupValue(x.GoPointer(), KeyVar, ExpectedTypeVar) | |||
| 1668 | + | if cret == 0 { | |||
| 1669 | + | return nil | |||
| 1670 | + | } | |||
| 1671 | + | return (*Variant)(unsafe.Pointer(cret)) | |||
| 1672 | + | } | |||
| 1673 | + | ||||
| 1674 | + | var xVariantNChildren func(uintptr) uint | |||
| 1675 | + | ||||
| 1676 | + | // Determines the number of children in a container #GVariant instance. | |||
| 1677 | + | // This includes variants, maybes, arrays, tuples and dictionary | |||
| 1678 | + | // entries. It is an error to call this function on any other type of | |||
| 1679 | + | // #GVariant. | |||
| 1680 | + | // | |||
| 1681 | + | // For variants, the return value is always 1. For values with maybe | |||
| 1682 | + | // types, it is always zero or one. For arrays, it is the length of the | |||
| 1683 | + | // array. For tuples it is the number of tuple items (which depends | |||
| 1684 | + | // only on the type). For dictionary entries, it is always 2 | |||
| 1685 | + | // | |||
| 1686 | + | // This function is O(1). | |||
| 1687 | + | func (x *Variant) NChildren() uint { | |||
| 1688 | + | cret := xVariantNChildren(x.GoPointer()) | |||
| 1689 | + | return cret | |||
| 1690 | + | } | |||
| 1691 | + | ||||
| 1692 | + | var xVariantPrint func(uintptr, bool) string | |||
| 1693 | + | ||||
| 1694 | + | // Pretty-prints @value in the format understood by g_variant_parse(). | |||
| 1695 | + | // | |||
| 1696 | + | // The format is described [here](gvariant-text-format.html). | |||
| 1697 | + | // | |||
| 1698 | + | // If @type_annotate is %TRUE, then type information is included in | |||
| 1699 | + | // the output. | |||
| 1700 | + | func (x *Variant) Print(TypeAnnotateVar bool) string { | |||
| 1701 | + | cret := xVariantPrint(x.GoPointer(), TypeAnnotateVar) | |||
| 1702 | + | return cret | |||
| 1703 | + | } | |||
| 1704 | + | ||||
| 1705 | + | var xVariantPrintString func(uintptr, *String, bool) uintptr | |||
| 1706 | + | ||||
| 1707 | + | // Behaves as g_variant_print(), but operates on a #GString. | |||
| 1708 | + | // | |||
| 1709 | + | // If @string is non-%NULL then it is appended to and returned. Else, | |||
| 1710 | + | // a new empty #GString is allocated and it is returned. | |||
| 1711 | + | func (x *Variant) PrintString(StringVar *String, TypeAnnotateVar bool) *String { | |||
| 1712 | + | cret := xVariantPrintString(x.GoPointer(), StringVar, TypeAnnotateVar) | |||
| 1713 | + | if cret == 0 { | |||
| 1714 | + | return nil | |||
| 1715 | + | } | |||
| 1716 | + | return (*String)(unsafe.Pointer(cret)) | |||
| 1717 | + | } | |||
| 1718 | + | ||||
| 1719 | + | var xVariantRef func(uintptr) uintptr | |||
| 1720 | + | ||||
| 1721 | + | // Increases the reference count of @value. | |||
| 1722 | + | func (x *Variant) Ref() *Variant { | |||
| 1723 | + | cret := xVariantRef(x.GoPointer()) | |||
| 1724 | + | if cret == 0 { | |||
| 1725 | + | return nil | |||
| 1726 | + | } | |||
| 1727 | + | return (*Variant)(unsafe.Pointer(cret)) | |||
| 1728 | + | } | |||
| 1729 | + | ||||
| 1730 | + | var xVariantRefSink func(uintptr) uintptr | |||
| 1731 | + | ||||
| 1732 | + | // #GVariant uses a floating reference count system. All functions with | |||
| 1733 | + | // names starting with `g_variant_new_` return floating | |||
| 1734 | + | // references. | |||
| 1735 | + | // | |||
| 1736 | + | // Calling g_variant_ref_sink() on a #GVariant with a floating reference | |||
| 1737 | + | // will convert the floating reference into a full reference. Calling | |||
| 1738 | + | // g_variant_ref_sink() on a non-floating #GVariant results in an | |||
| 1739 | + | // additional normal reference being added. | |||
| 1740 | + | // | |||
| 1741 | + | // In other words, if the @value is floating, then this call "assumes | |||
| 1742 | + | // ownership" of the floating reference, converting it to a normal | |||
| 1743 | + | // reference. If the @value is not floating, then this call adds a | |||
| 1744 | + | // new normal reference increasing the reference count by one. | |||
| 1745 | + | // | |||
| 1746 | + | // All calls that result in a #GVariant instance being inserted into a | |||
| 1747 | + | // container will call g_variant_ref_sink() on the instance. This means | |||
| 1748 | + | // that if the value was just created (and has only its floating | |||
| 1749 | + | // reference) then the container will assume sole ownership of the value | |||
| 1750 | + | // at that point and the caller will not need to unreference it. This | |||
| 1751 | + | // makes certain common styles of programming much easier while still | |||
| 1752 | + | // maintaining normal refcounting semantics in situations where values | |||
| 1753 | + | // are not floating. | |||
| 1754 | + | func (x *Variant) RefSink() *Variant { | |||
| 1755 | + | cret := xVariantRefSink(x.GoPointer()) | |||
| 1756 | + | if cret == 0 { | |||
| 1757 | + | return nil | |||
| 1758 | + | } | |||
| 1759 | + | return (*Variant)(unsafe.Pointer(cret)) | |||
| 1760 | + | } | |||
| 1761 | + | ||||
| 1762 | + | var xVariantStore func(uintptr, uintptr) | |||
| 1763 | + | ||||
| 1764 | + | // Stores the serialized form of @value at @data. @data should be | |||
| 1765 | + | // large enough. See g_variant_get_size(). | |||
| 1766 | + | // | |||
| 1767 | + | // The stored data is in machine native byte order but may not be in | |||
| 1768 | + | // fully-normalised form if read from an untrusted source. See | |||
| 1769 | + | // g_variant_get_normal_form() for a solution. | |||
| 1770 | + | // | |||
| 1771 | + | // As with g_variant_get_data(), to be able to deserialize the | |||
| 1772 | + | // serialized variant successfully, its type and (if the destination | |||
| 1773 | + | // machine might be different) its endianness must also be available. | |||
| 1774 | + | // | |||
| 1775 | + | // This function is approximately O(n) in the size of @data. | |||
| 1776 | + | func (x *Variant) Store(DataVar uintptr) { | |||
| 1777 | + | xVariantStore(x.GoPointer(), DataVar) | |||
| 1778 | + | } | |||
| 1779 | + | ||||
| 1780 | + | var xVariantTakeRef func(uintptr) uintptr | |||
| 1781 | + | ||||
| 1782 | + | // If @value is floating, sink it. Otherwise, do nothing. | |||
| 1783 | + | // | |||
| 1784 | + | // Typically you want to use g_variant_ref_sink() in order to | |||
| 1785 | + | // automatically do the correct thing with respect to floating or | |||
| 1786 | + | // non-floating references, but there is one specific scenario where | |||
| 1787 | + | // this function is helpful. | |||
| 1788 | + | // | |||
| 1789 | + | // The situation where this function is helpful is when creating an API | |||
| 1790 | + | // that allows the user to provide a callback function that returns a | |||
| 1791 | + | // #GVariant. We certainly want to allow the user the flexibility to | |||
| 1792 | + | // return a non-floating reference from this callback (for the case | |||
| 1793 | + | // where the value that is being returned already exists). | |||
| 1794 | + | // | |||
| 1795 | + | // At the same time, the style of the #GVariant API makes it likely that | |||
| 1796 | + | // for newly-created #GVariant instances, the user can be saved some | |||
| 1797 | + | // typing if they are allowed to return a #GVariant with a floating | |||
| 1798 | + | // reference. | |||
| 1799 | + | // | |||
| 1800 | + | // Using this function on the return value of the user's callback allows | |||
| 1801 | + | // the user to do whichever is more convenient for them. The caller | |||
| 1802 | + | // will always receives exactly one full reference to the value: either | |||
| 1803 | + | // the one that was returned in the first place, or a floating reference | |||
| 1804 | + | // that has been converted to a full reference. | |||
| 1805 | + | // | |||
| 1806 | + | // This function has an odd interaction when combined with | |||
| 1807 | + | // g_variant_ref_sink() running at the same time in another thread on | |||
| 1808 | + | // the same #GVariant instance. If g_variant_ref_sink() runs first then | |||
| 1809 | + | // the result will be that the floating reference is converted to a hard | |||
| 1810 | + | // reference. If g_variant_take_ref() runs first then the result will | |||
| 1811 | + | // be that the floating reference is converted to a hard reference and | |||
| 1812 | + | // an additional reference on top of that one is added. It is best to | |||
| 1813 | + | // avoid this situation. | |||
| 1814 | + | func (x *Variant) TakeRef() *Variant { | |||
| 1815 | + | cret := xVariantTakeRef(x.GoPointer()) | |||
| 1816 | + | if cret == 0 { | |||
| 1817 | + | return nil | |||
| 1818 | + | } | |||
| 1819 | + | return (*Variant)(unsafe.Pointer(cret)) | |||
| 1820 | + | } | |||
| 1821 | + | ||||
| 1822 | + | var xVariantUnref func(uintptr) | |||
| 1823 | + | ||||
| 1824 | + | // Decreases the reference count of @value. When its reference count | |||
| 1825 | + | // drops to 0, the memory used by the variant is freed. | |||
| 1826 | + | func (x *Variant) Unref() { | |||
| 1827 | + | xVariantUnref(x.GoPointer()) | |||
| 1828 | + | } | |||
| 1829 | + | ||||
| 1830 | + | // A utility type for constructing container-type #GVariant instances. | |||
| 1831 | + | // | |||
| 1832 | + | // This is an opaque structure and may only be accessed using the | |||
| 1833 | + | // following functions. | |||
| 1834 | + | // | |||
| 1835 | + | // #GVariantBuilder is not threadsafe in any way. Do not attempt to | |||
| 1836 | + | // access it from more than one thread. | |||
| 1837 | + | type VariantBuilder struct { | |||
| 1838 | + | _ structs.HostLayout | |||
| 1839 | + | } | |||
| 1840 | + | ||||
| 1841 | + | var xVariantBuilderGLibType func() types.GType | |||
| 1842 | + | ||||
| 1843 | + | func VariantBuilderGLibType() types.GType { | |||
| 1844 | + | return xVariantBuilderGLibType() | |||
| 1845 | + | } | |||
| 1846 | + | ||||
| 1847 | + | func (x *VariantBuilder) GoPointer() uintptr { | |||
| 1848 | + | return uintptr(unsafe.Pointer(x)) | |||
| 1849 | + | } | |||
| 1850 | + | ||||
| 1851 | + | func VariantBuilderNewFromInternalPtr(ptr uintptr) *VariantBuilder { | |||
| 1852 | + | if ptr == 0 { | |||
| 1853 | + | return nil | |||
| 1854 | + | } | |||
| 1855 | + | rawPtr := *(*unsafe.Pointer)(unsafe.Pointer(&ptr)) | |||
| 1856 | + | return (*VariantBuilder)(rawPtr) | |||
| 1857 | + | } | |||
| 1858 | + | ||||
| 1859 | + | var xNewVariantBuilder func(*VariantType) uintptr | |||
| 1860 | + | ||||
| 1861 | + | // Allocates and initialises a new #GVariantBuilder. | |||
| 1862 | + | // | |||
| 1863 | + | // You should call g_variant_builder_unref() on the return value when it | |||
| 1864 | + | // is no longer needed. The memory will not be automatically freed by | |||
| 1865 | + | // any other call. | |||
| 1866 | + | // | |||
| 1867 | + | // In most cases it is easier to place a #GVariantBuilder directly on | |||
| 1868 | + | // the stack of the calling function and initialise it with | |||
| 1869 | + | // g_variant_builder_init_static(). | |||
| 1870 | + | func NewVariantBuilder(TypeVar *VariantType) *VariantBuilder { | |||
| 1871 | + | cret := xNewVariantBuilder(TypeVar) | |||
| 1872 | + | if cret == 0 { | |||
| 1873 | + | return nil | |||
| 1874 | + | } | |||
| 1875 | + | return (*VariantBuilder)(unsafe.Pointer(cret)) | |||
| 1876 | + | } | |||
| 1877 | + | ||||
| 1878 | + | var xVariantBuilderAdd func(uintptr, string, ...interface{}) | |||
| 1879 | + | ||||
| 1880 | + | // Adds to a #GVariantBuilder. | |||
| 1881 | + | // | |||
| 1882 | + | // This call is a convenience wrapper that is exactly equivalent to | |||
| 1883 | + | // calling g_variant_new() followed by g_variant_builder_add_value(). | |||
| 1884 | + | // | |||
| 1885 | + | // Note that the arguments must be of the correct width for their types | |||
| 1886 | + | // specified in @format_string. This can be achieved by casting them. See | |||
| 1887 | + | // the [GVariant varargs documentation](gvariant-format-strings.html#varargs). | |||
| 1888 | + | // | |||
| 1889 | + | // This function might be used as follows: | |||
| 1890 | + | // | |||
| 1891 | + | // |[<!-- language="C" --> | |||
| 1892 | + | // GVariant * | |||
| 1893 | + | // make_pointless_dictionary (void) | |||
| 1894 | + | // | |||
| 1895 | + | // { | |||
| 1896 | + | // GVariantBuilder builder; | |||
| 1897 | + | // int i; | |||
| 1898 | + | // | |||
| 1899 | + | // g_variant_builder_init_static (&builder, G_VARIANT_TYPE_ARRAY); | |||
| 1900 | + | // for (i = 0; i < 16; i++) | |||
| 1901 | + | // { | |||
| 1902 | + | // gchar buf[3]; | |||
| 1903 | + | // | |||
| 1904 | + | // sprintf (buf, "%d", i); | |||
| 1905 | + | // g_variant_builder_add (&builder, "{is}", i, buf); | |||
| 1906 | + | // } | |||
| 1907 | + | // | |||
| 1908 | + | // return g_variant_builder_end (&builder); | |||
| 1909 | + | // } | |||
| 1910 | + | // | |||
| 1911 | + | // ]| | |||
| 1912 | + | func (x *VariantBuilder) Add(FormatStringVar string, varArgs ...interface{}) { | |||
| 1913 | + | xVariantBuilderAdd(x.GoPointer(), FormatStringVar, varArgs...) | |||
| 1914 | + | } | |||
| 1915 | + | ||||
| 1916 | + | var xVariantBuilderAddParsed func(uintptr, string, ...interface{}) | |||
| 1917 | + | ||||
| 1918 | + | // Adds to a #GVariantBuilder. | |||
| 1919 | + | // | |||
| 1920 | + | // This call is a convenience wrapper that is exactly equivalent to | |||
| 1921 | + | // calling g_variant_new_parsed() followed by | |||
| 1922 | + | // g_variant_builder_add_value(). | |||
| 1923 | + | // | |||
| 1924 | + | // Note that the arguments must be of the correct width for their types | |||
| 1925 | + | // specified in @format_string. This can be achieved by casting them. See | |||
| 1926 | + | // the [GVariant varargs documentation](gvariant-format-strings.html#varargs). | |||
| 1927 | + | // | |||
| 1928 | + | // This function might be used as follows: | |||
| 1929 | + | // | |||
| 1930 | + | // |[<!-- language="C" --> | |||
| 1931 | + | // GVariant * | |||
| 1932 | + | // make_pointless_dictionary (void) | |||
| 1933 | + | // | |||
| 1934 | + | // { | |||
| 1935 | + | // GVariantBuilder builder; | |||
| 1936 | + | // int i; | |||
| 1937 | + | // | |||
| 1938 | + | // g_variant_builder_init_static (&builder, G_VARIANT_TYPE_ARRAY); | |||
| 1939 | + | // g_variant_builder_add_parsed (&builder, "{'width', <%i>}", 600); | |||
| 1940 | + | // g_variant_builder_add_parsed (&builder, "{'title', <%s>}", "foo"); | |||
| 1941 | + | // g_variant_builder_add_parsed (&builder, "{'transparency', <0.5>}"); | |||
| 1942 | + | // return g_variant_builder_end (&builder); | |||
| 1943 | + | // } | |||
| 1944 | + | // | |||
| 1945 | + | // ]| | |||
| 1946 | + | func (x *VariantBuilder) AddParsed(FormatVar string, varArgs ...interface{}) { | |||
| 1947 | + | xVariantBuilderAddParsed(x.GoPointer(), FormatVar, varArgs...) | |||
| 1948 | + | } | |||
| 1949 | + | ||||
| 1950 | + | var xVariantBuilderAddValue func(uintptr, *Variant) | |||
| 1951 | + | ||||
| 1952 | + | // Adds @value to @builder. | |||
| 1953 | + | // | |||
| 1954 | + | // It is an error to call this function in any way that would create an | |||
| 1955 | + | // inconsistent value to be constructed. Some examples of this are | |||
| 1956 | + | // putting different types of items into an array, putting the wrong | |||
| 1957 | + | // types or number of items in a tuple, putting more than one value into | |||
| 1958 | + | // a variant, etc. | |||
| 1959 | + | // | |||
| 1960 | + | // If @value is a floating reference (see g_variant_ref_sink()), | |||
| 1961 | + | // the @builder instance takes ownership of @value. | |||
| 1962 | + | func (x *VariantBuilder) AddValue(ValueVar *Variant) { | |||
| 1963 | + | xVariantBuilderAddValue(x.GoPointer(), ValueVar) | |||
| 1964 | + | } | |||
| 1965 | + | ||||
| 1966 | + | var xVariantBuilderClear func(uintptr) | |||
| 1967 | + | ||||
| 1968 | + | // Releases all memory associated with a #GVariantBuilder without | |||
| 1969 | + | // freeing the #GVariantBuilder structure itself. | |||
| 1970 | + | // | |||
| 1971 | + | // It typically only makes sense to do this on a stack-allocated | |||
| 1972 | + | // #GVariantBuilder if you want to abort building the value part-way | |||
| 1973 | + | // through. This function need not be called if you call | |||
| 1974 | + | // g_variant_builder_end() and it also doesn't need to be called on | |||
| 1975 | + | // builders allocated with g_variant_builder_new() (see | |||
| 1976 | + | // g_variant_builder_unref() for that). | |||
| 1977 | + | // | |||
| 1978 | + | // This function leaves the #GVariantBuilder structure set to all-zeros. | |||
| 1979 | + | // It is valid to call this function on either an initialised | |||
| 1980 | + | // #GVariantBuilder or one that is set to all-zeros but it is not valid | |||
| 1981 | + | // to call this function on uninitialised memory. | |||
| 1982 | + | func (x *VariantBuilder) Clear() { | |||
| 1983 | + | xVariantBuilderClear(x.GoPointer()) | |||
| 1984 | + | } | |||
| 1985 | + | ||||
| 1986 | + | var xVariantBuilderClose func(uintptr) | |||
| 1987 | + | ||||
| 1988 | + | // Closes the subcontainer inside the given @builder that was opened by | |||
| 1989 | + | // the most recent call to g_variant_builder_open(). | |||
| 1990 | + | // | |||
| 1991 | + | // It is an error to call this function in any way that would create an | |||
| 1992 | + | // inconsistent value to be constructed (ie: too few values added to the | |||
| 1993 | + | // subcontainer). | |||
| 1994 | + | func (x *VariantBuilder) Close() { | |||
| 1995 | + | xVariantBuilderClose(x.GoPointer()) | |||
| 1996 | + | } | |||
| 1997 | + | ||||
| 1998 | + | var xVariantBuilderEnd func(uintptr) uintptr | |||
| 1999 | + | ||||
| 2000 | + | // Ends the builder process and returns the constructed value. | |||
| 2001 | + | // | |||
| 2002 | + | // It is not permissible to use @builder in any way after this call | |||
| 2003 | + | // except for reference counting operations (in the case of a | |||
| 2004 | + | // heap-allocated #GVariantBuilder) or by reinitialising it with | |||
| 2005 | + | // g_variant_builder_init() (in the case of stack-allocated). This | |||
| 2006 | + | // means that for the stack-allocated builders there is no need to | |||
| 2007 | + | // call g_variant_builder_clear() after the call to | |||
| 2008 | + | // g_variant_builder_end(). | |||
| 2009 | + | // | |||
| 2010 | + | // It is an error to call this function in any way that would create an | |||
| 2011 | + | // inconsistent value to be constructed (ie: insufficient number of | |||
| 2012 | + | // items added to a container with a specific number of children | |||
| 2013 | + | // required). It is also an error to call this function if the builder | |||
| 2014 | + | // was created with an indefinite array or maybe type and no children | |||
| 2015 | + | // have been added; in this case it is impossible to infer the type of | |||
| 2016 | + | // the empty array. | |||
| 2017 | + | func (x *VariantBuilder) End() *Variant { | |||
| 2018 | + | cret := xVariantBuilderEnd(x.GoPointer()) | |||
| 2019 | + | if cret == 0 { | |||
| 2020 | + | return nil | |||
| 2021 | + | } | |||
| 2022 | + | return (*Variant)(unsafe.Pointer(cret)) | |||
| 2023 | + | } | |||
| 2024 | + | ||||
| 2025 | + | var xVariantBuilderInit func(uintptr, *VariantType) | |||
| 2026 | + | ||||
| 2027 | + | // Initialises a #GVariantBuilder structure. | |||
| 2028 | + | // | |||
| 2029 | + | // @type must be non-%NULL. It specifies the type of container to | |||
| 2030 | + | // construct. It can be an indefinite type such as | |||
| 2031 | + | // %G_VARIANT_TYPE_ARRAY or a definite type such as "as" or "(ii)". | |||
| 2032 | + | // Maybe, array, tuple, dictionary entry and variant-typed values may be | |||
| 2033 | + | // constructed. | |||
| 2034 | + | // | |||
| 2035 | + | // If using a static type such as one of the `G_VARIANT_TYPE_*` constants | |||
| 2036 | + | // or a `G_VARIANT_TYPE ("(ii)")` macro, it is more performant to use | |||
| 2037 | + | // g_variant_builder_init_static() rather than g_variant_builder_init(). | |||
| 2038 | + | // | |||
| 2039 | + | // After the builder is initialised, values are added using | |||
| 2040 | + | // g_variant_builder_add_value() or g_variant_builder_add(). | |||
| 2041 | + | // | |||
| 2042 | + | // After all the child values are added, g_variant_builder_end() frees | |||
| 2043 | + | // the memory associated with the builder and returns the #GVariant that | |||
| 2044 | + | // was created. | |||
| 2045 | + | // | |||
| 2046 | + | // This function completely ignores the previous contents of @builder. | |||
| 2047 | + | // On one hand this means that it is valid to pass in completely | |||
| 2048 | + | // uninitialised memory. On the other hand, this means that if you are | |||
| 2049 | + | // initialising over top of an existing #GVariantBuilder you need to | |||
| 2050 | + | // first call g_variant_builder_clear() in order to avoid leaking | |||
| 2051 | + | // memory. | |||
| 2052 | + | // | |||
| 2053 | + | // You must not call g_variant_builder_ref() or | |||
| 2054 | + | // g_variant_builder_unref() on a #GVariantBuilder that was initialised | |||
| 2055 | + | // with this function. If you ever pass a reference to a | |||
| 2056 | + | // #GVariantBuilder outside of the control of your own code then you | |||
| 2057 | + | // should assume that the person receiving that reference may try to use | |||
| 2058 | + | // reference counting; you should use g_variant_builder_new() instead of | |||
| 2059 | + | // this function. | |||
| 2060 | + | func (x *VariantBuilder) Init(TypeVar *VariantType) { | |||
| 2061 | + | xVariantBuilderInit(x.GoPointer(), TypeVar) | |||
| 2062 | + | } | |||
| 2063 | + | ||||
| 2064 | + | var xVariantBuilderInitStatic func(uintptr, *VariantType) | |||
| 2065 | + | ||||
| 2066 | + | // Initialises a #GVariantBuilder structure. | |||
| 2067 | + | // | |||
| 2068 | + | // This function works exactly like g_variant_builder_init() but does | |||
| 2069 | + | // not make a copy of @type. Therefore, @type must remain valid for the | |||
| 2070 | + | // lifetime of @builder. This is always true of type constants like | |||
| 2071 | + | // `G_VARIANT_TYPE_*` or `G_VARIANT_TYPE ("(ii)")`. | |||
| 2072 | + | func (x *VariantBuilder) InitStatic(TypeVar *VariantType) { | |||
| 2073 | + | xVariantBuilderInitStatic(x.GoPointer(), TypeVar) | |||
| 2074 | + | } | |||
| 2075 | + | ||||
| 2076 | + | var xVariantBuilderOpen func(uintptr, *VariantType) | |||
| 2077 | + | ||||
| 2078 | + | // Opens a subcontainer inside the given @builder. When done adding | |||
| 2079 | + | // items to the subcontainer, g_variant_builder_close() must be called. @type | |||
| 2080 | + | // is the type of the container: so to build a tuple of several values, @type | |||
| 2081 | + | // must include the tuple itself. | |||
| 2082 | + | // | |||
| 2083 | + | // It is an error to call this function in any way that would cause an | |||
| 2084 | + | // inconsistent value to be constructed (ie: adding too many values or | |||
| 2085 | + | // a value of an incorrect type). | |||
| 2086 | + | // | |||
| 2087 | + | // Example of building a nested variant: | |||
| 2088 | + | // |[<!-- language="C" --> | |||
| 2089 | + | // GVariantBuilder builder; | |||
| 2090 | + | // guint32 some_number = get_number (); | |||
| 2091 | + | // g_autoptr (GHashTable) some_dict = get_dict (); | |||
| 2092 | + | // GHashTableIter iter; | |||
| 2093 | + | // const gchar *key; | |||
| 2094 | + | // const GVariant *value; | |||
| 2095 | + | // g_autoptr (GVariant) output = NULL; | |||
| 2096 | + | // | |||
| 2097 | + | // g_variant_builder_init (&builder, G_VARIANT_TYPE ("(ua{sv})")); | |||
| 2098 | + | // g_variant_builder_add (&builder, "u", some_number); | |||
| 2099 | + | // g_variant_builder_open (&builder, G_VARIANT_TYPE ("a{sv}")); | |||
| 2100 | + | // | |||
| 2101 | + | // g_hash_table_iter_init (&iter, some_dict); | |||
| 2102 | + | // while (g_hash_table_iter_next (&iter, (gpointer *) &key, (gpointer *) &value)) | |||
| 2103 | + | // | |||
| 2104 | + | // { | |||
| 2105 | + | // g_variant_builder_open (&builder, G_VARIANT_TYPE ("{sv}")); | |||
| 2106 | + | // g_variant_builder_add (&builder, "s", key); | |||
| 2107 | + | // g_variant_builder_add (&builder, "v", value); | |||
| 2108 | + | // g_variant_builder_close (&builder); | |||
| 2109 | + | // } | |||
| 2110 | + | // | |||
| 2111 | + | // g_variant_builder_close (&builder); | |||
| 2112 | + | // | |||
| 2113 | + | // output = g_variant_builder_end (&builder); | |||
| 2114 | + | // ]| | |||
| 2115 | + | func (x *VariantBuilder) Open(TypeVar *VariantType) { | |||
| 2116 | + | xVariantBuilderOpen(x.GoPointer(), TypeVar) | |||
| 2117 | + | } | |||
| 2118 | + | ||||
| 2119 | + | var xVariantBuilderRef func(uintptr) uintptr | |||
| 2120 | + | ||||
| 2121 | + | // Increases the reference count on @builder. | |||
| 2122 | + | // | |||
| 2123 | + | // Don't call this on stack-allocated #GVariantBuilder instances or bad | |||
| 2124 | + | // things will happen. | |||
| 2125 | + | func (x *VariantBuilder) Ref() *VariantBuilder { | |||
| 2126 | + | cret := xVariantBuilderRef(x.GoPointer()) | |||
| 2127 | + | if cret == 0 { | |||
| 2128 | + | return nil | |||
| 2129 | + | } | |||
| 2130 | + | return (*VariantBuilder)(unsafe.Pointer(cret)) | |||
| 2131 | + | } | |||
| 2132 | + | ||||
| 2133 | + | var xVariantBuilderUnref func(uintptr) | |||
| 2134 | + | ||||
| 2135 | + | // Decreases the reference count on @builder. | |||
| 2136 | + | // | |||
| 2137 | + | // In the event that there are no more references, releases all memory | |||
| 2138 | + | // associated with the #GVariantBuilder. | |||
| 2139 | + | // | |||
| 2140 | + | // Don't call this on stack-allocated #GVariantBuilder instances or bad | |||
| 2141 | + | // things will happen. | |||
| 2142 | + | func (x *VariantBuilder) Unref() { | |||
| 2143 | + | xVariantBuilderUnref(x.GoPointer()) | |||
| 2144 | + | } | |||
| 2145 | + | ||||
| 2146 | + | // #GVariantDict is a mutable interface to #GVariant dictionaries. | |||
| 2147 | + | // | |||
| 2148 | + | // It can be used for doing a sequence of dictionary lookups in an | |||
| 2149 | + | // efficient way on an existing #GVariant dictionary or it can be used | |||
| 2150 | + | // to construct new dictionaries with a hashtable-like interface. It | |||
| 2151 | + | // can also be used for taking existing dictionaries and modifying them | |||
| 2152 | + | // in order to create new ones. | |||
| 2153 | + | // | |||
| 2154 | + | // #GVariantDict can only be used with %G_VARIANT_TYPE_VARDICT | |||
| 2155 | + | // dictionaries. | |||
| 2156 | + | // | |||
| 2157 | + | // It is possible to use #GVariantDict allocated on the stack or on the | |||
| 2158 | + | // heap. When using a stack-allocated #GVariantDict, you begin with a | |||
| 2159 | + | // call to g_variant_dict_init() and free the resources with a call to | |||
| 2160 | + | // g_variant_dict_clear(). | |||
| 2161 | + | // | |||
| 2162 | + | // Heap-allocated #GVariantDict follows normal refcounting rules: you | |||
| 2163 | + | // allocate it with g_variant_dict_new() and use g_variant_dict_ref() | |||
| 2164 | + | // and g_variant_dict_unref(). | |||
| 2165 | + | // | |||
| 2166 | + | // g_variant_dict_end() is used to convert the #GVariantDict back into a | |||
| 2167 | + | // dictionary-type #GVariant. When used with stack-allocated instances, | |||
| 2168 | + | // this also implicitly frees all associated memory, but for | |||
| 2169 | + | // heap-allocated instances, you must still call g_variant_dict_unref() | |||
| 2170 | + | // afterwards. | |||
| 2171 | + | // | |||
| 2172 | + | // You will typically want to use a heap-allocated #GVariantDict when | |||
| 2173 | + | // you expose it as part of an API. For most other uses, the | |||
| 2174 | + | // stack-allocated form will be more convenient. | |||
| 2175 | + | // | |||
| 2176 | + | // Consider the following two examples that do the same thing in each | |||
| 2177 | + | // style: take an existing dictionary and look up the "count" uint32 | |||
| 2178 | + | // key, adding 1 to it if it is found, or returning an error if the | |||
| 2179 | + | // key is not found. Each returns the new dictionary as a floating | |||
| 2180 | + | // #GVariant. | |||
| 2181 | + | // | |||
| 2182 | + | // ## Using a stack-allocated GVariantDict | |||
| 2183 | + | // | |||
| 2184 | + | // |[<!-- language="C" --> | |||
| 2185 | + | // | |||
| 2186 | + | // GVariant * | |||
| 2187 | + | // add_to_count (GVariant *orig, | |||
| 2188 | + | // GError **error) | |||
| 2189 | + | // { | |||
| 2190 | + | // GVariantDict dict; | |||
| 2191 | + | // guint32 count; | |||
| 2192 | + | // | |||
| 2193 | + | // g_variant_dict_init (&dict, orig); | |||
| 2194 | + | // if (!g_variant_dict_lookup (&dict, "count", "u", &count)) | |||
| 2195 | + | // { | |||
| 2196 | + | // g_set_error (...); | |||
| 2197 | + | // g_variant_dict_clear (&dict); | |||
| 2198 | + | // return NULL; | |||
| 2199 | + | // } | |||
| 2200 | + | // | |||
| 2201 | + | // g_variant_dict_insert (&dict, "count", "u", count + 1); | |||
| 2202 | + | // | |||
| 2203 | + | // return g_variant_dict_end (&dict); | |||
| 2204 | + | // } | |||
| 2205 | + | // | |||
| 2206 | + | // ]| | |||
| 2207 | + | // | |||
| 2208 | + | // ## Using heap-allocated GVariantDict | |||
| 2209 | + | // | |||
| 2210 | + | // |[<!-- language="C" --> | |||
| 2211 | + | // | |||
| 2212 | + | // GVariant * | |||
| 2213 | + | // add_to_count (GVariant *orig, | |||
| 2214 | + | // GError **error) | |||
| 2215 | + | // { | |||
| 2216 | + | // GVariantDict *dict; | |||
| 2217 | + | // GVariant *result; | |||
| 2218 | + | // guint32 count; | |||
| 2219 | + | // | |||
| 2220 | + | // dict = g_variant_dict_new (orig); | |||
| 2221 | + | // | |||
| 2222 | + | // if (g_variant_dict_lookup (dict, "count", "u", &count)) | |||
| 2223 | + | // { | |||
| 2224 | + | // g_variant_dict_insert (dict, "count", "u", count + 1); | |||
| 2225 | + | // result = g_variant_dict_end (dict); | |||
| 2226 | + | // } | |||
| 2227 | + | // else | |||
| 2228 | + | // { | |||
| 2229 | + | // g_set_error (...); | |||
| 2230 | + | // result = NULL; | |||
| 2231 | + | // } | |||
| 2232 | + | // | |||
| 2233 | + | // g_variant_dict_unref (dict); | |||
| 2234 | + | // | |||
| 2235 | + | // return result; | |||
| 2236 | + | // } | |||
| 2237 | + | // | |||
| 2238 | + | // ]| | |||
| 2239 | + | type VariantDict struct { | |||
| 2240 | + | _ structs.HostLayout | |||
| 2241 | + | } | |||
| 2242 | + | ||||
| 2243 | + | var xVariantDictGLibType func() types.GType | |||
| 2244 | + | ||||
| 2245 | + | func VariantDictGLibType() types.GType { | |||
| 2246 | + | return xVariantDictGLibType() | |||
| 2247 | + | } | |||
| 2248 | + | ||||
| 2249 | + | func (x *VariantDict) GoPointer() uintptr { | |||
| 2250 | + | return uintptr(unsafe.Pointer(x)) | |||
| 2251 | + | } | |||
| 2252 | + | ||||
| 2253 | + | func VariantDictNewFromInternalPtr(ptr uintptr) *VariantDict { | |||
| 2254 | + | if ptr == 0 { | |||
| 2255 | + | return nil | |||
| 2256 | + | } | |||
| 2257 | + | rawPtr := *(*unsafe.Pointer)(unsafe.Pointer(&ptr)) | |||
| 2258 | + | return (*VariantDict)(rawPtr) | |||
| 2259 | + | } | |||
| 2260 | + | ||||
| 2261 | + | var xNewVariantDict func(*Variant) uintptr | |||
| 2262 | + | ||||
| 2263 | + | // Allocates and initialises a new #GVariantDict. | |||
| 2264 | + | // | |||
| 2265 | + | // You should call g_variant_dict_unref() on the return value when it | |||
| 2266 | + | // is no longer needed. The memory will not be automatically freed by | |||
| 2267 | + | // any other call. | |||
| 2268 | + | // | |||
| 2269 | + | // In some cases it may be easier to place a #GVariantDict directly on | |||
| 2270 | + | // the stack of the calling function and initialise it with | |||
| 2271 | + | // g_variant_dict_init(). This is particularly useful when you are | |||
| 2272 | + | // using #GVariantDict to construct a #GVariant. | |||
| 2273 | + | func NewVariantDict(FromAsvVar *Variant) *VariantDict { | |||
| 2274 | + | cret := xNewVariantDict(FromAsvVar) | |||
| 2275 | + | if cret == 0 { | |||
| 2276 | + | return nil | |||
| 2277 | + | } | |||
| 2278 | + | return (*VariantDict)(unsafe.Pointer(cret)) | |||
| 2279 | + | } | |||
| 2280 | + | ||||
| 2281 | + | var xVariantDictClear func(uintptr) | |||
| 2282 | + | ||||
| 2283 | + | // Releases all memory associated with a #GVariantDict without freeing | |||
| 2284 | + | // the #GVariantDict structure itself. | |||
| 2285 | + | // | |||
| 2286 | + | // It typically only makes sense to do this on a stack-allocated | |||
| 2287 | + | // #GVariantDict if you want to abort building the value part-way | |||
| 2288 | + | // through. This function need not be called if you call | |||
| 2289 | + | // g_variant_dict_end() and it also doesn't need to be called on dicts | |||
| 2290 | + | // allocated with g_variant_dict_new (see g_variant_dict_unref() for | |||
| 2291 | + | // that). | |||
| 2292 | + | // | |||
| 2293 | + | // It is valid to call this function on either an initialised | |||
| 2294 | + | // #GVariantDict or one that was previously cleared by an earlier call | |||
| 2295 | + | // to g_variant_dict_clear() but it is not valid to call this function | |||
| 2296 | + | // on uninitialised memory. | |||
| 2297 | + | func (x *VariantDict) Clear() { | |||
| 2298 | + | xVariantDictClear(x.GoPointer()) | |||
| 2299 | + | } | |||
| 2300 | + | ||||
| 2301 | + | var xVariantDictContains func(uintptr, string) bool | |||
| 2302 | + | ||||
| 2303 | + | // Checks if @key exists in @dict. | |||
| 2304 | + | func (x *VariantDict) Contains(KeyVar string) bool { | |||
| 2305 | + | cret := xVariantDictContains(x.GoPointer(), KeyVar) | |||
| 2306 | + | return cret | |||
| 2307 | + | } | |||
| 2308 | + | ||||
| 2309 | + | var xVariantDictEnd func(uintptr) uintptr | |||
| 2310 | + | ||||
| 2311 | + | // Returns the current value of @dict as a #GVariant of type | |||
| 2312 | + | // %G_VARIANT_TYPE_VARDICT, clearing it in the process. | |||
| 2313 | + | // | |||
| 2314 | + | // It is not permissible to use @dict in any way after this call except | |||
| 2315 | + | // for reference counting operations (in the case of a heap-allocated | |||
| 2316 | + | // #GVariantDict) or by reinitialising it with g_variant_dict_init() (in | |||
| 2317 | + | // the case of stack-allocated). | |||
| 2318 | + | func (x *VariantDict) End() *Variant { | |||
| 2319 | + | cret := xVariantDictEnd(x.GoPointer()) | |||
| 2320 | + | if cret == 0 { | |||
| 2321 | + | return nil | |||
| 2322 | + | } | |||
| 2323 | + | return (*Variant)(unsafe.Pointer(cret)) | |||
| 2324 | + | } | |||
| 2325 | + | ||||
| 2326 | + | var xVariantDictInit func(uintptr, *Variant) | |||
| 2327 | + | ||||
| 2328 | + | // Initialises a #GVariantDict structure. | |||
| 2329 | + | // | |||
| 2330 | + | // If @from_asv is given, it is used to initialise the dictionary. | |||
| 2331 | + | // | |||
| 2332 | + | // This function completely ignores the previous contents of @dict. On | |||
| 2333 | + | // one hand this means that it is valid to pass in completely | |||
| 2334 | + | // uninitialised memory. On the other hand, this means that if you are | |||
| 2335 | + | // initialising over top of an existing #GVariantDict you need to first | |||
| 2336 | + | // call g_variant_dict_clear() in order to avoid leaking memory. | |||
| 2337 | + | // | |||
| 2338 | + | // You must not call g_variant_dict_ref() or g_variant_dict_unref() on a | |||
| 2339 | + | // #GVariantDict that was initialised with this function. If you ever | |||
| 2340 | + | // pass a reference to a #GVariantDict outside of the control of your | |||
| 2341 | + | // own code then you should assume that the person receiving that | |||
| 2342 | + | // reference may try to use reference counting; you should use | |||
| 2343 | + | // g_variant_dict_new() instead of this function. | |||
| 2344 | + | func (x *VariantDict) Init(FromAsvVar *Variant) { | |||
| 2345 | + | xVariantDictInit(x.GoPointer(), FromAsvVar) | |||
| 2346 | + | } | |||
| 2347 | + | ||||
| 2348 | + | var xVariantDictInsert func(uintptr, string, string, ...interface{}) | |||
| 2349 | + | ||||
| 2350 | + | // Inserts a value into a #GVariantDict. | |||
| 2351 | + | // | |||
| 2352 | + | // This call is a convenience wrapper that is exactly equivalent to | |||
| 2353 | + | // calling g_variant_new() followed by g_variant_dict_insert_value(). | |||
| 2354 | + | func (x *VariantDict) Insert(KeyVar string, FormatStringVar string, varArgs ...interface{}) { | |||
| 2355 | + | xVariantDictInsert(x.GoPointer(), KeyVar, FormatStringVar, varArgs...) | |||
| 2356 | + | } | |||
| 2357 | + | ||||
| 2358 | + | var xVariantDictInsertValue func(uintptr, string, *Variant) | |||
| 2359 | + | ||||
| 2360 | + | // Inserts (or replaces) a key in a #GVariantDict. | |||
| 2361 | + | // | |||
| 2362 | + | // @value is consumed if it is floating. | |||
| 2363 | + | func (x *VariantDict) InsertValue(KeyVar string, ValueVar *Variant) { | |||
| 2364 | + | xVariantDictInsertValue(x.GoPointer(), KeyVar, ValueVar) | |||
| 2365 | + | } | |||
| 2366 | + | ||||
| 2367 | + | var xVariantDictLookup func(uintptr, string, string, ...interface{}) bool | |||
| 2368 | + | ||||
| 2369 | + | // Looks up a value in a #GVariantDict. | |||
| 2370 | + | // | |||
| 2371 | + | // This function is a wrapper around g_variant_dict_lookup_value() and | |||
| 2372 | + | // g_variant_get(). In the case that %NULL would have been returned, | |||
| 2373 | + | // this function returns %FALSE and does not modify the values of the arguments | |||
| 2374 | + | // passed in to @.... Otherwise, it unpacks the returned | |||
| 2375 | + | // value and returns %TRUE. | |||
| 2376 | + | // | |||
| 2377 | + | // @format_string determines the C types that are used for unpacking the | |||
| 2378 | + | // values and also determines if the values are copied or borrowed, see the | |||
| 2379 | + | // section on [`GVariant` format strings](gvariant-format-strings.html#pointers). | |||
| 2380 | + | func (x *VariantDict) Lookup(KeyVar string, FormatStringVar string, varArgs ...interface{}) bool { | |||
| 2381 | + | cret := xVariantDictLookup(x.GoPointer(), KeyVar, FormatStringVar, varArgs...) | |||
| 2382 | + | return cret | |||
| 2383 | + | } | |||
| 2384 | + | ||||
| 2385 | + | var xVariantDictLookupValue func(uintptr, string, *VariantType) uintptr | |||
| 2386 | + | ||||
| 2387 | + | // Looks up a value in a #GVariantDict. | |||
| 2388 | + | // | |||
| 2389 | + | // If @key is not found in @dictionary, %NULL is returned. | |||
| 2390 | + | // | |||
| 2391 | + | // The @expected_type string specifies what type of value is expected. | |||
| 2392 | + | // If the value associated with @key has a different type then %NULL is | |||
| 2393 | + | // returned. | |||
| 2394 | + | // | |||
| 2395 | + | // If the key is found and the value has the correct type, it is | |||
| 2396 | + | // returned. If @expected_type was specified then any non-%NULL return | |||
| 2397 | + | // value will have this type. | |||
| 2398 | + | func (x *VariantDict) LookupValue(KeyVar string, ExpectedTypeVar *VariantType) *Variant { | |||
| 2399 | + | cret := xVariantDictLookupValue(x.GoPointer(), KeyVar, ExpectedTypeVar) | |||
| 2400 | + | if cret == 0 { | |||
| 2401 | + | return nil | |||
| 2402 | + | } | |||
| 2403 | + | return (*Variant)(unsafe.Pointer(cret)) | |||
| 2404 | + | } | |||
| 2405 | + | ||||
| 2406 | + | var xVariantDictRef func(uintptr) uintptr | |||
| 2407 | + | ||||
| 2408 | + | // Increases the reference count on @dict. | |||
| 2409 | + | // | |||
| 2410 | + | // Don't call this on stack-allocated #GVariantDict instances or bad | |||
| 2411 | + | // things will happen. | |||
| 2412 | + | func (x *VariantDict) Ref() *VariantDict { | |||
| 2413 | + | cret := xVariantDictRef(x.GoPointer()) | |||
| 2414 | + | if cret == 0 { | |||
| 2415 | + | return nil | |||
| 2416 | + | } | |||
| 2417 | + | return (*VariantDict)(unsafe.Pointer(cret)) | |||
| 2418 | + | } | |||
| 2419 | + | ||||
| 2420 | + | var xVariantDictRemove func(uintptr, string) bool | |||
| 2421 | + | ||||
| 2422 | + | // Removes a key and its associated value from a #GVariantDict. | |||
| 2423 | + | func (x *VariantDict) Remove(KeyVar string) bool { | |||
| 2424 | + | cret := xVariantDictRemove(x.GoPointer(), KeyVar) | |||
| 2425 | + | return cret | |||
| 2426 | + | } | |||
| 2427 | + | ||||
| 2428 | + | var xVariantDictUnref func(uintptr) | |||
| 2429 | + | ||||
| 2430 | + | // Decreases the reference count on @dict. | |||
| 2431 | + | // | |||
| 2432 | + | // In the event that there are no more references, releases all memory | |||
| 2433 | + | // associated with the #GVariantDict. | |||
| 2434 | + | // | |||
| 2435 | + | // Don't call this on stack-allocated #GVariantDict instances or bad | |||
| 2436 | + | // things will happen. | |||
| 2437 | + | func (x *VariantDict) Unref() { | |||
| 2438 | + | xVariantDictUnref(x.GoPointer()) | |||
| 2439 | + | } | |||
| 2440 | + | ||||
| 2441 | + | // #GVariantIter is an opaque data structure and can only be accessed | |||
| 2442 | + | // using the following functions. | |||
| 2443 | + | type VariantIter struct { | |||
| 2444 | + | _ structs.HostLayout | |||
| 2445 | + | ||||
| 2446 | + | X [16]uintptr | |||
| 2447 | + | } | |||
| 2448 | + | ||||
| 2449 | + | func (x *VariantIter) GoPointer() uintptr { | |||
| 2450 | + | return uintptr(unsafe.Pointer(x)) | |||
| 2451 | + | } | |||
| 2452 | + | ||||
| 2453 | + | func VariantIterNewFromInternalPtr(ptr uintptr) *VariantIter { | |||
| 2454 | + | if ptr == 0 { | |||
| 2455 | + | return nil | |||
| 2456 | + | } | |||
| 2457 | + | rawPtr := *(*unsafe.Pointer)(unsafe.Pointer(&ptr)) | |||
| 2458 | + | return (*VariantIter)(rawPtr) | |||
| 2459 | + | } | |||
| 2460 | + | ||||
| 2461 | + | var xVariantIterCopy func(uintptr) uintptr | |||
| 2462 | + | ||||
| 2463 | + | // Creates a new heap-allocated #GVariantIter to iterate over the | |||
| 2464 | + | // container that was being iterated over by @iter. Iteration begins on | |||
| 2465 | + | // the new iterator from the current position of the old iterator but | |||
| 2466 | + | // the two copies are independent past that point. | |||
| 2467 | + | // | |||
| 2468 | + | // Use g_variant_iter_free() to free the return value when you no longer | |||
| 2469 | + | // need it. | |||
| 2470 | + | // | |||
| 2471 | + | // A reference is taken to the container that @iter is iterating over | |||
| 2472 | + | // and will be related only when g_variant_iter_free() is called. | |||
| 2473 | + | func (x *VariantIter) Copy() *VariantIter { | |||
| 2474 | + | cret := xVariantIterCopy(x.GoPointer()) | |||
| 2475 | + | if cret == 0 { | |||
| 2476 | + | return nil | |||
| 2477 | + | } | |||
| 2478 | + | return (*VariantIter)(unsafe.Pointer(cret)) | |||
| 2479 | + | } | |||
| 2480 | + | ||||
| 2481 | + | var xVariantIterFree func(uintptr) | |||
| 2482 | + | ||||
| 2483 | + | // Frees a heap-allocated #GVariantIter. Only call this function on | |||
| 2484 | + | // iterators that were returned by g_variant_iter_new() or | |||
| 2485 | + | // g_variant_iter_copy(). | |||
| 2486 | + | func (x *VariantIter) Free() { | |||
| 2487 | + | xVariantIterFree(x.GoPointer()) | |||
| 2488 | + | } | |||
| 2489 | + | ||||
| 2490 | + | var xVariantIterInit func(uintptr, *Variant) uint | |||
| 2491 | + | ||||
| 2492 | + | // Initialises (without allocating) a #GVariantIter. @iter may be | |||
| 2493 | + | // completely uninitialised prior to this call; its old value is | |||
| 2494 | + | // ignored. | |||
| 2495 | + | // | |||
| 2496 | + | // The iterator remains valid for as long as @value exists, and need not | |||
| 2497 | + | // be freed in any way. | |||
| 2498 | + | func (x *VariantIter) Init(ValueVar *Variant) uint { | |||
| 2499 | + | cret := xVariantIterInit(x.GoPointer(), ValueVar) | |||
| 2500 | + | return cret | |||
| 2501 | + | } | |||
| 2502 | + | ||||
| 2503 | + | var xVariantIterLoop func(uintptr, string, ...interface{}) bool | |||
| 2504 | + | ||||
| 2505 | + | // Gets the next item in the container and unpacks it into the variable | |||
| 2506 | + | // argument list according to @format_string, returning %TRUE. | |||
| 2507 | + | // | |||
| 2508 | + | // If no more items remain then %FALSE is returned. | |||
| 2509 | + | // | |||
| 2510 | + | // On the first call to this function, the pointers appearing on the | |||
| 2511 | + | // variable argument list are assumed to point at uninitialised memory. | |||
| 2512 | + | // On the second and later calls, it is assumed that the same pointers | |||
| 2513 | + | // will be given and that they will point to the memory as set by the | |||
| 2514 | + | // previous call to this function. This allows the previous values to | |||
| 2515 | + | // be freed, as appropriate. | |||
| 2516 | + | // | |||
| 2517 | + | // This function is intended to be used with a while loop as | |||
| 2518 | + | // demonstrated in the following example. This function can only be | |||
| 2519 | + | // used when iterating over an array. It is only valid to call this | |||
| 2520 | + | // function with a string constant for the format string and the same | |||
| 2521 | + | // string constant must be used each time. Mixing calls to this | |||
| 2522 | + | // function and g_variant_iter_next() or g_variant_iter_next_value() on | |||
| 2523 | + | // the same iterator causes undefined behavior. | |||
| 2524 | + | // | |||
| 2525 | + | // If you break out of a such a while loop using g_variant_iter_loop() then | |||
| 2526 | + | // you must free or unreference all the unpacked values as you would with | |||
| 2527 | + | // g_variant_get(). Failure to do so will cause a memory leak. | |||
| 2528 | + | // | |||
| 2529 | + | // Here is an example for memory management with g_variant_iter_loop(): | |||
| 2530 | + | // |[<!-- language="C" --> | |||
| 2531 | + | // | |||
| 2532 | + | // // Iterates a dictionary of type 'a{sv}' | |||
| 2533 | + | // void | |||
| 2534 | + | // iterate_dictionary (GVariant *dictionary) | |||
| 2535 | + | // { | |||
| 2536 | + | // GVariantIter iter; | |||
| 2537 | + | // GVariant *value; | |||
| 2538 | + | // gchar *key; | |||
| 2539 | + | // | |||
| 2540 | + | // g_variant_iter_init (&iter, dictionary); | |||
| 2541 | + | // while (g_variant_iter_loop (&iter, "{sv}", &key, &value)) | |||
| 2542 | + | // { | |||
| 2543 | + | // g_print ("Item '%s' has type '%s'\n", key, | |||
| 2544 | + | // g_variant_get_type_string (value)); | |||
| 2545 | + | // | |||
| 2546 | + | // // no need to free 'key' and 'value' here | |||
| 2547 | + | // // unless breaking out of this loop | |||
| 2548 | + | // } | |||
| 2549 | + | // } | |||
| 2550 | + | // | |||
| 2551 | + | // ]| | |||
| 2552 | + | // | |||
| 2553 | + | // For most cases you should use g_variant_iter_next(). | |||
| 2554 | + | // | |||
| 2555 | + | // This function is really only useful when unpacking into #GVariant or | |||
| 2556 | + | // #GVariantIter in order to allow you to skip the call to | |||
| 2557 | + | // g_variant_unref() or g_variant_iter_free(). | |||
| 2558 | + | // | |||
| 2559 | + | // For example, if you are only looping over simple integer and string | |||
| 2560 | + | // types, g_variant_iter_next() is definitely preferred. For string | |||
| 2561 | + | // types, use the '&' prefix to avoid allocating any memory at all (and | |||
| 2562 | + | // thereby avoiding the need to free anything as well). | |||
| 2563 | + | // | |||
| 2564 | + | // @format_string determines the C types that are used for unpacking | |||
| 2565 | + | // the values and also determines if the values are copied or borrowed. | |||
| 2566 | + | // | |||
| 2567 | + | // See the section on | |||
| 2568 | + | // [`GVariant` format strings](gvariant-format-strings.html#pointers). | |||
| 2569 | + | func (x *VariantIter) Loop(FormatStringVar string, varArgs ...interface{}) bool { | |||
| 2570 | + | cret := xVariantIterLoop(x.GoPointer(), FormatStringVar, varArgs...) | |||
| 2571 | + | return cret | |||
| 2572 | + | } | |||
| 2573 | + | ||||
| 2574 | + | var xVariantIterNChildren func(uintptr) uint | |||
| 2575 | + | ||||
| 2576 | + | // Queries the number of child items in the container that we are | |||
| 2577 | + | // iterating over. This is the total number of items -- not the number | |||
| 2578 | + | // of items remaining. | |||
| 2579 | + | // | |||
| 2580 | + | // This function might be useful for preallocation of arrays. | |||
| 2581 | + | func (x *VariantIter) NChildren() uint { | |||
| 2582 | + | cret := xVariantIterNChildren(x.GoPointer()) | |||
| 2583 | + | return cret | |||
| 2584 | + | } | |||
| 2585 | + | ||||
| 2586 | + | var xVariantIterNext func(uintptr, string, ...interface{}) bool | |||
| 2587 | + | ||||
| 2588 | + | // Gets the next item in the container and unpacks it into the variable | |||
| 2589 | + | // argument list according to @format_string, returning %TRUE. | |||
| 2590 | + | // | |||
| 2591 | + | // If no more items remain then %FALSE is returned. | |||
| 2592 | + | // | |||
| 2593 | + | // All of the pointers given on the variable arguments list of this | |||
| 2594 | + | // function are assumed to point at uninitialised memory. It is the | |||
| 2595 | + | // responsibility of the caller to free all of the values returned by | |||
| 2596 | + | // the unpacking process. | |||
| 2597 | + | // | |||
| 2598 | + | // Here is an example for memory management with g_variant_iter_next(): | |||
| 2599 | + | // |[<!-- language="C" --> | |||
| 2600 | + | // | |||
| 2601 | + | // // Iterates a dictionary of type 'a{sv}' | |||
| 2602 | + | // void | |||
| 2603 | + | // iterate_dictionary (GVariant *dictionary) | |||
| 2604 | + | // { | |||
| 2605 | + | // GVariantIter iter; | |||
| 2606 | + | // GVariant *value; | |||
| 2607 | + | // gchar *key; | |||
| 2608 | + | // | |||
| 2609 | + | // g_variant_iter_init (&iter, dictionary); | |||
| 2610 | + | // while (g_variant_iter_next (&iter, "{sv}", &key, &value)) | |||
| 2611 | + | // { | |||
| 2612 | + | // g_print ("Item '%s' has type '%s'\n", key, | |||
| 2613 | + | // g_variant_get_type_string (value)); | |||
| 2614 | + | // | |||
| 2615 | + | // // must free data for ourselves | |||
| 2616 | + | // g_variant_unref (value); | |||
| 2617 | + | // g_free (key); | |||
| 2618 | + | // } | |||
| 2619 | + | // } | |||
| 2620 | + | // | |||
| 2621 | + | // ]| | |||
| 2622 | + | // | |||
| 2623 | + | // For a solution that is likely to be more convenient to C programmers | |||
| 2624 | + | // when dealing with loops, see g_variant_iter_loop(). | |||
| 2625 | + | // | |||
| 2626 | + | // @format_string determines the C types that are used for unpacking | |||
| 2627 | + | // the values and also determines if the values are copied or borrowed. | |||
| 2628 | + | // | |||
| 2629 | + | // See the section on | |||
| 2630 | + | // [`GVariant` format strings](gvariant-format-strings.html#pointers). | |||
| 2631 | + | func (x *VariantIter) Next(FormatStringVar string, varArgs ...interface{}) bool { | |||
| 2632 | + | cret := xVariantIterNext(x.GoPointer(), FormatStringVar, varArgs...) | |||
| 2633 | + | return cret | |||
| 2634 | + | } | |||
| 2635 | + | ||||
| 2636 | + | var xVariantIterNextValue func(uintptr) uintptr | |||
| 2637 | + | ||||
| 2638 | + | // Gets the next item in the container. If no more items remain then | |||
| 2639 | + | // %NULL is returned. | |||
| 2640 | + | // | |||
| 2641 | + | // Use g_variant_unref() to drop your reference on the return value when | |||
| 2642 | + | // you no longer need it. | |||
| 2643 | + | // | |||
| 2644 | + | // Here is an example for iterating with g_variant_iter_next_value(): | |||
| 2645 | + | // |[<!-- language="C" --> | |||
| 2646 | + | // | |||
| 2647 | + | // // recursively iterate a container | |||
| 2648 | + | // void | |||
| 2649 | + | // iterate_container_recursive (GVariant *container) | |||
| 2650 | + | // { | |||
| 2651 | + | // GVariantIter iter; | |||
| 2652 | + | // GVariant *child; | |||
| 2653 | + | // | |||
| 2654 | + | // g_variant_iter_init (&iter, container); | |||
| 2655 | + | // while ((child = g_variant_iter_next_value (&iter))) | |||
| 2656 | + | // { | |||
| 2657 | + | // g_print ("type '%s'\n", g_variant_get_type_string (child)); | |||
| 2658 | + | // | |||
| 2659 | + | // if (g_variant_is_container (child)) | |||
| 2660 | + | // iterate_container_recursive (child); | |||
| 2661 | + | // | |||
| 2662 | + | // g_variant_unref (child); | |||
| 2663 | + | // } | |||
| 2664 | + | // } | |||
| 2665 | + | // | |||
| 2666 | + | // ]| | |||
| 2667 | + | func (x *VariantIter) NextValue() *Variant { | |||
| 2668 | + | cret := xVariantIterNextValue(x.GoPointer()) | |||
| 2669 | + | if cret == 0 { | |||
| 2670 | + | return nil | |||
| 2671 | + | } | |||
| 2672 | + | return (*Variant)(unsafe.Pointer(cret)) | |||
| 2673 | + | } | |||
| 2674 | + | ||||
| 2675 | + | // The range of possible top-level types of #GVariant instances. | |||
| 2676 | + | type VariantClass int | |||
| 2677 | + | ||||
| 2678 | + | const ( | |||
| 2679 | + | ||||
| 2680 | + | // The #GVariant is a boolean. | |||
| 2681 | + | GVariantClassBooleanValue VariantClass = 98 | |||
| 2682 | + | // The #GVariant is a byte. | |||
| 2683 | + | GVariantClassByteValue VariantClass = 121 | |||
| 2684 | + | // The #GVariant is a signed 16 bit integer. | |||
| 2685 | + | GVariantClassInt16Value VariantClass = 110 | |||
| 2686 | + | // The #GVariant is an unsigned 16 bit integer. | |||
| 2687 | + | GVariantClassUint16Value VariantClass = 113 | |||
| 2688 | + | // The #GVariant is a signed 32 bit integer. | |||
| 2689 | + | GVariantClassInt32Value VariantClass = 105 | |||
| 2690 | + | // The #GVariant is an unsigned 32 bit integer. | |||
| 2691 | + | GVariantClassUint32Value VariantClass = 117 | |||
| 2692 | + | // The #GVariant is a signed 64 bit integer. | |||
| 2693 | + | GVariantClassInt64Value VariantClass = 120 | |||
| 2694 | + | // The #GVariant is an unsigned 64 bit integer. | |||
| 2695 | + | GVariantClassUint64Value VariantClass = 116 | |||
| 2696 | + | // The #GVariant is a file handle index. | |||
| 2697 | + | GVariantClassHandleValue VariantClass = 104 | |||
| 2698 | + | // The #GVariant is a double precision floating | |||
| 2699 | + | // point value. | |||
| 2700 | + | GVariantClassDoubleValue VariantClass = 100 | |||
| 2701 | + | // The #GVariant is a normal string. | |||
| 2702 | + | GVariantClassStringValue VariantClass = 115 | |||
| 2703 | + | // The #GVariant is a D-Bus object path | |||
| 2704 | + | // string. | |||
| 2705 | + | GVariantClassObjectPathValue VariantClass = 111 | |||
| 2706 | + | // The #GVariant is a D-Bus signature string. | |||
| 2707 | + | GVariantClassSignatureValue VariantClass = 103 | |||
| 2708 | + | // The #GVariant is a variant. | |||
| 2709 | + | GVariantClassVariantValue VariantClass = 118 | |||
| 2710 | + | // The #GVariant is a maybe-typed value. | |||
| 2711 | + | GVariantClassMaybeValue VariantClass = 109 | |||
| 2712 | + | // The #GVariant is an array. | |||
| 2713 | + | GVariantClassArrayValue VariantClass = 97 | |||
| 2714 | + | // The #GVariant is a tuple. | |||
| 2715 | + | GVariantClassTupleValue VariantClass = 40 | |||
| 2716 | + | // The #GVariant is a dictionary entry. | |||
| 2717 | + | GVariantClassDictEntryValue VariantClass = 123 | |||
| 2718 | + | ) | |||
| 2719 | + | ||||
| 2720 | + | // Error codes returned by parsing text-format GVariants. | |||
| 2721 | + | type VariantParseError int | |||
| 2722 | + | ||||
| 2723 | + | const ( | |||
| 2724 | + | ||||
| 2725 | + | // generic error (unused) | |||
| 2726 | + | GVariantParseErrorFailedValue VariantParseError = 0 | |||
| 2727 | + | // a non-basic #GVariantType was given where a basic type was expected | |||
| 2728 | + | GVariantParseErrorBasicTypeExpectedValue VariantParseError = 1 | |||
| 2729 | + | // cannot infer the #GVariantType | |||
| 2730 | + | GVariantParseErrorCannotInferTypeValue VariantParseError = 2 | |||
| 2731 | + | // an indefinite #GVariantType was given where a definite type was expected | |||
| 2732 | + | GVariantParseErrorDefiniteTypeExpectedValue VariantParseError = 3 | |||
| 2733 | + | // extra data after parsing finished | |||
| 2734 | + | GVariantParseErrorInputNotAtEndValue VariantParseError = 4 | |||
| 2735 | + | // invalid character in number or unicode escape | |||
| 2736 | + | GVariantParseErrorInvalidCharacterValue VariantParseError = 5 | |||
| 2737 | + | // not a valid #GVariant format string | |||
| 2738 | + | GVariantParseErrorInvalidFormatStringValue VariantParseError = 6 | |||
| 2739 | + | // not a valid object path | |||
| 2740 | + | GVariantParseErrorInvalidObjectPathValue VariantParseError = 7 | |||
| 2741 | + | // not a valid type signature | |||
| 2742 | + | GVariantParseErrorInvalidSignatureValue VariantParseError = 8 | |||
| 2743 | + | // not a valid #GVariant type string | |||
| 2744 | + | GVariantParseErrorInvalidTypeStringValue VariantParseError = 9 | |||
| 2745 | + | // could not find a common type for array entries | |||
| 2746 | + | GVariantParseErrorNoCommonTypeValue VariantParseError = 10 | |||
| 2747 | + | // the numerical value is out of range of the given type | |||
| 2748 | + | GVariantParseErrorNumberOutOfRangeValue VariantParseError = 11 | |||
| 2749 | + | // the numerical value is out of range for any type | |||
| 2750 | + | GVariantParseErrorNumberTooBigValue VariantParseError = 12 | |||
| 2751 | + | // cannot parse as variant of the specified type | |||
| 2752 | + | GVariantParseErrorTypeErrorValue VariantParseError = 13 | |||
| 2753 | + | // an unexpected token was encountered | |||
| 2754 | + | GVariantParseErrorUnexpectedTokenValue VariantParseError = 14 | |||
| 2755 | + | // an unknown keyword was encountered | |||
| 2756 | + | GVariantParseErrorUnknownKeywordValue VariantParseError = 15 | |||
| 2757 | + | // unterminated string constant | |||
| 2758 | + | GVariantParseErrorUnterminatedStringConstantValue VariantParseError = 16 | |||
| 2759 | + | // no value given | |||
| 2760 | + | GVariantParseErrorValueExpectedValue VariantParseError = 17 | |||
| 2761 | + | // variant was too deeply nested; #GVariant is only guaranteed to handle nesting up to 64 levels (Since: 2.64) | |||
| 2762 | + | GVariantParseErrorRecursionValue VariantParseError = 18 | |||
| 2763 | + | ) | |||
| 2764 | + | ||||
| 2765 | + | var xVariantIsObjectPath func(string) bool | |||
| 2766 | + | ||||
| 2767 | + | // Determines if a given string is a valid D-Bus object path. You | |||
| 2768 | + | // should ensure that a string is a valid D-Bus object path before | |||
| 2769 | + | // passing it to g_variant_new_object_path(). | |||
| 2770 | + | // | |||
| 2771 | + | // A valid object path starts with `/` followed by zero or more | |||
| 2772 | + | // sequences of characters separated by `/` characters. Each sequence | |||
| 2773 | + | // must contain only the characters `[A-Z][a-z][0-9]_`. No sequence | |||
| 2774 | + | // (including the one following the final `/` character) may be empty. | |||
| 2775 | + | func VariantIsObjectPath(StringVar string) bool { | |||
| 2776 | + | cret := xVariantIsObjectPath(StringVar) | |||
| 2777 | + | return cret | |||
| 2778 | + | } | |||
| 2779 | + | ||||
| 2780 | + | var xVariantIsSignature func(string) bool | |||
| 2781 | + | ||||
| 2782 | + | // Determines if a given string is a valid D-Bus type signature. You | |||
| 2783 | + | // should ensure that a string is a valid D-Bus type signature before | |||
| 2784 | + | // passing it to g_variant_new_signature(). | |||
| 2785 | + | // | |||
| 2786 | + | // D-Bus type signatures consist of zero or more definite #GVariantType | |||
| 2787 | + | // strings in sequence. | |||
| 2788 | + | func VariantIsSignature(StringVar string) bool { | |||
| 2789 | + | cret := xVariantIsSignature(StringVar) | |||
| 2790 | + | return cret | |||
| 2791 | + | } | |||
| 2792 | + | ||||
| 2793 | + | var xVariantParse func(*VariantType, string, uintptr, uintptr, **Error) uintptr | |||
| 2794 | + | ||||
| 2795 | + | // Parses a #GVariant from a text representation. | |||
| 2796 | + | // | |||
| 2797 | + | // A single #GVariant is parsed from the content of @text. | |||
| 2798 | + | // | |||
| 2799 | + | // The format is described [here](gvariant-text-format.html). | |||
| 2800 | + | // | |||
| 2801 | + | // The memory at @limit will never be accessed and the parser behaves as | |||
| 2802 | + | // if the character at @limit is the nul terminator. This has the | |||
| 2803 | + | // effect of bounding @text. | |||
| 2804 | + | // | |||
| 2805 | + | // If @endptr is non-%NULL then @text is permitted to contain data | |||
| 2806 | + | // following the value that this function parses and @endptr will be | |||
| 2807 | + | // updated to point to the first character past the end of the text | |||
| 2808 | + | // parsed by this function. If @endptr is %NULL and there is extra data | |||
| 2809 | + | // then an error is returned. | |||
| 2810 | + | // | |||
| 2811 | + | // If @type is non-%NULL then the value will be parsed to have that | |||
| 2812 | + | // type. This may result in additional parse errors (in the case that | |||
| 2813 | + | // the parsed value doesn't fit the type) but may also result in fewer | |||
| 2814 | + | // errors (in the case that the type would have been ambiguous, such as | |||
| 2815 | + | // with empty arrays). | |||
| 2816 | + | // | |||
| 2817 | + | // In the event that the parsing is successful, the resulting #GVariant | |||
| 2818 | + | // is returned. It is never floating, and must be freed with | |||
| 2819 | + | // [method@GLib.Variant.unref]. | |||
| 2820 | + | // | |||
| 2821 | + | // In case of any error, %NULL will be returned. If @error is non-%NULL | |||
| 2822 | + | // then it will be set to reflect the error that occurred. | |||
| 2823 | + | // | |||
| 2824 | + | // Officially, the language understood by the parser is “any string | |||
| 2825 | + | // produced by [method@GLib.Variant.print]”. This explicitly includes | |||
| 2826 | + | // `g_variant_print()`’s annotated types like `int64 -1000`. | |||
| 2827 | + | // | |||
| 2828 | + | // There may be implementation specific restrictions on deeply nested values, | |||
| 2829 | + | // which would result in a %G_VARIANT_PARSE_ERROR_RECURSION error. #GVariant is | |||
| 2830 | + | // guaranteed to handle nesting up to at least 64 levels. | |||
| 2831 | + | func VariantParse(TypeVar *VariantType, TextVar string, LimitVar *string, EndptrVar *string) (*Variant, error) { | |||
| 2832 | + | var cerr *Error | |||
| 2833 | + | ||||
| 2834 | + | LimitVarPtr := core.GStrdupNullable(LimitVar) | |||
| 2835 | + | defer core.GFreeNullable(LimitVarPtr) | |||
| 2836 | + | ||||
| 2837 | + | EndptrVarPtr := core.GStrdupNullable(EndptrVar) | |||
| 2838 | + | defer core.GFreeNullable(EndptrVarPtr) | |||
| 2839 | + | ||||
| 2840 | + | cret := xVariantParse(TypeVar, TextVar, LimitVarPtr, EndptrVarPtr, &cerr) | |||
| 2841 | + | if cerr != nil { | |||
| 2842 | + | return nil, cerr | |||
| 2843 | + | } | |||
| 2844 | + | if cret == 0 { | |||
| 2845 | + | return nil, nil | |||
| 2846 | + | } | |||
| 2847 | + | return (*Variant)(unsafe.Pointer(cret)), nil | |||
| 2848 | + | } | |||
| 2849 | + | ||||
| 2850 | + | var xVariantParseErrorPrintContext func(*Error, string) string | |||
| 2851 | + | ||||
| 2852 | + | // Pretty-prints a message showing the context of a #GVariant parse | |||
| 2853 | + | // error within the string for which parsing was attempted. | |||
| 2854 | + | // | |||
| 2855 | + | // The resulting string is suitable for output to the console or other | |||
| 2856 | + | // monospace media where newlines are treated in the usual way. | |||
| 2857 | + | // | |||
| 2858 | + | // The message will typically look something like one of the following: | |||
| 2859 | + | // | |||
| 2860 | + | // |[ | |||
| 2861 | + | // unterminated string constant: | |||
| 2862 | + | // | |||
| 2863 | + | // (1, 2, 3, 'abc | |||
| 2864 | + | // ^^^^ | |||
| 2865 | + | // | |||
| 2866 | + | // ]| | |||
| 2867 | + | // | |||
| 2868 | + | // or | |||
| 2869 | + | // | |||
| 2870 | + | // |[ | |||
| 2871 | + | // unable to find a common type: | |||
| 2872 | + | // | |||
| 2873 | + | // [1, 2, 3, 'str'] | |||
| 2874 | + | // ^ ^^^^^ | |||
| 2875 | + | // | |||
| 2876 | + | // ]| | |||
| 2877 | + | // | |||
| 2878 | + | // The format of the message may change in a future version. | |||
| 2879 | + | // | |||
| 2880 | + | // @error must have come from a failed attempt to g_variant_parse() and | |||
| 2881 | + | // @source_str must be exactly the same string that caused the error. | |||
| 2882 | + | // If @source_str was not nul-terminated when you passed it to | |||
| 2883 | + | // g_variant_parse() then you must add nul termination before using this | |||
| 2884 | + | // function. | |||
| 2885 | + | func VariantParseErrorPrintContext(ErrorVar *Error, SourceStrVar string) string { | |||
| 2886 | + | cret := xVariantParseErrorPrintContext(ErrorVar, SourceStrVar) | |||
| 2887 | + | return cret | |||
| 2888 | + | } | |||
| 2889 | + | ||||
| 2890 | + | func init() { | |||
| 2891 | + | core.SetPackageName("GLIB", "glib-2.0") | |||
| 2892 | + | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | |||
| 2893 | + | var libs []uintptr | |||
| 2894 | + | for _, libPath := range core.GetPaths("GLIB") { | |||
| 2895 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 2896 | + | if err != nil { | |||
| 2897 | + | panic(err) | |||
| 2898 | + | } | |||
| 2899 | + | libs = append(libs, lib) | |||
| 2900 | + | } | |||
| 2901 | + | ||||
| 2902 | + | core.PuregoSafeRegister(&xVariantIsObjectPath, libs, "g_variant_is_object_path") | |||
| 2903 | + | core.PuregoSafeRegister(&xVariantIsSignature, libs, "g_variant_is_signature") | |||
| 2904 | + | core.PuregoSafeRegister(&xVariantParse, libs, "g_variant_parse") | |||
| 2905 | + | core.PuregoSafeRegister(&xVariantParseErrorPrintContext, libs, "g_variant_parse_error_print_context") | |||
| 2906 | + | ||||
| 2907 | + | core.PuregoSafeRegister(&xVariantGLibType, libs, "intern") | |||
| 2908 | + | ||||
| 2909 | + | core.PuregoSafeRegister(&xNewVariant, libs, "g_variant_new") | |||
| 2910 | + | core.PuregoSafeRegister(&xNewVariantArray, libs, "g_variant_new_array") | |||
| 2911 | + | core.PuregoSafeRegister(&xNewVariantBoolean, libs, "g_variant_new_boolean") | |||
| 2912 | + | core.PuregoSafeRegister(&xNewVariantByte, libs, "g_variant_new_byte") | |||
| 2913 | + | core.PuregoSafeRegister(&xNewVariantBytestring, libs, "g_variant_new_bytestring") | |||
| 2914 | + | core.PuregoSafeRegister(&xNewVariantBytestringArray, libs, "g_variant_new_bytestring_array") | |||
| 2915 | + | core.PuregoSafeRegister(&xNewVariantDictEntry, libs, "g_variant_new_dict_entry") | |||
| 2916 | + | core.PuregoSafeRegister(&xNewVariantDouble, libs, "g_variant_new_double") | |||
| 2917 | + | core.PuregoSafeRegister(&xNewVariantFixedArray, libs, "g_variant_new_fixed_array") | |||
| 2918 | + | core.PuregoSafeRegister(&xNewVariantFromBytes, libs, "g_variant_new_from_bytes") | |||
| 2919 | + | core.PuregoSafeRegister(&xNewVariantFromData, libs, "g_variant_new_from_data") | |||
| 2920 | + | core.PuregoSafeRegister(&xNewVariantHandle, libs, "g_variant_new_handle") | |||
| 2921 | + | core.PuregoSafeRegister(&xNewVariantInt16, libs, "g_variant_new_int16") | |||
| 2922 | + | core.PuregoSafeRegister(&xNewVariantInt32, libs, "g_variant_new_int32") | |||
| 2923 | + | core.PuregoSafeRegister(&xNewVariantInt64, libs, "g_variant_new_int64") | |||
| 2924 | + | core.PuregoSafeRegister(&xNewVariantMaybe, libs, "g_variant_new_maybe") | |||
| 2925 | + | core.PuregoSafeRegister(&xNewVariantObjectPath, libs, "g_variant_new_object_path") | |||
| 2926 | + | core.PuregoSafeRegister(&xNewVariantObjv, libs, "g_variant_new_objv") | |||
| 2927 | + | core.PuregoSafeRegister(&xNewVariantParsed, libs, "g_variant_new_parsed") | |||
| 2928 | + | core.PuregoSafeRegister(&xNewVariantParsedVa, libs, "g_variant_new_parsed_va") | |||
| 2929 | + | core.PuregoSafeRegister(&xNewVariantPrintf, libs, "g_variant_new_printf") | |||
| 2930 | + | core.PuregoSafeRegister(&xNewVariantSignature, libs, "g_variant_new_signature") | |||
| 2931 | + | core.PuregoSafeRegister(&xNewVariantString, libs, "g_variant_new_string") | |||
| 2932 | + | core.PuregoSafeRegister(&xNewVariantStrv, libs, "g_variant_new_strv") | |||
| 2933 | + | core.PuregoSafeRegister(&xNewVariantTakeString, libs, "g_variant_new_take_string") | |||
| 2934 | + | core.PuregoSafeRegister(&xNewVariantTuple, libs, "g_variant_new_tuple") | |||
| 2935 | + | core.PuregoSafeRegister(&xNewVariantUint16, libs, "g_variant_new_uint16") | |||
| 2936 | + | core.PuregoSafeRegister(&xNewVariantUint32, libs, "g_variant_new_uint32") | |||
| 2937 | + | core.PuregoSafeRegister(&xNewVariantUint64, libs, "g_variant_new_uint64") | |||
| 2938 | + | core.PuregoSafeRegister(&xNewVariantVa, libs, "g_variant_new_va") | |||
| 2939 | + | core.PuregoSafeRegister(&xNewVariantVariant, libs, "g_variant_new_variant") | |||
| 2940 | + | ||||
| 2941 | + | core.PuregoSafeRegister(&xVariantByteswap, libs, "g_variant_byteswap") | |||
| 2942 | + | core.PuregoSafeRegister(&xVariantCheckFormatString, libs, "g_variant_check_format_string") | |||
| 2943 | + | core.PuregoSafeRegister(&xVariantClassify, libs, "g_variant_classify") | |||
| 2944 | + | core.PuregoSafeRegister(&xVariantCompare, libs, "g_variant_compare") | |||
| 2945 | + | core.PuregoSafeRegister(&xVariantDupBytestring, libs, "g_variant_dup_bytestring") | |||
| 2946 | + | core.PuregoSafeRegister(&xVariantDupBytestringArray, libs, "g_variant_dup_bytestring_array") | |||
| 2947 | + | core.PuregoSafeRegister(&xVariantDupObjv, libs, "g_variant_dup_objv") | |||
| 2948 | + | core.PuregoSafeRegister(&xVariantDupString, libs, "g_variant_dup_string") | |||
| 2949 | + | core.PuregoSafeRegister(&xVariantDupStrv, libs, "g_variant_dup_strv") | |||
| 2950 | + | core.PuregoSafeRegister(&xVariantEqual, libs, "g_variant_equal") | |||
| 2951 | + | core.PuregoSafeRegister(&xVariantGet, libs, "g_variant_get") | |||
| 2952 | + | core.PuregoSafeRegister(&xVariantGetBoolean, libs, "g_variant_get_boolean") | |||
| 2953 | + | core.PuregoSafeRegister(&xVariantGetByte, libs, "g_variant_get_byte") | |||
| 2954 | + | core.PuregoSafeRegister(&xVariantGetBytestring, libs, "g_variant_get_bytestring") | |||
| 2955 | + | core.PuregoSafeRegister(&xVariantGetBytestringArray, libs, "g_variant_get_bytestring_array") | |||
| 2956 | + | core.PuregoSafeRegister(&xVariantGetChild, libs, "g_variant_get_child") | |||
| 2957 | + | core.PuregoSafeRegister(&xVariantGetChildValue, libs, "g_variant_get_child_value") | |||
| 2958 | + | core.PuregoSafeRegister(&xVariantGetData, libs, "g_variant_get_data") | |||
| 2959 | + | core.PuregoSafeRegister(&xVariantGetDataAsBytes, libs, "g_variant_get_data_as_bytes") | |||
| 2960 | + | core.PuregoSafeRegister(&xVariantGetDouble, libs, "g_variant_get_double") | |||
| 2961 | + | core.PuregoSafeRegister(&xVariantGetFixedArray, libs, "g_variant_get_fixed_array") | |||
| 2962 | + | core.PuregoSafeRegister(&xVariantGetHandle, libs, "g_variant_get_handle") | |||
| 2963 | + | core.PuregoSafeRegister(&xVariantGetInt16, libs, "g_variant_get_int16") | |||
| 2964 | + | core.PuregoSafeRegister(&xVariantGetInt32, libs, "g_variant_get_int32") | |||
| 2965 | + | core.PuregoSafeRegister(&xVariantGetInt64, libs, "g_variant_get_int64") | |||
| 2966 | + | core.PuregoSafeRegister(&xVariantGetMaybe, libs, "g_variant_get_maybe") | |||
| 2967 | + | core.PuregoSafeRegister(&xVariantGetNormalForm, libs, "g_variant_get_normal_form") | |||
| 2968 | + | core.PuregoSafeRegister(&xVariantGetObjv, libs, "g_variant_get_objv") | |||
| 2969 | + | core.PuregoSafeRegister(&xVariantGetSize, libs, "g_variant_get_size") | |||
| 2970 | + | core.PuregoSafeRegister(&xVariantGetString, libs, "g_variant_get_string") | |||
| 2971 | + | core.PuregoSafeRegister(&xVariantGetStrv, libs, "g_variant_get_strv") | |||
| 2972 | + | core.PuregoSafeRegister(&xVariantGetType, libs, "g_variant_get_type") | |||
| 2973 | + | core.PuregoSafeRegister(&xVariantGetTypeString, libs, "g_variant_get_type_string") | |||
| 2974 | + | core.PuregoSafeRegister(&xVariantGetUint16, libs, "g_variant_get_uint16") | |||
| 2975 | + | core.PuregoSafeRegister(&xVariantGetUint32, libs, "g_variant_get_uint32") | |||
| 2976 | + | core.PuregoSafeRegister(&xVariantGetUint64, libs, "g_variant_get_uint64") | |||
| 2977 | + | core.PuregoSafeRegister(&xVariantGetVa, libs, "g_variant_get_va") | |||
| 2978 | + | core.PuregoSafeRegister(&xVariantGetVariant, libs, "g_variant_get_variant") | |||
| 2979 | + | core.PuregoSafeRegister(&xVariantHash, libs, "g_variant_hash") | |||
| 2980 | + | core.PuregoSafeRegister(&xVariantIsContainer, libs, "g_variant_is_container") | |||
| 2981 | + | core.PuregoSafeRegister(&xVariantIsFloating, libs, "g_variant_is_floating") | |||
| 2982 | + | core.PuregoSafeRegister(&xVariantIsNormalForm, libs, "g_variant_is_normal_form") | |||
| 2983 | + | core.PuregoSafeRegister(&xVariantIsOfType, libs, "g_variant_is_of_type") | |||
| 2984 | + | core.PuregoSafeRegister(&xVariantIterNew, libs, "g_variant_iter_new") | |||
| 2985 | + | core.PuregoSafeRegister(&xVariantLookup, libs, "g_variant_lookup") | |||
| 2986 | + | core.PuregoSafeRegister(&xVariantLookupValue, libs, "g_variant_lookup_value") | |||
| 2987 | + | core.PuregoSafeRegister(&xVariantNChildren, libs, "g_variant_n_children") | |||
| 2988 | + | core.PuregoSafeRegister(&xVariantPrint, libs, "g_variant_print") | |||
| 2989 | + | core.PuregoSafeRegister(&xVariantPrintString, libs, "g_variant_print_string") | |||
| 2990 | + | core.PuregoSafeRegister(&xVariantRef, libs, "g_variant_ref") | |||
| 2991 | + | core.PuregoSafeRegister(&xVariantRefSink, libs, "g_variant_ref_sink") | |||
| 2992 | + | core.PuregoSafeRegister(&xVariantStore, libs, "g_variant_store") | |||
| 2993 | + | core.PuregoSafeRegister(&xVariantTakeRef, libs, "g_variant_take_ref") | |||
| 2994 | + | core.PuregoSafeRegister(&xVariantUnref, libs, "g_variant_unref") | |||
| 2995 | + | ||||
| 2996 | + | core.PuregoSafeRegister(&xVariantBuilderGLibType, libs, "g_variant_builder_get_type") | |||
| 2997 | + | ||||
| 2998 | + | core.PuregoSafeRegister(&xNewVariantBuilder, libs, "g_variant_builder_new") | |||
| 2999 | + | ||||
| 3000 | + | core.PuregoSafeRegister(&xVariantBuilderAdd, libs, "g_variant_builder_add") | |||
| 3001 | + | core.PuregoSafeRegister(&xVariantBuilderAddParsed, libs, "g_variant_builder_add_parsed") | |||
| 3002 | + | core.PuregoSafeRegister(&xVariantBuilderAddValue, libs, "g_variant_builder_add_value") | |||
| 3003 | + | core.PuregoSafeRegister(&xVariantBuilderClear, libs, "g_variant_builder_clear") | |||
| 3004 | + | core.PuregoSafeRegister(&xVariantBuilderClose, libs, "g_variant_builder_close") | |||
| 3005 | + | core.PuregoSafeRegister(&xVariantBuilderEnd, libs, "g_variant_builder_end") | |||
| 3006 | + | core.PuregoSafeRegister(&xVariantBuilderInit, libs, "g_variant_builder_init") | |||
| 3007 | + | core.PuregoSafeRegister(&xVariantBuilderInitStatic, libs, "g_variant_builder_init_static") | |||
| 3008 | + | core.PuregoSafeRegister(&xVariantBuilderOpen, libs, "g_variant_builder_open") | |||
| 3009 | + | core.PuregoSafeRegister(&xVariantBuilderRef, libs, "g_variant_builder_ref") | |||
| 3010 | + | core.PuregoSafeRegister(&xVariantBuilderUnref, libs, "g_variant_builder_unref") | |||
| 3011 | + | ||||
| 3012 | + | core.PuregoSafeRegister(&xVariantDictGLibType, libs, "g_variant_dict_get_type") | |||
| 3013 | + | ||||
| 3014 | + | core.PuregoSafeRegister(&xNewVariantDict, libs, "g_variant_dict_new") | |||
| 3015 | + | ||||
| 3016 | + | core.PuregoSafeRegister(&xVariantDictClear, libs, "g_variant_dict_clear") | |||
| 3017 | + | core.PuregoSafeRegister(&xVariantDictContains, libs, "g_variant_dict_contains") | |||
| 3018 | + | core.PuregoSafeRegister(&xVariantDictEnd, libs, "g_variant_dict_end") | |||
| 3019 | + | core.PuregoSafeRegister(&xVariantDictInit, libs, "g_variant_dict_init") | |||
| 3020 | + | core.PuregoSafeRegister(&xVariantDictInsert, libs, "g_variant_dict_insert") | |||
| 3021 | + | core.PuregoSafeRegister(&xVariantDictInsertValue, libs, "g_variant_dict_insert_value") | |||
| 3022 | + | core.PuregoSafeRegister(&xVariantDictLookup, libs, "g_variant_dict_lookup") | |||
| 3023 | + | core.PuregoSafeRegister(&xVariantDictLookupValue, libs, "g_variant_dict_lookup_value") | |||
| 3024 | + | core.PuregoSafeRegister(&xVariantDictRef, libs, "g_variant_dict_ref") | |||
| 3025 | + | core.PuregoSafeRegister(&xVariantDictRemove, libs, "g_variant_dict_remove") | |||
| 3026 | + | core.PuregoSafeRegister(&xVariantDictUnref, libs, "g_variant_dict_unref") | |||
| 3027 | + | ||||
| 3028 | + | core.PuregoSafeRegister(&xVariantIterCopy, libs, "g_variant_iter_copy") | |||
| 3029 | + | core.PuregoSafeRegister(&xVariantIterFree, libs, "g_variant_iter_free") | |||
| 3030 | + | core.PuregoSafeRegister(&xVariantIterInit, libs, "g_variant_iter_init") | |||
| 3031 | + | core.PuregoSafeRegister(&xVariantIterLoop, libs, "g_variant_iter_loop") | |||
| 3032 | + | core.PuregoSafeRegister(&xVariantIterNChildren, libs, "g_variant_iter_n_children") | |||
| 3033 | + | core.PuregoSafeRegister(&xVariantIterNext, libs, "g_variant_iter_next") | |||
| 3034 | + | core.PuregoSafeRegister(&xVariantIterNextValue, libs, "g_variant_iter_next_value") | |||
| 3035 | + | } | |||
A vendor/github.com/bnema/puregotk/v4/glib/gvarianttype.go +712 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gversion.go +44 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/gversionmacros.go +18 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/main.go +141 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/more.go +366 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/more_other.go +8 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/more_sysv.go +29 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/glib/more_windows.go +6 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gmodule/gmodule.go +172 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gmodule/gmoduleconf.go +12 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gmodule/main.go +30 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/gbinding.go +369 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/gbindinggroup.go +150 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/gboxed.go +65 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/gclosure.go +543 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/genums.go +290 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/glib-types.go +34 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/gmarshal.go +227 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/gobject.go +2233 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/gparam.go +924 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/gparamspecs.go +1324 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/gsignal.go +810 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/gsignalgroup.go +268 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/gsourceclosure.go +51 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/gtype.go +1648 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/gtypemodule.go +383 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/gtypeplugin.go +185 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/gvalue.go +895 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/gvaluearray.go +214 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/gvaluecollector.go +11 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/gvaluetypes.go +52 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/main.go +28 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/more.go +154 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gobject/types/types.go +3 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-box.go +391 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-config.go +55 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-euler.go +399 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-frustum.go +163 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-macros.go +8 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-matrix.go +830 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-plane.go +218 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-point.go +198 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-point3d.go +231 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-quad.go +144 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-quaternion.go +319 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-ray.go +268 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-rect.go +464 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-size.go +142 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-sphere.go +194 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-triangle.go +240 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-types.go +53 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-vec2.go +318 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-vec3.go +396 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/graphene/graphene-vec4.go +410 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskblendnode.go +117 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskblurnode.go +98 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskbordernode.go +106 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskbroadwayrenderer.go +97 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskcaironode.go +105 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskcairorenderer.go +98 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskclipnode.go +105 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskcolormatrixnode.go +124 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskcolornode.go +90 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskcomponenttransfer.go +30 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskcomponenttransfernode.go +106 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskcompositenode.go +123 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskconicgradientnode.go +130 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskcontainernode.go +100 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskcopynode.go +91 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskcrossfadenode.go +116 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskdebugnode.go +102 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskenums.go +569 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskfillnode.go +116 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskglrenderer.go +140 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskglshader.go +667 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskglshadernode.go +148 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskinsetshadownode.go +137 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskisolationnode.go +106 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gsklineargradientnode.go +166 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskmasknode.go +120 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskopacitynode.go +99 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskoutsetshadownode.go +137 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskpastenode.go +80 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskpath.go +129 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskpathpoint.go +191 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskradialgradientnode.go +195 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskrenderer.go +236 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskrendernode.go +341 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskrenderreplay.go +33 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskrepeatnode.go +105 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskroundedclipnode.go +104 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskroundedrect.go +191 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskshadownode.go +139 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskstroke.go +30 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskstrokenode.go +125 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gsksubsurfacenode.go +104 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gsktextnode.go +151 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gsktexturenode.go +96 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gsktexturescalenode.go +111 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gsktransform.go +36 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gsktransformnode.go +104 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gsktypes.go +2087 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gsk/gskvulkanrenderer.go +96 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkaboutdialog.go +1284 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkaccelgroup.go +175 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkaccessible.go +764 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkaccessiblehypertext.go +495 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkaccessiblerange.go +104 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkaccessibletext.go +579 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkactionable.go +344 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkactionbar.go +466 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkadjustment.go +600 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkalertdialog.go +400 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkappchooser.go +134 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkappchooserbutton.go +657 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkappchooserdialog.go +561 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkappchooserwidget.go +681 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkapplication.go +1025 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkapplicationwindow.go +952 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkaspectframe.go +520 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkassistant.go +1041 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkatcontext.go +151 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkbinlayout.go +95 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkbitset.go +140 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkbookmarklist.go +324 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkboolfilter.go +156 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkborder.go +93 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkbox.go +591 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkboxlayout.go +254 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkbuildable.go +717 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkbuilder.go +1021 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkbuilderlistitemfactory.go +216 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkbuilderscope.go +356 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkbutton.go +910 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcalendar.go +829 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcellarea.go +1864 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcellareabox.go +249 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcellareacontext.go +432 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcelleditable.go +224 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcelllayout.go +612 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrenderer.go +1046 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrendereraccel.go +180 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrenderercombo.go +174 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrendererpixbuf.go +109 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrendererprogress.go +221 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrendererspin.go +117 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrendererspinner.go +125 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrenderertext.go +774 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrenderertoggle.go +230 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcellview.go +696 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcenterbox.go +565 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcenterlayout.go +271 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcheckbutton.go +873 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcolorbutton.go +573 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcolorchooser.go +305 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcolorchooserdialog.go +521 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcolorchooserwidget.go +426 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcolordialog.go +247 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcolordialogbutton.go +491 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcolorutils.go +43 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcolumnview.go +927 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcolumnviewcell.go +219 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcolumnviewcolumn.go +469 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcolumnviewrow.go +336 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcolumnviewsorter.go +180 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcombobox.go +1327 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcomboboxtext.go +652 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkconstraint.go +366 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkconstraintguide.go +318 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkconstraintlayout.go +559 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcssenums.go +40 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcsserror.go +40 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcsslocation.go +34 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcssprovider.go +267 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcsssection.go +203 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcustomfilter.go +119 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcustomlayout.go +109 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkcustomsorter.go +111 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkdebug.go +107 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkdialog.go +1022 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkdialogerror.go +58 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkdirectorylist.go +418 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkdragicon.go +532 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkdragsource.go +391 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkdrawingarea.go +604 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkdropcontrollermotion.go +237 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkdropdown.go +756 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkdroptarget.go +539 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkdroptargetasync.go +347 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkeditable.go +1008 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkeditablelabel.go +695 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkemojichooser.go +474 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkentry.go +2253 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkentrybuffer.go +666 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkentrycompletion.go +764 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkenums.go +2312 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkeventcontroller.go +264 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkeventcontrollerfocus.go +209 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkeventcontrollerkey.go +243 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkeventcontrollerlegacy.go +118 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkeventcontrollermotion.go +214 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkeventcontrollerscroll.go +291 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkexpander.go +730 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkexpression.go +992 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkfilechooser.go +602 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkfilechooserdialog.go +945 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkfilechoosernative.go +670 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkfilechooserwidget.go +1095 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkfiledialog.go +706 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkfilefilter.go +327 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkfilelauncher.go +254 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkfilter.go +494 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkfilterlistmodel.go +407 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkfixed.go +453 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkfixedlayout.go +207 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkflattenlistmodel.go +262 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkflowbox.go +1627 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkfontbutton.go +763 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkfontchooser.go +692 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkfontchooserdialog.go +654 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkfontchooserwidget.go +543 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkfontdialog.go +411 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkfontdialogbutton.go +712 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkframe.go +564 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkgesture.go +646 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkgestureclick.go +199 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkgesturedrag.go +194 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkgesturelongpress.go +190 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkgesturepan.go +144 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkgesturerotate.go +131 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkgesturesingle.go +232 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkgesturestylus.go +299 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkgestureswipe.go +140 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkgesturezoom.go +133 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkglarea.go +1000 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkgraphicsoffload.go +499 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkgrid.go +780 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkgridlayout.go +488 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkgridview.go +758 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkheaderbar.go +637 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkiconpaintable.go +359 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkicontheme.go +538 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkiconview.go +1772 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkimage.go +879 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkimcontext.go +1251 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkimcontextsimple.go +175 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkimmodule.go +7 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkimmulticontext.go +238 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkinfobar.go +703 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkinscription.go +873 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtklabel.go +1725 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtklayoutchild.go +118 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtklayoutmanager.go +413 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtklevelbar.go +713 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtklinkbutton.go +591 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtklistbase.go +447 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtklistbox.go +1777 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtklistheader.go +188 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtklistitem.go +381 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtklistitemfactory.go +100 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkliststore.go +938 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtklistview.go +815 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtklockbutton.go +582 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkmain.go +185 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkmaplistmodel.go +321 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkmediacontrols.go +388 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkmediafile.go +566 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkmediastream.go +1149 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkmenubutton.go +905 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkmessagedialog.go +761 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkmountoperation.go +294 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkmultifilter.go +531 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkmultiselection.go +362 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkmultisorter.go +226 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtknative.go +175 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtknativedialog.go +475 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtknoselection.go +367 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtknotebook.go +1549 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtknumericsorter.go +147 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkorientable.go +101 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkoverlay.go +494 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkoverlaylayout.go +216 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkpadcontroller.go +234 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkpagesetup.go +447 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkpagesetupunixdialog.go +507 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkpaned.go +928 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkpapersize.go +364 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkpasswordentry.go +765 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkpasswordentrybuffer.go +93 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkpicture.go +832 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkpopover.go +923 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkpopoverbin.go +526 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkpopovermenu.go +634 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkpopovermenubar.go +416 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkprintcontext.go +276 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkprintdialog.go +489 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkprinter.go +556 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkprintjob.go +473 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkprintoperation.go +1910 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkprintoperationpreview.go +442 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkprintsettings.go +968 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkprintunixdialog.go +754 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkprogressbar.go +658 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkrange.go +957 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkrecentmanager.go +902 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkrender.go +169 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkrevealer.go +544 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkroot.go +143 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkscale.go +735 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkscalebutton.go +730 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkscrollable.go +234 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkscrollbar.go +417 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkscrolledwindow.go +1157 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtksearchbar.go +539 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtksearchentry.go +973 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtksectionmodel.go +159 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkselectionfiltermodel.go +219 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkselectionmodel.go +564 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkseparator.go +362 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtksettings.go +1343 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcut.go +218 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcutaction.go +662 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcutcontroller.go +336 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcutlabel.go +427 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcutmanager.go +128 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcutsgroup.go +424 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcutssection.go +520 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcutsshortcut.go +532 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcutswindow.go +607 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcuttrigger.go +617 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkshow.go +61 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtksignallistitemfactory.go +252 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtksingleselection.go +510 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtksizegroup.go +250 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtksizerequest.go +64 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkslicelistmodel.go +327 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtksnapshot.go +823 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtksorter.go +491 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtksortlistmodel.go +407 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkspinbutton.go +1409 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkspinner.go +405 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkstack.go +1385 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkstacksidebar.go +382 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkstackswitcher.go +405 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkstatusbar.go +471 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkstringfilter.go +248 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkstringlist.go +404 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkstringsorter.go +207 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkstylecontext.go +513 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkstyleprovider.go +67 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtksvg.go +875 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkswitch.go +606 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtksymbolicpaintable.go +177 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktestatcontext.go +96 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktestutils.go +73 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktext.go +1730 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktextbuffer.go +2252 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktextchild.go +246 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktextiter.go +1393 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktextmark.go +259 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktexttag.go +1583 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktexttagtable.go +246 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktextview.go +2802 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktogglebutton.go +674 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktooltip.go +169 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktreednd.go +395 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktreeexpander.go +615 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktreelistmodel.go +599 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktreelistrowsorter.go +136 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktreemodel.go +1750 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktreemodelfilter.go +742 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktreemodelsort.go +693 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktreeselection.go +326 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktreesortable.go +362 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktreestore.go +890 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktreeview.go +2663 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktreeviewcolumn.go +994 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtktypes.go +513 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkurilauncher.go +182 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkversion.go +145 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkvideo.go +632 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkviewport.go +512 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkvolumebutton.go +377 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkwidget.go +5627 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkwidgetpaintable.go +269 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkwindow.go +2140 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkwindowcontrols.go +556 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkwindowgroup.go +239 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/gtkwindowhandle.go +394 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/gtk/main.go +30 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/javascriptcore/JSCClass.go +524 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/javascriptcore/JSCContext.go +417 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/javascriptcore/JSCException.go +256 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/javascriptcore/JSCOptions.go +228 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/javascriptcore/JSCValue.go +1072 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/javascriptcore/JSCVersion.go +81 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/javascriptcore/JSCVirtualMachine.go +96 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/javascriptcore/JSCWeakValue.go +135 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/layershell/gtk4-layer-shell.go +340 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/main.go +30 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-attributes.go +1798 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-bidi-type.go +138 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-break.go +144 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-color.go +135 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-context.go +422 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-coverage.go +211 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-direction.go +50 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-features.go +13 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-font.go +2313 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-fontmap.go +580 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-fontset-simple.go +112 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-fontset.go +374 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-glyph-item.go +308 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-glyph.go +439 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-gravity.go +151 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-item.go +257 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-language.go +110 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-layout.go +1777 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-markup.go +106 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-matrix.go +246 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-renderer.go +782 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-script.go +427 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-tabs.go +281 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-types.go +250 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/pango/pango-utils.go +293 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-auth-basic.go +36 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-auth-digest.go +36 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-auth-domain-basic.go +152 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-auth-domain-digest.go +166 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-auth-domain.go +403 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-auth-manager.go +116 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-auth-negotiate.go +74 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-auth-ntlm.go +36 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-auth.go +536 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-cache.go +249 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-content-decoder.go +79 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-content-sniffer.go +112 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-cookie-jar-db.go +121 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-cookie-jar-text.go +117 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-cookie-jar.go +466 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-cookie.go +166 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-date-utils.go +76 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-form.go +150 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-headers.go +245 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-hsts-enforcer-db.go +118 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-hsts-enforcer.go +313 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-hsts-policy.go +7 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-logger.go +273 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-message-body.go +284 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-message-headers.go +626 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-message.go +1419 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-multipart-input-stream.go +264 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-multipart.go +164 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-server-message.go +693 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-server.go +996 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-session-feature.go +61 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-session.go +1383 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-status.go +204 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-tld.go +105 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-types.go +816 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-uri-utils.go +104 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-version.go +111 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-websocket-connection.go +630 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-websocket-extension-deflate.go +59 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-websocket-extension-manager.go +63 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-websocket-extension.go +333 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/soup/soup-websocket.go +276 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitApplicationInfo.go +135 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitAuthenticationRequest.go +342 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitAutomationSession.go +222 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitBackForwardList.go +250 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitBackForwardListItem.go +115 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitClipboardPermissionRequest.go +73 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitColorChooserRequest.go +189 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitContextMenu.go +346 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitContextMenuActions.go +112 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitContextMenuItem.go +284 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitCookieManager.go +353 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitCredential.go +188 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitDeviceInfoPermissionRequest.go +74 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitDownload.go +433 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitEditingCommands.go +61 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitEditorState.go +200 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitError.go +335 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitFaviconDatabase.go +205 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitFeature.go +325 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitFileChooserRequest.go +226 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitFindController.go +356 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitFormSubmissionRequest.go +110 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitGeolocationManager.go +285 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitGeolocationPermissionRequest.go +89 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitHitTestResult.go +355 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitImage.go +275 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitInputMethodContext.go +1260 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitMediaKeySystemPermissionRequest.go +108 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitMemoryPressureSettings.go +211 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitNavigationAction.go +184 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitNavigationPolicyDecision.go +103 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitNetworkProxySettings.go +153 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitNetworkSession.go +425 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitNotification.go +216 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitNotificationPermissionRequest.go +73 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitOptionMenu.go +191 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitOptionMenuItem.go +129 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitPermissionRequest.go +153 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitPermissionStateQuery.go +135 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitPointerLockPermissionRequest.go +73 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitPolicyDecision.go +348 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitPrintOperation.go +283 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitResponsePolicyDecision.go +148 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitScriptDialog.go +178 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitSecurityManager.go +218 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitSecurityOrigin.go +164 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitSettings.go +2513 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitURIRequest.go +157 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitURIResponse.go +200 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitURISchemeRequest.go +201 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitURISchemeResponse.go +151 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitURIUtilities.go +36 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitUserContent.go +329 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitUserContentFilterStore.go +295 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitUserContentManager.go +430 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitUserMediaPermissionRequest.go +139 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitUserMessage.go +241 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitVersion.go +84 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebContext.go +649 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebExtension.go +608 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebExtensionMatchPattern.go +261 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebInspector.go +392 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebResource.go +290 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebView.go +4693 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebViewBase.go +433 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebViewGtk4.go +43 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebViewSessionState.go +103 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebsiteData.go +127 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebsiteDataAccessPermissionRequest.go +113 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebsiteDataManager.go +544 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebsitePolicies.go +151 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitWindowProperties.go +342 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/WebKitXRPermissionRequest.go +247 -0 collapsed to keep the page light
A vendor/github.com/bnema/puregotk/v4/webkit/more.go +228 -0 collapsed to keep the page light
A vendor/github.com/cenkalti/backoff/v4/.gitignore +25 -0 collapsed to keep the page light
A vendor/github.com/cenkalti/backoff/v4/LICENSE +20 -0 collapsed to keep the page light
A vendor/github.com/cenkalti/backoff/v4/README.md +30 -0 collapsed to keep the page light
A vendor/github.com/cenkalti/backoff/v4/backoff.go +66 -0 collapsed to keep the page light
A vendor/github.com/cenkalti/backoff/v4/context.go +62 -0 collapsed to keep the page light
A vendor/github.com/cenkalti/backoff/v4/exponential.go +216 -0 collapsed to keep the page light
A vendor/github.com/cenkalti/backoff/v4/retry.go +146 -0 collapsed to keep the page light
A vendor/github.com/cenkalti/backoff/v4/ticker.go +97 -0 collapsed to keep the page light
A vendor/github.com/cenkalti/backoff/v4/timer.go +35 -0 collapsed to keep the page light
A vendor/github.com/cenkalti/backoff/v4/tries.go +38 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbles/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbles/cursor/cursor.go +221 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbles/help/help.go +240 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbles/key/key.go +140 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbles/list/README.md +71 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbles/list/defaultitem.go +229 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbles/list/keys.go +97 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbles/list/list.go +1330 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbles/list/style.go +99 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbles/paginator/paginator.go +214 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbles/runeutil/runeutil.go +102 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbles/spinner/spinner.go +224 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbles/table/table.go +450 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbles/textinput/textinput.go +890 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbles/viewport/keymap.go +60 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbles/viewport/viewport.go +544 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/.gitattributes +1 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/.gitignore +23 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/.golangci.yml +44 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/.goreleaser.yml +5 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/README.md +400 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/Taskfile.yaml +14 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/commands.go +222 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/exec.go +133 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/focus.go +9 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/inputreader_other.go +19 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/inputreader_windows.go +129 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/key.go +715 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/key_other.go +13 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/key_sequences.go +130 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/key_windows.go +441 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/logging.go +53 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/mouse.go +308 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/nil_renderer.go +29 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/options.go +252 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/renderer.go +88 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/screen.go +248 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/signals_unix.go +33 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/signals_windows.go +10 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/standard_renderer.go +790 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/tea.go +941 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/tea_init.go +22 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/tty.go +141 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/tty_unix.go +49 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/bubbletea/tty_windows.go +68 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/colorprofile/.golangci.yml +47 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/colorprofile/.goreleaser.yml +6 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/colorprofile/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/colorprofile/README.md +109 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/colorprofile/doc.go +4 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/colorprofile/env.go +294 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/colorprofile/env_other.go +8 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/colorprofile/env_windows.go +40 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/colorprofile/profile.go +108 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/colorprofile/writer.go +171 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/.gitignore +2 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/.golangci.yml +41 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/.goreleaser.yml +5 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/README.md +815 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/Taskfile.yaml +19 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/align.go +83 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/ansi_unix.go +7 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/ansi_windows.go +22 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/borders.go +490 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/color.go +172 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/get.go +556 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/join.go +175 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/position.go +154 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/ranges.go +48 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/renderer.go +181 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/runes.go +43 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/set.go +799 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/size.go +41 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/style.go +588 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/unset.go +331 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/lipgloss/whitespace.go +83 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/ansi.go +11 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/ascii.go +8 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/background.go +178 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/c0.go +79 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/c1.go +72 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/charset.go +55 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/clipboard.go +75 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/color.go +784 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/ctrl.go +156 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/cursor.go +637 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/cwd.go +26 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/doc.go +7 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/finalterm.go +67 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/focus.go +9 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/graphics.go +62 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/hyperlink.go +28 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/inband.go +24 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/iterm2.go +18 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/keypad.go +28 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/kitty.go +90 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/method.go +196 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/mode.go +690 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/mode_deprecated.go +495 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/modes.go +65 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/mouse.go +172 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/notification.go +32 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/palette.go +34 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/parser.go +417 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/parser/const.go +79 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/parser/seq.go +136 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/parser/transition_table.go +273 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/parser_decode.go +525 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/parser_handler.go +60 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/parser_sync.go +29 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/passthrough.go +60 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/paste.go +7 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/progress.go +49 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/reset.go +11 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/screen.go +410 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/sgr.go +79 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/status.go +168 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/style.go +819 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/termcap.go +41 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/title.go +48 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/truncate.go +290 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/urxvt.go +17 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/util.go +92 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/width.go +107 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/winop.go +59 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/wrap.go +472 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/ansi/xterm.go +138 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/cellbuf/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/cellbuf/buffer.go +474 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/cellbuf/cell.go +487 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/cellbuf/errors.go +6 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/cellbuf/geom.go +21 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/cellbuf/hardscroll.go +273 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/cellbuf/hashmap.go +301 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/cellbuf/link.go +14 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/cellbuf/pen.go +92 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/cellbuf/screen.go +1514 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/cellbuf/sequence.go +131 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/cellbuf/style.go +31 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/cellbuf/tabstop.go +137 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/cellbuf/utils.go +24 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/cellbuf/wrap.go +191 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/cellbuf/writer.go +340 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/term/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/term/term.go +51 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/term/term_other.go +39 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/term/term_plan9.go +118 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/term/term_unix.go +96 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/term/term_unix_bsd.go +11 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/term/term_unix_other.go +11 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/term/term_windows.go +87 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/term/terminal.go +12 -0 collapsed to keep the page light
A vendor/github.com/charmbracelet/x/term/util.go +47 -0 collapsed to keep the page light
A vendor/github.com/cli/browser/LICENSE +23 -0 collapsed to keep the page light
A vendor/github.com/cli/browser/README.md +20 -0 collapsed to keep the page light
A vendor/github.com/cli/browser/browser.go +57 -0 collapsed to keep the page light
A vendor/github.com/cli/browser/browser_darwin.go +5 -0 collapsed to keep the page light
A vendor/github.com/cli/browser/browser_freebsd.go +15 -0 collapsed to keep the page light
A vendor/github.com/cli/browser/browser_linux.go +21 -0 collapsed to keep the page light
A vendor/github.com/cli/browser/browser_netbsd.go +14 -0 collapsed to keep the page light
A vendor/github.com/cli/browser/browser_openbsd.go +15 -0 collapsed to keep the page light
A vendor/github.com/cli/browser/browser_unsupported.go +12 -0 collapsed to keep the page light
A vendor/github.com/cli/browser/browser_windows.go +7 -0 collapsed to keep the page light
A vendor/github.com/clipperhouse/displaywidth/.gitignore +3 -0 collapsed to keep the page light
A vendor/github.com/clipperhouse/displaywidth/AGENTS.md +51 -0 collapsed to keep the page light
A vendor/github.com/clipperhouse/displaywidth/CHANGELOG.md +129 -0 collapsed to keep the page light
A vendor/github.com/clipperhouse/displaywidth/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/clipperhouse/displaywidth/README.md +190 -0 collapsed to keep the page light
A vendor/github.com/clipperhouse/displaywidth/gen.go +3 -0 collapsed to keep the page light
A vendor/github.com/clipperhouse/displaywidth/graphemes.go +73 -0 collapsed to keep the page light
A vendor/github.com/clipperhouse/displaywidth/options.go +30 -0 collapsed to keep the page light
A vendor/github.com/clipperhouse/displaywidth/trie.go +1699 -0 collapsed to keep the page light
A vendor/github.com/clipperhouse/displaywidth/truncate.go +149 -0 collapsed to keep the page light
A vendor/github.com/clipperhouse/displaywidth/width.go +239 -0 collapsed to keep the page light
A vendor/github.com/clipperhouse/uax29/v2/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/clipperhouse/uax29/v2/graphemes/README.md +120 -0 collapsed to keep the page light
A vendor/github.com/clipperhouse/uax29/v2/graphemes/ansi.go +138 -0 collapsed to keep the page light
A vendor/github.com/clipperhouse/uax29/v2/graphemes/ansi8.go +79 -0 collapsed to keep the page light
A vendor/github.com/clipperhouse/uax29/v2/graphemes/iterator.go +144 -0 collapsed to keep the page light
A vendor/github.com/clipperhouse/uax29/v2/graphemes/reader.go +25 -0 collapsed to keep the page light
A vendor/github.com/clipperhouse/uax29/v2/graphemes/splitfunc.go +205 -0 collapsed to keep the page light
A vendor/github.com/clipperhouse/uax29/v2/graphemes/trie.go +1717 -0 collapsed to keep the page light
A vendor/github.com/cpuguy83/go-md2man/v2/LICENSE.md +21 -0 collapsed to keep the page light
A vendor/github.com/cpuguy83/go-md2man/v2/md2man/debug.go +62 -0 collapsed to keep the page light
A vendor/github.com/cpuguy83/go-md2man/v2/md2man/md2man.go +24 -0 collapsed to keep the page light
A vendor/github.com/cpuguy83/go-md2man/v2/md2man/roff.go +416 -0 collapsed to keep the page light
A vendor/github.com/davecgh/go-spew/LICENSE +15 -0 collapsed to keep the page light
A vendor/github.com/davecgh/go-spew/spew/bypass.go +145 -0 collapsed to keep the page light
A vendor/github.com/davecgh/go-spew/spew/bypasssafe.go +38 -0 collapsed to keep the page light
A vendor/github.com/davecgh/go-spew/spew/common.go +341 -0 collapsed to keep the page light
A vendor/github.com/davecgh/go-spew/spew/config.go +306 -0 collapsed to keep the page light
A vendor/github.com/davecgh/go-spew/spew/doc.go +211 -0 collapsed to keep the page light
A vendor/github.com/davecgh/go-spew/spew/dump.go +509 -0 collapsed to keep the page light
A vendor/github.com/davecgh/go-spew/spew/format.go +419 -0 collapsed to keep the page light
A vendor/github.com/davecgh/go-spew/spew/spew.go +148 -0 collapsed to keep the page light
A vendor/github.com/erikgeiser/coninput/.gitignore +15 -0 collapsed to keep the page light
A vendor/github.com/erikgeiser/coninput/.golangci.yml +24 -0 collapsed to keep the page light
A vendor/github.com/erikgeiser/coninput/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/erikgeiser/coninput/README.md +2 -0 collapsed to keep the page light
A vendor/github.com/erikgeiser/coninput/keycodes.go +205 -0 collapsed to keep the page light
A vendor/github.com/erikgeiser/coninput/mode.go +82 -0 collapsed to keep the page light
A vendor/github.com/erikgeiser/coninput/read.go +154 -0 collapsed to keep the page light
A vendor/github.com/erikgeiser/coninput/records.go +486 -0 collapsed to keep the page light
A vendor/github.com/fatih/color/LICENSE.md +20 -0 collapsed to keep the page light
A vendor/github.com/fatih/color/README.md +189 -0 collapsed to keep the page light
A vendor/github.com/fatih/color/color.go +733 -0 collapsed to keep the page light
A vendor/github.com/fatih/color/color_windows.go +22 -0 collapsed to keep the page light
A vendor/github.com/fatih/color/doc.go +134 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/.gitignore +10 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/.mailmap +2 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/CHANGELOG.md +651 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/CONTRIBUTING.md +147 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/LICENSE +25 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/README.md +214 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/backend_fen.go +469 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/backend_inotify.go +597 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/backend_kqueue.go +735 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/backend_other.go +22 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/backend_windows.go +702 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/fsnotify.go +526 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/internal/darwin.go +20 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/internal/debug_darwin.go +15 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/internal/debug_dragonfly.go +15 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/internal/debug_freebsd.go +20 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/internal/debug_kqueue.go +32 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/internal/debug_linux.go +56 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/internal/debug_netbsd.go +15 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/internal/debug_openbsd.go +16 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/internal/debug_solaris.go +45 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/internal/debug_windows.go +40 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/internal/freebsd.go +20 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/internal/internal.go +2 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/internal/unix.go +20 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/internal/unix2.go +25 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/internal/windows.go +40 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/shared.go +64 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/staticcheck.conf +3 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/system_bsd.go +7 -0 collapsed to keep the page light
A vendor/github.com/fsnotify/fsnotify/system_darwin.go +8 -0 collapsed to keep the page light
A vendor/github.com/go-viper/mapstructure/v2/.editorconfig +24 -0 collapsed to keep the page light
A vendor/github.com/go-viper/mapstructure/v2/.envrc +7 -0 collapsed to keep the page light
A vendor/github.com/go-viper/mapstructure/v2/.gitignore +10 -0 collapsed to keep the page light
A vendor/github.com/go-viper/mapstructure/v2/.golangci.yaml +48 -0 collapsed to keep the page light
A vendor/github.com/go-viper/mapstructure/v2/CHANGELOG.md +104 -0 collapsed to keep the page light
A vendor/github.com/go-viper/mapstructure/v2/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/go-viper/mapstructure/v2/README.md +81 -0 collapsed to keep the page light
A vendor/github.com/go-viper/mapstructure/v2/decode_hooks.go +714 -0 collapsed to keep the page light
A vendor/github.com/go-viper/mapstructure/v2/devenv.lock +103 -0 collapsed to keep the page light
A vendor/github.com/go-viper/mapstructure/v2/devenv.nix +14 -0 collapsed to keep the page light
A vendor/github.com/go-viper/mapstructure/v2/devenv.yaml +4 -0 collapsed to keep the page light
A vendor/github.com/go-viper/mapstructure/v2/errors.go +244 -0 collapsed to keep the page light
A vendor/github.com/go-viper/mapstructure/v2/internal/errors/errors.go +11 -0 collapsed to keep the page light
A vendor/github.com/go-viper/mapstructure/v2/internal/errors/join.go +9 -0 collapsed to keep the page light
A vendor/github.com/go-viper/mapstructure/v2/internal/errors/join_go1_19.go +61 -0 collapsed to keep the page light
A vendor/github.com/go-viper/mapstructure/v2/mapstructure.go +1948 -0 collapsed to keep the page light
A vendor/github.com/go-viper/mapstructure/v2/reflect_go1_19.go +44 -0 collapsed to keep the page light
A vendor/github.com/go-viper/mapstructure/v2/reflect_go1_20.go +10 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/.cirrus.yml +11 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/.golangci.yml +13 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/CONTRIBUTING.md +50 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/LICENSE +25 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/MAINTAINERS +3 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/README.md +47 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/SECURITY.md +13 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/auth.go +257 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/auth_anonymous.go +16 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/auth_default_other.go +7 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/auth_default_windows.go +5 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/auth_external.go +26 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/auth_sha1_windows.go +109 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/call.go +66 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/conn.go +1009 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/conn_darwin.go +36 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/conn_other.go +83 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/conn_unix.go +40 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/conn_windows.go +13 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/dbus.go +427 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/decoder.go +376 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/default_handler.go +338 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/doc.go +70 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/encoder.go +235 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/escape.go +84 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/export.go +484 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/match.go +89 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/message.go +393 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/object.go +181 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/sequence.go +24 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/sequential_handler.go +125 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/server_interfaces.go +107 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/sig.go +298 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/transport_darwin.go +6 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/transport_generic.go +52 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/transport_nonce_tcp.go +41 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/transport_tcp.go +41 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/transport_unix.go +291 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/transport_unixcred_dragonfly.go +95 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/transport_unixcred_freebsd.go +94 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/transport_unixcred_linux.go +25 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/transport_unixcred_netbsd.go +14 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/transport_unixcred_openbsd.go +14 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/transport_zos.go +6 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/variant.go +169 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/variant_lexer.go +284 -0 collapsed to keep the page light
A vendor/github.com/godbus/dbus/v5/variant_parser.go +815 -0 collapsed to keep the page light
A vendor/github.com/inconshreveable/mousetrap/LICENSE +201 -0 collapsed to keep the page light
A vendor/github.com/inconshreveable/mousetrap/README.md +23 -0 collapsed to keep the page light
A vendor/github.com/inconshreveable/mousetrap/trap_others.go +16 -0 collapsed to keep the page light
A vendor/github.com/inconshreveable/mousetrap/trap_windows.go +42 -0 collapsed to keep the page light
A vendor/github.com/lucasb-eyer/go-colorful/.gitignore +101 -0 collapsed to keep the page light
A vendor/github.com/lucasb-eyer/go-colorful/CHANGELOG.md +72 -0 collapsed to keep the page light
A vendor/github.com/lucasb-eyer/go-colorful/LICENSE +7 -0 collapsed to keep the page light
A vendor/github.com/lucasb-eyer/go-colorful/README.md +490 -0 collapsed to keep the page light
A vendor/github.com/lucasb-eyer/go-colorful/colorgens.go +67 -0 collapsed to keep the page light
A vendor/github.com/lucasb-eyer/go-colorful/colors.go +1156 -0 collapsed to keep the page light
A vendor/github.com/lucasb-eyer/go-colorful/happy_palettegen.go +29 -0 collapsed to keep the page light
A vendor/github.com/lucasb-eyer/go-colorful/hexcolor.go +91 -0 collapsed to keep the page light
A vendor/github.com/lucasb-eyer/go-colorful/hsluv-snapshot-rev4.json +1 -0 collapsed to keep the page light
A vendor/github.com/lucasb-eyer/go-colorful/hsluv.go +208 -0 collapsed to keep the page light
A vendor/github.com/lucasb-eyer/go-colorful/rand.go +22 -0 collapsed to keep the page light
A vendor/github.com/lucasb-eyer/go-colorful/soft_palettegen.go +192 -0 collapsed to keep the page light
A vendor/github.com/lucasb-eyer/go-colorful/sort.go +191 -0 collapsed to keep the page light
A vendor/github.com/lucasb-eyer/go-colorful/warm_palettegen.go +29 -0 collapsed to keep the page light
A vendor/github.com/lucasb-eyer/go-colorful/widegamut.go +290 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-colorable/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-colorable/README.md +48 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-colorable/colorable_others.go +38 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-colorable/colorable_windows.go +1047 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-colorable/go.test.sh +12 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-colorable/noncolorable.go +57 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-isatty/LICENSE +9 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-isatty/README.md +50 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-isatty/doc.go +2 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-isatty/go.test.sh +12 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-isatty/isatty_bsd.go +20 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-isatty/isatty_others.go +17 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-isatty/isatty_plan9.go +23 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-isatty/isatty_solaris.go +21 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-isatty/isatty_tcgets.go +20 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-isatty/isatty_windows.go +136 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-localereader/README.md +23 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-localereader/localereader.go +19 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-localereader/localereader_unix.go +11 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-localereader/localereader_windows.go +85 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-runewidth/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-runewidth/README.md +27 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-runewidth/benchstat.txt +43 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-runewidth/new.txt +54 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-runewidth/old.txt +54 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-runewidth/runewidth.go +420 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-runewidth/runewidth_appengine.go +9 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-runewidth/runewidth_js.go +9 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-runewidth/runewidth_posix.go +81 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-runewidth/runewidth_table.go +488 -0 collapsed to keep the page light
A vendor/github.com/mattn/go-runewidth/runewidth_windows.go +34 -0 collapsed to keep the page light
A vendor/github.com/mfridman/interpolate/LICENSE.txt +24 -0 collapsed to keep the page light
A vendor/github.com/mfridman/interpolate/README.md +85 -0 collapsed to keep the page light
A vendor/github.com/mfridman/interpolate/env.go +53 -0 collapsed to keep the page light
A vendor/github.com/mfridman/interpolate/interpolate.go +213 -0 collapsed to keep the page light
A vendor/github.com/mfridman/interpolate/parser.go +281 -0 collapsed to keep the page light
A vendor/github.com/muesli/ansi/.gitignore +15 -0 collapsed to keep the page light
A vendor/github.com/muesli/ansi/.golangci.yml +27 -0 collapsed to keep the page light
A vendor/github.com/muesli/ansi/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/muesli/ansi/README.md +31 -0 collapsed to keep the page light
A vendor/github.com/muesli/ansi/ansi.go +7 -0 collapsed to keep the page light
A vendor/github.com/muesli/ansi/buffer.go +40 -0 collapsed to keep the page light
A vendor/github.com/muesli/ansi/compressor/writer.go +132 -0 collapsed to keep the page light
A vendor/github.com/muesli/ansi/writer.go +76 -0 collapsed to keep the page light
A vendor/github.com/muesli/cancelreader/.gitignore +15 -0 collapsed to keep the page light
A vendor/github.com/muesli/cancelreader/.golangci-soft.yml +47 -0 collapsed to keep the page light
A vendor/github.com/muesli/cancelreader/.golangci.yml +29 -0 collapsed to keep the page light
A vendor/github.com/muesli/cancelreader/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/muesli/cancelreader/README.md +64 -0 collapsed to keep the page light
A vendor/github.com/muesli/cancelreader/cancelreader.go +93 -0 collapsed to keep the page light
A vendor/github.com/muesli/cancelreader/cancelreader_bsd.go +146 -0 collapsed to keep the page light
A vendor/github.com/muesli/cancelreader/cancelreader_default.go +12 -0 collapsed to keep the page light
A vendor/github.com/muesli/cancelreader/cancelreader_linux.go +154 -0 collapsed to keep the page light
A vendor/github.com/muesli/cancelreader/cancelreader_select.go +136 -0 collapsed to keep the page light
A vendor/github.com/muesli/cancelreader/cancelreader_unix.go +18 -0 collapsed to keep the page light
A vendor/github.com/muesli/cancelreader/cancelreader_windows.go +244 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/.gitignore +15 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/.golangci-soft.yml +43 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/.golangci.yml +28 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/README.md +431 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/ansi_compat.md +65 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/ansicolors.go +281 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/color.go +205 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/constants_linux.go +8 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/constants_solaris.go +8 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/constants_unix.go +13 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/constants_zos.go +8 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/copy.go +37 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/hyperlink.go +11 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/notification.go +11 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/output.go +205 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/profile.go +112 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/screen.go +590 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/style.go +126 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/templatehelper.go +88 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/termenv.go +115 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/termenv_other.go +30 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/termenv_posix.go +17 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/termenv_solaris.go +22 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/termenv_unix.go +301 -0 collapsed to keep the page light
A vendor/github.com/muesli/termenv/termenv_windows.go +140 -0 collapsed to keep the page light
A vendor/github.com/natefinch/atomic/.gitignore +24 -0 collapsed to keep the page light
A vendor/github.com/natefinch/atomic/LICENSE +22 -0 collapsed to keep the page light
A vendor/github.com/natefinch/atomic/README.md +35 -0 collapsed to keep the page light
A vendor/github.com/natefinch/atomic/atomic.go +73 -0 collapsed to keep the page light
A vendor/github.com/natefinch/atomic/file_unix.go +14 -0 collapsed to keep the page light
A vendor/github.com/natefinch/atomic/file_windows.go +33 -0 collapsed to keep the page light
A vendor/github.com/natefinch/atomic/zfile_windows.go +27 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/.dockerignore +2 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/.gitattributes +4 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/.gitignore +8 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/.golangci.toml +76 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/.goreleaser.yaml +128 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/AGENTS.md +73 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/CONTRIBUTING.md +254 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/Dockerfile +6 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/LICENSE +22 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/README.md +327 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/SECURITY.md +16 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/capability_baseline.txt +1 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/caps.sh +101 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/ci.sh +293 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/decode.go +538 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/decode_fused.go +362 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/doc.go +2 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/errors.go +233 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/internal/parserbridge/parserbridge.go +37 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/internal/tracker/key.go +49 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/internal/tracker/seen.go +450 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/internal/tracker/tracker.go +2 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/localtime.go +121 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/marshaler.go +1697 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/strict.go +108 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/test-go-versions.sh +597 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/toml.abnf +246 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/types.go +24 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/unmarshaler.go +2396 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/unstable/ast.go +124 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/unstable/bridge.go +21 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/unstable/doc.go +3 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/unstable/kind.go +83 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/unstable/marshaler.go +29 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/unstable/parser.go +1686 -0 collapsed to keep the page light
A vendor/github.com/pelletier/go-toml/v2/unstable/unmarshaler.go +43 -0 collapsed to keep the page light
A vendor/github.com/pmezard/go-difflib/LICENSE +27 -0 collapsed to keep the page light
A vendor/github.com/pmezard/go-difflib/difflib/difflib.go +772 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/.gitignore +22 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/.golangci.yaml +31 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/.goreleaser.yaml +37 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/CHANGELOG.md +350 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/LICENSE +22 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/Makefile +150 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/README.md +500 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/create.go +116 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/database/dialect/querier.go +25 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/database/dialect/querier_extended.go +22 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/database/dialects.go +214 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/database/doc.go +14 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/database/sql_extended.go +23 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/database/store.go +66 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/database/store_extended.go +33 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/db.go +48 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/dialect.go +74 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/down.go +107 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/fix.go +54 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/globals.go +104 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/goose.go +141 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/helpers.go +84 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/install.sh +37 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/internal/controller/store.go +37 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/internal/dialects/clickhouse.go +53 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/internal/dialects/dsql.go +66 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/internal/dialects/mysql.go +62 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/internal/dialects/postgres.go +70 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/internal/dialects/redshift.go +52 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/internal/dialects/spanner.go +50 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/internal/dialects/sqlite3.go +51 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/internal/dialects/sqlserver.go +51 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/internal/dialects/starrocks.go +54 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/internal/dialects/tidb.go +52 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/internal/dialects/turso.go +14 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/internal/dialects/vertica.go +54 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/internal/dialects/ydb.go +72 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/internal/gooseutil/resolve.go +118 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/internal/legacystore/legacystore.go +173 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/internal/sqlparser/parse.go +59 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/internal/sqlparser/parser.go +394 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/lock/internal/store/postgres.go +282 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/lock/internal/store/store.go +51 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/lock/internal/table/config.go +28 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/lock/internal/table/locker.go +237 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/lock/locker.go +32 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/lock/postgres.go +165 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/lock/session_locker_options.go +98 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/lock/table_locker_options.go +136 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/log.go +36 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/migrate.go +379 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/migration.go +398 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/migration_sql.go +115 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/osfs.go +28 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/provider.go +669 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/provider_collect.go +196 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/provider_errors.go +48 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/provider_options.go +280 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/provider_run.go +535 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/provider_types.go +91 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/redo.go +51 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/register.go +133 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/reset.go +64 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/status.go +64 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/up.go +221 -0 collapsed to keep the page light
A vendor/github.com/pressly/goose/v3/version.go +52 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/LICENSE.txt +21 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/README.md +137 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/doc.go +108 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/eastasianwidth.go +2588 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/emojipresentation.go +295 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/gen_breaktest.go +215 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/gen_properties.go +261 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/grapheme.go +331 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/graphemeproperties.go +1915 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/graphemerules.go +176 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/line.go +134 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/lineproperties.go +3554 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/linerules.go +626 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/properties.go +208 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/sentence.go +90 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/sentenceproperties.go +2845 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/sentencerules.go +276 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/step.go +242 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/width.go +61 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/word.go +89 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/wordproperties.go +1883 -0 collapsed to keep the page light
A vendor/github.com/rivo/uniseg/wordrules.go +282 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/.gitignore +27 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/CONTRIBUTING.md +43 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/README.md +858 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/array.go +276 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/console.go +535 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/context.go +535 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/ctx.go +51 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/encoder.go +56 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/encoder_cbor.go +45 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/encoder_json.go +51 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/event.go +919 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/example.jsonl +7 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/fields.go +312 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/globals.go +208 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/globals_118.go +30 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/go112.go +7 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/hook.go +64 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/internal/cbor/README.md +56 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/internal/cbor/base.go +19 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/internal/cbor/cbor.go +102 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/internal/cbor/decode_stream.go +654 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/internal/cbor/string.go +117 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/internal/cbor/time.go +111 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/internal/cbor/types.go +524 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/internal/json/base.go +19 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/internal/json/bytes.go +85 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/internal/json/string.go +149 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/internal/json/time.go +124 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/internal/json/types.go +466 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/log.go +528 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/not_go112.go +5 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/pretty.png +0 -0 binary file: no text diff
binary file: no text diff
A vendor/github.com/rs/zerolog/sampler.go +137 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/slog.go +247 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/syslog.go +89 -0 collapsed to keep the page light
A vendor/github.com/rs/zerolog/writer.go +355 -0 collapsed to keep the page light
A vendor/github.com/russross/blackfriday/v2/.gitignore +8 -0 collapsed to keep the page light
A vendor/github.com/russross/blackfriday/v2/.travis.yml +17 -0 collapsed to keep the page light
A vendor/github.com/russross/blackfriday/v2/LICENSE.txt +29 -0 collapsed to keep the page light
A vendor/github.com/russross/blackfriday/v2/README.md +335 -0 collapsed to keep the page light
A vendor/github.com/russross/blackfriday/v2/block.go +1612 -0 collapsed to keep the page light
A vendor/github.com/russross/blackfriday/v2/doc.go +46 -0 collapsed to keep the page light
A vendor/github.com/russross/blackfriday/v2/entities.go +2236 -0 collapsed to keep the page light
A vendor/github.com/russross/blackfriday/v2/esc.go +70 -0 collapsed to keep the page light
A vendor/github.com/russross/blackfriday/v2/html.go +952 -0 collapsed to keep the page light
A vendor/github.com/russross/blackfriday/v2/inline.go +1228 -0 collapsed to keep the page light
A vendor/github.com/russross/blackfriday/v2/markdown.go +950 -0 collapsed to keep the page light
A vendor/github.com/russross/blackfriday/v2/node.go +360 -0 collapsed to keep the page light
A vendor/github.com/russross/blackfriday/v2/smartypants.go +457 -0 collapsed to keep the page light
A vendor/github.com/sagikazarmark/locafero/.editorconfig +21 -0 collapsed to keep the page light
A vendor/github.com/sagikazarmark/locafero/.envrc +4 -0 collapsed to keep the page light
A vendor/github.com/sagikazarmark/locafero/.gitignore +5 -0 collapsed to keep the page light
A vendor/github.com/sagikazarmark/locafero/.golangci.yaml +37 -0 collapsed to keep the page light
A vendor/github.com/sagikazarmark/locafero/LICENSE +19 -0 collapsed to keep the page light
A vendor/github.com/sagikazarmark/locafero/README.md +37 -0 collapsed to keep the page light
A vendor/github.com/sagikazarmark/locafero/devenv.lock +103 -0 collapsed to keep the page light
A vendor/github.com/sagikazarmark/locafero/devenv.nix +17 -0 collapsed to keep the page light
A vendor/github.com/sagikazarmark/locafero/devenv.yaml +4 -0 collapsed to keep the page light
A vendor/github.com/sagikazarmark/locafero/file_type.go +32 -0 collapsed to keep the page light
A vendor/github.com/sagikazarmark/locafero/finder.go +171 -0 collapsed to keep the page light
A vendor/github.com/sagikazarmark/locafero/glob.go +5 -0 collapsed to keep the page light
A vendor/github.com/sagikazarmark/locafero/glob_windows.go +8 -0 collapsed to keep the page light
A vendor/github.com/sagikazarmark/locafero/helpers.go +41 -0 collapsed to keep the page light
A vendor/github.com/sagikazarmark/locafero/internal/queue/eager.go +53 -0 collapsed to keep the page light
A vendor/github.com/sagikazarmark/locafero/internal/queue/queue.go +8 -0 collapsed to keep the page light
A vendor/github.com/sagikazarmark/locafero/justfile +14 -0 collapsed to keep the page light
A vendor/github.com/sahilm/fuzzy/.editorconfig +18 -0 collapsed to keep the page light
A vendor/github.com/sahilm/fuzzy/.gitignore +2 -0 collapsed to keep the page light
A vendor/github.com/sahilm/fuzzy/CONTRIBUTING.md +1 -0 collapsed to keep the page light
A vendor/github.com/sahilm/fuzzy/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/sahilm/fuzzy/Makefile +59 -0 collapsed to keep the page light
A vendor/github.com/sahilm/fuzzy/README.md +186 -0 collapsed to keep the page light
A vendor/github.com/sahilm/fuzzy/fuzzy.go +263 -0 collapsed to keep the page light
A vendor/github.com/sethvargo/go-retry/LICENSE +202 -0 collapsed to keep the page light
A vendor/github.com/sethvargo/go-retry/README.md +185 -0 collapsed to keep the page light
A vendor/github.com/sethvargo/go-retry/backoff.go +134 -0 collapsed to keep the page light
A vendor/github.com/sethvargo/go-retry/backoff_constant.go +25 -0 collapsed to keep the page light
A vendor/github.com/sethvargo/go-retry/backoff_exponential.go +47 -0 collapsed to keep the page light
A vendor/github.com/sethvargo/go-retry/backoff_fibonacci.go +56 -0 collapsed to keep the page light
A vendor/github.com/sethvargo/go-retry/rand.go +54 -0 collapsed to keep the page light
A vendor/github.com/sethvargo/go-retry/retry.go +104 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/.editorconfig +15 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/.gitignore +2 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/.golangci.yaml +48 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/LICENSE.txt +174 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/README.md +474 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/afero.go +111 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/appveyor.yml +10 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/basepath.go +222 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/cacheOnReadFs.go +315 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/const_bsds.go +23 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/const_win_unix.go +22 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/copyOnWriteFs.go +332 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/httpFs.go +114 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/internal/common/adapters.go +27 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/iofs.go +302 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/ioutil.go +243 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/lstater.go +27 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/match.go +110 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/mem/dir.go +37 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/mem/dirmap.go +43 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/mem/file.go +373 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/memmap.go +463 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/os.go +113 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/path.go +106 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/readonlyfs.go +96 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/regexpfs.go +223 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/symlink.go +55 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/unionFile.go +331 -0 collapsed to keep the page light
A vendor/github.com/spf13/afero/util.go +329 -0 collapsed to keep the page light
A vendor/github.com/spf13/cast/.editorconfig +15 -0 collapsed to keep the page light
A vendor/github.com/spf13/cast/.gitignore +25 -0 collapsed to keep the page light
A vendor/github.com/spf13/cast/.golangci.yaml +39 -0 collapsed to keep the page light
A vendor/github.com/spf13/cast/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/spf13/cast/Makefile +40 -0 collapsed to keep the page light
A vendor/github.com/spf13/cast/README.md +79 -0 collapsed to keep the page light
A vendor/github.com/spf13/cast/alias.go +69 -0 collapsed to keep the page light
A vendor/github.com/spf13/cast/basic.go +131 -0 collapsed to keep the page light
A vendor/github.com/spf13/cast/cast.go +84 -0 collapsed to keep the page light
A vendor/github.com/spf13/cast/indirect.go +37 -0 collapsed to keep the page light
A vendor/github.com/spf13/cast/internal/time.go +79 -0 collapsed to keep the page light
A vendor/github.com/spf13/cast/internal/timeformattype_string.go +27 -0 collapsed to keep the page light
A vendor/github.com/spf13/cast/map.go +212 -0 collapsed to keep the page light
A vendor/github.com/spf13/cast/number.go +549 -0 collapsed to keep the page light
A vendor/github.com/spf13/cast/slice.go +106 -0 collapsed to keep the page light
A vendor/github.com/spf13/cast/time.go +116 -0 collapsed to keep the page light
A vendor/github.com/spf13/cast/zz_generated.go +261 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/.gitignore +39 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/.golangci.yml +66 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/.mailmap +3 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/CONDUCT.md +37 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/CONTRIBUTING.md +50 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/LICENSE.txt +174 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/MAINTAINERS +13 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/Makefile +35 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/README.md +133 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/SECURITY.md +105 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/active_help.go +60 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/args.go +131 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/bash_completions.go +709 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/bash_completionsV2.go +484 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/cobra.go +246 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/command.go +2072 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/command_notwin.go +20 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/command_win.go +41 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/completions.go +1020 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/doc/man_docs.go +246 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/doc/md_docs.go +158 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/doc/rest_docs.go +186 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/doc/util.go +52 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/doc/yaml_docs.go +175 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/fish_completions.go +292 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/flag_groups.go +290 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/powershell_completions.go +350 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/shell_completions.go +98 -0 collapsed to keep the page light
A vendor/github.com/spf13/cobra/zsh_completions.go +308 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/.editorconfig +12 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/.gitignore +2 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/.golangci.yaml +4 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/.travis.yml +22 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/LICENSE +28 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/README.md +323 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/bool.go +94 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/bool_func.go +40 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/bool_slice.go +185 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/bytes.go +209 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/count.go +96 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/duration.go +86 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/duration_slice.go +166 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/errors.go +149 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/flag.go +1289 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/float32.go +88 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/float32_slice.go +174 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/float64.go +84 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/float64_slice.go +166 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/func.go +37 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/golangflag.go +161 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/int.go +84 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/int16.go +88 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/int32.go +88 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/int32_slice.go +174 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/int64.go +84 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/int64_slice.go +166 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/int8.go +88 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/int_slice.go +158 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/ip.go +97 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/ip_slice.go +186 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/ipmask.go +122 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/ipnet.go +98 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/ipnet_slice.go +147 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/string.go +80 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/string_array.go +125 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/string_slice.go +163 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/string_to_int.go +149 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/string_to_int64.go +149 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/string_to_string.go +168 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/text.go +81 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/time.go +124 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/uint.go +88 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/uint16.go +88 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/uint32.go +88 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/uint64.go +88 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/uint8.go +88 -0 collapsed to keep the page light
A vendor/github.com/spf13/pflag/uint_slice.go +168 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/.editorconfig +21 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/.envrc +4 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/.gitignore +8 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/.golangci.yaml +118 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/.yamlignore +2 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/.yamllint.yaml +6 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/Makefile +87 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/README.md +931 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/TROUBLESHOOTING.md +32 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/UPGRADE.md +147 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/encoding.go +181 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/experimental.go +8 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/file.go +104 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/finder.go +55 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/flags.go +57 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/flake.lock +255 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/flake.nix +61 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/internal/encoding/dotenv/codec.go +61 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/internal/encoding/dotenv/map_utils.go +41 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/internal/encoding/json/codec.go +17 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/internal/encoding/toml/codec.go +16 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/internal/encoding/yaml/codec.go +14 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/internal/features/bind_struct.go +5 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/internal/features/bind_struct_default.go +5 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/internal/features/finder.go +5 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/internal/features/finder_default.go +5 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/logger.go +31 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/remote.go +259 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/util.go +211 -0 collapsed to keep the page light
A vendor/github.com/spf13/viper/viper.go +2077 -0 collapsed to keep the page light
A vendor/github.com/stretchr/objx/.codeclimate.yml +21 -0 collapsed to keep the page light
A vendor/github.com/stretchr/objx/.gitignore +11 -0 collapsed to keep the page light
A vendor/github.com/stretchr/objx/LICENSE +22 -0 collapsed to keep the page light
A vendor/github.com/stretchr/objx/README.md +91 -0 collapsed to keep the page light
A vendor/github.com/stretchr/objx/Taskfile.yml +27 -0 collapsed to keep the page light
A vendor/github.com/stretchr/objx/accessors.go +197 -0 collapsed to keep the page light
A vendor/github.com/stretchr/objx/conversions.go +280 -0 collapsed to keep the page light
A vendor/github.com/stretchr/objx/doc.go +66 -0 collapsed to keep the page light
A vendor/github.com/stretchr/objx/map.go +214 -0 collapsed to keep the page light
A vendor/github.com/stretchr/objx/mutations.go +77 -0 collapsed to keep the page light
A vendor/github.com/stretchr/objx/security.go +12 -0 collapsed to keep the page light
A vendor/github.com/stretchr/objx/tests.go +17 -0 collapsed to keep the page light
A vendor/github.com/stretchr/objx/type_specific.go +346 -0 collapsed to keep the page light
A vendor/github.com/stretchr/objx/type_specific_codegen.go +2261 -0 collapsed to keep the page light
A vendor/github.com/stretchr/objx/value.go +159 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/assert/assertion_compare.go +495 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/assert/assertion_format.go +866 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/assert/assertion_format.go.tmpl +5 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/assert/assertion_forward.go +1723 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/assert/assertion_forward.go.tmpl +5 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/assert/assertion_order.go +81 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/assert/assertions.go +2295 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/assert/doc.go +50 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/assert/errors.go +10 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/assert/forward_assertions.go +16 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/assert/http_assertions.go +165 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/assert/yaml/yaml_custom.go +24 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/assert/yaml/yaml_default.go +36 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/assert/yaml/yaml_fail.go +17 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/mock/doc.go +44 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/mock/mock.go +1298 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/require/doc.go +31 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/require/forward_requirements.go +16 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/require/require.go +2180 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/require/require.go.tmpl +6 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/require/require_forward.go +1724 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/require/require_forward.go.tmpl +5 -0 collapsed to keep the page light
A vendor/github.com/stretchr/testify/require/requirements.go +29 -0 collapsed to keep the page light
A vendor/github.com/subosito/gotenv/.env +1 -0 collapsed to keep the page light
A vendor/github.com/subosito/gotenv/.env.invalid +1 -0 collapsed to keep the page light
A vendor/github.com/subosito/gotenv/.gitignore +4 -0 collapsed to keep the page light
A vendor/github.com/subosito/gotenv/.golangci.yaml +7 -0 collapsed to keep the page light
A vendor/github.com/subosito/gotenv/CHANGELOG.md +105 -0 collapsed to keep the page light
A vendor/github.com/subosito/gotenv/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/subosito/gotenv/README.md +129 -0 collapsed to keep the page light
A vendor/github.com/subosito/gotenv/gotenv.go +409 -0 collapsed to keep the page light
A vendor/github.com/xo/terminfo/.gitignore +9 -0 collapsed to keep the page light
A vendor/github.com/xo/terminfo/LICENSE +21 -0 collapsed to keep the page light
A vendor/github.com/xo/terminfo/README.md +139 -0 collapsed to keep the page light
A vendor/github.com/xo/terminfo/caps.go +31 -0 collapsed to keep the page light
A vendor/github.com/xo/terminfo/capvals.go +1525 -0 collapsed to keep the page light
A vendor/github.com/xo/terminfo/color.go +88 -0 collapsed to keep the page light
A vendor/github.com/xo/terminfo/dec.go +245 -0 collapsed to keep the page light
A vendor/github.com/xo/terminfo/load.go +64 -0 collapsed to keep the page light
A vendor/github.com/xo/terminfo/param.go +405 -0 collapsed to keep the page light
A vendor/github.com/xo/terminfo/stack.go +48 -0 collapsed to keep the page light
A vendor/github.com/xo/terminfo/terminfo.go +479 -0 collapsed to keep the page light
A vendor/go.uber.org/multierr/.codecov.yml +15 -0 collapsed to keep the page light
A vendor/go.uber.org/multierr/.gitignore +4 -0 collapsed to keep the page light
A vendor/go.uber.org/multierr/CHANGELOG.md +95 -0 collapsed to keep the page light
A vendor/go.uber.org/multierr/LICENSE.txt +19 -0 collapsed to keep the page light
A vendor/go.uber.org/multierr/Makefile +38 -0 collapsed to keep the page light
A vendor/go.uber.org/multierr/README.md +43 -0 collapsed to keep the page light
A vendor/go.uber.org/multierr/error.go +646 -0 collapsed to keep the page light
A vendor/go.uber.org/multierr/error_post_go120.go +48 -0 collapsed to keep the page light
A vendor/go.uber.org/multierr/error_pre_go120.go +79 -0 collapsed to keep the page light
A vendor/go.yaml.in/yaml/v3/LICENSE +50 -0 collapsed to keep the page light
A vendor/go.yaml.in/yaml/v3/NOTICE +13 -0 collapsed to keep the page light
A vendor/go.yaml.in/yaml/v3/README.md +171 -0 collapsed to keep the page light
A vendor/go.yaml.in/yaml/v3/apic.go +747 -0 collapsed to keep the page light
A vendor/go.yaml.in/yaml/v3/decode.go +1018 -0 collapsed to keep the page light
A vendor/go.yaml.in/yaml/v3/emitterc.go +2054 -0 collapsed to keep the page light
A vendor/go.yaml.in/yaml/v3/encode.go +577 -0 collapsed to keep the page light
A vendor/go.yaml.in/yaml/v3/parserc.go +1274 -0 collapsed to keep the page light
A vendor/go.yaml.in/yaml/v3/readerc.go +434 -0 collapsed to keep the page light
A vendor/go.yaml.in/yaml/v3/resolve.go +326 -0 collapsed to keep the page light
A vendor/go.yaml.in/yaml/v3/scannerc.go +3040 -0 collapsed to keep the page light
A vendor/go.yaml.in/yaml/v3/sorter.go +134 -0 collapsed to keep the page light
A vendor/go.yaml.in/yaml/v3/writerc.go +48 -0 collapsed to keep the page light
A vendor/go.yaml.in/yaml/v3/yaml.go +703 -0 collapsed to keep the page light
A vendor/go.yaml.in/yaml/v3/yamlh.go +811 -0 collapsed to keep the page light
A vendor/go.yaml.in/yaml/v3/yamlprivateh.go +198 -0 collapsed to keep the page light
A vendor/golang.org/x/image/LICENSE +27 -0 collapsed to keep the page light
A vendor/golang.org/x/image/PATENTS +22 -0 collapsed to keep the page light
A vendor/golang.org/x/image/draw/draw.go +67 -0 collapsed to keep the page light
A vendor/golang.org/x/image/draw/impl.go +8426 -0 collapsed to keep the page light
A vendor/golang.org/x/image/draw/scale.go +525 -0 collapsed to keep the page light
A vendor/golang.org/x/image/math/f64/f64.go +37 -0 collapsed to keep the page light
A vendor/golang.org/x/mod/LICENSE +27 -0 collapsed to keep the page light
A vendor/golang.org/x/mod/PATENTS +22 -0 collapsed to keep the page light
A vendor/golang.org/x/mod/internal/lazyregexp/lazyre.go +78 -0 collapsed to keep the page light
A vendor/golang.org/x/mod/modfile/print.go +184 -0 collapsed to keep the page light
A vendor/golang.org/x/mod/modfile/read.go +962 -0 collapsed to keep the page light
A vendor/golang.org/x/mod/modfile/rule.go +1951 -0 collapsed to keep the page light
A vendor/golang.org/x/mod/modfile/work.go +333 -0 collapsed to keep the page light
A vendor/golang.org/x/mod/module/module.go +840 -0 collapsed to keep the page light
A vendor/golang.org/x/mod/module/pseudo.go +250 -0 collapsed to keep the page light
A vendor/golang.org/x/mod/semver/semver.go +407 -0 collapsed to keep the page light
A vendor/golang.org/x/net/LICENSE +27 -0 collapsed to keep the page light
A vendor/golang.org/x/net/PATENTS +22 -0 collapsed to keep the page light
A vendor/golang.org/x/net/html/atom/atom.go +78 -0 collapsed to keep the page light
A vendor/golang.org/x/net/html/atom/table.go +785 -0 collapsed to keep the page light
A vendor/golang.org/x/net/html/const.go +111 -0 collapsed to keep the page light
A vendor/golang.org/x/net/html/doc.go +122 -0 collapsed to keep the page light
A vendor/golang.org/x/net/html/doctype.go +156 -0 collapsed to keep the page light
A vendor/golang.org/x/net/html/entity.go +2252 -0 collapsed to keep the page light
A vendor/golang.org/x/net/html/escape.go +379 -0 collapsed to keep the page light
A vendor/golang.org/x/net/html/foreign.go +221 -0 collapsed to keep the page light
A vendor/golang.org/x/net/html/iter.go +54 -0 collapsed to keep the page light
A vendor/golang.org/x/net/html/node.go +230 -0 collapsed to keep the page light
A vendor/golang.org/x/net/html/nodetype_string.go +31 -0 collapsed to keep the page light
A vendor/golang.org/x/net/html/parse.go +2378 -0 collapsed to keep the page light
A vendor/golang.org/x/net/html/render.go +316 -0 collapsed to keep the page light
A vendor/golang.org/x/net/html/token.go +1322 -0 collapsed to keep the page light
A vendor/golang.org/x/net/idna/idna.go +880 -0 collapsed to keep the page light
A vendor/golang.org/x/net/idna/punycode.go +220 -0 collapsed to keep the page light
A vendor/golang.org/x/net/idna/tables15.0.0.go +5144 -0 collapsed to keep the page light
A vendor/golang.org/x/net/idna/tables17.0.0.go +5302 -0 collapsed to keep the page light
A vendor/golang.org/x/net/idna/trie.go +51 -0 collapsed to keep the page light
A vendor/golang.org/x/net/idna/trieval.go +119 -0 collapsed to keep the page light
A vendor/golang.org/x/net/publicsuffix/data/children +0 -0 binary file: no text diff
binary file: no text diff
A vendor/golang.org/x/net/publicsuffix/data/nodes +0 -0 binary file: no text diff
binary file: no text diff