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
| @@ -0,0 +1,2504 @@ | |||
| 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 | + | // Prototype of a #GChildWatchSource callback, called when a child | |
| 14 | + | // process has exited. | |
| 15 | + | // | |
| 16 | + | // To interpret @wait_status, see the documentation for | |
| 17 | + | // [func@GLib.spawn_check_wait_status]. In particular, | |
| 18 | + | // on Unix platforms, note that it is usually not equal | |
| 19 | + | // to the integer passed to `exit()` or returned from `main()`. | |
| 20 | + | type ChildWatchFunc func(Pid, int, uintptr) | |
| 21 | + | ||
| 22 | + | // Specifies the type of function passed to [func@GLib.clear_handle_id] The | |
| 23 | + | // implementation is expected to free the resource identified by @handle_id; | |
| 24 | + | // for instance, if @handle_id is a [struct@GLib.Source] ID, | |
| 25 | + | // [func@GLib.Source.remove] can be used. | |
| 26 | + | type ClearHandleFunc func(uint) | |
| 27 | + | ||
| 28 | + | // Dispose function for @source. See [method@GLib.Source.set_dispose_function] | |
| 29 | + | // for details. | |
| 30 | + | type SourceDisposeFunc func(*Source) | |
| 31 | + | ||
| 32 | + | // This is just a placeholder for #GClosureMarshal, | |
| 33 | + | // which cannot be used here for dependency reasons. | |
| 34 | + | type SourceDummyMarshal func() | |
| 35 | + | ||
| 36 | + | // Specifies the type of function passed to [func@GLib.timeout_add], | |
| 37 | + | // [func@GLib.timeout_add_full], [func@GLib.idle_add], and | |
| 38 | + | // [func@GLib.idle_add_full]. | |
| 39 | + | // | |
| 40 | + | // When calling [method@GLib.Source.set_callback], you may need to cast a | |
| 41 | + | // function of a different type to this type. Use [func@GLib.SOURCE_FUNC] to | |
| 42 | + | // avoid warnings about incompatible function types. | |
| 43 | + | type SourceFunc func(uintptr) bool | |
| 44 | + | ||
| 45 | + | // Checks if the source is ready to be dispatched. | |
| 46 | + | // | |
| 47 | + | // Called after all the file descriptors are polled. The source | |
| 48 | + | // should return %TRUE if it is ready to be dispatched. Note that some | |
| 49 | + | // time may have passed since the previous prepare function was called, | |
| 50 | + | // so the source should be checked again here. | |
| 51 | + | // | |
| 52 | + | // Since 2.36 this may be `NULL`, in which case the effect is | |
| 53 | + | // as if the function always returns `FALSE`. | |
| 54 | + | type SourceFuncsCheckFunc func(*Source) bool | |
| 55 | + | ||
| 56 | + | // Dispatches the source callback. | |
| 57 | + | // | |
| 58 | + | // Called to dispatch the event source, after it has returned | |
| 59 | + | // `TRUE` in either its prepare or its check function, or if a ready time | |
| 60 | + | // has been reached. The dispatch function receives a callback function and | |
| 61 | + | // user data. The callback function may be `NULL` if the source was never | |
| 62 | + | // connected to a callback using [method@GLib.Source.set_callback]. The dispatch | |
| 63 | + | // function should call the callback function with @user_data and whatever | |
| 64 | + | // additional parameters are needed for this type of event source. The | |
| 65 | + | // return value of the dispatch function should be [const@GLib.SOURCE_REMOVE] | |
| 66 | + | // if the source should be removed or [const@GLib.SOURCE_CONTINUE] to keep it. | |
| 67 | + | type SourceFuncsDispatchFunc func(*Source, uintptr, uintptr) bool | |
| 68 | + | ||
| 69 | + | // Finalizes the source. | |
| 70 | + | // | |
| 71 | + | // Called when the source is finalized. At this point, the source | |
| 72 | + | // will have been destroyed, had its callback cleared, and have been removed | |
| 73 | + | // from its [type@GLib.MainContext], but it will still have its final reference | |
| 74 | + | // count, so methods can be called on it from within this function. | |
| 75 | + | type SourceFuncsFinalizeFunc func(*Source) | |
| 76 | + | ||
| 77 | + | // Checks the source for readiness. | |
| 78 | + | // | |
| 79 | + | // Called before all the file descriptors are polled. If the | |
| 80 | + | // source can determine that it is ready here (without waiting for the | |
| 81 | + | // results of the poll call) it should return %TRUE. It can also return | |
| 82 | + | // a @timeout_ value which should be the maximum timeout (in milliseconds) | |
| 83 | + | // which should be passed to the poll call. The actual timeout used will | |
| 84 | + | // be `-1` if all sources returned `-1`, or it will be the minimum of all | |
| 85 | + | // the @timeout_ values returned which were greater than or equal to `0`. | |
| 86 | + | // If the prepare function returns a timeout and the source also has a | |
| 87 | + | // ready time set, then the lower of the two will be used. | |
| 88 | + | // | |
| 89 | + | // Since 2.36 this may be `NULL`, in which case the effect is as if the | |
| 90 | + | // function always returns `FALSE` with a timeout of `-1`. | |
| 91 | + | type SourceFuncsPrepareFunc func(*Source, *int) bool | |
| 92 | + | ||
| 93 | + | // A source function that is only called once before being removed from the main | |
| 94 | + | // context automatically. | |
| 95 | + | // | |
| 96 | + | // See: [func@GLib.idle_add_once], [func@GLib.timeout_add_once] | |
| 97 | + | type SourceOnceFunc func(uintptr) | |
| 98 | + | ||
| 99 | + | // The `GMainContext` struct is an opaque data | |
| 100 | + | // type representing a set of sources to be handled in a main loop. | |
| 101 | + | type MainContext struct { | |
| 102 | + | _ structs.HostLayout | |
| 103 | + | } | |
| 104 | + | ||
| 105 | + | var xMainContextGLibType func() types.GType | |
| 106 | + | ||
| 107 | + | func MainContextGLibType() types.GType { | |
| 108 | + | return xMainContextGLibType() | |
| 109 | + | } | |
| 110 | + | ||
| 111 | + | func (x *MainContext) GoPointer() uintptr { | |
| 112 | + | return uintptr(unsafe.Pointer(x)) | |
| 113 | + | } | |
| 114 | + | ||
| 115 | + | func MainContextNewFromInternalPtr(ptr uintptr) *MainContext { | |
| 116 | + | if ptr == 0 { | |
| 117 | + | return nil | |
| 118 | + | } | |
| 119 | + | rawPtr := *(*unsafe.Pointer)(unsafe.Pointer(&ptr)) | |
| 120 | + | return (*MainContext)(rawPtr) | |
| 121 | + | } | |
| 122 | + | ||
| 123 | + | var xNewMainContext func() uintptr | |
| 124 | + | ||
| 125 | + | // Creates a new [struct@GLib.MainContext] structure. | |
| 126 | + | func NewMainContext() *MainContext { | |
| 127 | + | cret := xNewMainContext() | |
| 128 | + | if cret == 0 { | |
| 129 | + | return nil | |
| 130 | + | } | |
| 131 | + | return (*MainContext)(unsafe.Pointer(cret)) | |
| 132 | + | } | |
| 133 | + | ||
| 134 | + | var xNewMainContextWithFlags func(MainContextFlags) uintptr | |
| 135 | + | ||
| 136 | + | // Creates a new [struct@GLib.MainContext] structure. | |
| 137 | + | func NewMainContextWithFlags(FlagsVar MainContextFlags) *MainContext { | |
| 138 | + | cret := xNewMainContextWithFlags(FlagsVar) | |
| 139 | + | if cret == 0 { | |
| 140 | + | return nil | |
| 141 | + | } | |
| 142 | + | return (*MainContext)(unsafe.Pointer(cret)) | |
| 143 | + | } | |
| 144 | + | ||
| 145 | + | var xMainContextAcquire func(uintptr) bool | |
| 146 | + | ||
| 147 | + | // Tries to become the owner of the specified context. | |
| 148 | + | // | |
| 149 | + | // If some other thread is the owner of the context, | |
| 150 | + | // returns false immediately. Ownership is properly | |
| 151 | + | // recursive: the owner can require ownership again | |
| 152 | + | // and will release ownership when [method@GLib.MainContext.release] | |
| 153 | + | // is called as many times as [method@GLib.MainContext.acquire]. | |
| 154 | + | // | |
| 155 | + | // You must be the owner of a context before you | |
| 156 | + | // can call [method@GLib.MainContext.prepare], [method@GLib.MainContext.query], | |
| 157 | + | // [method@GLib.MainContext.check], [method@GLib.MainContext.dispatch], | |
| 158 | + | // [method@GLib.MainContext.release]. | |
| 159 | + | // | |
| 160 | + | // Since 2.76 @context can be `NULL` to use the global-default | |
| 161 | + | // main context. | |
| 162 | + | func (x *MainContext) Acquire() bool { | |
| 163 | + | cret := xMainContextAcquire(x.GoPointer()) | |
| 164 | + | return cret | |
| 165 | + | } | |
| 166 | + | ||
| 167 | + | var xMainContextAddPoll func(uintptr, *PollFD, int) | |
| 168 | + | ||
| 169 | + | // Adds a file descriptor to the set of file descriptors polled for | |
| 170 | + | // this context. | |
| 171 | + | // | |
| 172 | + | // This will very seldom be used directly. Instead | |
| 173 | + | // a typical event source will use `g_source_add_unix_fd()` instead. | |
| 174 | + | func (x *MainContext) AddPoll(FdVar *PollFD, PriorityVar int) { | |
| 175 | + | xMainContextAddPoll(x.GoPointer(), FdVar, PriorityVar) | |
| 176 | + | } | |
| 177 | + | ||
| 178 | + | var xMainContextCheck func(uintptr, int, []PollFD, int) bool | |
| 179 | + | ||
| 180 | + | // Passes the results of polling back to the main loop. | |
| 181 | + | // | |
| 182 | + | // You should be | |
| 183 | + | // careful to pass @fds and its length @n_fds as received from | |
| 184 | + | // [method@GLib.MainContext.query], as this functions relies on assumptions | |
| 185 | + | // on how @fds is filled. | |
| 186 | + | // | |
| 187 | + | // You must have successfully acquired the context with | |
| 188 | + | // [method@GLib.MainContext.acquire] before you may call this function. | |
| 189 | + | // | |
| 190 | + | // Since 2.76 @context can be `NULL` to use the global-default | |
| 191 | + | // main context. | |
| 192 | + | func (x *MainContext) Check(MaxPriorityVar int, FdsVar []PollFD, NFdsVar int) bool { | |
| 193 | + | cret := xMainContextCheck(x.GoPointer(), MaxPriorityVar, FdsVar, NFdsVar) | |
| 194 | + | return cret | |
| 195 | + | } | |
| 196 | + | ||
| 197 | + | var xMainContextDispatch func(uintptr) | |
| 198 | + | ||
| 199 | + | // Dispatches all pending sources. | |
| 200 | + | // | |
| 201 | + | // You must have successfully acquired the context with | |
| 202 | + | // [method@GLib.MainContext.acquire] before you may call this function. | |
| 203 | + | // | |
| 204 | + | // Since 2.76 @context can be `NULL` to use the global-default | |
| 205 | + | // main context. | |
| 206 | + | func (x *MainContext) Dispatch() { | |
| 207 | + | xMainContextDispatch(x.GoPointer()) | |
| 208 | + | } | |
| 209 | + | ||
| 210 | + | var xMainContextFindSourceByFuncsUserData func(uintptr, *SourceFuncs, uintptr) uintptr | |
| 211 | + | ||
| 212 | + | // Finds a source with the given source functions and user data. | |
| 213 | + | // | |
| 214 | + | // If multiple sources exist with the same source function and user data, | |
| 215 | + | // the first one found will be returned. | |
| 216 | + | func (x *MainContext) FindSourceByFuncsUserData(FuncsVar *SourceFuncs, UserDataVar uintptr) *Source { | |
| 217 | + | cret := xMainContextFindSourceByFuncsUserData(x.GoPointer(), FuncsVar, UserDataVar) | |
| 218 | + | if cret == 0 { | |
| 219 | + | return nil | |
| 220 | + | } | |
| 221 | + | return (*Source)(unsafe.Pointer(cret)) | |
| 222 | + | } | |
| 223 | + | ||
| 224 | + | var xMainContextFindSourceById func(uintptr, uint) uintptr | |
| 225 | + | ||
| 226 | + | // Finds a [struct@GLib.Source] given a pair of context and ID. | |
| 227 | + | // | |
| 228 | + | // It is a programmer error to attempt to look up a non-existent source. | |
| 229 | + | // | |
| 230 | + | // More specifically: source IDs can be reissued after a source has been | |
| 231 | + | // destroyed and therefore it is never valid to use this function with a | |
| 232 | + | // source ID which may have already been removed. An example is when | |
| 233 | + | // scheduling an idle to run in another thread with [func@GLib.idle_add]: the | |
| 234 | + | // idle may already have run and been removed by the time this function | |
| 235 | + | // is called on its (now invalid) source ID. This source ID may have | |
| 236 | + | // been reissued, leading to the operation being performed against the | |
| 237 | + | // wrong source. | |
| 238 | + | func (x *MainContext) FindSourceById(SourceIdVar uint) *Source { | |
| 239 | + | cret := xMainContextFindSourceById(x.GoPointer(), SourceIdVar) | |
| 240 | + | if cret == 0 { | |
| 241 | + | return nil | |
| 242 | + | } | |
| 243 | + | return (*Source)(unsafe.Pointer(cret)) | |
| 244 | + | } | |
| 245 | + | ||
| 246 | + | var xMainContextFindSourceByUserData func(uintptr, uintptr) uintptr | |
| 247 | + | ||
| 248 | + | // Finds a source with the given user data for the callback. | |
| 249 | + | // | |
| 250 | + | // If multiple sources exist with the same user data, the first | |
| 251 | + | // one found will be returned. | |
| 252 | + | func (x *MainContext) FindSourceByUserData(UserDataVar uintptr) *Source { | |
| 253 | + | cret := xMainContextFindSourceByUserData(x.GoPointer(), UserDataVar) | |
| 254 | + | if cret == 0 { | |
| 255 | + | return nil | |
| 256 | + | } | |
| 257 | + | return (*Source)(unsafe.Pointer(cret)) | |
| 258 | + | } | |
| 259 | + | ||
| 260 | + | var xMainContextGetPollFunc func(uintptr) uintptr | |
| 261 | + | ||
| 262 | + | // Gets the poll function set by [method@GLib.MainContext.set_poll_func]. | |
| 263 | + | func (x *MainContext) GetPollFunc() uintptr { | |
| 264 | + | cret := xMainContextGetPollFunc(x.GoPointer()) | |
| 265 | + | return cret | |
| 266 | + | } | |
| 267 | + | ||
| 268 | + | var xMainContextInvoke func(uintptr, uintptr, uintptr) | |
| 269 | + | ||
| 270 | + | // Invokes a function in such a way that @context is owned during the | |
| 271 | + | // invocation of @function. | |
| 272 | + | // | |
| 273 | + | // If @context is `NULL` then the global-default main context — as | |
| 274 | + | // returned by [func@GLib.MainContext.default] — is used. | |
| 275 | + | // | |
| 276 | + | // If @context is owned by the current thread, @function is called | |
| 277 | + | // directly. Otherwise, if @context is the thread-default main context | |
| 278 | + | // of the current thread and [method@GLib.MainContext.acquire] succeeds, | |
| 279 | + | // then @function is called and [method@GLib.MainContext.release] is called | |
| 280 | + | // afterwards. | |
| 281 | + | // | |
| 282 | + | // In any other case, an idle source is created to call @function and | |
| 283 | + | // that source is attached to @context (presumably to be run in another | |
| 284 | + | // thread). The idle source is attached with [const@GLib.PRIORITY_DEFAULT] | |
| 285 | + | // priority. If you want a different priority, use | |
| 286 | + | // [method@GLib.MainContext.invoke_full]. | |
| 287 | + | // | |
| 288 | + | // Note that, as with normal idle functions, @function should probably return | |
| 289 | + | // [const@GLib.SOURCE_REMOVE]. If it returns [const@GLib.SOURCE_CONTINUE], it | |
| 290 | + | // will be continuously run in a loop (and may prevent this call from returning). | |
| 291 | + | func (x *MainContext) Invoke(FunctionVar *SourceFunc, DataVar uintptr) { | |
| 292 | + | xMainContextInvoke(x.GoPointer(), NewCallback(FunctionVar), DataVar) | |
| 293 | + | } | |
| 294 | + | ||
| 295 | + | var xMainContextInvokeFull func(uintptr, int, uintptr, uintptr, uintptr) | |
| 296 | + | ||
| 297 | + | // Invokes a function in such a way that @context is owned during the | |
| 298 | + | // invocation of @function. | |
| 299 | + | // | |
| 300 | + | // This function is the same as [method@GLib.MainContext.invoke] except that it | |
| 301 | + | // lets you specify the priority in case @function ends up being | |
| 302 | + | // scheduled as an idle and also lets you give a [callback@GLib.DestroyNotify] | |
| 303 | + | // for @data. | |
| 304 | + | // | |
| 305 | + | // The @notify function should not assume that it is called from any particular | |
| 306 | + | // thread or with any particular context acquired. | |
| 307 | + | func (x *MainContext) InvokeFull(PriorityVar int, FunctionVar *SourceFunc, DataVar uintptr, NotifyVar *DestroyNotify) { | |
| 308 | + | xMainContextInvokeFull(x.GoPointer(), PriorityVar, NewCallback(FunctionVar), DataVar, NewCallbackNullable(NotifyVar)) | |
| 309 | + | } | |
| 310 | + | ||
| 311 | + | var xMainContextIsOwner func(uintptr) bool | |
| 312 | + | ||
| 313 | + | // Determines whether this thread holds the (recursive) | |
| 314 | + | // ownership of this [struct@GLib.MainContext]. | |
| 315 | + | // | |
| 316 | + | // This is useful to | |
| 317 | + | // know before waiting on another thread that may be | |
| 318 | + | // blocking to get ownership of @context. | |
| 319 | + | func (x *MainContext) IsOwner() bool { | |
| 320 | + | cret := xMainContextIsOwner(x.GoPointer()) | |
| 321 | + | return cret | |
| 322 | + | } | |
| 323 | + | ||
| 324 | + | var xMainContextIteration func(uintptr, bool) bool | |
| 325 | + | ||
| 326 | + | // Runs a single iteration for the given main loop. | |
| 327 | + | // | |
| 328 | + | // This involves | |
| 329 | + | // checking to see if any event sources are ready to be processed, | |
| 330 | + | // then if no events sources are ready and @may_block is true, waiting | |
| 331 | + | // for a source to become ready, then dispatching the highest priority | |
| 332 | + | // events sources that are ready. Otherwise, if @may_block is false, | |
| 333 | + | // this function does not wait for sources to become ready, and only the highest | |
| 334 | + | // priority sources which are already ready (if any) will be dispatched. | |
| 335 | + | // | |
| 336 | + | // Note that even when @may_block is true, it is still possible for | |
| 337 | + | // [method@GLib.MainContext.iteration] to return false, since the wait may | |
| 338 | + | // be interrupted for other reasons than an event source becoming ready. | |
| 339 | + | func (x *MainContext) Iteration(MayBlockVar bool) bool { | |
| 340 | + | cret := xMainContextIteration(x.GoPointer(), MayBlockVar) | |
| 341 | + | return cret | |
| 342 | + | } | |
| 343 | + | ||
| 344 | + | var xMainContextPending func(uintptr) bool | |
| 345 | + | ||
| 346 | + | // Checks if any sources have pending events for the given context. | |
| 347 | + | func (x *MainContext) Pending() bool { | |
| 348 | + | cret := xMainContextPending(x.GoPointer()) | |
| 349 | + | return cret | |
| 350 | + | } | |
| 351 | + | ||
| 352 | + | var xMainContextPopThreadDefault func(uintptr) | |
| 353 | + | ||
| 354 | + | // Pops @context off the thread-default context stack (verifying that | |
| 355 | + | // it was on the top of the stack). | |
| 356 | + | func (x *MainContext) PopThreadDefault() { | |
| 357 | + | xMainContextPopThreadDefault(x.GoPointer()) | |
| 358 | + | } | |
| 359 | + | ||
| 360 | + | var xMainContextPrepare func(uintptr, *int) bool | |
| 361 | + | ||
| 362 | + | // Prepares to poll sources within a main loop. | |
| 363 | + | // | |
| 364 | + | // The resulting information | |
| 365 | + | // for polling is determined by calling [method@GLib.MainContext.query]. | |
| 366 | + | // | |
| 367 | + | // You must have successfully acquired the context with | |
| 368 | + | // [method@GLib.MainContext.acquire] before you may call this function. | |
| 369 | + | func (x *MainContext) Prepare(PriorityVar *int) bool { | |
| 370 | + | cret := xMainContextPrepare(x.GoPointer(), PriorityVar) | |
| 371 | + | return cret | |
| 372 | + | } | |
| 373 | + | ||
| 374 | + | var xMainContextPushThreadDefault func(uintptr) | |
| 375 | + | ||
| 376 | + | // Acquires @context and sets it as the thread-default context for the | |
| 377 | + | // current thread. This will cause certain asynchronous operations | |
| 378 | + | // (such as most [Gio](../gio/index.html)-based I/O) which are | |
| 379 | + | // started in this thread to run under @context and deliver their | |
| 380 | + | // results to its main loop, rather than running under the global | |
| 381 | + | // default main context in the main thread. Note that calling this function | |
| 382 | + | // changes the context returned by [func@GLib.MainContext.get_thread_default], | |
| 383 | + | // not the one returned by [func@GLib.MainContext.default], so it does not | |
| 384 | + | // affect the context used by functions like [func@GLib.idle_add]. | |
| 385 | + | // | |
| 386 | + | // Normally you would call this function shortly after creating a new | |
| 387 | + | // thread, passing it a [struct@GLib.MainContext] which will be run by a | |
| 388 | + | // [struct@GLib.MainLoop] in that thread, to set a new default context for all | |
| 389 | + | // async operations in that thread. In this case you may not need to | |
| 390 | + | // ever call [method@GLib.MainContext.pop_thread_default], assuming you want | |
| 391 | + | // the new [struct@GLib.MainContext] to be the default for the whole lifecycle | |
| 392 | + | // of the thread. | |
| 393 | + | // | |
| 394 | + | // If you don’t have control over how the new thread was created (e.g. | |
| 395 | + | // in the new thread isn’t newly created, or if the thread life | |
| 396 | + | // cycle is managed by a #GThreadPool), it is always suggested to wrap | |
| 397 | + | // the logic that needs to use the new [struct@GLib.MainContext] inside a | |
| 398 | + | // [method@GLib.MainContext.push_thread_default] / | |
| 399 | + | // [method@GLib.MainContext.pop_thread_default] pair, otherwise threads that | |
| 400 | + | // are re-used will end up never explicitly releasing the | |
| 401 | + | // [struct@GLib.MainContext] reference they hold. | |
| 402 | + | // | |
| 403 | + | // In some cases you may want to schedule a single operation in a | |
| 404 | + | // non-default context, or temporarily use a non-default context in | |
| 405 | + | // the main thread. In that case, you can wrap the call to the | |
| 406 | + | // asynchronous operation inside a | |
| 407 | + | // [method@GLib.MainContext.push_thread_default] / | |
| 408 | + | // [method@GLib.MainContext.pop_thread_default] pair, but it is up to you to | |
| 409 | + | // ensure that no other asynchronous operations accidentally get | |
| 410 | + | // started while the non-default context is active. | |
| 411 | + | // | |
| 412 | + | // Beware that libraries that predate this function may not correctly | |
| 413 | + | // handle being used from a thread with a thread-default context. For example, | |
| 414 | + | // see `g_file_supports_thread_contexts()`. | |
| 415 | + | func (x *MainContext) PushThreadDefault() { | |
| 416 | + | xMainContextPushThreadDefault(x.GoPointer()) | |
| 417 | + | } | |
| 418 | + | ||
| 419 | + | var xMainContextPusherNew func(uintptr) *MainContextPusher | |
| 420 | + | ||
| 421 | + | // Push @main_context as the new thread-default main context for the current | |
| 422 | + | // thread, using [method@GLib.MainContext.push_thread_default], and return a | |
| 423 | + | // new [alias@GLib.MainContextPusher]. Pop with g_main_context_pusher_free(). | |
| 424 | + | // Using [method@GLib.MainContext.pop_thread_default] on @main_context while a | |
| 425 | + | // [alias@GLib.MainContextPusher] exists for it can lead to undefined behaviour. | |
| 426 | + | // | |
| 427 | + | // Using two [alias@GLib.MainContextPusher]s in the same scope is not allowed, | |
| 428 | + | // as it leads to an undefined pop order. | |
| 429 | + | // | |
| 430 | + | // This is intended to be used with g_autoptr(). Note that g_autoptr() | |
| 431 | + | // is only available when using GCC or clang, so the following example | |
| 432 | + | // will only work with those compilers: | |
| 433 | + | // |[ | |
| 434 | + | // typedef struct | |
| 435 | + | // | |
| 436 | + | // { | |
| 437 | + | // ... | |
| 438 | + | // GMainContext *context; | |
| 439 | + | // ... | |
| 440 | + | // } MyObject; | |
| 441 | + | // | |
| 442 | + | // static void | |
| 443 | + | // my_object_do_stuff (MyObject *self) | |
| 444 | + | // | |
| 445 | + | // { | |
| 446 | + | // g_autoptr(GMainContextPusher) pusher = g_main_context_pusher_new (self->context); | |
| 447 | + | // | |
| 448 | + | // // Code with main context as the thread default here | |
| 449 | + | // | |
| 450 | + | // if (cond) | |
| 451 | + | // // No need to pop | |
| 452 | + | // return; | |
| 453 | + | // | |
| 454 | + | // // Optionally early pop | |
| 455 | + | // g_clear_pointer (&pusher, g_main_context_pusher_free); | |
| 456 | + | // | |
| 457 | + | // // Code with main context no longer the thread default here | |
| 458 | + | // } | |
| 459 | + | // | |
| 460 | + | // ]| | |
| 461 | + | func (x *MainContext) PusherNew() *MainContextPusher { | |
| 462 | + | cret := xMainContextPusherNew(x.GoPointer()) | |
| 463 | + | return cret | |
| 464 | + | } | |
| 465 | + | ||
| 466 | + | var xMainContextQuery func(uintptr, int, *int, *[]PollFD, int) int | |
| 467 | + | ||
| 468 | + | // Determines information necessary to poll this main loop. | |
| 469 | + | // | |
| 470 | + | // You should | |
| 471 | + | // be careful to pass the resulting @fds array and its length @n_fds | |
| 472 | + | // as-is when calling [method@GLib.MainContext.check], as this function relies | |
| 473 | + | // on assumptions made when the array is filled. | |
| 474 | + | // | |
| 475 | + | // You must have successfully acquired the context with | |
| 476 | + | // [method@GLib.MainContext.acquire] before you may call this function. | |
| 477 | + | func (x *MainContext) Query(MaxPriorityVar int, TimeoutVar *int, FdsVar *[]PollFD, NFdsVar int) int { | |
| 478 | + | cret := xMainContextQuery(x.GoPointer(), MaxPriorityVar, TimeoutVar, FdsVar, NFdsVar) | |
| 479 | + | return cret | |
| 480 | + | } | |
| 481 | + | ||
| 482 | + | var xMainContextRef func(uintptr) uintptr | |
| 483 | + | ||
| 484 | + | // Increases the reference count on a [struct@GLib.MainContext] object by one. | |
| 485 | + | func (x *MainContext) Ref() *MainContext { | |
| 486 | + | cret := xMainContextRef(x.GoPointer()) | |
| 487 | + | if cret == 0 { | |
| 488 | + | return nil | |
| 489 | + | } | |
| 490 | + | return (*MainContext)(unsafe.Pointer(cret)) | |
| 491 | + | } | |
| 492 | + | ||
| 493 | + | var xMainContextRelease func(uintptr) | |
| 494 | + | ||
| 495 | + | // Releases ownership of a context previously acquired by this thread | |
| 496 | + | // with [method@GLib.MainContext.acquire]. | |
| 497 | + | // | |
| 498 | + | // If the context was acquired multiple | |
| 499 | + | // times, the ownership will be released only when [method@GLib.MainContext.release] | |
| 500 | + | // is called as many times as it was acquired. | |
| 501 | + | // | |
| 502 | + | // You must have successfully acquired the context with | |
| 503 | + | // [method@GLib.MainContext.acquire] before you may call this function. | |
| 504 | + | func (x *MainContext) Release() { | |
| 505 | + | xMainContextRelease(x.GoPointer()) | |
| 506 | + | } | |
| 507 | + | ||
| 508 | + | var xMainContextRemovePoll func(uintptr, *PollFD) | |
| 509 | + | ||
| 510 | + | // Removes file descriptor from the set of file descriptors to be | |
| 511 | + | // polled for a particular context. | |
| 512 | + | func (x *MainContext) RemovePoll(FdVar *PollFD) { | |
| 513 | + | xMainContextRemovePoll(x.GoPointer(), FdVar) | |
| 514 | + | } | |
| 515 | + | ||
| 516 | + | var xMainContextSetPollFunc func(uintptr, uintptr) | |
| 517 | + | ||
| 518 | + | // Sets the function to use to handle polling of file descriptors. | |
| 519 | + | // | |
| 520 | + | // It will be used instead of the [`poll()`](man:poll(2)) system call | |
| 521 | + | // (or GLib’s replacement function, which is used where | |
| 522 | + | // `poll()` isn’t available). | |
| 523 | + | // | |
| 524 | + | // This function could possibly be used to integrate the GLib event | |
| 525 | + | // loop with an external event loop. | |
| 526 | + | func (x *MainContext) SetPollFunc(FuncVar *PollFunc) { | |
| 527 | + | xMainContextSetPollFunc(x.GoPointer(), NewCallback(FuncVar)) | |
| 528 | + | } | |
| 529 | + | ||
| 530 | + | var xMainContextUnref func(uintptr) | |
| 531 | + | ||
| 532 | + | // Decreases the reference count on a [struct@GLib.MainContext] object by one. | |
| 533 | + | // If | |
| 534 | + | // the result is zero, free the context and free all associated memory. | |
| 535 | + | func (x *MainContext) Unref() { | |
| 536 | + | xMainContextUnref(x.GoPointer()) | |
| 537 | + | } | |
| 538 | + | ||
| 539 | + | var xMainContextWait func(uintptr, *Cond, *Mutex) bool | |
| 540 | + | ||
| 541 | + | // Tries to become the owner of the specified context, and waits on @cond if | |
| 542 | + | // another thread is the owner. | |
| 543 | + | // | |
| 544 | + | // This is the same as [method@GLib.MainContext.acquire], but if another thread | |
| 545 | + | // is the owner, atomically drop @mutex and wait on @cond until | |
| 546 | + | // that owner releases ownership or until @cond is signaled, then | |
| 547 | + | // try again (once) to become the owner. | |
| 548 | + | func (x *MainContext) Wait(CondVar *Cond, MutexVar *Mutex) bool { | |
| 549 | + | cret := xMainContextWait(x.GoPointer(), CondVar, MutexVar) | |
| 550 | + | return cret | |
| 551 | + | } | |
| 552 | + | ||
| 553 | + | var xMainContextWakeup func(uintptr) | |
| 554 | + | ||
| 555 | + | // Wake up @context if it’s currently blocking in | |
| 556 | + | // [method@GLib.MainContext.iteration], causing it to stop blocking. | |
| 557 | + | // | |
| 558 | + | // The @context could be blocking waiting for a source to become ready. | |
| 559 | + | // Otherwise, if @context is not currently blocking, this function causes the | |
| 560 | + | // next invocation of [method@GLib.MainContext.iteration] to return without | |
| 561 | + | // blocking. | |
| 562 | + | // | |
| 563 | + | // This API is useful for low-level control over [struct@GLib.MainContext]; for | |
| 564 | + | // example, integrating it with main loop implementations such as | |
| 565 | + | // [struct@GLib.MainLoop]. | |
| 566 | + | // | |
| 567 | + | // Another related use for this function is when implementing a main | |
| 568 | + | // loop with a termination condition, computed from multiple threads: | |
| 569 | + | // | |
| 570 | + | // ```c | |
| 571 | + | // | |
| 572 | + | // #define NUM_TASKS 10 | |
| 573 | + | // static gint tasks_remaining = NUM_TASKS; // (atomic) | |
| 574 | + | // ... | |
| 575 | + | // | |
| 576 | + | // while (g_atomic_int_get (&tasks_remaining) != 0) | |
| 577 | + | // g_main_context_iteration (NULL, TRUE); | |
| 578 | + | // | |
| 579 | + | // ``` | |
| 580 | + | // | |
| 581 | + | // Then in a thread: | |
| 582 | + | // ```c | |
| 583 | + | // | |
| 584 | + | // perform_work (); | |
| 585 | + | // | |
| 586 | + | // if (g_atomic_int_dec_and_test (&tasks_remaining)) | |
| 587 | + | // g_main_context_wakeup (NULL); | |
| 588 | + | // | |
| 589 | + | // ``` | |
| 590 | + | func (x *MainContext) Wakeup() { | |
| 591 | + | xMainContextWakeup(x.GoPointer()) | |
| 592 | + | } | |
| 593 | + | ||
| 594 | + | // The `GMainLoop` struct is an opaque data type | |
| 595 | + | // representing the main event loop of a GLib or GTK application. | |
| 596 | + | type MainLoop struct { | |
| 597 | + | _ structs.HostLayout | |
| 598 | + | } | |
| 599 | + | ||
| 600 | + | var xMainLoopGLibType func() types.GType | |
| 601 | + | ||
| 602 | + | func MainLoopGLibType() types.GType { | |
| 603 | + | return xMainLoopGLibType() | |
| 604 | + | } | |
| 605 | + | ||
| 606 | + | func (x *MainLoop) GoPointer() uintptr { | |
| 607 | + | return uintptr(unsafe.Pointer(x)) | |
| 608 | + | } | |
| 609 | + | ||
| 610 | + | func MainLoopNewFromInternalPtr(ptr uintptr) *MainLoop { | |
| 611 | + | if ptr == 0 { | |
| 612 | + | return nil | |
| 613 | + | } | |
| 614 | + | rawPtr := *(*unsafe.Pointer)(unsafe.Pointer(&ptr)) | |
| 615 | + | return (*MainLoop)(rawPtr) | |
| 616 | + | } | |
| 617 | + | ||
| 618 | + | var xNewMainLoop func(*MainContext, bool) uintptr | |
| 619 | + | ||
| 620 | + | // Creates a new [struct@GLib.MainLoop] structure. | |
| 621 | + | func NewMainLoop(ContextVar *MainContext, IsRunningVar bool) *MainLoop { | |
| 622 | + | cret := xNewMainLoop(ContextVar, IsRunningVar) | |
| 623 | + | if cret == 0 { | |
| 624 | + | return nil | |
| 625 | + | } | |
| 626 | + | return (*MainLoop)(unsafe.Pointer(cret)) | |
| 627 | + | } | |
| 628 | + | ||
| 629 | + | var xMainLoopGetContext func(uintptr) uintptr | |
| 630 | + | ||
| 631 | + | // Returns the [struct@GLib.MainContext] of @loop. | |
| 632 | + | func (x *MainLoop) GetContext() *MainContext { | |
| 633 | + | cret := xMainLoopGetContext(x.GoPointer()) | |
| 634 | + | if cret == 0 { | |
| 635 | + | return nil | |
| 636 | + | } | |
| 637 | + | return (*MainContext)(unsafe.Pointer(cret)) | |
| 638 | + | } | |
| 639 | + | ||
| 640 | + | var xMainLoopIsRunning func(uintptr) bool | |
| 641 | + | ||
| 642 | + | // Checks to see if the main loop is currently being run via | |
| 643 | + | // [method@GLib.MainLoop.run]. | |
| 644 | + | func (x *MainLoop) IsRunning() bool { | |
| 645 | + | cret := xMainLoopIsRunning(x.GoPointer()) | |
| 646 | + | return cret | |
| 647 | + | } | |
| 648 | + | ||
| 649 | + | var xMainLoopQuit func(uintptr) | |
| 650 | + | ||
| 651 | + | // Stops a [struct@GLib.MainLoop] from running. Any calls to | |
| 652 | + | // [method@GLib.MainLoop.run] for the loop will return. | |
| 653 | + | // | |
| 654 | + | // Note that sources that have already been dispatched when | |
| 655 | + | // [method@GLib.MainLoop.quit] is called will still be executed. | |
| 656 | + | func (x *MainLoop) Quit() { | |
| 657 | + | xMainLoopQuit(x.GoPointer()) | |
| 658 | + | } | |
| 659 | + | ||
| 660 | + | var xMainLoopRef func(uintptr) uintptr | |
| 661 | + | ||
| 662 | + | // Increases the reference count on a [struct@GLib.MainLoop] object by one. | |
| 663 | + | func (x *MainLoop) Ref() *MainLoop { | |
| 664 | + | cret := xMainLoopRef(x.GoPointer()) | |
| 665 | + | if cret == 0 { | |
| 666 | + | return nil | |
| 667 | + | } | |
| 668 | + | return (*MainLoop)(unsafe.Pointer(cret)) | |
| 669 | + | } | |
| 670 | + | ||
| 671 | + | var xMainLoopRun func(uintptr) | |
| 672 | + | ||
| 673 | + | // Runs a main loop until [method@GLib.MainLoop.quit] is called on the loop. | |
| 674 | + | // | |
| 675 | + | // If this is called from the thread of the loop’s [struct@GLib.MainContext], | |
| 676 | + | // it will process events from the loop, otherwise it will | |
| 677 | + | // simply wait. | |
| 678 | + | func (x *MainLoop) Run() { | |
| 679 | + | xMainLoopRun(x.GoPointer()) | |
| 680 | + | } | |
| 681 | + | ||
| 682 | + | var xMainLoopUnref func(uintptr) | |
| 683 | + | ||
| 684 | + | // Decreases the reference count on a [struct@GLib.MainLoop] object by one. | |
| 685 | + | // | |
| 686 | + | // If the result is zero, the loop and all associated memory are freed. | |
| 687 | + | func (x *MainLoop) Unref() { | |
| 688 | + | xMainLoopUnref(x.GoPointer()) | |
| 689 | + | } | |
| 690 | + | ||
| 691 | + | // The `GSource` struct is an opaque data type | |
| 692 | + | // representing an event source. | |
| 693 | + | type Source struct { | |
| 694 | + | _ structs.HostLayout | |
| 695 | + | ||
| 696 | + | CallbackData uintptr | |
| 697 | + | ||
| 698 | + | CallbackFuncs *SourceCallbackFuncs | |
| 699 | + | ||
| 700 | + | SourceFuncs *SourceFuncs | |
| 701 | + | ||
| 702 | + | RefCount uint | |
| 703 | + | ||
| 704 | + | Context *MainContext | |
| 705 | + | ||
| 706 | + | Priority int32 | |
| 707 | + | ||
| 708 | + | Flags uint | |
| 709 | + | ||
| 710 | + | SourceId uint | |
| 711 | + | ||
| 712 | + | PollFds *SList | |
| 713 | + | ||
| 714 | + | Prev *Source | |
| 715 | + | ||
| 716 | + | Next *Source | |
| 717 | + | ||
| 718 | + | Name uintptr | |
| 719 | + | ||
| 720 | + | Priv *SourcePrivate | |
| 721 | + | } | |
| 722 | + | ||
| 723 | + | var xSourceGLibType func() types.GType | |
| 724 | + | ||
| 725 | + | func SourceGLibType() types.GType { | |
| 726 | + | return xSourceGLibType() | |
| 727 | + | } | |
| 728 | + | ||
| 729 | + | func (x *Source) GoPointer() uintptr { | |
| 730 | + | return uintptr(unsafe.Pointer(x)) | |
| 731 | + | } | |
| 732 | + | ||
| 733 | + | func SourceNewFromInternalPtr(ptr uintptr) *Source { | |
| 734 | + | if ptr == 0 { | |
| 735 | + | return nil | |
| 736 | + | } | |
| 737 | + | rawPtr := *(*unsafe.Pointer)(unsafe.Pointer(&ptr)) | |
| 738 | + | return (*Source)(rawPtr) | |
| 739 | + | } | |
| 740 | + | ||
| 741 | + | var xNewSource func(*SourceFuncs, uint) uintptr | |
| 742 | + | ||
| 743 | + | // Creates a new [struct@GLib.Source] structure. | |
| 744 | + | // | |
| 745 | + | // The size is specified to | |
| 746 | + | // allow creating structures derived from [struct@GLib.Source] that contain | |
| 747 | + | // additional data. The size passed in must be at least | |
| 748 | + | // `sizeof (GSource)`. | |
| 749 | + | // | |
| 750 | + | // The source will not initially be associated with any [struct@GLib.MainContext] | |
| 751 | + | // and must be added to one with [method@GLib.Source.attach] before it will be | |
| 752 | + | // executed. | |
| 753 | + | func NewSource(SourceFuncsVar *SourceFuncs, StructSizeVar uint) *Source { | |
| 754 | + | cret := xNewSource(SourceFuncsVar, StructSizeVar) | |
| 755 | + | if cret == 0 { | |
| 756 | + | return nil | |
| 757 | + | } | |
| 758 | + | return (*Source)(unsafe.Pointer(cret)) | |
| 759 | + | } | |
| 760 | + | ||
| 761 | + | var xSourceAddChildSource func(uintptr, *Source) | |
| 762 | + | ||
| 763 | + | // Adds @child_source to @source as a ‘polled’ source. | |
| 764 | + | // | |
| 765 | + | // When @source is added to a [struct@GLib.MainContext], @child_source will be | |
| 766 | + | // automatically added with the same priority. When @child_source is triggered, | |
| 767 | + | // it will cause @source to dispatch (in addition to calling its own callback), | |
| 768 | + | // and when @source is destroyed, it will destroy @child_source as well. | |
| 769 | + | // | |
| 770 | + | // The @source will also still be dispatched if its own prepare/check functions | |
| 771 | + | // indicate that it is ready. | |
| 772 | + | // | |
| 773 | + | // If you don’t need @child_source to do anything on its own when it | |
| 774 | + | // triggers, you can call `g_source_set_dummy_callback()` on it to set a | |
| 775 | + | // callback that does nothing (except return true if appropriate). | |
| 776 | + | // | |
| 777 | + | // The @source will hold a reference on @child_source while @child_source | |
| 778 | + | // is attached to it. | |
| 779 | + | // | |
| 780 | + | // This API is only intended to be used by implementations of [struct@GLib.Source]. | |
| 781 | + | // Do not call this API on a [struct@GLib.Source] that you did not create. | |
| 782 | + | func (x *Source) AddChildSource(ChildSourceVar *Source) { | |
| 783 | + | xSourceAddChildSource(x.GoPointer(), ChildSourceVar) | |
| 784 | + | } | |
| 785 | + | ||
| 786 | + | var xSourceAddPoll func(uintptr, *PollFD) | |
| 787 | + | ||
| 788 | + | // Adds a file descriptor to the set of file descriptors polled for | |
| 789 | + | // this source. | |
| 790 | + | // | |
| 791 | + | // This is usually combined with [ctor@GLib.Source.new] to add an | |
| 792 | + | // event source. The event source’s check function will typically test | |
| 793 | + | // the @revents field in the [struct@GLib.PollFD] struct and return true if | |
| 794 | + | // events need to be processed. | |
| 795 | + | // | |
| 796 | + | // This API is only intended to be used by implementations of [struct@GLib.Source]. | |
| 797 | + | // Do not call this API on a [struct@GLib.Source] that you did not create. | |
| 798 | + | // | |
| 799 | + | // Using this API forces the linear scanning of event sources on each | |
| 800 | + | // main loop iteration. Newly-written event sources should try to use | |
| 801 | + | // `g_source_add_unix_fd()` instead of this API. | |
| 802 | + | func (x *Source) AddPoll(FdVar *PollFD) { | |
| 803 | + | xSourceAddPoll(x.GoPointer(), FdVar) | |
| 804 | + | } | |
| 805 | + | ||
| 806 | + | var xSourceAddUnixFd func(uintptr, int, IOCondition) uintptr | |
| 807 | + | ||
| 808 | + | // Monitors @fd for the IO events in @events. | |
| 809 | + | // | |
| 810 | + | // The tag returned by this function can be used to remove or modify the | |
| 811 | + | // monitoring of the @fd using [method@GLib.Source.remove_unix_fd] or | |
| 812 | + | // [method@GLib.Source.modify_unix_fd]. | |
| 813 | + | // | |
| 814 | + | // It is not necessary to remove the file descriptor before destroying the | |
| 815 | + | // source; it will be cleaned up automatically. | |
| 816 | + | // | |
| 817 | + | // This API is only intended to be used by implementations of [struct@GLib.Source]. | |
| 818 | + | // Do not call this API on a [struct@GLib.Source] that you did not create. | |
| 819 | + | // | |
| 820 | + | // As the name suggests, this function is not available on Windows. | |
| 821 | + | func (x *Source) AddUnixFd(FdVar int, EventsVar IOCondition) uintptr { | |
| 822 | + | cret := xSourceAddUnixFd(x.GoPointer(), FdVar, EventsVar) | |
| 823 | + | return cret | |
| 824 | + | } | |
| 825 | + | ||
| 826 | + | var xSourceAttach func(uintptr, *MainContext) uint | |
| 827 | + | ||
| 828 | + | // Adds a [struct@GLib.Source] to a @context so that it will be executed within | |
| 829 | + | // that context. | |
| 830 | + | // | |
| 831 | + | // Remove it by calling [method@GLib.Source.destroy]. | |
| 832 | + | // | |
| 833 | + | // This function is safe to call from any thread, regardless of which thread | |
| 834 | + | // the @context is running in. | |
| 835 | + | func (x *Source) Attach(ContextVar *MainContext) uint { | |
| 836 | + | cret := xSourceAttach(x.GoPointer(), ContextVar) | |
| 837 | + | return cret | |
| 838 | + | } | |
| 839 | + | ||
| 840 | + | var xSourceDestroy func(uintptr) | |
| 841 | + | ||
| 842 | + | // Removes a source from its [struct@GLib.MainContext], if any, and marks it as | |
| 843 | + | // destroyed. | |
| 844 | + | // | |
| 845 | + | // The source cannot be subsequently added to another | |
| 846 | + | // context. It is safe to call this on sources which have already been | |
| 847 | + | // removed from their context. | |
| 848 | + | // | |
| 849 | + | // This does not unref the [struct@GLib.Source]: if you still hold a reference, | |
| 850 | + | // use [method@GLib.Source.unref] to drop it. | |
| 851 | + | // | |
| 852 | + | // This function is safe to call from any thread, regardless of which thread | |
| 853 | + | // the [struct@GLib.MainContext] is running in. | |
| 854 | + | // | |
| 855 | + | // If the source is currently attached to a [struct@GLib.MainContext], | |
| 856 | + | // destroying it will effectively unset the callback similar to calling | |
| 857 | + | // [method@GLib.Source.set_callback]. This can mean, that the data’s | |
| 858 | + | // [callback@GLib.DestroyNotify] gets called right away. | |
| 859 | + | func (x *Source) Destroy() { | |
| 860 | + | xSourceDestroy(x.GoPointer()) | |
| 861 | + | } | |
| 862 | + | ||
| 863 | + | var xSourceDupContext func(uintptr) uintptr | |
| 864 | + | ||
| 865 | + | // Gets a reference to the [struct@GLib.MainContext] with which the source is | |
| 866 | + | // associated. | |
| 867 | + | // | |
| 868 | + | // You can call this on a source that has been destroyed. You can | |
| 869 | + | // always call this function on the source returned from | |
| 870 | + | // [func@GLib.main_current_source]. | |
| 871 | + | func (x *Source) DupContext() *MainContext { | |
| 872 | + | cret := xSourceDupContext(x.GoPointer()) | |
| 873 | + | if cret == 0 { | |
| 874 | + | return nil | |
| 875 | + | } | |
| 876 | + | return (*MainContext)(unsafe.Pointer(cret)) | |
| 877 | + | } | |
| 878 | + | ||
| 879 | + | var xSourceGetCanRecurse func(uintptr) bool | |
| 880 | + | ||
| 881 | + | // Checks whether a source is allowed to be called recursively. | |
| 882 | + | // | |
| 883 | + | // See [method@GLib.Source.set_can_recurse]. | |
| 884 | + | func (x *Source) GetCanRecurse() bool { | |
| 885 | + | cret := xSourceGetCanRecurse(x.GoPointer()) | |
| 886 | + | return cret | |
| 887 | + | } | |
| 888 | + | ||
| 889 | + | var xSourceGetContext func(uintptr) uintptr | |
| 890 | + | ||
| 891 | + | // Gets the [struct@GLib.MainContext] with which the source is associated. | |
| 892 | + | // | |
| 893 | + | // You can call this on a source that has been destroyed, provided | |
| 894 | + | // that the [struct@GLib.MainContext] it was attached to still exists (in which | |
| 895 | + | // case it will return that [struct@GLib.MainContext]). In particular, you can | |
| 896 | + | // always call this function on the source returned from | |
| 897 | + | // [func@GLib.main_current_source]. But calling this function on a source | |
| 898 | + | // whose [struct@GLib.MainContext] has been destroyed is an error. | |
| 899 | + | // | |
| 900 | + | // If the associated [struct@GLib.MainContext] could be destroy concurrently from | |
| 901 | + | // a different thread, then this function is not safe to call and | |
| 902 | + | // [method@GLib.Source.dup_context] should be used instead. | |
| 903 | + | func (x *Source) GetContext() *MainContext { | |
| 904 | + | cret := xSourceGetContext(x.GoPointer()) | |
| 905 | + | if cret == 0 { | |
| 906 | + | return nil | |
| 907 | + | } | |
| 908 | + | return (*MainContext)(unsafe.Pointer(cret)) | |
| 909 | + | } | |
| 910 | + | ||
| 911 | + | var xSourceGetCurrentTime func(uintptr, *TimeVal) | |
| 912 | + | ||
| 913 | + | // This function ignores @source and is otherwise the same as | |
| 914 | + | // [func@GLib.get_current_time]. | |
| 915 | + | func (x *Source) GetCurrentTime(TimevalVar *TimeVal) { | |
| 916 | + | xSourceGetCurrentTime(x.GoPointer(), TimevalVar) | |
| 917 | + | } | |
| 918 | + | ||
| 919 | + | var xSourceGetId func(uintptr) uint | |
| 920 | + | ||
| 921 | + | // Returns the numeric ID for a particular source. | |
| 922 | + | // | |
| 923 | + | // The ID of a source | |
| 924 | + | // is a positive integer which is unique within a particular main loop | |
| 925 | + | // context. The reverse mapping from ID to source is done by | |
| 926 | + | // [method@GLib.MainContext.find_source_by_id]. | |
| 927 | + | // | |
| 928 | + | // You can only call this function while the source is associated to a | |
| 929 | + | // [struct@GLib.MainContext] instance; calling this function before | |
| 930 | + | // [method@GLib.Source.attach] or after [method@GLib.Source.destroy] yields | |
| 931 | + | // undefined behavior. The ID returned is unique within the | |
| 932 | + | // [struct@GLib.MainContext] instance passed to [method@GLib.Source.attach]. | |
| 933 | + | func (x *Source) GetId() uint { | |
| 934 | + | cret := xSourceGetId(x.GoPointer()) | |
| 935 | + | return cret | |
| 936 | + | } | |
| 937 | + | ||
| 938 | + | var xSourceGetName func(uintptr) string | |
| 939 | + | ||
| 940 | + | // Gets a name for the source, used in debugging and profiling. | |
| 941 | + | // | |
| 942 | + | // The | |
| 943 | + | // name may be `NULL` if it has never been set with [method@GLib.Source.set_name]. | |
| 944 | + | func (x *Source) GetName() string { | |
| 945 | + | cret := xSourceGetName(x.GoPointer()) | |
| 946 | + | return cret | |
| 947 | + | } | |
| 948 | + | ||
| 949 | + | var xSourceGetPriority func(uintptr) int | |
| 950 | + | ||
| 951 | + | // Gets the priority of a source. | |
| 952 | + | func (x *Source) GetPriority() int { | |
| 953 | + | cret := xSourceGetPriority(x.GoPointer()) | |
| 954 | + | return cret | |
| 955 | + | } | |
| 956 | + | ||
| 957 | + | var xSourceGetReadyTime func(uintptr) int64 | |
| 958 | + | ||
| 959 | + | // Gets the ‘ready time’ of @source, as set by | |
| 960 | + | // [method@GLib.Source.set_ready_time]. | |
| 961 | + | // | |
| 962 | + | // Any time before or equal to the current monotonic time (including zero) | |
| 963 | + | // is an indication that the source will fire immediately. | |
| 964 | + | func (x *Source) GetReadyTime() int64 { | |
| 965 | + | cret := xSourceGetReadyTime(x.GoPointer()) | |
| 966 | + | return cret | |
| 967 | + | } | |
| 968 | + | ||
| 969 | + | var xSourceGetTime func(uintptr) int64 | |
| 970 | + | ||
| 971 | + | // Gets the time to be used when checking this source. | |
| 972 | + | // | |
| 973 | + | // The advantage of | |
| 974 | + | // calling this function over calling [func@GLib.get_monotonic_time] directly is | |
| 975 | + | // that when checking multiple sources, GLib can cache a single value | |
| 976 | + | // instead of having to repeatedly get the system monotonic time. | |
| 977 | + | // | |
| 978 | + | // The time here is the system monotonic time, if available, or some | |
| 979 | + | // other reasonable alternative otherwise. See [func@GLib.get_monotonic_time]. | |
| 980 | + | func (x *Source) GetTime() int64 { | |
| 981 | + | cret := xSourceGetTime(x.GoPointer()) | |
| 982 | + | return cret | |
| 983 | + | } | |
| 984 | + | ||
| 985 | + | var xSourceIsDestroyed func(uintptr) bool | |
| 986 | + | ||
| 987 | + | // Returns whether @source has been destroyed. | |
| 988 | + | // | |
| 989 | + | // This is important when you operate upon your objects | |
| 990 | + | // from within idle handlers, but may have freed the object | |
| 991 | + | // before the dispatch of your idle handler. | |
| 992 | + | // | |
| 993 | + | // ```c | |
| 994 | + | // static gboolean | |
| 995 | + | // idle_callback (gpointer data) | |
| 996 | + | // | |
| 997 | + | // { | |
| 998 | + | // SomeWidget *self = data; | |
| 999 | + | // | |
| 1000 | + | // g_mutex_lock (&self->idle_id_mutex); | |
| 1001 | + | // // do stuff with self | |
| 1002 | + | // self->idle_id = 0; | |
| 1003 | + | // g_mutex_unlock (&self->idle_id_mutex); | |
| 1004 | + | // | |
| 1005 | + | // return G_SOURCE_REMOVE; | |
| 1006 | + | // } | |
| 1007 | + | // | |
| 1008 | + | // static void | |
| 1009 | + | // some_widget_do_stuff_later (SomeWidget *self) | |
| 1010 | + | // | |
| 1011 | + | // { | |
| 1012 | + | // g_mutex_lock (&self->idle_id_mutex); | |
| 1013 | + | // self->idle_id = g_idle_add (idle_callback, self); | |
| 1014 | + | // g_mutex_unlock (&self->idle_id_mutex); | |
| 1015 | + | // } | |
| 1016 | + | // | |
| 1017 | + | // static void | |
| 1018 | + | // some_widget_init (SomeWidget *self) | |
| 1019 | + | // | |
| 1020 | + | // { | |
| 1021 | + | // g_mutex_init (&self->idle_id_mutex); | |
| 1022 | + | // | |
| 1023 | + | // // ... | |
| 1024 | + | // } | |
| 1025 | + | // | |
| 1026 | + | // static void | |
| 1027 | + | // some_widget_finalize (GObject *object) | |
| 1028 | + | // | |
| 1029 | + | // { | |
| 1030 | + | // SomeWidget *self = SOME_WIDGET (object); | |
| 1031 | + | // | |
| 1032 | + | // if (self->idle_id) | |
| 1033 | + | // g_source_remove (self->idle_id); | |
| 1034 | + | // | |
| 1035 | + | // g_mutex_clear (&self->idle_id_mutex); | |
| 1036 | + | // | |
| 1037 | + | // G_OBJECT_CLASS (parent_class)->finalize (object); | |
| 1038 | + | // } | |
| 1039 | + | // | |
| 1040 | + | // ``` | |
| 1041 | + | // | |
| 1042 | + | // This will fail in a multi-threaded application if the | |
| 1043 | + | // widget is destroyed before the idle handler fires due | |
| 1044 | + | // to the use after free in the callback. A solution, to | |
| 1045 | + | // this particular problem, is to check to if the source | |
| 1046 | + | // has already been destroy within the callback. | |
| 1047 | + | // | |
| 1048 | + | // ```c | |
| 1049 | + | // static gboolean | |
| 1050 | + | // idle_callback (gpointer data) | |
| 1051 | + | // | |
| 1052 | + | // { | |
| 1053 | + | // SomeWidget *self = data; | |
| 1054 | + | // | |
| 1055 | + | // g_mutex_lock (&self->idle_id_mutex); | |
| 1056 | + | // if (!g_source_is_destroyed (g_main_current_source ())) | |
| 1057 | + | // { | |
| 1058 | + | // // do stuff with self | |
| 1059 | + | // } | |
| 1060 | + | // g_mutex_unlock (&self->idle_id_mutex); | |
| 1061 | + | // | |
| 1062 | + | // return FALSE; | |
| 1063 | + | // } | |
| 1064 | + | // | |
| 1065 | + | // ``` | |
| 1066 | + | // | |
| 1067 | + | // Calls to this function from a thread other than the one acquired by the | |
| 1068 | + | // [struct@GLib.MainContext] the [struct@GLib.Source] is attached to are typically | |
| 1069 | + | // redundant, as the source could be destroyed immediately after this function | |
| 1070 | + | // returns. However, once a source is destroyed it cannot be un-destroyed, so | |
| 1071 | + | // this function can be used for opportunistic checks from any thread. | |
| 1072 | + | func (x *Source) IsDestroyed() bool { | |
| 1073 | + | cret := xSourceIsDestroyed(x.GoPointer()) | |
| 1074 | + | return cret | |
| 1075 | + | } | |
| 1076 | + | ||
| 1077 | + | var xSourceModifyUnixFd func(uintptr, uintptr, IOCondition) | |
| 1078 | + | ||
| 1079 | + | // Updates the event mask to watch for the file descriptor identified by @tag. | |
| 1080 | + | // | |
| 1081 | + | // The @tag is the tag returned from [method@GLib.Source.add_unix_fd]. | |
| 1082 | + | // | |
| 1083 | + | // If you want to remove a file descriptor, don’t set its event mask to zero. | |
| 1084 | + | // Instead, call [method@GLib.Source.remove_unix_fd]. | |
| 1085 | + | // | |
| 1086 | + | // This API is only intended to be used by implementations of [struct@GLib.Source]. | |
| 1087 | + | // Do not call this API on a [struct@GLib.Source] that you did not create. | |
| 1088 | + | // | |
| 1089 | + | // As the name suggests, this function is not available on Windows. | |
| 1090 | + | func (x *Source) ModifyUnixFd(TagVar uintptr, NewEventsVar IOCondition) { | |
| 1091 | + | xSourceModifyUnixFd(x.GoPointer(), TagVar, NewEventsVar) | |
| 1092 | + | } | |
| 1093 | + | ||
| 1094 | + | var xSourceQueryUnixFd func(uintptr, uintptr) IOCondition | |
| 1095 | + | ||
| 1096 | + | // Queries the events reported for the file descriptor corresponding to @tag | |
| 1097 | + | // on @source during the last poll. | |
| 1098 | + | // | |
| 1099 | + | // The return value of this function is only defined when the function | |
| 1100 | + | // is called from the check or dispatch functions for @source. | |
| 1101 | + | // | |
| 1102 | + | // This API is only intended to be used by implementations of [struct@GLib.Source]. | |
| 1103 | + | // Do not call this API on a [struct@GLib.Source] that you did not create. | |
| 1104 | + | // | |
| 1105 | + | // As the name suggests, this function is not available on Windows. | |
| 1106 | + | func (x *Source) QueryUnixFd(TagVar uintptr) IOCondition { | |
| 1107 | + | cret := xSourceQueryUnixFd(x.GoPointer(), TagVar) | |
| 1108 | + | return cret | |
| 1109 | + | } | |
| 1110 | + | ||
| 1111 | + | var xSourceRef func(uintptr) uintptr | |
| 1112 | + | ||
| 1113 | + | // Increases the reference count on a source by one. | |
| 1114 | + | func (x *Source) Ref() *Source { | |
| 1115 | + | cret := xSourceRef(x.GoPointer()) | |
| 1116 | + | if cret == 0 { | |
| 1117 | + | return nil | |
| 1118 | + | } | |
| 1119 | + | return (*Source)(unsafe.Pointer(cret)) | |
| 1120 | + | } | |
| 1121 | + | ||
| 1122 | + | var xSourceRemoveChildSource func(uintptr, *Source) | |
| 1123 | + | ||
| 1124 | + | // Detaches @child_source from @source and destroys it. | |
| 1125 | + | // | |
| 1126 | + | // This API is only intended to be used by implementations of [struct@GLib.Source]. | |
| 1127 | + | // Do not call this API on a [struct@GLib.Source] that you did not create. | |
| 1128 | + | func (x *Source) RemoveChildSource(ChildSourceVar *Source) { | |
| 1129 | + | xSourceRemoveChildSource(x.GoPointer(), ChildSourceVar) | |
| 1130 | + | } | |
| 1131 | + | ||
| 1132 | + | var xSourceRemovePoll func(uintptr, *PollFD) | |
| 1133 | + | ||
| 1134 | + | // Removes a file descriptor from the set of file descriptors polled for | |
| 1135 | + | // this source. | |
| 1136 | + | // | |
| 1137 | + | // This API is only intended to be used by implementations of [struct@GLib.Source]. | |
| 1138 | + | // Do not call this API on a [struct@GLib.Source] that you did not create. | |
| 1139 | + | func (x *Source) RemovePoll(FdVar *PollFD) { | |
| 1140 | + | xSourceRemovePoll(x.GoPointer(), FdVar) | |
| 1141 | + | } | |
| 1142 | + | ||
| 1143 | + | var xSourceRemoveUnixFd func(uintptr, uintptr) | |
| 1144 | + | ||
| 1145 | + | // Reverses the effect of a previous call to [method@GLib.Source.add_unix_fd]. | |
| 1146 | + | // | |
| 1147 | + | // You only need to call this if you want to remove a file descriptor from being | |
| 1148 | + | // watched while keeping the same source around. In the normal case you | |
| 1149 | + | // will just want to destroy the source. | |
| 1150 | + | // | |
| 1151 | + | // This API is only intended to be used by implementations of [struct@GLib.Source]. | |
| 1152 | + | // Do not call this API on a [struct@GLib.Source] that you did not create. | |
| 1153 | + | // | |
| 1154 | + | // As the name suggests, this function is not available on Windows. | |
| 1155 | + | func (x *Source) RemoveUnixFd(TagVar uintptr) { | |
| 1156 | + | xSourceRemoveUnixFd(x.GoPointer(), TagVar) | |
| 1157 | + | } | |
| 1158 | + | ||
| 1159 | + | var xSourceSetCallback func(uintptr, uintptr, uintptr, uintptr) | |
| 1160 | + | ||
| 1161 | + | // Sets the callback function for a source. The callback for a source is | |
| 1162 | + | // called from the source’s dispatch function. | |
| 1163 | + | // | |
| 1164 | + | // The exact type of @func depends on the type of source; ie. you | |
| 1165 | + | // should not count on @func being called with @data as its first | |
| 1166 | + | // parameter. Cast @func with [func@GLib.SOURCE_FUNC] to avoid warnings about | |
| 1167 | + | // incompatible function types. | |
| 1168 | + | // | |
| 1169 | + | // See [main loop memory management](main-loop.html#memory-management-of-sources) for details | |
| 1170 | + | // on how to handle memory management of @data. | |
| 1171 | + | // | |
| 1172 | + | // Typically, you won’t use this function. Instead use functions specific | |
| 1173 | + | // to the type of source you are using, such as [func@GLib.idle_add] or | |
| 1174 | + | // [func@GLib.timeout_add]. | |
| 1175 | + | // | |
| 1176 | + | // It is safe to call this function multiple times on a source which has already | |
| 1177 | + | // been attached to a context. The changes will take effect for the next time | |
| 1178 | + | // the source is dispatched after this call returns. | |
| 1179 | + | // | |
| 1180 | + | // Note that [method@GLib.Source.destroy] for a currently attached source has the effect | |
| 1181 | + | // of also unsetting the callback. | |
| 1182 | + | func (x *Source) SetCallback(FuncVar *SourceFunc, DataVar uintptr, NotifyVar *DestroyNotify) { | |
| 1183 | + | xSourceSetCallback(x.GoPointer(), NewCallback(FuncVar), DataVar, NewCallbackNullable(NotifyVar)) | |
| 1184 | + | } | |
| 1185 | + | ||
| 1186 | + | var xSourceSetCallbackIndirect func(uintptr, uintptr, *SourceCallbackFuncs) | |
| 1187 | + | ||
| 1188 | + | // Sets the callback function storing the data as a reference counted callback | |
| 1189 | + | // ‘object’. | |
| 1190 | + | // | |
| 1191 | + | // This is used internally. Note that calling | |
| 1192 | + | // [method@GLib.Source.set_callback_indirect] assumes | |
| 1193 | + | // an initial reference count on @callback_data, and thus | |
| 1194 | + | // `callback_funcs->unref` will eventually be called once more than | |
| 1195 | + | // `callback_funcs->ref`. | |
| 1196 | + | // | |
| 1197 | + | // It is safe to call this function multiple times on a source which has already | |
| 1198 | + | // been attached to a context. The changes will take effect for the next time | |
| 1199 | + | // the source is dispatched after this call returns. | |
| 1200 | + | func (x *Source) SetCallbackIndirect(CallbackDataVar uintptr, CallbackFuncsVar *SourceCallbackFuncs) { | |
| 1201 | + | xSourceSetCallbackIndirect(x.GoPointer(), CallbackDataVar, CallbackFuncsVar) | |
| 1202 | + | } | |
| 1203 | + | ||
| 1204 | + | var xSourceSetCanRecurse func(uintptr, bool) | |
| 1205 | + | ||
| 1206 | + | // Sets whether a source can be called recursively. | |
| 1207 | + | // | |
| 1208 | + | // If @can_recurse is true, then while the source is being dispatched then this | |
| 1209 | + | // source will be processed normally. Otherwise, all processing of this | |
| 1210 | + | // source is blocked until the dispatch function returns. | |
| 1211 | + | func (x *Source) SetCanRecurse(CanRecurseVar bool) { | |
| 1212 | + | xSourceSetCanRecurse(x.GoPointer(), CanRecurseVar) | |
| 1213 | + | } | |
| 1214 | + | ||
| 1215 | + | var xSourceSetDisposeFunction func(uintptr, uintptr) | |
| 1216 | + | ||
| 1217 | + | // Set @dispose as dispose function on @source. | |
| 1218 | + | // | |
| 1219 | + | // The @dispose function will be called once the reference count of @source | |
| 1220 | + | // reaches zero but before any of the state of the source is freed, especially | |
| 1221 | + | // before the finalize function (set as part of the [type@GLib.SourceFuncs]) is | |
| 1222 | + | // called. | |
| 1223 | + | // | |
| 1224 | + | // This means that at this point @source is still a valid [struct@GLib.Source] | |
| 1225 | + | // and it is allow for the reference count to increase again until @dispose | |
| 1226 | + | // returns. | |
| 1227 | + | // | |
| 1228 | + | // The dispose function can be used to clear any ‘weak’ references to | |
| 1229 | + | // the @source in other data structures in a thread-safe way where it is | |
| 1230 | + | // possible for another thread to increase the reference count of @source again | |
| 1231 | + | // while it is being freed. | |
| 1232 | + | // | |
| 1233 | + | // The finalize function can not be used for this purpose as at that | |
| 1234 | + | // point @source is already partially freed and not valid any more. | |
| 1235 | + | // | |
| 1236 | + | // This should only ever be called from [struct@GLib.Source] implementations. | |
| 1237 | + | func (x *Source) SetDisposeFunction(DisposeVar *SourceDisposeFunc) { | |
| 1238 | + | xSourceSetDisposeFunction(x.GoPointer(), NewCallback(DisposeVar)) | |
| 1239 | + | } | |
| 1240 | + | ||
| 1241 | + | var xSourceSetFuncs func(uintptr, *SourceFuncs) | |
| 1242 | + | ||
| 1243 | + | // Sets the source functions of an unattached source. | |
| 1244 | + | // | |
| 1245 | + | // These can be used to override the default implementations for the type | |
| 1246 | + | // of @source. | |
| 1247 | + | func (x *Source) SetFuncs(FuncsVar *SourceFuncs) { | |
| 1248 | + | xSourceSetFuncs(x.GoPointer(), FuncsVar) | |
| 1249 | + | } | |
| 1250 | + | ||
| 1251 | + | var xSourceSetName func(uintptr, string) | |
| 1252 | + | ||
| 1253 | + | // Sets a name for the source, used in debugging and profiling. | |
| 1254 | + | // | |
| 1255 | + | // The name defaults to `NULL`. | |
| 1256 | + | // | |
| 1257 | + | // The source name should describe in a human-readable way | |
| 1258 | + | // what the source does. For example, ‘X11 event queue’ | |
| 1259 | + | // or ‘GTK repaint idle handler’. | |
| 1260 | + | // | |
| 1261 | + | // It is permitted to call this function multiple times, but is not | |
| 1262 | + | // recommended due to the potential performance impact. For example, | |
| 1263 | + | // one could change the name in the `check` function of a | |
| 1264 | + | // [struct@GLib.SourceFuncs] to include details like the event type in the | |
| 1265 | + | // source name. | |
| 1266 | + | // | |
| 1267 | + | // Use caution if changing the name while another thread may be | |
| 1268 | + | // accessing it with [method@GLib.Source.get_name]; that function does not copy | |
| 1269 | + | // the value, and changing the value will free it while the other thread | |
| 1270 | + | // may be attempting to use it. | |
| 1271 | + | // | |
| 1272 | + | // Also see [method@GLib.Source.set_static_name]. | |
| 1273 | + | func (x *Source) SetName(NameVar string) { | |
| 1274 | + | xSourceSetName(x.GoPointer(), NameVar) | |
| 1275 | + | } | |
| 1276 | + | ||
| 1277 | + | var xSourceSetPriority func(uintptr, int) | |
| 1278 | + | ||
| 1279 | + | // Sets the priority of a source. | |
| 1280 | + | // | |
| 1281 | + | // While the main loop is being run, a | |
| 1282 | + | // source will be dispatched if it is ready to be dispatched and no | |
| 1283 | + | // sources at a higher (numerically smaller) priority are ready to be | |
| 1284 | + | // dispatched. | |
| 1285 | + | // | |
| 1286 | + | // A child source always has the same priority as its parent. It is not | |
| 1287 | + | // permitted to change the priority of a source once it has been added | |
| 1288 | + | // as a child of another source. | |
| 1289 | + | func (x *Source) SetPriority(PriorityVar int) { | |
| 1290 | + | xSourceSetPriority(x.GoPointer(), PriorityVar) | |
| 1291 | + | } | |
| 1292 | + | ||
| 1293 | + | var xSourceSetReadyTime func(uintptr, int64) | |
| 1294 | + | ||
| 1295 | + | // Sets a source to be dispatched when the given monotonic time is | |
| 1296 | + | // reached (or passed). | |
| 1297 | + | // | |
| 1298 | + | // If the monotonic time is in the past (as it | |
| 1299 | + | // always will be if @ready_time is `0`) then the source will be | |
| 1300 | + | // dispatched immediately. | |
| 1301 | + | // | |
| 1302 | + | // If @ready_time is `-1` then the source is never woken up on the basis | |
| 1303 | + | // of the passage of time. | |
| 1304 | + | // | |
| 1305 | + | // Dispatching the source does not reset the ready time. You should do | |
| 1306 | + | // so yourself, from the source dispatch function. | |
| 1307 | + | // | |
| 1308 | + | // Note that if you have a pair of sources where the ready time of one | |
| 1309 | + | // suggests that it will be delivered first but the priority for the | |
| 1310 | + | // other suggests that it would be delivered first, and the ready time | |
| 1311 | + | // for both sources is reached during the same main context iteration, | |
| 1312 | + | // then the order of dispatch is undefined. | |
| 1313 | + | // | |
| 1314 | + | // It is a no-op to call this function on a [struct@GLib.Source] which has | |
| 1315 | + | // already been destroyed with [method@GLib.Source.destroy]. | |
| 1316 | + | // | |
| 1317 | + | // This API is only intended to be used by implementations of [struct@GLib.Source]. | |
| 1318 | + | // Do not call this API on a [struct@GLib.Source] that you did not create. | |
| 1319 | + | func (x *Source) SetReadyTime(ReadyTimeVar int64) { | |
| 1320 | + | xSourceSetReadyTime(x.GoPointer(), ReadyTimeVar) | |
| 1321 | + | } | |
| 1322 | + | ||
| 1323 | + | var xSourceSetStaticName func(uintptr, string) | |
| 1324 | + | ||
| 1325 | + | // A variant of [method@GLib.Source.set_name] that does not | |
| 1326 | + | // duplicate the @name, and can only be used with | |
| 1327 | + | // string literals. | |
| 1328 | + | func (x *Source) SetStaticName(NameVar string) { | |
| 1329 | + | xSourceSetStaticName(x.GoPointer(), NameVar) | |
| 1330 | + | } | |
| 1331 | + | ||
| 1332 | + | var xSourceUnref func(uintptr) | |
| 1333 | + | ||
| 1334 | + | // Decreases the reference count of a source by one. | |
| 1335 | + | // | |
| 1336 | + | // If the resulting reference count is zero the source and associated | |
| 1337 | + | // memory will be destroyed. | |
| 1338 | + | func (x *Source) Unref() { | |
| 1339 | + | xSourceUnref(x.GoPointer()) | |
| 1340 | + | } | |
| 1341 | + | ||
| 1342 | + | // The `GSourceCallbackFuncs` struct contains | |
| 1343 | + | // functions for managing callback objects. | |
| 1344 | + | type SourceCallbackFuncs struct { | |
| 1345 | + | _ structs.HostLayout | |
| 1346 | + | ||
| 1347 | + | xRef uintptr | |
| 1348 | + | ||
| 1349 | + | xUnref uintptr | |
| 1350 | + | ||
| 1351 | + | xGet uintptr | |
| 1352 | + | } | |
| 1353 | + | ||
| 1354 | + | func (x *SourceCallbackFuncs) GoPointer() uintptr { | |
| 1355 | + | return uintptr(unsafe.Pointer(x)) | |
| 1356 | + | } | |
| 1357 | + | ||
| 1358 | + | func SourceCallbackFuncsNewFromInternalPtr(ptr uintptr) *SourceCallbackFuncs { | |
| 1359 | + | if ptr == 0 { | |
| 1360 | + | return nil | |
| 1361 | + | } | |
| 1362 | + | rawPtr := *(*unsafe.Pointer)(unsafe.Pointer(&ptr)) | |
| 1363 | + | return (*SourceCallbackFuncs)(rawPtr) | |
| 1364 | + | } | |
| 1365 | + | ||
| 1366 | + | // OverrideRef sets the "ref" callback function. | |
| 1367 | + | // Called when a reference is added to the callback object | |
| 1368 | + | func (x *SourceCallbackFuncs) OverrideRef(cb func(uintptr)) { | |
| 1369 | + | if cb == nil { | |
| 1370 | + | x.xRef = 0 | |
| 1371 | + | } else { | |
| 1372 | + | x.xRef = purego.NewCallback(func(CbDataVarp uintptr) { | |
| 1373 | + | cb(CbDataVarp) | |
| 1374 | + | }) | |
| 1375 | + | } | |
| 1376 | + | } | |
| 1377 | + | ||
| 1378 | + | // GetRef gets the "ref" callback function. | |
| 1379 | + | // Called when a reference is added to the callback object | |
| 1380 | + | func (x *SourceCallbackFuncs) GetRef() func(uintptr) { | |
| 1381 | + | if x.xRef == 0 { | |
| 1382 | + | return nil | |
| 1383 | + | } | |
| 1384 | + | var rawCallback func(CbDataVarp uintptr) | |
| 1385 | + | purego.RegisterFunc(&rawCallback, x.xRef) | |
| 1386 | + | return func(CbDataVar uintptr) { | |
| 1387 | + | rawCallback(CbDataVar) | |
| 1388 | + | } | |
| 1389 | + | } | |
| 1390 | + | ||
| 1391 | + | // OverrideUnref sets the "unref" callback function. | |
| 1392 | + | // Called when a reference to the callback object is dropped | |
| 1393 | + | func (x *SourceCallbackFuncs) OverrideUnref(cb func(uintptr)) { | |
| 1394 | + | if cb == nil { | |
| 1395 | + | x.xUnref = 0 | |
| 1396 | + | } else { | |
| 1397 | + | x.xUnref = purego.NewCallback(func(CbDataVarp uintptr) { | |
| 1398 | + | cb(CbDataVarp) | |
| 1399 | + | }) | |
| 1400 | + | } | |
| 1401 | + | } | |
| 1402 | + | ||
| 1403 | + | // GetUnref gets the "unref" callback function. | |
| 1404 | + | // Called when a reference to the callback object is dropped | |
| 1405 | + | func (x *SourceCallbackFuncs) GetUnref() func(uintptr) { | |
| 1406 | + | if x.xUnref == 0 { | |
| 1407 | + | return nil | |
| 1408 | + | } | |
| 1409 | + | var rawCallback func(CbDataVarp uintptr) | |
| 1410 | + | purego.RegisterFunc(&rawCallback, x.xUnref) | |
| 1411 | + | return func(CbDataVar uintptr) { | |
| 1412 | + | rawCallback(CbDataVar) | |
| 1413 | + | } | |
| 1414 | + | } | |
| 1415 | + | ||
| 1416 | + | // OverrideGet sets the "get" callback function. | |
| 1417 | + | // Called to extract the callback function and data from the | |
| 1418 | + | // | |
| 1419 | + | // callback object. | |
| 1420 | + | func (x *SourceCallbackFuncs) OverrideGet(cb func(uintptr, *Source, *SourceFunc, uintptr)) { | |
| 1421 | + | if cb == nil { | |
| 1422 | + | x.xGet = 0 | |
| 1423 | + | } else { | |
| 1424 | + | x.xGet = purego.NewCallback(func(CbDataVarp uintptr, SourceVarp *Source, FuncVarp uintptr, DataVarp uintptr) { | |
| 1425 | + | cb(CbDataVarp, SourceVarp, (*SourceFunc)(unsafe.Pointer(FuncVarp)), DataVarp) | |
| 1426 | + | }) | |
| 1427 | + | } | |
| 1428 | + | } | |
| 1429 | + | ||
| 1430 | + | // GetGet gets the "get" callback function. | |
| 1431 | + | // Called to extract the callback function and data from the | |
| 1432 | + | // | |
| 1433 | + | // callback object. | |
| 1434 | + | func (x *SourceCallbackFuncs) GetGet() func(uintptr, *Source, *SourceFunc, uintptr) { | |
| 1435 | + | if x.xGet == 0 { | |
| 1436 | + | return nil | |
| 1437 | + | } | |
| 1438 | + | var rawCallback func(CbDataVarp uintptr, SourceVarp *Source, FuncVarp uintptr, DataVarp uintptr) | |
| 1439 | + | purego.RegisterFunc(&rawCallback, x.xGet) | |
| 1440 | + | return func(CbDataVar uintptr, SourceVar *Source, FuncVar *SourceFunc, DataVar uintptr) { | |
| 1441 | + | rawCallback(CbDataVar, SourceVar, NewCallback(FuncVar), DataVar) | |
| 1442 | + | } | |
| 1443 | + | } | |
| 1444 | + | ||
| 1445 | + | // The `GSourceFuncs` struct contains a table of | |
| 1446 | + | // functions used to handle event sources in a generic manner. | |
| 1447 | + | // | |
| 1448 | + | // For idle sources, the prepare and check functions always return %TRUE | |
| 1449 | + | // to indicate that the source is always ready to be processed. The prepare | |
| 1450 | + | // function also returns a timeout value of 0 to ensure that the poll() call | |
| 1451 | + | // doesn't block (since that would be time wasted which could have been spent | |
| 1452 | + | // running the idle function). | |
| 1453 | + | // | |
| 1454 | + | // For timeout sources, the prepare and check functions both return %TRUE | |
| 1455 | + | // if the timeout interval has expired. The prepare function also returns | |
| 1456 | + | // a timeout value to ensure that the poll() call doesn't block too long | |
| 1457 | + | // and miss the next timeout. | |
| 1458 | + | // | |
| 1459 | + | // For file descriptor sources, the prepare function typically returns %FALSE, | |
| 1460 | + | // since it must wait until poll() has been called before it knows whether | |
| 1461 | + | // any events need to be processed. It sets the returned timeout to -1 to | |
| 1462 | + | // indicate that it doesn't mind how long the poll() call blocks. In the | |
| 1463 | + | // check function, it tests the results of the poll() call to see if the | |
| 1464 | + | // required condition has been met, and returns %TRUE if so. | |
| 1465 | + | type SourceFuncs struct { | |
| 1466 | + | _ structs.HostLayout | |
| 1467 | + | ||
| 1468 | + | Prepare SourceFuncsPrepareFunc | |
| 1469 | + | ||
| 1470 | + | Check SourceFuncsCheckFunc | |
| 1471 | + | ||
| 1472 | + | Dispatch SourceFuncsDispatchFunc | |
| 1473 | + | ||
| 1474 | + | Finalize SourceFuncsFinalizeFunc | |
| 1475 | + | ||
| 1476 | + | ClosureCallback SourceFunc | |
| 1477 | + | ||
| 1478 | + | ClosureMarshal SourceDummyMarshal | |
| 1479 | + | } | |
| 1480 | + | ||
| 1481 | + | func (x *SourceFuncs) GoPointer() uintptr { | |
| 1482 | + | return uintptr(unsafe.Pointer(x)) | |
| 1483 | + | } | |
| 1484 | + | ||
| 1485 | + | func SourceFuncsNewFromInternalPtr(ptr uintptr) *SourceFuncs { | |
| 1486 | + | if ptr == 0 { | |
| 1487 | + | return nil | |
| 1488 | + | } | |
| 1489 | + | rawPtr := *(*unsafe.Pointer)(unsafe.Pointer(&ptr)) | |
| 1490 | + | return (*SourceFuncs)(rawPtr) | |
| 1491 | + | } | |
| 1492 | + | ||
| 1493 | + | type SourcePrivate struct { | |
| 1494 | + | _ structs.HostLayout | |
| 1495 | + | } | |
| 1496 | + | ||
| 1497 | + | func (x *SourcePrivate) GoPointer() uintptr { | |
| 1498 | + | return uintptr(unsafe.Pointer(x)) | |
| 1499 | + | } | |
| 1500 | + | ||
| 1501 | + | func SourcePrivateNewFromInternalPtr(ptr uintptr) *SourcePrivate { | |
| 1502 | + | if ptr == 0 { | |
| 1503 | + | return nil | |
| 1504 | + | } | |
| 1505 | + | rawPtr := *(*unsafe.Pointer)(unsafe.Pointer(&ptr)) | |
| 1506 | + | return (*SourcePrivate)(rawPtr) | |
| 1507 | + | } | |
| 1508 | + | ||
| 1509 | + | // Opaque type. See g_main_context_pusher_new() for details. | |
| 1510 | + | type MainContextPusher = uintptr | |
| 1511 | + | ||
| 1512 | + | const ( | |
| 1513 | + | // Use this for default priority event sources. | |
| 1514 | + | // | |
| 1515 | + | // In GLib this priority is used when adding timeout functions | |
| 1516 | + | // with [func@GLib.timeout_add]. In GDK this priority is used for events | |
| 1517 | + | // from the X server. | |
| 1518 | + | PRIORITY_DEFAULT int = 0 | |
| 1519 | + | // Use this for default priority idle functions. | |
| 1520 | + | // | |
| 1521 | + | // In GLib this priority is used when adding idle functions with | |
| 1522 | + | // [func@GLib.idle_add]. | |
| 1523 | + | PRIORITY_DEFAULT_IDLE int = 200 | |
| 1524 | + | // Use this for high priority event sources. | |
| 1525 | + | // | |
| 1526 | + | // It is not used within GLib or GTK. | |
| 1527 | + | PRIORITY_HIGH int = -100 | |
| 1528 | + | // Use this for high priority idle functions. | |
| 1529 | + | // | |
| 1530 | + | // GTK uses %G_PRIORITY_HIGH_IDLE + 10 for resizing operations, | |
| 1531 | + | // and %G_PRIORITY_HIGH_IDLE + 20 for redrawing operations. (This is | |
| 1532 | + | // done to ensure that any pending resizes are processed before any | |
| 1533 | + | // pending redraws, so that widgets are not redrawn twice unnecessarily.) | |
| 1534 | + | PRIORITY_HIGH_IDLE int = 100 | |
| 1535 | + | // Use this for very low priority background tasks. | |
| 1536 | + | // | |
| 1537 | + | // It is not used within GLib or GTK. | |
| 1538 | + | PRIORITY_LOW int = 300 | |
| 1539 | + | // Use this macro as the return value of a [callback@GLib.SourceFunc] to leave | |
| 1540 | + | // the [struct@GLib.Source] in the main loop. | |
| 1541 | + | SOURCE_CONTINUE bool = true | |
| 1542 | + | // Use this macro as the return value of a [callback@GLib.SourceFunc] to remove | |
| 1543 | + | // the [struct@GLib.Source] from the main loop. | |
| 1544 | + | SOURCE_REMOVE bool = false | |
| 1545 | + | ) | |
| 1546 | + | ||
| 1547 | + | // Flags to pass to [ctor@GLib.MainContext.new_with_flags] which affect the | |
| 1548 | + | // behaviour of a [struct@GLib.MainContext]. | |
| 1549 | + | type MainContextFlags int | |
| 1550 | + | ||
| 1551 | + | const ( | |
| 1552 | + | ||
| 1553 | + | // Default behaviour. | |
| 1554 | + | GMainContextFlagsNoneValue MainContextFlags = 0 | |
| 1555 | + | // Assume that polling for events will | |
| 1556 | + | // free the thread to process other jobs. That's useful if you're using | |
| 1557 | + | // `g_main_context_{prepare,query,check,dispatch}` to integrate GMainContext in | |
| 1558 | + | // other event loops. | |
| 1559 | + | GMainContextFlagsOwnerlessPollingValue MainContextFlags = 1 | |
| 1560 | + | ) | |
| 1561 | + | ||
| 1562 | + | var xChildWatchAdd func(Pid, uintptr, uintptr) uint | |
| 1563 | + | ||
| 1564 | + | // Sets a function to be called when the child indicated by @pid | |
| 1565 | + | // exits, at a default priority, [const@GLib.PRIORITY_DEFAULT]. | |
| 1566 | + | // | |
| 1567 | + | // If you obtain @pid from [func@GLib.spawn_async] or | |
| 1568 | + | // [func@GLib.spawn_async_with_pipes] you will need to pass | |
| 1569 | + | // [flags@GLib.SpawnFlags.DO_NOT_REAP_CHILD] as a flag to the spawn function for | |
| 1570 | + | // the child watching to work. | |
| 1571 | + | // | |
| 1572 | + | // Note that on platforms where [type@GLib.Pid] must be explicitly closed | |
| 1573 | + | // (see [func@GLib.spawn_close_pid]) @pid must not be closed while the | |
| 1574 | + | // source is still active. Typically, you will want to call | |
| 1575 | + | // [func@GLib.spawn_close_pid] in the callback function for the source. | |
| 1576 | + | // | |
| 1577 | + | // GLib supports only a single callback per process ID. | |
| 1578 | + | // On POSIX platforms, the same restrictions mentioned for | |
| 1579 | + | // [func@GLib.child_watch_source_new] apply to this function. | |
| 1580 | + | // | |
| 1581 | + | // This internally creates a main loop source using | |
| 1582 | + | // [func@GLib.child_watch_source_new] and attaches it to the main loop context | |
| 1583 | + | // using [method@GLib.Source.attach]. You can do these steps manually if you | |
| 1584 | + | // need greater control. | |
| 1585 | + | func ChildWatchAdd(PidVar Pid, FunctionVar *ChildWatchFunc, DataVar uintptr) uint { | |
| 1586 | + | var functionRef uintptr | |
| 1587 | + | if FunctionVar != nil { | |
| 1588 | + | functionRef = childWatchFuncTrampolineCb | |
| 1589 | + | } | |
| 1590 | + | cret := xChildWatchAdd(PidVar, functionRef, DataVar) | |
| 1591 | + | trackChildWatchFunc(cret, FunctionVar, DataVar) | |
| 1592 | + | return cret | |
| 1593 | + | } | |
| 1594 | + | ||
| 1595 | + | var xChildWatchAddFull func(int, Pid, uintptr, uintptr, uintptr) uint | |
| 1596 | + | ||
| 1597 | + | // Sets a function to be called when the child indicated by @pid | |
| 1598 | + | // exits, at the priority @priority. | |
| 1599 | + | // | |
| 1600 | + | // If you obtain @pid from [func@GLib.spawn_async] or | |
| 1601 | + | // [func@GLib.spawn_async_with_pipes] you will need to pass | |
| 1602 | + | // [flags@GLib.SpawnFlags.DO_NOT_REAP_CHILD] as a flag to the spawn function for | |
| 1603 | + | // the child watching to work. | |
| 1604 | + | // | |
| 1605 | + | // In many programs, you will want to call [func@GLib.spawn_check_wait_status] | |
| 1606 | + | // in the callback to determine whether or not the child exited | |
| 1607 | + | // successfully. | |
| 1608 | + | // | |
| 1609 | + | // Also, note that on platforms where [type@GLib.Pid] must be explicitly closed | |
| 1610 | + | // (see [func@GLib.spawn_close_pid]) @pid must not be closed while the source | |
| 1611 | + | // is still active. Typically, you should invoke [func@GLib.spawn_close_pid] | |
| 1612 | + | // in the callback function for the source. | |
| 1613 | + | // | |
| 1614 | + | // GLib supports only a single callback per process ID. | |
| 1615 | + | // On POSIX platforms, the same restrictions mentioned for | |
| 1616 | + | // [func@GLib.child_watch_source_new] apply to this function. | |
| 1617 | + | // | |
| 1618 | + | // This internally creates a main loop source using | |
| 1619 | + | // [func@GLib.child_watch_source_new] and attaches it to the main loop context | |
| 1620 | + | // using [method@GLib.Source.attach]. You can do these steps manually if you | |
| 1621 | + | // need greater control. | |
| 1622 | + | func ChildWatchAddFull(PriorityVar int, PidVar Pid, FunctionVar *ChildWatchFunc, DataVar uintptr, NotifyVar *DestroyNotify) uint { | |
| 1623 | + | var functionRef uintptr | |
| 1624 | + | if FunctionVar != nil { | |
| 1625 | + | functionRef = childWatchFuncTrampolineCb | |
| 1626 | + | } | |
| 1627 | + | cret := xChildWatchAddFull(PriorityVar, PidVar, functionRef, DataVar, NewCallbackNullable(NotifyVar)) | |
| 1628 | + | trackChildWatchFunc(cret, FunctionVar, DataVar) | |
| 1629 | + | return cret | |
| 1630 | + | } | |
| 1631 | + | ||
| 1632 | + | var xChildWatchSourceNew func(Pid) uintptr | |
| 1633 | + | ||
| 1634 | + | // Creates a new child watch source. | |
| 1635 | + | // | |
| 1636 | + | // The source will not initially be associated with any | |
| 1637 | + | // [struct@GLib.MainContext] and must be added to one with | |
| 1638 | + | // [method@GLib.Source.attach] before it will be executed. | |
| 1639 | + | // | |
| 1640 | + | // Note that child watch sources can only be used in conjunction with | |
| 1641 | + | // `g_spawn...` when the [flags@GLib.SpawnFlags.DO_NOT_REAP_CHILD] flag is used. | |
| 1642 | + | // | |
| 1643 | + | // Note that on platforms where [type@GLib.Pid] must be explicitly closed | |
| 1644 | + | // (see [func@GLib.spawn_close_pid]) @pid must not be closed while the | |
| 1645 | + | // source is still active. Typically, you will want to call | |
| 1646 | + | // [func@GLib.spawn_close_pid] in the callback function for the source. | |
| 1647 | + | // | |
| 1648 | + | // On POSIX platforms, the following restrictions apply to this API | |
| 1649 | + | // due to limitations in POSIX process interfaces: | |
| 1650 | + | // | |
| 1651 | + | // - @pid must be a child of this process. | |
| 1652 | + | // - @pid must be positive. | |
| 1653 | + | // - The application must not call [`waitpid()`](man:waitpid(1)) with a | |
| 1654 | + | // non-positive first argument, for instance in another thread. | |
| 1655 | + | // - The application must not wait for @pid to exit by any other | |
| 1656 | + | // mechanism, including `waitpid(pid, ...)` or a second child-watch | |
| 1657 | + | // source for the same @pid. | |
| 1658 | + | // - The application must not ignore `SIGCHLD`. | |
| 1659 | + | // - Before 2.78, the application could not send a signal ([`kill()`](man:kill(2))) to the | |
| 1660 | + | // watched @pid in a race free manner. Since 2.78, you can do that while the | |
| 1661 | + | // associated [struct@GLib.MainContext] is acquired. | |
| 1662 | + | // - Before 2.78, even after destroying the [struct@GLib.Source], you could not | |
| 1663 | + | // be sure that @pid wasn’t already reaped. Hence, it was also not | |
| 1664 | + | // safe to `kill()` or `waitpid()` on the process ID after the child watch | |
| 1665 | + | // source was gone. Destroying the source before it fired made it | |
| 1666 | + | // impossible to reliably reap the process. | |
| 1667 | + | // | |
| 1668 | + | // If any of those conditions are not met, this and related APIs will | |
| 1669 | + | // not work correctly. This can often be diagnosed via a GLib warning | |
| 1670 | + | // stating that `ECHILD` was received by `waitpid()`. | |
| 1671 | + | // | |
| 1672 | + | // Calling [`waitpid()`](man:waitpid(2)) for specific processes other than @pid | |
| 1673 | + | // remains a valid thing to do. | |
| 1674 | + | func ChildWatchSourceNew(PidVar Pid) *Source { | |
| 1675 | + | cret := xChildWatchSourceNew(PidVar) | |
| 1676 | + | if cret == 0 { | |
| 1677 | + | return nil | |
| 1678 | + | } | |
| 1679 | + | return (*Source)(unsafe.Pointer(cret)) | |
| 1680 | + | } | |
| 1681 | + | ||
| 1682 | + | var xClearHandleId func(uint, uintptr) | |
| 1683 | + | ||
| 1684 | + | // Clears a numeric handler, such as a [struct@GLib.Source] ID. | |
| 1685 | + | // | |
| 1686 | + | // The @tag_ptr must be a valid pointer to the variable holding the handler. | |
| 1687 | + | // | |
| 1688 | + | // If the ID is zero then this function does nothing. | |
| 1689 | + | // Otherwise, @clear_func is called with the ID as a parameter, and the tag is | |
| 1690 | + | // set to zero. | |
| 1691 | + | // | |
| 1692 | + | // A macro is also included that allows this function to be used without | |
| 1693 | + | // pointer casts. | |
| 1694 | + | func ClearHandleId(TagPtrVar uint, ClearFuncVar *ClearHandleFunc) { | |
| 1695 | + | xClearHandleId(TagPtrVar, NewCallback(ClearFuncVar)) | |
| 1696 | + | } | |
| 1697 | + | ||
| 1698 | + | var xGetCurrentTime func(*TimeVal) | |
| 1699 | + | ||
| 1700 | + | // Queries the system wall-clock time. | |
| 1701 | + | // | |
| 1702 | + | // This is equivalent to the UNIX [`gettimeofday()`](man:gettimeofday(2)) | |
| 1703 | + | // function, but portable. | |
| 1704 | + | // | |
| 1705 | + | // You may find [func@GLib.get_real_time] to be more convenient. | |
| 1706 | + | func GetCurrentTime(ResultVar *TimeVal) { | |
| 1707 | + | xGetCurrentTime(ResultVar) | |
| 1708 | + | } | |
| 1709 | + | ||
| 1710 | + | var xGetMonotonicTime func() int64 | |
| 1711 | + | ||
| 1712 | + | // Queries the system monotonic time in microseconds. | |
| 1713 | + | // | |
| 1714 | + | // The monotonic clock will always increase and doesn’t suffer | |
| 1715 | + | // discontinuities when the user (or NTP) changes the system time. It | |
| 1716 | + | // may or may not continue to tick during times where the machine is | |
| 1717 | + | // suspended. | |
| 1718 | + | // | |
| 1719 | + | // We try to use the clock that corresponds as closely as possible to | |
| 1720 | + | // the passage of time as measured by system calls such as | |
| 1721 | + | // [`poll()`](man:poll(2)) but it | |
| 1722 | + | // may not always be possible to do this. | |
| 1723 | + | // | |
| 1724 | + | // A more accurate version of this function exists. | |
| 1725 | + | // [func@GLib.get_monotonic_time_ns] returns the time in nanoseconds. | |
| 1726 | + | func GetMonotonicTime() int64 { | |
| 1727 | + | cret := xGetMonotonicTime() | |
| 1728 | + | return cret | |
| 1729 | + | } | |
| 1730 | + | ||
| 1731 | + | var xGetMonotonicTimeNs func() uint64 | |
| 1732 | + | ||
| 1733 | + | // Queries the system monotonic time in nanoseconds. | |
| 1734 | + | // | |
| 1735 | + | // The monotonic clock will always increase and doesn’t suffer | |
| 1736 | + | // discontinuities when the user (or NTP) changes the system time. It | |
| 1737 | + | // may or may not continue to tick during times where the machine is | |
| 1738 | + | // suspended. | |
| 1739 | + | // | |
| 1740 | + | // We try to use the clock that corresponds as closely as possible to | |
| 1741 | + | // the passage of time as measured by system calls such as | |
| 1742 | + | // [`poll()`](man:poll(2)) but it | |
| 1743 | + | // may not always be possible to do this. | |
| 1744 | + | // | |
| 1745 | + | // Another version of this function exists. | |
| 1746 | + | // [func@GLib.get_monotonic_time] returns the time in microseconds. | |
| 1747 | + | // If you want to support older GLib versions, it is an alternative. | |
| 1748 | + | func GetMonotonicTimeNs() uint64 { | |
| 1749 | + | cret := xGetMonotonicTimeNs() | |
| 1750 | + | return cret | |
| 1751 | + | } | |
| 1752 | + | ||
| 1753 | + | var xGetRealTime func() int64 | |
| 1754 | + | ||
| 1755 | + | // Queries the system wall-clock time. | |
| 1756 | + | // | |
| 1757 | + | // This is equivalent to the UNIX [`gettimeofday()`](man:gettimeofday(2)) | |
| 1758 | + | // function, but portable. | |
| 1759 | + | // | |
| 1760 | + | // You should only use this call if you are actually interested in the real | |
| 1761 | + | // wall-clock time. [func@GLib.get_monotonic_time] is probably more useful for | |
| 1762 | + | // measuring intervals. | |
| 1763 | + | func GetRealTime() int64 { | |
| 1764 | + | cret := xGetRealTime() | |
| 1765 | + | return cret | |
| 1766 | + | } | |
| 1767 | + | ||
| 1768 | + | var xIdleAdd func(uintptr, uintptr) uint | |
| 1769 | + | ||
| 1770 | + | // Adds a function to be called whenever there are no higher priority | |
| 1771 | + | // events pending to the default main loop. | |
| 1772 | + | // | |
| 1773 | + | // The function is given the | |
| 1774 | + | // default idle priority, [const@GLib.PRIORITY_DEFAULT_IDLE]. If the function | |
| 1775 | + | // returns [const@GLib.SOURCE_REMOVE] it is automatically removed from the list | |
| 1776 | + | // of event sources and will not be called again. | |
| 1777 | + | // | |
| 1778 | + | // See [main loop memory management](main-loop.html#memory-management-of-sources) for details | |
| 1779 | + | // on how to handle the return value and memory management of @data. | |
| 1780 | + | // | |
| 1781 | + | // This internally creates a main loop source using [func@GLib.idle_source_new] | |
| 1782 | + | // and attaches it to the global [struct@GLib.MainContext] using | |
| 1783 | + | // [method@GLib.Source.attach], so the callback will be invoked in whichever | |
| 1784 | + | // thread is running that main context. You can do these steps manually if you | |
| 1785 | + | // need greater control or to use a custom main context. | |
| 1786 | + | func IdleAdd(FunctionVar *SourceFunc, DataVar uintptr) uint { | |
| 1787 | + | var functionRef uintptr | |
| 1788 | + | if FunctionVar != nil { | |
| 1789 | + | functionRef = sourceFuncTrampolineCb | |
| 1790 | + | } | |
| 1791 | + | cret := xIdleAdd(functionRef, DataVar) | |
| 1792 | + | trackSourceFunc(cret, FunctionVar, DataVar) | |
| 1793 | + | return cret | |
| 1794 | + | } | |
| 1795 | + | ||
| 1796 | + | var xIdleAddFull func(int, uintptr, uintptr, uintptr) uint | |
| 1797 | + | ||
| 1798 | + | // Adds a function to be called whenever there are no higher priority | |
| 1799 | + | // events pending. | |
| 1800 | + | // | |
| 1801 | + | // If the function returns [const@GLib.SOURCE_REMOVE] it is automatically | |
| 1802 | + | // removed from the list of event sources and will not be called again. | |
| 1803 | + | // | |
| 1804 | + | // See [main loop memory management](main-loop.html#memory-management-of-sources) for details | |
| 1805 | + | // on how to handle the return value and memory management of @data. | |
| 1806 | + | // | |
| 1807 | + | // This internally creates a main loop source using [func@GLib.idle_source_new] | |
| 1808 | + | // and attaches it to the global [struct@GLib.MainContext] using | |
| 1809 | + | // [method@GLib.Source.attach], so the callback will be invoked in whichever | |
| 1810 | + | // thread is running that main context. You can do these steps manually if you | |
| 1811 | + | // need greater control or to use a custom main context. | |
| 1812 | + | func IdleAddFull(PriorityVar int, FunctionVar *SourceFunc, DataVar uintptr, NotifyVar *DestroyNotify) uint { | |
| 1813 | + | var functionRef uintptr | |
| 1814 | + | if FunctionVar != nil { | |
| 1815 | + | functionRef = sourceFuncTrampolineCb | |
| 1816 | + | } | |
| 1817 | + | cret := xIdleAddFull(PriorityVar, functionRef, DataVar, NewCallbackNullable(NotifyVar)) | |
| 1818 | + | trackSourceFunc(cret, FunctionVar, DataVar) | |
| 1819 | + | return cret | |
| 1820 | + | } | |
| 1821 | + | ||
| 1822 | + | var xIdleAddOnce func(uintptr, uintptr) uint | |
| 1823 | + | ||
| 1824 | + | // Adds a function to be called whenever there are no higher priority | |
| 1825 | + | // events pending to the default main loop. | |
| 1826 | + | // | |
| 1827 | + | // The function is given the | |
| 1828 | + | // default idle priority, [const@GLib.PRIORITY_DEFAULT_IDLE]. | |
| 1829 | + | // | |
| 1830 | + | // The function will only be called once and then the source will be | |
| 1831 | + | // automatically removed from the main context. | |
| 1832 | + | // | |
| 1833 | + | // This function otherwise behaves like [func@GLib.idle_add]. | |
| 1834 | + | func IdleAddOnce(FunctionVar *SourceOnceFunc, DataVar uintptr) uint { | |
| 1835 | + | var functionRef uintptr | |
| 1836 | + | if FunctionVar != nil { | |
| 1837 | + | functionRef = sourceOnceFuncTrampolineCb | |
| 1838 | + | } | |
| 1839 | + | cret := xIdleAddOnce(functionRef, DataVar) | |
| 1840 | + | trackSourceOnceFunc(cret, FunctionVar, DataVar) | |
| 1841 | + | return cret | |
| 1842 | + | } | |
| 1843 | + | ||
| 1844 | + | var xIdleRemoveByData func(uintptr) bool | |
| 1845 | + | ||
| 1846 | + | // Removes the idle function with the given data. | |
| 1847 | + | func IdleRemoveByData(DataVar uintptr) bool { | |
| 1848 | + | trackedSourceID := trackedSourceIDByUserData(DataVar) | |
| 1849 | + | cret := xIdleRemoveByData(DataVar) | |
| 1850 | + | if cret { | |
| 1851 | + | removeTrackedSource(trackedSourceID) | |
| 1852 | + | } | |
| 1853 | + | return cret | |
| 1854 | + | } | |
| 1855 | + | ||
| 1856 | + | var xIdleSourceNew func() uintptr | |
| 1857 | + | ||
| 1858 | + | // Creates a new idle source. | |
| 1859 | + | // | |
| 1860 | + | // The source will not initially be associated with any | |
| 1861 | + | // [struct@GLib.MainContext] and must be added to one with | |
| 1862 | + | // [method@GLib.Source.attach] before it will be executed. Note that the | |
| 1863 | + | // default priority for idle sources is [const@GLib.PRIORITY_DEFAULT_IDLE], as | |
| 1864 | + | // compared to other sources which have a default priority of | |
| 1865 | + | // [const@GLib.PRIORITY_DEFAULT]. | |
| 1866 | + | func IdleSourceNew() *Source { | |
| 1867 | + | cret := xIdleSourceNew() | |
| 1868 | + | if cret == 0 { | |
| 1869 | + | return nil | |
| 1870 | + | } | |
| 1871 | + | return (*Source)(unsafe.Pointer(cret)) | |
| 1872 | + | } | |
| 1873 | + | ||
| 1874 | + | var xMainContextDefault func() uintptr | |
| 1875 | + | ||
| 1876 | + | // Returns the global-default main context. | |
| 1877 | + | // | |
| 1878 | + | // This is the main context | |
| 1879 | + | // used for main loop functions when a main loop is not explicitly | |
| 1880 | + | // specified, and corresponds to the ‘main’ main loop. See also | |
| 1881 | + | // [func@GLib.MainContext.get_thread_default]. | |
| 1882 | + | func MainContextDefault() *MainContext { | |
| 1883 | + | cret := xMainContextDefault() | |
| 1884 | + | if cret == 0 { | |
| 1885 | + | return nil | |
| 1886 | + | } | |
| 1887 | + | return (*MainContext)(unsafe.Pointer(cret)) | |
| 1888 | + | } | |
| 1889 | + | ||
| 1890 | + | var xMainContextGetThreadDefault func() uintptr | |
| 1891 | + | ||
| 1892 | + | // Gets the thread-default main context for this thread. | |
| 1893 | + | // | |
| 1894 | + | // Asynchronous operations that want to be able to be run in contexts other than | |
| 1895 | + | // the default one should call this method or | |
| 1896 | + | // [func@GLib.MainContext.ref_thread_default] to get a | |
| 1897 | + | // [struct@GLib.MainContext] to add their [struct@GLib.Source]s to. (Note that | |
| 1898 | + | // even in single-threaded programs applications may sometimes want to | |
| 1899 | + | // temporarily push a non-default context, so it is not safe to assume that | |
| 1900 | + | // this will always return `NULL` if you are running in the default thread.) | |
| 1901 | + | // | |
| 1902 | + | // If you need to hold a reference on the context, use | |
| 1903 | + | // [func@GLib.MainContext.ref_thread_default] instead. | |
| 1904 | + | func MainContextGetThreadDefault() *MainContext { | |
| 1905 | + | cret := xMainContextGetThreadDefault() | |
| 1906 | + | if cret == 0 { | |
| 1907 | + | return nil | |
| 1908 | + | } | |
| 1909 | + | return (*MainContext)(unsafe.Pointer(cret)) | |
| 1910 | + | } | |
| 1911 | + | ||
| 1912 | + | var xMainContextRefThreadDefault func() uintptr | |
| 1913 | + | ||
| 1914 | + | // Gets a reference to the thread-default [struct@GLib.MainContext] for this | |
| 1915 | + | // thread | |
| 1916 | + | // | |
| 1917 | + | // This is the same as [func@GLib.MainContext.get_thread_default], but it also | |
| 1918 | + | // adds a reference to the returned main context with [method@GLib.MainContext.ref]. | |
| 1919 | + | // In addition, unlike | |
| 1920 | + | // [func@GLib.MainContext.get_thread_default], if the thread-default context | |
| 1921 | + | // is the global-default context, this will return that | |
| 1922 | + | // [struct@GLib.MainContext] (with a ref added to it) rather than returning | |
| 1923 | + | // `NULL`. | |
| 1924 | + | func MainContextRefThreadDefault() *MainContext { | |
| 1925 | + | cret := xMainContextRefThreadDefault() | |
| 1926 | + | if cret == 0 { | |
| 1927 | + | return nil | |
| 1928 | + | } | |
| 1929 | + | return (*MainContext)(unsafe.Pointer(cret)) | |
| 1930 | + | } | |
| 1931 | + | ||
| 1932 | + | var xMainCurrentSource func() uintptr | |
| 1933 | + | ||
| 1934 | + | // Returns the currently firing source for this thread. | |
| 1935 | + | func MainCurrentSource() *Source { | |
| 1936 | + | cret := xMainCurrentSource() | |
| 1937 | + | if cret == 0 { | |
| 1938 | + | return nil | |
| 1939 | + | } | |
| 1940 | + | return (*Source)(unsafe.Pointer(cret)) | |
| 1941 | + | } | |
| 1942 | + | ||
| 1943 | + | var xMainDepth func() int | |
| 1944 | + | ||
| 1945 | + | // Returns the depth of the stack of calls to | |
| 1946 | + | // [method@GLib.MainContext.dispatch] on any #GMainContext in the current thread. | |
| 1947 | + | // | |
| 1948 | + | // That is, when called from the top level, it gives `0`. When | |
| 1949 | + | // called from within a callback from [method@GLib.MainContext.iteration] | |
| 1950 | + | // (or [method@GLib.MainLoop.run], etc.) it returns `1`. When called from within | |
| 1951 | + | // a callback to a recursive call to [method@GLib.MainContext.iteration], | |
| 1952 | + | // it returns `2`. And so forth. | |
| 1953 | + | // | |
| 1954 | + | // This function is useful in a situation like the following: | |
| 1955 | + | // Imagine an extremely simple ‘garbage collected’ system. | |
| 1956 | + | // | |
| 1957 | + | // ```c | |
| 1958 | + | // static GList *free_list; | |
| 1959 | + | // | |
| 1960 | + | // gpointer | |
| 1961 | + | // allocate_memory (gsize size) | |
| 1962 | + | // | |
| 1963 | + | // { | |
| 1964 | + | // gpointer result = g_malloc (size); | |
| 1965 | + | // free_list = g_list_prepend (free_list, result); | |
| 1966 | + | // return result; | |
| 1967 | + | // } | |
| 1968 | + | // | |
| 1969 | + | // void | |
| 1970 | + | // free_allocated_memory (void) | |
| 1971 | + | // | |
| 1972 | + | // { | |
| 1973 | + | // GList *l; | |
| 1974 | + | // for (l = free_list; l; l = l->next); | |
| 1975 | + | // g_free (l->data); | |
| 1976 | + | // g_list_free (free_list); | |
| 1977 | + | // free_list = NULL; | |
| 1978 | + | // } | |
| 1979 | + | // | |
| 1980 | + | // [...] | |
| 1981 | + | // | |
| 1982 | + | // while (TRUE); | |
| 1983 | + | // | |
| 1984 | + | // { | |
| 1985 | + | // g_main_context_iteration (NULL, TRUE); | |
| 1986 | + | // free_allocated_memory(); | |
| 1987 | + | // } | |
| 1988 | + | // | |
| 1989 | + | // ``` | |
| 1990 | + | // | |
| 1991 | + | // This works from an application, however, if you want to do the same | |
| 1992 | + | // thing from a library, it gets more difficult, since you no longer | |
| 1993 | + | // control the main loop. You might think you can simply use an idle | |
| 1994 | + | // function to make the call to `free_allocated_memory()`, but that | |
| 1995 | + | // doesn’t work, since the idle function could be called from a | |
| 1996 | + | // recursive callback. This can be fixed by using [func@GLib.main_depth] | |
| 1997 | + | // | |
| 1998 | + | // ```c | |
| 1999 | + | // gpointer | |
| 2000 | + | // allocate_memory (gsize size) | |
| 2001 | + | // | |
| 2002 | + | // { | |
| 2003 | + | // FreeListBlock *block = g_new (FreeListBlock, 1); | |
| 2004 | + | // block->mem = g_malloc (size); | |
| 2005 | + | // block->depth = g_main_depth (); | |
| 2006 | + | // free_list = g_list_prepend (free_list, block); | |
| 2007 | + | // return block->mem; | |
| 2008 | + | // } | |
| 2009 | + | // | |
| 2010 | + | // void | |
| 2011 | + | // free_allocated_memory (void) | |
| 2012 | + | // | |
| 2013 | + | // { | |
| 2014 | + | // GList *l; | |
| 2015 | + | // | |
| 2016 | + | // int depth = g_main_depth (); | |
| 2017 | + | // for (l = free_list; l; ); | |
| 2018 | + | // { | |
| 2019 | + | // GList *next = l->next; | |
| 2020 | + | // FreeListBlock *block = l->data; | |
| 2021 | + | // if (block->depth > depth) | |
| 2022 | + | // { | |
| 2023 | + | // g_free (block->mem); | |
| 2024 | + | // g_free (block); | |
| 2025 | + | // free_list = g_list_delete_link (free_list, l); | |
| 2026 | + | // } | |
| 2027 | + | // | |
| 2028 | + | // l = next; | |
| 2029 | + | // } | |
| 2030 | + | // } | |
| 2031 | + | // | |
| 2032 | + | // ``` | |
| 2033 | + | // | |
| 2034 | + | // There is a temptation to use [func@GLib.main_depth] to solve | |
| 2035 | + | // problems with reentrancy. For instance, while waiting for data | |
| 2036 | + | // to be received from the network in response to a menu item, | |
| 2037 | + | // the menu item might be selected again. It might seem that | |
| 2038 | + | // one could make the menu item’s callback return immediately | |
| 2039 | + | // and do nothing if [func@GLib.main_depth] returns a value greater than 1. | |
| 2040 | + | // However, this should be avoided since the user then sees selecting | |
| 2041 | + | // the menu item do nothing. Furthermore, you’ll find yourself adding | |
| 2042 | + | // these checks all over your code, since there are doubtless many, | |
| 2043 | + | // many things that the user could do. Instead, you can use the | |
| 2044 | + | // following techniques: | |
| 2045 | + | // | |
| 2046 | + | // 1. Use `gtk_widget_set_sensitive()` or modal dialogs to prevent | |
| 2047 | + | // the user from interacting with elements while the main | |
| 2048 | + | // loop is recursing. | |
| 2049 | + | // | |
| 2050 | + | // 2. Avoid main loop recursion in situations where you can’t handle | |
| 2051 | + | // arbitrary callbacks. Instead, structure your code so that you | |
| 2052 | + | // simply return to the main loop and then get called again when | |
| 2053 | + | // there is more work to do. | |
| 2054 | + | func MainDepth() int { | |
| 2055 | + | cret := xMainDepth() | |
| 2056 | + | return cret | |
| 2057 | + | } | |
| 2058 | + | ||
| 2059 | + | var xSourceRemove func(uint) bool | |
| 2060 | + | ||
| 2061 | + | // Removes the source with the given ID from the default main context. | |
| 2062 | + | // | |
| 2063 | + | // You must | |
| 2064 | + | // use [method@GLib.Source.destroy] for sources added to a non-default main context. | |
| 2065 | + | // | |
| 2066 | + | // The ID of a [struct@GLib.Source] is given by [method@GLib.Source.get_id], or will be | |
| 2067 | + | // returned by the functions [method@GLib.Source.attach], [func@GLib.idle_add], | |
| 2068 | + | // [func@GLib.idle_add_full], [func@GLib.timeout_add], | |
| 2069 | + | // [func@GLib.timeout_add_full], [func@GLib.child_watch_add], | |
| 2070 | + | // [func@GLib.child_watch_add_full], [func@GLib.io_add_watch], and | |
| 2071 | + | // [func@GLib.io_add_watch_full]. | |
| 2072 | + | // | |
| 2073 | + | // It is a programmer error to attempt to remove a non-existent source. | |
| 2074 | + | // | |
| 2075 | + | // More specifically: source IDs can be reissued after a source has been | |
| 2076 | + | // destroyed and therefore it is never valid to use this function with a | |
| 2077 | + | // source ID which may have already been removed. An example is when | |
| 2078 | + | // scheduling an idle to run in another thread with [func@GLib.idle_add]: the | |
| 2079 | + | // idle may already have run and been removed by the time this function | |
| 2080 | + | // is called on its (now invalid) source ID. This source ID may have | |
| 2081 | + | // been reissued, leading to the operation being performed against the | |
| 2082 | + | // wrong source. | |
| 2083 | + | func SourceRemove(TagVar uint) bool { | |
| 2084 | + | cret := xSourceRemove(TagVar) | |
| 2085 | + | if cret { | |
| 2086 | + | removeTrackedSource(TagVar) | |
| 2087 | + | } | |
| 2088 | + | return cret | |
| 2089 | + | } | |
| 2090 | + | ||
| 2091 | + | var xSourceRemoveByFuncsUserData func(*SourceFuncs, uintptr) bool | |
| 2092 | + | ||
| 2093 | + | // Removes a source from the default main loop context given the | |
| 2094 | + | // source functions and user data. | |
| 2095 | + | // | |
| 2096 | + | // If multiple sources exist with the same source functions and user data, only | |
| 2097 | + | // one will be destroyed. | |
| 2098 | + | func SourceRemoveByFuncsUserData(FuncsVar *SourceFuncs, UserDataVar uintptr) bool { | |
| 2099 | + | cret := xSourceRemoveByFuncsUserData(FuncsVar, UserDataVar) | |
| 2100 | + | return cret | |
| 2101 | + | } | |
| 2102 | + | ||
| 2103 | + | var xSourceRemoveByUserData func(uintptr) bool | |
| 2104 | + | ||
| 2105 | + | // Removes a source from the default main loop context given the user | |
| 2106 | + | // data for the callback. | |
| 2107 | + | // | |
| 2108 | + | // If multiple sources exist with the same user data, only one will be destroyed. | |
| 2109 | + | func SourceRemoveByUserData(UserDataVar uintptr) bool { | |
| 2110 | + | trackedSourceID := trackedSourceIDByUserData(UserDataVar) | |
| 2111 | + | cret := xSourceRemoveByUserData(UserDataVar) | |
| 2112 | + | if cret { | |
| 2113 | + | removeTrackedSource(trackedSourceID) | |
| 2114 | + | } | |
| 2115 | + | return cret | |
| 2116 | + | } | |
| 2117 | + | ||
| 2118 | + | var xSourceSetNameById func(uint, string) | |
| 2119 | + | ||
| 2120 | + | // Sets the name of a source using its ID. | |
| 2121 | + | // | |
| 2122 | + | // This is a convenience utility to set source names from the return | |
| 2123 | + | // value of [func@GLib.idle_add], [func@GLib.timeout_add], etc. | |
| 2124 | + | // | |
| 2125 | + | // It is a programmer error to attempt to set the name of a non-existent | |
| 2126 | + | // source. | |
| 2127 | + | // | |
| 2128 | + | // More specifically: source IDs can be reissued after a source has been | |
| 2129 | + | // destroyed and therefore it is never valid to use this function with a | |
| 2130 | + | // source ID which may have already been removed. An example is when | |
| 2131 | + | // scheduling an idle to run in another thread with [func@GLib.idle_add]: the | |
| 2132 | + | // idle may already have run and been removed by the time this function | |
| 2133 | + | // is called on its (now invalid) source ID. This source ID may have | |
| 2134 | + | // been reissued, leading to the operation being performed against the | |
| 2135 | + | // wrong source. | |
| 2136 | + | func SourceSetNameById(TagVar uint, NameVar string) { | |
| 2137 | + | xSourceSetNameById(TagVar, NameVar) | |
| 2138 | + | } | |
| 2139 | + | ||
| 2140 | + | var xTimeoutAdd func(uint, uintptr, uintptr) uint | |
| 2141 | + | ||
| 2142 | + | // Sets a function to be called at regular intervals, with the default | |
| 2143 | + | // priority, [const@GLib.PRIORITY_DEFAULT]. | |
| 2144 | + | // | |
| 2145 | + | // The given @function is called repeatedly until it returns | |
| 2146 | + | // [const@GLib.SOURCE_REMOVE], at which point the timeout is | |
| 2147 | + | // automatically destroyed and the function will not be called again. The first | |
| 2148 | + | // call to the function will be at the end of the first @interval. | |
| 2149 | + | // | |
| 2150 | + | // Note that timeout functions may be delayed, due to the processing of other | |
| 2151 | + | // event sources. Thus they should not be relied on for precise timing. | |
| 2152 | + | // After each call to the timeout function, the time of the next | |
| 2153 | + | // timeout is recalculated based on the current time and the given interval | |
| 2154 | + | // (it does not try to ‘catch up’ time lost in delays). | |
| 2155 | + | // | |
| 2156 | + | // See [main loop memory management](main-loop.html#memory-management-of-sources) for details | |
| 2157 | + | // on how to handle the return value and memory management of @data. | |
| 2158 | + | // | |
| 2159 | + | // If you want to have a timer in the ‘seconds’ range and do not care | |
| 2160 | + | // about the exact time of the first call of the timer, use the | |
| 2161 | + | // [func@GLib.timeout_add_seconds] function; this function allows for more | |
| 2162 | + | // optimizations and more efficient system power usage. | |
| 2163 | + | // | |
| 2164 | + | // This internally creates a main loop source using | |
| 2165 | + | // [func@GLib.timeout_source_new] and attaches it to the global | |
| 2166 | + | // [struct@GLib.MainContext] using [method@GLib.Source.attach], so the callback | |
| 2167 | + | // will be invoked in whichever thread is running that main context. You can do | |
| 2168 | + | // these steps manually if you need greater control or to use a custom main | |
| 2169 | + | // context. | |
| 2170 | + | // | |
| 2171 | + | // It is safe to call this function from any thread. | |
| 2172 | + | // | |
| 2173 | + | // The interval given is in terms of monotonic time, not wall clock | |
| 2174 | + | // time. See [func@GLib.get_monotonic_time]. | |
| 2175 | + | func TimeoutAdd(IntervalVar uint, FunctionVar *SourceFunc, DataVar uintptr) uint { | |
| 2176 | + | var functionRef uintptr | |
| 2177 | + | if FunctionVar != nil { | |
| 2178 | + | functionRef = sourceFuncTrampolineCb | |
| 2179 | + | } | |
| 2180 | + | cret := xTimeoutAdd(IntervalVar, functionRef, DataVar) | |
| 2181 | + | trackSourceFunc(cret, FunctionVar, DataVar) | |
| 2182 | + | return cret | |
| 2183 | + | } | |
| 2184 | + | ||
| 2185 | + | var xTimeoutAddFull func(int, uint, uintptr, uintptr, uintptr) uint | |
| 2186 | + | ||
| 2187 | + | // Sets a function to be called at regular intervals, with the given | |
| 2188 | + | // priority. | |
| 2189 | + | // | |
| 2190 | + | // The function is called repeatedly until it returns | |
| 2191 | + | // [const@GLib.SOURCE_REMOVE], at which point the timeout is automatically | |
| 2192 | + | // destroyed and | |
| 2193 | + | // the function will not be called again. The @notify function is | |
| 2194 | + | // called when the timeout is destroyed. The first call to the | |
| 2195 | + | // function will be at the end of the first @interval. | |
| 2196 | + | // | |
| 2197 | + | // Note that timeout functions may be delayed, due to the processing of other | |
| 2198 | + | // event sources. Thus they should not be relied on for precise timing. | |
| 2199 | + | // After each call to the timeout function, the time of the next | |
| 2200 | + | // timeout is recalculated based on the current time and the given interval | |
| 2201 | + | // (it does not try to ‘catch up’ time lost in delays). | |
| 2202 | + | // | |
| 2203 | + | // See [main loop memory management](main-loop.html#memory-management-of-sources) for details | |
| 2204 | + | // on how to handle the return value and memory management of @data. | |
| 2205 | + | // | |
| 2206 | + | // This internally creates a main loop source using | |
| 2207 | + | // [func@GLib.timeout_source_new] and attaches it to the global | |
| 2208 | + | // [struct@GLib.MainContext] using [method@GLib.Source.attach], so the callback | |
| 2209 | + | // will be invoked in whichever thread is running that main context. You can do | |
| 2210 | + | // these steps manually if you need greater control or to use a custom main | |
| 2211 | + | // context. | |
| 2212 | + | // | |
| 2213 | + | // The interval given is in terms of monotonic time, not wall clock time. | |
| 2214 | + | // See [func@GLib.get_monotonic_time]. | |
| 2215 | + | func TimeoutAddFull(PriorityVar int, IntervalVar uint, FunctionVar *SourceFunc, DataVar uintptr, NotifyVar *DestroyNotify) uint { | |
| 2216 | + | var functionRef uintptr | |
| 2217 | + | if FunctionVar != nil { | |
| 2218 | + | functionRef = sourceFuncTrampolineCb | |
| 2219 | + | } | |
| 2220 | + | cret := xTimeoutAddFull(PriorityVar, IntervalVar, functionRef, DataVar, NewCallbackNullable(NotifyVar)) | |
| 2221 | + | trackSourceFunc(cret, FunctionVar, DataVar) | |
| 2222 | + | return cret | |
| 2223 | + | } | |
| 2224 | + | ||
| 2225 | + | var xTimeoutAddOnce func(uint, uintptr, uintptr) uint | |
| 2226 | + | ||
| 2227 | + | // Sets a function to be called after @interval milliseconds have elapsed, | |
| 2228 | + | // with the default priority, [const@GLib.PRIORITY_DEFAULT]. | |
| 2229 | + | // | |
| 2230 | + | // The given @function is called once and then the source will be automatically | |
| 2231 | + | // removed from the main context. | |
| 2232 | + | // | |
| 2233 | + | // This function otherwise behaves like [func@GLib.timeout_add]. | |
| 2234 | + | func TimeoutAddOnce(IntervalVar uint, FunctionVar *SourceOnceFunc, DataVar uintptr) uint { | |
| 2235 | + | var functionRef uintptr | |
| 2236 | + | if FunctionVar != nil { | |
| 2237 | + | functionRef = sourceOnceFuncTrampolineCb | |
| 2238 | + | } | |
| 2239 | + | cret := xTimeoutAddOnce(IntervalVar, functionRef, DataVar) | |
| 2240 | + | trackSourceOnceFunc(cret, FunctionVar, DataVar) | |
| 2241 | + | return cret | |
| 2242 | + | } | |
| 2243 | + | ||
| 2244 | + | var xTimeoutAddSeconds func(uint, uintptr, uintptr) uint | |
| 2245 | + | ||
| 2246 | + | // Sets a function to be called at regular intervals with the default | |
| 2247 | + | // priority, [const@GLib.PRIORITY_DEFAULT]. | |
| 2248 | + | // | |
| 2249 | + | // The function is called repeatedly until it returns [const@GLib.SOURCE_REMOVE], | |
| 2250 | + | // at which point the timeout is automatically destroyed | |
| 2251 | + | // and the function will not be called again. | |
| 2252 | + | // | |
| 2253 | + | // This internally creates a main loop source using | |
| 2254 | + | // [func@GLib.timeout_source_new_seconds] and attaches it to the main loop context | |
| 2255 | + | // using [method@GLib.Source.attach]. You can do these steps manually if you need | |
| 2256 | + | // greater control. Also see [func@GLib.timeout_add_seconds_full]. | |
| 2257 | + | // | |
| 2258 | + | // It is safe to call this function from any thread. | |
| 2259 | + | // | |
| 2260 | + | // Note that the first call of the timer may not be precise for timeouts | |
| 2261 | + | // of one second. If you need finer precision and have such a timeout, | |
| 2262 | + | // you may want to use [func@GLib.timeout_add] instead. | |
| 2263 | + | // | |
| 2264 | + | // See [main loop memory management](main-loop.html#memory-management-of-sources) for details | |
| 2265 | + | // on how to handle the return value and memory management of @data. | |
| 2266 | + | // | |
| 2267 | + | // The interval given is in terms of monotonic time, not wall clock | |
| 2268 | + | // time. See [func@GLib.get_monotonic_time]. | |
| 2269 | + | func TimeoutAddSeconds(IntervalVar uint, FunctionVar *SourceFunc, DataVar uintptr) uint { | |
| 2270 | + | var functionRef uintptr | |
| 2271 | + | if FunctionVar != nil { | |
| 2272 | + | functionRef = sourceFuncTrampolineCb | |
| 2273 | + | } | |
| 2274 | + | cret := xTimeoutAddSeconds(IntervalVar, functionRef, DataVar) | |
| 2275 | + | trackSourceFunc(cret, FunctionVar, DataVar) | |
| 2276 | + | return cret | |
| 2277 | + | } | |
| 2278 | + | ||
| 2279 | + | var xTimeoutAddSecondsFull func(int, uint, uintptr, uintptr, uintptr) uint | |
| 2280 | + | ||
| 2281 | + | // Sets a function to be called at regular intervals, with @priority. | |
| 2282 | + | // | |
| 2283 | + | // The function is called repeatedly until it returns [const@GLib.SOURCE_REMOVE], | |
| 2284 | + | // at which point the timeout is automatically destroyed and | |
| 2285 | + | // the function will not be called again. | |
| 2286 | + | // | |
| 2287 | + | // Unlike [func@GLib.timeout_add], this function operates at whole second | |
| 2288 | + | // granularity. The initial starting point of the timer is determined by the | |
| 2289 | + | // implementation and the implementation is expected to group multiple timers | |
| 2290 | + | // together so that they fire all at the same time. To allow this grouping, | |
| 2291 | + | // the @interval to the first timer is rounded and can deviate up to one second | |
| 2292 | + | // from the specified interval. Subsequent timer iterations will generally run | |
| 2293 | + | // at the specified interval. | |
| 2294 | + | // | |
| 2295 | + | // Note that timeout functions may be delayed, due to the processing of other | |
| 2296 | + | // event sources. Thus they should not be relied on for precise timing. | |
| 2297 | + | // After each call to the timeout function, the time of the next | |
| 2298 | + | // timeout is recalculated based on the current time and the given @interval | |
| 2299 | + | // | |
| 2300 | + | // See [main loop memory management](main-loop.html#memory-management-of-sources) for details | |
| 2301 | + | // on how to handle the return value and memory management of @data. | |
| 2302 | + | // | |
| 2303 | + | // If you want timing more precise than whole seconds, use | |
| 2304 | + | // [func@GLib.timeout_add] instead. | |
| 2305 | + | // | |
| 2306 | + | // The grouping of timers to fire at the same time results in a more power | |
| 2307 | + | // and CPU efficient behavior so if your timer is in multiples of seconds | |
| 2308 | + | // and you don’t require the first timer exactly one second from now, the | |
| 2309 | + | // use of [func@GLib.timeout_add_seconds] is preferred over | |
| 2310 | + | // [func@GLib.timeout_add]. | |
| 2311 | + | // | |
| 2312 | + | // This internally creates a main loop source using | |
| 2313 | + | // [func@GLib.timeout_source_new_seconds] and attaches it to the main loop | |
| 2314 | + | // context using [method@GLib.Source.attach]. You can do these steps manually | |
| 2315 | + | // if you need greater control. | |
| 2316 | + | // | |
| 2317 | + | // It is safe to call this function from any thread. | |
| 2318 | + | // | |
| 2319 | + | // The interval given is in terms of monotonic time, not wall clock | |
| 2320 | + | // time. See [func@GLib.get_monotonic_time]. | |
| 2321 | + | func TimeoutAddSecondsFull(PriorityVar int, IntervalVar uint, FunctionVar *SourceFunc, DataVar uintptr, NotifyVar *DestroyNotify) uint { | |
| 2322 | + | var functionRef uintptr | |
| 2323 | + | if FunctionVar != nil { | |
| 2324 | + | functionRef = sourceFuncTrampolineCb | |
| 2325 | + | } | |
| 2326 | + | cret := xTimeoutAddSecondsFull(PriorityVar, IntervalVar, functionRef, DataVar, NewCallbackNullable(NotifyVar)) | |
| 2327 | + | trackSourceFunc(cret, FunctionVar, DataVar) | |
| 2328 | + | return cret | |
| 2329 | + | } | |
| 2330 | + | ||
| 2331 | + | var xTimeoutAddSecondsOnce func(uint, uintptr, uintptr) uint | |
| 2332 | + | ||
| 2333 | + | // This function behaves like [func@GLib.timeout_add_once] but with a range in | |
| 2334 | + | // seconds. | |
| 2335 | + | func TimeoutAddSecondsOnce(IntervalVar uint, FunctionVar *SourceOnceFunc, DataVar uintptr) uint { | |
| 2336 | + | var functionRef uintptr | |
| 2337 | + | if FunctionVar != nil { | |
| 2338 | + | functionRef = sourceOnceFuncTrampolineCb | |
| 2339 | + | } | |
| 2340 | + | cret := xTimeoutAddSecondsOnce(IntervalVar, functionRef, DataVar) | |
| 2341 | + | trackSourceOnceFunc(cret, FunctionVar, DataVar) | |
| 2342 | + | return cret | |
| 2343 | + | } | |
| 2344 | + | ||
| 2345 | + | var xTimeoutSourceNew func(uint) uintptr | |
| 2346 | + | ||
| 2347 | + | // Creates a new timeout source. | |
| 2348 | + | // | |
| 2349 | + | // The source will not initially be associated with any [struct@GLib.MainContext] | |
| 2350 | + | // and must be added to one with [method@GLib.Source.attach] before it will be | |
| 2351 | + | // executed. | |
| 2352 | + | // | |
| 2353 | + | // The interval given is in terms of monotonic time, not wall clock | |
| 2354 | + | // time. See [func@GLib.get_monotonic_time]. | |
| 2355 | + | func TimeoutSourceNew(IntervalVar uint) *Source { | |
| 2356 | + | cret := xTimeoutSourceNew(IntervalVar) | |
| 2357 | + | if cret == 0 { | |
| 2358 | + | return nil | |
| 2359 | + | } | |
| 2360 | + | return (*Source)(unsafe.Pointer(cret)) | |
| 2361 | + | } | |
| 2362 | + | ||
| 2363 | + | var xTimeoutSourceNewSeconds func(uint) uintptr | |
| 2364 | + | ||
| 2365 | + | // Creates a new timeout source. | |
| 2366 | + | // | |
| 2367 | + | // The source will not initially be associated with any | |
| 2368 | + | // [struct@GLib.MainContext] and must be added to one with | |
| 2369 | + | // [method@GLib.Source.attach] before it will be executed. | |
| 2370 | + | // | |
| 2371 | + | // The scheduling granularity/accuracy of this timeout source will be | |
| 2372 | + | // in seconds. | |
| 2373 | + | // | |
| 2374 | + | // The interval given is in terms of monotonic time, not wall clock time. | |
| 2375 | + | // See [func@GLib.get_monotonic_time]. | |
| 2376 | + | func TimeoutSourceNewSeconds(IntervalVar uint) *Source { | |
| 2377 | + | cret := xTimeoutSourceNewSeconds(IntervalVar) | |
| 2378 | + | if cret == 0 { | |
| 2379 | + | return nil | |
| 2380 | + | } | |
| 2381 | + | return (*Source)(unsafe.Pointer(cret)) | |
| 2382 | + | } | |
| 2383 | + | ||
| 2384 | + | func init() { | |
| 2385 | + | core.SetPackageName("GLIB", "glib-2.0") | |
| 2386 | + | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | |
| 2387 | + | var libs []uintptr | |
| 2388 | + | for _, libPath := range core.GetPaths("GLIB") { | |
| 2389 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 2390 | + | if err != nil { | |
| 2391 | + | panic(err) | |
| 2392 | + | } | |
| 2393 | + | libs = append(libs, lib) | |
| 2394 | + | } | |
| 2395 | + | ||
| 2396 | + | core.PuregoSafeRegister(&xChildWatchAdd, libs, "g_child_watch_add") | |
| 2397 | + | core.PuregoSafeRegister(&xChildWatchAddFull, libs, "g_child_watch_add_full") | |
| 2398 | + | core.PuregoSafeRegister(&xChildWatchSourceNew, libs, "g_child_watch_source_new") | |
| 2399 | + | core.PuregoSafeRegister(&xClearHandleId, libs, "g_clear_handle_id") | |
| 2400 | + | core.PuregoSafeRegister(&xGetCurrentTime, libs, "g_get_current_time") | |
| 2401 | + | core.PuregoSafeRegister(&xGetMonotonicTime, libs, "g_get_monotonic_time") | |
| 2402 | + | core.PuregoSafeRegister(&xGetMonotonicTimeNs, libs, "g_get_monotonic_time_ns") | |
| 2403 | + | core.PuregoSafeRegister(&xGetRealTime, libs, "g_get_real_time") | |
| 2404 | + | core.PuregoSafeRegister(&xIdleAdd, libs, "g_idle_add") | |
| 2405 | + | core.PuregoSafeRegister(&xIdleAddFull, libs, "g_idle_add_full") | |
| 2406 | + | core.PuregoSafeRegister(&xIdleAddOnce, libs, "g_idle_add_once") | |
| 2407 | + | core.PuregoSafeRegister(&xIdleRemoveByData, libs, "g_idle_remove_by_data") | |
| 2408 | + | core.PuregoSafeRegister(&xIdleSourceNew, libs, "g_idle_source_new") | |
| 2409 | + | core.PuregoSafeRegister(&xMainContextDefault, libs, "g_main_context_default") | |
| 2410 | + | core.PuregoSafeRegister(&xMainContextGetThreadDefault, libs, "g_main_context_get_thread_default") | |
| 2411 | + | core.PuregoSafeRegister(&xMainContextRefThreadDefault, libs, "g_main_context_ref_thread_default") | |
| 2412 | + | core.PuregoSafeRegister(&xMainCurrentSource, libs, "g_main_current_source") | |
| 2413 | + | core.PuregoSafeRegister(&xMainDepth, libs, "g_main_depth") | |
| 2414 | + | core.PuregoSafeRegister(&xSourceRemove, libs, "g_source_remove") | |
| 2415 | + | core.PuregoSafeRegister(&xSourceRemoveByFuncsUserData, libs, "g_source_remove_by_funcs_user_data") | |
| 2416 | + | core.PuregoSafeRegister(&xSourceRemoveByUserData, libs, "g_source_remove_by_user_data") | |
| 2417 | + | core.PuregoSafeRegister(&xSourceSetNameById, libs, "g_source_set_name_by_id") | |
| 2418 | + | core.PuregoSafeRegister(&xTimeoutAdd, libs, "g_timeout_add") | |
| 2419 | + | core.PuregoSafeRegister(&xTimeoutAddFull, libs, "g_timeout_add_full") | |
| 2420 | + | core.PuregoSafeRegister(&xTimeoutAddOnce, libs, "g_timeout_add_once") | |
| 2421 | + | core.PuregoSafeRegister(&xTimeoutAddSeconds, libs, "g_timeout_add_seconds") | |
| 2422 | + | core.PuregoSafeRegister(&xTimeoutAddSecondsFull, libs, "g_timeout_add_seconds_full") | |
| 2423 | + | core.PuregoSafeRegister(&xTimeoutAddSecondsOnce, libs, "g_timeout_add_seconds_once") | |
| 2424 | + | core.PuregoSafeRegister(&xTimeoutSourceNew, libs, "g_timeout_source_new") | |
| 2425 | + | core.PuregoSafeRegister(&xTimeoutSourceNewSeconds, libs, "g_timeout_source_new_seconds") | |
| 2426 | + | ||
| 2427 | + | core.PuregoSafeRegister(&xMainContextGLibType, libs, "g_main_context_get_type") | |
| 2428 | + | ||
| 2429 | + | core.PuregoSafeRegister(&xNewMainContext, libs, "g_main_context_new") | |
| 2430 | + | core.PuregoSafeRegister(&xNewMainContextWithFlags, libs, "g_main_context_new_with_flags") | |
| 2431 | + | ||
| 2432 | + | core.PuregoSafeRegister(&xMainContextAcquire, libs, "g_main_context_acquire") | |
| 2433 | + | core.PuregoSafeRegister(&xMainContextAddPoll, libs, "g_main_context_add_poll") | |
| 2434 | + | core.PuregoSafeRegister(&xMainContextCheck, libs, "g_main_context_check") | |
| 2435 | + | core.PuregoSafeRegister(&xMainContextDispatch, libs, "g_main_context_dispatch") | |
| 2436 | + | core.PuregoSafeRegister(&xMainContextFindSourceByFuncsUserData, libs, "g_main_context_find_source_by_funcs_user_data") | |
| 2437 | + | core.PuregoSafeRegister(&xMainContextFindSourceById, libs, "g_main_context_find_source_by_id") | |
| 2438 | + | core.PuregoSafeRegister(&xMainContextFindSourceByUserData, libs, "g_main_context_find_source_by_user_data") | |
| 2439 | + | core.PuregoSafeRegister(&xMainContextGetPollFunc, libs, "g_main_context_get_poll_func") | |
| 2440 | + | core.PuregoSafeRegister(&xMainContextInvoke, libs, "g_main_context_invoke") | |
| 2441 | + | core.PuregoSafeRegister(&xMainContextInvokeFull, libs, "g_main_context_invoke_full") | |
| 2442 | + | core.PuregoSafeRegister(&xMainContextIsOwner, libs, "g_main_context_is_owner") | |
| 2443 | + | core.PuregoSafeRegister(&xMainContextIteration, libs, "g_main_context_iteration") | |
| 2444 | + | core.PuregoSafeRegister(&xMainContextPending, libs, "g_main_context_pending") | |
| 2445 | + | core.PuregoSafeRegister(&xMainContextPopThreadDefault, libs, "g_main_context_pop_thread_default") | |
| 2446 | + | core.PuregoSafeRegister(&xMainContextPrepare, libs, "g_main_context_prepare") | |
| 2447 | + | core.PuregoSafeRegister(&xMainContextPushThreadDefault, libs, "g_main_context_push_thread_default") | |
| 2448 | + | core.PuregoSafeRegister(&xMainContextPusherNew, libs, "g_main_context_pusher_new") | |
| 2449 | + | core.PuregoSafeRegister(&xMainContextQuery, libs, "g_main_context_query") | |
| 2450 | + | core.PuregoSafeRegister(&xMainContextRef, libs, "g_main_context_ref") | |
| 2451 | + | core.PuregoSafeRegister(&xMainContextRelease, libs, "g_main_context_release") | |
| 2452 | + | core.PuregoSafeRegister(&xMainContextRemovePoll, libs, "g_main_context_remove_poll") | |
| 2453 | + | core.PuregoSafeRegister(&xMainContextSetPollFunc, libs, "g_main_context_set_poll_func") | |
| 2454 | + | core.PuregoSafeRegister(&xMainContextUnref, libs, "g_main_context_unref") | |
| 2455 | + | core.PuregoSafeRegister(&xMainContextWait, libs, "g_main_context_wait") | |
| 2456 | + | core.PuregoSafeRegister(&xMainContextWakeup, libs, "g_main_context_wakeup") | |
| 2457 | + | ||
| 2458 | + | core.PuregoSafeRegister(&xMainLoopGLibType, libs, "g_main_loop_get_type") | |
| 2459 | + | ||
| 2460 | + | core.PuregoSafeRegister(&xNewMainLoop, libs, "g_main_loop_new") | |
| 2461 | + | ||
| 2462 | + | core.PuregoSafeRegister(&xMainLoopGetContext, libs, "g_main_loop_get_context") | |
| 2463 | + | core.PuregoSafeRegister(&xMainLoopIsRunning, libs, "g_main_loop_is_running") | |
| 2464 | + | core.PuregoSafeRegister(&xMainLoopQuit, libs, "g_main_loop_quit") | |
| 2465 | + | core.PuregoSafeRegister(&xMainLoopRef, libs, "g_main_loop_ref") | |
| 2466 | + | core.PuregoSafeRegister(&xMainLoopRun, libs, "g_main_loop_run") | |
| 2467 | + | core.PuregoSafeRegister(&xMainLoopUnref, libs, "g_main_loop_unref") | |
| 2468 | + | ||
| 2469 | + | core.PuregoSafeRegister(&xSourceGLibType, libs, "g_source_get_type") | |
| 2470 | + | ||
| 2471 | + | core.PuregoSafeRegister(&xNewSource, libs, "g_source_new") | |
| 2472 | + | ||
| 2473 | + | core.PuregoSafeRegister(&xSourceAddChildSource, libs, "g_source_add_child_source") | |
| 2474 | + | core.PuregoSafeRegister(&xSourceAddPoll, libs, "g_source_add_poll") | |
| 2475 | + | core.PuregoSafeRegister(&xSourceAddUnixFd, libs, "g_source_add_unix_fd") | |
| 2476 | + | core.PuregoSafeRegister(&xSourceAttach, libs, "g_source_attach") | |
| 2477 | + | core.PuregoSafeRegister(&xSourceDestroy, libs, "g_source_destroy") | |
| 2478 | + | core.PuregoSafeRegister(&xSourceDupContext, libs, "g_source_dup_context") | |
| 2479 | + | core.PuregoSafeRegister(&xSourceGetCanRecurse, libs, "g_source_get_can_recurse") | |
| 2480 | + | core.PuregoSafeRegister(&xSourceGetContext, libs, "g_source_get_context") | |
| 2481 | + | core.PuregoSafeRegister(&xSourceGetCurrentTime, libs, "g_source_get_current_time") | |
| 2482 | + | core.PuregoSafeRegister(&xSourceGetId, libs, "g_source_get_id") | |
| 2483 | + | core.PuregoSafeRegister(&xSourceGetName, libs, "g_source_get_name") | |
| 2484 | + | core.PuregoSafeRegister(&xSourceGetPriority, libs, "g_source_get_priority") | |
| 2485 | + | core.PuregoSafeRegister(&xSourceGetReadyTime, libs, "g_source_get_ready_time") | |
| 2486 | + | core.PuregoSafeRegister(&xSourceGetTime, libs, "g_source_get_time") | |
| 2487 | + | core.PuregoSafeRegister(&xSourceIsDestroyed, libs, "g_source_is_destroyed") | |
| 2488 | + | core.PuregoSafeRegister(&xSourceModifyUnixFd, libs, "g_source_modify_unix_fd") | |
| 2489 | + | core.PuregoSafeRegister(&xSourceQueryUnixFd, libs, "g_source_query_unix_fd") | |
| 2490 | + | core.PuregoSafeRegister(&xSourceRef, libs, "g_source_ref") | |
| 2491 | + | core.PuregoSafeRegister(&xSourceRemoveChildSource, libs, "g_source_remove_child_source") | |
| 2492 | + | core.PuregoSafeRegister(&xSourceRemovePoll, libs, "g_source_remove_poll") | |
| 2493 | + | core.PuregoSafeRegister(&xSourceRemoveUnixFd, libs, "g_source_remove_unix_fd") | |
| 2494 | + | core.PuregoSafeRegister(&xSourceSetCallback, libs, "g_source_set_callback") | |
| 2495 | + | core.PuregoSafeRegister(&xSourceSetCallbackIndirect, libs, "g_source_set_callback_indirect") | |
| 2496 | + | core.PuregoSafeRegister(&xSourceSetCanRecurse, libs, "g_source_set_can_recurse") | |
| 2497 | + | core.PuregoSafeRegister(&xSourceSetDisposeFunction, libs, "g_source_set_dispose_function") | |
| 2498 | + | core.PuregoSafeRegister(&xSourceSetFuncs, libs, "g_source_set_funcs") | |
| 2499 | + | core.PuregoSafeRegister(&xSourceSetName, libs, "g_source_set_name") | |
| 2500 | + | core.PuregoSafeRegister(&xSourceSetPriority, libs, "g_source_set_priority") | |
| 2501 | + | core.PuregoSafeRegister(&xSourceSetReadyTime, libs, "g_source_set_ready_time") | |
| 2502 | + | core.PuregoSafeRegister(&xSourceSetStaticName, libs, "g_source_set_static_name") | |
| 2503 | + | core.PuregoSafeRegister(&xSourceUnref, libs, "g_source_unref") | |
| 2504 | + | } | |
| @@ -0,0 +1,2504 @@ | |||||
| 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 | + | // Prototype of a #GChildWatchSource callback, called when a child | |||
| 14 | + | // process has exited. | |||
| 15 | + | // | |||
| 16 | + | // To interpret @wait_status, see the documentation for | |||
| 17 | + | // [func@GLib.spawn_check_wait_status]. In particular, | |||
| 18 | + | // on Unix platforms, note that it is usually not equal | |||
| 19 | + | // to the integer passed to `exit()` or returned from `main()`. | |||
| 20 | + | type ChildWatchFunc func(Pid, int, uintptr) | |||
| 21 | + | ||||
| 22 | + | // Specifies the type of function passed to [func@GLib.clear_handle_id] The | |||
| 23 | + | // implementation is expected to free the resource identified by @handle_id; | |||
| 24 | + | // for instance, if @handle_id is a [struct@GLib.Source] ID, | |||
| 25 | + | // [func@GLib.Source.remove] can be used. | |||
| 26 | + | type ClearHandleFunc func(uint) | |||
| 27 | + | ||||
| 28 | + | // Dispose function for @source. See [method@GLib.Source.set_dispose_function] | |||
| 29 | + | // for details. | |||
| 30 | + | type SourceDisposeFunc func(*Source) | |||
| 31 | + | ||||
| 32 | + | // This is just a placeholder for #GClosureMarshal, | |||
| 33 | + | // which cannot be used here for dependency reasons. | |||
| 34 | + | type SourceDummyMarshal func() | |||
| 35 | + | ||||
| 36 | + | // Specifies the type of function passed to [func@GLib.timeout_add], | |||
| 37 | + | // [func@GLib.timeout_add_full], [func@GLib.idle_add], and | |||
| 38 | + | // [func@GLib.idle_add_full]. | |||
| 39 | + | // | |||
| 40 | + | // When calling [method@GLib.Source.set_callback], you may need to cast a | |||
| 41 | + | // function of a different type to this type. Use [func@GLib.SOURCE_FUNC] to | |||
| 42 | + | // avoid warnings about incompatible function types. | |||
| 43 | + | type SourceFunc func(uintptr) bool | |||
| 44 | + | ||||
| 45 | + | // Checks if the source is ready to be dispatched. | |||
| 46 | + | // | |||
| 47 | + | // Called after all the file descriptors are polled. The source | |||
| 48 | + | // should return %TRUE if it is ready to be dispatched. Note that some | |||
| 49 | + | // time may have passed since the previous prepare function was called, | |||
| 50 | + | // so the source should be checked again here. | |||
| 51 | + | // | |||
| 52 | + | // Since 2.36 this may be `NULL`, in which case the effect is | |||
| 53 | + | // as if the function always returns `FALSE`. | |||
| 54 | + | type SourceFuncsCheckFunc func(*Source) bool | |||
| 55 | + | ||||
| 56 | + | // Dispatches the source callback. | |||
| 57 | + | // | |||
| 58 | + | // Called to dispatch the event source, after it has returned | |||
| 59 | + | // `TRUE` in either its prepare or its check function, or if a ready time | |||
| 60 | + | // has been reached. The dispatch function receives a callback function and | |||
| 61 | + | // user data. The callback function may be `NULL` if the source was never | |||
| 62 | + | // connected to a callback using [method@GLib.Source.set_callback]. The dispatch | |||
| 63 | + | // function should call the callback function with @user_data and whatever | |||
| 64 | + | // additional parameters are needed for this type of event source. The | |||
| 65 | + | // return value of the dispatch function should be [const@GLib.SOURCE_REMOVE] | |||
| 66 | + | // if the source should be removed or [const@GLib.SOURCE_CONTINUE] to keep it. | |||
| 67 | + | type SourceFuncsDispatchFunc func(*Source, uintptr, uintptr) bool | |||
| 68 | + | ||||
| 69 | + | // Finalizes the source. | |||
| 70 | + | // | |||
| 71 | + | // Called when the source is finalized. At this point, the source | |||
| 72 | + | // will have been destroyed, had its callback cleared, and have been removed | |||
| 73 | + | // from its [type@GLib.MainContext], but it will still have its final reference | |||
| 74 | + | // count, so methods can be called on it from within this function. | |||
| 75 | + | type SourceFuncsFinalizeFunc func(*Source) | |||
| 76 | + | ||||
| 77 | + | // Checks the source for readiness. | |||
| 78 | + | // | |||
| 79 | + | // Called before all the file descriptors are polled. If the | |||
| 80 | + | // source can determine that it is ready here (without waiting for the | |||
| 81 | + | // results of the poll call) it should return %TRUE. It can also return | |||
| 82 | + | // a @timeout_ value which should be the maximum timeout (in milliseconds) | |||
| 83 | + | // which should be passed to the poll call. The actual timeout used will | |||
| 84 | + | // be `-1` if all sources returned `-1`, or it will be the minimum of all | |||
| 85 | + | // the @timeout_ values returned which were greater than or equal to `0`. | |||
| 86 | + | // If the prepare function returns a timeout and the source also has a | |||
| 87 | + | // ready time set, then the lower of the two will be used. | |||
| 88 | + | // | |||
| 89 | + | // Since 2.36 this may be `NULL`, in which case the effect is as if the | |||
| 90 | + | // function always returns `FALSE` with a timeout of `-1`. | |||
| 91 | + | type SourceFuncsPrepareFunc func(*Source, *int) bool | |||
| 92 | + | ||||
| 93 | + | // A source function that is only called once before being removed from the main | |||
| 94 | + | // context automatically. | |||
| 95 | + | // | |||
| 96 | + | // See: [func@GLib.idle_add_once], [func@GLib.timeout_add_once] | |||
| 97 | + | type SourceOnceFunc func(uintptr) | |||
| 98 | + | ||||
| 99 | + | // The `GMainContext` struct is an opaque data | |||
| 100 | + | // type representing a set of sources to be handled in a main loop. | |||
| 101 | + | type MainContext struct { | |||
| 102 | + | _ structs.HostLayout | |||
| 103 | + | } | |||
| 104 | + | ||||
| 105 | + | var xMainContextGLibType func() types.GType | |||
| 106 | + | ||||
| 107 | + | func MainContextGLibType() types.GType { | |||
| 108 | + | return xMainContextGLibType() | |||
| 109 | + | } | |||
| 110 | + | ||||
| 111 | + | func (x *MainContext) GoPointer() uintptr { | |||
| 112 | + | return uintptr(unsafe.Pointer(x)) | |||
| 113 | + | } | |||
| 114 | + | ||||
| 115 | + | func MainContextNewFromInternalPtr(ptr uintptr) *MainContext { | |||
| 116 | + | if ptr == 0 { | |||
| 117 | + | return nil | |||
| 118 | + | } | |||
| 119 | + | rawPtr := *(*unsafe.Pointer)(unsafe.Pointer(&ptr)) | |||
| 120 | + | return (*MainContext)(rawPtr) | |||
| 121 | + | } | |||
| 122 | + | ||||
| 123 | + | var xNewMainContext func() uintptr | |||
| 124 | + | ||||
| 125 | + | // Creates a new [struct@GLib.MainContext] structure. | |||
| 126 | + | func NewMainContext() *MainContext { | |||
| 127 | + | cret := xNewMainContext() | |||
| 128 | + | if cret == 0 { | |||
| 129 | + | return nil | |||
| 130 | + | } | |||
| 131 | + | return (*MainContext)(unsafe.Pointer(cret)) | |||
| 132 | + | } | |||
| 133 | + | ||||
| 134 | + | var xNewMainContextWithFlags func(MainContextFlags) uintptr | |||
| 135 | + | ||||
| 136 | + | // Creates a new [struct@GLib.MainContext] structure. | |||
| 137 | + | func NewMainContextWithFlags(FlagsVar MainContextFlags) *MainContext { | |||
| 138 | + | cret := xNewMainContextWithFlags(FlagsVar) | |||
| 139 | + | if cret == 0 { | |||
| 140 | + | return nil | |||
| 141 | + | } | |||
| 142 | + | return (*MainContext)(unsafe.Pointer(cret)) | |||
| 143 | + | } | |||
| 144 | + | ||||
| 145 | + | var xMainContextAcquire func(uintptr) bool | |||
| 146 | + | ||||
| 147 | + | // Tries to become the owner of the specified context. | |||
| 148 | + | // | |||
| 149 | + | // If some other thread is the owner of the context, | |||
| 150 | + | // returns false immediately. Ownership is properly | |||
| 151 | + | // recursive: the owner can require ownership again | |||
| 152 | + | // and will release ownership when [method@GLib.MainContext.release] | |||
| 153 | + | // is called as many times as [method@GLib.MainContext.acquire]. | |||
| 154 | + | // | |||
| 155 | + | // You must be the owner of a context before you | |||
| 156 | + | // can call [method@GLib.MainContext.prepare], [method@GLib.MainContext.query], | |||
| 157 | + | // [method@GLib.MainContext.check], [method@GLib.MainContext.dispatch], | |||
| 158 | + | // [method@GLib.MainContext.release]. | |||
| 159 | + | // | |||
| 160 | + | // Since 2.76 @context can be `NULL` to use the global-default | |||
| 161 | + | // main context. | |||
| 162 | + | func (x *MainContext) Acquire() bool { | |||
| 163 | + | cret := xMainContextAcquire(x.GoPointer()) | |||
| 164 | + | return cret | |||
| 165 | + | } | |||
| 166 | + | ||||
| 167 | + | var xMainContextAddPoll func(uintptr, *PollFD, int) | |||
| 168 | + | ||||
| 169 | + | // Adds a file descriptor to the set of file descriptors polled for | |||
| 170 | + | // this context. | |||
| 171 | + | // | |||
| 172 | + | // This will very seldom be used directly. Instead | |||
| 173 | + | // a typical event source will use `g_source_add_unix_fd()` instead. | |||
| 174 | + | func (x *MainContext) AddPoll(FdVar *PollFD, PriorityVar int) { | |||
| 175 | + | xMainContextAddPoll(x.GoPointer(), FdVar, PriorityVar) | |||
| 176 | + | } | |||
| 177 | + | ||||
| 178 | + | var xMainContextCheck func(uintptr, int, []PollFD, int) bool | |||
| 179 | + | ||||
| 180 | + | // Passes the results of polling back to the main loop. | |||
| 181 | + | // | |||
| 182 | + | // You should be | |||
| 183 | + | // careful to pass @fds and its length @n_fds as received from | |||
| 184 | + | // [method@GLib.MainContext.query], as this functions relies on assumptions | |||
| 185 | + | // on how @fds is filled. | |||
| 186 | + | // | |||
| 187 | + | // You must have successfully acquired the context with | |||
| 188 | + | // [method@GLib.MainContext.acquire] before you may call this function. | |||
| 189 | + | // | |||
| 190 | + | // Since 2.76 @context can be `NULL` to use the global-default | |||
| 191 | + | // main context. | |||
| 192 | + | func (x *MainContext) Check(MaxPriorityVar int, FdsVar []PollFD, NFdsVar int) bool { | |||
| 193 | + | cret := xMainContextCheck(x.GoPointer(), MaxPriorityVar, FdsVar, NFdsVar) | |||
| 194 | + | return cret | |||
| 195 | + | } | |||
| 196 | + | ||||
| 197 | + | var xMainContextDispatch func(uintptr) | |||
| 198 | + | ||||
| 199 | + | // Dispatches all pending sources. | |||
| 200 | + | // | |||
| 201 | + | // You must have successfully acquired the context with | |||
| 202 | + | // [method@GLib.MainContext.acquire] before you may call this function. | |||
| 203 | + | // | |||
| 204 | + | // Since 2.76 @context can be `NULL` to use the global-default | |||
| 205 | + | // main context. | |||
| 206 | + | func (x *MainContext) Dispatch() { | |||
| 207 | + | xMainContextDispatch(x.GoPointer()) | |||
| 208 | + | } | |||
| 209 | + | ||||
| 210 | + | var xMainContextFindSourceByFuncsUserData func(uintptr, *SourceFuncs, uintptr) uintptr | |||
| 211 | + | ||||
| 212 | + | // Finds a source with the given source functions and user data. | |||
| 213 | + | // | |||
| 214 | + | // If multiple sources exist with the same source function and user data, | |||
| 215 | + | // the first one found will be returned. | |||
| 216 | + | func (x *MainContext) FindSourceByFuncsUserData(FuncsVar *SourceFuncs, UserDataVar uintptr) *Source { | |||
| 217 | + | cret := xMainContextFindSourceByFuncsUserData(x.GoPointer(), FuncsVar, UserDataVar) | |||
| 218 | + | if cret == 0 { | |||
| 219 | + | return nil | |||
| 220 | + | } | |||
| 221 | + | return (*Source)(unsafe.Pointer(cret)) | |||
| 222 | + | } | |||
| 223 | + | ||||
| 224 | + | var xMainContextFindSourceById func(uintptr, uint) uintptr | |||
| 225 | + | ||||
| 226 | + | // Finds a [struct@GLib.Source] given a pair of context and ID. | |||
| 227 | + | // | |||
| 228 | + | // It is a programmer error to attempt to look up a non-existent source. | |||
| 229 | + | // | |||
| 230 | + | // More specifically: source IDs can be reissued after a source has been | |||
| 231 | + | // destroyed and therefore it is never valid to use this function with a | |||
| 232 | + | // source ID which may have already been removed. An example is when | |||
| 233 | + | // scheduling an idle to run in another thread with [func@GLib.idle_add]: the | |||
| 234 | + | // idle may already have run and been removed by the time this function | |||
| 235 | + | // is called on its (now invalid) source ID. This source ID may have | |||
| 236 | + | // been reissued, leading to the operation being performed against the | |||
| 237 | + | // wrong source. | |||
| 238 | + | func (x *MainContext) FindSourceById(SourceIdVar uint) *Source { | |||
| 239 | + | cret := xMainContextFindSourceById(x.GoPointer(), SourceIdVar) | |||
| 240 | + | if cret == 0 { | |||
| 241 | + | return nil | |||
| 242 | + | } | |||
| 243 | + | return (*Source)(unsafe.Pointer(cret)) | |||
| 244 | + | } | |||
| 245 | + | ||||
| 246 | + | var xMainContextFindSourceByUserData func(uintptr, uintptr) uintptr | |||
| 247 | + | ||||
| 248 | + | // Finds a source with the given user data for the callback. | |||
| 249 | + | // | |||
| 250 | + | // If multiple sources exist with the same user data, the first | |||
| 251 | + | // one found will be returned. | |||
| 252 | + | func (x *MainContext) FindSourceByUserData(UserDataVar uintptr) *Source { | |||
| 253 | + | cret := xMainContextFindSourceByUserData(x.GoPointer(), UserDataVar) | |||
| 254 | + | if cret == 0 { | |||
| 255 | + | return nil | |||
| 256 | + | } | |||
| 257 | + | return (*Source)(unsafe.Pointer(cret)) | |||
| 258 | + | } | |||
| 259 | + | ||||
| 260 | + | var xMainContextGetPollFunc func(uintptr) uintptr | |||
| 261 | + | ||||
| 262 | + | // Gets the poll function set by [method@GLib.MainContext.set_poll_func]. | |||
| 263 | + | func (x *MainContext) GetPollFunc() uintptr { | |||
| 264 | + | cret := xMainContextGetPollFunc(x.GoPointer()) | |||
| 265 | + | return cret | |||
| 266 | + | } | |||
| 267 | + | ||||
| 268 | + | var xMainContextInvoke func(uintptr, uintptr, uintptr) | |||
| 269 | + | ||||
| 270 | + | // Invokes a function in such a way that @context is owned during the | |||
| 271 | + | // invocation of @function. | |||
| 272 | + | // | |||
| 273 | + | // If @context is `NULL` then the global-default main context — as | |||
| 274 | + | // returned by [func@GLib.MainContext.default] — is used. | |||
| 275 | + | // | |||
| 276 | + | // If @context is owned by the current thread, @function is called | |||
| 277 | + | // directly. Otherwise, if @context is the thread-default main context | |||
| 278 | + | // of the current thread and [method@GLib.MainContext.acquire] succeeds, | |||
| 279 | + | // then @function is called and [method@GLib.MainContext.release] is called | |||
| 280 | + | // afterwards. | |||
| 281 | + | // | |||
| 282 | + | // In any other case, an idle source is created to call @function and | |||
| 283 | + | // that source is attached to @context (presumably to be run in another | |||
| 284 | + | // thread). The idle source is attached with [const@GLib.PRIORITY_DEFAULT] | |||
| 285 | + | // priority. If you want a different priority, use | |||
| 286 | + | // [method@GLib.MainContext.invoke_full]. | |||
| 287 | + | // | |||
| 288 | + | // Note that, as with normal idle functions, @function should probably return | |||
| 289 | + | // [const@GLib.SOURCE_REMOVE]. If it returns [const@GLib.SOURCE_CONTINUE], it | |||
| 290 | + | // will be continuously run in a loop (and may prevent this call from returning). | |||
| 291 | + | func (x *MainContext) Invoke(FunctionVar *SourceFunc, DataVar uintptr) { | |||
| 292 | + | xMainContextInvoke(x.GoPointer(), NewCallback(FunctionVar), DataVar) | |||
| 293 | + | } | |||
| 294 | + | ||||
| 295 | + | var xMainContextInvokeFull func(uintptr, int, uintptr, uintptr, uintptr) | |||
| 296 | + | ||||
| 297 | + | // Invokes a function in such a way that @context is owned during the | |||
| 298 | + | // invocation of @function. | |||
| 299 | + | // | |||
| 300 | + | // This function is the same as [method@GLib.MainContext.invoke] except that it | |||
| 301 | + | // lets you specify the priority in case @function ends up being | |||
| 302 | + | // scheduled as an idle and also lets you give a [callback@GLib.DestroyNotify] | |||
| 303 | + | // for @data. | |||
| 304 | + | // | |||
| 305 | + | // The @notify function should not assume that it is called from any particular | |||
| 306 | + | // thread or with any particular context acquired. | |||
| 307 | + | func (x *MainContext) InvokeFull(PriorityVar int, FunctionVar *SourceFunc, DataVar uintptr, NotifyVar *DestroyNotify) { | |||
| 308 | + | xMainContextInvokeFull(x.GoPointer(), PriorityVar, NewCallback(FunctionVar), DataVar, NewCallbackNullable(NotifyVar)) | |||
| 309 | + | } | |||
| 310 | + | ||||
| 311 | + | var xMainContextIsOwner func(uintptr) bool | |||
| 312 | + | ||||
| 313 | + | // Determines whether this thread holds the (recursive) | |||
| 314 | + | // ownership of this [struct@GLib.MainContext]. | |||
| 315 | + | // | |||
| 316 | + | // This is useful to | |||
| 317 | + | // know before waiting on another thread that may be | |||
| 318 | + | // blocking to get ownership of @context. | |||
| 319 | + | func (x *MainContext) IsOwner() bool { | |||
| 320 | + | cret := xMainContextIsOwner(x.GoPointer()) | |||
| 321 | + | return cret | |||
| 322 | + | } | |||
| 323 | + | ||||
| 324 | + | var xMainContextIteration func(uintptr, bool) bool | |||
| 325 | + | ||||
| 326 | + | // Runs a single iteration for the given main loop. | |||
| 327 | + | // | |||
| 328 | + | // This involves | |||
| 329 | + | // checking to see if any event sources are ready to be processed, | |||
| 330 | + | // then if no events sources are ready and @may_block is true, waiting | |||
| 331 | + | // for a source to become ready, then dispatching the highest priority | |||
| 332 | + | // events sources that are ready. Otherwise, if @may_block is false, | |||
| 333 | + | // this function does not wait for sources to become ready, and only the highest | |||
| 334 | + | // priority sources which are already ready (if any) will be dispatched. | |||
| 335 | + | // | |||
| 336 | + | // Note that even when @may_block is true, it is still possible for | |||
| 337 | + | // [method@GLib.MainContext.iteration] to return false, since the wait may | |||
| 338 | + | // be interrupted for other reasons than an event source becoming ready. | |||
| 339 | + | func (x *MainContext) Iteration(MayBlockVar bool) bool { | |||
| 340 | + | cret := xMainContextIteration(x.GoPointer(), MayBlockVar) | |||
| 341 | + | return cret | |||
| 342 | + | } | |||
| 343 | + | ||||
| 344 | + | var xMainContextPending func(uintptr) bool | |||
| 345 | + | ||||
| 346 | + | // Checks if any sources have pending events for the given context. | |||
| 347 | + | func (x *MainContext) Pending() bool { | |||
| 348 | + | cret := xMainContextPending(x.GoPointer()) | |||
| 349 | + | return cret | |||
| 350 | + | } | |||
| 351 | + | ||||
| 352 | + | var xMainContextPopThreadDefault func(uintptr) | |||
| 353 | + | ||||
| 354 | + | // Pops @context off the thread-default context stack (verifying that | |||
| 355 | + | // it was on the top of the stack). | |||
| 356 | + | func (x *MainContext) PopThreadDefault() { | |||
| 357 | + | xMainContextPopThreadDefault(x.GoPointer()) | |||
| 358 | + | } | |||
| 359 | + | ||||
| 360 | + | var xMainContextPrepare func(uintptr, *int) bool | |||
| 361 | + | ||||
| 362 | + | // Prepares to poll sources within a main loop. | |||
| 363 | + | // | |||
| 364 | + | // The resulting information | |||
| 365 | + | // for polling is determined by calling [method@GLib.MainContext.query]. | |||
| 366 | + | // | |||
| 367 | + | // You must have successfully acquired the context with | |||
| 368 | + | // [method@GLib.MainContext.acquire] before you may call this function. | |||
| 369 | + | func (x *MainContext) Prepare(PriorityVar *int) bool { | |||
| 370 | + | cret := xMainContextPrepare(x.GoPointer(), PriorityVar) | |||
| 371 | + | return cret | |||
| 372 | + | } | |||
| 373 | + | ||||
| 374 | + | var xMainContextPushThreadDefault func(uintptr) | |||
| 375 | + | ||||
| 376 | + | // Acquires @context and sets it as the thread-default context for the | |||
| 377 | + | // current thread. This will cause certain asynchronous operations | |||
| 378 | + | // (such as most [Gio](../gio/index.html)-based I/O) which are | |||
| 379 | + | // started in this thread to run under @context and deliver their | |||
| 380 | + | // results to its main loop, rather than running under the global | |||
| 381 | + | // default main context in the main thread. Note that calling this function | |||
| 382 | + | // changes the context returned by [func@GLib.MainContext.get_thread_default], | |||
| 383 | + | // not the one returned by [func@GLib.MainContext.default], so it does not | |||
| 384 | + | // affect the context used by functions like [func@GLib.idle_add]. | |||
| 385 | + | // | |||
| 386 | + | // Normally you would call this function shortly after creating a new | |||
| 387 | + | // thread, passing it a [struct@GLib.MainContext] which will be run by a | |||
| 388 | + | // [struct@GLib.MainLoop] in that thread, to set a new default context for all | |||
| 389 | + | // async operations in that thread. In this case you may not need to | |||
| 390 | + | // ever call [method@GLib.MainContext.pop_thread_default], assuming you want | |||
| 391 | + | // the new [struct@GLib.MainContext] to be the default for the whole lifecycle | |||
| 392 | + | // of the thread. | |||
| 393 | + | // | |||
| 394 | + | // If you don’t have control over how the new thread was created (e.g. | |||
| 395 | + | // in the new thread isn’t newly created, or if the thread life | |||
| 396 | + | // cycle is managed by a #GThreadPool), it is always suggested to wrap | |||
| 397 | + | // the logic that needs to use the new [struct@GLib.MainContext] inside a | |||
| 398 | + | // [method@GLib.MainContext.push_thread_default] / | |||
| 399 | + | // [method@GLib.MainContext.pop_thread_default] pair, otherwise threads that | |||
| 400 | + | // are re-used will end up never explicitly releasing the | |||
| 401 | + | // [struct@GLib.MainContext] reference they hold. | |||
| 402 | + | // | |||
| 403 | + | // In some cases you may want to schedule a single operation in a | |||
| 404 | + | // non-default context, or temporarily use a non-default context in | |||
| 405 | + | // the main thread. In that case, you can wrap the call to the | |||
| 406 | + | // asynchronous operation inside a | |||
| 407 | + | // [method@GLib.MainContext.push_thread_default] / | |||
| 408 | + | // [method@GLib.MainContext.pop_thread_default] pair, but it is up to you to | |||
| 409 | + | // ensure that no other asynchronous operations accidentally get | |||
| 410 | + | // started while the non-default context is active. | |||
| 411 | + | // | |||
| 412 | + | // Beware that libraries that predate this function may not correctly | |||
| 413 | + | // handle being used from a thread with a thread-default context. For example, | |||
| 414 | + | // see `g_file_supports_thread_contexts()`. | |||
| 415 | + | func (x *MainContext) PushThreadDefault() { | |||
| 416 | + | xMainContextPushThreadDefault(x.GoPointer()) | |||
| 417 | + | } | |||
| 418 | + | ||||
| 419 | + | var xMainContextPusherNew func(uintptr) *MainContextPusher | |||
| 420 | + | ||||
| 421 | + | // Push @main_context as the new thread-default main context for the current | |||
| 422 | + | // thread, using [method@GLib.MainContext.push_thread_default], and return a | |||
| 423 | + | // new [alias@GLib.MainContextPusher]. Pop with g_main_context_pusher_free(). | |||
| 424 | + | // Using [method@GLib.MainContext.pop_thread_default] on @main_context while a | |||
| 425 | + | // [alias@GLib.MainContextPusher] exists for it can lead to undefined behaviour. | |||
| 426 | + | // | |||
| 427 | + | // Using two [alias@GLib.MainContextPusher]s in the same scope is not allowed, | |||
| 428 | + | // as it leads to an undefined pop order. | |||
| 429 | + | // | |||
| 430 | + | // This is intended to be used with g_autoptr(). Note that g_autoptr() | |||
| 431 | + | // is only available when using GCC or clang, so the following example | |||
| 432 | + | // will only work with those compilers: | |||
| 433 | + | // |[ | |||
| 434 | + | // typedef struct | |||
| 435 | + | // | |||
| 436 | + | // { | |||
| 437 | + | // ... | |||
| 438 | + | // GMainContext *context; | |||
| 439 | + | // ... | |||
| 440 | + | // } MyObject; | |||
| 441 | + | // | |||
| 442 | + | // static void | |||
| 443 | + | // my_object_do_stuff (MyObject *self) | |||
| 444 | + | // | |||
| 445 | + | // { | |||
| 446 | + | // g_autoptr(GMainContextPusher) pusher = g_main_context_pusher_new (self->context); | |||
| 447 | + | // | |||
| 448 | + | // // Code with main context as the thread default here | |||
| 449 | + | // | |||
| 450 | + | // if (cond) | |||
| 451 | + | // // No need to pop | |||
| 452 | + | // return; | |||
| 453 | + | // | |||
| 454 | + | // // Optionally early pop | |||
| 455 | + | // g_clear_pointer (&pusher, g_main_context_pusher_free); | |||
| 456 | + | // | |||
| 457 | + | // // Code with main context no longer the thread default here | |||
| 458 | + | // } | |||
| 459 | + | // | |||
| 460 | + | // ]| | |||
| 461 | + | func (x *MainContext) PusherNew() *MainContextPusher { | |||
| 462 | + | cret := xMainContextPusherNew(x.GoPointer()) | |||
| 463 | + | return cret | |||
| 464 | + | } | |||
| 465 | + | ||||
| 466 | + | var xMainContextQuery func(uintptr, int, *int, *[]PollFD, int) int | |||
| 467 | + | ||||
| 468 | + | // Determines information necessary to poll this main loop. | |||
| 469 | + | // | |||
| 470 | + | // You should | |||
| 471 | + | // be careful to pass the resulting @fds array and its length @n_fds | |||
| 472 | + | // as-is when calling [method@GLib.MainContext.check], as this function relies | |||
| 473 | + | // on assumptions made when the array is filled. | |||
| 474 | + | // | |||
| 475 | + | // You must have successfully acquired the context with | |||
| 476 | + | // [method@GLib.MainContext.acquire] before you may call this function. | |||
| 477 | + | func (x *MainContext) Query(MaxPriorityVar int, TimeoutVar *int, FdsVar *[]PollFD, NFdsVar int) int { | |||
| 478 | + | cret := xMainContextQuery(x.GoPointer(), MaxPriorityVar, TimeoutVar, FdsVar, NFdsVar) | |||
| 479 | + | return cret | |||
| 480 | + | } | |||
| 481 | + | ||||
| 482 | + | var xMainContextRef func(uintptr) uintptr | |||
| 483 | + | ||||
| 484 | + | // Increases the reference count on a [struct@GLib.MainContext] object by one. | |||
| 485 | + | func (x *MainContext) Ref() *MainContext { | |||
| 486 | + | cret := xMainContextRef(x.GoPointer()) | |||
| 487 | + | if cret == 0 { | |||
| 488 | + | return nil | |||
| 489 | + | } | |||
| 490 | + | return (*MainContext)(unsafe.Pointer(cret)) | |||
| 491 | + | } | |||
| 492 | + | ||||
| 493 | + | var xMainContextRelease func(uintptr) | |||
| 494 | + | ||||
| 495 | + | // Releases ownership of a context previously acquired by this thread | |||
| 496 | + | // with [method@GLib.MainContext.acquire]. | |||
| 497 | + | // | |||
| 498 | + | // If the context was acquired multiple | |||
| 499 | + | // times, the ownership will be released only when [method@GLib.MainContext.release] | |||
| 500 | + | // is called as many times as it was acquired. | |||
| 501 | + | // | |||
| 502 | + | // You must have successfully acquired the context with | |||
| 503 | + | // [method@GLib.MainContext.acquire] before you may call this function. | |||
| 504 | + | func (x *MainContext) Release() { | |||
| 505 | + | xMainContextRelease(x.GoPointer()) | |||
| 506 | + | } | |||
| 507 | + | ||||
| 508 | + | var xMainContextRemovePoll func(uintptr, *PollFD) | |||
| 509 | + | ||||
| 510 | + | // Removes file descriptor from the set of file descriptors to be | |||
| 511 | + | // polled for a particular context. | |||
| 512 | + | func (x *MainContext) RemovePoll(FdVar *PollFD) { | |||
| 513 | + | xMainContextRemovePoll(x.GoPointer(), FdVar) | |||
| 514 | + | } | |||
| 515 | + | ||||
| 516 | + | var xMainContextSetPollFunc func(uintptr, uintptr) | |||
| 517 | + | ||||
| 518 | + | // Sets the function to use to handle polling of file descriptors. | |||
| 519 | + | // | |||
| 520 | + | // It will be used instead of the [`poll()`](man:poll(2)) system call | |||
| 521 | + | // (or GLib’s replacement function, which is used where | |||
| 522 | + | // `poll()` isn’t available). | |||
| 523 | + | // | |||
| 524 | + | // This function could possibly be used to integrate the GLib event | |||
| 525 | + | // loop with an external event loop. | |||
| 526 | + | func (x *MainContext) SetPollFunc(FuncVar *PollFunc) { | |||
| 527 | + | xMainContextSetPollFunc(x.GoPointer(), NewCallback(FuncVar)) | |||
| 528 | + | } | |||
| 529 | + | ||||
| 530 | + | var xMainContextUnref func(uintptr) | |||
| 531 | + | ||||
| 532 | + | // Decreases the reference count on a [struct@GLib.MainContext] object by one. | |||
| 533 | + | // If | |||
| 534 | + | // the result is zero, free the context and free all associated memory. | |||
| 535 | + | func (x *MainContext) Unref() { | |||
| 536 | + | xMainContextUnref(x.GoPointer()) | |||
| 537 | + | } | |||
| 538 | + | ||||
| 539 | + | var xMainContextWait func(uintptr, *Cond, *Mutex) bool | |||
| 540 | + | ||||
| 541 | + | // Tries to become the owner of the specified context, and waits on @cond if | |||
| 542 | + | // another thread is the owner. | |||
| 543 | + | // | |||
| 544 | + | // This is the same as [method@GLib.MainContext.acquire], but if another thread | |||
| 545 | + | // is the owner, atomically drop @mutex and wait on @cond until | |||
| 546 | + | // that owner releases ownership or until @cond is signaled, then | |||
| 547 | + | // try again (once) to become the owner. | |||
| 548 | + | func (x *MainContext) Wait(CondVar *Cond, MutexVar *Mutex) bool { | |||
| 549 | + | cret := xMainContextWait(x.GoPointer(), CondVar, MutexVar) | |||
| 550 | + | return cret | |||
| 551 | + | } | |||
| 552 | + | ||||
| 553 | + | var xMainContextWakeup func(uintptr) | |||
| 554 | + | ||||
| 555 | + | // Wake up @context if it’s currently blocking in | |||
| 556 | + | // [method@GLib.MainContext.iteration], causing it to stop blocking. | |||
| 557 | + | // | |||
| 558 | + | // The @context could be blocking waiting for a source to become ready. | |||
| 559 | + | // Otherwise, if @context is not currently blocking, this function causes the | |||
| 560 | + | // next invocation of [method@GLib.MainContext.iteration] to return without | |||
| 561 | + | // blocking. | |||
| 562 | + | // | |||
| 563 | + | // This API is useful for low-level control over [struct@GLib.MainContext]; for | |||
| 564 | + | // example, integrating it with main loop implementations such as | |||
| 565 | + | // [struct@GLib.MainLoop]. | |||
| 566 | + | // | |||
| 567 | + | // Another related use for this function is when implementing a main | |||
| 568 | + | // loop with a termination condition, computed from multiple threads: | |||
| 569 | + | // | |||
| 570 | + | // ```c | |||
| 571 | + | // | |||
| 572 | + | // #define NUM_TASKS 10 | |||
| 573 | + | // static gint tasks_remaining = NUM_TASKS; // (atomic) | |||
| 574 | + | // ... | |||
| 575 | + | // | |||
| 576 | + | // while (g_atomic_int_get (&tasks_remaining) != 0) | |||
| 577 | + | // g_main_context_iteration (NULL, TRUE); | |||
| 578 | + | // | |||
| 579 | + | // ``` | |||
| 580 | + | // | |||
| 581 | + | // Then in a thread: | |||
| 582 | + | // ```c | |||
| 583 | + | // | |||
| 584 | + | // perform_work (); | |||
| 585 | + | // | |||
| 586 | + | // if (g_atomic_int_dec_and_test (&tasks_remaining)) | |||
| 587 | + | // g_main_context_wakeup (NULL); | |||
| 588 | + | // | |||
| 589 | + | // ``` | |||
| 590 | + | func (x *MainContext) Wakeup() { | |||
| 591 | + | xMainContextWakeup(x.GoPointer()) | |||
| 592 | + | } | |||
| 593 | + | ||||
| 594 | + | // The `GMainLoop` struct is an opaque data type | |||
| 595 | + | // representing the main event loop of a GLib or GTK application. | |||
| 596 | + | type MainLoop struct { | |||
| 597 | + | _ structs.HostLayout | |||
| 598 | + | } | |||
| 599 | + | ||||
| 600 | + | var xMainLoopGLibType func() types.GType | |||
| 601 | + | ||||
| 602 | + | func MainLoopGLibType() types.GType { | |||
| 603 | + | return xMainLoopGLibType() | |||
| 604 | + | } | |||
| 605 | + | ||||
| 606 | + | func (x *MainLoop) GoPointer() uintptr { | |||
| 607 | + | return uintptr(unsafe.Pointer(x)) | |||
| 608 | + | } | |||
| 609 | + | ||||
| 610 | + | func MainLoopNewFromInternalPtr(ptr uintptr) *MainLoop { | |||
| 611 | + | if ptr == 0 { | |||
| 612 | + | return nil | |||
| 613 | + | } | |||
| 614 | + | rawPtr := *(*unsafe.Pointer)(unsafe.Pointer(&ptr)) | |||
| 615 | + | return (*MainLoop)(rawPtr) | |||
| 616 | + | } | |||
| 617 | + | ||||
| 618 | + | var xNewMainLoop func(*MainContext, bool) uintptr | |||
| 619 | + | ||||
| 620 | + | // Creates a new [struct@GLib.MainLoop] structure. | |||
| 621 | + | func NewMainLoop(ContextVar *MainContext, IsRunningVar bool) *MainLoop { | |||
| 622 | + | cret := xNewMainLoop(ContextVar, IsRunningVar) | |||
| 623 | + | if cret == 0 { | |||
| 624 | + | return nil | |||
| 625 | + | } | |||
| 626 | + | return (*MainLoop)(unsafe.Pointer(cret)) | |||
| 627 | + | } | |||
| 628 | + | ||||
| 629 | + | var xMainLoopGetContext func(uintptr) uintptr | |||
| 630 | + | ||||
| 631 | + | // Returns the [struct@GLib.MainContext] of @loop. | |||
| 632 | + | func (x *MainLoop) GetContext() *MainContext { | |||
| 633 | + | cret := xMainLoopGetContext(x.GoPointer()) | |||
| 634 | + | if cret == 0 { | |||
| 635 | + | return nil | |||
| 636 | + | } | |||
| 637 | + | return (*MainContext)(unsafe.Pointer(cret)) | |||
| 638 | + | } | |||
| 639 | + | ||||
| 640 | + | var xMainLoopIsRunning func(uintptr) bool | |||
| 641 | + | ||||
| 642 | + | // Checks to see if the main loop is currently being run via | |||
| 643 | + | // [method@GLib.MainLoop.run]. | |||
| 644 | + | func (x *MainLoop) IsRunning() bool { | |||
| 645 | + | cret := xMainLoopIsRunning(x.GoPointer()) | |||
| 646 | + | return cret | |||
| 647 | + | } | |||
| 648 | + | ||||
| 649 | + | var xMainLoopQuit func(uintptr) | |||
| 650 | + | ||||
| 651 | + | // Stops a [struct@GLib.MainLoop] from running. Any calls to | |||
| 652 | + | // [method@GLib.MainLoop.run] for the loop will return. | |||
| 653 | + | // | |||
| 654 | + | // Note that sources that have already been dispatched when | |||
| 655 | + | // [method@GLib.MainLoop.quit] is called will still be executed. | |||
| 656 | + | func (x *MainLoop) Quit() { | |||
| 657 | + | xMainLoopQuit(x.GoPointer()) | |||
| 658 | + | } | |||
| 659 | + | ||||
| 660 | + | var xMainLoopRef func(uintptr) uintptr | |||
| 661 | + | ||||
| 662 | + | // Increases the reference count on a [struct@GLib.MainLoop] object by one. | |||
| 663 | + | func (x *MainLoop) Ref() *MainLoop { | |||
| 664 | + | cret := xMainLoopRef(x.GoPointer()) | |||
| 665 | + | if cret == 0 { | |||
| 666 | + | return nil | |||
| 667 | + | } | |||
| 668 | + | return (*MainLoop)(unsafe.Pointer(cret)) | |||
| 669 | + | } | |||
| 670 | + | ||||
| 671 | + | var xMainLoopRun func(uintptr) | |||
| 672 | + | ||||
| 673 | + | // Runs a main loop until [method@GLib.MainLoop.quit] is called on the loop. | |||
| 674 | + | // | |||
| 675 | + | // If this is called from the thread of the loop’s [struct@GLib.MainContext], | |||
| 676 | + | // it will process events from the loop, otherwise it will | |||
| 677 | + | // simply wait. | |||
| 678 | + | func (x *MainLoop) Run() { | |||
| 679 | + | xMainLoopRun(x.GoPointer()) | |||
| 680 | + | } | |||
| 681 | + | ||||
| 682 | + | var xMainLoopUnref func(uintptr) | |||
| 683 | + | ||||
| 684 | + | // Decreases the reference count on a [struct@GLib.MainLoop] object by one. | |||
| 685 | + | // | |||
| 686 | + | // If the result is zero, the loop and all associated memory are freed. | |||
| 687 | + | func (x *MainLoop) Unref() { | |||
| 688 | + | xMainLoopUnref(x.GoPointer()) | |||
| 689 | + | } | |||
| 690 | + | ||||
| 691 | + | // The `GSource` struct is an opaque data type | |||
| 692 | + | // representing an event source. | |||
| 693 | + | type Source struct { | |||
| 694 | + | _ structs.HostLayout | |||
| 695 | + | ||||
| 696 | + | CallbackData uintptr | |||
| 697 | + | ||||
| 698 | + | CallbackFuncs *SourceCallbackFuncs | |||
| 699 | + | ||||
| 700 | + | SourceFuncs *SourceFuncs | |||
| 701 | + | ||||
| 702 | + | RefCount uint | |||
| 703 | + | ||||
| 704 | + | Context *MainContext | |||
| 705 | + | ||||
| 706 | + | Priority int32 | |||
| 707 | + | ||||
| 708 | + | Flags uint | |||
| 709 | + | ||||
| 710 | + | SourceId uint | |||
| 711 | + | ||||
| 712 | + | PollFds *SList | |||
| 713 | + | ||||
| 714 | + | Prev *Source | |||
| 715 | + | ||||
| 716 | + | Next *Source | |||
| 717 | + | ||||
| 718 | + | Name uintptr | |||
| 719 | + | ||||
| 720 | + | Priv *SourcePrivate | |||
| 721 | + | } | |||
| 722 | + | ||||
| 723 | + | var xSourceGLibType func() types.GType | |||
| 724 | + | ||||
| 725 | + | func SourceGLibType() types.GType { | |||
| 726 | + | return xSourceGLibType() | |||
| 727 | + | } | |||
| 728 | + | ||||
| 729 | + | func (x *Source) GoPointer() uintptr { | |||
| 730 | + | return uintptr(unsafe.Pointer(x)) | |||
| 731 | + | } | |||
| 732 | + | ||||
| 733 | + | func SourceNewFromInternalPtr(ptr uintptr) *Source { | |||
| 734 | + | if ptr == 0 { | |||
| 735 | + | return nil | |||
| 736 | + | } | |||
| 737 | + | rawPtr := *(*unsafe.Pointer)(unsafe.Pointer(&ptr)) | |||
| 738 | + | return (*Source)(rawPtr) | |||
| 739 | + | } | |||
| 740 | + | ||||
| 741 | + | var xNewSource func(*SourceFuncs, uint) uintptr | |||
| 742 | + | ||||
| 743 | + | // Creates a new [struct@GLib.Source] structure. | |||
| 744 | + | // | |||
| 745 | + | // The size is specified to | |||
| 746 | + | // allow creating structures derived from [struct@GLib.Source] that contain | |||
| 747 | + | // additional data. The size passed in must be at least | |||
| 748 | + | // `sizeof (GSource)`. | |||
| 749 | + | // | |||
| 750 | + | // The source will not initially be associated with any [struct@GLib.MainContext] | |||
| 751 | + | // and must be added to one with [method@GLib.Source.attach] before it will be | |||
| 752 | + | // executed. | |||
| 753 | + | func NewSource(SourceFuncsVar *SourceFuncs, StructSizeVar uint) *Source { | |||
| 754 | + | cret := xNewSource(SourceFuncsVar, StructSizeVar) | |||
| 755 | + | if cret == 0 { | |||
| 756 | + | return nil | |||
| 757 | + | } | |||
| 758 | + | return (*Source)(unsafe.Pointer(cret)) | |||
| 759 | + | } | |||
| 760 | + | ||||
| 761 | + | var xSourceAddChildSource func(uintptr, *Source) | |||
| 762 | + | ||||
| 763 | + | // Adds @child_source to @source as a ‘polled’ source. | |||
| 764 | + | // | |||
| 765 | + | // When @source is added to a [struct@GLib.MainContext], @child_source will be | |||
| 766 | + | // automatically added with the same priority. When @child_source is triggered, | |||
| 767 | + | // it will cause @source to dispatch (in addition to calling its own callback), | |||
| 768 | + | // and when @source is destroyed, it will destroy @child_source as well. | |||
| 769 | + | // | |||
| 770 | + | // The @source will also still be dispatched if its own prepare/check functions | |||
| 771 | + | // indicate that it is ready. | |||
| 772 | + | // | |||
| 773 | + | // If you don’t need @child_source to do anything on its own when it | |||
| 774 | + | // triggers, you can call `g_source_set_dummy_callback()` on it to set a | |||
| 775 | + | // callback that does nothing (except return true if appropriate). | |||
| 776 | + | // | |||
| 777 | + | // The @source will hold a reference on @child_source while @child_source | |||
| 778 | + | // is attached to it. | |||
| 779 | + | // | |||
| 780 | + | // This API is only intended to be used by implementations of [struct@GLib.Source]. | |||
| 781 | + | // Do not call this API on a [struct@GLib.Source] that you did not create. | |||
| 782 | + | func (x *Source) AddChildSource(ChildSourceVar *Source) { | |||
| 783 | + | xSourceAddChildSource(x.GoPointer(), ChildSourceVar) | |||
| 784 | + | } | |||
| 785 | + | ||||
| 786 | + | var xSourceAddPoll func(uintptr, *PollFD) | |||
| 787 | + | ||||
| 788 | + | // Adds a file descriptor to the set of file descriptors polled for | |||
| 789 | + | // this source. | |||
| 790 | + | // | |||
| 791 | + | // This is usually combined with [ctor@GLib.Source.new] to add an | |||
| 792 | + | // event source. The event source’s check function will typically test | |||
| 793 | + | // the @revents field in the [struct@GLib.PollFD] struct and return true if | |||
| 794 | + | // events need to be processed. | |||
| 795 | + | // | |||
| 796 | + | // This API is only intended to be used by implementations of [struct@GLib.Source]. | |||
| 797 | + | // Do not call this API on a [struct@GLib.Source] that you did not create. | |||
| 798 | + | // | |||
| 799 | + | // Using this API forces the linear scanning of event sources on each | |||
| 800 | + | // main loop iteration. Newly-written event sources should try to use | |||
| 801 | + | // `g_source_add_unix_fd()` instead of this API. | |||
| 802 | + | func (x *Source) AddPoll(FdVar *PollFD) { | |||
| 803 | + | xSourceAddPoll(x.GoPointer(), FdVar) | |||
| 804 | + | } | |||
| 805 | + | ||||
| 806 | + | var xSourceAddUnixFd func(uintptr, int, IOCondition) uintptr | |||
| 807 | + | ||||
| 808 | + | // Monitors @fd for the IO events in @events. | |||
| 809 | + | // | |||
| 810 | + | // The tag returned by this function can be used to remove or modify the | |||
| 811 | + | // monitoring of the @fd using [method@GLib.Source.remove_unix_fd] or | |||
| 812 | + | // [method@GLib.Source.modify_unix_fd]. | |||
| 813 | + | // | |||
| 814 | + | // It is not necessary to remove the file descriptor before destroying the | |||
| 815 | + | // source; it will be cleaned up automatically. | |||
| 816 | + | // | |||
| 817 | + | // This API is only intended to be used by implementations of [struct@GLib.Source]. | |||
| 818 | + | // Do not call this API on a [struct@GLib.Source] that you did not create. | |||
| 819 | + | // | |||
| 820 | + | // As the name suggests, this function is not available on Windows. | |||
| 821 | + | func (x *Source) AddUnixFd(FdVar int, EventsVar IOCondition) uintptr { | |||
| 822 | + | cret := xSourceAddUnixFd(x.GoPointer(), FdVar, EventsVar) | |||
| 823 | + | return cret | |||
| 824 | + | } | |||
| 825 | + | ||||
| 826 | + | var xSourceAttach func(uintptr, *MainContext) uint | |||
| 827 | + | ||||
| 828 | + | // Adds a [struct@GLib.Source] to a @context so that it will be executed within | |||
| 829 | + | // that context. | |||
| 830 | + | // | |||
| 831 | + | // Remove it by calling [method@GLib.Source.destroy]. | |||
| 832 | + | // | |||
| 833 | + | // This function is safe to call from any thread, regardless of which thread | |||
| 834 | + | // the @context is running in. | |||
| 835 | + | func (x *Source) Attach(ContextVar *MainContext) uint { | |||
| 836 | + | cret := xSourceAttach(x.GoPointer(), ContextVar) | |||
| 837 | + | return cret | |||
| 838 | + | } | |||
| 839 | + | ||||
| 840 | + | var xSourceDestroy func(uintptr) | |||
| 841 | + | ||||
| 842 | + | // Removes a source from its [struct@GLib.MainContext], if any, and marks it as | |||
| 843 | + | // destroyed. | |||
| 844 | + | // | |||
| 845 | + | // The source cannot be subsequently added to another | |||
| 846 | + | // context. It is safe to call this on sources which have already been | |||
| 847 | + | // removed from their context. | |||
| 848 | + | // | |||
| 849 | + | // This does not unref the [struct@GLib.Source]: if you still hold a reference, | |||
| 850 | + | // use [method@GLib.Source.unref] to drop it. | |||
| 851 | + | // | |||
| 852 | + | // This function is safe to call from any thread, regardless of which thread | |||
| 853 | + | // the [struct@GLib.MainContext] is running in. | |||
| 854 | + | // | |||
| 855 | + | // If the source is currently attached to a [struct@GLib.MainContext], | |||
| 856 | + | // destroying it will effectively unset the callback similar to calling | |||
| 857 | + | // [method@GLib.Source.set_callback]. This can mean, that the data’s | |||
| 858 | + | // [callback@GLib.DestroyNotify] gets called right away. | |||
| 859 | + | func (x *Source) Destroy() { | |||
| 860 | + | xSourceDestroy(x.GoPointer()) | |||
| 861 | + | } | |||
| 862 | + | ||||
| 863 | + | var xSourceDupContext func(uintptr) uintptr | |||
| 864 | + | ||||
| 865 | + | // Gets a reference to the [struct@GLib.MainContext] with which the source is | |||
| 866 | + | // associated. | |||
| 867 | + | // | |||
| 868 | + | // You can call this on a source that has been destroyed. You can | |||
| 869 | + | // always call this function on the source returned from | |||
| 870 | + | // [func@GLib.main_current_source]. | |||
| 871 | + | func (x *Source) DupContext() *MainContext { | |||
| 872 | + | cret := xSourceDupContext(x.GoPointer()) | |||
| 873 | + | if cret == 0 { | |||
| 874 | + | return nil | |||
| 875 | + | } | |||
| 876 | + | return (*MainContext)(unsafe.Pointer(cret)) | |||
| 877 | + | } | |||
| 878 | + | ||||
| 879 | + | var xSourceGetCanRecurse func(uintptr) bool | |||
| 880 | + | ||||
| 881 | + | // Checks whether a source is allowed to be called recursively. | |||
| 882 | + | // | |||
| 883 | + | // See [method@GLib.Source.set_can_recurse]. | |||
| 884 | + | func (x *Source) GetCanRecurse() bool { | |||
| 885 | + | cret := xSourceGetCanRecurse(x.GoPointer()) | |||
| 886 | + | return cret | |||
| 887 | + | } | |||
| 888 | + | ||||
| 889 | + | var xSourceGetContext func(uintptr) uintptr | |||
| 890 | + | ||||
| 891 | + | // Gets the [struct@GLib.MainContext] with which the source is associated. | |||
| 892 | + | // | |||
| 893 | + | // You can call this on a source that has been destroyed, provided | |||
| 894 | + | // that the [struct@GLib.MainContext] it was attached to still exists (in which | |||
| 895 | + | // case it will return that [struct@GLib.MainContext]). In particular, you can | |||
| 896 | + | // always call this function on the source returned from | |||
| 897 | + | // [func@GLib.main_current_source]. But calling this function on a source | |||
| 898 | + | // whose [struct@GLib.MainContext] has been destroyed is an error. | |||
| 899 | + | // | |||
| 900 | + | // If the associated [struct@GLib.MainContext] could be destroy concurrently from | |||
| 901 | + | // a different thread, then this function is not safe to call and | |||
| 902 | + | // [method@GLib.Source.dup_context] should be used instead. | |||
| 903 | + | func (x *Source) GetContext() *MainContext { | |||
| 904 | + | cret := xSourceGetContext(x.GoPointer()) | |||
| 905 | + | if cret == 0 { | |||
| 906 | + | return nil | |||
| 907 | + | } | |||
| 908 | + | return (*MainContext)(unsafe.Pointer(cret)) | |||
| 909 | + | } | |||
| 910 | + | ||||
| 911 | + | var xSourceGetCurrentTime func(uintptr, *TimeVal) | |||
| 912 | + | ||||
| 913 | + | // This function ignores @source and is otherwise the same as | |||
| 914 | + | // [func@GLib.get_current_time]. | |||
| 915 | + | func (x *Source) GetCurrentTime(TimevalVar *TimeVal) { | |||
| 916 | + | xSourceGetCurrentTime(x.GoPointer(), TimevalVar) | |||
| 917 | + | } | |||
| 918 | + | ||||
| 919 | + | var xSourceGetId func(uintptr) uint | |||
| 920 | + | ||||
| 921 | + | // Returns the numeric ID for a particular source. | |||
| 922 | + | // | |||
| 923 | + | // The ID of a source | |||
| 924 | + | // is a positive integer which is unique within a particular main loop | |||
| 925 | + | // context. The reverse mapping from ID to source is done by | |||
| 926 | + | // [method@GLib.MainContext.find_source_by_id]. | |||
| 927 | + | // | |||
| 928 | + | // You can only call this function while the source is associated to a | |||
| 929 | + | // [struct@GLib.MainContext] instance; calling this function before | |||
| 930 | + | // [method@GLib.Source.attach] or after [method@GLib.Source.destroy] yields | |||
| 931 | + | // undefined behavior. The ID returned is unique within the | |||
| 932 | + | // [struct@GLib.MainContext] instance passed to [method@GLib.Source.attach]. | |||
| 933 | + | func (x *Source) GetId() uint { | |||
| 934 | + | cret := xSourceGetId(x.GoPointer()) | |||
| 935 | + | return cret | |||
| 936 | + | } | |||
| 937 | + | ||||
| 938 | + | var xSourceGetName func(uintptr) string | |||
| 939 | + | ||||
| 940 | + | // Gets a name for the source, used in debugging and profiling. | |||
| 941 | + | // | |||
| 942 | + | // The | |||
| 943 | + | // name may be `NULL` if it has never been set with [method@GLib.Source.set_name]. | |||
| 944 | + | func (x *Source) GetName() string { | |||
| 945 | + | cret := xSourceGetName(x.GoPointer()) | |||
| 946 | + | return cret | |||
| 947 | + | } | |||
| 948 | + | ||||
| 949 | + | var xSourceGetPriority func(uintptr) int | |||
| 950 | + | ||||
| 951 | + | // Gets the priority of a source. | |||
| 952 | + | func (x *Source) GetPriority() int { | |||
| 953 | + | cret := xSourceGetPriority(x.GoPointer()) | |||
| 954 | + | return cret | |||
| 955 | + | } | |||
| 956 | + | ||||
| 957 | + | var xSourceGetReadyTime func(uintptr) int64 | |||
| 958 | + | ||||
| 959 | + | // Gets the ‘ready time’ of @source, as set by | |||
| 960 | + | // [method@GLib.Source.set_ready_time]. | |||
| 961 | + | // | |||
| 962 | + | // Any time before or equal to the current monotonic time (including zero) | |||
| 963 | + | // is an indication that the source will fire immediately. | |||
| 964 | + | func (x *Source) GetReadyTime() int64 { | |||
| 965 | + | cret := xSourceGetReadyTime(x.GoPointer()) | |||
| 966 | + | return cret | |||
| 967 | + | } | |||
| 968 | + | ||||
| 969 | + | var xSourceGetTime func(uintptr) int64 | |||
| 970 | + | ||||
| 971 | + | // Gets the time to be used when checking this source. | |||
| 972 | + | // | |||
| 973 | + | // The advantage of | |||
| 974 | + | // calling this function over calling [func@GLib.get_monotonic_time] directly is | |||
| 975 | + | // that when checking multiple sources, GLib can cache a single value | |||
| 976 | + | // instead of having to repeatedly get the system monotonic time. | |||
| 977 | + | // | |||
| 978 | + | // The time here is the system monotonic time, if available, or some | |||
| 979 | + | // other reasonable alternative otherwise. See [func@GLib.get_monotonic_time]. | |||
| 980 | + | func (x *Source) GetTime() int64 { | |||
| 981 | + | cret := xSourceGetTime(x.GoPointer()) | |||
| 982 | + | return cret | |||
| 983 | + | } | |||
| 984 | + | ||||
| 985 | + | var xSourceIsDestroyed func(uintptr) bool | |||
| 986 | + | ||||
| 987 | + | // Returns whether @source has been destroyed. | |||
| 988 | + | // | |||
| 989 | + | // This is important when you operate upon your objects | |||
| 990 | + | // from within idle handlers, but may have freed the object | |||
| 991 | + | // before the dispatch of your idle handler. | |||
| 992 | + | // | |||
| 993 | + | // ```c | |||
| 994 | + | // static gboolean | |||
| 995 | + | // idle_callback (gpointer data) | |||
| 996 | + | // | |||
| 997 | + | // { | |||
| 998 | + | // SomeWidget *self = data; | |||
| 999 | + | // | |||
| 1000 | + | // g_mutex_lock (&self->idle_id_mutex); | |||
| 1001 | + | // // do stuff with self | |||
| 1002 | + | // self->idle_id = 0; | |||
| 1003 | + | // g_mutex_unlock (&self->idle_id_mutex); | |||
| 1004 | + | // | |||
| 1005 | + | // return G_SOURCE_REMOVE; | |||
| 1006 | + | // } | |||
| 1007 | + | // | |||
| 1008 | + | // static void | |||
| 1009 | + | // some_widget_do_stuff_later (SomeWidget *self) | |||
| 1010 | + | // | |||
| 1011 | + | // { | |||
| 1012 | + | // g_mutex_lock (&self->idle_id_mutex); | |||
| 1013 | + | // self->idle_id = g_idle_add (idle_callback, self); | |||
| 1014 | + | // g_mutex_unlock (&self->idle_id_mutex); | |||
| 1015 | + | // } | |||
| 1016 | + | // | |||
| 1017 | + | // static void | |||
| 1018 | + | // some_widget_init (SomeWidget *self) | |||
| 1019 | + | // | |||
| 1020 | + | // { | |||
| 1021 | + | // g_mutex_init (&self->idle_id_mutex); | |||
| 1022 | + | // | |||
| 1023 | + | // // ... | |||
| 1024 | + | // } | |||
| 1025 | + | // | |||
| 1026 | + | // static void | |||
| 1027 | + | // some_widget_finalize (GObject *object) | |||
| 1028 | + | // | |||
| 1029 | + | // { | |||
| 1030 | + | // SomeWidget *self = SOME_WIDGET (object); | |||
| 1031 | + | // | |||
| 1032 | + | // if (self->idle_id) | |||
| 1033 | + | // g_source_remove (self->idle_id); | |||
| 1034 | + | // | |||
| 1035 | + | // g_mutex_clear (&self->idle_id_mutex); | |||
| 1036 | + | // | |||
| 1037 | + | // G_OBJECT_CLASS (parent_class)->finalize (object); | |||
| 1038 | + | // } | |||
| 1039 | + | // | |||
| 1040 | + | // ``` | |||
| 1041 | + | // | |||
| 1042 | + | // This will fail in a multi-threaded application if the | |||
| 1043 | + | // widget is destroyed before the idle handler fires due | |||
| 1044 | + | // to the use after free in the callback. A solution, to | |||
| 1045 | + | // this particular problem, is to check to if the source | |||
| 1046 | + | // has already been destroy within the callback. | |||
| 1047 | + | // | |||
| 1048 | + | // ```c | |||
| 1049 | + | // static gboolean | |||
| 1050 | + | // idle_callback (gpointer data) | |||
| 1051 | + | // | |||
| 1052 | + | // { | |||
| 1053 | + | // SomeWidget *self = data; | |||
| 1054 | + | // | |||
| 1055 | + | // g_mutex_lock (&self->idle_id_mutex); | |||
| 1056 | + | // if (!g_source_is_destroyed (g_main_current_source ())) | |||
| 1057 | + | // { | |||
| 1058 | + | // // do stuff with self | |||
| 1059 | + | // } | |||
| 1060 | + | // g_mutex_unlock (&self->idle_id_mutex); | |||
| 1061 | + | // | |||
| 1062 | + | // return FALSE; | |||
| 1063 | + | // } | |||
| 1064 | + | // | |||
| 1065 | + | // ``` | |||
| 1066 | + | // | |||
| 1067 | + | // Calls to this function from a thread other than the one acquired by the | |||
| 1068 | + | // [struct@GLib.MainContext] the [struct@GLib.Source] is attached to are typically | |||
| 1069 | + | // redundant, as the source could be destroyed immediately after this function | |||
| 1070 | + | // returns. However, once a source is destroyed it cannot be un-destroyed, so | |||
| 1071 | + | // this function can be used for opportunistic checks from any thread. | |||
| 1072 | + | func (x *Source) IsDestroyed() bool { | |||
| 1073 | + | cret := xSourceIsDestroyed(x.GoPointer()) | |||
| 1074 | + | return cret | |||
| 1075 | + | } | |||
| 1076 | + | ||||
| 1077 | + | var xSourceModifyUnixFd func(uintptr, uintptr, IOCondition) | |||
| 1078 | + | ||||
| 1079 | + | // Updates the event mask to watch for the file descriptor identified by @tag. | |||
| 1080 | + | // | |||
| 1081 | + | // The @tag is the tag returned from [method@GLib.Source.add_unix_fd]. | |||
| 1082 | + | // | |||
| 1083 | + | // If you want to remove a file descriptor, don’t set its event mask to zero. | |||
| 1084 | + | // Instead, call [method@GLib.Source.remove_unix_fd]. | |||
| 1085 | + | // | |||
| 1086 | + | // This API is only intended to be used by implementations of [struct@GLib.Source]. | |||
| 1087 | + | // Do not call this API on a [struct@GLib.Source] that you did not create. | |||
| 1088 | + | // | |||
| 1089 | + | // As the name suggests, this function is not available on Windows. | |||
| 1090 | + | func (x *Source) ModifyUnixFd(TagVar uintptr, NewEventsVar IOCondition) { | |||
| 1091 | + | xSourceModifyUnixFd(x.GoPointer(), TagVar, NewEventsVar) | |||
| 1092 | + | } | |||
| 1093 | + | ||||
| 1094 | + | var xSourceQueryUnixFd func(uintptr, uintptr) IOCondition | |||
| 1095 | + | ||||
| 1096 | + | // Queries the events reported for the file descriptor corresponding to @tag | |||
| 1097 | + | // on @source during the last poll. | |||
| 1098 | + | // | |||
| 1099 | + | // The return value of this function is only defined when the function | |||
| 1100 | + | // is called from the check or dispatch functions for @source. | |||
| 1101 | + | // | |||
| 1102 | + | // This API is only intended to be used by implementations of [struct@GLib.Source]. | |||
| 1103 | + | // Do not call this API on a [struct@GLib.Source] that you did not create. | |||
| 1104 | + | // | |||
| 1105 | + | // As the name suggests, this function is not available on Windows. | |||
| 1106 | + | func (x *Source) QueryUnixFd(TagVar uintptr) IOCondition { | |||
| 1107 | + | cret := xSourceQueryUnixFd(x.GoPointer(), TagVar) | |||
| 1108 | + | return cret | |||
| 1109 | + | } | |||
| 1110 | + | ||||
| 1111 | + | var xSourceRef func(uintptr) uintptr | |||
| 1112 | + | ||||
| 1113 | + | // Increases the reference count on a source by one. | |||
| 1114 | + | func (x *Source) Ref() *Source { | |||
| 1115 | + | cret := xSourceRef(x.GoPointer()) | |||
| 1116 | + | if cret == 0 { | |||
| 1117 | + | return nil | |||
| 1118 | + | } | |||
| 1119 | + | return (*Source)(unsafe.Pointer(cret)) | |||
| 1120 | + | } | |||
| 1121 | + | ||||
| 1122 | + | var xSourceRemoveChildSource func(uintptr, *Source) | |||
| 1123 | + | ||||
| 1124 | + | // Detaches @child_source from @source and destroys it. | |||
| 1125 | + | // | |||
| 1126 | + | // This API is only intended to be used by implementations of [struct@GLib.Source]. | |||
| 1127 | + | // Do not call this API on a [struct@GLib.Source] that you did not create. | |||
| 1128 | + | func (x *Source) RemoveChildSource(ChildSourceVar *Source) { | |||
| 1129 | + | xSourceRemoveChildSource(x.GoPointer(), ChildSourceVar) | |||
| 1130 | + | } | |||
| 1131 | + | ||||
| 1132 | + | var xSourceRemovePoll func(uintptr, *PollFD) | |||
| 1133 | + | ||||
| 1134 | + | // Removes a file descriptor from the set of file descriptors polled for | |||
| 1135 | + | // this source. | |||
| 1136 | + | // | |||
| 1137 | + | // This API is only intended to be used by implementations of [struct@GLib.Source]. | |||
| 1138 | + | // Do not call this API on a [struct@GLib.Source] that you did not create. | |||
| 1139 | + | func (x *Source) RemovePoll(FdVar *PollFD) { | |||
| 1140 | + | xSourceRemovePoll(x.GoPointer(), FdVar) | |||
| 1141 | + | } | |||
| 1142 | + | ||||
| 1143 | + | var xSourceRemoveUnixFd func(uintptr, uintptr) | |||
| 1144 | + | ||||
| 1145 | + | // Reverses the effect of a previous call to [method@GLib.Source.add_unix_fd]. | |||
| 1146 | + | // | |||
| 1147 | + | // You only need to call this if you want to remove a file descriptor from being | |||
| 1148 | + | // watched while keeping the same source around. In the normal case you | |||
| 1149 | + | // will just want to destroy the source. | |||
| 1150 | + | // | |||
| 1151 | + | // This API is only intended to be used by implementations of [struct@GLib.Source]. | |||
| 1152 | + | // Do not call this API on a [struct@GLib.Source] that you did not create. | |||
| 1153 | + | // | |||
| 1154 | + | // As the name suggests, this function is not available on Windows. | |||
| 1155 | + | func (x *Source) RemoveUnixFd(TagVar uintptr) { | |||
| 1156 | + | xSourceRemoveUnixFd(x.GoPointer(), TagVar) | |||
| 1157 | + | } | |||
| 1158 | + | ||||
| 1159 | + | var xSourceSetCallback func(uintptr, uintptr, uintptr, uintptr) | |||
| 1160 | + | ||||
| 1161 | + | // Sets the callback function for a source. The callback for a source is | |||
| 1162 | + | // called from the source’s dispatch function. | |||
| 1163 | + | // | |||
| 1164 | + | // The exact type of @func depends on the type of source; ie. you | |||
| 1165 | + | // should not count on @func being called with @data as its first | |||
| 1166 | + | // parameter. Cast @func with [func@GLib.SOURCE_FUNC] to avoid warnings about | |||
| 1167 | + | // incompatible function types. | |||
| 1168 | + | // | |||
| 1169 | + | // See [main loop memory management](main-loop.html#memory-management-of-sources) for details | |||
| 1170 | + | // on how to handle memory management of @data. | |||
| 1171 | + | // | |||
| 1172 | + | // Typically, you won’t use this function. Instead use functions specific | |||
| 1173 | + | // to the type of source you are using, such as [func@GLib.idle_add] or | |||
| 1174 | + | // [func@GLib.timeout_add]. | |||
| 1175 | + | // | |||
| 1176 | + | // It is safe to call this function multiple times on a source which has already | |||
| 1177 | + | // been attached to a context. The changes will take effect for the next time | |||
| 1178 | + | // the source is dispatched after this call returns. | |||
| 1179 | + | // | |||
| 1180 | + | // Note that [method@GLib.Source.destroy] for a currently attached source has the effect | |||
| 1181 | + | // of also unsetting the callback. | |||
| 1182 | + | func (x *Source) SetCallback(FuncVar *SourceFunc, DataVar uintptr, NotifyVar *DestroyNotify) { | |||
| 1183 | + | xSourceSetCallback(x.GoPointer(), NewCallback(FuncVar), DataVar, NewCallbackNullable(NotifyVar)) | |||
| 1184 | + | } | |||
| 1185 | + | ||||
| 1186 | + | var xSourceSetCallbackIndirect func(uintptr, uintptr, *SourceCallbackFuncs) | |||
| 1187 | + | ||||
| 1188 | + | // Sets the callback function storing the data as a reference counted callback | |||
| 1189 | + | // ‘object’. | |||
| 1190 | + | // | |||
| 1191 | + | // This is used internally. Note that calling | |||
| 1192 | + | // [method@GLib.Source.set_callback_indirect] assumes | |||
| 1193 | + | // an initial reference count on @callback_data, and thus | |||
| 1194 | + | // `callback_funcs->unref` will eventually be called once more than | |||
| 1195 | + | // `callback_funcs->ref`. | |||
| 1196 | + | // | |||
| 1197 | + | // It is safe to call this function multiple times on a source which has already | |||
| 1198 | + | // been attached to a context. The changes will take effect for the next time | |||
| 1199 | + | // the source is dispatched after this call returns. | |||
| 1200 | + | func (x *Source) SetCallbackIndirect(CallbackDataVar uintptr, CallbackFuncsVar *SourceCallbackFuncs) { | |||
| 1201 | + | xSourceSetCallbackIndirect(x.GoPointer(), CallbackDataVar, CallbackFuncsVar) | |||
| 1202 | + | } | |||
| 1203 | + | ||||
| 1204 | + | var xSourceSetCanRecurse func(uintptr, bool) | |||
| 1205 | + | ||||
| 1206 | + | // Sets whether a source can be called recursively. | |||
| 1207 | + | // | |||
| 1208 | + | // If @can_recurse is true, then while the source is being dispatched then this | |||
| 1209 | + | // source will be processed normally. Otherwise, all processing of this | |||
| 1210 | + | // source is blocked until the dispatch function returns. | |||
| 1211 | + | func (x *Source) SetCanRecurse(CanRecurseVar bool) { | |||
| 1212 | + | xSourceSetCanRecurse(x.GoPointer(), CanRecurseVar) | |||
| 1213 | + | } | |||
| 1214 | + | ||||
| 1215 | + | var xSourceSetDisposeFunction func(uintptr, uintptr) | |||
| 1216 | + | ||||
| 1217 | + | // Set @dispose as dispose function on @source. | |||
| 1218 | + | // | |||
| 1219 | + | // The @dispose function will be called once the reference count of @source | |||
| 1220 | + | // reaches zero but before any of the state of the source is freed, especially | |||
| 1221 | + | // before the finalize function (set as part of the [type@GLib.SourceFuncs]) is | |||
| 1222 | + | // called. | |||
| 1223 | + | // | |||
| 1224 | + | // This means that at this point @source is still a valid [struct@GLib.Source] | |||
| 1225 | + | // and it is allow for the reference count to increase again until @dispose | |||
| 1226 | + | // returns. | |||
| 1227 | + | // | |||
| 1228 | + | // The dispose function can be used to clear any ‘weak’ references to | |||
| 1229 | + | // the @source in other data structures in a thread-safe way where it is | |||
| 1230 | + | // possible for another thread to increase the reference count of @source again | |||
| 1231 | + | // while it is being freed. | |||
| 1232 | + | // | |||
| 1233 | + | // The finalize function can not be used for this purpose as at that | |||
| 1234 | + | // point @source is already partially freed and not valid any more. | |||
| 1235 | + | // | |||
| 1236 | + | // This should only ever be called from [struct@GLib.Source] implementations. | |||
| 1237 | + | func (x *Source) SetDisposeFunction(DisposeVar *SourceDisposeFunc) { | |||
| 1238 | + | xSourceSetDisposeFunction(x.GoPointer(), NewCallback(DisposeVar)) | |||
| 1239 | + | } | |||
| 1240 | + | ||||
| 1241 | + | var xSourceSetFuncs func(uintptr, *SourceFuncs) | |||
| 1242 | + | ||||
| 1243 | + | // Sets the source functions of an unattached source. | |||
| 1244 | + | // | |||
| 1245 | + | // These can be used to override the default implementations for the type | |||
| 1246 | + | // of @source. | |||
| 1247 | + | func (x *Source) SetFuncs(FuncsVar *SourceFuncs) { | |||
| 1248 | + | xSourceSetFuncs(x.GoPointer(), FuncsVar) | |||
| 1249 | + | } | |||
| 1250 | + | ||||
| 1251 | + | var xSourceSetName func(uintptr, string) | |||
| 1252 | + | ||||
| 1253 | + | // Sets a name for the source, used in debugging and profiling. | |||
| 1254 | + | // | |||
| 1255 | + | // The name defaults to `NULL`. | |||
| 1256 | + | // | |||
| 1257 | + | // The source name should describe in a human-readable way | |||
| 1258 | + | // what the source does. For example, ‘X11 event queue’ | |||
| 1259 | + | // or ‘GTK repaint idle handler’. | |||
| 1260 | + | // | |||
| 1261 | + | // It is permitted to call this function multiple times, but is not | |||
| 1262 | + | // recommended due to the potential performance impact. For example, | |||
| 1263 | + | // one could change the name in the `check` function of a | |||
| 1264 | + | // [struct@GLib.SourceFuncs] to include details like the event type in the | |||
| 1265 | + | // source name. | |||
| 1266 | + | // | |||
| 1267 | + | // Use caution if changing the name while another thread may be | |||
| 1268 | + | // accessing it with [method@GLib.Source.get_name]; that function does not copy | |||
| 1269 | + | // the value, and changing the value will free it while the other thread | |||
| 1270 | + | // may be attempting to use it. | |||
| 1271 | + | // | |||
| 1272 | + | // Also see [method@GLib.Source.set_static_name]. | |||
| 1273 | + | func (x *Source) SetName(NameVar string) { | |||
| 1274 | + | xSourceSetName(x.GoPointer(), NameVar) | |||
| 1275 | + | } | |||
| 1276 | + | ||||
| 1277 | + | var xSourceSetPriority func(uintptr, int) | |||
| 1278 | + | ||||
| 1279 | + | // Sets the priority of a source. | |||
| 1280 | + | // | |||
| 1281 | + | // While the main loop is being run, a | |||
| 1282 | + | // source will be dispatched if it is ready to be dispatched and no | |||
| 1283 | + | // sources at a higher (numerically smaller) priority are ready to be | |||
| 1284 | + | // dispatched. | |||
| 1285 | + | // | |||
| 1286 | + | // A child source always has the same priority as its parent. It is not | |||
| 1287 | + | // permitted to change the priority of a source once it has been added | |||
| 1288 | + | // as a child of another source. | |||
| 1289 | + | func (x *Source) SetPriority(PriorityVar int) { | |||
| 1290 | + | xSourceSetPriority(x.GoPointer(), PriorityVar) | |||
| 1291 | + | } | |||
| 1292 | + | ||||
| 1293 | + | var xSourceSetReadyTime func(uintptr, int64) | |||
| 1294 | + | ||||
| 1295 | + | // Sets a source to be dispatched when the given monotonic time is | |||
| 1296 | + | // reached (or passed). | |||
| 1297 | + | // | |||
| 1298 | + | // If the monotonic time is in the past (as it | |||
| 1299 | + | // always will be if @ready_time is `0`) then the source will be | |||
| 1300 | + | // dispatched immediately. | |||
| 1301 | + | // | |||
| 1302 | + | // If @ready_time is `-1` then the source is never woken up on the basis | |||
| 1303 | + | // of the passage of time. | |||
| 1304 | + | // | |||
| 1305 | + | // Dispatching the source does not reset the ready time. You should do | |||
| 1306 | + | // so yourself, from the source dispatch function. | |||
| 1307 | + | // | |||
| 1308 | + | // Note that if you have a pair of sources where the ready time of one | |||
| 1309 | + | // suggests that it will be delivered first but the priority for the | |||
| 1310 | + | // other suggests that it would be delivered first, and the ready time | |||
| 1311 | + | // for both sources is reached during the same main context iteration, | |||
| 1312 | + | // then the order of dispatch is undefined. | |||
| 1313 | + | // | |||
| 1314 | + | // It is a no-op to call this function on a [struct@GLib.Source] which has | |||
| 1315 | + | // already been destroyed with [method@GLib.Source.destroy]. | |||
| 1316 | + | // | |||
| 1317 | + | // This API is only intended to be used by implementations of [struct@GLib.Source]. | |||
| 1318 | + | // Do not call this API on a [struct@GLib.Source] that you did not create. | |||
| 1319 | + | func (x *Source) SetReadyTime(ReadyTimeVar int64) { | |||
| 1320 | + | xSourceSetReadyTime(x.GoPointer(), ReadyTimeVar) | |||
| 1321 | + | } | |||
| 1322 | + | ||||
| 1323 | + | var xSourceSetStaticName func(uintptr, string) | |||
| 1324 | + | ||||
| 1325 | + | // A variant of [method@GLib.Source.set_name] that does not | |||
| 1326 | + | // duplicate the @name, and can only be used with | |||
| 1327 | + | // string literals. | |||
| 1328 | + | func (x *Source) SetStaticName(NameVar string) { | |||
| 1329 | + | xSourceSetStaticName(x.GoPointer(), NameVar) | |||
| 1330 | + | } | |||
| 1331 | + | ||||
| 1332 | + | var xSourceUnref func(uintptr) | |||
| 1333 | + | ||||
| 1334 | + | // Decreases the reference count of a source by one. | |||
| 1335 | + | // | |||
| 1336 | + | // If the resulting reference count is zero the source and associated | |||
| 1337 | + | // memory will be destroyed. | |||
| 1338 | + | func (x *Source) Unref() { | |||
| 1339 | + | xSourceUnref(x.GoPointer()) | |||
| 1340 | + | } | |||
| 1341 | + | ||||
| 1342 | + | // The `GSourceCallbackFuncs` struct contains | |||
| 1343 | + | // functions for managing callback objects. | |||
| 1344 | + | type SourceCallbackFuncs struct { | |||
| 1345 | + | _ structs.HostLayout | |||
| 1346 | + | ||||
| 1347 | + | xRef uintptr | |||
| 1348 | + | ||||
| 1349 | + | xUnref uintptr | |||
| 1350 | + | ||||
| 1351 | + | xGet uintptr | |||
| 1352 | + | } | |||
| 1353 | + | ||||
| 1354 | + | func (x *SourceCallbackFuncs) GoPointer() uintptr { | |||
| 1355 | + | return uintptr(unsafe.Pointer(x)) | |||
| 1356 | + | } | |||
| 1357 | + | ||||
| 1358 | + | func SourceCallbackFuncsNewFromInternalPtr(ptr uintptr) *SourceCallbackFuncs { | |||
| 1359 | + | if ptr == 0 { | |||
| 1360 | + | return nil | |||
| 1361 | + | } | |||
| 1362 | + | rawPtr := *(*unsafe.Pointer)(unsafe.Pointer(&ptr)) | |||
| 1363 | + | return (*SourceCallbackFuncs)(rawPtr) | |||
| 1364 | + | } | |||
| 1365 | + | ||||
| 1366 | + | // OverrideRef sets the "ref" callback function. | |||
| 1367 | + | // Called when a reference is added to the callback object | |||
| 1368 | + | func (x *SourceCallbackFuncs) OverrideRef(cb func(uintptr)) { | |||
| 1369 | + | if cb == nil { | |||
| 1370 | + | x.xRef = 0 | |||
| 1371 | + | } else { | |||
| 1372 | + | x.xRef = purego.NewCallback(func(CbDataVarp uintptr) { | |||
| 1373 | + | cb(CbDataVarp) | |||
| 1374 | + | }) | |||
| 1375 | + | } | |||
| 1376 | + | } | |||
| 1377 | + | ||||
| 1378 | + | // GetRef gets the "ref" callback function. | |||
| 1379 | + | // Called when a reference is added to the callback object | |||
| 1380 | + | func (x *SourceCallbackFuncs) GetRef() func(uintptr) { | |||
| 1381 | + | if x.xRef == 0 { | |||
| 1382 | + | return nil | |||
| 1383 | + | } | |||
| 1384 | + | var rawCallback func(CbDataVarp uintptr) | |||
| 1385 | + | purego.RegisterFunc(&rawCallback, x.xRef) | |||
| 1386 | + | return func(CbDataVar uintptr) { | |||
| 1387 | + | rawCallback(CbDataVar) | |||
| 1388 | + | } | |||
| 1389 | + | } | |||
| 1390 | + | ||||
| 1391 | + | // OverrideUnref sets the "unref" callback function. | |||
| 1392 | + | // Called when a reference to the callback object is dropped | |||
| 1393 | + | func (x *SourceCallbackFuncs) OverrideUnref(cb func(uintptr)) { | |||
| 1394 | + | if cb == nil { | |||
| 1395 | + | x.xUnref = 0 | |||
| 1396 | + | } else { | |||
| 1397 | + | x.xUnref = purego.NewCallback(func(CbDataVarp uintptr) { | |||
| 1398 | + | cb(CbDataVarp) | |||
| 1399 | + | }) | |||
| 1400 | + | } | |||
| 1401 | + | } | |||
| 1402 | + | ||||
| 1403 | + | // GetUnref gets the "unref" callback function. | |||
| 1404 | + | // Called when a reference to the callback object is dropped | |||
| 1405 | + | func (x *SourceCallbackFuncs) GetUnref() func(uintptr) { | |||
| 1406 | + | if x.xUnref == 0 { | |||
| 1407 | + | return nil | |||
| 1408 | + | } | |||
| 1409 | + | var rawCallback func(CbDataVarp uintptr) | |||
| 1410 | + | purego.RegisterFunc(&rawCallback, x.xUnref) | |||
| 1411 | + | return func(CbDataVar uintptr) { | |||
| 1412 | + | rawCallback(CbDataVar) | |||
| 1413 | + | } | |||
| 1414 | + | } | |||
| 1415 | + | ||||
| 1416 | + | // OverrideGet sets the "get" callback function. | |||
| 1417 | + | // Called to extract the callback function and data from the | |||
| 1418 | + | // | |||
| 1419 | + | // callback object. | |||
| 1420 | + | func (x *SourceCallbackFuncs) OverrideGet(cb func(uintptr, *Source, *SourceFunc, uintptr)) { | |||
| 1421 | + | if cb == nil { | |||
| 1422 | + | x.xGet = 0 | |||
| 1423 | + | } else { | |||
| 1424 | + | x.xGet = purego.NewCallback(func(CbDataVarp uintptr, SourceVarp *Source, FuncVarp uintptr, DataVarp uintptr) { | |||
| 1425 | + | cb(CbDataVarp, SourceVarp, (*SourceFunc)(unsafe.Pointer(FuncVarp)), DataVarp) | |||
| 1426 | + | }) | |||
| 1427 | + | } | |||
| 1428 | + | } | |||
| 1429 | + | ||||
| 1430 | + | // GetGet gets the "get" callback function. | |||
| 1431 | + | // Called to extract the callback function and data from the | |||
| 1432 | + | // | |||
| 1433 | + | // callback object. | |||
| 1434 | + | func (x *SourceCallbackFuncs) GetGet() func(uintptr, *Source, *SourceFunc, uintptr) { | |||
| 1435 | + | if x.xGet == 0 { | |||
| 1436 | + | return nil | |||
| 1437 | + | } | |||
| 1438 | + | var rawCallback func(CbDataVarp uintptr, SourceVarp *Source, FuncVarp uintptr, DataVarp uintptr) | |||
| 1439 | + | purego.RegisterFunc(&rawCallback, x.xGet) | |||
| 1440 | + | return func(CbDataVar uintptr, SourceVar *Source, FuncVar *SourceFunc, DataVar uintptr) { | |||
| 1441 | + | rawCallback(CbDataVar, SourceVar, NewCallback(FuncVar), DataVar) | |||
| 1442 | + | } | |||
| 1443 | + | } | |||
| 1444 | + | ||||
| 1445 | + | // The `GSourceFuncs` struct contains a table of | |||
| 1446 | + | // functions used to handle event sources in a generic manner. | |||
| 1447 | + | // | |||
| 1448 | + | // For idle sources, the prepare and check functions always return %TRUE | |||
| 1449 | + | // to indicate that the source is always ready to be processed. The prepare | |||
| 1450 | + | // function also returns a timeout value of 0 to ensure that the poll() call | |||
| 1451 | + | // doesn't block (since that would be time wasted which could have been spent | |||
| 1452 | + | // running the idle function). | |||
| 1453 | + | // | |||
| 1454 | + | // For timeout sources, the prepare and check functions both return %TRUE | |||
| 1455 | + | // if the timeout interval has expired. The prepare function also returns | |||
| 1456 | + | // a timeout value to ensure that the poll() call doesn't block too long | |||
| 1457 | + | // and miss the next timeout. | |||
| 1458 | + | // | |||
| 1459 | + | // For file descriptor sources, the prepare function typically returns %FALSE, | |||
| 1460 | + | // since it must wait until poll() has been called before it knows whether | |||
| 1461 | + | // any events need to be processed. It sets the returned timeout to -1 to | |||
| 1462 | + | // indicate that it doesn't mind how long the poll() call blocks. In the | |||
| 1463 | + | // check function, it tests the results of the poll() call to see if the | |||
| 1464 | + | // required condition has been met, and returns %TRUE if so. | |||
| 1465 | + | type SourceFuncs struct { | |||
| 1466 | + | _ structs.HostLayout | |||
| 1467 | + | ||||
| 1468 | + | Prepare SourceFuncsPrepareFunc | |||
| 1469 | + | ||||
| 1470 | + | Check SourceFuncsCheckFunc | |||
| 1471 | + | ||||
| 1472 | + | Dispatch SourceFuncsDispatchFunc | |||
| 1473 | + | ||||
| 1474 | + | Finalize SourceFuncsFinalizeFunc | |||
| 1475 | + | ||||
| 1476 | + | ClosureCallback SourceFunc | |||
| 1477 | + | ||||
| 1478 | + | ClosureMarshal SourceDummyMarshal | |||
| 1479 | + | } | |||
| 1480 | + | ||||
| 1481 | + | func (x *SourceFuncs) GoPointer() uintptr { | |||
| 1482 | + | return uintptr(unsafe.Pointer(x)) | |||
| 1483 | + | } | |||
| 1484 | + | ||||
| 1485 | + | func SourceFuncsNewFromInternalPtr(ptr uintptr) *SourceFuncs { | |||
| 1486 | + | if ptr == 0 { | |||
| 1487 | + | return nil | |||
| 1488 | + | } | |||
| 1489 | + | rawPtr := *(*unsafe.Pointer)(unsafe.Pointer(&ptr)) | |||
| 1490 | + | return (*SourceFuncs)(rawPtr) | |||
| 1491 | + | } | |||
| 1492 | + | ||||
| 1493 | + | type SourcePrivate struct { | |||
| 1494 | + | _ structs.HostLayout | |||
| 1495 | + | } | |||
| 1496 | + | ||||
| 1497 | + | func (x *SourcePrivate) GoPointer() uintptr { | |||
| 1498 | + | return uintptr(unsafe.Pointer(x)) | |||
| 1499 | + | } | |||
| 1500 | + | ||||
| 1501 | + | func SourcePrivateNewFromInternalPtr(ptr uintptr) *SourcePrivate { | |||
| 1502 | + | if ptr == 0 { | |||
| 1503 | + | return nil | |||
| 1504 | + | } | |||
| 1505 | + | rawPtr := *(*unsafe.Pointer)(unsafe.Pointer(&ptr)) | |||
| 1506 | + | return (*SourcePrivate)(rawPtr) | |||
| 1507 | + | } | |||
| 1508 | + | ||||
| 1509 | + | // Opaque type. See g_main_context_pusher_new() for details. | |||
| 1510 | + | type MainContextPusher = uintptr | |||
| 1511 | + | ||||
| 1512 | + | const ( | |||
| 1513 | + | // Use this for default priority event sources. | |||
| 1514 | + | // | |||
| 1515 | + | // In GLib this priority is used when adding timeout functions | |||
| 1516 | + | // with [func@GLib.timeout_add]. In GDK this priority is used for events | |||
| 1517 | + | // from the X server. | |||
| 1518 | + | PRIORITY_DEFAULT int = 0 | |||
| 1519 | + | // Use this for default priority idle functions. | |||
| 1520 | + | // | |||
| 1521 | + | // In GLib this priority is used when adding idle functions with | |||
| 1522 | + | // [func@GLib.idle_add]. | |||
| 1523 | + | PRIORITY_DEFAULT_IDLE int = 200 | |||
| 1524 | + | // Use this for high priority event sources. | |||
| 1525 | + | // | |||
| 1526 | + | // It is not used within GLib or GTK. | |||
| 1527 | + | PRIORITY_HIGH int = -100 | |||
| 1528 | + | // Use this for high priority idle functions. | |||
| 1529 | + | // | |||
| 1530 | + | // GTK uses %G_PRIORITY_HIGH_IDLE + 10 for resizing operations, | |||
| 1531 | + | // and %G_PRIORITY_HIGH_IDLE + 20 for redrawing operations. (This is | |||
| 1532 | + | // done to ensure that any pending resizes are processed before any | |||
| 1533 | + | // pending redraws, so that widgets are not redrawn twice unnecessarily.) | |||
| 1534 | + | PRIORITY_HIGH_IDLE int = 100 | |||
| 1535 | + | // Use this for very low priority background tasks. | |||
| 1536 | + | // | |||
| 1537 | + | // It is not used within GLib or GTK. | |||
| 1538 | + | PRIORITY_LOW int = 300 | |||
| 1539 | + | // Use this macro as the return value of a [callback@GLib.SourceFunc] to leave | |||
| 1540 | + | // the [struct@GLib.Source] in the main loop. | |||
| 1541 | + | SOURCE_CONTINUE bool = true | |||
| 1542 | + | // Use this macro as the return value of a [callback@GLib.SourceFunc] to remove | |||
| 1543 | + | // the [struct@GLib.Source] from the main loop. | |||
| 1544 | + | SOURCE_REMOVE bool = false | |||
| 1545 | + | ) | |||
| 1546 | + | ||||
| 1547 | + | // Flags to pass to [ctor@GLib.MainContext.new_with_flags] which affect the | |||
| 1548 | + | // behaviour of a [struct@GLib.MainContext]. | |||
| 1549 | + | type MainContextFlags int | |||
| 1550 | + | ||||
| 1551 | + | const ( | |||
| 1552 | + | ||||
| 1553 | + | // Default behaviour. | |||
| 1554 | + | GMainContextFlagsNoneValue MainContextFlags = 0 | |||
| 1555 | + | // Assume that polling for events will | |||
| 1556 | + | // free the thread to process other jobs. That's useful if you're using | |||
| 1557 | + | // `g_main_context_{prepare,query,check,dispatch}` to integrate GMainContext in | |||
| 1558 | + | // other event loops. | |||
| 1559 | + | GMainContextFlagsOwnerlessPollingValue MainContextFlags = 1 | |||
| 1560 | + | ) | |||
| 1561 | + | ||||
| 1562 | + | var xChildWatchAdd func(Pid, uintptr, uintptr) uint | |||
| 1563 | + | ||||
| 1564 | + | // Sets a function to be called when the child indicated by @pid | |||
| 1565 | + | // exits, at a default priority, [const@GLib.PRIORITY_DEFAULT]. | |||
| 1566 | + | // | |||
| 1567 | + | // If you obtain @pid from [func@GLib.spawn_async] or | |||
| 1568 | + | // [func@GLib.spawn_async_with_pipes] you will need to pass | |||
| 1569 | + | // [flags@GLib.SpawnFlags.DO_NOT_REAP_CHILD] as a flag to the spawn function for | |||
| 1570 | + | // the child watching to work. | |||
| 1571 | + | // | |||
| 1572 | + | // Note that on platforms where [type@GLib.Pid] must be explicitly closed | |||
| 1573 | + | // (see [func@GLib.spawn_close_pid]) @pid must not be closed while the | |||
| 1574 | + | // source is still active. Typically, you will want to call | |||
| 1575 | + | // [func@GLib.spawn_close_pid] in the callback function for the source. | |||
| 1576 | + | // | |||
| 1577 | + | // GLib supports only a single callback per process ID. | |||
| 1578 | + | // On POSIX platforms, the same restrictions mentioned for | |||
| 1579 | + | // [func@GLib.child_watch_source_new] apply to this function. | |||
| 1580 | + | // | |||
| 1581 | + | // This internally creates a main loop source using | |||
| 1582 | + | // [func@GLib.child_watch_source_new] and attaches it to the main loop context | |||
| 1583 | + | // using [method@GLib.Source.attach]. You can do these steps manually if you | |||
| 1584 | + | // need greater control. | |||
| 1585 | + | func ChildWatchAdd(PidVar Pid, FunctionVar *ChildWatchFunc, DataVar uintptr) uint { | |||
| 1586 | + | var functionRef uintptr | |||
| 1587 | + | if FunctionVar != nil { | |||
| 1588 | + | functionRef = childWatchFuncTrampolineCb | |||
| 1589 | + | } | |||
| 1590 | + | cret := xChildWatchAdd(PidVar, functionRef, DataVar) | |||
| 1591 | + | trackChildWatchFunc(cret, FunctionVar, DataVar) | |||
| 1592 | + | return cret | |||
| 1593 | + | } | |||
| 1594 | + | ||||
| 1595 | + | var xChildWatchAddFull func(int, Pid, uintptr, uintptr, uintptr) uint | |||
| 1596 | + | ||||
| 1597 | + | // Sets a function to be called when the child indicated by @pid | |||
| 1598 | + | // exits, at the priority @priority. | |||
| 1599 | + | // | |||
| 1600 | + | // If you obtain @pid from [func@GLib.spawn_async] or | |||
| 1601 | + | // [func@GLib.spawn_async_with_pipes] you will need to pass | |||
| 1602 | + | // [flags@GLib.SpawnFlags.DO_NOT_REAP_CHILD] as a flag to the spawn function for | |||
| 1603 | + | // the child watching to work. | |||
| 1604 | + | // | |||
| 1605 | + | // In many programs, you will want to call [func@GLib.spawn_check_wait_status] | |||
| 1606 | + | // in the callback to determine whether or not the child exited | |||
| 1607 | + | // successfully. | |||
| 1608 | + | // | |||
| 1609 | + | // Also, note that on platforms where [type@GLib.Pid] must be explicitly closed | |||
| 1610 | + | // (see [func@GLib.spawn_close_pid]) @pid must not be closed while the source | |||
| 1611 | + | // is still active. Typically, you should invoke [func@GLib.spawn_close_pid] | |||
| 1612 | + | // in the callback function for the source. | |||
| 1613 | + | // | |||
| 1614 | + | // GLib supports only a single callback per process ID. | |||
| 1615 | + | // On POSIX platforms, the same restrictions mentioned for | |||
| 1616 | + | // [func@GLib.child_watch_source_new] apply to this function. | |||
| 1617 | + | // | |||
| 1618 | + | // This internally creates a main loop source using | |||
| 1619 | + | // [func@GLib.child_watch_source_new] and attaches it to the main loop context | |||
| 1620 | + | // using [method@GLib.Source.attach]. You can do these steps manually if you | |||
| 1621 | + | // need greater control. | |||
| 1622 | + | func ChildWatchAddFull(PriorityVar int, PidVar Pid, FunctionVar *ChildWatchFunc, DataVar uintptr, NotifyVar *DestroyNotify) uint { | |||
| 1623 | + | var functionRef uintptr | |||
| 1624 | + | if FunctionVar != nil { | |||
| 1625 | + | functionRef = childWatchFuncTrampolineCb | |||
| 1626 | + | } | |||
| 1627 | + | cret := xChildWatchAddFull(PriorityVar, PidVar, functionRef, DataVar, NewCallbackNullable(NotifyVar)) | |||
| 1628 | + | trackChildWatchFunc(cret, FunctionVar, DataVar) | |||
| 1629 | + | return cret | |||
| 1630 | + | } | |||
| 1631 | + | ||||
| 1632 | + | var xChildWatchSourceNew func(Pid) uintptr | |||
| 1633 | + | ||||
| 1634 | + | // Creates a new child watch source. | |||
| 1635 | + | // | |||
| 1636 | + | // The source will not initially be associated with any | |||
| 1637 | + | // [struct@GLib.MainContext] and must be added to one with | |||
| 1638 | + | // [method@GLib.Source.attach] before it will be executed. | |||
| 1639 | + | // | |||
| 1640 | + | // Note that child watch sources can only be used in conjunction with | |||
| 1641 | + | // `g_spawn...` when the [flags@GLib.SpawnFlags.DO_NOT_REAP_CHILD] flag is used. | |||
| 1642 | + | // | |||
| 1643 | + | // Note that on platforms where [type@GLib.Pid] must be explicitly closed | |||
| 1644 | + | // (see [func@GLib.spawn_close_pid]) @pid must not be closed while the | |||
| 1645 | + | // source is still active. Typically, you will want to call | |||
| 1646 | + | // [func@GLib.spawn_close_pid] in the callback function for the source. | |||
| 1647 | + | // | |||
| 1648 | + | // On POSIX platforms, the following restrictions apply to this API | |||
| 1649 | + | // due to limitations in POSIX process interfaces: | |||
| 1650 | + | // | |||
| 1651 | + | // - @pid must be a child of this process. | |||
| 1652 | + | // - @pid must be positive. | |||
| 1653 | + | // - The application must not call [`waitpid()`](man:waitpid(1)) with a | |||
| 1654 | + | // non-positive first argument, for instance in another thread. | |||
| 1655 | + | // - The application must not wait for @pid to exit by any other | |||
| 1656 | + | // mechanism, including `waitpid(pid, ...)` or a second child-watch | |||
| 1657 | + | // source for the same @pid. | |||
| 1658 | + | // - The application must not ignore `SIGCHLD`. | |||
| 1659 | + | // - Before 2.78, the application could not send a signal ([`kill()`](man:kill(2))) to the | |||
| 1660 | + | // watched @pid in a race free manner. Since 2.78, you can do that while the | |||
| 1661 | + | // associated [struct@GLib.MainContext] is acquired. | |||
| 1662 | + | // - Before 2.78, even after destroying the [struct@GLib.Source], you could not | |||
| 1663 | + | // be sure that @pid wasn’t already reaped. Hence, it was also not | |||
| 1664 | + | // safe to `kill()` or `waitpid()` on the process ID after the child watch | |||
| 1665 | + | // source was gone. Destroying the source before it fired made it | |||
| 1666 | + | // impossible to reliably reap the process. | |||
| 1667 | + | // | |||
| 1668 | + | // If any of those conditions are not met, this and related APIs will | |||
| 1669 | + | // not work correctly. This can often be diagnosed via a GLib warning | |||
| 1670 | + | // stating that `ECHILD` was received by `waitpid()`. | |||
| 1671 | + | // | |||
| 1672 | + | // Calling [`waitpid()`](man:waitpid(2)) for specific processes other than @pid | |||
| 1673 | + | // remains a valid thing to do. | |||
| 1674 | + | func ChildWatchSourceNew(PidVar Pid) *Source { | |||
| 1675 | + | cret := xChildWatchSourceNew(PidVar) | |||
| 1676 | + | if cret == 0 { | |||
| 1677 | + | return nil | |||
| 1678 | + | } | |||
| 1679 | + | return (*Source)(unsafe.Pointer(cret)) | |||
| 1680 | + | } | |||
| 1681 | + | ||||
| 1682 | + | var xClearHandleId func(uint, uintptr) | |||
| 1683 | + | ||||
| 1684 | + | // Clears a numeric handler, such as a [struct@GLib.Source] ID. | |||
| 1685 | + | // | |||
| 1686 | + | // The @tag_ptr must be a valid pointer to the variable holding the handler. | |||
| 1687 | + | // | |||
| 1688 | + | // If the ID is zero then this function does nothing. | |||
| 1689 | + | // Otherwise, @clear_func is called with the ID as a parameter, and the tag is | |||
| 1690 | + | // set to zero. | |||
| 1691 | + | // | |||
| 1692 | + | // A macro is also included that allows this function to be used without | |||
| 1693 | + | // pointer casts. | |||
| 1694 | + | func ClearHandleId(TagPtrVar uint, ClearFuncVar *ClearHandleFunc) { | |||
| 1695 | + | xClearHandleId(TagPtrVar, NewCallback(ClearFuncVar)) | |||
| 1696 | + | } | |||
| 1697 | + | ||||
| 1698 | + | var xGetCurrentTime func(*TimeVal) | |||
| 1699 | + | ||||
| 1700 | + | // Queries the system wall-clock time. | |||
| 1701 | + | // | |||
| 1702 | + | // This is equivalent to the UNIX [`gettimeofday()`](man:gettimeofday(2)) | |||
| 1703 | + | // function, but portable. | |||
| 1704 | + | // | |||
| 1705 | + | // You may find [func@GLib.get_real_time] to be more convenient. | |||
| 1706 | + | func GetCurrentTime(ResultVar *TimeVal) { | |||
| 1707 | + | xGetCurrentTime(ResultVar) | |||
| 1708 | + | } | |||
| 1709 | + | ||||
| 1710 | + | var xGetMonotonicTime func() int64 | |||
| 1711 | + | ||||
| 1712 | + | // Queries the system monotonic time in microseconds. | |||
| 1713 | + | // | |||
| 1714 | + | // The monotonic clock will always increase and doesn’t suffer | |||
| 1715 | + | // discontinuities when the user (or NTP) changes the system time. It | |||
| 1716 | + | // may or may not continue to tick during times where the machine is | |||
| 1717 | + | // suspended. | |||
| 1718 | + | // | |||
| 1719 | + | // We try to use the clock that corresponds as closely as possible to | |||
| 1720 | + | // the passage of time as measured by system calls such as | |||
| 1721 | + | // [`poll()`](man:poll(2)) but it | |||
| 1722 | + | // may not always be possible to do this. | |||
| 1723 | + | // | |||
| 1724 | + | // A more accurate version of this function exists. | |||
| 1725 | + | // [func@GLib.get_monotonic_time_ns] returns the time in nanoseconds. | |||
| 1726 | + | func GetMonotonicTime() int64 { | |||
| 1727 | + | cret := xGetMonotonicTime() | |||
| 1728 | + | return cret | |||
| 1729 | + | } | |||
| 1730 | + | ||||
| 1731 | + | var xGetMonotonicTimeNs func() uint64 | |||
| 1732 | + | ||||
| 1733 | + | // Queries the system monotonic time in nanoseconds. | |||
| 1734 | + | // | |||
| 1735 | + | // The monotonic clock will always increase and doesn’t suffer | |||
| 1736 | + | // discontinuities when the user (or NTP) changes the system time. It | |||
| 1737 | + | // may or may not continue to tick during times where the machine is | |||
| 1738 | + | // suspended. | |||
| 1739 | + | // | |||
| 1740 | + | // We try to use the clock that corresponds as closely as possible to | |||
| 1741 | + | // the passage of time as measured by system calls such as | |||
| 1742 | + | // [`poll()`](man:poll(2)) but it | |||
| 1743 | + | // may not always be possible to do this. | |||
| 1744 | + | // | |||
| 1745 | + | // Another version of this function exists. | |||
| 1746 | + | // [func@GLib.get_monotonic_time] returns the time in microseconds. | |||
| 1747 | + | // If you want to support older GLib versions, it is an alternative. | |||
| 1748 | + | func GetMonotonicTimeNs() uint64 { | |||
| 1749 | + | cret := xGetMonotonicTimeNs() | |||
| 1750 | + | return cret | |||
| 1751 | + | } | |||
| 1752 | + | ||||
| 1753 | + | var xGetRealTime func() int64 | |||
| 1754 | + | ||||
| 1755 | + | // Queries the system wall-clock time. | |||
| 1756 | + | // | |||
| 1757 | + | // This is equivalent to the UNIX [`gettimeofday()`](man:gettimeofday(2)) | |||
| 1758 | + | // function, but portable. | |||
| 1759 | + | // | |||
| 1760 | + | // You should only use this call if you are actually interested in the real | |||
| 1761 | + | // wall-clock time. [func@GLib.get_monotonic_time] is probably more useful for | |||
| 1762 | + | // measuring intervals. | |||
| 1763 | + | func GetRealTime() int64 { | |||
| 1764 | + | cret := xGetRealTime() | |||
| 1765 | + | return cret | |||
| 1766 | + | } | |||
| 1767 | + | ||||
| 1768 | + | var xIdleAdd func(uintptr, uintptr) uint | |||
| 1769 | + | ||||
| 1770 | + | // Adds a function to be called whenever there are no higher priority | |||
| 1771 | + | // events pending to the default main loop. | |||
| 1772 | + | // | |||
| 1773 | + | // The function is given the | |||
| 1774 | + | // default idle priority, [const@GLib.PRIORITY_DEFAULT_IDLE]. If the function | |||
| 1775 | + | // returns [const@GLib.SOURCE_REMOVE] it is automatically removed from the list | |||
| 1776 | + | // of event sources and will not be called again. | |||
| 1777 | + | // | |||
| 1778 | + | // See [main loop memory management](main-loop.html#memory-management-of-sources) for details | |||
| 1779 | + | // on how to handle the return value and memory management of @data. | |||
| 1780 | + | // | |||
| 1781 | + | // This internally creates a main loop source using [func@GLib.idle_source_new] | |||
| 1782 | + | // and attaches it to the global [struct@GLib.MainContext] using | |||
| 1783 | + | // [method@GLib.Source.attach], so the callback will be invoked in whichever | |||
| 1784 | + | // thread is running that main context. You can do these steps manually if you | |||
| 1785 | + | // need greater control or to use a custom main context. | |||
| 1786 | + | func IdleAdd(FunctionVar *SourceFunc, DataVar uintptr) uint { | |||
| 1787 | + | var functionRef uintptr | |||
| 1788 | + | if FunctionVar != nil { | |||
| 1789 | + | functionRef = sourceFuncTrampolineCb | |||
| 1790 | + | } | |||
| 1791 | + | cret := xIdleAdd(functionRef, DataVar) | |||
| 1792 | + | trackSourceFunc(cret, FunctionVar, DataVar) | |||
| 1793 | + | return cret | |||
| 1794 | + | } | |||
| 1795 | + | ||||
| 1796 | + | var xIdleAddFull func(int, uintptr, uintptr, uintptr) uint | |||
| 1797 | + | ||||
| 1798 | + | // Adds a function to be called whenever there are no higher priority | |||
| 1799 | + | // events pending. | |||
| 1800 | + | // | |||
| 1801 | + | // If the function returns [const@GLib.SOURCE_REMOVE] it is automatically | |||
| 1802 | + | // removed from the list of event sources and will not be called again. | |||
| 1803 | + | // | |||
| 1804 | + | // See [main loop memory management](main-loop.html#memory-management-of-sources) for details | |||
| 1805 | + | // on how to handle the return value and memory management of @data. | |||
| 1806 | + | // | |||
| 1807 | + | // This internally creates a main loop source using [func@GLib.idle_source_new] | |||
| 1808 | + | // and attaches it to the global [struct@GLib.MainContext] using | |||
| 1809 | + | // [method@GLib.Source.attach], so the callback will be invoked in whichever | |||
| 1810 | + | // thread is running that main context. You can do these steps manually if you | |||
| 1811 | + | // need greater control or to use a custom main context. | |||
| 1812 | + | func IdleAddFull(PriorityVar int, FunctionVar *SourceFunc, DataVar uintptr, NotifyVar *DestroyNotify) uint { | |||
| 1813 | + | var functionRef uintptr | |||
| 1814 | + | if FunctionVar != nil { | |||
| 1815 | + | functionRef = sourceFuncTrampolineCb | |||
| 1816 | + | } | |||
| 1817 | + | cret := xIdleAddFull(PriorityVar, functionRef, DataVar, NewCallbackNullable(NotifyVar)) | |||
| 1818 | + | trackSourceFunc(cret, FunctionVar, DataVar) | |||
| 1819 | + | return cret | |||
| 1820 | + | } | |||
| 1821 | + | ||||
| 1822 | + | var xIdleAddOnce func(uintptr, uintptr) uint | |||
| 1823 | + | ||||
| 1824 | + | // Adds a function to be called whenever there are no higher priority | |||
| 1825 | + | // events pending to the default main loop. | |||
| 1826 | + | // | |||
| 1827 | + | // The function is given the | |||
| 1828 | + | // default idle priority, [const@GLib.PRIORITY_DEFAULT_IDLE]. | |||
| 1829 | + | // | |||
| 1830 | + | // The function will only be called once and then the source will be | |||
| 1831 | + | // automatically removed from the main context. | |||
| 1832 | + | // | |||
| 1833 | + | // This function otherwise behaves like [func@GLib.idle_add]. | |||
| 1834 | + | func IdleAddOnce(FunctionVar *SourceOnceFunc, DataVar uintptr) uint { | |||
| 1835 | + | var functionRef uintptr | |||
| 1836 | + | if FunctionVar != nil { | |||
| 1837 | + | functionRef = sourceOnceFuncTrampolineCb | |||
| 1838 | + | } | |||
| 1839 | + | cret := xIdleAddOnce(functionRef, DataVar) | |||
| 1840 | + | trackSourceOnceFunc(cret, FunctionVar, DataVar) | |||
| 1841 | + | return cret | |||
| 1842 | + | } | |||
| 1843 | + | ||||
| 1844 | + | var xIdleRemoveByData func(uintptr) bool | |||
| 1845 | + | ||||
| 1846 | + | // Removes the idle function with the given data. | |||
| 1847 | + | func IdleRemoveByData(DataVar uintptr) bool { | |||
| 1848 | + | trackedSourceID := trackedSourceIDByUserData(DataVar) | |||
| 1849 | + | cret := xIdleRemoveByData(DataVar) | |||
| 1850 | + | if cret { | |||
| 1851 | + | removeTrackedSource(trackedSourceID) | |||
| 1852 | + | } | |||
| 1853 | + | return cret | |||
| 1854 | + | } | |||
| 1855 | + | ||||
| 1856 | + | var xIdleSourceNew func() uintptr | |||
| 1857 | + | ||||
| 1858 | + | // Creates a new idle source. | |||
| 1859 | + | // | |||
| 1860 | + | // The source will not initially be associated with any | |||
| 1861 | + | // [struct@GLib.MainContext] and must be added to one with | |||
| 1862 | + | // [method@GLib.Source.attach] before it will be executed. Note that the | |||
| 1863 | + | // default priority for idle sources is [const@GLib.PRIORITY_DEFAULT_IDLE], as | |||
| 1864 | + | // compared to other sources which have a default priority of | |||
| 1865 | + | // [const@GLib.PRIORITY_DEFAULT]. | |||
| 1866 | + | func IdleSourceNew() *Source { | |||
| 1867 | + | cret := xIdleSourceNew() | |||
| 1868 | + | if cret == 0 { | |||
| 1869 | + | return nil | |||
| 1870 | + | } | |||
| 1871 | + | return (*Source)(unsafe.Pointer(cret)) | |||
| 1872 | + | } | |||
| 1873 | + | ||||
| 1874 | + | var xMainContextDefault func() uintptr | |||
| 1875 | + | ||||
| 1876 | + | // Returns the global-default main context. | |||
| 1877 | + | // | |||
| 1878 | + | // This is the main context | |||
| 1879 | + | // used for main loop functions when a main loop is not explicitly | |||
| 1880 | + | // specified, and corresponds to the ‘main’ main loop. See also | |||
| 1881 | + | // [func@GLib.MainContext.get_thread_default]. | |||
| 1882 | + | func MainContextDefault() *MainContext { | |||
| 1883 | + | cret := xMainContextDefault() | |||
| 1884 | + | if cret == 0 { | |||
| 1885 | + | return nil | |||
| 1886 | + | } | |||
| 1887 | + | return (*MainContext)(unsafe.Pointer(cret)) | |||
| 1888 | + | } | |||
| 1889 | + | ||||
| 1890 | + | var xMainContextGetThreadDefault func() uintptr | |||
| 1891 | + | ||||
| 1892 | + | // Gets the thread-default main context for this thread. | |||
| 1893 | + | // | |||
| 1894 | + | // Asynchronous operations that want to be able to be run in contexts other than | |||
| 1895 | + | // the default one should call this method or | |||
| 1896 | + | // [func@GLib.MainContext.ref_thread_default] to get a | |||
| 1897 | + | // [struct@GLib.MainContext] to add their [struct@GLib.Source]s to. (Note that | |||
| 1898 | + | // even in single-threaded programs applications may sometimes want to | |||
| 1899 | + | // temporarily push a non-default context, so it is not safe to assume that | |||
| 1900 | + | // this will always return `NULL` if you are running in the default thread.) | |||
| 1901 | + | // | |||
| 1902 | + | // If you need to hold a reference on the context, use | |||
| 1903 | + | // [func@GLib.MainContext.ref_thread_default] instead. | |||
| 1904 | + | func MainContextGetThreadDefault() *MainContext { | |||
| 1905 | + | cret := xMainContextGetThreadDefault() | |||
| 1906 | + | if cret == 0 { | |||
| 1907 | + | return nil | |||
| 1908 | + | } | |||
| 1909 | + | return (*MainContext)(unsafe.Pointer(cret)) | |||
| 1910 | + | } | |||
| 1911 | + | ||||
| 1912 | + | var xMainContextRefThreadDefault func() uintptr | |||
| 1913 | + | ||||
| 1914 | + | // Gets a reference to the thread-default [struct@GLib.MainContext] for this | |||
| 1915 | + | // thread | |||
| 1916 | + | // | |||
| 1917 | + | // This is the same as [func@GLib.MainContext.get_thread_default], but it also | |||
| 1918 | + | // adds a reference to the returned main context with [method@GLib.MainContext.ref]. | |||
| 1919 | + | // In addition, unlike | |||
| 1920 | + | // [func@GLib.MainContext.get_thread_default], if the thread-default context | |||
| 1921 | + | // is the global-default context, this will return that | |||
| 1922 | + | // [struct@GLib.MainContext] (with a ref added to it) rather than returning | |||
| 1923 | + | // `NULL`. | |||
| 1924 | + | func MainContextRefThreadDefault() *MainContext { | |||
| 1925 | + | cret := xMainContextRefThreadDefault() | |||
| 1926 | + | if cret == 0 { | |||
| 1927 | + | return nil | |||
| 1928 | + | } | |||
| 1929 | + | return (*MainContext)(unsafe.Pointer(cret)) | |||
| 1930 | + | } | |||
| 1931 | + | ||||
| 1932 | + | var xMainCurrentSource func() uintptr | |||
| 1933 | + | ||||
| 1934 | + | // Returns the currently firing source for this thread. | |||
| 1935 | + | func MainCurrentSource() *Source { | |||
| 1936 | + | cret := xMainCurrentSource() | |||
| 1937 | + | if cret == 0 { | |||
| 1938 | + | return nil | |||
| 1939 | + | } | |||
| 1940 | + | return (*Source)(unsafe.Pointer(cret)) | |||
| 1941 | + | } | |||
| 1942 | + | ||||
| 1943 | + | var xMainDepth func() int | |||
| 1944 | + | ||||
| 1945 | + | // Returns the depth of the stack of calls to | |||
| 1946 | + | // [method@GLib.MainContext.dispatch] on any #GMainContext in the current thread. | |||
| 1947 | + | // | |||
| 1948 | + | // That is, when called from the top level, it gives `0`. When | |||
| 1949 | + | // called from within a callback from [method@GLib.MainContext.iteration] | |||
| 1950 | + | // (or [method@GLib.MainLoop.run], etc.) it returns `1`. When called from within | |||
| 1951 | + | // a callback to a recursive call to [method@GLib.MainContext.iteration], | |||
| 1952 | + | // it returns `2`. And so forth. | |||
| 1953 | + | // | |||
| 1954 | + | // This function is useful in a situation like the following: | |||
| 1955 | + | // Imagine an extremely simple ‘garbage collected’ system. | |||
| 1956 | + | // | |||
| 1957 | + | // ```c | |||
| 1958 | + | // static GList *free_list; | |||
| 1959 | + | // | |||
| 1960 | + | // gpointer | |||
| 1961 | + | // allocate_memory (gsize size) | |||
| 1962 | + | // | |||
| 1963 | + | // { | |||
| 1964 | + | // gpointer result = g_malloc (size); | |||
| 1965 | + | // free_list = g_list_prepend (free_list, result); | |||
| 1966 | + | // return result; | |||
| 1967 | + | // } | |||
| 1968 | + | // | |||
| 1969 | + | // void | |||
| 1970 | + | // free_allocated_memory (void) | |||
| 1971 | + | // | |||
| 1972 | + | // { | |||
| 1973 | + | // GList *l; | |||
| 1974 | + | // for (l = free_list; l; l = l->next); | |||
| 1975 | + | // g_free (l->data); | |||
| 1976 | + | // g_list_free (free_list); | |||
| 1977 | + | // free_list = NULL; | |||
| 1978 | + | // } | |||
| 1979 | + | // | |||
| 1980 | + | // [...] | |||
| 1981 | + | // | |||
| 1982 | + | // while (TRUE); | |||
| 1983 | + | // | |||
| 1984 | + | // { | |||
| 1985 | + | // g_main_context_iteration (NULL, TRUE); | |||
| 1986 | + | // free_allocated_memory(); | |||
| 1987 | + | // } | |||
| 1988 | + | // | |||
| 1989 | + | // ``` | |||
| 1990 | + | // | |||
| 1991 | + | // This works from an application, however, if you want to do the same | |||
| 1992 | + | // thing from a library, it gets more difficult, since you no longer | |||
| 1993 | + | // control the main loop. You might think you can simply use an idle | |||
| 1994 | + | // function to make the call to `free_allocated_memory()`, but that | |||
| 1995 | + | // doesn’t work, since the idle function could be called from a | |||
| 1996 | + | // recursive callback. This can be fixed by using [func@GLib.main_depth] | |||
| 1997 | + | // | |||
| 1998 | + | // ```c | |||
| 1999 | + | // gpointer | |||
| 2000 | + | // allocate_memory (gsize size) | |||
| 2001 | + | // | |||
| 2002 | + | // { | |||
| 2003 | + | // FreeListBlock *block = g_new (FreeListBlock, 1); | |||
| 2004 | + | // block->mem = g_malloc (size); | |||
| 2005 | + | // block->depth = g_main_depth (); | |||
| 2006 | + | // free_list = g_list_prepend (free_list, block); | |||
| 2007 | + | // return block->mem; | |||
| 2008 | + | // } | |||
| 2009 | + | // | |||
| 2010 | + | // void | |||
| 2011 | + | // free_allocated_memory (void) | |||
| 2012 | + | // | |||
| 2013 | + | // { | |||
| 2014 | + | // GList *l; | |||
| 2015 | + | // | |||
| 2016 | + | // int depth = g_main_depth (); | |||
| 2017 | + | // for (l = free_list; l; ); | |||
| 2018 | + | // { | |||
| 2019 | + | // GList *next = l->next; | |||
| 2020 | + | // FreeListBlock *block = l->data; | |||
| 2021 | + | // if (block->depth > depth) | |||
| 2022 | + | // { | |||
| 2023 | + | // g_free (block->mem); | |||
| 2024 | + | // g_free (block); | |||
| 2025 | + | // free_list = g_list_delete_link (free_list, l); | |||
| 2026 | + | // } | |||
| 2027 | + | // | |||
| 2028 | + | // l = next; | |||
| 2029 | + | // } | |||
| 2030 | + | // } | |||
| 2031 | + | // | |||
| 2032 | + | // ``` | |||
| 2033 | + | // | |||
| 2034 | + | // There is a temptation to use [func@GLib.main_depth] to solve | |||
| 2035 | + | // problems with reentrancy. For instance, while waiting for data | |||
| 2036 | + | // to be received from the network in response to a menu item, | |||
| 2037 | + | // the menu item might be selected again. It might seem that | |||
| 2038 | + | // one could make the menu item’s callback return immediately | |||
| 2039 | + | // and do nothing if [func@GLib.main_depth] returns a value greater than 1. | |||
| 2040 | + | // However, this should be avoided since the user then sees selecting | |||
| 2041 | + | // the menu item do nothing. Furthermore, you’ll find yourself adding | |||
| 2042 | + | // these checks all over your code, since there are doubtless many, | |||
| 2043 | + | // many things that the user could do. Instead, you can use the | |||
| 2044 | + | // following techniques: | |||
| 2045 | + | // | |||
| 2046 | + | // 1. Use `gtk_widget_set_sensitive()` or modal dialogs to prevent | |||
| 2047 | + | // the user from interacting with elements while the main | |||
| 2048 | + | // loop is recursing. | |||
| 2049 | + | // | |||
| 2050 | + | // 2. Avoid main loop recursion in situations where you can’t handle | |||
| 2051 | + | // arbitrary callbacks. Instead, structure your code so that you | |||
| 2052 | + | // simply return to the main loop and then get called again when | |||
| 2053 | + | // there is more work to do. | |||
| 2054 | + | func MainDepth() int { | |||
| 2055 | + | cret := xMainDepth() | |||
| 2056 | + | return cret | |||
| 2057 | + | } | |||
| 2058 | + | ||||
| 2059 | + | var xSourceRemove func(uint) bool | |||
| 2060 | + | ||||
| 2061 | + | // Removes the source with the given ID from the default main context. | |||
| 2062 | + | // | |||
| 2063 | + | // You must | |||
| 2064 | + | // use [method@GLib.Source.destroy] for sources added to a non-default main context. | |||
| 2065 | + | // | |||
| 2066 | + | // The ID of a [struct@GLib.Source] is given by [method@GLib.Source.get_id], or will be | |||
| 2067 | + | // returned by the functions [method@GLib.Source.attach], [func@GLib.idle_add], | |||
| 2068 | + | // [func@GLib.idle_add_full], [func@GLib.timeout_add], | |||
| 2069 | + | // [func@GLib.timeout_add_full], [func@GLib.child_watch_add], | |||
| 2070 | + | // [func@GLib.child_watch_add_full], [func@GLib.io_add_watch], and | |||
| 2071 | + | // [func@GLib.io_add_watch_full]. | |||
| 2072 | + | // | |||
| 2073 | + | // It is a programmer error to attempt to remove a non-existent source. | |||
| 2074 | + | // | |||
| 2075 | + | // More specifically: source IDs can be reissued after a source has been | |||
| 2076 | + | // destroyed and therefore it is never valid to use this function with a | |||
| 2077 | + | // source ID which may have already been removed. An example is when | |||
| 2078 | + | // scheduling an idle to run in another thread with [func@GLib.idle_add]: the | |||
| 2079 | + | // idle may already have run and been removed by the time this function | |||
| 2080 | + | // is called on its (now invalid) source ID. This source ID may have | |||
| 2081 | + | // been reissued, leading to the operation being performed against the | |||
| 2082 | + | // wrong source. | |||
| 2083 | + | func SourceRemove(TagVar uint) bool { | |||
| 2084 | + | cret := xSourceRemove(TagVar) | |||
| 2085 | + | if cret { | |||
| 2086 | + | removeTrackedSource(TagVar) | |||
| 2087 | + | } | |||
| 2088 | + | return cret | |||
| 2089 | + | } | |||
| 2090 | + | ||||
| 2091 | + | var xSourceRemoveByFuncsUserData func(*SourceFuncs, uintptr) bool | |||
| 2092 | + | ||||
| 2093 | + | // Removes a source from the default main loop context given the | |||
| 2094 | + | // source functions and user data. | |||
| 2095 | + | // | |||
| 2096 | + | // If multiple sources exist with the same source functions and user data, only | |||
| 2097 | + | // one will be destroyed. | |||
| 2098 | + | func SourceRemoveByFuncsUserData(FuncsVar *SourceFuncs, UserDataVar uintptr) bool { | |||
| 2099 | + | cret := xSourceRemoveByFuncsUserData(FuncsVar, UserDataVar) | |||
| 2100 | + | return cret | |||
| 2101 | + | } | |||
| 2102 | + | ||||
| 2103 | + | var xSourceRemoveByUserData func(uintptr) bool | |||
| 2104 | + | ||||
| 2105 | + | // Removes a source from the default main loop context given the user | |||
| 2106 | + | // data for the callback. | |||
| 2107 | + | // | |||
| 2108 | + | // If multiple sources exist with the same user data, only one will be destroyed. | |||
| 2109 | + | func SourceRemoveByUserData(UserDataVar uintptr) bool { | |||
| 2110 | + | trackedSourceID := trackedSourceIDByUserData(UserDataVar) | |||
| 2111 | + | cret := xSourceRemoveByUserData(UserDataVar) | |||
| 2112 | + | if cret { | |||
| 2113 | + | removeTrackedSource(trackedSourceID) | |||
| 2114 | + | } | |||
| 2115 | + | return cret | |||
| 2116 | + | } | |||
| 2117 | + | ||||
| 2118 | + | var xSourceSetNameById func(uint, string) | |||
| 2119 | + | ||||
| 2120 | + | // Sets the name of a source using its ID. | |||
| 2121 | + | // | |||
| 2122 | + | // This is a convenience utility to set source names from the return | |||
| 2123 | + | // value of [func@GLib.idle_add], [func@GLib.timeout_add], etc. | |||
| 2124 | + | // | |||
| 2125 | + | // It is a programmer error to attempt to set the name of a non-existent | |||
| 2126 | + | // source. | |||
| 2127 | + | // | |||
| 2128 | + | // More specifically: source IDs can be reissued after a source has been | |||
| 2129 | + | // destroyed and therefore it is never valid to use this function with a | |||
| 2130 | + | // source ID which may have already been removed. An example is when | |||
| 2131 | + | // scheduling an idle to run in another thread with [func@GLib.idle_add]: the | |||
| 2132 | + | // idle may already have run and been removed by the time this function | |||
| 2133 | + | // is called on its (now invalid) source ID. This source ID may have | |||
| 2134 | + | // been reissued, leading to the operation being performed against the | |||
| 2135 | + | // wrong source. | |||
| 2136 | + | func SourceSetNameById(TagVar uint, NameVar string) { | |||
| 2137 | + | xSourceSetNameById(TagVar, NameVar) | |||
| 2138 | + | } | |||
| 2139 | + | ||||
| 2140 | + | var xTimeoutAdd func(uint, uintptr, uintptr) uint | |||
| 2141 | + | ||||
| 2142 | + | // Sets a function to be called at regular intervals, with the default | |||
| 2143 | + | // priority, [const@GLib.PRIORITY_DEFAULT]. | |||
| 2144 | + | // | |||
| 2145 | + | // The given @function is called repeatedly until it returns | |||
| 2146 | + | // [const@GLib.SOURCE_REMOVE], at which point the timeout is | |||
| 2147 | + | // automatically destroyed and the function will not be called again. The first | |||
| 2148 | + | // call to the function will be at the end of the first @interval. | |||
| 2149 | + | // | |||
| 2150 | + | // Note that timeout functions may be delayed, due to the processing of other | |||
| 2151 | + | // event sources. Thus they should not be relied on for precise timing. | |||
| 2152 | + | // After each call to the timeout function, the time of the next | |||
| 2153 | + | // timeout is recalculated based on the current time and the given interval | |||
| 2154 | + | // (it does not try to ‘catch up’ time lost in delays). | |||
| 2155 | + | // | |||
| 2156 | + | // See [main loop memory management](main-loop.html#memory-management-of-sources) for details | |||
| 2157 | + | // on how to handle the return value and memory management of @data. | |||
| 2158 | + | // | |||
| 2159 | + | // If you want to have a timer in the ‘seconds’ range and do not care | |||
| 2160 | + | // about the exact time of the first call of the timer, use the | |||
| 2161 | + | // [func@GLib.timeout_add_seconds] function; this function allows for more | |||
| 2162 | + | // optimizations and more efficient system power usage. | |||
| 2163 | + | // | |||
| 2164 | + | // This internally creates a main loop source using | |||
| 2165 | + | // [func@GLib.timeout_source_new] and attaches it to the global | |||
| 2166 | + | // [struct@GLib.MainContext] using [method@GLib.Source.attach], so the callback | |||
| 2167 | + | // will be invoked in whichever thread is running that main context. You can do | |||
| 2168 | + | // these steps manually if you need greater control or to use a custom main | |||
| 2169 | + | // context. | |||
| 2170 | + | // | |||
| 2171 | + | // It is safe to call this function from any thread. | |||
| 2172 | + | // | |||
| 2173 | + | // The interval given is in terms of monotonic time, not wall clock | |||
| 2174 | + | // time. See [func@GLib.get_monotonic_time]. | |||
| 2175 | + | func TimeoutAdd(IntervalVar uint, FunctionVar *SourceFunc, DataVar uintptr) uint { | |||
| 2176 | + | var functionRef uintptr | |||
| 2177 | + | if FunctionVar != nil { | |||
| 2178 | + | functionRef = sourceFuncTrampolineCb | |||
| 2179 | + | } | |||
| 2180 | + | cret := xTimeoutAdd(IntervalVar, functionRef, DataVar) | |||
| 2181 | + | trackSourceFunc(cret, FunctionVar, DataVar) | |||
| 2182 | + | return cret | |||
| 2183 | + | } | |||
| 2184 | + | ||||
| 2185 | + | var xTimeoutAddFull func(int, uint, uintptr, uintptr, uintptr) uint | |||
| 2186 | + | ||||
| 2187 | + | // Sets a function to be called at regular intervals, with the given | |||
| 2188 | + | // priority. | |||
| 2189 | + | // | |||
| 2190 | + | // The function is called repeatedly until it returns | |||
| 2191 | + | // [const@GLib.SOURCE_REMOVE], at which point the timeout is automatically | |||
| 2192 | + | // destroyed and | |||
| 2193 | + | // the function will not be called again. The @notify function is | |||
| 2194 | + | // called when the timeout is destroyed. The first call to the | |||
| 2195 | + | // function will be at the end of the first @interval. | |||
| 2196 | + | // | |||
| 2197 | + | // Note that timeout functions may be delayed, due to the processing of other | |||
| 2198 | + | // event sources. Thus they should not be relied on for precise timing. | |||
| 2199 | + | // After each call to the timeout function, the time of the next | |||
| 2200 | + | // timeout is recalculated based on the current time and the given interval | |||
| 2201 | + | // (it does not try to ‘catch up’ time lost in delays). | |||
| 2202 | + | // | |||
| 2203 | + | // See [main loop memory management](main-loop.html#memory-management-of-sources) for details | |||
| 2204 | + | // on how to handle the return value and memory management of @data. | |||
| 2205 | + | // | |||
| 2206 | + | // This internally creates a main loop source using | |||
| 2207 | + | // [func@GLib.timeout_source_new] and attaches it to the global | |||
| 2208 | + | // [struct@GLib.MainContext] using [method@GLib.Source.attach], so the callback | |||
| 2209 | + | // will be invoked in whichever thread is running that main context. You can do | |||
| 2210 | + | // these steps manually if you need greater control or to use a custom main | |||
| 2211 | + | // context. | |||
| 2212 | + | // | |||
| 2213 | + | // The interval given is in terms of monotonic time, not wall clock time. | |||
| 2214 | + | // See [func@GLib.get_monotonic_time]. | |||
| 2215 | + | func TimeoutAddFull(PriorityVar int, IntervalVar uint, FunctionVar *SourceFunc, DataVar uintptr, NotifyVar *DestroyNotify) uint { | |||
| 2216 | + | var functionRef uintptr | |||
| 2217 | + | if FunctionVar != nil { | |||
| 2218 | + | functionRef = sourceFuncTrampolineCb | |||
| 2219 | + | } | |||
| 2220 | + | cret := xTimeoutAddFull(PriorityVar, IntervalVar, functionRef, DataVar, NewCallbackNullable(NotifyVar)) | |||
| 2221 | + | trackSourceFunc(cret, FunctionVar, DataVar) | |||
| 2222 | + | return cret | |||
| 2223 | + | } | |||
| 2224 | + | ||||
| 2225 | + | var xTimeoutAddOnce func(uint, uintptr, uintptr) uint | |||
| 2226 | + | ||||
| 2227 | + | // Sets a function to be called after @interval milliseconds have elapsed, | |||
| 2228 | + | // with the default priority, [const@GLib.PRIORITY_DEFAULT]. | |||
| 2229 | + | // | |||
| 2230 | + | // The given @function is called once and then the source will be automatically | |||
| 2231 | + | // removed from the main context. | |||
| 2232 | + | // | |||
| 2233 | + | // This function otherwise behaves like [func@GLib.timeout_add]. | |||
| 2234 | + | func TimeoutAddOnce(IntervalVar uint, FunctionVar *SourceOnceFunc, DataVar uintptr) uint { | |||
| 2235 | + | var functionRef uintptr | |||
| 2236 | + | if FunctionVar != nil { | |||
| 2237 | + | functionRef = sourceOnceFuncTrampolineCb | |||
| 2238 | + | } | |||
| 2239 | + | cret := xTimeoutAddOnce(IntervalVar, functionRef, DataVar) | |||
| 2240 | + | trackSourceOnceFunc(cret, FunctionVar, DataVar) | |||
| 2241 | + | return cret | |||
| 2242 | + | } | |||
| 2243 | + | ||||
| 2244 | + | var xTimeoutAddSeconds func(uint, uintptr, uintptr) uint | |||
| 2245 | + | ||||
| 2246 | + | // Sets a function to be called at regular intervals with the default | |||
| 2247 | + | // priority, [const@GLib.PRIORITY_DEFAULT]. | |||
| 2248 | + | // | |||
| 2249 | + | // The function is called repeatedly until it returns [const@GLib.SOURCE_REMOVE], | |||
| 2250 | + | // at which point the timeout is automatically destroyed | |||
| 2251 | + | // and the function will not be called again. | |||
| 2252 | + | // | |||
| 2253 | + | // This internally creates a main loop source using | |||
| 2254 | + | // [func@GLib.timeout_source_new_seconds] and attaches it to the main loop context | |||
| 2255 | + | // using [method@GLib.Source.attach]. You can do these steps manually if you need | |||
| 2256 | + | // greater control. Also see [func@GLib.timeout_add_seconds_full]. | |||
| 2257 | + | // | |||
| 2258 | + | // It is safe to call this function from any thread. | |||
| 2259 | + | // | |||
| 2260 | + | // Note that the first call of the timer may not be precise for timeouts | |||
| 2261 | + | // of one second. If you need finer precision and have such a timeout, | |||
| 2262 | + | // you may want to use [func@GLib.timeout_add] instead. | |||
| 2263 | + | // | |||
| 2264 | + | // See [main loop memory management](main-loop.html#memory-management-of-sources) for details | |||
| 2265 | + | // on how to handle the return value and memory management of @data. | |||
| 2266 | + | // | |||
| 2267 | + | // The interval given is in terms of monotonic time, not wall clock | |||
| 2268 | + | // time. See [func@GLib.get_monotonic_time]. | |||
| 2269 | + | func TimeoutAddSeconds(IntervalVar uint, FunctionVar *SourceFunc, DataVar uintptr) uint { | |||
| 2270 | + | var functionRef uintptr | |||
| 2271 | + | if FunctionVar != nil { | |||
| 2272 | + | functionRef = sourceFuncTrampolineCb | |||
| 2273 | + | } | |||
| 2274 | + | cret := xTimeoutAddSeconds(IntervalVar, functionRef, DataVar) | |||
| 2275 | + | trackSourceFunc(cret, FunctionVar, DataVar) | |||
| 2276 | + | return cret | |||
| 2277 | + | } | |||
| 2278 | + | ||||
| 2279 | + | var xTimeoutAddSecondsFull func(int, uint, uintptr, uintptr, uintptr) uint | |||
| 2280 | + | ||||
| 2281 | + | // Sets a function to be called at regular intervals, with @priority. | |||
| 2282 | + | // | |||
| 2283 | + | // The function is called repeatedly until it returns [const@GLib.SOURCE_REMOVE], | |||
| 2284 | + | // at which point the timeout is automatically destroyed and | |||
| 2285 | + | // the function will not be called again. | |||
| 2286 | + | // | |||
| 2287 | + | // Unlike [func@GLib.timeout_add], this function operates at whole second | |||
| 2288 | + | // granularity. The initial starting point of the timer is determined by the | |||
| 2289 | + | // implementation and the implementation is expected to group multiple timers | |||
| 2290 | + | // together so that they fire all at the same time. To allow this grouping, | |||
| 2291 | + | // the @interval to the first timer is rounded and can deviate up to one second | |||
| 2292 | + | // from the specified interval. Subsequent timer iterations will generally run | |||
| 2293 | + | // at the specified interval. | |||
| 2294 | + | // | |||
| 2295 | + | // Note that timeout functions may be delayed, due to the processing of other | |||
| 2296 | + | // event sources. Thus they should not be relied on for precise timing. | |||
| 2297 | + | // After each call to the timeout function, the time of the next | |||
| 2298 | + | // timeout is recalculated based on the current time and the given @interval | |||
| 2299 | + | // | |||
| 2300 | + | // See [main loop memory management](main-loop.html#memory-management-of-sources) for details | |||
| 2301 | + | // on how to handle the return value and memory management of @data. | |||
| 2302 | + | // | |||
| 2303 | + | // If you want timing more precise than whole seconds, use | |||
| 2304 | + | // [func@GLib.timeout_add] instead. | |||
| 2305 | + | // | |||
| 2306 | + | // The grouping of timers to fire at the same time results in a more power | |||
| 2307 | + | // and CPU efficient behavior so if your timer is in multiples of seconds | |||
| 2308 | + | // and you don’t require the first timer exactly one second from now, the | |||
| 2309 | + | // use of [func@GLib.timeout_add_seconds] is preferred over | |||
| 2310 | + | // [func@GLib.timeout_add]. | |||
| 2311 | + | // | |||
| 2312 | + | // This internally creates a main loop source using | |||
| 2313 | + | // [func@GLib.timeout_source_new_seconds] and attaches it to the main loop | |||
| 2314 | + | // context using [method@GLib.Source.attach]. You can do these steps manually | |||
| 2315 | + | // if you need greater control. | |||
| 2316 | + | // | |||
| 2317 | + | // It is safe to call this function from any thread. | |||
| 2318 | + | // | |||
| 2319 | + | // The interval given is in terms of monotonic time, not wall clock | |||
| 2320 | + | // time. See [func@GLib.get_monotonic_time]. | |||
| 2321 | + | func TimeoutAddSecondsFull(PriorityVar int, IntervalVar uint, FunctionVar *SourceFunc, DataVar uintptr, NotifyVar *DestroyNotify) uint { | |||
| 2322 | + | var functionRef uintptr | |||
| 2323 | + | if FunctionVar != nil { | |||
| 2324 | + | functionRef = sourceFuncTrampolineCb | |||
| 2325 | + | } | |||
| 2326 | + | cret := xTimeoutAddSecondsFull(PriorityVar, IntervalVar, functionRef, DataVar, NewCallbackNullable(NotifyVar)) | |||
| 2327 | + | trackSourceFunc(cret, FunctionVar, DataVar) | |||
| 2328 | + | return cret | |||
| 2329 | + | } | |||
| 2330 | + | ||||
| 2331 | + | var xTimeoutAddSecondsOnce func(uint, uintptr, uintptr) uint | |||
| 2332 | + | ||||
| 2333 | + | // This function behaves like [func@GLib.timeout_add_once] but with a range in | |||
| 2334 | + | // seconds. | |||
| 2335 | + | func TimeoutAddSecondsOnce(IntervalVar uint, FunctionVar *SourceOnceFunc, DataVar uintptr) uint { | |||
| 2336 | + | var functionRef uintptr | |||
| 2337 | + | if FunctionVar != nil { | |||
| 2338 | + | functionRef = sourceOnceFuncTrampolineCb | |||
| 2339 | + | } | |||
| 2340 | + | cret := xTimeoutAddSecondsOnce(IntervalVar, functionRef, DataVar) | |||
| 2341 | + | trackSourceOnceFunc(cret, FunctionVar, DataVar) | |||
| 2342 | + | return cret | |||
| 2343 | + | } | |||
| 2344 | + | ||||
| 2345 | + | var xTimeoutSourceNew func(uint) uintptr | |||
| 2346 | + | ||||
| 2347 | + | // Creates a new timeout source. | |||
| 2348 | + | // | |||
| 2349 | + | // The source will not initially be associated with any [struct@GLib.MainContext] | |||
| 2350 | + | // and must be added to one with [method@GLib.Source.attach] before it will be | |||
| 2351 | + | // executed. | |||
| 2352 | + | // | |||
| 2353 | + | // The interval given is in terms of monotonic time, not wall clock | |||
| 2354 | + | // time. See [func@GLib.get_monotonic_time]. | |||
| 2355 | + | func TimeoutSourceNew(IntervalVar uint) *Source { | |||
| 2356 | + | cret := xTimeoutSourceNew(IntervalVar) | |||
| 2357 | + | if cret == 0 { | |||
| 2358 | + | return nil | |||
| 2359 | + | } | |||
| 2360 | + | return (*Source)(unsafe.Pointer(cret)) | |||
| 2361 | + | } | |||
| 2362 | + | ||||
| 2363 | + | var xTimeoutSourceNewSeconds func(uint) uintptr | |||
| 2364 | + | ||||
| 2365 | + | // Creates a new timeout source. | |||
| 2366 | + | // | |||
| 2367 | + | // The source will not initially be associated with any | |||
| 2368 | + | // [struct@GLib.MainContext] and must be added to one with | |||
| 2369 | + | // [method@GLib.Source.attach] before it will be executed. | |||
| 2370 | + | // | |||
| 2371 | + | // The scheduling granularity/accuracy of this timeout source will be | |||
| 2372 | + | // in seconds. | |||
| 2373 | + | // | |||
| 2374 | + | // The interval given is in terms of monotonic time, not wall clock time. | |||
| 2375 | + | // See [func@GLib.get_monotonic_time]. | |||
| 2376 | + | func TimeoutSourceNewSeconds(IntervalVar uint) *Source { | |||
| 2377 | + | cret := xTimeoutSourceNewSeconds(IntervalVar) | |||
| 2378 | + | if cret == 0 { | |||
| 2379 | + | return nil | |||
| 2380 | + | } | |||
| 2381 | + | return (*Source)(unsafe.Pointer(cret)) | |||
| 2382 | + | } | |||
| 2383 | + | ||||
| 2384 | + | func init() { | |||
| 2385 | + | core.SetPackageName("GLIB", "glib-2.0") | |||
| 2386 | + | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | |||
| 2387 | + | var libs []uintptr | |||
| 2388 | + | for _, libPath := range core.GetPaths("GLIB") { | |||
| 2389 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 2390 | + | if err != nil { | |||
| 2391 | + | panic(err) | |||
| 2392 | + | } | |||
| 2393 | + | libs = append(libs, lib) | |||
| 2394 | + | } | |||
| 2395 | + | ||||
| 2396 | + | core.PuregoSafeRegister(&xChildWatchAdd, libs, "g_child_watch_add") | |||
| 2397 | + | core.PuregoSafeRegister(&xChildWatchAddFull, libs, "g_child_watch_add_full") | |||
| 2398 | + | core.PuregoSafeRegister(&xChildWatchSourceNew, libs, "g_child_watch_source_new") | |||
| 2399 | + | core.PuregoSafeRegister(&xClearHandleId, libs, "g_clear_handle_id") | |||
| 2400 | + | core.PuregoSafeRegister(&xGetCurrentTime, libs, "g_get_current_time") | |||
| 2401 | + | core.PuregoSafeRegister(&xGetMonotonicTime, libs, "g_get_monotonic_time") | |||
| 2402 | + | core.PuregoSafeRegister(&xGetMonotonicTimeNs, libs, "g_get_monotonic_time_ns") | |||
| 2403 | + | core.PuregoSafeRegister(&xGetRealTime, libs, "g_get_real_time") | |||
| 2404 | + | core.PuregoSafeRegister(&xIdleAdd, libs, "g_idle_add") | |||
| 2405 | + | core.PuregoSafeRegister(&xIdleAddFull, libs, "g_idle_add_full") | |||
| 2406 | + | core.PuregoSafeRegister(&xIdleAddOnce, libs, "g_idle_add_once") | |||
| 2407 | + | core.PuregoSafeRegister(&xIdleRemoveByData, libs, "g_idle_remove_by_data") | |||
| 2408 | + | core.PuregoSafeRegister(&xIdleSourceNew, libs, "g_idle_source_new") | |||
| 2409 | + | core.PuregoSafeRegister(&xMainContextDefault, libs, "g_main_context_default") | |||
| 2410 | + | core.PuregoSafeRegister(&xMainContextGetThreadDefault, libs, "g_main_context_get_thread_default") | |||
| 2411 | + | core.PuregoSafeRegister(&xMainContextRefThreadDefault, libs, "g_main_context_ref_thread_default") | |||
| 2412 | + | core.PuregoSafeRegister(&xMainCurrentSource, libs, "g_main_current_source") | |||
| 2413 | + | core.PuregoSafeRegister(&xMainDepth, libs, "g_main_depth") | |||
| 2414 | + | core.PuregoSafeRegister(&xSourceRemove, libs, "g_source_remove") | |||
| 2415 | + | core.PuregoSafeRegister(&xSourceRemoveByFuncsUserData, libs, "g_source_remove_by_funcs_user_data") | |||
| 2416 | + | core.PuregoSafeRegister(&xSourceRemoveByUserData, libs, "g_source_remove_by_user_data") | |||
| 2417 | + | core.PuregoSafeRegister(&xSourceSetNameById, libs, "g_source_set_name_by_id") | |||
| 2418 | + | core.PuregoSafeRegister(&xTimeoutAdd, libs, "g_timeout_add") | |||
| 2419 | + | core.PuregoSafeRegister(&xTimeoutAddFull, libs, "g_timeout_add_full") | |||
| 2420 | + | core.PuregoSafeRegister(&xTimeoutAddOnce, libs, "g_timeout_add_once") | |||
| 2421 | + | core.PuregoSafeRegister(&xTimeoutAddSeconds, libs, "g_timeout_add_seconds") | |||
| 2422 | + | core.PuregoSafeRegister(&xTimeoutAddSecondsFull, libs, "g_timeout_add_seconds_full") | |||
| 2423 | + | core.PuregoSafeRegister(&xTimeoutAddSecondsOnce, libs, "g_timeout_add_seconds_once") | |||
| 2424 | + | core.PuregoSafeRegister(&xTimeoutSourceNew, libs, "g_timeout_source_new") | |||
| 2425 | + | core.PuregoSafeRegister(&xTimeoutSourceNewSeconds, libs, "g_timeout_source_new_seconds") | |||
| 2426 | + | ||||
| 2427 | + | core.PuregoSafeRegister(&xMainContextGLibType, libs, "g_main_context_get_type") | |||
| 2428 | + | ||||
| 2429 | + | core.PuregoSafeRegister(&xNewMainContext, libs, "g_main_context_new") | |||
| 2430 | + | core.PuregoSafeRegister(&xNewMainContextWithFlags, libs, "g_main_context_new_with_flags") | |||
| 2431 | + | ||||
| 2432 | + | core.PuregoSafeRegister(&xMainContextAcquire, libs, "g_main_context_acquire") | |||
| 2433 | + | core.PuregoSafeRegister(&xMainContextAddPoll, libs, "g_main_context_add_poll") | |||
| 2434 | + | core.PuregoSafeRegister(&xMainContextCheck, libs, "g_main_context_check") | |||
| 2435 | + | core.PuregoSafeRegister(&xMainContextDispatch, libs, "g_main_context_dispatch") | |||
| 2436 | + | core.PuregoSafeRegister(&xMainContextFindSourceByFuncsUserData, libs, "g_main_context_find_source_by_funcs_user_data") | |||
| 2437 | + | core.PuregoSafeRegister(&xMainContextFindSourceById, libs, "g_main_context_find_source_by_id") | |||
| 2438 | + | core.PuregoSafeRegister(&xMainContextFindSourceByUserData, libs, "g_main_context_find_source_by_user_data") | |||
| 2439 | + | core.PuregoSafeRegister(&xMainContextGetPollFunc, libs, "g_main_context_get_poll_func") | |||
| 2440 | + | core.PuregoSafeRegister(&xMainContextInvoke, libs, "g_main_context_invoke") | |||
| 2441 | + | core.PuregoSafeRegister(&xMainContextInvokeFull, libs, "g_main_context_invoke_full") | |||
| 2442 | + | core.PuregoSafeRegister(&xMainContextIsOwner, libs, "g_main_context_is_owner") | |||
| 2443 | + | core.PuregoSafeRegister(&xMainContextIteration, libs, "g_main_context_iteration") | |||
| 2444 | + | core.PuregoSafeRegister(&xMainContextPending, libs, "g_main_context_pending") | |||
| 2445 | + | core.PuregoSafeRegister(&xMainContextPopThreadDefault, libs, "g_main_context_pop_thread_default") | |||
| 2446 | + | core.PuregoSafeRegister(&xMainContextPrepare, libs, "g_main_context_prepare") | |||
| 2447 | + | core.PuregoSafeRegister(&xMainContextPushThreadDefault, libs, "g_main_context_push_thread_default") | |||
| 2448 | + | core.PuregoSafeRegister(&xMainContextPusherNew, libs, "g_main_context_pusher_new") | |||
| 2449 | + | core.PuregoSafeRegister(&xMainContextQuery, libs, "g_main_context_query") | |||
| 2450 | + | core.PuregoSafeRegister(&xMainContextRef, libs, "g_main_context_ref") | |||
| 2451 | + | core.PuregoSafeRegister(&xMainContextRelease, libs, "g_main_context_release") | |||
| 2452 | + | core.PuregoSafeRegister(&xMainContextRemovePoll, libs, "g_main_context_remove_poll") | |||
| 2453 | + | core.PuregoSafeRegister(&xMainContextSetPollFunc, libs, "g_main_context_set_poll_func") | |||
| 2454 | + | core.PuregoSafeRegister(&xMainContextUnref, libs, "g_main_context_unref") | |||
| 2455 | + | core.PuregoSafeRegister(&xMainContextWait, libs, "g_main_context_wait") | |||
| 2456 | + | core.PuregoSafeRegister(&xMainContextWakeup, libs, "g_main_context_wakeup") | |||
| 2457 | + | ||||
| 2458 | + | core.PuregoSafeRegister(&xMainLoopGLibType, libs, "g_main_loop_get_type") | |||
| 2459 | + | ||||
| 2460 | + | core.PuregoSafeRegister(&xNewMainLoop, libs, "g_main_loop_new") | |||
| 2461 | + | ||||
| 2462 | + | core.PuregoSafeRegister(&xMainLoopGetContext, libs, "g_main_loop_get_context") | |||
| 2463 | + | core.PuregoSafeRegister(&xMainLoopIsRunning, libs, "g_main_loop_is_running") | |||
| 2464 | + | core.PuregoSafeRegister(&xMainLoopQuit, libs, "g_main_loop_quit") | |||
| 2465 | + | core.PuregoSafeRegister(&xMainLoopRef, libs, "g_main_loop_ref") | |||
| 2466 | + | core.PuregoSafeRegister(&xMainLoopRun, libs, "g_main_loop_run") | |||
| 2467 | + | core.PuregoSafeRegister(&xMainLoopUnref, libs, "g_main_loop_unref") | |||
| 2468 | + | ||||
| 2469 | + | core.PuregoSafeRegister(&xSourceGLibType, libs, "g_source_get_type") | |||
| 2470 | + | ||||
| 2471 | + | core.PuregoSafeRegister(&xNewSource, libs, "g_source_new") | |||
| 2472 | + | ||||
| 2473 | + | core.PuregoSafeRegister(&xSourceAddChildSource, libs, "g_source_add_child_source") | |||
| 2474 | + | core.PuregoSafeRegister(&xSourceAddPoll, libs, "g_source_add_poll") | |||
| 2475 | + | core.PuregoSafeRegister(&xSourceAddUnixFd, libs, "g_source_add_unix_fd") | |||
| 2476 | + | core.PuregoSafeRegister(&xSourceAttach, libs, "g_source_attach") | |||
| 2477 | + | core.PuregoSafeRegister(&xSourceDestroy, libs, "g_source_destroy") | |||
| 2478 | + | core.PuregoSafeRegister(&xSourceDupContext, libs, "g_source_dup_context") | |||
| 2479 | + | core.PuregoSafeRegister(&xSourceGetCanRecurse, libs, "g_source_get_can_recurse") | |||
| 2480 | + | core.PuregoSafeRegister(&xSourceGetContext, libs, "g_source_get_context") | |||
| 2481 | + | core.PuregoSafeRegister(&xSourceGetCurrentTime, libs, "g_source_get_current_time") | |||
| 2482 | + | core.PuregoSafeRegister(&xSourceGetId, libs, "g_source_get_id") | |||
| 2483 | + | core.PuregoSafeRegister(&xSourceGetName, libs, "g_source_get_name") | |||
| 2484 | + | core.PuregoSafeRegister(&xSourceGetPriority, libs, "g_source_get_priority") | |||
| 2485 | + | core.PuregoSafeRegister(&xSourceGetReadyTime, libs, "g_source_get_ready_time") | |||
| 2486 | + | core.PuregoSafeRegister(&xSourceGetTime, libs, "g_source_get_time") | |||
| 2487 | + | core.PuregoSafeRegister(&xSourceIsDestroyed, libs, "g_source_is_destroyed") | |||
| 2488 | + | core.PuregoSafeRegister(&xSourceModifyUnixFd, libs, "g_source_modify_unix_fd") | |||
| 2489 | + | core.PuregoSafeRegister(&xSourceQueryUnixFd, libs, "g_source_query_unix_fd") | |||
| 2490 | + | core.PuregoSafeRegister(&xSourceRef, libs, "g_source_ref") | |||
| 2491 | + | core.PuregoSafeRegister(&xSourceRemoveChildSource, libs, "g_source_remove_child_source") | |||
| 2492 | + | core.PuregoSafeRegister(&xSourceRemovePoll, libs, "g_source_remove_poll") | |||
| 2493 | + | core.PuregoSafeRegister(&xSourceRemoveUnixFd, libs, "g_source_remove_unix_fd") | |||
| 2494 | + | core.PuregoSafeRegister(&xSourceSetCallback, libs, "g_source_set_callback") | |||
| 2495 | + | core.PuregoSafeRegister(&xSourceSetCallbackIndirect, libs, "g_source_set_callback_indirect") | |||
| 2496 | + | core.PuregoSafeRegister(&xSourceSetCanRecurse, libs, "g_source_set_can_recurse") | |||
| 2497 | + | core.PuregoSafeRegister(&xSourceSetDisposeFunction, libs, "g_source_set_dispose_function") | |||
| 2498 | + | core.PuregoSafeRegister(&xSourceSetFuncs, libs, "g_source_set_funcs") | |||
| 2499 | + | core.PuregoSafeRegister(&xSourceSetName, libs, "g_source_set_name") | |||
| 2500 | + | core.PuregoSafeRegister(&xSourceSetPriority, libs, "g_source_set_priority") | |||
| 2501 | + | core.PuregoSafeRegister(&xSourceSetReadyTime, libs, "g_source_set_ready_time") | |||
| 2502 | + | core.PuregoSafeRegister(&xSourceSetStaticName, libs, "g_source_set_static_name") | |||
| 2503 | + | core.PuregoSafeRegister(&xSourceUnref, libs, "g_source_unref") | |||
| 2504 | + | } | |||
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 collapsed to keep the page light
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