chore(deps): stop tracking vendored modules
- commit
- bdb7c71a2ff1ba7d0b058ac92dea14f87de2fe68
- author
- brice · · 2026-07-22 07:22 UTC
- parent
- 659be60
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
3329 files · +2 -1396109
M .gitignore +2 -2
| @@ -16,8 +16,8 @@ dumber.exe | |||
| 16 | 16 | # Output of the go coverage tool | |
| 17 | 17 | *.out | |
| 18 | 18 | ||
| 19 | - | # Dependency directories (remove the comment below to include it) | |
| 20 | - | # vendor/ | |
| 19 | + | # Dependency directories | |
| 20 | + | vendor/ | |
| 21 | 21 | ||
| 22 | 22 | # Go workspace file | |
| 23 | 23 | go.work | |
| @@ -16,8 +16,8 @@ dumber.exe | |||||
| 16 | # Output of the go coverage tool | 16 | # Output of the go coverage tool | ||
| 17 | *.out | 17 | *.out | ||
| 18 | 18 | ||||
| 19 | - | # Dependency directories (remove the comment below to include it) | 19 | + | # Dependency directories |
| 20 | - | # vendor/ | 20 | + | vendor/ |
| 21 | 21 | ||||
| 22 | # Go workspace file | 22 | # Go workspace file | ||
| 23 | go.work | 23 | go.work | ||
D vendor/github.com/a-h/parse/.gitignore +0 -1 generated file: collapsed
D vendor/github.com/a-h/parse/LICENSE +0 -21 generated file: collapsed
D vendor/github.com/a-h/parse/README.md +0 -145 generated file: collapsed
D vendor/github.com/a-h/parse/all.go +0 -26 generated file: collapsed
D vendor/github.com/a-h/parse/any.go +0 -22 generated file: collapsed
D vendor/github.com/a-h/parse/convert.go +0 -14 generated file: collapsed
D vendor/github.com/a-h/parse/digits.go +0 -4 generated file: collapsed
D vendor/github.com/a-h/parse/eof.go +0 -15 generated file: collapsed
D vendor/github.com/a-h/parse/error.go +0 -21 generated file: collapsed
D vendor/github.com/a-h/parse/input.go +0 -79 generated file: collapsed
D vendor/github.com/a-h/parse/optional.go +0 -26 generated file: collapsed
D vendor/github.com/a-h/parse/or.go +0 -37 generated file: collapsed
D vendor/github.com/a-h/parse/regexp.go +0 -46 generated file: collapsed
D vendor/github.com/a-h/parse/rune.go +0 -58 generated file: collapsed
D vendor/github.com/a-h/parse/sequenceof2.go +0 -27 generated file: collapsed
D vendor/github.com/a-h/parse/sequenceof3.go +0 -35 generated file: collapsed
D vendor/github.com/a-h/parse/sequenceof4.go +0 -41 generated file: collapsed
D vendor/github.com/a-h/parse/sequenceof5.go +0 -48 generated file: collapsed
D vendor/github.com/a-h/parse/sequenceof6.go +0 -55 generated file: collapsed
D vendor/github.com/a-h/parse/sequenceof7.go +0 -62 generated file: collapsed
D vendor/github.com/a-h/parse/sequenceof8.go +0 -69 generated file: collapsed
D vendor/github.com/a-h/parse/sequenceof9.go +0 -76 generated file: collapsed
D vendor/github.com/a-h/parse/string.go +0 -40 generated file: collapsed
D vendor/github.com/a-h/parse/stringfrom.go +0 -30 generated file: collapsed
D vendor/github.com/a-h/parse/stringuntil.go +0 -49 generated file: collapsed
D vendor/github.com/a-h/parse/then.go +0 -9 generated file: collapsed
D vendor/github.com/a-h/parse/times.go +0 -83 generated file: collapsed
D vendor/github.com/a-h/parse/tuples.go +0 -69 generated file: collapsed
D vendor/github.com/a-h/parse/types.go +0 -33 generated file: collapsed
D vendor/github.com/a-h/parse/until.go +0 -68 generated file: collapsed
D vendor/github.com/a-h/parse/whitespace.go +0 -29 generated file: collapsed
D vendor/github.com/a-h/templ/.dockerignore +0 -3 generated file: collapsed
D vendor/github.com/a-h/templ/.envrc +0 -1 generated file: collapsed
D vendor/github.com/a-h/templ/.gitignore +0 -40 generated file: collapsed
D vendor/github.com/a-h/templ/.goreleaser.yaml +0 -72 generated file: collapsed
D vendor/github.com/a-h/templ/.ignore +0 -9 generated file: collapsed
D vendor/github.com/a-h/templ/.version +0 -1 generated file: collapsed
D vendor/github.com/a-h/templ/CODE_OF_CONDUCT.md +0 -128 generated file: collapsed
D vendor/github.com/a-h/templ/CONTRIBUTING.md +0 -247 generated file: collapsed
D vendor/github.com/a-h/templ/LICENSE +0 -21 generated file: collapsed
D vendor/github.com/a-h/templ/README.md +0 -194 generated file: collapsed
D vendor/github.com/a-h/templ/SECURITY.md +0 -9 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/fmtcmd/main.go +0 -132 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/fmtcmd/testdata.txtar +0 -66 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/generatecmd/cmd.go +0 -452 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/generatecmd/eventhandler.go +0 -349 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/generatecmd/fatalerror.go +0 -23 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/generatecmd/main.go +0 -237 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/generatecmd/modcheck/modcheck.go +0 -82 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/generatecmd/proxy/proxy.go +0 -385 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/generatecmd/proxy/script.js +0 -10 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/generatecmd/run/run_unix.go +0 -88 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/generatecmd/run/run_windows.go +0 -75 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/generatecmd/sse/server.go +0 -84 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/generatecmd/watcher/watch.go +0 -166 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/infocmd/main.go +0 -195 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/lspcmd/httpdebug/handler.go +0 -130 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/lspcmd/httpdebug/list.templ +0 -22 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/lspcmd/httpdebug/list_templ.go +0 -114 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/lspcmd/main.go +0 -145 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/lspcmd/pls/main.go +0 -128 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/lspcmd/proxy/client.go +0 -146 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/lspcmd/proxy/diagnosticcache.go +0 -61 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/lspcmd/proxy/documentcontents.go +0 -215 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/lspcmd/proxy/rewrite.go +0 -24 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/lspcmd/proxy/server.go +0 -1464 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/lspcmd/proxy/snippets.go +0 -111 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/lspcmd/proxy/sourcemapcache.go +0 -60 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/lspcmd/stdrwc.go +0 -50 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/main.go +0 -280 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/processor/processor.go +0 -66 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/sloghandler/handler.go +0 -120 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/visualize/sourcemapvisualisation.templ +0 -68 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/visualize/sourcemapvisualisation_templ.go +0 -295 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/visualize/types.go +0 -87 generated file: collapsed
D vendor/github.com/a-h/templ/cosign.pub +0 -4 generated file: collapsed
D vendor/github.com/a-h/templ/flake.lock +0 -87 generated file: collapsed
D vendor/github.com/a-h/templ/flake.nix +0 -99 generated file: collapsed
D vendor/github.com/a-h/templ/flush.go +0 -36 generated file: collapsed
D vendor/github.com/a-h/templ/fragment.go +0 -73 generated file: collapsed
D vendor/github.com/a-h/templ/generator/generator.go +0 -1829 generated file: collapsed
D vendor/github.com/a-h/templ/generator/rangewriter.go +0 -122 generated file: collapsed
D vendor/github.com/a-h/templ/handler.go +0 -163 generated file: collapsed
D vendor/github.com/a-h/templ/ide-demo.gif +0 -0 binary file: no text diff
binary file: no text diff
D vendor/github.com/a-h/templ/internal/format/scriptelement.go +0 -96 generated file: collapsed
D vendor/github.com/a-h/templ/internal/format/styleelement.go +0 -25 generated file: collapsed
D vendor/github.com/a-h/templ/internal/format/templ.go +0 -102 generated file: collapsed
D vendor/github.com/a-h/templ/internal/htmlfind/htmlfind.go +0 -67 generated file: collapsed
D vendor/github.com/a-h/templ/internal/imports/process.go +0 -218 generated file: collapsed
D vendor/github.com/a-h/templ/internal/lazyloader/docheader.go +0 -27 generated file: collapsed
D vendor/github.com/a-h/templ/internal/lazyloader/docheaderparser.go +0 -53 generated file: collapsed
D vendor/github.com/a-h/templ/internal/lazyloader/pkgloader.go +0 -55 generated file: collapsed
D vendor/github.com/a-h/templ/internal/lazyloader/pkgtraverser.go +0 -110 generated file: collapsed
D vendor/github.com/a-h/templ/internal/lazyloader/templdoclazyloader.go +0 -161 generated file: collapsed
D vendor/github.com/a-h/templ/internal/prettier/prettier.go +0 -133 generated file: collapsed
D vendor/github.com/a-h/templ/internal/prettier/testdata.txtar +0 -12 generated file: collapsed
D vendor/github.com/a-h/templ/internal/skipdir/skipdir.go +0 -20 generated file: collapsed
D vendor/github.com/a-h/templ/internal/syncmap/map.go +0 -49 generated file: collapsed
D vendor/github.com/a-h/templ/internal/syncset/set.go +0 -42 generated file: collapsed
D vendor/github.com/a-h/templ/join.go +0 -19 generated file: collapsed
D vendor/github.com/a-h/templ/js.go +0 -40 generated file: collapsed
D vendor/github.com/a-h/templ/jsonscript.go +0 -85 generated file: collapsed
D vendor/github.com/a-h/templ/jsonstring.go +0 -14 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/LICENSE +0 -29 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/jsonrpc2/codes.go +0 -86 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/jsonrpc2/conn.go +0 -244 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/jsonrpc2/errors.go +0 -70 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/jsonrpc2/handler.go +0 -120 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/jsonrpc2/jsonrpc2.go +0 -7 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/jsonrpc2/message.go +0 -354 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/jsonrpc2/serve.go +0 -131 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/jsonrpc2/stream.go +0 -225 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/jsonrpc2/wire.go +0 -140 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/base.go +0 -95 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/basic.go +0 -705 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/callhierarchy.go +0 -103 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/capabilities_client.go +0 -1068 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/capabilities_server.go +0 -523 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/client.go +0 -412 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/context.go +0 -26 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/deprecated.go +0 -264 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/diagnostics.go +0 -149 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/doc.go +0 -23 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/errors.go +0 -40 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/general.go +0 -461 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/handler.go +0 -88 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/language.go +0 -1401 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/progress.go +0 -119 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/protocol.go +0 -41 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/registration.go +0 -44 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/selectionrange.go +0 -110 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/semantic_token.go +0 -179 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/server.go +0 -1893 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/text.go +0 -111 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/util.go +0 -9 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/version.go +0 -7 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/window.go +0 -111 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/workspace.go +0 -213 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/uri/uri.go +0 -245 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/xcontext/xcontext.go +0 -22 generated file: collapsed
D vendor/github.com/a-h/templ/once.go +0 -63 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/calltemplateparser.go +0 -37 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/childrenparser.go +0 -25 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/conditionalattributeparser.go +0 -103 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/cssparser.go +0 -200 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/diagnostics.go +0 -64 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/doctypeparser.go +0 -33 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/elementparser.go +0 -605 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/expressionparser.go +0 -246 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/fallthroughparser.go +0 -26 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/forexpressionparser.go +0 -57 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/fuzz.sh +0 -5 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/gocodeparser.go +0 -64 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/gocommentparser.go +0 -66 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/goexpression/fuzz.sh +0 -19 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/goexpression/parse.go +0 -343 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/goexpression/scanner.go +0 -180 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/goparser.go +0 -70 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/htmlcommentparser.go +0 -40 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/ifexpressionparser.go +0 -144 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/packageparser.go +0 -32 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/parser.go +0 -55 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/raw.go +0 -67 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/scriptparser.go +0 -336 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/scripttemplateparser.go +0 -91 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/sourcemap.go +0 -134 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/stringexpressionparser.go +0 -44 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/structure.go +0 -43 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/switchexpressionparser.go +0 -171 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/templatefile.go +0 -195 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/templateparser.go +0 -154 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/templelementparser.go +0 -59 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/textparser.go +0 -53 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/types.go +0 -1537 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/visitor.go +0 -36 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/visitor/visitor.go +0 -357 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/whitespaceparser.go +0 -14 generated file: collapsed
D vendor/github.com/a-h/templ/runtime.go +0 -736 generated file: collapsed
D vendor/github.com/a-h/templ/runtime/buffer.go +0 -62 generated file: collapsed
D vendor/github.com/a-h/templ/runtime/bufferpool.go +0 -38 generated file: collapsed
D vendor/github.com/a-h/templ/runtime/builder.go +0 -8 generated file: collapsed
D vendor/github.com/a-h/templ/runtime/runtime.go +0 -21 generated file: collapsed
D vendor/github.com/a-h/templ/runtime/scriptelement.go +0 -107 generated file: collapsed
D vendor/github.com/a-h/templ/runtime/styleattribute.go +0 -217 generated file: collapsed
D vendor/github.com/a-h/templ/runtime/watchmode.go +0 -181 generated file: collapsed
D vendor/github.com/a-h/templ/safehtml/style.go +0 -199 generated file: collapsed
D vendor/github.com/a-h/templ/scripttemplate.go +0 -150 generated file: collapsed
D vendor/github.com/a-h/templ/templ.png +0 -0 binary file: no text diff
binary file: no text diff
D vendor/github.com/a-h/templ/url.go +0 -31 generated file: collapsed
D vendor/github.com/a-h/templ/version.go +0 -10 generated file: collapsed
D vendor/github.com/a-h/templ/watchmode.go +0 -105 generated file: collapsed
D vendor/github.com/andybalholm/brotli/.gitignore +0 -2 generated file: collapsed
D vendor/github.com/andybalholm/brotli/LICENSE +0 -19 generated file: collapsed
D vendor/github.com/andybalholm/brotli/README.md +0 -19 generated file: collapsed
D vendor/github.com/andybalholm/brotli/backward_references.go +0 -185 generated file: collapsed
D vendor/github.com/andybalholm/brotli/backward_references_hq.go +0 -796 generated file: collapsed
D vendor/github.com/andybalholm/brotli/bit_cost.go +0 -436 generated file: collapsed
D vendor/github.com/andybalholm/brotli/bit_reader.go +0 -266 generated file: collapsed
D vendor/github.com/andybalholm/brotli/bitwriter.go +0 -56 generated file: collapsed
D vendor/github.com/andybalholm/brotli/block_splitter.go +0 -144 generated file: collapsed
D vendor/github.com/andybalholm/brotli/block_splitter_command.go +0 -434 generated file: collapsed
D vendor/github.com/andybalholm/brotli/block_splitter_distance.go +0 -433 generated file: collapsed
D vendor/github.com/andybalholm/brotli/block_splitter_literal.go +0 -433 generated file: collapsed
D vendor/github.com/andybalholm/brotli/brotli_bit_stream.go +0 -1435 generated file: collapsed
D vendor/github.com/andybalholm/brotli/cluster.go +0 -30 generated file: collapsed
D vendor/github.com/andybalholm/brotli/cluster_command.go +0 -164 generated file: collapsed
D vendor/github.com/andybalholm/brotli/cluster_distance.go +0 -326 generated file: collapsed
D vendor/github.com/andybalholm/brotli/cluster_literal.go +0 -326 generated file: collapsed
D vendor/github.com/andybalholm/brotli/command.go +0 -254 generated file: collapsed
D vendor/github.com/andybalholm/brotli/compress_fragment.go +0 -834 generated file: collapsed
D vendor/github.com/andybalholm/brotli/compress_fragment_two_pass.go +0 -775 generated file: collapsed
D vendor/github.com/andybalholm/brotli/constants.go +0 -77 generated file: collapsed
D vendor/github.com/andybalholm/brotli/context.go +0 -2176 generated file: collapsed
D vendor/github.com/andybalholm/brotli/decode.go +0 -2570 generated file: collapsed
D vendor/github.com/andybalholm/brotli/dictionary.go +0 -122890 generated file: collapsed
D vendor/github.com/andybalholm/brotli/dictionary_hash.go +0 -32779 generated file: collapsed
D vendor/github.com/andybalholm/brotli/encode.go +0 -1220 generated file: collapsed
D vendor/github.com/andybalholm/brotli/encoder.go +0 -177 generated file: collapsed
D vendor/github.com/andybalholm/brotli/encoder_dict.go +0 -22 generated file: collapsed
D vendor/github.com/andybalholm/brotli/encoder_fast.go +0 -197 generated file: collapsed
D vendor/github.com/andybalholm/brotli/entropy_encode.go +0 -592 generated file: collapsed
D vendor/github.com/andybalholm/brotli/entropy_encode_static.go +0 -4399 generated file: collapsed
D vendor/github.com/andybalholm/brotli/fast_log.go +0 -290 generated file: collapsed
D vendor/github.com/andybalholm/brotli/find_match_length.go +0 -45 generated file: collapsed
D vendor/github.com/andybalholm/brotli/flate/LICENSE +0 -27 generated file: collapsed
D vendor/github.com/andybalholm/brotli/flate/README.md +0 -2 generated file: collapsed
D vendor/github.com/andybalholm/brotli/flate/gzip.go +0 -65 generated file: collapsed
D vendor/github.com/andybalholm/brotli/flate/huffman_bit_writer.go +0 -517 generated file: collapsed
D vendor/github.com/andybalholm/brotli/flate/huffman_code.go +0 -346 generated file: collapsed
D vendor/github.com/andybalholm/brotli/flate/token.go +0 -80 generated file: collapsed
D vendor/github.com/andybalholm/brotli/flate/writer.go +0 -66 generated file: collapsed
D vendor/github.com/andybalholm/brotli/h10.go +0 -287 generated file: collapsed
D vendor/github.com/andybalholm/brotli/h5.go +0 -214 generated file: collapsed
D vendor/github.com/andybalholm/brotli/h6.go +0 -216 generated file: collapsed
D vendor/github.com/andybalholm/brotli/hash.go +0 -342 generated file: collapsed
D vendor/github.com/andybalholm/brotli/hash_composite.go +0 -93 generated file: collapsed
D vendor/github.com/andybalholm/brotli/hash_forgetful_chain.go +0 -252 generated file: collapsed
D vendor/github.com/andybalholm/brotli/hash_longest_match_quickly.go +0 -214 generated file: collapsed
D vendor/github.com/andybalholm/brotli/hash_rolling.go +0 -168 generated file: collapsed
D vendor/github.com/andybalholm/brotli/histogram.go +0 -226 generated file: collapsed
D vendor/github.com/andybalholm/brotli/http.go +0 -189 generated file: collapsed
D vendor/github.com/andybalholm/brotli/huffman.go +0 -653 generated file: collapsed
D vendor/github.com/andybalholm/brotli/literal_cost.go +0 -182 generated file: collapsed
D vendor/github.com/andybalholm/brotli/matchfinder/bargain1.go +0 -212 generated file: collapsed
D vendor/github.com/andybalholm/brotli/matchfinder/bargain2.go +0 -248 generated file: collapsed
D vendor/github.com/andybalholm/brotli/matchfinder/bargain3.go +0 -278 generated file: collapsed
D vendor/github.com/andybalholm/brotli/matchfinder/emitter.go +0 -34 generated file: collapsed
D vendor/github.com/andybalholm/brotli/matchfinder/m0.go +0 -175 generated file: collapsed
D vendor/github.com/andybalholm/brotli/matchfinder/m4.go +0 -339 generated file: collapsed
D vendor/github.com/andybalholm/brotli/matchfinder/matchfinder.go +0 -103 generated file: collapsed
D vendor/github.com/andybalholm/brotli/matchfinder/pathfinder.go +0 -328 generated file: collapsed
D vendor/github.com/andybalholm/brotli/matchfinder/textencoder.go +0 -53 generated file: collapsed
D vendor/github.com/andybalholm/brotli/matchfinder/trio.go +0 -326 generated file: collapsed
D vendor/github.com/andybalholm/brotli/matchfinder/zdfast.go +0 -258 generated file: collapsed
D vendor/github.com/andybalholm/brotli/matchfinder/zfast.go +0 -206 generated file: collapsed
D vendor/github.com/andybalholm/brotli/matchfinder/zm.go +0 -301 generated file: collapsed
D vendor/github.com/andybalholm/brotli/memory.go +0 -66 generated file: collapsed
D vendor/github.com/andybalholm/brotli/metablock.go +0 -574 generated file: collapsed
D vendor/github.com/andybalholm/brotli/metablock_command.go +0 -165 generated file: collapsed
D vendor/github.com/andybalholm/brotli/metablock_distance.go +0 -165 generated file: collapsed
D vendor/github.com/andybalholm/brotli/metablock_literal.go +0 -165 generated file: collapsed
D vendor/github.com/andybalholm/brotli/params.go +0 -37 generated file: collapsed
D vendor/github.com/andybalholm/brotli/platform.go +0 -103 generated file: collapsed
D vendor/github.com/andybalholm/brotli/prefix.go +0 -30 generated file: collapsed
D vendor/github.com/andybalholm/brotli/prefix_dec.go +0 -723 generated file: collapsed
D vendor/github.com/andybalholm/brotli/quality.go +0 -196 generated file: collapsed
D vendor/github.com/andybalholm/brotli/reader.go +0 -126 generated file: collapsed
D vendor/github.com/andybalholm/brotli/ringbuffer.go +0 -134 generated file: collapsed
D vendor/github.com/andybalholm/brotli/state.go +0 -313 generated file: collapsed
D vendor/github.com/andybalholm/brotli/static_dict.go +0 -662 generated file: collapsed
D vendor/github.com/andybalholm/brotli/static_dict_lut.go +0 -75094 generated file: collapsed
D vendor/github.com/andybalholm/brotli/symbol_list.go +0 -22 generated file: collapsed
D vendor/github.com/andybalholm/brotli/transform.go +0 -641 generated file: collapsed
D vendor/github.com/andybalholm/brotli/utf8_util.go +0 -70 generated file: collapsed
D vendor/github.com/andybalholm/brotli/util.go +0 -7 generated file: collapsed
D vendor/github.com/andybalholm/brotli/write_bits.go +0 -52 generated file: collapsed
D vendor/github.com/andybalholm/brotli/writer.go +0 -162 generated file: collapsed
D vendor/github.com/atotto/clipboard/.travis.yml +0 -22 generated file: collapsed
D vendor/github.com/atotto/clipboard/LICENSE +0 -27 generated file: collapsed
D vendor/github.com/atotto/clipboard/README.md +0 -48 generated file: collapsed
D vendor/github.com/atotto/clipboard/clipboard.go +0 -20 generated file: collapsed
D vendor/github.com/atotto/clipboard/clipboard_darwin.go +0 -52 generated file: collapsed
D vendor/github.com/atotto/clipboard/clipboard_plan9.go +0 -42 generated file: collapsed
D vendor/github.com/atotto/clipboard/clipboard_unix.go +0 -149 generated file: collapsed
D vendor/github.com/atotto/clipboard/clipboard_windows.go +0 -157 generated file: collapsed
D vendor/github.com/aymanbagabas/go-osc52/v2/LICENSE +0 -21 generated file: collapsed
D vendor/github.com/aymanbagabas/go-osc52/v2/README.md +0 -83 generated file: collapsed
D vendor/github.com/aymanbagabas/go-osc52/v2/osc52.go +0 -305 generated file: collapsed
D vendor/github.com/bnema/purego-cef/LICENSE +0 -21 generated file: collapsed
D vendor/github.com/bnema/purego-cef/cef/bridge.go +0 -783 generated file: collapsed
D vendor/github.com/bnema/purego-cef/cef/cef_accessibility_handler_gen.go +0 -135 generated file: collapsed
D vendor/github.com/bnema/purego-cef/cef/cef_app_gen.go +0 -255 generated file: collapsed
D vendor/github.com/bnema/purego-cef/cef/cef_audio_handler_gen.go +0 -222 generated file: collapsed
D vendor/github.com/bnema/purego-cef/cef/cef_auth_callback_gen.go +0 -80 generated file: collapsed
D vendor/github.com/bnema/purego-cef/cef/cef_base_gen.go +0 -13 generated file: collapsed
D vendor/github.com/bnema/purego-cef/cef/cef_browser_gen.go +0 -1340 generated file: collapsed
D vendor/github.com/bnema/purego-cef/cef/cef_browser_process_handler_gen.go +0 -280 generated file: collapsed
D vendor/github.com/bnema/purego-cef/cef/cef_callback_gen.go +0 -173 generated file: collapsed
D vendor/github.com/bnema/purego-cef/cef/cef_client_gen.go +0 -691 generated file: collapsed
D vendor/github.com/bnema/purego-cef/cef/cef_command_handler_gen.go +0 -228 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_command_line_gen.go +0 -282 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_component_updater_gen.go +0 -323 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_context_menu_handler_gen.go +0 -633 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_cookie_gen.go +0 -430 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_crash_util_gen.go +0 -24 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_devtools_message_observer_gen.go +0 -219 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_dialog_handler_gen.go +0 -186 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_display_handler_gen.go +0 -440 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_dom_gen.go +0 -578 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_download_handler_gen.go +0 -308 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_download_item_gen.go +0 -255 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_drag_data_gen.go +0 -329 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_drag_handler_gen.go +0 -144 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_file_util_gen.go +0 -74 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_find_handler_gen.go +0 -116 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_focus_handler_gen.go +0 -162 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_frame_gen.go +0 -284 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_frame_handler_gen.go +0 -214 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_i18n_util_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_image_gen.go +0 -241 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_jsdialog_handler_gen.go +0 -262 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_keyboard_handler_gen.go +0 -142 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_life_span_handler_gen.go +0 -261 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_load_handler_gen.go +0 -198 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_media_router_gen.go +0 -771 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_menu_model_delegate_gen.go +0 -262 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_menu_model_gen.go +0 -607 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_navigation_entry_gen.go +0 -150 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_origin_whitelist_gen.go +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_parser_gen.go +0 -120 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_path_util_gen.go +0 -15 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_permission_handler_gen.go +0 -303 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_preference_gen.go +0 -289 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_print_handler_gen.go +0 -364 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_print_settings_gen.go +0 -283 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_process_message_gen.go +0 -135 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_process_util_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_registration_gen.go +0 -60 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_render_handler_gen.go +0 -562 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_render_process_handler_gen.go +0 -325 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_request_context_gen.go +0 -515 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_request_context_handler_gen.go +0 -150 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_request_gen.go +0 -576 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_request_handler_gen.go +0 -490 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_resource_bundle_gen.go +0 -106 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_resource_bundle_handler_gen.go +0 -168 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_resource_handler_gen.go +0 -392 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_resource_request_handler_gen.go +0 -469 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_response_filter_gen.go +0 -141 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_response_gen.go +0 -237 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_scheme_gen.go +0 -175 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_server_gen.go +0 -470 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_shared_memory_region_gen.go +0 -87 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_shared_process_message_builder_gen.go +0 -120 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_ssl_info_gen.go +0 -84 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_ssl_status_gen.go +0 -105 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_stream_gen.go +0 -698 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_string_visitor_gen.go +0 -113 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_task_gen.go +0 -250 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_task_manager_gen.go +0 -150 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_thread_gen.go +0 -116 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_trace_gen.go +0 -135 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_types_color_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_types_component_gen.go +0 -45 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_types_content_settings_gen.go +0 -155 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_types_gen.go +0 -1631 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_types_geometry_gen.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_types_linux_gen.go +0 -41 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_types_osr_gen.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_types_runtime_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_unresponsive_process_callback_gen.go +0 -76 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_urlrequest_gen.go +0 -363 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_v8_gen.go +0 -1825 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_values_gen.go +0 -1139 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_waitable_event_gen.go +0 -126 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_x509_certificate_gen.go +0 -300 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_xml_reader_gen.go +0 -354 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_zip_reader_gen.go +0 -201 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/doc.go +0 -26 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/init.go +0 -191 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/.gitkeep +0 -0
no textual change.
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_app.go +0 -261 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_browser.go +0 -929 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_browser_process_handler.go +0 -345 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_client.go +0 -934 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_context_menu_handler.go +0 -487 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_dialog_handler.go +0 -130 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_display_handler.go +0 -743 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_focus_handler.go +0 -180 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_frame.go +0 -1093 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_keyboard_handler.go +0 -169 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_life_span_handler.go +0 -407 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_load_handler.go +0 -263 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_process_message.go +0 -307 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_raw_client.go +0 -934 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_raw_life_span_handler.go +0 -409 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_render_handler.go +0 -959 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_render_process_handler.go +0 -491 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_request.go +0 -1010 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_request_context.go +0 -1167 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_request_handler.go +0 -760 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_response.go +0 -768 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/opaque_types.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/string_list.go +0 -46 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/test_cef_api_version_test__gen.go +0 -1391 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/test_cef_test_helpers_gen.go +0 -31 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/test_cef_test_server_gen.go +0 -282 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/test_cef_translator_test__gen.go +0 -1534 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/v8_helpers.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_box_layout_gen.go +0 -76 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_browser_view_delegate_gen.go +0 -348 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_browser_view_gen.go +0 -122 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_button_delegate_gen.go +0 -135 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_button_gen.go +0 -114 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_display_gen.go +0 -195 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_fill_layout_gen.go +0 -60 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_label_button_gen.go +0 -176 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_layout_gen.go +0 -87 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_menu_button_delegate_gen.go +0 -160 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_menu_button_gen.go +0 -97 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_overlay_controller_gen.go +0 -224 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_panel_delegate_gen.go +0 -87 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_panel_gen.go +0 -181 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_scroll_view_gen.go +0 -141 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_textfield_delegate_gen.go +0 -137 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_textfield_gen.go +0 -292 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_view_delegate_gen.go +0 -362 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_view_gen.go +0 -515 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_window_delegate_gen.go +0 -682 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_window_gen.go +0 -436 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/window_info_helpers.go +0 -25 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/bridge.go +0 -151 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_accessibility_handler_gen.go +0 -43 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_app_gen.go +0 -99 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_audio_handler_gen.go +0 -72 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_auth_callback_gen.go +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_base_gen.go +0 -77 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_browser_gen.go +0 -1091 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_browser_process_handler_gen.go +0 -106 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_callback_gen.go +0 -55 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_client_gen.go +0 -226 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_command_handler_gen.go +0 -80 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_command_line_gen.go +0 -255 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_component_updater_gen.go +0 -130 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_context_menu_handler_gen.go +0 -381 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_cookie_gen.go +0 -124 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_crash_util_gen.go +0 -16 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_devtools_message_observer_gen.go +0 -78 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_dialog_handler_gen.go +0 -55 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_display_handler_gen.go +0 -168 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_dom_gen.go +0 -478 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_download_handler_gen.go +0 -104 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_download_item_gen.go +0 -237 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_drag_data_gen.go +0 -318 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_drag_handler_gen.go +0 -41 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_file_util_gen.go +0 -34 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_find_handler_gen.go +0 -28 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_focus_handler_gen.go +0 -50 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_frame_gen.go +0 -303 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_frame_handler_gen.go +0 -72 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_i18n_util_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_image_gen.go +0 -164 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_jsdialog_handler_gen.go +0 -77 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_keyboard_handler_gen.go +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_life_span_handler_gen.go +0 -83 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_load_handler_gen.go +0 -61 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_media_router_gen.go +0 -341 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_menu_model_delegate_gen.go +0 -96 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_menu_model_gen.go +0 -637 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_navigation_entry_gen.go +0 -127 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_origin_whitelist_gen.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_parser_gen.go +0 -52 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_path_util_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_permission_handler_gen.go +0 -99 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_preference_gen.go +0 -127 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_print_handler_gen.go +0 -126 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_print_settings_gen.go +0 -265 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_process_message_gen.go +0 -87 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_process_util_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_registration_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_render_handler_gen.go +0 -212 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_render_process_handler_gen.go +0 -124 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_request_context_gen.go +0 -326 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_request_context_handler_gen.go +0 -43 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_request_gen.go +0 -444 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_request_handler_gen.go +0 -166 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_resource_bundle_gen.go +0 -56 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_resource_bundle_handler_gen.go +0 -52 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_resource_handler_gen.go +0 -126 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_resource_request_handler_gen.go +0 -148 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_response_filter_gen.go +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_response_gen.go +0 -208 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_scheme_gen.go +0 -51 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_server_gen.go +0 -257 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_shared_memory_region_gen.go +0 -50 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_shared_process_message_builder_gen.go +0 -65 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_ssl_info_gen.go +0 -43 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_ssl_status_gen.go +0 -72 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_stream_gen.go +0 -268 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_string_visitor_gen.go +0 -28 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_task_gen.go +0 -104 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_task_manager_gen.go +0 -76 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_thread_gen.go +0 -65 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_trace_gen.go +0 -40 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_types_color_gen.go +0 -7 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_types_component_gen.go +0 -11 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_types_content_settings_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_types_gen.go +0 -482 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_types_geometry_gen.go +0 -37 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_types_linux_gen.go +0 -51 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_types_osr_gen.go +0 -26 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_types_runtime_gen.go +0 -7 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_unresponsive_process_callback_gen.go +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_urlrequest_gen.go +0 -158 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_v8_gen.go +0 -1137 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_values_gen.go +0 -1002 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_waitable_event_gen.go +0 -76 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_x509_certificate_gen.go +0 -217 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_xml_reader_gen.go +0 -340 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_zip_reader_gen.go +0 -153 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/doc.go +0 -25 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/register.go +0 -15 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/register_gen.go +0 -119 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/register_platform_darwin_gen.go +0 -7 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/register_platform_default_gen.go +0 -6 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/register_platform_linux_gen.go +0 -8 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/register_platform_windows_gen.go +0 -7 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/test_cef_api_version_test__gen.go +0 -772 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/test_cef_test_helpers_gen.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/test_cef_test_server_gen.go +0 -114 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/test_cef_translator_test__gen.go +0 -967 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_box_layout_gen.go +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_browser_view_delegate_gen.go +0 -141 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_browser_view_gen.go +0 -68 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_button_delegate_gen.go +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_button_gen.go +0 -83 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_display_gen.go +0 -122 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_fill_layout_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_label_button_gen.go +0 -142 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_layout_gen.go +0 -50 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_menu_button_delegate_gen.go +0 -33 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_menu_button_gen.go +0 -43 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_overlay_controller_gen.go +0 -226 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_panel_delegate_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_panel_gen.go +0 -153 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_scroll_view_gen.go +0 -102 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_textfield_delegate_gen.go +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_textfield_gen.go +0 -292 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_view_delegate_gen.go +0 -138 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_view_gen.go +0 -589 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_window_delegate_gen.go +0 -278 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_window_gen.go +0 -485 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/cefapi/contract.go +0 -11 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/core/engine.go +0 -29 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/core/helpers.go +0 -20 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/core/init.go +0 -158 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/core/marshal.go +0 -146 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/core/refcount.go +0 -185 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/loader/loader.go +0 -120 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_accessibility_handler_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_app_gen.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_audio_handler_gen.go +0 -16 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_auth_callback_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_base_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_browser_gen.go +0 -124 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_browser_process_handler_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_callback_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_client_gen.go +0 -26 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_command_handler_gen.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_command_line_gen.go +0 -32 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_component_updater_gen.go +0 -24 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_context_menu_handler_gen.go +0 -50 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_cookie_gen.go +0 -27 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_devtools_message_observer_gen.go +0 -16 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_dialog_handler_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_display_handler_gen.go +0 -20 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_dom_gen.go +0 -56 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_download_handler_gen.go +0 -22 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_download_item_gen.go +0 -27 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_drag_data_gen.go +0 -34 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_drag_handler_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_find_handler_gen.go +0 -8 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_focus_handler_gen.go +0 -10 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_frame_gen.go +0 -33 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_frame_handler_gen.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_image_gen.go +0 -24 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_jsdialog_handler_gen.go +0 -16 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_keyboard_handler_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_life_span_handler_gen.go +0 -17 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_load_handler_gen.go +0 -11 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_media_router_gen.go +0 -61 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_menu_model_delegate_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_menu_model_gen.go +0 -63 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_navigation_entry_gen.go +0 -17 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_permission_handler_gen.go +0 -21 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_preference_gen.go +0 -23 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_print_handler_gen.go +0 -24 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_print_settings_gen.go +0 -29 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_process_message_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_registration_gen.go +0 -7 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_render_handler_gen.go +0 -24 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_render_process_handler_gen.go +0 -16 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_request_context_gen.go +0 -40 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_request_context_handler_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_request_gen.go +0 -56 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_request_handler_gen.go +0 -23 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_resource_bundle_gen.go +0 -10 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_resource_bundle_handler_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_resource_handler_gen.go +0 -28 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_resource_request_handler_gen.go +0 -21 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_response_filter_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_response_gen.go +0 -24 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_scheme_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_server_gen.go +0 -36 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_shared_memory_region_gen.go +0 -10 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_shared_process_message_builder_gen.go +0 -11 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_ssl_info_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_ssl_status_gen.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_stream_gen.go +0 -43 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_string_visitor_gen.go +0 -8 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_task_gen.go +0 -17 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_task_manager_gen.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_thread_gen.go +0 -11 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_trace_gen.go +0 -8 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_types_color_gen.go +0 -5 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_types_component_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_types_content_settings_gen.go +0 -7 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_types_gen.go +0 -256 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_types_geometry_gen.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_types_linux_gen.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_types_osr_gen.go +0 -10 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_types_runtime_gen.go +0 -5 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_unresponsive_process_callback_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_urlrequest_gen.go +0 -27 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_v8_gen.go +0 -138 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_values_gen.go +0 -110 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_waitable_event_gen.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_x509_certificate_gen.go +0 -28 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_xml_reader_gen.go +0 -36 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_zip_reader_gen.go +0 -23 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/opaque_types.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/test_cef_api_version_test__gen.go +0 -105 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/test_cef_test_server_gen.go +0 -26 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/test_cef_translator_test__gen.go +0 -127 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_box_layout_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_browser_view_delegate_gen.go +0 -17 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_browser_view_gen.go +0 -11 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_button_delegate_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_button_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_display_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_fill_layout_gen.go +0 -7 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_label_button_gen.go +0 -18 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_layout_gen.go +0 -10 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_menu_button_delegate_gen.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_menu_button_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_overlay_controller_gen.go +0 -26 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_panel_delegate_gen.go +0 -7 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_panel_gen.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_scroll_view_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_textfield_delegate_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_textfield_gen.go +0 -31 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_view_delegate_gen.go +0 -18 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_view_gen.go +0 -59 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_window_delegate_gen.go +0 -30 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_window_gen.go +0 -49 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/capi.go +0 -25 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_app_gen.go +0 -20 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_auth_callback_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_browser_gen.go +0 -112 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_callback_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_command_line_gen.go +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_component_updater_gen.go +0 -29 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_context_menu_handler_gen.go +0 -44 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_cookie_gen.go +0 -22 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_crash_util_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_dialog_handler_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_dom_gen.go +0 -56 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_download_handler_gen.go +0 -20 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_download_item_gen.go +0 -32 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_drag_data_gen.go +0 -44 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_file_util_gen.go +0 -20 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_frame_gen.go +0 -38 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_i18n_util_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_image_gen.go +0 -30 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_jsdialog_handler_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_media_router_gen.go +0 -49 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_menu_model_gen.go +0 -73 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_navigation_entry_gen.go +0 -22 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_origin_whitelist_gen.go +0 -15 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_parser_gen.go +0 -26 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_path_util_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_permission_handler_gen.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_preference_gen.go +0 -30 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_print_handler_gen.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_print_settings_gen.go +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_process_message_gen.go +0 -23 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_process_util_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_registration_gen.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_request_context_gen.go +0 -42 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_request_gen.go +0 -64 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_request_handler_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_resource_bundle_gen.go +0 -20 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_resource_handler_gen.go +0 -18 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_response_gen.go +0 -34 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_scheme_gen.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_server_gen.go +0 -30 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_shared_memory_region_gen.go +0 -15 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_shared_process_message_builder_gen.go +0 -21 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_ssl_info_gen.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_ssl_status_gen.go +0 -17 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_stream_gen.go +0 -35 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_task_gen.go +0 -26 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_task_manager_gen.go +0 -22 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_thread_gen.go +0 -21 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_trace_gen.go +0 -15 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_types_linux_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_unresponsive_process_callback_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_urlrequest_gen.go +0 -24 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_v8_gen.go +0 -140 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_values_gen.go +0 -119 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_waitable_event_gen.go +0 -22 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_x509_certificate_gen.go +0 -33 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_xml_reader_gen.go +0 -46 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_zip_reader_gen.go +0 -29 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/test_cef_api_version_test__gen.go +0 -99 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/test_cef_test_helpers_gen.go +0 -15 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/test_cef_test_server_gen.go +0 -27 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/test_cef_translator_test__gen.go +0 -119 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_box_layout_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_browser_view_gen.go +0 -22 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_button_gen.go +0 -18 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_display_gen.go +0 -32 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_fill_layout_gen.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_label_button_gen.go +0 -28 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_layout_gen.go +0 -15 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_menu_button_delegate_gen.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_menu_button_gen.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_overlay_controller_gen.go +0 -31 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_panel_gen.go +0 -29 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_scroll_view_gen.go +0 -24 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_textfield_gen.go +0 -41 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_view_gen.go +0 -64 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_window_gen.go +0 -59 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/.gitignore +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/Makefile +0 -29 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/README.md +0 -124 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/browser_settings.go +0 -20 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/command_line.go +0 -23 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/diagnostics.go +0 -137 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/doc.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/handlers.go +0 -284 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/input.go +0 -277 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/cefadapter/accelerated_paint.go +0 -82 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/cefadapter/command_line.go +0 -108 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/cefadapter/window_info.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/cutil/cstring.go +0 -18 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/dmabuf/format.go +0 -48 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/dmabuf/frame.go +0 -144 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/dmabuf/modifier.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/egl/attrs.go +0 -82 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/egl/display.go +0 -70 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/egl/extensions.go +0 -47 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/egl/importer.go +0 -165 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/egl/loader.go +0 -104 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/egl/types.go +0 -18 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/gl/copy.go +0 -513 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/gl/loader.go +0 -262 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/gl/timer_query.go +0 -96 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/gtkgdk/renderer.go +0 -980 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/gtkgl/accelerated_renderer.go +0 -476 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/gtkgl/context.go +0 -172 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/gtkgl/gl.go +0 -95 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/gtkgl/glib.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/gtkgl/input_bridge.go +0 -1037 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/gtkgl/main_thread.go +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/gtkgl/render_signal.go +0 -17 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/profile/recorder.go +0 -352 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/options.go +0 -158 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/osr_backing_scale.go +0 -135 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/profile.go +0 -50 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/refresh_rate.go +0 -56 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/render_stack.go +0 -68 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/size_observation.go +0 -88 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/view.go +0 -1171 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/window_info.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/capi/.gitkeep +0 -0
no textual change.
D vendor/github.com/bnema/purego-pipewire/internal/capi/adapters_gen.go +0 -93 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/capi/init_gen.go +0 -30 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/capi/loop_gen.go +0 -53 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/capi/loop_lock.go +0 -40 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/capi/register.go +0 -41 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/capi/register_all.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/capi/stream_ops.go +0 -272 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/capi/stream_params.go +0 -172 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/capi/stream_playback_gen.go +0 -79 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/core/context.go +0 -31 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/core/core.go +0 -29 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/core/loop.go +0 -35 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/core/player.go +0 -440 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/core/player_rt.go +0 -207 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/core/player_state.go +0 -15 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/core/pwbuffer.go +0 -173 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/core/registry.go +0 -30 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/core/runtime.go +0 -82 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/core/stream.go +0 -38 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/loader/loader.go +0 -43 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/ports/out/.gitkeep +0 -0
no textual change.
D vendor/github.com/bnema/purego-pipewire/internal/ports/out/capi.go +0 -5 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/ports/out/capi_gen.go +0 -10 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/ports/out/init_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/ports/out/loop_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/ports/out/stream_ops.go +0 -56 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/ports/out/stream_playback_gen.go +0 -17 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/pipewire/context.go +0 -8 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/pipewire/core.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/pipewire/interfaces.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/pipewire/player.go +0 -218 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/pipewire/registry.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/pipewire/runtime.go +0 -60 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/pipewire/stream.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/driver/driver.go +0 -390 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/driver/register.go +0 -10 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/capi/bridge.go +0 -1461 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/capi/enums_gen.go +0 -863 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/capi/functions_gen.go +0 -358 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/capi/register_gen.go +0 -377 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/capi/variadic_gen.go +0 -141 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/core/db.go +0 -130 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/core/errors.go +0 -51 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/core/rows.go +0 -194 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/core/stmt.go +0 -128 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/loader/loader.go +0 -40 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/in/ports_gen.go +0 -36 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/auth_gen.go +0 -11 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/backup_gen.go +0 -15 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/bind_gen.go +0 -27 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/blob_gen.go +0 -16 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/capi_gen.go +0 -29 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/column_gen.go +0 -32 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/config_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/context_gen.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/exec_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/func_gen.go +0 -17 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/hook_gen.go +0 -20 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/lifecycle_gen.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/memory_gen.go +0 -25 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/metadata_gen.go +0 -22 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/misc_gen.go +0 -151 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/prepare_gen.go +0 -31 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/result_gen.go +0 -31 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/serialize_gen.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/str_gen.go +0 -22 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/trace_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/value_gen.go +0 -29 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/vfs_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/vtab_gen.go +0 -20 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/wal_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/sqlite/sqlite_gen.go +0 -49 collapsed to keep the page light
D vendor/github.com/bnema/purego-webp/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/bnema/purego-webp/internal/libwebp/generated_symbols.go +0 -513 collapsed to keep the page light
D vendor/github.com/bnema/purego-webp/internal/libwebp/loader.go +0 -86 collapsed to keep the page light
D vendor/github.com/bnema/purego-webp/internal/libwebp/types.go +0 -164 collapsed to keep the page light
D vendor/github.com/bnema/purego-webp/libwebp/libwebp.go +0 -880 collapsed to keep the page light
D vendor/github.com/bnema/purego/.gitignore +0 -1 collapsed to keep the page light
D vendor/github.com/bnema/purego/LICENSE +0 -201 collapsed to keep the page light
D vendor/github.com/bnema/purego/README.md +0 -147 collapsed to keep the page light
D vendor/github.com/bnema/purego/abi_amd64.h +0 -99 collapsed to keep the page light
D vendor/github.com/bnema/purego/abi_arm64.h +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego/abi_loong64.h +0 -60 collapsed to keep the page light
D vendor/github.com/bnema/purego/cgo.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego/dlerror.go +0 -17 collapsed to keep the page light
D vendor/github.com/bnema/purego/dlfcn.go +0 -99 collapsed to keep the page light
D vendor/github.com/bnema/purego/dlfcn_android.go +0 -34 collapsed to keep the page light
D vendor/github.com/bnema/purego/dlfcn_darwin.go +0 -20 collapsed to keep the page light
D vendor/github.com/bnema/purego/dlfcn_freebsd.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego/dlfcn_linux.go +0 -16 collapsed to keep the page light
D vendor/github.com/bnema/purego/dlfcn_netbsd.go +0 -15 collapsed to keep the page light
D vendor/github.com/bnema/purego/dlfcn_nocgo_freebsd.go +0 -11 collapsed to keep the page light
D vendor/github.com/bnema/purego/dlfcn_nocgo_linux.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego/dlfcn_nocgo_netbsd.go +0 -11 collapsed to keep the page light
D vendor/github.com/bnema/purego/dlfcn_playground.go +0 -24 collapsed to keep the page light
D vendor/github.com/bnema/purego/dlfcn_stubs.s +0 -22 collapsed to keep the page light
D vendor/github.com/bnema/purego/func.go +0 -677 collapsed to keep the page light
D vendor/github.com/bnema/purego/gen.go +0 -6 collapsed to keep the page light
D vendor/github.com/bnema/purego/go_runtime.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego/hostlayout_go123.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego/hostlayout_nogo123.go +0 -11 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/cgo/dlfcn_cgo_unix.go +0 -56 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/cgo/empty.go +0 -6 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/cgo/syscall_cgo_unix.go +0 -55 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/abi_amd64.h +0 -99 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/abi_arm64.h +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/abi_loong64.h +0 -60 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/abi_ppc64x.h +0 -195 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/abi_riscv64.h +0 -72 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/asm_386.s +0 -29 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/asm_amd64.s +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/asm_arm.s +0 -52 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/asm_arm64.s +0 -36 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/asm_loong64.s +0 -40 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/asm_ppc64le.s +0 -82 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/asm_riscv64.s +0 -37 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/asm_s390x.s +0 -55 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/callbacks.go +0 -93 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/doc.go +0 -32 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/fakecgo.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/freebsd.go +0 -27 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/go_darwin.go +0 -88 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/go_freebsd.go +0 -79 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/go_libinit.go +0 -72 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/go_linux.go +0 -79 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/go_netbsd.go +0 -85 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/go_setenv.go +0 -18 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/go_util.go +0 -38 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/iscgo.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/libcgo.go +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/libcgo_darwin.go +0 -26 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/libcgo_freebsd.go +0 -20 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/libcgo_linux.go +0 -20 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/libcgo_netbsd.go +0 -26 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/linux.go +0 -184 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/netbsd.go +0 -23 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/setenv.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/trampolines_386.s +0 -121 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/trampolines_amd64.s +0 -107 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/trampolines_arm.s +0 -122 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/trampolines_arm64.s +0 -81 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/trampolines_linux_386.s +0 -78 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/trampolines_linux_amd64.s +0 -69 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/trampolines_linux_arm.s +0 -69 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/trampolines_linux_arm64.s +0 -60 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/trampolines_linux_loong64.s +0 -60 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/trampolines_linux_ppc64le.s +0 -69 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/trampolines_linux_riscv64.s +0 -60 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/trampolines_loong64.s +0 -78 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/trampolines_ppc64le.s +0 -128 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/trampolines_riscv64.s +0 -76 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/zsymbols.go +0 -165 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/zsymbols_darwin.go +0 -59 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/zsymbols_freebsd.go +0 -48 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/zsymbols_linux.go +0 -158 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/zsymbols_netbsd.go +0 -59 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/ztrampolines_darwin.s +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/ztrampolines_freebsd.s +0 -16 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/ztrampolines_linux.s +0 -46 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/ztrampolines_netbsd.s +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/ztrampolines_stubs.s +0 -55 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/strings/strings.go +0 -40 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/xreflect/reflect_go124.go +0 -15 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/xreflect/reflect_go125.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego/is_ios.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego/nocgo.go +0 -25 collapsed to keep the page light
D vendor/github.com/bnema/purego/struct_386.go +0 -52 collapsed to keep the page light
D vendor/github.com/bnema/purego/struct_abi_helpers.go +0 -38 collapsed to keep the page light
D vendor/github.com/bnema/purego/struct_amd64.go +0 -443 collapsed to keep the page light
D vendor/github.com/bnema/purego/struct_arm.go +0 -98 collapsed to keep the page light
D vendor/github.com/bnema/purego/struct_arm64.go +0 -759 collapsed to keep the page light
D vendor/github.com/bnema/purego/struct_loong64.go +0 -216 collapsed to keep the page light
D vendor/github.com/bnema/purego/struct_ppc64le.go +0 -151 collapsed to keep the page light
D vendor/github.com/bnema/purego/struct_riscv64.go +0 -151 collapsed to keep the page light
D vendor/github.com/bnema/purego/struct_s390x.go +0 -151 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_386.s +0 -147 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_amd64.s +0 -170 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_arm.s +0 -142 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_arm64.s +0 -98 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_loong64.s +0 -96 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_ppc64le.s +0 -120 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_riscv64.s +0 -101 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_s390x.s +0 -114 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_unix_386.s +0 -226 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_unix_arm.s +0 -89 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_unix_arm64.s +0 -75 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_unix_loong64.s +0 -79 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_unix_ppc64le.s +0 -114 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_unix_riscv64.s +0 -79 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_unix_s390x.s +0 -109 collapsed to keep the page light
D vendor/github.com/bnema/purego/syscall.go +0 -108 collapsed to keep the page light
D vendor/github.com/bnema/purego/syscall_32bit.go +0 -115 collapsed to keep the page light
D vendor/github.com/bnema/purego/syscall_cgo_linux.go +0 -21 collapsed to keep the page light
D vendor/github.com/bnema/purego/syscall_notstackargs.go +0 -38 collapsed to keep the page light
D vendor/github.com/bnema/purego/syscall_stackargs.go +0 -43 collapsed to keep the page light
D vendor/github.com/bnema/purego/syscall_unix.go +0 -693 collapsed to keep the page light
D vendor/github.com/bnema/purego/syscall_windows.go +0 -112 collapsed to keep the page light
D vendor/github.com/bnema/purego/zcallback_386.s +0 -4014 collapsed to keep the page light
D vendor/github.com/bnema/purego/zcallback_amd64.s +0 -2014 collapsed to keep the page light
D vendor/github.com/bnema/purego/zcallback_arm.s +0 -4014 collapsed to keep the page light
D vendor/github.com/bnema/purego/zcallback_arm64.s +0 -4014 collapsed to keep the page light
D vendor/github.com/bnema/purego/zcallback_loong64.s +0 -4014 collapsed to keep the page light
D vendor/github.com/bnema/purego/zcallback_ppc64le.s +0 -4014 collapsed to keep the page light
D vendor/github.com/bnema/purego/zcallback_riscv64.s +0 -4051 collapsed to keep the page light
D vendor/github.com/bnema/purego/zcallback_s390x.s +0 -4015 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/internal/core/core.go +0 -515 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/pkg/core/core.go +0 -30 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-about-dialog.go +0 -2056 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-about-window.go +0 -2083 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-accent-color.go +0 -80 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-action-row.go +0 -812 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-alert-dialog.go +0 -1214 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-animation-target.go +0 -313 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-animation-util.go +0 -35 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-animation.go +0 -388 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-application-window.go +0 -969 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-application.go +0 -493 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-avatar.go +0 -593 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-banner.go +0 -704 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-bin.go +0 -382 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-bottom-sheet.go +0 -1019 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint-bin.go +0 -523 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint.go +0 -562 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-button-content.go +0 -568 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-button-row.go +0 -572 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-dots.go +0 -399 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-lines.go +0 -398 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-carousel.go +0 -871 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-layout.go +0 -258 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-scrollable.go +0 -605 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-clamp.go +0 -548 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-combo-row.go +0 -816 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-dialog.go +0 -954 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-easing.go +0 -144 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-entry-row.go +0 -1077 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-enum-list-model.go +0 -300 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-expander-row.go +0 -791 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-flap.go +0 -1049 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-fold-threshold-policy.go +0 -30 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-header-bar.go +0 -815 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-inline-view-switcher.go +0 -566 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-layout-slot.go +0 -378 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-layout.go +0 -147 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-leaflet.go +0 -1296 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-length-unit.go +0 -61 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-main.go +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-message-dialog.go +0 -1218 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-multi-layout-view.go +0 -559 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-direction.go +0 -30 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-split-view.go +0 -859 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-view.go +0 -1906 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-overlay-split-view.go +0 -999 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-password-entry-row.go +0 -690 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-dialog.go +0 -520 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-group.go +0 -586 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-page.go +0 -672 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-row.go +0 -603 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-window.go +0 -715 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-shortcut-label.go +0 -480 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-dialog.go +0 -441 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-item.go +0 -285 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-section.go +0 -246 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-item.go +0 -561 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-section.go +0 -386 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar.go +0 -1144 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-spin-row.go +0 -1118 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-spinner-paintable.go +0 -289 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-spinner.go +0 -381 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-split-button.go +0 -889 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-spring-animation.go +0 -477 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-spring-params.go +0 -175 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-squeezer.go +0 -971 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-status-page.go +0 -559 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-style-manager.go +0 -420 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-swipe-tracker.go +0 -519 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-swipeable.go +0 -287 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-switch-row.go +0 -491 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-tab-bar.go +0 -802 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-tab-button.go +0 -529 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-tab-overview.go +0 -970 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-tab-view.go +0 -2327 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-timed-animation.go +0 -387 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-toast-overlay.go +0 -443 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-toast.go +0 -717 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-toggle-group.go +0 -1196 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-toolbar-view.go +0 -938 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-version.go +0 -72 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-view-stack.go +0 -1890 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-bar.go +0 -470 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-sidebar.go +0 -547 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-title.go +0 -599 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher.go +0 -480 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-window-title.go +0 -443 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-window.go +0 -685 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-box.go +0 -945 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-layout.go +0 -687 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/cairo/main.go +0 -947 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkapplaunchcontext.go +0 -153 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkcairo.go +0 -97 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkcairocontext.go +0 -68 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkcicpparams.go +0 -329 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkclipboard.go +0 -414 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkcolorstate.go +0 -127 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentdeserializer.go +0 -278 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentformats.go +0 -245 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentprovider.go +0 -517 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentserializer.go +0 -279 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkcursor.go +0 -331 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkdevice.go +0 -619 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicepad.go +0 -156 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicetool.go +0 -160 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplay.go +0 -741 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplaymanager.go +0 -244 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexture.go +0 -299 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexturebuilder.go +0 -625 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexturebuilder_extra.go +0 -47 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkdrag.go +0 -366 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurface.go +0 -73 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurfacesize.go +0 -48 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkdrawcontext.go +0 -171 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkdrop.go +0 -292 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkenums.go +0 -896 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkevents.go +0 -1449 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkframeclock.go +0 -474 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkframetimings.go +0 -162 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkglcontext.go +0 -424 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexture.go +0 -318 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexturebuilder.go +0 -508 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkkeys.go +0 -113 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkkeysyms.go +0 -4904 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexture.go +0 -304 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexturebuilder.go +0 -460 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkmonitor.go +0 -382 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkpaintable.go +0 -575 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkpango.go +0 -64 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkpixbuf.go +0 -57 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkpopup.go +0 -214 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkpopuplayout.go +0 -311 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkrgba.go +0 -190 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkseat.go +0 -263 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdksnapshot.go +0 -63 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdksurface.go +0 -710 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdktexture.go +0 -716 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevel.go +0 -751 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevellayout.go +0 -196 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevelsize.go +0 -101 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdktypes.go +0 -853 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkvulkancontext.go +0 -86 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-animation.go +0 -746 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-core.go +0 -116 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-features.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-io.go +0 -549 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-loader.go +0 -552 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-simple-anim.go +0 -125 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-transform.go +0 -83 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf.go +0 -1783 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdkpixbuf/main.go +0 -94 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gaction.go +0 -663 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gactiongroup.go +0 -852 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gactionmap.go +0 -434 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gappinfo.go +0 -2242 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gapplication.go +0 -2213 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gapplicationcommandline.go +0 -715 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gasyncinitable.go +0 -339 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gasyncresult.go +0 -325 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gbufferedinputstream.go +0 -556 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gbufferedoutputstream.go +0 -314 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gbytesicon.go +0 -186 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gcancellable.go +0 -617 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gcharsetconverter.go +0 -327 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gcontenttype.go +0 -243 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gconverter.go +0 -266 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gconverterinputstream.go +0 -316 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gconverteroutputstream.go +0 -349 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gcredentials.go +0 -235 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdatagrambased.go +0 -496 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdatainputstream.go +0 -674 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdataoutputstream.go +0 -416 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusactiongroup.go +0 -330 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusaddress.go +0 -152 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusauthobserver.go +0 -199 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusconnection.go +0 -1909 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbuserror.go +0 -182 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusinterface.go +0 -291 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusinterfaceskeleton.go +0 -542 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusintrospection.go +0 -579 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusmenumodel.go +0 -70 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusmessage.go +0 -753 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusmethodinvocation.go +0 -392 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusnameowning.go +0 -131 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusnamewatching.go +0 -110 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusobject.go +0 -274 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanager.go +0 -390 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerclient.go +0 -719 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerserver.go +0 -268 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectproxy.go +0 -169 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectskeleton.go +0 -267 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusproxy.go +0 -1102 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusserver.go +0 -311 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusutils.go +0 -213 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdebugcontroller.go +0 -134 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdebugcontrollerdbus.go +0 -361 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdrive.go +0 -1459 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdtlsclientconnection.go +0 -186 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdtlsconnection.go +0 -1041 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdtlsserverconnection.go +0 -85 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gemblem.go +0 -175 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gemblemedicon.go +0 -197 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gfile.go +0 -7039 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gfileattribute.go +0 -139 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gfileenumerator.go +0 -768 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gfileicon.go +0 -190 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gfileinfo.go +0 -1682 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gfileinputstream.go +0 -513 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gfileiostream.go +0 -619 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gfilemonitor.go +0 -388 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gfilenamecompleter.go +0 -243 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gfileoutputstream.go +0 -614 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gfilterinputstream.go +0 -197 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gfilteroutputstream.go +0 -197 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gicon.go +0 -378 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/ginetaddress.go +0 -556 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/ginetaddressmask.go +0 -262 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/ginetsocketaddress.go +0 -280 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/ginitable.go +0 -195 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/ginputstream.go +0 -869 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gioenums.go +0 -2410 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gioerror.go +0 -61 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/giomodule.go +0 -347 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gioscheduler.go +0 -40 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/giostream.go +0 -723 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/giotypes.go +0 -1144 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/giptosmessage.go +0 -112 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gipv6tclassmessage.go +0 -112 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/glistmodel.go +0 -348 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gliststore.go +0 -326 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gloadableicon.go +0 -236 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gmemoryinputstream.go +0 -411 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gmemorymonitor.go +0 -167 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gmemoryoutputstream.go +0 -610 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gmenu.go +0 -772 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gmenuexporter.go +0 -10 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gmenumodel.go +0 -993 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gmount.go +0 -1422 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gmountoperation.go +0 -1017 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gnativesocketaddress.go +0 -144 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gnativevolumemonitor.go +0 -101 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gnetworkaddress.go +0 -336 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gnetworking.go +0 -21 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gnetworkmonitor.go +0 -412 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gnetworkservice.go +0 -272 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gnotification.go +0 -283 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/goutputstream.go +0 -1272 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gpermission.go +0 -443 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gpollableinputstream.go +0 -305 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gpollableoutputstream.go +0 -384 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gpollableutils.go +0 -124 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gpowerprofilemonitor.go +0 -136 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gpropertyaction.go +0 -326 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gproxy.go +0 -315 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gproxyaddress.go +0 -352 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gproxyaddressenumerator.go +0 -301 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gproxyresolver.go +0 -298 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gremoteactiongroup.go +0 -180 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gresolver.go +0 -1053 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gresource.go +0 -250 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gseekable.go +0 -316 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsettings.go +0 -1862 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsettingsbackend.go +0 -676 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsettingsschema.go +0 -592 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsimpleaction.go +0 -433 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsimpleactiongroup.go +0 -489 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsimpleasyncresult.go +0 -618 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsimpleiostream.go +0 -68 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsimplepermission.go +0 -64 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsimpleproxyresolver.go +0 -446 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsocket.go +0 -2007 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsocketaddress.go +0 -249 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsocketaddressenumerator.go +0 -253 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsocketclient.go +0 -955 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsocketconnectable.go +0 -298 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsocketconnection.go +0 -397 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsocketcontrolmessage.go +0 -440 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsocketlistener.go +0 -619 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsocketservice.go +0 -406 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsrvtarget.go +0 -27 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsubprocess.go +0 -633 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsubprocesslauncher.go +0 -412 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gtask.go +0 -1352 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gtcpconnection.go +0 -125 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gtcpwrapperconnection.go +0 -119 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gtestdbus.go +0 -228 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gthemedicon.go +0 -291 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gthreadedresolver.go +0 -63 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gthreadedsocketservice.go +0 -309 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gtlsbackend.go +0 -499 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gtlscertificate.go +0 -764 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gtlsclientconnection.go +0 -319 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gtlsconnection.go +0 -836 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gtlsdatabase.go +0 -886 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gtlsfiledatabase.go +0 -119 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gtlsinteraction.go +0 -518 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gtlspassword.go +0 -328 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gtlsserverconnection.go +0 -90 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gunixconnection.go +0 -267 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gunixcredentialsmessage.go +0 -211 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gunixfdlist.go +0 -370 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gunixsocketaddress.go +0 -341 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gvfs.go +0 -698 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gvolume.go +0 -1140 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gvolumemonitor.go +0 -1182 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gzlibcompressor.go +0 -307 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gzlibdecompressor.go +0 -213 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/main.go +0 -21 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gallocator.go +0 -188 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/garray.go +0 -817 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gasyncqueue.go +0 -448 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gatomic.go +0 -404 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gbacktrace.go +0 -91 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gbase64.go +0 -104 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gbitlock.go +0 -186 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gbookmarkfile.go +0 -958 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gcache.go +0 -118 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gcharset.go +0 -138 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gchecksum.go +0 -222 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gcompletion.go +0 -156 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gconvert.go +0 -457 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gdataset.go +0 -286 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gdate.go +0 -850 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gdatetime.go +0 -1084 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gdir.go +0 -138 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/genviron.go +0 -147 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gerror.go +0 -285 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gfileutils.go +0 -806 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/ggettext.go +0 -144 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/ghash.go +0 -742 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/ghmac.go +0 -205 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/ghook.go +0 -260 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/ghostutils.go +0 -83 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/giochannel.go +0 -1139 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gkeyfile.go +0 -1174 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/glib-types.go +0 -30 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/glibconfig.go +0 -116 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/glist.go +0 -48 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gmacros.go +0 -30 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gmain.go +0 -2568 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gmappedfile.go +0 -178 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gmarkup.go +0 -788 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gmem.go +0 -532 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gmessages.go +0 -1030 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gnode.go +0 -439 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/goption.go +0 -666 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gpathbuf.go +0 -316 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gpattern.go +0 -205 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gpoll.go +0 -76 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gprimes.go +0 -24 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gprintf.go +0 -116 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gqsort.go +0 -35 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gquark.go +0 -153 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gqueue.go +0 -503 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/grand.go +0 -226 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/grcbox.go +0 -200 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/grefcount.go +0 -134 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/grefstring.go +0 -103 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gregex.go +0 -1625 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/grel.go +0 -204 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gscanner.go +0 -483 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gsequence.go +0 -603 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gshell.go +0 -112 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gslice.go +0 -138 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gslist.go +0 -47 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gspawn.go +0 -607 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gstdio.go +0 -381 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gstrfuncs.go +0 -1164 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gstring.go +0 -622 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gstringchunk.go +0 -135 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gstrvbuilder.go +0 -176 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gtestutils.go +0 -1491 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gthread.go +0 -2487
| @@ -1,2487 +0,0 @@ | |||
| 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 | - | // Specifies the type of the @func functions passed to g_thread_new() | |
| 14 | - | // or g_thread_try_new(). | |
| 15 | - | type ThreadFunc func(uintptr) uintptr | |
| 16 | - | ||
| 17 | - | // The #GCond struct is an opaque data structure that represents a | |
| 18 | - | // condition. Threads can block on a #GCond if they find a certain | |
| 19 | - | // condition to be false. If other threads change the state of this | |
| 20 | - | // condition they signal the #GCond, and that causes the waiting | |
| 21 | - | // threads to be woken up. | |
| 22 | - | // | |
| 23 | - | // Consider the following example of a shared variable. One or more | |
| 24 | - | // threads can wait for data to be published to the variable and when | |
| 25 | - | // another thread publishes the data, it can signal one of the waiting | |
| 26 | - | // threads to wake up to collect the data. | |
| 27 | - | // | |
| 28 | - | // Here is an example for using GCond to block a thread until a condition | |
| 29 | - | // is satisfied: | |
| 30 | - | // |[<!-- language="C" --> | |
| 31 | - | // | |
| 32 | - | // gpointer current_data = NULL; | |
| 33 | - | // GMutex data_mutex; | |
| 34 | - | // GCond data_cond; | |
| 35 | - | // | |
| 36 | - | // void | |
| 37 | - | // push_data (gpointer data) | |
| 38 | - | // { | |
| 39 | - | // g_mutex_lock (&data_mutex); | |
| 40 | - | // current_data = data; | |
| 41 | - | // g_cond_signal (&data_cond); | |
| 42 | - | // g_mutex_unlock (&data_mutex); | |
| 43 | - | // } | |
| 44 | - | // | |
| 45 | - | // gpointer | |
| 46 | - | // pop_data (void) | |
| 47 | - | // { | |
| 48 | - | // gpointer data; | |
| 49 | - | // | |
| 50 | - | // g_mutex_lock (&data_mutex); | |
| 51 | - | // while (!current_data) | |
| 52 | - | // g_cond_wait (&data_cond, &data_mutex); | |
| 53 | - | // data = current_data; | |
| 54 | - | // current_data = NULL; | |
| 55 | - | // g_mutex_unlock (&data_mutex); | |
| 56 | - | // | |
| 57 | - | // return data; | |
| 58 | - | // } | |
| 59 | - | // | |
| 60 | - | // ]| | |
| 61 | - | // Whenever a thread calls pop_data() now, it will wait until | |
| 62 | - | // current_data is non-%NULL, i.e. until some other thread | |
| 63 | - | // has called push_data(). | |
| 64 | - | // | |
| 65 | - | // The example shows that use of a condition variable must always be | |
| 66 | - | // paired with a mutex. Without the use of a mutex, there would be a | |
| 67 | - | // race between the check of @current_data by the while loop in | |
| 68 | - | // pop_data() and waiting. Specifically, another thread could set | |
| 69 | - | // @current_data after the check, and signal the cond (with nobody | |
| 70 | - | // waiting on it) before the first thread goes to sleep. #GCond is | |
| 71 | - | // specifically useful for its ability to release the mutex and go | |
| 72 | - | // to sleep atomically. | |
| 73 | - | // | |
| 74 | - | // It is also important to use the g_cond_wait() and g_cond_wait_until() | |
| 75 | - | // functions only inside a loop which checks for the condition to be | |
| 76 | - | // true. See g_cond_wait() for an explanation of why the condition may | |
| 77 | - | // not be true even after it returns. | |
| 78 | - | // | |
| 79 | - | // If a #GCond is allocated in static storage then it can be used | |
| 80 | - | // without initialisation. Otherwise, you should call g_cond_init() | |
| 81 | - | // on it and g_cond_clear() when done. | |
| 82 | - | // | |
| 83 | - | // A #GCond should only be accessed via the g_cond_ functions. | |
| 84 | - | type Cond struct { | |
| 85 | - | _ structs.HostLayout | |
| 86 | - | ||
| 87 | - | P uintptr | |
| 88 | - | ||
| 89 | - | I [2]uint | |
| 90 | - | } | |
| 91 | - | ||
| 92 | - | func (x *Cond) GoPointer() uintptr { | |
| 93 | - | return uintptr(unsafe.Pointer(x)) | |
| 94 | - | } | |
| 95 | - | ||
| 96 | - | func CondNewFromInternalPtr(ptr uintptr) *Cond { | |
| 97 | - | if ptr == 0 { | |
| 98 | - | return nil | |
| 99 | - | } | |
| 100 | - | rawPtr := *(*unsafe.Pointer)(unsafe.Pointer(&ptr)) | |
| 101 | - | return (*Cond)(rawPtr) | |
| 102 | - | } | |
| 103 | - | ||
| 104 | - | var xCondBroadcast func(uintptr) | |
| 105 | - | ||
| 106 | - | // If threads are waiting for @cond, all of them are unblocked. | |
| 107 | - | // If no threads are waiting for @cond, this function has no effect. | |
| 108 | - | // It is good practice to lock the same mutex as the waiting threads | |
| 109 | - | // while calling this function, though not required. | |
| 110 | - | func (x *Cond) Broadcast() { | |
| 111 | - | core.LazyRegister(&xCondBroadcast, "GLIB", "g_cond_broadcast", false) | |
| 112 | - | ||
| 113 | - | xCondBroadcast(x.GoPointer()) | |
| 114 | - | } | |
| 115 | - | ||
| 116 | - | var xCondClear func(uintptr) | |
| 117 | - | ||
| 118 | - | // Frees the resources allocated to a #GCond with g_cond_init(). | |
| 119 | - | // | |
| 120 | - | // This function should not be used with a #GCond that has been | |
| 121 | - | // statically allocated. | |
| 122 | - | // | |
| 123 | - | // Calling g_cond_clear() for a #GCond on which threads are | |
| 124 | - | // blocking leads to undefined behaviour. | |
| 125 | - | func (x *Cond) Clear() { | |
| 126 | - | core.LazyRegister(&xCondClear, "GLIB", "g_cond_clear", false) | |
| 127 | - | ||
| 128 | - | xCondClear(x.GoPointer()) | |
| 129 | - | } | |
| 130 | - | ||
| 131 | - | var xCondFree func(uintptr) | |
| 132 | - | ||
| 133 | - | // Destroys a #GCond that has been created with g_cond_new(). | |
| 134 | - | // | |
| 135 | - | // Calling g_cond_free() for a #GCond on which threads are | |
| 136 | - | // blocking leads to undefined behaviour. | |
| 137 | - | func (x *Cond) Free() { | |
| 138 | - | core.LazyRegister(&xCondFree, "GLIB", "g_cond_free", false) | |
| 139 | - | ||
| 140 | - | xCondFree(x.GoPointer()) | |
| 141 | - | } | |
| 142 | - | ||
| 143 | - | var xCondInit func(uintptr) | |
| 144 | - | ||
| 145 | - | // Initialises a #GCond so that it can be used. | |
| 146 | - | // | |
| 147 | - | // This function is useful to initialise a #GCond that has been | |
| 148 | - | // allocated as part of a larger structure. It is not necessary to | |
| 149 | - | // initialise a #GCond that has been statically allocated. | |
| 150 | - | // | |
| 151 | - | // To undo the effect of g_cond_init() when a #GCond is no longer | |
| 152 | - | // needed, use g_cond_clear(). | |
| 153 | - | // | |
| 154 | - | // Calling g_cond_init() on an already-initialised #GCond leads | |
| 155 | - | // to undefined behaviour. | |
| 156 | - | func (x *Cond) Init() { | |
| 157 | - | core.LazyRegister(&xCondInit, "GLIB", "g_cond_init", false) | |
| 158 | - | ||
| 159 | - | xCondInit(x.GoPointer()) | |
| 160 | - | } | |
| 161 | - | ||
| 162 | - | var xCondSignal func(uintptr) | |
| 163 | - | ||
| 164 | - | // If threads are waiting for @cond, at least one of them is unblocked. | |
| 165 | - | // If no threads are waiting for @cond, this function has no effect. | |
| 166 | - | // It is good practice to hold the same lock as the waiting thread | |
| 167 | - | // while calling this function, though not required. | |
| 168 | - | func (x *Cond) Signal() { | |
| 169 | - | core.LazyRegister(&xCondSignal, "GLIB", "g_cond_signal", false) | |
| 170 | - | ||
| 171 | - | xCondSignal(x.GoPointer()) | |
| 172 | - | } | |
| 173 | - | ||
| 174 | - | var xCondTimedWait func(uintptr, *Mutex, *TimeVal) bool | |
| 175 | - | ||
| 176 | - | // Waits until this thread is woken up on @cond, but not longer than | |
| 177 | - | // until the time specified by @abs_time. The @mutex is unlocked before | |
| 178 | - | // falling asleep and locked again before resuming. | |
| 179 | - | // | |
| 180 | - | // If @abs_time is %NULL, g_cond_timed_wait() acts like g_cond_wait(). | |
| 181 | - | // | |
| 182 | - | // This function can be used even if g_thread_init() has not yet been | |
| 183 | - | // called, and, in that case, will immediately return %TRUE. | |
| 184 | - | // | |
| 185 | - | // To easily calculate @abs_time a combination of g_get_real_time() | |
| 186 | - | // and g_time_val_add() can be used. | |
| 187 | - | func (x *Cond) TimedWait(MutexVar *Mutex, AbsTimeVar *TimeVal) bool { | |
| 188 | - | core.LazyRegister(&xCondTimedWait, "GLIB", "g_cond_timed_wait", false) | |
| 189 | - | ||
| 190 | - | cret := xCondTimedWait(x.GoPointer(), MutexVar, AbsTimeVar) | |
| 191 | - | return cret | |
| 192 | - | } | |
| 193 | - | ||
| 194 | - | var xCondWait func(uintptr, *Mutex) | |
| 195 | - | ||
| 196 | - | // Atomically releases @mutex and waits until @cond is signalled. | |
| 197 | - | // When this function returns, @mutex is locked again and owned by the | |
| 198 | - | // calling thread. | |
| 199 | - | // | |
| 200 | - | // When using condition variables, it is possible that a spurious wakeup | |
| 201 | - | // may occur (ie: g_cond_wait() returns even though g_cond_signal() was | |
| 202 | - | // not called). It's also possible that a stolen wakeup may occur. | |
| 203 | - | // This is when g_cond_signal() is called, but another thread acquires | |
| 204 | - | // @mutex before this thread and modifies the state of the program in | |
| 205 | - | // such a way that when g_cond_wait() is able to return, the expected | |
| 206 | - | // condition is no longer met. | |
| 207 | - | // | |
| 208 | - | // For this reason, g_cond_wait() must always be used in a loop. See | |
| 209 | - | // the documentation for #GCond for a complete example. | |
| 210 | - | func (x *Cond) Wait(MutexVar *Mutex) { | |
| 211 | - | core.LazyRegister(&xCondWait, "GLIB", "g_cond_wait", false) | |
| 212 | - | ||
| 213 | - | xCondWait(x.GoPointer(), MutexVar) | |
| 214 | - | } | |
| 215 | - | ||
| 216 | - | var xCondWaitUntil func(uintptr, *Mutex, int64) bool | |
| 217 | - | ||
| 218 | - | // Waits until either @cond is signalled or @end_time has passed. | |
| 219 | - | // | |
| 220 | - | // As with g_cond_wait() it is possible that a spurious or stolen wakeup | |
| 221 | - | // could occur. For that reason, waiting on a condition variable should | |
| 222 | - | // always be in a loop, based on an explicitly-checked predicate. | |
| 223 | - | // | |
| 224 | - | // %TRUE is returned if the condition variable was signalled (or in the | |
| 225 | - | // case of a spurious wakeup). %FALSE is returned if @end_time has | |
| 226 | - | // passed. | |
| 227 | - | // | |
| 228 | - | // The following code shows how to correctly perform a timed wait on a | |
| 229 | - | // condition variable (extending the example presented in the | |
| 230 | - | // documentation for #GCond): | |
| 231 | - | // | |
| 232 | - | // |[<!-- language="C" --> | |
| 233 | - | // gpointer | |
| 234 | - | // pop_data_timed (void) | |
| 235 | - | // | |
| 236 | - | // { | |
| 237 | - | // gint64 end_time; | |
| 238 | - | // gpointer data; | |
| 239 | - | // | |
| 240 | - | // g_mutex_lock (&data_mutex); | |
| 241 | - | // | |
| 242 | - | // end_time = g_get_monotonic_time () + 5 * G_TIME_SPAN_SECOND; | |
| 243 | - | // while (!current_data) | |
| 244 | - | // if (!g_cond_wait_until (&data_cond, &data_mutex, end_time)) | |
| 245 | - | // { | |
| 246 | - | // // timeout has passed. | |
| 247 | - | // g_mutex_unlock (&data_mutex); | |
| 248 | - | // return NULL; | |
| 249 | - | // } | |
| 250 | - | // | |
| 251 | - | // // there is data for us | |
| 252 | - | // data = current_data; | |
| 253 | - | // current_data = NULL; | |
| 254 | - | // | |
| 255 | - | // g_mutex_unlock (&data_mutex); | |
| 256 | - | // | |
| 257 | - | // return data; | |
| 258 | - | // } | |
| 259 | - | // | |
| 260 | - | // ]| | |
| 261 | - | // | |
| 262 | - | // Notice that the end time is calculated once, before entering the | |
| 263 | - | // loop and reused. This is the motivation behind the use of absolute | |
| 264 | - | // time on this API -- if a relative time of 5 seconds were passed | |
| 265 | - | // directly to the call and a spurious wakeup occurred, the program would | |
| 266 | - | // have to start over waiting again (which would lead to a total wait | |
| 267 | - | // time of more than 5 seconds). | |
| 268 | - | func (x *Cond) WaitUntil(MutexVar *Mutex, EndTimeVar int64) bool { | |
| 269 | - | core.LazyRegister(&xCondWaitUntil, "GLIB", "g_cond_wait_until", false) | |
| 270 | - | ||
| 271 | - | cret := xCondWaitUntil(x.GoPointer(), MutexVar, EndTimeVar) | |
| 272 | - | return cret | |
| 273 | - | } | |
| 274 | - | ||
| 275 | - | // A #GOnce struct controls a one-time initialization function. Any | |
| 276 | - | // one-time initialization function must have its own unique #GOnce | |
| 277 | - | // struct. | |
| 278 | - | type Once struct { | |
| 279 | - | _ structs.HostLayout | |
| 280 | - | ||
| 281 | - | Status OnceStatus | |
| 282 | - | ||
| 283 | - | Retval uintptr | |
| 284 | - | } | |
| 285 | - | ||
| 286 | - | func (x *Once) GoPointer() uintptr { | |
| 287 | - | return uintptr(unsafe.Pointer(x)) | |
| 288 | - | } | |
| 289 | - | ||
| 290 | - | func OnceNewFromInternalPtr(ptr uintptr) *Once { | |
| 291 | - | if ptr == 0 { | |
| 292 | - | return nil | |
| 293 | - | } | |
| 294 | - | rawPtr := *(*unsafe.Pointer)(unsafe.Pointer(&ptr)) | |
| 295 | - | return (*Once)(rawPtr) | |
| 296 | - | } | |
| 297 | - | ||
| 298 | - | var xOnceImpl func(uintptr, uintptr, uintptr) uintptr | |
| 299 | - | ||
| 300 | - | func (x *Once) Impl(FuncVar *ThreadFunc, ArgVar uintptr) uintptr { | |
| 301 | - | core.LazyRegister(&xOnceImpl, "GLIB", "g_once_impl", false) | |
| 302 | - | ||
| 303 | - | cret := xOnceImpl(x.GoPointer(), NewCallback(FuncVar), ArgVar) | |
| 304 | - | return cret | |
| 305 | - | } | |
| 306 | - | ||
| 307 | - | // The #GPrivate struct is an opaque data structure to represent a | |
| 308 | - | // thread-local data key. It is approximately equivalent to the | |
| 309 | - | // pthread_setspecific()/pthread_getspecific() APIs on POSIX and to | |
| 310 | - | // TlsSetValue()/TlsGetValue() on Windows. | |
| 311 | - | // | |
| 312 | - | // If you don't already know why you might want this functionality, | |
| 313 | - | // then you probably don't need it. | |
| 314 | - | // | |
| 315 | - | // #GPrivate is a very limited resource (as far as 128 per program, | |
| 316 | - | // shared between all libraries). It is also not possible to destroy a | |
| 317 | - | // #GPrivate after it has been used. As such, it is only ever acceptable | |
| 318 | - | // to use #GPrivate in static scope, and even then sparingly so. | |
| 319 | - | // | |
| 320 | - | // See G_PRIVATE_INIT() for a couple of examples. | |
| 321 | - | // | |
| 322 | - | // The #GPrivate structure should be considered opaque. It should only | |
| 323 | - | // be accessed via the g_private_ functions. | |
| 324 | - | type Private struct { | |
| 325 | - | _ structs.HostLayout | |
| 326 | - | ||
| 327 | - | P uintptr | |
| 328 | - | ||
| 329 | - | Notify DestroyNotify | |
| 330 | - | ||
| 331 | - | Future [2]uintptr | |
| 332 | - | } | |
| 333 | - | ||
| 334 | - | func (x *Private) GoPointer() uintptr { | |
| 335 | - | return uintptr(unsafe.Pointer(x)) | |
| 336 | - | } | |
| 337 | - | ||
| 338 | - | func PrivateNewFromInternalPtr(ptr uintptr) *Private { | |
| 339 | - | if ptr == 0 { | |
| 340 | - | return nil | |
| 341 | - | } | |
| 342 | - | rawPtr := *(*unsafe.Pointer)(unsafe.Pointer(&ptr)) | |
| 343 | - | return (*Private)(rawPtr) | |
| 344 | - | } | |
| 345 | - | ||
| 346 | - | var xPrivateGet func(uintptr) uintptr | |
| 347 | - | ||
| 348 | - | // Returns the current value of the thread local variable @key. | |
| 349 | - | // | |
| 350 | - | // If the value has not yet been set in this thread, %NULL is returned. | |
| 351 | - | // Values are never copied between threads (when a new thread is | |
| 352 | - | // created, for example). | |
| 353 | - | func (x *Private) Get() uintptr { | |
| 354 | - | core.LazyRegister(&xPrivateGet, "GLIB", "g_private_get", false) | |
| 355 | - | ||
| 356 | - | cret := xPrivateGet(x.GoPointer()) | |
| 357 | - | return cret | |
| 358 | - | } | |
| 359 | - | ||
| 360 | - | var xPrivateReplace func(uintptr, uintptr) | |
| 361 | - | ||
| 362 | - | // Sets the thread local variable @key to have the value @value in the | |
| 363 | - | // current thread. | |
| 364 | - | // | |
| 365 | - | // This function differs from g_private_set() in the following way: if | |
| 366 | - | // the previous value was non-%NULL then the #GDestroyNotify handler for | |
| 367 | - | // @key is run on it. | |
| 368 | - | func (x *Private) Replace(ValueVar uintptr) { | |
| 369 | - | core.LazyRegister(&xPrivateReplace, "GLIB", "g_private_replace", false) | |
| 370 | - | ||
| 371 | - | xPrivateReplace(x.GoPointer(), ValueVar) | |
| 372 | - | } | |
| 373 | - | ||
| 374 | - | var xPrivateSet func(uintptr, uintptr) | |
| 375 | - | ||
| 376 | - | // Sets the thread local variable @key to have the value @value in the | |
| 377 | - | // current thread. | |
| 378 | - | // | |
| 379 | - | // This function differs from g_private_replace() in the following way: | |
| 380 | - | // the #GDestroyNotify for @key is not called on the old value. | |
| 381 | - | func (x *Private) Set(ValueVar uintptr) { | |
| 382 | - | core.LazyRegister(&xPrivateSet, "GLIB", "g_private_set", false) | |
| 383 | - | ||
| 384 | - | xPrivateSet(x.GoPointer(), ValueVar) | |
| 385 | - | } | |
| 386 | - | ||
| 387 | - | // The GRWLock struct is an opaque data structure to represent a | |
| 388 | - | // reader-writer lock. It is similar to a #GMutex in that it allows | |
| 389 | - | // multiple threads to coordinate access to a shared resource. | |
| 390 | - | // | |
| 391 | - | // The difference to a mutex is that a reader-writer lock discriminates | |
| 392 | - | // between read-only ('reader') and full ('writer') access. While only | |
| 393 | - | // one thread at a time is allowed write access (by holding the 'writer' | |
| 394 | - | // lock via g_rw_lock_writer_lock()), multiple threads can gain | |
| 395 | - | // simultaneous read-only access (by holding the 'reader' lock via | |
| 396 | - | // g_rw_lock_reader_lock()). | |
| 397 | - | // | |
| 398 | - | // It is unspecified whether readers or writers have priority in acquiring the | |
| 399 | - | // lock when a reader already holds the lock and a writer is queued to acquire | |
| 400 | - | // it. | |
| 401 | - | // | |
| 402 | - | // Here is an example for an array with access functions: | |
| 403 | - | // |[<!-- language="C" --> | |
| 404 | - | // | |
| 405 | - | // GRWLock lock; | |
| 406 | - | // GPtrArray *array; | |
| 407 | - | // | |
| 408 | - | // gpointer | |
| 409 | - | // my_array_get (guint index) | |
| 410 | - | // { | |
| 411 | - | // gpointer retval = NULL; | |
| 412 | - | // | |
| 413 | - | // if (!array) | |
| 414 | - | // return NULL; | |
| 415 | - | // | |
| 416 | - | // g_rw_lock_reader_lock (&lock); | |
| 417 | - | // if (index < array->len) | |
| 418 | - | // retval = g_ptr_array_index (array, index); | |
| 419 | - | // g_rw_lock_reader_unlock (&lock); | |
| 420 | - | // | |
| 421 | - | // return retval; | |
| 422 | - | // } | |
| 423 | - | // | |
| 424 | - | // void | |
| 425 | - | // my_array_set (guint index, gpointer data) | |
| 426 | - | // { | |
| 427 | - | // g_rw_lock_writer_lock (&lock); | |
| 428 | - | // | |
| 429 | - | // if (!array) | |
| 430 | - | // array = g_ptr_array_new (); | |
| 431 | - | // | |
| 432 | - | // if (index >= array->len) | |
| 433 | - | // g_ptr_array_set_size (array, index+1); | |
| 434 | - | // g_ptr_array_index (array, index) = data; | |
| 435 | - | // | |
| 436 | - | // g_rw_lock_writer_unlock (&lock); | |
| 437 | - | // } | |
| 438 | - | // ]| | |
| 439 | - | // | |
| 440 | - | // This example shows an array which can be accessed by many readers | |
| 441 | - | // (the my_array_get() function) simultaneously, whereas the writers | |
| 442 | - | // (the my_array_set() function) will only be allowed one at a time | |
| 443 | - | // and only if no readers currently access the array. This is because | |
| 444 | - | // of the potentially dangerous resizing of the array. Using these | |
| 445 | - | // functions is fully multi-thread safe now. | |
| 446 | - | // | |
| 447 | - | // If a #GRWLock is allocated in static storage then it can be used | |
| 448 | - | // without initialisation. Otherwise, you should call | |
| 449 | - | // g_rw_lock_init() on it and g_rw_lock_clear() when done. | |
| 450 | - | // | |
| 451 | - | // A GRWLock should only be accessed with the g_rw_lock_ functions. | |
| 452 | - | type RWLock struct { | |
| 453 | - | _ structs.HostLayout | |
| 454 | - | ||
| 455 | - | P uintptr | |
| 456 | - | ||
| 457 | - | I [2]uint | |
| 458 | - | } | |
| 459 | - | ||
| 460 | - | func (x *RWLock) GoPointer() uintptr { | |
| 461 | - | return uintptr(unsafe.Pointer(x)) | |
| 462 | - | } | |
| 463 | - | ||
| 464 | - | func RWLockNewFromInternalPtr(ptr uintptr) *RWLock { | |
| 465 | - | if ptr == 0 { | |
| 466 | - | return nil | |
| 467 | - | } | |
| 468 | - | rawPtr := *(*unsafe.Pointer)(unsafe.Pointer(&ptr)) | |
| 469 | - | return (*RWLock)(rawPtr) | |
| 470 | - | } | |
| 471 | - | ||
| 472 | - | var xRWLockClear func(uintptr) | |
| 473 | - | ||
| 474 | - | // Frees the resources allocated to a lock with g_rw_lock_init(). | |
| 475 | - | // | |
| 476 | - | // This function should not be used with a #GRWLock that has been | |
| 477 | - | // statically allocated. | |
| 478 | - | // | |
| 479 | - | // Calling g_rw_lock_clear() when any thread holds the lock | |
| 480 | - | // leads to undefined behaviour. | |
| 481 | - | func (x *RWLock) Clear() { | |
| 482 | - | core.LazyRegister(&xRWLockClear, "GLIB", "g_rw_lock_clear", false) | |
| 483 | - | ||
| 484 | - | xRWLockClear(x.GoPointer()) | |
| 485 | - | } | |
| 486 | - | ||
| 487 | - | var xRWLockInit func(uintptr) | |
| 488 | - | ||
| 489 | - | // Initializes a #GRWLock so that it can be used. | |
| 490 | - | // | |
| 491 | - | // This function is useful to initialize a lock that has been | |
| 492 | - | // allocated on the stack, or as part of a larger structure. It is not | |
| 493 | - | // necessary to initialise a reader-writer lock that has been statically | |
| 494 | - | // allocated. | |
| 495 | - | // | |
| 496 | - | // |[<!-- language="C" --> | |
| 497 | - | // | |
| 498 | - | // typedef struct { | |
| 499 | - | // GRWLock l; | |
| 500 | - | // ... | |
| 501 | - | // } Blob; | |
| 502 | - | // | |
| 503 | - | // Blob *b; | |
| 504 | - | // | |
| 505 | - | // b = g_new (Blob, 1); | |
| 506 | - | // g_rw_lock_init (&b->l); | |
| 507 | - | // ]| | |
| 508 | - | // | |
| 509 | - | // To undo the effect of g_rw_lock_init() when a lock is no longer | |
| 510 | - | // needed, use g_rw_lock_clear(). | |
| 511 | - | // | |
| 512 | - | // Calling g_rw_lock_init() on an already initialized #GRWLock leads | |
| 513 | - | // to undefined behaviour. | |
| 514 | - | func (x *RWLock) Init() { | |
| 515 | - | core.LazyRegister(&xRWLockInit, "GLIB", "g_rw_lock_init", false) | |
| 516 | - | ||
| 517 | - | xRWLockInit(x.GoPointer()) | |
| 518 | - | } | |
| 519 | - | ||
| 520 | - | var xRWLockReaderLock func(uintptr) | |
| 521 | - | ||
| 522 | - | // Obtain a read lock on @rw_lock. If another thread currently holds | |
| 523 | - | // the write lock on @rw_lock, the current thread will block until the | |
| 524 | - | // write lock was (held and) released. If another thread does not hold | |
| 525 | - | // the write lock, but is waiting for it, it is implementation defined | |
| 526 | - | // whether the reader or writer will block. Read locks can be taken | |
| 527 | - | // recursively. | |
| 528 | - | // | |
| 529 | - | // Calling g_rw_lock_reader_lock() while the current thread already | |
| 530 | - | // owns a write lock leads to undefined behaviour. Read locks however | |
| 531 | - | // can be taken recursively, in which case you need to make sure to | |
| 532 | - | // call g_rw_lock_reader_unlock() the same amount of times. | |
| 533 | - | // | |
| 534 | - | // It is implementation-defined how many read locks are allowed to be | |
| 535 | - | // held on the same lock simultaneously. If the limit is hit, | |
| 536 | - | // or if a deadlock is detected, a critical warning will be emitted. | |
| 537 | - | func (x *RWLock) ReaderLock() { | |
| 538 | - | core.LazyRegister(&xRWLockReaderLock, "GLIB", "g_rw_lock_reader_lock", false) | |
| 539 | - | ||
| 540 | - | xRWLockReaderLock(x.GoPointer()) | |
| 541 | - | } | |
| 542 | - | ||
| 543 | - | var xRWLockReaderTrylock func(uintptr) bool | |
| 544 | - | ||
| 545 | - | // Tries to obtain a read lock on @rw_lock and returns %TRUE if | |
| 546 | - | // the read lock was successfully obtained. Otherwise it | |
| 547 | - | // returns %FALSE. | |
| 548 | - | func (x *RWLock) ReaderTrylock() bool { | |
| 549 | - | core.LazyRegister(&xRWLockReaderTrylock, "GLIB", "g_rw_lock_reader_trylock", false) | |
| 550 | - | ||
| 551 | - | cret := xRWLockReaderTrylock(x.GoPointer()) | |
| 552 | - | return cret | |
| 553 | - | } | |
| 554 | - | ||
| 555 | - | var xRWLockReaderUnlock func(uintptr) | |
| 556 | - | ||
| 557 | - | // Release a read lock on @rw_lock. | |
| 558 | - | // | |
| 559 | - | // Calling g_rw_lock_reader_unlock() on a lock that is not held | |
| 560 | - | // by the current thread leads to undefined behaviour. | |
| 561 | - | func (x *RWLock) ReaderUnlock() { | |
| 562 | - | core.LazyRegister(&xRWLockReaderUnlock, "GLIB", "g_rw_lock_reader_unlock", false) | |
| 563 | - | ||
| 564 | - | xRWLockReaderUnlock(x.GoPointer()) | |
| 565 | - | } | |
| 566 | - | ||
| 567 | - | var xRWLockWriterLock func(uintptr) | |
| 568 | - | ||
| 569 | - | // Obtain a write lock on @rw_lock. If another thread currently holds | |
| 570 | - | // a read or write lock on @rw_lock, the current thread will block | |
| 571 | - | // until all other threads have dropped their locks on @rw_lock. | |
| 572 | - | // | |
| 573 | - | // Calling g_rw_lock_writer_lock() while the current thread already | |
| 574 | - | // owns a read or write lock on @rw_lock leads to undefined behaviour. | |
| 575 | - | func (x *RWLock) WriterLock() { | |
| 576 | - | core.LazyRegister(&xRWLockWriterLock, "GLIB", "g_rw_lock_writer_lock", false) | |
| 577 | - | ||
| 578 | - | xRWLockWriterLock(x.GoPointer()) | |
| 579 | - | } | |
| 580 | - | ||
| 581 | - | var xRWLockWriterTrylock func(uintptr) bool | |
| 582 | - | ||
| 583 | - | // Tries to obtain a write lock on @rw_lock. If another thread | |
| 584 | - | // currently holds a read or write lock on @rw_lock, it immediately | |
| 585 | - | // returns %FALSE. | |
| 586 | - | // Otherwise it locks @rw_lock and returns %TRUE. | |
| 587 | - | func (x *RWLock) WriterTrylock() bool { | |
| 588 | - | core.LazyRegister(&xRWLockWriterTrylock, "GLIB", "g_rw_lock_writer_trylock", false) | |
| 589 | - | ||
| 590 | - | cret := xRWLockWriterTrylock(x.GoPointer()) | |
| 591 | - | return cret | |
| 592 | - | } | |
| 593 | - | ||
| 594 | - | var xRWLockWriterUnlock func(uintptr) | |
| 595 | - | ||
| 596 | - | // Release a write lock on @rw_lock. | |
| 597 | - | // | |
| 598 | - | // Calling g_rw_lock_writer_unlock() on a lock that is not held | |
| 599 | - | // by the current thread leads to undefined behaviour. | |
| 600 | - | func (x *RWLock) WriterUnlock() { | |
| 601 | - | core.LazyRegister(&xRWLockWriterUnlock, "GLIB", "g_rw_lock_writer_unlock", false) | |
| 602 | - | ||
| 603 | - | xRWLockWriterUnlock(x.GoPointer()) | |
| 604 | - | } | |
| 605 | - | ||
| 606 | - | // The GRecMutex struct is an opaque data structure to represent a | |
| 607 | - | // recursive mutex. It is similar to a #GMutex with the difference | |
| 608 | - | // that it is possible to lock a GRecMutex multiple times in the same | |
| 609 | - | // thread without deadlock. When doing so, care has to be taken to | |
| 610 | - | // unlock the recursive mutex as often as it has been locked. | |
| 611 | - | // | |
| 612 | - | // If a #GRecMutex is allocated in static storage then it can be used | |
| 613 | - | // without initialisation. Otherwise, you should call | |
| 614 | - | // g_rec_mutex_init() on it and g_rec_mutex_clear() when done. | |
| 615 | - | // | |
| 616 | - | // A GRecMutex should only be accessed with the | |
| 617 | - | // g_rec_mutex_ functions. | |
| 618 | - | type RecMutex struct { | |
| 619 | - | _ structs.HostLayout | |
| 620 | - | ||
| 621 | - | P uintptr | |
| 622 | - | ||
| 623 | - | I [2]uint | |
| 624 | - | } | |
| 625 | - | ||
| 626 | - | func (x *RecMutex) GoPointer() uintptr { | |
| 627 | - | return uintptr(unsafe.Pointer(x)) | |
| 628 | - | } | |
| 629 | - | ||
| 630 | - | func RecMutexNewFromInternalPtr(ptr uintptr) *RecMutex { | |
| 631 | - | if ptr == 0 { | |
| 632 | - | return nil | |
| 633 | - | } | |
| 634 | - | rawPtr := *(*unsafe.Pointer)(unsafe.Pointer(&ptr)) | |
| 635 | - | return (*RecMutex)(rawPtr) | |
| 636 | - | } | |
| 637 | - | ||
| 638 | - | var xRecMutexClear func(uintptr) | |
| 639 | - | ||
| 640 | - | // Frees the resources allocated to a recursive mutex with | |
| 641 | - | // g_rec_mutex_init(). | |
| 642 | - | // | |
| 643 | - | // This function should not be used with a #GRecMutex that has been | |
| 644 | - | // statically allocated. | |
| 645 | - | // | |
| 646 | - | // Calling g_rec_mutex_clear() on a locked recursive mutex leads | |
| 647 | - | // to undefined behaviour. | |
| 648 | - | func (x *RecMutex) Clear() { | |
| 649 | - | core.LazyRegister(&xRecMutexClear, "GLIB", "g_rec_mutex_clear", false) | |
| 650 | - | ||
| 651 | - | xRecMutexClear(x.GoPointer()) | |
| 652 | - | } | |
| 653 | - | ||
| 654 | - | var xRecMutexInit func(uintptr) | |
| 655 | - | ||
| 656 | - | // Initializes a #GRecMutex so that it can be used. | |
| 657 | - | // | |
| 658 | - | // This function is useful to initialize a recursive mutex | |
| 659 | - | // that has been allocated on the stack, or as part of a larger | |
| 660 | - | // structure. | |
| 661 | - | // | |
| 662 | - | // It is not necessary to initialise a recursive mutex that has been | |
| 663 | - | // statically allocated. | |
| 664 | - | // | |
| 665 | - | // |[<!-- language="C" --> | |
| 666 | - | // | |
| 667 | - | // typedef struct { | |
| 668 | - | // GRecMutex m; | |
| 669 | - | // ... | |
| 670 | - | // } Blob; | |
| 671 | - | // | |
| 672 | - | // Blob *b; | |
| 673 | - | // | |
| 674 | - | // b = g_new (Blob, 1); | |
| 675 | - | // g_rec_mutex_init (&b->m); | |
| 676 | - | // ]| | |
| 677 | - | // | |
| 678 | - | // Calling g_rec_mutex_init() on an already initialized #GRecMutex | |
| 679 | - | // leads to undefined behaviour. | |
| 680 | - | // | |
| 681 | - | // To undo the effect of g_rec_mutex_init() when a recursive mutex | |
| 682 | - | // is no longer needed, use g_rec_mutex_clear(). | |
| 683 | - | func (x *RecMutex) Init() { | |
| 684 | - | core.LazyRegister(&xRecMutexInit, "GLIB", "g_rec_mutex_init", false) | |
| 685 | - | ||
| 686 | - | xRecMutexInit(x.GoPointer()) | |
| 687 | - | } | |
| 688 | - | ||
| 689 | - | var xRecMutexLock func(uintptr) | |
| 690 | - | ||
| 691 | - | // Locks @rec_mutex. If @rec_mutex is already locked by another | |
| 692 | - | // thread, the current thread will block until @rec_mutex is | |
| 693 | - | // unlocked by the other thread. If @rec_mutex is already locked | |
| 694 | - | // by the current thread, the 'lock count' of @rec_mutex is increased. | |
| 695 | - | // The mutex will only become available again when it is unlocked | |
| 696 | - | // as many times as it has been locked. | |
| 697 | - | func (x *RecMutex) Lock() { | |
| 698 | - | core.LazyRegister(&xRecMutexLock, "GLIB", "g_rec_mutex_lock", false) | |
| 699 | - | ||
| 700 | - | xRecMutexLock(x.GoPointer()) | |
| 701 | - | } | |
| 702 | - | ||
| 703 | - | var xRecMutexTrylock func(uintptr) bool | |
| 704 | - | ||
| 705 | - | // Tries to lock @rec_mutex. If @rec_mutex is already locked | |
| 706 | - | // by another thread, it immediately returns %FALSE. Otherwise | |
| 707 | - | // it locks @rec_mutex and returns %TRUE. | |
| 708 | - | func (x *RecMutex) Trylock() bool { | |
| 709 | - | core.LazyRegister(&xRecMutexTrylock, "GLIB", "g_rec_mutex_trylock", false) | |
| 710 | - | ||
| 711 | - | cret := xRecMutexTrylock(x.GoPointer()) | |
| 712 | - | return cret | |
| 713 | - | } | |
| 714 | - | ||
| 715 | - | var xRecMutexUnlock func(uintptr) | |
| 716 | - | ||
| 717 | - | // Unlocks @rec_mutex. If another thread is blocked in a | |
| 718 | - | // g_rec_mutex_lock() call for @rec_mutex, it will become unblocked | |
| 719 | - | // and can lock @rec_mutex itself. | |
| 720 | - | // | |
| 721 | - | // Calling g_rec_mutex_unlock() on a recursive mutex that is not | |
| 722 | - | // locked by the current thread leads to undefined behaviour. | |
| 723 | - | func (x *RecMutex) Unlock() { | |
| 724 | - | core.LazyRegister(&xRecMutexUnlock, "GLIB", "g_rec_mutex_unlock", false) | |
| 725 | - | ||
| 726 | - | xRecMutexUnlock(x.GoPointer()) | |
| 727 | - | } | |
| 728 | - | ||
| 729 | - | // A #GStaticMutex works like a #GMutex. | |
| 730 | - | // | |
| 731 | - | // Prior to GLib 2.32, GStaticMutex had the significant advantage | |
| 732 | - | // that it doesn't need to be created at run-time, but can be defined | |
| 733 | - | // at compile-time. Since 2.32, #GMutex can be statically allocated | |
| 734 | - | // as well, and GStaticMutex has been deprecated. | |
| 735 | - | // | |
| 736 | - | // Here is a version of our give_me_next_number() example using | |
| 737 | - | // a GStaticMutex: | |
| 738 | - | // |[ | |
| 739 | - | // | |
| 740 | - | // int | |
| 741 | - | // give_me_next_number (void) | |
| 742 | - | // { | |
| 743 | - | // static int current_number = 0; | |
| 744 | - | // int ret_val; | |
| 745 | - | // static GStaticMutex mutex = G_STATIC_MUTEX_INIT; | |
| 746 | - | // | |
| 747 | - | // g_static_mutex_lock (&mutex); | |
| 748 | - | // ret_val = current_number = calc_next_number (current_number); | |
| 749 | - | // g_static_mutex_unlock (&mutex); | |
| 750 | - | // | |
| 751 | - | // return ret_val; | |
| 752 | - | // } | |
| 753 | - | // | |
| 754 | - | // ]| | |
| 755 | - | // | |
| 756 | - | // Sometimes you would like to dynamically create a mutex. If you don't | |
| 757 | - | // want to require prior calling to g_thread_init(), because your code | |
| 758 | - | // should also be usable in non-threaded programs, you are not able to | |
| 759 | - | // use g_mutex_new() and thus #GMutex, as that requires a prior call to | |
| 760 | - | // g_thread_init(). In these cases you can also use a #GStaticMutex. | |
| 761 | - | // It must be initialized with g_static_mutex_init() before using it | |
| 762 | - | // and freed with with g_static_mutex_free() when not needed anymore to | |
| 763 | - | // free up any allocated resources. | |
| 764 | - | // | |
| 765 | - | // Even though #GStaticMutex is not opaque, it should only be used with | |
| 766 | - | // the following functions, as it is defined differently on different | |
| 767 | - | // platforms. | |
| 768 | - | // | |
| 769 | - | // All of the g_static_mutex_* functions apart from | |
| 770 | - | // g_static_mutex_get_mutex() can also be used even if g_thread_init() | |
| 771 | - | // has not yet been called. Then they do nothing, apart from | |
| 772 | - | // g_static_mutex_trylock() which does nothing but returning %TRUE. | |
| 773 | - | // | |
| 774 | - | // All of the g_static_mutex_* functions are actually macros. Apart from | |
| 775 | - | // taking their addresses, you can however use them as if they were | |
| 776 | - | // functions. | |
| 777 | - | type StaticMutex struct { | |
| 778 | - | _ structs.HostLayout | |
| 779 | - | ||
| 780 | - | Mutex *Mutex | |
| 781 | - | } | |
| 782 | - | ||
| 783 | - | func (x *StaticMutex) GoPointer() uintptr { | |
| 784 | - | return uintptr(unsafe.Pointer(x)) | |
| 785 | - | } | |
| 786 | - | ||
| 787 | - | func StaticMutexNewFromInternalPtr(ptr uintptr) *StaticMutex { | |
| 788 | - | if ptr == 0 { | |
| 789 | - | return nil | |
| 790 | - | } | |
| 791 | - | rawPtr := *(*unsafe.Pointer)(unsafe.Pointer(&ptr)) | |
| 792 | - | return (*StaticMutex)(rawPtr) | |
| 793 | - | } | |
| 794 | - | ||
| 795 | - | var xStaticMutexFree func(uintptr) | |
| 796 | - | ||
| 797 | - | // Releases all resources allocated to @mutex. | |
| 798 | - | // | |
| 799 | - | // You don't have to call this functions for a #GStaticMutex with an | |
| 800 | - | // unbounded lifetime, i.e. objects declared 'static', but if you have | |
| 801 | - | // a #GStaticMutex as a member of a structure and the structure is | |
| 802 | - | // freed, you should also free the #GStaticMutex. | |
| 803 | - | // | |
| 804 | - | // Calling g_static_mutex_free() on a locked mutex may result in | |
| 805 | - | // undefined behaviour. | |
| 806 | - | func (x *StaticMutex) Free() { | |
| 807 | - | core.LazyRegister(&xStaticMutexFree, "GLIB", "g_static_mutex_free", false) | |
| 808 | - | ||
| 809 | - | xStaticMutexFree(x.GoPointer()) | |
| 810 | - | } | |
| 811 | - | ||
| 812 | - | var xStaticMutexGetMutexImpl func(uintptr) *Mutex | |
| 813 | - | ||
| 814 | - | func (x *StaticMutex) GetMutexImpl() *Mutex { | |
| 815 | - | core.LazyRegister(&xStaticMutexGetMutexImpl, "GLIB", "g_static_mutex_get_mutex_impl", false) | |
| 816 | - | ||
| 817 | - | cret := xStaticMutexGetMutexImpl(x.GoPointer()) | |
| 818 | - | return cret | |
| 819 | - | } | |
| 820 | - | ||
| 821 | - | var xStaticMutexInit func(uintptr) | |
| 822 | - | ||
| 823 | - | // Initializes @mutex. | |
| 824 | - | // Alternatively you can initialize it with %G_STATIC_MUTEX_INIT. | |
| 825 | - | func (x *StaticMutex) Init() { | |
| 826 | - | core.LazyRegister(&xStaticMutexInit, "GLIB", "g_static_mutex_init", false) | |
| 827 | - | ||
| 828 | - | xStaticMutexInit(x.GoPointer()) | |
| 829 | - | } | |
| 830 | - | ||
| 831 | - | // A #GStaticPrivate works almost like a #GPrivate, but it has one | |
| 832 | - | // significant advantage. It doesn't need to be created at run-time | |
| 833 | - | // like a #GPrivate, but can be defined at compile-time. This is | |
| 834 | - | // similar to the difference between #GMutex and #GStaticMutex. | |
| 835 | - | // | |
| 836 | - | // Now look at our give_me_next_number() example with #GStaticPrivate: | |
| 837 | - | // |[ | |
| 838 | - | // | |
| 839 | - | // int | |
| 840 | - | // give_me_next_number () | |
| 841 | - | // { | |
| 842 | - | // static GStaticPrivate current_number_key = G_STATIC_PRIVATE_INIT; | |
| 843 | - | // int *current_number = g_static_private_get (&current_number_key); | |
| 844 | - | // | |
| 845 | - | // if (!current_number) | |
| 846 | - | // { | |
| 847 | - | // current_number = g_new (int, 1); | |
| 848 | - | // *current_number = 0; | |
| 849 | - | // g_static_private_set (&current_number_key, current_number, g_free); | |
| 850 | - | // } | |
| 851 | - | // | |
| 852 | - | // *current_number = calc_next_number (*current_number); | |
| 853 | - | // | |
| 854 | - | // return *current_number; | |
| 855 | - | // } | |
| 856 | - | // | |
| 857 | - | // ]| | |
| 858 | - | type StaticPrivate struct { | |
| 859 | - | _ structs.HostLayout | |
| 860 | - | ||
| 861 | - | Index uint | |
| 862 | - | } | |
| 863 | - | ||
| 864 | - | func (x *StaticPrivate) GoPointer() uintptr { | |
| 865 | - | return uintptr(unsafe.Pointer(x)) | |
| 866 | - | } | |
| 867 | - | ||
| 868 | - | func StaticPrivateNewFromInternalPtr(ptr uintptr) *StaticPrivate { | |
| 869 | - | if ptr == 0 { | |
| 870 | - | return nil | |
| 871 | - | } | |
| 872 | - | rawPtr := *(*unsafe.Pointer)(unsafe.Pointer(&ptr)) | |
| 873 | - | return (*StaticPrivate)(rawPtr) | |
| 874 | - | } | |
| 875 | - | ||
| 876 | - | var xStaticPrivateFree func(uintptr) | |
| 877 | - | ||
| 878 | - | // Releases all resources allocated to @private_key. | |
| 879 | - | // | |
| 880 | - | // You don't have to call this functions for a #GStaticPrivate with an | |
| 881 | - | // unbounded lifetime, i.e. objects declared 'static', but if you have | |
| 882 | - | // a #GStaticPrivate as a member of a structure and the structure is | |
| 883 | - | // freed, you should also free the #GStaticPrivate. | |
| 884 | - | func (x *StaticPrivate) Free() { | |
| 885 | - | core.LazyRegister(&xStaticPrivateFree, "GLIB", "g_static_private_free", false) | |
| 886 | - | ||
| 887 | - | xStaticPrivateFree(x.GoPointer()) | |
| 888 | - | } | |
| 889 | - | ||
| 890 | - | var xStaticPrivateGet func(uintptr) uintptr | |
| 891 | - | ||
| 892 | - | // Works like g_private_get() only for a #GStaticPrivate. | |
| 893 | - | // | |
| 894 | - | // This function works even if g_thread_init() has not yet been called. | |
| 895 | - | func (x *StaticPrivate) Get() uintptr { | |
| 896 | - | core.LazyRegister(&xStaticPrivateGet, "GLIB", "g_static_private_get", false) | |
| 897 | - | ||
| 898 | - | cret := xStaticPrivateGet(x.GoPointer()) | |
| 899 | - | return cret | |
| 900 | - | } | |
| 901 | - | ||
| 902 | - | var xStaticPrivateInit func(uintptr) | |
| 903 | - | ||
| 904 | - | // Initializes @private_key. Alternatively you can initialize it with | |
| 905 | - | // %G_STATIC_PRIVATE_INIT. | |
| 906 | - | func (x *StaticPrivate) Init() { | |
| 907 | - | core.LazyRegister(&xStaticPrivateInit, "GLIB", "g_static_private_init", false) | |
| 908 | - | ||
| 909 | - | xStaticPrivateInit(x.GoPointer()) | |
| 910 | - | } | |
| 911 | - | ||
| 912 | - | var xStaticPrivateSet func(uintptr, uintptr, uintptr) | |
| 913 | - | ||
| 914 | - | // Sets the pointer keyed to @private_key for the current thread and | |
| 915 | - | // the function @notify to be called with that pointer (%NULL or | |
| 916 | - | // non-%NULL), whenever the pointer is set again or whenever the | |
| 917 | - | // current thread ends. | |
| 918 | - | // | |
| 919 | - | // This function works even if g_thread_init() has not yet been called. | |
| 920 | - | // If g_thread_init() is called later, the @data keyed to @private_key | |
| 921 | - | // will be inherited only by the main thread, i.e. the one that called | |
| 922 | - | // g_thread_init(). | |
| 923 | - | // | |
| 924 | - | // @notify is used quite differently from @destructor in g_private_new(). | |
| 925 | - | func (x *StaticPrivate) Set(DataVar uintptr, NotifyVar *DestroyNotify) { | |
| 926 | - | core.LazyRegister(&xStaticPrivateSet, "GLIB", "g_static_private_set", false) | |
| 927 | - | ||
| 928 | - | xStaticPrivateSet(x.GoPointer(), DataVar, NewCallbackNullable(NotifyVar)) | |
| 929 | - | } | |
| 930 | - | ||
| 931 | - | // The [struct@StaticRWLock] struct represents a read-write lock. A read-write | |
| 932 | - | // lock can be used for protecting data that some portions of code only | |
| 933 | - | // read from, while others also write. In such situations it is | |
| 934 | - | // desirable that several readers can read at once, whereas of course | |
| 935 | - | // only one writer may write at a time. | |
| 936 | - | // | |
| 937 | - | // Take a look at the following example: | |
| 938 | - | // |[ | |
| 939 | - | // | |
| 940 | - | // GStaticRWLock rwlock = G_STATIC_RW_LOCK_INIT; | |
| 941 | - | // GPtrArray *array; | |
| 942 | - | // | |
| 943 | - | // gpointer | |
| 944 | - | // my_array_get (guint index) | |
| 945 | - | // { | |
| 946 | - | // gpointer retval = NULL; | |
| 947 | - | // | |
| 948 | - | // if (!array) | |
| 949 | - | // return NULL; | |
| 950 | - | // | |
| 951 | - | // g_static_rw_lock_reader_lock (&rwlock); | |
| 952 | - | // if (index < array->len) | |
| 953 | - | // retval = g_ptr_array_index (array, index); | |
| 954 | - | // g_static_rw_lock_reader_unlock (&rwlock); | |
| 955 | - | // | |
| 956 | - | // return retval; | |
| 957 | - | // } | |
| 958 | - | // | |
| 959 | - | // void | |
| 960 | - | // my_array_set (guint index, gpointer data) | |
| 961 | - | // { | |
| 962 | - | // g_static_rw_lock_writer_lock (&rwlock); | |
| 963 | - | // | |
| 964 | - | // if (!array) | |
| 965 | - | // array = g_ptr_array_new (); | |
| 966 | - | // | |
| 967 | - | // if (index >= array->len) | |
| 968 | - | // g_ptr_array_set_size (array, index + 1); | |
| 969 | - | // g_ptr_array_index (array, index) = data; | |
| 970 | - | // | |
| 971 | - | // g_static_rw_lock_writer_unlock (&rwlock); | |
| 972 | - | // } | |
| 973 | - | // | |
| 974 | - | // ]| | |
| 975 | - | // | |
| 976 | - | // This example shows an array which can be accessed by many readers | |
| 977 | - | // (the `my_array_get()` function) simultaneously, whereas the writers | |
| 978 | - | // (the `my_array_set()` function) will only be allowed once at a time | |
| 979 | - | // and only if no readers currently access the array. This is because | |
| 980 | - | // of the potentially dangerous resizing of the array. Using these | |
| 981 | - | // functions is fully multi-thread safe now. | |
| 982 | - | // | |
| 983 | - | // Most of the time, writers should have precedence over readers. That | |
| 984 | - | // means, for this implementation, that as soon as a writer wants to | |
| 985 | - | // lock the data, no other reader is allowed to lock the data, whereas, | |
| 986 | - | // of course, the readers that already have locked the data are allowed | |
| 987 | - | // to finish their operation. As soon as the last reader unlocks the | |
| 988 | - | // data, the writer will lock it. | |
| 989 | - | // | |
| 990 | - | // Even though [struct@StaticRWLock] is not opaque, it should only be used | |
| 991 | - | // with the following functions. | |
| 992 | - | // | |
| 993 | - | // All of the `g_static_rw_lock_*` functions can be used even if | |
| 994 | - | // [func@Thread.init] has not been called. Then they do nothing, apart | |
| 995 | - | // from `g_static_rw_lock_*_trylock`, which does nothing but returning true. | |
| 996 | - | // | |
| 997 | - | // A read-write lock has a higher overhead than a mutex. For example, both | |
| 998 | - | // [method@StaticRWLock.reader_lock] and [method@StaticRWLock.reader_unlock] have | |
| 999 | - | // to lock and unlock a [struct@StaticMutex], so it takes at least twice the time | |
| 1000 | - | // to lock and unlock a [struct@StaticRWLock] that it does to lock and unlock a | |
| 1001 | - | // [struct@StaticMutex]. So only data structures that are accessed by multiple | |
| 1002 | - | // readers, and which keep the lock for a considerable time justify a | |
| 1003 | - | // [struct@StaticRWLock]. The above example most probably would fare better with a | |
| 1004 | - | // [struct@StaticMutex]. | |
| 1005 | - | type StaticRWLock struct { | |
| 1006 | - | _ structs.HostLayout | |
| 1007 | - | ||
| 1008 | - | Mutex uintptr | |
| 1009 | - | ||
| 1010 | - | ReadCond *Cond | |
| 1011 | - | ||
| 1012 | - | WriteCond *Cond | |
| 1013 | - | ||
| 1014 | - | ReadCounter uint | |
| 1015 | - | ||
| 1016 | - | HaveWriter bool | |
| 1017 | - | ||
| 1018 | - | WantToRead uint | |
| 1019 | - | ||
| 1020 | - | WantToWrite uint | |
| 1021 | - | } | |
| 1022 | - | ||
| 1023 | - | func (x *StaticRWLock) GoPointer() uintptr { | |
| 1024 | - | return uintptr(unsafe.Pointer(x)) | |
| 1025 | - | } | |
| 1026 | - | ||
| 1027 | - | func StaticRWLockNewFromInternalPtr(ptr uintptr) *StaticRWLock { | |
| 1028 | - | if ptr == 0 { | |
| 1029 | - | return nil | |
| 1030 | - | } | |
| 1031 | - | rawPtr := *(*unsafe.Pointer)(unsafe.Pointer(&ptr)) | |
| 1032 | - | return (*StaticRWLock)(rawPtr) | |
| 1033 | - | } | |
| 1034 | - | ||
| 1035 | - | var xStaticRWLockFree func(uintptr) | |
| 1036 | - | ||
| 1037 | - | // Releases all resources allocated to @lock. | |
| 1038 | - | // | |
| 1039 | - | // You don't have to call this functions for a #GStaticRWLock with an | |
| 1040 | - | // unbounded lifetime, i.e. objects declared 'static', but if you have | |
| 1041 | - | // a #GStaticRWLock as a member of a structure, and the structure is | |
| 1042 | - | // freed, you should also free the #GStaticRWLock. | |
| 1043 | - | func (x *StaticRWLock) Free() { | |
| 1044 | - | core.LazyRegister(&xStaticRWLockFree, "GLIB", "g_static_rw_lock_free", false) | |
| 1045 | - | ||
| 1046 | - | xStaticRWLockFree(x.GoPointer()) | |
| 1047 | - | } | |
| 1048 | - | ||
| 1049 | - | var xStaticRWLockInit func(uintptr) | |
| 1050 | - | ||
| 1051 | - | // A #GStaticRWLock must be initialized with this function before it | |
| 1052 | - | // can be used. Alternatively you can initialize it with | |
| 1053 | - | // %G_STATIC_RW_LOCK_INIT. | |
| 1054 | - | func (x *StaticRWLock) Init() { | |
| 1055 | - | core.LazyRegister(&xStaticRWLockInit, "GLIB", "g_static_rw_lock_init", false) | |
| 1056 | - | ||
| 1057 | - | xStaticRWLockInit(x.GoPointer()) | |
| 1058 | - | } | |
| 1059 | - | ||
| 1060 | - | var xStaticRWLockReaderLock func(uintptr) | |
| 1061 | - | ||
| 1062 | - | // Locks @lock for reading. There may be unlimited concurrent locks for | |
| 1063 | - | // reading of a #GStaticRWLock at the same time. If @lock is already | |
| 1064 | - | // locked for writing by another thread or if another thread is already | |
| 1065 | - | // waiting to lock @lock for writing, this function will block until | |
| 1066 | - | // @lock is unlocked by the other writing thread and no other writing | |
| 1067 | - | // threads want to lock @lock. This lock has to be unlocked by | |
| 1068 | - | // g_static_rw_lock_reader_unlock(). | |
| 1069 | - | // | |
| 1070 | - | // #GStaticRWLock is not recursive. It might seem to be possible to | |
| 1071 | - | // recursively lock for reading, but that can result in a deadlock, due | |
| 1072 | - | // to writer preference. | |
| 1073 | - | func (x *StaticRWLock) ReaderLock() { | |
| 1074 | - | core.LazyRegister(&xStaticRWLockReaderLock, "GLIB", "g_static_rw_lock_reader_lock", false) | |
| 1075 | - | ||
| 1076 | - | xStaticRWLockReaderLock(x.GoPointer()) | |
| 1077 | - | } | |
| 1078 | - | ||
| 1079 | - | var xStaticRWLockReaderTrylock func(uintptr) bool | |
| 1080 | - | ||
| 1081 | - | // Tries to lock @lock for reading. If @lock is already locked for | |
| 1082 | - | // writing by another thread or if another thread is already waiting to | |
| 1083 | - | // lock @lock for writing, immediately returns %FALSE. Otherwise locks | |
| 1084 | - | // @lock for reading and returns %TRUE. This lock has to be unlocked by | |
| 1085 | - | // g_static_rw_lock_reader_unlock(). | |
| 1086 | - | func (x *StaticRWLock) ReaderTrylock() bool { | |
| 1087 | - | core.LazyRegister(&xStaticRWLockReaderTrylock, "GLIB", "g_static_rw_lock_reader_trylock", false) | |
| 1088 | - | ||
| 1089 | - | cret := xStaticRWLockReaderTrylock(x.GoPointer()) | |
| 1090 | - | return cret | |
| 1091 | - | } | |
| 1092 | - | ||
| 1093 | - | var xStaticRWLockReaderUnlock func(uintptr) | |
| 1094 | - | ||
| 1095 | - | // Unlocks @lock. If a thread waits to lock @lock for writing and all | |
| 1096 | - | // locks for reading have been unlocked, the waiting thread is woken up | |
| 1097 | - | // and can lock @lock for writing. | |
| 1098 | - | func (x *StaticRWLock) ReaderUnlock() { | |
| 1099 | - | core.LazyRegister(&xStaticRWLockReaderUnlock, "GLIB", "g_static_rw_lock_reader_unlock", false) | |
| 1100 | - | ||
| 1101 | - | xStaticRWLockReaderUnlock(x.GoPointer()) | |
| 1102 | - | } | |
| 1103 | - | ||
| 1104 | - | var xStaticRWLockWriterLock func(uintptr) | |
| 1105 | - | ||
| 1106 | - | // Locks @lock for writing. If @lock is already locked for writing or | |
| 1107 | - | // reading by other threads, this function will block until @lock is | |
| 1108 | - | // completely unlocked and then lock @lock for writing. While this | |
| 1109 | - | // functions waits to lock @lock, no other thread can lock @lock for | |
| 1110 | - | // reading. When @lock is locked for writing, no other thread can lock | |
| 1111 | - | // @lock (neither for reading nor writing). This lock has to be | |
| 1112 | - | // unlocked by g_static_rw_lock_writer_unlock(). | |
| 1113 | - | func (x *StaticRWLock) WriterLock() { | |
| 1114 | - | core.LazyRegister(&xStaticRWLockWriterLock, "GLIB", "g_static_rw_lock_writer_lock", false) | |
| 1115 | - | ||
| 1116 | - | xStaticRWLockWriterLock(x.GoPointer()) | |
| 1117 | - | } | |
| 1118 | - | ||
| 1119 | - | var xStaticRWLockWriterTrylock func(uintptr) bool | |
| 1120 | - | ||
| 1121 | - | // Tries to lock @lock for writing. If @lock is already locked (for | |
| 1122 | - | // either reading or writing) by another thread, it immediately returns | |
| 1123 | - | // %FALSE. Otherwise it locks @lock for writing and returns %TRUE. This | |
| 1124 | - | // lock has to be unlocked by g_static_rw_lock_writer_unlock(). | |
| 1125 | - | func (x *StaticRWLock) WriterTrylock() bool { | |
| 1126 | - | core.LazyRegister(&xStaticRWLockWriterTrylock, "GLIB", "g_static_rw_lock_writer_trylock", false) | |
| 1127 | - | ||
| 1128 | - | cret := xStaticRWLockWriterTrylock(x.GoPointer()) | |
| 1129 | - | return cret | |
| 1130 | - | } | |
| 1131 | - | ||
| 1132 | - | var xStaticRWLockWriterUnlock func(uintptr) | |
| 1133 | - | ||
| 1134 | - | // Unlocks @lock. If a thread is waiting to lock @lock for writing and | |
| 1135 | - | // all locks for reading have been unlocked, the waiting thread is | |
| 1136 | - | // woken up and can lock @lock for writing. If no thread is waiting to | |
| 1137 | - | // lock @lock for writing, and some thread or threads are waiting to | |
| 1138 | - | // lock @lock for reading, the waiting threads are woken up and can | |
| 1139 | - | // lock @lock for reading. | |
| 1140 | - | func (x *StaticRWLock) WriterUnlock() { | |
| 1141 | - | core.LazyRegister(&xStaticRWLockWriterUnlock, "GLIB", "g_static_rw_lock_writer_unlock", false) | |
| 1142 | - | ||
| 1143 | - | xStaticRWLockWriterUnlock(x.GoPointer()) | |
| 1144 | - | } | |
| 1145 | - | ||
| 1146 | - | // A #GStaticRecMutex works like a #GStaticMutex, but it can be locked | |
| 1147 | - | // multiple times by one thread. If you enter it n times, you have to | |
| 1148 | - | // unlock it n times again to let other threads lock it. An exception | |
| 1149 | - | // is the function g_static_rec_mutex_unlock_full(): that allows you to | |
| 1150 | - | // unlock a #GStaticRecMutex completely returning the depth, (i.e. the | |
| 1151 | - | // number of times this mutex was locked). The depth can later be used | |
| 1152 | - | // to restore the state of the #GStaticRecMutex by calling | |
| 1153 | - | // g_static_rec_mutex_lock_full(). In GLib 2.32, #GStaticRecMutex has | |
| 1154 | - | // been deprecated in favor of #GRecMutex. | |
| 1155 | - | // | |
| 1156 | - | // Even though #GStaticRecMutex is not opaque, it should only be used | |
| 1157 | - | // with the following functions. | |
| 1158 | - | // | |
| 1159 | - | // All of the g_static_rec_mutex_* functions can be used even if | |
| 1160 | - | // g_thread_init() has not been called. Then they do nothing, apart | |
| 1161 | - | // from g_static_rec_mutex_trylock(), which does nothing but returning | |
| 1162 | - | // %TRUE. | |
| 1163 | - | type StaticRecMutex struct { | |
| 1164 | - | _ structs.HostLayout | |
| 1165 | - | ||
| 1166 | - | Mutex uintptr | |
| 1167 | - | ||
| 1168 | - | Depth uint | |
| 1169 | - | } | |
| 1170 | - | ||
| 1171 | - | func (x *StaticRecMutex) GoPointer() uintptr { | |
| 1172 | - | return uintptr(unsafe.Pointer(x)) | |
| 1173 | - | } | |
| 1174 | - | ||
| 1175 | - | func StaticRecMutexNewFromInternalPtr(ptr uintptr) *StaticRecMutex { | |
| 1176 | - | if ptr == 0 { | |
| 1177 | - | return nil | |
| 1178 | - | } | |
| 1179 | - | rawPtr := *(*unsafe.Pointer)(unsafe.Pointer(&ptr)) | |
| 1180 | - | return (*StaticRecMutex)(rawPtr) | |
| 1181 | - | } | |
| 1182 | - | ||
| 1183 | - | var xStaticRecMutexFree func(uintptr) | |
| 1184 | - | ||
| 1185 | - | // Releases all resources allocated to a #GStaticRecMutex. | |
| 1186 | - | // | |
| 1187 | - | // You don't have to call this functions for a #GStaticRecMutex with an | |
| 1188 | - | // unbounded lifetime, i.e. objects declared 'static', but if you have | |
| 1189 | - | // a #GStaticRecMutex as a member of a structure and the structure is | |
| 1190 | - | // freed, you should also free the #GStaticRecMutex. | |
| 1191 | - | func (x *StaticRecMutex) Free() { | |
| 1192 | - | core.LazyRegister(&xStaticRecMutexFree, "GLIB", "g_static_rec_mutex_free", false) | |
| 1193 | - | ||
| 1194 | - | xStaticRecMutexFree(x.GoPointer()) | |
| 1195 | - | } | |
| 1196 | - | ||
| 1197 | - | var xStaticRecMutexInit func(uintptr) | |
| 1198 | - | ||
| 1199 | - | // A #GStaticRecMutex must be initialized with this function before it | |
| 1200 | - | // can be used. Alternatively you can initialize it with | |
| 1201 | - | // %G_STATIC_REC_MUTEX_INIT. | |
| 1202 | - | func (x *StaticRecMutex) Init() { | |
| 1203 | - | core.LazyRegister(&xStaticRecMutexInit, "GLIB", "g_static_rec_mutex_init", false) | |
| 1204 | - | ||
| 1205 | - | xStaticRecMutexInit(x.GoPointer()) | |
| 1206 | - | } | |
| 1207 | - | ||
| 1208 | - | var xStaticRecMutexLock func(uintptr) | |
| 1209 | - | ||
| 1210 | - | // Locks @mutex. If @mutex is already locked by another thread, the | |
| 1211 | - | // current thread will block until @mutex is unlocked by the other | |
| 1212 | - | // thread. If @mutex is already locked by the calling thread, this | |
| 1213 | - | // functions increases the depth of @mutex and returns immediately. | |
| 1214 | - | func (x *StaticRecMutex) Lock() { | |
| 1215 | - | core.LazyRegister(&xStaticRecMutexLock, "GLIB", "g_static_rec_mutex_lock", false) | |
| 1216 | - | ||
| 1217 | - | xStaticRecMutexLock(x.GoPointer()) | |
| 1218 | - | } | |
| 1219 | - | ||
| 1220 | - | var xStaticRecMutexLockFull func(uintptr, uint) | |
| 1221 | - | ||
| 1222 | - | // Works like calling g_static_rec_mutex_lock() for @mutex @depth times. | |
| 1223 | - | func (x *StaticRecMutex) LockFull(DepthVar uint) { | |
| 1224 | - | core.LazyRegister(&xStaticRecMutexLockFull, "GLIB", "g_static_rec_mutex_lock_full", false) | |
| 1225 | - | ||
| 1226 | - | xStaticRecMutexLockFull(x.GoPointer(), DepthVar) | |
| 1227 | - | } | |
| 1228 | - | ||
| 1229 | - | var xStaticRecMutexTrylock func(uintptr) bool | |
| 1230 | - | ||
| 1231 | - | // Tries to lock @mutex. If @mutex is already locked by another thread, | |
| 1232 | - | // it immediately returns %FALSE. Otherwise it locks @mutex and returns | |
| 1233 | - | // %TRUE. If @mutex is already locked by the calling thread, this | |
| 1234 | - | // functions increases the depth of @mutex and immediately returns | |
| 1235 | - | // %TRUE. | |
| 1236 | - | func (x *StaticRecMutex) Trylock() bool { | |
| 1237 | - | core.LazyRegister(&xStaticRecMutexTrylock, "GLIB", "g_static_rec_mutex_trylock", false) | |
| 1238 | - | ||
| 1239 | - | cret := xStaticRecMutexTrylock(x.GoPointer()) | |
| 1240 | - | return cret | |
| 1241 | - | } | |
| 1242 | - | ||
| 1243 | - | var xStaticRecMutexUnlock func(uintptr) | |
| 1244 | - | ||
| 1245 | - | // Unlocks @mutex. Another thread will be allowed to lock @mutex only | |
| 1246 | - | // when it has been unlocked as many times as it had been locked | |
| 1247 | - | // before. If @mutex is completely unlocked and another thread is | |
| 1248 | - | // blocked in a g_static_rec_mutex_lock() call for @mutex, it will be | |
| 1249 | - | // woken and can lock @mutex itself. | |
| 1250 | - | func (x *StaticRecMutex) Unlock() { | |
| 1251 | - | core.LazyRegister(&xStaticRecMutexUnlock, "GLIB", "g_static_rec_mutex_unlock", false) | |
| 1252 | - | ||
| 1253 | - | xStaticRecMutexUnlock(x.GoPointer()) | |
| 1254 | - | } | |
| 1255 | - | ||
| 1256 | - | var xStaticRecMutexUnlockFull func(uintptr) uint | |
| 1257 | - | ||
| 1258 | - | // Completely unlocks @mutex. If another thread is blocked in a | |
| 1259 | - | // g_static_rec_mutex_lock() call for @mutex, it will be woken and can | |
| 1260 | - | // lock @mutex itself. This function returns the number of times that | |
| 1261 | - | // @mutex has been locked by the current thread. To restore the state | |
| 1262 | - | // before the call to g_static_rec_mutex_unlock_full() you can call | |
| 1263 | - | // g_static_rec_mutex_lock_full() with the depth returned by this | |
| 1264 | - | // function. | |
| 1265 | - | func (x *StaticRecMutex) UnlockFull() uint { | |
| 1266 | - | core.LazyRegister(&xStaticRecMutexUnlockFull, "GLIB", "g_static_rec_mutex_unlock_full", false) | |
| 1267 | - | ||
| 1268 | - | cret := xStaticRecMutexUnlockFull(x.GoPointer()) | |
| 1269 | - | return cret | |
| 1270 | - | } | |
| 1271 | - | ||
| 1272 | - | // The #GThread struct represents a running thread. This struct | |
| 1273 | - | // is returned by g_thread_new() or g_thread_try_new(). You can | |
| 1274 | - | // obtain the #GThread struct representing the current thread by | |
| 1275 | - | // calling g_thread_self(). | |
| 1276 | - | // | |
| 1277 | - | // GThread is refcounted, see g_thread_ref() and g_thread_unref(). | |
| 1278 | - | // The thread represented by it holds a reference while it is running, | |
| 1279 | - | // and g_thread_join() consumes the reference that it is given, so | |
| 1280 | - | // it is normally not necessary to manage GThread references | |
| 1281 | - | // explicitly. | |
| 1282 | - | // | |
| 1283 | - | // The structure is opaque -- none of its fields may be directly | |
| 1284 | - | // accessed. | |
| 1285 | - | type Thread struct { | |
| 1286 | - | _ structs.HostLayout | |
| 1287 | - | ||
| 1288 | - | Func ThreadFunc | |
| 1289 | - | ||
| 1290 | - | Data uintptr | |
| 1291 | - | ||
| 1292 | - | Joinable bool | |
| 1293 | - | ||
| 1294 | - | Priority ThreadPriority | |
| 1295 | - | } | |
| 1296 | - | ||
| 1297 | - | var xThreadGLibType func() types.GType | |
| 1298 | - | ||
| 1299 | - | func ThreadGLibType() types.GType { | |
| 1300 | - | core.LazyRegister(&xThreadGLibType, "GLIB", "g_thread_get_type", false) | |
| 1301 | - | return xThreadGLibType() | |
| 1302 | - | } | |
| 1303 | - | ||
| 1304 | - | func (x *Thread) GoPointer() uintptr { | |
| 1305 | - | return uintptr(unsafe.Pointer(x)) | |
| 1306 | - | } | |
| 1307 | - | ||
| 1308 | - | func ThreadNewFromInternalPtr(ptr uintptr) *Thread { | |
| 1309 | - | if ptr == 0 { | |
| 1310 | - | return nil | |
| 1311 | - | } | |
| 1312 | - | rawPtr := *(*unsafe.Pointer)(unsafe.Pointer(&ptr)) | |
| 1313 | - | return (*Thread)(rawPtr) | |
| 1314 | - | } | |
| 1315 | - | ||
| 1316 | - | var xNewThread func(uintptr, uintptr, uintptr) uintptr | |
| 1317 | - | ||
| 1318 | - | // This function creates a new thread. The new thread starts by invoking | |
| 1319 | - | // @func with the argument data. The thread will run until @func returns | |
| 1320 | - | // or until g_thread_exit() is called from the new thread. The return value | |
| 1321 | - | // of @func becomes the return value of the thread, which can be obtained | |
| 1322 | - | // with g_thread_join(). | |
| 1323 | - | // | |
| 1324 | - | // The @name can be useful for discriminating threads in a debugger. | |
| 1325 | - | // It is not used for other purposes and does not have to be unique. | |
| 1326 | - | // Some systems restrict the length of @name to 16 bytes. | |
| 1327 | - | // | |
| 1328 | - | // If the thread can not be created the program aborts. See | |
| 1329 | - | // g_thread_try_new() if you want to attempt to deal with failures. | |
| 1330 | - | // | |
| 1331 | - | // If you are using threads to offload (potentially many) short-lived tasks, | |
| 1332 | - | // #GThreadPool may be more appropriate than manually spawning and tracking | |
| 1333 | - | // multiple #GThreads. | |
| 1334 | - | // | |
| 1335 | - | // To free the struct returned by this function, use g_thread_unref(). | |
| 1336 | - | // Note that g_thread_join() implicitly unrefs the #GThread as well. | |
| 1337 | - | // | |
| 1338 | - | // New threads by default inherit their scheduler policy (POSIX) or thread | |
| 1339 | - | // priority (Windows) of the thread creating the new thread. | |
| 1340 | - | // | |
| 1341 | - | // This behaviour changed in GLib 2.64: before threads on Windows were not | |
| 1342 | - | // inheriting the thread priority but were spawned with the default priority. | |
| 1343 | - | // Starting with GLib 2.64 the behaviour is now consistent between Windows and | |
| 1344 | - | // POSIX and all threads inherit their parent thread's priority. | |
| 1345 | - | func NewThread(NameVar *string, FuncVar *ThreadFunc, DataVar uintptr) *Thread { | |
| 1346 | - | core.LazyRegister(&xNewThread, "GLIB", "g_thread_new", false) | |
| 1347 | - | ||
| 1348 | - | NameVarPtr := core.GStrdupNullable(NameVar) | |
| 1349 | - | defer core.GFreeNullable(NameVarPtr) | |
| 1350 | - | ||
| 1351 | - | cret := xNewThread(NameVarPtr, NewCallback(FuncVar), DataVar) | |
| 1352 | - | if cret == 0 { | |
| 1353 | - | return nil | |
| 1354 | - | } | |
| 1355 | - | return (*Thread)(unsafe.Pointer(cret)) | |
| 1356 | - | } | |
| 1357 | - | ||
| 1358 | - | var xThreadTryNew func(uintptr, uintptr, uintptr, **Error) uintptr | |
| 1359 | - | ||
| 1360 | - | // This function is the same as g_thread_new() except that | |
| 1361 | - | // it allows for the possibility of failure. | |
| 1362 | - | // | |
| 1363 | - | // If a thread can not be created (due to resource limits), | |
| 1364 | - | // @error is set and %NULL is returned. | |
| 1365 | - | func ThreadTryNew(NameVar *string, FuncVar *ThreadFunc, DataVar uintptr) (*Thread, error) { | |
| 1366 | - | core.LazyRegister(&xThreadTryNew, "GLIB", "g_thread_try_new", false) | |
| 1367 | - | var cerr *Error | |
| 1368 | - | ||
| 1369 | - | NameVarPtr := core.GStrdupNullable(NameVar) | |
| 1370 | - | defer core.GFreeNullable(NameVarPtr) | |
| 1371 | - | ||
| 1372 | - | cret := xThreadTryNew(NameVarPtr, NewCallback(FuncVar), DataVar, &cerr) | |
| 1373 | - | if cerr != nil { | |
| 1374 | - | return nil, cerr | |
| 1375 | - | } | |
| 1376 | - | if cret == 0 { | |
| 1377 | - | return nil, nil | |
| 1378 | - | } | |
| 1379 | - | return (*Thread)(unsafe.Pointer(cret)), nil | |
| 1380 | - | } | |
| 1381 | - | ||
| 1382 | - | var xThreadGetName func(uintptr) string | |
| 1383 | - | ||
| 1384 | - | // Gets the name of the thread. | |
| 1385 | - | // | |
| 1386 | - | // This function is intended for debugging purposes. | |
| 1387 | - | func (x *Thread) GetName() string { | |
| 1388 | - | core.LazyRegister(&xThreadGetName, "GLIB", "g_thread_get_name", false) | |
| 1389 | - | ||
| 1390 | - | cret := xThreadGetName(x.GoPointer()) | |
| 1391 | - | return cret | |
| 1392 | - | } | |
| 1393 | - | ||
| 1394 | - | var xThreadJoin func(uintptr) uintptr | |
| 1395 | - | ||
| 1396 | - | // Waits until @thread finishes, i.e. the function @func, as | |
| 1397 | - | // given to g_thread_new(), returns or g_thread_exit() is called. | |
| 1398 | - | // If @thread has already terminated, then g_thread_join() | |
| 1399 | - | // returns immediately. | |
| 1400 | - | // | |
| 1401 | - | // Any thread can wait for any other thread by calling g_thread_join(), | |
| 1402 | - | // not just its 'creator'. Calling g_thread_join() from multiple threads | |
| 1403 | - | // for the same @thread leads to undefined behaviour. | |
| 1404 | - | // | |
| 1405 | - | // The value returned by @func or given to g_thread_exit() is | |
| 1406 | - | // returned by this function. | |
| 1407 | - | // | |
| 1408 | - | // g_thread_join() consumes the reference to the passed-in @thread. | |
| 1409 | - | // This will usually cause the #GThread struct and associated resources | |
| 1410 | - | // to be freed. Use g_thread_ref() to obtain an extra reference if you | |
| 1411 | - | // want to keep the GThread alive beyond the g_thread_join() call. | |
| 1412 | - | func (x *Thread) Join() uintptr { | |
| 1413 | - | core.LazyRegister(&xThreadJoin, "GLIB", "g_thread_join", false) | |
| 1414 | - | ||
| 1415 | - | cret := xThreadJoin(x.GoPointer()) | |
| 1416 | - | return cret | |
| 1417 | - | } | |
| 1418 | - | ||
| 1419 | - | var xThreadRef func(uintptr) uintptr | |
| 1420 | - | ||
| 1421 | - | // Increase the reference count on @thread. | |
| 1422 | - | func (x *Thread) Ref() *Thread { | |
| 1423 | - | core.LazyRegister(&xThreadRef, "GLIB", "g_thread_ref", false) | |
| 1424 | - | ||
| 1425 | - | cret := xThreadRef(x.GoPointer()) | |
| 1426 | - | if cret == 0 { | |
| 1427 | - | return nil | |
| 1428 | - | } | |
| 1429 | - | return (*Thread)(unsafe.Pointer(cret)) | |
| 1430 | - | } | |
| 1431 | - | ||
| 1432 | - | var xThreadSetPriority func(uintptr, ThreadPriority) | |
| 1433 | - | ||
| 1434 | - | // This function does nothing. | |
| 1435 | - | func (x *Thread) SetPriority(PriorityVar ThreadPriority) { | |
| 1436 | - | core.LazyRegister(&xThreadSetPriority, "GLIB", "g_thread_set_priority", false) | |
| 1437 | - | ||
| 1438 | - | xThreadSetPriority(x.GoPointer(), PriorityVar) | |
| 1439 | - | } | |
| 1440 | - | ||
| 1441 | - | var xThreadUnref func(uintptr) | |
| 1442 | - | ||
| 1443 | - | // Decrease the reference count on @thread, possibly freeing all | |
| 1444 | - | // resources associated with it. | |
| 1445 | - | // | |
| 1446 | - | // Note that each thread holds a reference to its #GThread while | |
| 1447 | - | // it is running, so it is safe to drop your own reference to it | |
| 1448 | - | // if you don't need it anymore. | |
| 1449 | - | func (x *Thread) Unref() { | |
| 1450 | - | core.LazyRegister(&xThreadUnref, "GLIB", "g_thread_unref", false) | |
| 1451 | - | ||
| 1452 | - | xThreadUnref(x.GoPointer()) | |
| 1453 | - | } | |
| 1454 | - | ||
| 1455 | - | // This function table is no longer used by g_thread_init() | |
| 1456 | - | // to initialize the thread system. | |
| 1457 | - | type ThreadFunctions struct { | |
| 1458 | - | _ structs.HostLayout | |
| 1459 | - | ||
| 1460 | - | xMutexNew uintptr | |
| 1461 | - | ||
| 1462 | - | xMutexLock uintptr | |
| 1463 | - | ||
| 1464 | - | xMutexTrylock uintptr | |
| 1465 | - | ||
| 1466 | - | xMutexUnlock uintptr | |
| 1467 | - | ||
| 1468 | - | xMutexFree uintptr | |
| 1469 | - | ||
| 1470 | - | xCondNew uintptr | |
| 1471 | - | ||
| 1472 | - | xCondSignal uintptr | |
| 1473 | - | ||
| 1474 | - | xCondBroadcast uintptr | |
| 1475 | - | ||
| 1476 | - | xCondWait uintptr | |
| 1477 | - | ||
| 1478 | - | xCondTimedWait uintptr | |
| 1479 | - | ||
| 1480 | - | xCondFree uintptr | |
| 1481 | - | ||
| 1482 | - | xPrivateNew uintptr | |
| 1483 | - | ||
| 1484 | - | xPrivateGet uintptr | |
| 1485 | - | ||
| 1486 | - | xPrivateSet uintptr | |
| 1487 | - | ||
| 1488 | - | xThreadCreate uintptr | |
| 1489 | - | ||
| 1490 | - | xThreadYield uintptr | |
| 1491 | - | ||
| 1492 | - | xThreadJoin uintptr | |
| 1493 | - | ||
| 1494 | - | xThreadExit uintptr | |
| 1495 | - | ||
| 1496 | - | xThreadSetPriority uintptr | |
| 1497 | - | ||
| 1498 | - | xThreadSelf uintptr | |
| 1499 | - | ||
| 1500 | - | xThreadEqual uintptr | |
| 1501 | - | } | |
| 1502 | - | ||
| 1503 | - | func (x *ThreadFunctions) GoPointer() uintptr { | |
| 1504 | - | return uintptr(unsafe.Pointer(x)) | |
| 1505 | - | } | |
| 1506 | - | ||
| 1507 | - | func ThreadFunctionsNewFromInternalPtr(ptr uintptr) *ThreadFunctions { | |
| 1508 | - | if ptr == 0 { | |
| 1509 | - | return nil | |
| 1510 | - | } | |
| 1511 | - | rawPtr := *(*unsafe.Pointer)(unsafe.Pointer(&ptr)) | |
| 1512 | - | return (*ThreadFunctions)(rawPtr) | |
| 1513 | - | } | |
| 1514 | - | ||
| 1515 | - | // OverrideMutexNew sets the "mutex_new" callback function. | |
| 1516 | - | // virtual function pointer for g_mutex_new() | |
| 1517 | - | func (x *ThreadFunctions) OverrideMutexNew(cb func() *Mutex) { | |
| 1518 | - | if cb == nil { | |
| 1519 | - | x.xMutexNew = 0 | |
| 1520 | - | } else { | |
| 1521 | - | x.xMutexNew = purego.NewCallback(func() *Mutex { | |
| 1522 | - | return cb() | |
| 1523 | - | }) | |
| 1524 | - | } | |
| 1525 | - | } | |
| 1526 | - | ||
| 1527 | - | // GetMutexNew gets the "mutex_new" callback function. | |
| 1528 | - | // virtual function pointer for g_mutex_new() | |
| 1529 | - | func (x *ThreadFunctions) GetMutexNew() func() *Mutex { | |
| 1530 | - | if x.xMutexNew == 0 { | |
| 1531 | - | return nil | |
| 1532 | - | } | |
| 1533 | - | var rawCallback func() *Mutex | |
| 1534 | - | purego.RegisterFunc(&rawCallback, x.xMutexNew) | |
| 1535 | - | return func() *Mutex { | |
| 1536 | - | return rawCallback() | |
| 1537 | - | } | |
| 1538 | - | } | |
| 1539 | - | ||
| 1540 | - | // OverrideMutexLock sets the "mutex_lock" callback function. | |
| 1541 | - | // virtual function pointer for g_mutex_lock() | |
| 1542 | - | func (x *ThreadFunctions) OverrideMutexLock(cb func(*Mutex)) { | |
| 1543 | - | if cb == nil { | |
| 1544 | - | x.xMutexLock = 0 | |
| 1545 | - | } else { | |
| 1546 | - | x.xMutexLock = purego.NewCallback(func(MutexVarp *Mutex) { | |
| 1547 | - | cb(MutexVarp) | |
| 1548 | - | }) | |
| 1549 | - | } | |
| 1550 | - | } | |
| 1551 | - | ||
| 1552 | - | // GetMutexLock gets the "mutex_lock" callback function. | |
| 1553 | - | // virtual function pointer for g_mutex_lock() | |
| 1554 | - | func (x *ThreadFunctions) GetMutexLock() func(*Mutex) { | |
| 1555 | - | if x.xMutexLock == 0 { | |
| 1556 | - | return nil | |
| 1557 | - | } | |
| 1558 | - | var rawCallback func(MutexVarp *Mutex) | |
| 1559 | - | purego.RegisterFunc(&rawCallback, x.xMutexLock) | |
| 1560 | - | return func(MutexVar *Mutex) { | |
| 1561 | - | rawCallback(MutexVar) | |
| 1562 | - | } | |
| 1563 | - | } | |
| 1564 | - | ||
| 1565 | - | // OverrideMutexTrylock sets the "mutex_trylock" callback function. | |
| 1566 | - | // virtual function pointer for g_mutex_trylock() | |
| 1567 | - | func (x *ThreadFunctions) OverrideMutexTrylock(cb func(*Mutex) bool) { | |
| 1568 | - | if cb == nil { | |
| 1569 | - | x.xMutexTrylock = 0 | |
| 1570 | - | } else { | |
| 1571 | - | x.xMutexTrylock = purego.NewCallback(func(MutexVarp *Mutex) bool { | |
| 1572 | - | return cb(MutexVarp) | |
| 1573 | - | }) | |
| 1574 | - | } | |
| 1575 | - | } | |
| 1576 | - | ||
| 1577 | - | // GetMutexTrylock gets the "mutex_trylock" callback function. | |
| 1578 | - | // virtual function pointer for g_mutex_trylock() | |
| 1579 | - | func (x *ThreadFunctions) GetMutexTrylock() func(*Mutex) bool { | |
| 1580 | - | if x.xMutexTrylock == 0 { | |
| 1581 | - | return nil | |
| 1582 | - | } | |
| 1583 | - | var rawCallback func(MutexVarp *Mutex) bool | |
| 1584 | - | purego.RegisterFunc(&rawCallback, x.xMutexTrylock) | |
| 1585 | - | return func(MutexVar *Mutex) bool { | |
| 1586 | - | return rawCallback(MutexVar) | |
| 1587 | - | } | |
| 1588 | - | } | |
| 1589 | - | ||
| 1590 | - | // OverrideMutexUnlock sets the "mutex_unlock" callback function. | |
| 1591 | - | // virtual function pointer for g_mutex_unlock() | |
| 1592 | - | func (x *ThreadFunctions) OverrideMutexUnlock(cb func(*Mutex)) { | |
| 1593 | - | if cb == nil { | |
| 1594 | - | x.xMutexUnlock = 0 | |
| 1595 | - | } else { | |
| 1596 | - | x.xMutexUnlock = purego.NewCallback(func(MutexVarp *Mutex) { | |
| 1597 | - | cb(MutexVarp) | |
| 1598 | - | }) | |
| 1599 | - | } | |
| 1600 | - | } | |
| 1601 | - | ||
| 1602 | - | // GetMutexUnlock gets the "mutex_unlock" callback function. | |
| 1603 | - | // virtual function pointer for g_mutex_unlock() | |
| 1604 | - | func (x *ThreadFunctions) GetMutexUnlock() func(*Mutex) { | |
| 1605 | - | if x.xMutexUnlock == 0 { | |
| 1606 | - | return nil | |
| 1607 | - | } | |
| 1608 | - | var rawCallback func(MutexVarp *Mutex) | |
| 1609 | - | purego.RegisterFunc(&rawCallback, x.xMutexUnlock) | |
| 1610 | - | return func(MutexVar *Mutex) { | |
| 1611 | - | rawCallback(MutexVar) | |
| 1612 | - | } | |
| 1613 | - | } | |
| 1614 | - | ||
| 1615 | - | // OverrideMutexFree sets the "mutex_free" callback function. | |
| 1616 | - | // virtual function pointer for g_mutex_free() | |
| 1617 | - | func (x *ThreadFunctions) OverrideMutexFree(cb func(*Mutex)) { | |
| 1618 | - | if cb == nil { | |
| 1619 | - | x.xMutexFree = 0 | |
| 1620 | - | } else { | |
| 1621 | - | x.xMutexFree = purego.NewCallback(func(MutexVarp *Mutex) { | |
| 1622 | - | cb(MutexVarp) | |
| 1623 | - | }) | |
| 1624 | - | } | |
| 1625 | - | } | |
| 1626 | - | ||
| 1627 | - | // GetMutexFree gets the "mutex_free" callback function. | |
| 1628 | - | // virtual function pointer for g_mutex_free() | |
| 1629 | - | func (x *ThreadFunctions) GetMutexFree() func(*Mutex) { | |
| 1630 | - | if x.xMutexFree == 0 { | |
| 1631 | - | return nil | |
| 1632 | - | } | |
| 1633 | - | var rawCallback func(MutexVarp *Mutex) | |
| 1634 | - | purego.RegisterFunc(&rawCallback, x.xMutexFree) | |
| 1635 | - | return func(MutexVar *Mutex) { | |
| 1636 | - | rawCallback(MutexVar) | |
| 1637 | - | } | |
| 1638 | - | } | |
| 1639 | - | ||
| 1640 | - | // OverrideCondNew sets the "cond_new" callback function. | |
| 1641 | - | // virtual function pointer for g_cond_new() | |
| 1642 | - | func (x *ThreadFunctions) OverrideCondNew(cb func() *Cond) { | |
| 1643 | - | if cb == nil { | |
| 1644 | - | x.xCondNew = 0 | |
| 1645 | - | } else { | |
| 1646 | - | x.xCondNew = purego.NewCallback(func() uintptr { | |
| 1647 | - | ret := cb() | |
| 1648 | - | if ret == nil { | |
| 1649 | - | return 0 | |
| 1650 | - | } | |
| 1651 | - | return uintptr(unsafe.Pointer(ret)) | |
| 1652 | - | }) | |
| 1653 | - | } | |
| 1654 | - | } | |
| 1655 | - | ||
| 1656 | - | // GetCondNew gets the "cond_new" callback function. | |
| 1657 | - | // virtual function pointer for g_cond_new() | |
| 1658 | - | func (x *ThreadFunctions) GetCondNew() func() *Cond { | |
| 1659 | - | if x.xCondNew == 0 { | |
| 1660 | - | return nil | |
| 1661 | - | } | |
| 1662 | - | var rawCallback func() uintptr | |
| 1663 | - | purego.RegisterFunc(&rawCallback, x.xCondNew) | |
| 1664 | - | return func() *Cond { | |
| 1665 | - | rawRet := rawCallback() | |
| 1666 | - | if rawRet == 0 { | |
| 1667 | - | return nil | |
| 1668 | - | } | |
| 1669 | - | return (*Cond)(unsafe.Pointer(rawRet)) | |
| 1670 | - | } | |
| 1671 | - | } | |
| 1672 | - | ||
| 1673 | - | // OverrideCondSignal sets the "cond_signal" callback function. | |
| 1674 | - | // virtual function pointer for g_cond_signal() | |
| 1675 | - | func (x *ThreadFunctions) OverrideCondSignal(cb func(*Cond)) { | |
| 1676 | - | if cb == nil { | |
| 1677 | - | x.xCondSignal = 0 | |
| 1678 | - | } else { | |
| 1679 | - | x.xCondSignal = purego.NewCallback(func(CondVarp *Cond) { | |
| 1680 | - | cb(CondVarp) | |
| 1681 | - | }) | |
| 1682 | - | } | |
| 1683 | - | } | |
| 1684 | - | ||
| 1685 | - | // GetCondSignal gets the "cond_signal" callback function. | |
| 1686 | - | // virtual function pointer for g_cond_signal() | |
| 1687 | - | func (x *ThreadFunctions) GetCondSignal() func(*Cond) { | |
| 1688 | - | if x.xCondSignal == 0 { | |
| 1689 | - | return nil | |
| 1690 | - | } | |
| 1691 | - | var rawCallback func(CondVarp *Cond) | |
| 1692 | - | purego.RegisterFunc(&rawCallback, x.xCondSignal) | |
| 1693 | - | return func(CondVar *Cond) { | |
| 1694 | - | rawCallback(CondVar) | |
| 1695 | - | } | |
| 1696 | - | } | |
| 1697 | - | ||
| 1698 | - | // OverrideCondBroadcast sets the "cond_broadcast" callback function. | |
| 1699 | - | // virtual function pointer for g_cond_broadcast() | |
| 1700 | - | func (x *ThreadFunctions) OverrideCondBroadcast(cb func(*Cond)) { | |
| 1701 | - | if cb == nil { | |
| 1702 | - | x.xCondBroadcast = 0 | |
| 1703 | - | } else { | |
| 1704 | - | x.xCondBroadcast = purego.NewCallback(func(CondVarp *Cond) { | |
| 1705 | - | cb(CondVarp) | |
| 1706 | - | }) | |
| 1707 | - | } | |
| 1708 | - | } | |
| 1709 | - | ||
| 1710 | - | // GetCondBroadcast gets the "cond_broadcast" callback function. | |
| 1711 | - | // virtual function pointer for g_cond_broadcast() | |
| 1712 | - | func (x *ThreadFunctions) GetCondBroadcast() func(*Cond) { | |
| 1713 | - | if x.xCondBroadcast == 0 { | |
| 1714 | - | return nil | |
| 1715 | - | } | |
| 1716 | - | var rawCallback func(CondVarp *Cond) | |
| 1717 | - | purego.RegisterFunc(&rawCallback, x.xCondBroadcast) | |
| 1718 | - | return func(CondVar *Cond) { | |
| 1719 | - | rawCallback(CondVar) | |
| 1720 | - | } | |
| 1721 | - | } | |
| 1722 | - | ||
| 1723 | - | // OverrideCondWait sets the "cond_wait" callback function. | |
| 1724 | - | // virtual function pointer for g_cond_wait() | |
| 1725 | - | func (x *ThreadFunctions) OverrideCondWait(cb func(*Cond, *Mutex)) { | |
| 1726 | - | if cb == nil { | |
| 1727 | - | x.xCondWait = 0 | |
| 1728 | - | } else { | |
| 1729 | - | x.xCondWait = purego.NewCallback(func(CondVarp *Cond, MutexVarp *Mutex) { | |
| 1730 | - | cb(CondVarp, MutexVarp) | |
| 1731 | - | }) | |
| 1732 | - | } | |
| 1733 | - | } | |
| 1734 | - | ||
| 1735 | - | // GetCondWait gets the "cond_wait" callback function. | |
| 1736 | - | // virtual function pointer for g_cond_wait() | |
| 1737 | - | func (x *ThreadFunctions) GetCondWait() func(*Cond, *Mutex) { | |
| 1738 | - | if x.xCondWait == 0 { | |
| 1739 | - | return nil | |
| 1740 | - | } | |
| 1741 | - | var rawCallback func(CondVarp *Cond, MutexVarp *Mutex) | |
| 1742 | - | purego.RegisterFunc(&rawCallback, x.xCondWait) | |
| 1743 | - | return func(CondVar *Cond, MutexVar *Mutex) { | |
| 1744 | - | rawCallback(CondVar, MutexVar) | |
| 1745 | - | } | |
| 1746 | - | } | |
| 1747 | - | ||
| 1748 | - | // OverrideCondTimedWait sets the "cond_timed_wait" callback function. | |
| 1749 | - | // virtual function pointer for g_cond_timed_wait() | |
| 1750 | - | func (x *ThreadFunctions) OverrideCondTimedWait(cb func(*Cond, *Mutex, *TimeVal) bool) { | |
| 1751 | - | if cb == nil { | |
| 1752 | - | x.xCondTimedWait = 0 | |
| 1753 | - | } else { | |
| 1754 | - | x.xCondTimedWait = purego.NewCallback(func(CondVarp *Cond, MutexVarp *Mutex, EndTimeVarp *TimeVal) bool { | |
| 1755 | - | return cb(CondVarp, MutexVarp, EndTimeVarp) | |
| 1756 | - | }) | |
| 1757 | - | } | |
| 1758 | - | } | |
| 1759 | - | ||
| 1760 | - | // GetCondTimedWait gets the "cond_timed_wait" callback function. | |
| 1761 | - | // virtual function pointer for g_cond_timed_wait() | |
| 1762 | - | func (x *ThreadFunctions) GetCondTimedWait() func(*Cond, *Mutex, *TimeVal) bool { | |
| 1763 | - | if x.xCondTimedWait == 0 { | |
| 1764 | - | return nil | |
| 1765 | - | } | |
| 1766 | - | var rawCallback func(CondVarp *Cond, MutexVarp *Mutex, EndTimeVarp *TimeVal) bool | |
| 1767 | - | purego.RegisterFunc(&rawCallback, x.xCondTimedWait) | |
| 1768 | - | return func(CondVar *Cond, MutexVar *Mutex, EndTimeVar *TimeVal) bool { | |
| 1769 | - | return rawCallback(CondVar, MutexVar, EndTimeVar) | |
| 1770 | - | } | |
| 1771 | - | } | |
| 1772 | - | ||
| 1773 | - | // OverrideCondFree sets the "cond_free" callback function. | |
| 1774 | - | // virtual function pointer for g_cond_free() | |
| 1775 | - | func (x *ThreadFunctions) OverrideCondFree(cb func(*Cond)) { | |
| 1776 | - | if cb == nil { | |
| 1777 | - | x.xCondFree = 0 | |
| 1778 | - | } else { | |
| 1779 | - | x.xCondFree = purego.NewCallback(func(CondVarp *Cond) { | |
| 1780 | - | cb(CondVarp) | |
| 1781 | - | }) | |
| 1782 | - | } | |
| 1783 | - | } | |
| 1784 | - | ||
| 1785 | - | // GetCondFree gets the "cond_free" callback function. | |
| 1786 | - | // virtual function pointer for g_cond_free() | |
| 1787 | - | func (x *ThreadFunctions) GetCondFree() func(*Cond) { | |
| 1788 | - | if x.xCondFree == 0 { | |
| 1789 | - | return nil | |
| 1790 | - | } | |
| 1791 | - | var rawCallback func(CondVarp *Cond) | |
| 1792 | - | purego.RegisterFunc(&rawCallback, x.xCondFree) | |
| 1793 | - | return func(CondVar *Cond) { | |
| 1794 | - | rawCallback(CondVar) | |
| 1795 | - | } | |
| 1796 | - | } | |
| 1797 | - | ||
| 1798 | - | // OverridePrivateNew sets the "private_new" callback function. | |
| 1799 | - | // virtual function pointer for g_private_new() | |
| 1800 | - | func (x *ThreadFunctions) OverridePrivateNew(cb func(*DestroyNotify) *Private) { | |
| 1801 | - | if cb == nil { | |
| 1802 | - | x.xPrivateNew = 0 | |
| 1803 | - | } else { | |
| 1804 | - | x.xPrivateNew = purego.NewCallback(func(DestructorVarp uintptr) uintptr { | |
| 1805 | - | ret := cb((*DestroyNotify)(unsafe.Pointer(DestructorVarp))) | |
| 1806 | - | if ret == nil { | |
| 1807 | - | return 0 | |
| 1808 | - | } | |
| 1809 | - | return uintptr(unsafe.Pointer(ret)) | |
| 1810 | - | }) | |
| 1811 | - | } | |
| 1812 | - | } | |
| 1813 | - | ||
| 1814 | - | // GetPrivateNew gets the "private_new" callback function. | |
| 1815 | - | // virtual function pointer for g_private_new() | |
| 1816 | - | func (x *ThreadFunctions) GetPrivateNew() func(*DestroyNotify) *Private { | |
| 1817 | - | if x.xPrivateNew == 0 { | |
| 1818 | - | return nil | |
| 1819 | - | } | |
| 1820 | - | var rawCallback func(DestructorVarp uintptr) uintptr | |
| 1821 | - | purego.RegisterFunc(&rawCallback, x.xPrivateNew) | |
| 1822 | - | return func(DestructorVar *DestroyNotify) *Private { | |
| 1823 | - | rawRet := rawCallback(NewCallback(DestructorVar)) | |
| 1824 | - | if rawRet == 0 { | |
| 1825 | - | return nil | |
| 1826 | - | } | |
| 1827 | - | return (*Private)(unsafe.Pointer(rawRet)) | |
| 1828 | - | } | |
| 1829 | - | } | |
| 1830 | - | ||
| 1831 | - | // OverridePrivateGet sets the "private_get" callback function. | |
| 1832 | - | // virtual function pointer for g_private_get() | |
| 1833 | - | func (x *ThreadFunctions) OverridePrivateGet(cb func(*Private) uintptr) { | |
| 1834 | - | if cb == nil { | |
| 1835 | - | x.xPrivateGet = 0 | |
| 1836 | - | } else { | |
| 1837 | - | x.xPrivateGet = purego.NewCallback(func(PrivateKeyVarp *Private) uintptr { | |
| 1838 | - | return cb(PrivateKeyVarp) | |
| 1839 | - | }) | |
| 1840 | - | } | |
| 1841 | - | } | |
| 1842 | - | ||
| 1843 | - | // GetPrivateGet gets the "private_get" callback function. | |
| 1844 | - | // virtual function pointer for g_private_get() | |
| 1845 | - | func (x *ThreadFunctions) GetPrivateGet() func(*Private) uintptr { | |
| 1846 | - | if x.xPrivateGet == 0 { | |
| 1847 | - | return nil | |
| 1848 | - | } | |
| 1849 | - | var rawCallback func(PrivateKeyVarp *Private) uintptr | |
| 1850 | - | purego.RegisterFunc(&rawCallback, x.xPrivateGet) | |
| 1851 | - | return func(PrivateKeyVar *Private) uintptr { | |
| 1852 | - | return rawCallback(PrivateKeyVar) | |
| 1853 | - | } | |
| 1854 | - | } | |
| 1855 | - | ||
| 1856 | - | // OverridePrivateSet sets the "private_set" callback function. | |
| 1857 | - | // virtual function pointer for g_private_set() | |
| 1858 | - | func (x *ThreadFunctions) OverridePrivateSet(cb func(*Private, uintptr)) { | |
| 1859 | - | if cb == nil { | |
| 1860 | - | x.xPrivateSet = 0 | |
| 1861 | - | } else { | |
| 1862 | - | x.xPrivateSet = purego.NewCallback(func(PrivateKeyVarp *Private, DataVarp uintptr) { | |
| 1863 | - | cb(PrivateKeyVarp, DataVarp) | |
| 1864 | - | }) | |
| 1865 | - | } | |
| 1866 | - | } | |
| 1867 | - | ||
| 1868 | - | // GetPrivateSet gets the "private_set" callback function. | |
| 1869 | - | // virtual function pointer for g_private_set() | |
| 1870 | - | func (x *ThreadFunctions) GetPrivateSet() func(*Private, uintptr) { | |
| 1871 | - | if x.xPrivateSet == 0 { | |
| 1872 | - | return nil | |
| 1873 | - | } | |
| 1874 | - | var rawCallback func(PrivateKeyVarp *Private, DataVarp uintptr) | |
| 1875 | - | purego.RegisterFunc(&rawCallback, x.xPrivateSet) | |
| 1876 | - | return func(PrivateKeyVar *Private, DataVar uintptr) { | |
| 1877 | - | rawCallback(PrivateKeyVar, DataVar) | |
| 1878 | - | } | |
| 1879 | - | } | |
| 1880 | - | ||
| 1881 | - | // OverrideThreadCreate sets the "thread_create" callback function. | |
| 1882 | - | // virtual function pointer for g_thread_create() | |
| 1883 | - | func (x *ThreadFunctions) OverrideThreadCreate(cb func(*ThreadFunc, uintptr, uint, bool, bool, ThreadPriority, uintptr)) { | |
| 1884 | - | if cb == nil { | |
| 1885 | - | x.xThreadCreate = 0 | |
| 1886 | - | } else { | |
| 1887 | - | x.xThreadCreate = purego.NewCallback(func(FuncVarp uintptr, DataVarp uintptr, StackSizeVarp uint, JoinableVarp bool, BoundVarp bool, PriorityVarp ThreadPriority, ThreadVarp uintptr, cerrp **Error) { | |
| 1888 | - | cb((*ThreadFunc)(unsafe.Pointer(FuncVarp)), DataVarp, StackSizeVarp, JoinableVarp, BoundVarp, PriorityVarp, ThreadVarp) | |
| 1889 | - | }) | |
| 1890 | - | } | |
| 1891 | - | } | |
| 1892 | - | ||
| 1893 | - | // GetThreadCreate gets the "thread_create" callback function. | |
| 1894 | - | // virtual function pointer for g_thread_create() | |
| 1895 | - | func (x *ThreadFunctions) GetThreadCreate() func(*ThreadFunc, uintptr, uint, bool, bool, ThreadPriority, uintptr) { | |
| 1896 | - | if x.xThreadCreate == 0 { | |
| 1897 | - | return nil | |
| 1898 | - | } | |
| 1899 | - | var rawCallback func(FuncVarp uintptr, DataVarp uintptr, StackSizeVarp uint, JoinableVarp bool, BoundVarp bool, PriorityVarp ThreadPriority, ThreadVarp uintptr, cerrp **Error) | |
| 1900 | - | purego.RegisterFunc(&rawCallback, x.xThreadCreate) | |
| 1901 | - | return func(FuncVar *ThreadFunc, DataVar uintptr, StackSizeVar uint, JoinableVar bool, BoundVar bool, PriorityVar ThreadPriority, ThreadVar uintptr) { | |
| 1902 | - | var cerr *Error | |
| 1903 | - | rawCallback(NewCallback(FuncVar), DataVar, StackSizeVar, JoinableVar, BoundVar, PriorityVar, ThreadVar, &cerr) | |
| 1904 | - | } | |
| 1905 | - | } | |
| 1906 | - | ||
| 1907 | - | // OverrideThreadYield sets the "thread_yield" callback function. | |
| 1908 | - | // virtual function pointer for g_thread_yield() | |
| 1909 | - | func (x *ThreadFunctions) OverrideThreadYield(cb func()) { | |
| 1910 | - | if cb == nil { | |
| 1911 | - | x.xThreadYield = 0 | |
| 1912 | - | } else { | |
| 1913 | - | x.xThreadYield = purego.NewCallback(func() { | |
| 1914 | - | cb() | |
| 1915 | - | }) | |
| 1916 | - | } | |
| 1917 | - | } | |
| 1918 | - | ||
| 1919 | - | // GetThreadYield gets the "thread_yield" callback function. | |
| 1920 | - | // virtual function pointer for g_thread_yield() | |
| 1921 | - | func (x *ThreadFunctions) GetThreadYield() func() { | |
| 1922 | - | if x.xThreadYield == 0 { | |
| 1923 | - | return nil | |
| 1924 | - | } | |
| 1925 | - | var rawCallback func() | |
| 1926 | - | purego.RegisterFunc(&rawCallback, x.xThreadYield) | |
| 1927 | - | return func() { | |
| 1928 | - | rawCallback() | |
| 1929 | - | } | |
| 1930 | - | } | |
| 1931 | - | ||
| 1932 | - | // OverrideThreadJoin sets the "thread_join" callback function. | |
| 1933 | - | // virtual function pointer for g_thread_join() | |
| 1934 | - | func (x *ThreadFunctions) OverrideThreadJoin(cb func(uintptr)) { | |
| 1935 | - | if cb == nil { | |
| 1936 | - | x.xThreadJoin = 0 | |
| 1937 | - | } else { | |
| 1938 | - | x.xThreadJoin = purego.NewCallback(func(ThreadVarp uintptr) { | |
| 1939 | - | cb(ThreadVarp) | |
| 1940 | - | }) | |
| 1941 | - | } | |
| 1942 | - | } | |
| 1943 | - | ||
| 1944 | - | // GetThreadJoin gets the "thread_join" callback function. | |
| 1945 | - | // virtual function pointer for g_thread_join() | |
| 1946 | - | func (x *ThreadFunctions) GetThreadJoin() func(uintptr) { | |
| 1947 | - | if x.xThreadJoin == 0 { | |
| 1948 | - | return nil | |
| 1949 | - | } | |
| 1950 | - | var rawCallback func(ThreadVarp uintptr) | |
| 1951 | - | purego.RegisterFunc(&rawCallback, x.xThreadJoin) | |
| 1952 | - | return func(ThreadVar uintptr) { | |
| 1953 | - | rawCallback(ThreadVar) | |
| 1954 | - | } | |
| 1955 | - | } | |
| 1956 | - | ||
| 1957 | - | // OverrideThreadExit sets the "thread_exit" callback function. | |
| 1958 | - | // virtual function pointer for g_thread_exit() | |
| 1959 | - | func (x *ThreadFunctions) OverrideThreadExit(cb func()) { | |
| 1960 | - | if cb == nil { | |
| 1961 | - | x.xThreadExit = 0 | |
| 1962 | - | } else { | |
| 1963 | - | x.xThreadExit = purego.NewCallback(func() { | |
| 1964 | - | cb() | |
| 1965 | - | }) | |
| 1966 | - | } | |
| 1967 | - | } | |
| 1968 | - | ||
| 1969 | - | // GetThreadExit gets the "thread_exit" callback function. | |
| 1970 | - | // virtual function pointer for g_thread_exit() | |
| 1971 | - | func (x *ThreadFunctions) GetThreadExit() func() { | |
| 1972 | - | if x.xThreadExit == 0 { | |
| 1973 | - | return nil | |
| 1974 | - | } | |
| 1975 | - | var rawCallback func() | |
| 1976 | - | purego.RegisterFunc(&rawCallback, x.xThreadExit) | |
| 1977 | - | return func() { | |
| 1978 | - | rawCallback() | |
| 1979 | - | } | |
| 1980 | - | } | |
| 1981 | - | ||
| 1982 | - | // OverrideThreadSetPriority sets the "thread_set_priority" callback function. | |
| 1983 | - | // virtual function pointer for | |
| 1984 | - | // | |
| 1985 | - | // g_thread_set_priority() | |
| 1986 | - | func (x *ThreadFunctions) OverrideThreadSetPriority(cb func(uintptr, ThreadPriority)) { | |
| 1987 | - | if cb == nil { | |
| 1988 | - | x.xThreadSetPriority = 0 | |
| 1989 | - | } else { | |
| 1990 | - | x.xThreadSetPriority = purego.NewCallback(func(ThreadVarp uintptr, PriorityVarp ThreadPriority) { | |
| 1991 | - | cb(ThreadVarp, PriorityVarp) | |
| 1992 | - | }) | |
| 1993 | - | } | |
| 1994 | - | } | |
| 1995 | - | ||
| 1996 | - | // GetThreadSetPriority gets the "thread_set_priority" callback function. | |
| 1997 | - | // virtual function pointer for | |
| 1998 | - | // | |
| 1999 | - | // g_thread_set_priority() | |
| 2000 | - | func (x *ThreadFunctions) GetThreadSetPriority() func(uintptr, ThreadPriority) { | |
| 2001 | - | if x.xThreadSetPriority == 0 { | |
| 2002 | - | return nil | |
| 2003 | - | } | |
| 2004 | - | var rawCallback func(ThreadVarp uintptr, PriorityVarp ThreadPriority) | |
| 2005 | - | purego.RegisterFunc(&rawCallback, x.xThreadSetPriority) | |
| 2006 | - | return func(ThreadVar uintptr, PriorityVar ThreadPriority) { | |
| 2007 | - | rawCallback(ThreadVar, PriorityVar) | |
| 2008 | - | } | |
| 2009 | - | } | |
| 2010 | - | ||
| 2011 | - | // OverrideThreadSelf sets the "thread_self" callback function. | |
| 2012 | - | // virtual function pointer for g_thread_self() | |
| 2013 | - | func (x *ThreadFunctions) OverrideThreadSelf(cb func(uintptr)) { | |
| 2014 | - | if cb == nil { | |
| 2015 | - | x.xThreadSelf = 0 | |
| 2016 | - | } else { | |
| 2017 | - | x.xThreadSelf = purego.NewCallback(func(ThreadVarp uintptr) { | |
| 2018 | - | cb(ThreadVarp) | |
| 2019 | - | }) | |
| 2020 | - | } | |
| 2021 | - | } | |
| 2022 | - | ||
| 2023 | - | // GetThreadSelf gets the "thread_self" callback function. | |
| 2024 | - | // virtual function pointer for g_thread_self() | |
| 2025 | - | func (x *ThreadFunctions) GetThreadSelf() func(uintptr) { | |
| 2026 | - | if x.xThreadSelf == 0 { | |
| 2027 | - | return nil | |
| 2028 | - | } | |
| 2029 | - | var rawCallback func(ThreadVarp uintptr) | |
| 2030 | - | purego.RegisterFunc(&rawCallback, x.xThreadSelf) | |
| 2031 | - | return func(ThreadVar uintptr) { | |
| 2032 | - | rawCallback(ThreadVar) | |
| 2033 | - | } | |
| 2034 | - | } | |
| 2035 | - | ||
| 2036 | - | // OverrideThreadEqual sets the "thread_equal" callback function. | |
| 2037 | - | // used internally by recursive mutex locks and by some | |
| 2038 | - | // | |
| 2039 | - | // assertion checks | |
| 2040 | - | func (x *ThreadFunctions) OverrideThreadEqual(cb func(uintptr, uintptr) bool) { | |
| 2041 | - | if cb == nil { | |
| 2042 | - | x.xThreadEqual = 0 | |
| 2043 | - | } else { | |
| 2044 | - | x.xThreadEqual = purego.NewCallback(func(Thread1Varp uintptr, Thread2Varp uintptr) bool { | |
| 2045 | - | return cb(Thread1Varp, Thread2Varp) | |
| 2046 | - | }) | |
| 2047 | - | } | |
| 2048 | - | } | |
| 2049 | - | ||
| 2050 | - | // GetThreadEqual gets the "thread_equal" callback function. | |
| 2051 | - | // used internally by recursive mutex locks and by some | |
| 2052 | - | // | |
| 2053 | - | // assertion checks | |
| 2054 | - | func (x *ThreadFunctions) GetThreadEqual() func(uintptr, uintptr) bool { | |
| 2055 | - | if x.xThreadEqual == 0 { | |
| 2056 | - | return nil | |
| 2057 | - | } | |
| 2058 | - | var rawCallback func(Thread1Varp uintptr, Thread2Varp uintptr) bool | |
| 2059 | - | purego.RegisterFunc(&rawCallback, x.xThreadEqual) | |
| 2060 | - | return func(Thread1Var uintptr, Thread2Var uintptr) bool { | |
| 2061 | - | return rawCallback(Thread1Var, Thread2Var) | |
| 2062 | - | } | |
| 2063 | - | } | |
| 2064 | - | ||
| 2065 | - | // The #GMutex struct is an opaque data structure to represent a mutex | |
| 2066 | - | // (mutual exclusion). It can be used to protect data against shared | |
| 2067 | - | // access. | |
| 2068 | - | // | |
| 2069 | - | // Take for example the following function: | |
| 2070 | - | // |[<!-- language="C" --> | |
| 2071 | - | // | |
| 2072 | - | // int | |
| 2073 | - | // give_me_next_number (void) | |
| 2074 | - | // { | |
| 2075 | - | // static int current_number = 0; | |
| 2076 | - | // | |
| 2077 | - | // // now do a very complicated calculation to calculate the new | |
| 2078 | - | // // number, this might for example be a random number generator | |
| 2079 | - | // current_number = calc_next_number (current_number); | |
| 2080 | - | // | |
| 2081 | - | // return current_number; | |
| 2082 | - | // } | |
| 2083 | - | // | |
| 2084 | - | // ]| | |
| 2085 | - | // It is easy to see that this won't work in a multi-threaded | |
| 2086 | - | // application. There current_number must be protected against shared | |
| 2087 | - | // access. A #GMutex can be used as a solution to this problem: | |
| 2088 | - | // |[<!-- language="C" --> | |
| 2089 | - | // | |
| 2090 | - | // int | |
| 2091 | - | // give_me_next_number (void) | |
| 2092 | - | // { | |
| 2093 | - | // static GMutex mutex; | |
| 2094 | - | // static int current_number = 0; | |
| 2095 | - | // int ret_val; | |
| 2096 | - | // | |
| 2097 | - | // g_mutex_lock (&mutex); | |
| 2098 | - | // ret_val = current_number = calc_next_number (current_number); | |
| 2099 | - | // g_mutex_unlock (&mutex); | |
| 2100 | - | // | |
| 2101 | - | // return ret_val; | |
| 2102 | - | // } | |
| 2103 | - | // | |
| 2104 | - | // ]| | |
| 2105 | - | // Notice that the #GMutex is not initialised to any particular value. | |
| 2106 | - | // Its placement in static storage ensures that it will be initialised | |
| 2107 | - | // to all-zeros, which is appropriate. | |
| 2108 | - | // | |
| 2109 | - | // If a #GMutex is placed in other contexts (eg: embedded in a struct) | |
| 2110 | - | // then it must be explicitly initialised using g_mutex_init(). | |
| 2111 | - | // | |
| 2112 | - | // A #GMutex should only be accessed via g_mutex_ functions. | |
| 2113 | - | type Mutex = uintptr | |
| 2114 | - | ||
| 2115 | - | // Opaque type. See g_mutex_locker_new() for details. | |
| 2116 | - | type MutexLocker = uintptr | |
| 2117 | - | ||
| 2118 | - | // Opaque type. See g_rw_lock_reader_locker_new() for details. | |
| 2119 | - | type RWLockReaderLocker = uintptr | |
| 2120 | - | ||
| 2121 | - | // Opaque type. See g_rw_lock_writer_locker_new() for details. | |
| 2122 | - | type RWLockWriterLocker = uintptr | |
| 2123 | - | ||
| 2124 | - | // Opaque type. See g_rec_mutex_locker_new() for details. | |
| 2125 | - | type RecMutexLocker = uintptr | |
| 2126 | - | ||
| 2127 | - | // The possible statuses of a one-time initialization function | |
| 2128 | - | // controlled by a #GOnce struct. | |
| 2129 | - | type OnceStatus int | |
| 2130 | - | ||
| 2131 | - | const ( | |
| 2132 | - | ||
| 2133 | - | // the function has not been called yet. | |
| 2134 | - | GOnceStatusNotcalledValue OnceStatus = 0 | |
| 2135 | - | // the function call is currently in progress. | |
| 2136 | - | GOnceStatusProgressValue OnceStatus = 1 | |
| 2137 | - | // the function has been called. | |
| 2138 | - | GOnceStatusReadyValue OnceStatus = 2 | |
| 2139 | - | ) | |
| 2140 | - | ||
| 2141 | - | // Possible errors of thread related functions. | |
| 2142 | - | type ThreadError int | |
| 2143 | - | ||
| 2144 | - | const ( | |
| 2145 | - | ||
| 2146 | - | // a thread couldn't be created due to resource | |
| 2147 | - | // shortage. Try again later. | |
| 2148 | - | GThreadErrorAgainValue ThreadError = 0 | |
| 2149 | - | ) | |
| 2150 | - | ||
| 2151 | - | // Thread priorities. | |
| 2152 | - | type ThreadPriority int | |
| 2153 | - | ||
| 2154 | - | const ( | |
| 2155 | - | ||
| 2156 | - | // a priority lower than normal | |
| 2157 | - | GThreadPriorityLowValue ThreadPriority = 0 | |
| 2158 | - | // the default priority | |
| 2159 | - | GThreadPriorityNormalValue ThreadPriority = 1 | |
| 2160 | - | // a priority higher than normal | |
| 2161 | - | GThreadPriorityHighValue ThreadPriority = 2 | |
| 2162 | - | // the highest priority | |
| 2163 | - | GThreadPriorityUrgentValue ThreadPriority = 3 | |
| 2164 | - | ) | |
| 2165 | - | ||
| 2166 | - | var xCondNew func() uintptr | |
| 2167 | - | ||
| 2168 | - | // Allocates and initializes a new #GCond. | |
| 2169 | - | func CondNew() *Cond { | |
| 2170 | - | core.LazyRegister(&xCondNew, "GLIB", "g_cond_new", false) | |
| 2171 | - | ||
| 2172 | - | cret := xCondNew() | |
| 2173 | - | if cret == 0 { | |
| 2174 | - | return nil | |
| 2175 | - | } | |
| 2176 | - | return (*Cond)(unsafe.Pointer(cret)) | |
| 2177 | - | } | |
| 2178 | - | ||
| 2179 | - | var xGetNumProcessors func() uint | |
| 2180 | - | ||
| 2181 | - | // Determine the approximate number of threads that the system will | |
| 2182 | - | // schedule simultaneously for this process. This is intended to be | |
| 2183 | - | // used as a parameter to g_thread_pool_new() for CPU bound tasks and | |
| 2184 | - | // similar cases. | |
| 2185 | - | func GetNumProcessors() uint { | |
| 2186 | - | core.LazyRegister(&xGetNumProcessors, "GLIB", "g_get_num_processors", false) | |
| 2187 | - | ||
| 2188 | - | cret := xGetNumProcessors() | |
| 2189 | - | return cret | |
| 2190 | - | } | |
| 2191 | - | ||
| 2192 | - | var xMutexNew func() *Mutex | |
| 2193 | - | ||
| 2194 | - | // Allocates and initializes a new #GMutex. | |
| 2195 | - | func MutexNew() *Mutex { | |
| 2196 | - | core.LazyRegister(&xMutexNew, "GLIB", "g_mutex_new", false) | |
| 2197 | - | ||
| 2198 | - | cret := xMutexNew() | |
| 2199 | - | return cret | |
| 2200 | - | } | |
| 2201 | - | ||
| 2202 | - | var xOnceInitEnter func(*uintptr) bool | |
| 2203 | - | ||
| 2204 | - | // Function to be called when starting a critical initialization | |
| 2205 | - | // section. The argument @location must point to a static | |
| 2206 | - | // 0-initialized variable that will be set to a value other than 0 at | |
| 2207 | - | // the end of the initialization section. In combination with | |
| 2208 | - | // g_once_init_leave() and the unique address @value_location, it can | |
| 2209 | - | // be ensured that an initialization section will be executed only once | |
| 2210 | - | // during a program's life time, and that concurrent threads are | |
| 2211 | - | // blocked until initialization completed. To be used in constructs | |
| 2212 | - | // like this: | |
| 2213 | - | // | |
| 2214 | - | // |[<!-- language="C" --> | |
| 2215 | - | // | |
| 2216 | - | // static gsize initialization_value = 0; | |
| 2217 | - | // | |
| 2218 | - | // if (g_once_init_enter (&initialization_value)) | |
| 2219 | - | // { | |
| 2220 | - | // gsize setup_value = 42; // initialization code here | |
| 2221 | - | // | |
| 2222 | - | // g_once_init_leave (&initialization_value, setup_value); | |
| 2223 | - | // } | |
| 2224 | - | // | |
| 2225 | - | // // use initialization_value here | |
| 2226 | - | // | |
| 2227 | - | // ]| | |
| 2228 | - | // | |
| 2229 | - | // While @location has a `volatile` qualifier, this is a historical artifact and | |
| 2230 | - | // the pointer passed to it should not be `volatile`. | |
| 2231 | - | func OnceInitEnter(LocationVar *uintptr) bool { | |
| 2232 | - | core.LazyRegister(&xOnceInitEnter, "GLIB", "g_once_init_enter", false) | |
| 2233 | - | ||
| 2234 | - | cret := xOnceInitEnter(LocationVar) | |
| 2235 | - | return cret | |
| 2236 | - | } | |
| 2237 | - | ||
| 2238 | - | var xOnceInitEnterImpl func(uint) bool | |
| 2239 | - | ||
| 2240 | - | func OnceInitEnterImpl(LocationVar uint) bool { | |
| 2241 | - | core.LazyRegister(&xOnceInitEnterImpl, "GLIB", "g_once_init_enter_impl", false) | |
| 2242 | - | ||
| 2243 | - | cret := xOnceInitEnterImpl(LocationVar) | |
| 2244 | - | return cret | |
| 2245 | - | } | |
| 2246 | - | ||
| 2247 | - | var xOnceInitEnterPointer func(uintptr) bool | |
| 2248 | - | ||
| 2249 | - | // This functions behaves in the same way as g_once_init_enter(), but can | |
| 2250 | - | // can be used to initialize pointers (or #guintptr) instead of #gsize. | |
| 2251 | - | // | |
| 2252 | - | // |[<!-- language="C" --> | |
| 2253 | - | // | |
| 2254 | - | // static MyStruct *interesting_struct = NULL; | |
| 2255 | - | // | |
| 2256 | - | // if (g_once_init_enter_pointer (&interesting_struct)) | |
| 2257 | - | // { | |
| 2258 | - | // MyStruct *setup_value = allocate_my_struct (); // initialization code here | |
| 2259 | - | // | |
| 2260 | - | // g_once_init_leave_pointer (&interesting_struct, g_steal_pointer (&setup_value)); | |
| 2261 | - | // } | |
| 2262 | - | // | |
| 2263 | - | // // use interesting_struct here | |
| 2264 | - | // | |
| 2265 | - | // ]| | |
| 2266 | - | func OnceInitEnterPointer(LocationVar uintptr) bool { | |
| 2267 | - | core.LazyRegister(&xOnceInitEnterPointer, "GLIB", "g_once_init_enter_pointer", false) | |
| 2268 | - | ||
| 2269 | - | cret := xOnceInitEnterPointer(LocationVar) | |
| 2270 | - | return cret | |
| 2271 | - | } | |
| 2272 | - | ||
| 2273 | - | var xOnceInitLeave func(*uintptr, uint) | |
| 2274 | - | ||
| 2275 | - | // Counterpart to g_once_init_enter(). Expects a location of a static | |
| 2276 | - | // 0-initialized initialization variable, and an initialization value | |
| 2277 | - | // other than 0. Sets the variable to the initialization value, and | |
| 2278 | - | // releases concurrent threads blocking in g_once_init_enter() on this | |
| 2279 | - | // initialization variable. | |
| 2280 | - | // | |
| 2281 | - | // While @location has a `volatile` qualifier, this is a historical artifact and | |
| 2282 | - | // the pointer passed to it should not be `volatile`. | |
| 2283 | - | func OnceInitLeave(LocationVar *uintptr, ResultVar uint) { | |
| 2284 | - | core.LazyRegister(&xOnceInitLeave, "GLIB", "g_once_init_leave", false) | |
| 2285 | - | ||
| 2286 | - | xOnceInitLeave(LocationVar, ResultVar) | |
| 2287 | - | } | |
| 2288 | - | ||
| 2289 | - | var xOnceInitLeavePointer func(uintptr, uintptr) | |
| 2290 | - | ||
| 2291 | - | // Counterpart to g_once_init_enter_pointer(). Expects a location of a static | |
| 2292 | - | // `NULL`-initialized initialization variable, and an initialization value | |
| 2293 | - | // other than `NULL`. Sets the variable to the initialization value, and | |
| 2294 | - | // releases concurrent threads blocking in g_once_init_enter_pointer() on this | |
| 2295 | - | // initialization variable. | |
| 2296 | - | // | |
| 2297 | - | // This functions behaves in the same way as g_once_init_leave(), but | |
| 2298 | - | // can be used to initialize pointers (or #guintptr) instead of #gsize. | |
| 2299 | - | func OnceInitLeavePointer(LocationVar uintptr, ResultVar uintptr) { | |
| 2300 | - | core.LazyRegister(&xOnceInitLeavePointer, "GLIB", "g_once_init_leave_pointer", false) | |
| 2301 | - | ||
| 2302 | - | xOnceInitLeavePointer(LocationVar, ResultVar) | |
| 2303 | - | } | |
| 2304 | - | ||
| 2305 | - | var xPrivateNew func(uintptr) uintptr | |
| 2306 | - | ||
| 2307 | - | // Creates a new #GPrivate. | |
| 2308 | - | func PrivateNew(NotifyVar *DestroyNotify) *Private { | |
| 2309 | - | core.LazyRegister(&xPrivateNew, "GLIB", "g_private_new", false) | |
| 2310 | - | ||
| 2311 | - | cret := xPrivateNew(NewCallbackNullable(NotifyVar)) | |
| 2312 | - | if cret == 0 { | |
| 2313 | - | return nil | |
| 2314 | - | } | |
| 2315 | - | return (*Private)(unsafe.Pointer(cret)) | |
| 2316 | - | } | |
| 2317 | - | ||
| 2318 | - | var xThreadCreate func(uintptr, uintptr, bool, **Error) uintptr | |
| 2319 | - | ||
| 2320 | - | // This function creates a new thread. | |
| 2321 | - | // | |
| 2322 | - | // The new thread executes the function @func with the argument @data. | |
| 2323 | - | // If the thread was created successfully, it is returned. | |
| 2324 | - | // | |
| 2325 | - | // @error can be %NULL to ignore errors, or non-%NULL to report errors. | |
| 2326 | - | // The error is set, if and only if the function returns %NULL. | |
| 2327 | - | // | |
| 2328 | - | // This function returns a reference to the created thread only if | |
| 2329 | - | // @joinable is %TRUE. In that case, you must free this reference by | |
| 2330 | - | // calling g_thread_unref() or g_thread_join(). If @joinable is %FALSE | |
| 2331 | - | // then you should probably not touch the return value. | |
| 2332 | - | func ThreadCreate(FuncVar *ThreadFunc, DataVar uintptr, JoinableVar bool) (*Thread, error) { | |
| 2333 | - | core.LazyRegister(&xThreadCreate, "GLIB", "g_thread_create", false) | |
| 2334 | - | var cerr *Error | |
| 2335 | - | ||
| 2336 | - | cret := xThreadCreate(NewCallback(FuncVar), DataVar, JoinableVar, &cerr) | |
| 2337 | - | if cerr != nil { | |
| 2338 | - | return nil, cerr | |
| 2339 | - | } | |
| 2340 | - | if cret == 0 { | |
| 2341 | - | return nil, nil | |
| 2342 | - | } | |
| 2343 | - | return (*Thread)(unsafe.Pointer(cret)), nil | |
| 2344 | - | } | |
| 2345 | - | ||
| 2346 | - | var xThreadCreateFull func(uintptr, uintptr, uint, bool, bool, ThreadPriority, **Error) uintptr | |
| 2347 | - | ||
| 2348 | - | // This function creates a new thread. | |
| 2349 | - | func ThreadCreateFull(FuncVar *ThreadFunc, DataVar uintptr, StackSizeVar uint, JoinableVar bool, BoundVar bool, PriorityVar ThreadPriority) (*Thread, error) { | |
| 2350 | - | core.LazyRegister(&xThreadCreateFull, "GLIB", "g_thread_create_full", false) | |
| 2351 | - | var cerr *Error | |
| 2352 | - | ||
| 2353 | - | cret := xThreadCreateFull(NewCallback(FuncVar), DataVar, StackSizeVar, JoinableVar, BoundVar, PriorityVar, &cerr) | |
| 2354 | - | if cerr != nil { | |
| 2355 | - | return nil, cerr | |
| 2356 | - | } | |
| 2357 | - | if cret == 0 { | |
| 2358 | - | return nil, nil | |
| 2359 | - | } | |
| 2360 | - | return (*Thread)(unsafe.Pointer(cret)), nil | |
| 2361 | - | } | |
| 2362 | - | ||
| 2363 | - | var xThreadExit func(uintptr) | |
| 2364 | - | ||
| 2365 | - | // Terminates the current thread. | |
| 2366 | - | // | |
| 2367 | - | // If another thread is waiting for us using g_thread_join() then the | |
| 2368 | - | // waiting thread will be woken up and get @retval as the return value | |
| 2369 | - | // of g_thread_join(). | |
| 2370 | - | // | |
| 2371 | - | // Calling g_thread_exit() with a parameter @retval is equivalent to | |
| 2372 | - | // returning @retval from the function @func, as given to g_thread_new(). | |
| 2373 | - | // | |
| 2374 | - | // You must only call g_thread_exit() from a thread that you created | |
| 2375 | - | // yourself with g_thread_new() or related APIs. You must not call | |
| 2376 | - | // this function from a thread created with another threading library | |
| 2377 | - | // or or from within a #GThreadPool. | |
| 2378 | - | func ThreadExit(RetvalVar uintptr) { | |
| 2379 | - | core.LazyRegister(&xThreadExit, "GLIB", "g_thread_exit", false) | |
| 2380 | - | ||
| 2381 | - | xThreadExit(RetvalVar) | |
| 2382 | - | } | |
| 2383 | - | ||
| 2384 | - | var xThreadForeach func(uintptr, uintptr) | |
| 2385 | - | ||
| 2386 | - | // Call @thread_func on all #GThreads that have been | |
| 2387 | - | // created with g_thread_create(). | |
| 2388 | - | // | |
| 2389 | - | // Note that threads may decide to exit while @thread_func is | |
| 2390 | - | // running, so without intimate knowledge about the lifetime of | |
| 2391 | - | // foreign threads, @thread_func shouldn't access the GThread* | |
| 2392 | - | // pointer passed in as first argument. However, @thread_func will | |
| 2393 | - | // not be called for threads which are known to have exited already. | |
| 2394 | - | // | |
| 2395 | - | // Due to thread lifetime checks, this function has an execution complexity | |
| 2396 | - | // which is quadratic in the number of existing threads. | |
| 2397 | - | func ThreadForeach(ThreadFuncVar *Func, UserDataVar uintptr) { | |
| 2398 | - | core.LazyRegister(&xThreadForeach, "GLIB", "g_thread_foreach", false) | |
| 2399 | - | ||
| 2400 | - | xThreadForeach(NewCallback(ThreadFuncVar), UserDataVar) | |
| 2401 | - | } | |
| 2402 | - | ||
| 2403 | - | var xThreadGetInitialized func() bool | |
| 2404 | - | ||
| 2405 | - | // Indicates if g_thread_init() has been called. | |
| 2406 | - | func ThreadGetInitialized() bool { | |
| 2407 | - | core.LazyRegister(&xThreadGetInitialized, "GLIB", "g_thread_get_initialized", false) | |
| 2408 | - | ||
| 2409 | - | cret := xThreadGetInitialized() | |
| 2410 | - | return cret | |
| 2411 | - | } | |
| 2412 | - | ||
| 2413 | - | var xThreadInit func(uintptr) | |
| 2414 | - | ||
| 2415 | - | // If you use GLib from more than one thread, you must initialize the | |
| 2416 | - | // thread system by calling g_thread_init(). | |
| 2417 | - | // | |
| 2418 | - | // Since version 2.24, calling g_thread_init() multiple times is allowed, | |
| 2419 | - | // but nothing happens except for the first call. | |
| 2420 | - | // | |
| 2421 | - | // Since version 2.32, GLib does not support custom thread implementations | |
| 2422 | - | // anymore and the @vtable parameter is ignored and you should pass %NULL. | |
| 2423 | - | // | |
| 2424 | - | // ::: note | |
| 2425 | - | // | |
| 2426 | - | // g_thread_init() must not be called directly or indirectly in a | |
| 2427 | - | // callback from GLib. Also no mutexes may be currently locked | |
| 2428 | - | // while calling g_thread_init(). | |
| 2429 | - | // | |
| 2430 | - | // ::: note | |
| 2431 | - | // | |
| 2432 | - | // To use g_thread_init() in your program, you have to link with | |
| 2433 | - | // the libraries that the command `pkg-config --libs gthread-2.0` | |
| 2434 | - | // outputs. This is not the case for all the other thread-related | |
| 2435 | - | // functions of GLib. Those can be used without having to link | |
| 2436 | - | // with the thread libraries. | |
| 2437 | - | func ThreadInit(VtableVar uintptr) { | |
| 2438 | - | core.LazyRegister(&xThreadInit, "GLIB", "g_thread_init", false) | |
| 2439 | - | ||
| 2440 | - | xThreadInit(VtableVar) | |
| 2441 | - | } | |
| 2442 | - | ||
| 2443 | - | var xThreadInitWithErrorcheckMutexes func(uintptr) | |
| 2444 | - | ||
| 2445 | - | func ThreadInitWithErrorcheckMutexes(VtableVar uintptr) { | |
| 2446 | - | core.LazyRegister(&xThreadInitWithErrorcheckMutexes, "GLIB", "g_thread_init_with_errorcheck_mutexes", false) | |
| 2447 | - | ||
| 2448 | - | xThreadInitWithErrorcheckMutexes(VtableVar) | |
| 2449 | - | } | |
| 2450 | - | ||
| 2451 | - | var xThreadSelf func() uintptr | |
| 2452 | - | ||
| 2453 | - | // This function returns the #GThread corresponding to the | |
| 2454 | - | // current thread. Note that this function does not increase | |
| 2455 | - | // the reference count of the returned struct. | |
| 2456 | - | // | |
| 2457 | - | // This function will return a #GThread even for threads that | |
| 2458 | - | // were not created by GLib (i.e. those created by other threading | |
| 2459 | - | // APIs). This may be useful for thread identification purposes | |
| 2460 | - | // (i.e. comparisons) but you must not use GLib functions (such | |
| 2461 | - | // as g_thread_join()) on these threads. | |
| 2462 | - | func ThreadSelf() *Thread { | |
| 2463 | - | core.LazyRegister(&xThreadSelf, "GLIB", "g_thread_self", false) | |
| 2464 | - | ||
| 2465 | - | cret := xThreadSelf() | |
| 2466 | - | if cret == 0 { | |
| 2467 | - | return nil | |
| 2468 | - | } | |
| 2469 | - | return (*Thread)(unsafe.Pointer(cret)) | |
| 2470 | - | } | |
| 2471 | - | ||
| 2472 | - | var xThreadYield func() | |
| 2473 | - | ||
| 2474 | - | // Causes the calling thread to voluntarily relinquish the CPU, so | |
| 2475 | - | // that other threads can run. | |
| 2476 | - | // | |
| 2477 | - | // This function is often used as a method to make busy wait less evil. | |
| 2478 | - | func ThreadYield() { | |
| 2479 | - | core.LazyRegister(&xThreadYield, "GLIB", "g_thread_yield", false) | |
| 2480 | - | ||
| 2481 | - | xThreadYield() | |
| 2482 | - | } | |
| 2483 | - | ||
| 2484 | - | func init() { | |
| 2485 | - | core.SetPackageName("GLIB", "glib-2.0") | |
| 2486 | - | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | |
| 2487 | - | } | |
| @@ -1,2487 +0,0 @@ | |||||
| 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 | - | // Specifies the type of the @func functions passed to g_thread_new() | |||
| 14 | - | // or g_thread_try_new(). | |||
| 15 | - | type ThreadFunc func(uintptr) uintptr | |||
| 16 | - | ||||
| 17 | - | // The #GCond struct is an opaque data structure that represents a | |||
| 18 | - | // condition. Threads can block on a #GCond if they find a certain | |||
| 19 | - | // condition to be false. If other threads change the state of this | |||
| 20 | - | // condition they signal the #GCond, and that causes the waiting | |||
| 21 | - | // threads to be woken up. | |||
| 22 | - | // | |||
| 23 | - | // Consider the following example of a shared variable. One or more | |||
| 24 | - | // threads can wait for data to be published to the variable and when | |||
| 25 | - | // another thread publishes the data, it can signal one of the waiting | |||
| 26 | - | // threads to wake up to collect the data. | |||
| 27 | - | // | |||
| 28 | - | // Here is an example for using GCond to block a thread until a condition | |||
| 29 | - | // is satisfied: | |||
| 30 | - | // |[<!-- language="C" --> | |||
| 31 | - | // | |||
| 32 | - | // gpointer current_data = NULL; | |||
| 33 | - | // GMutex data_mutex; | |||
| 34 | - | // GCond data_cond; | |||
| 35 | - | // | |||
| 36 | - | // void | |||
| 37 | - | // push_data (gpointer data) | |||
| 38 | - | // { | |||
| 39 | - | // g_mutex_lock (&data_mutex); | |||
| 40 | - | // current_data = data; | |||
| 41 | - | // g_cond_signal (&data_cond); | |||
| 42 | - | // g_mutex_unlock (&data_mutex); | |||
| 43 | - | // } | |||
| 44 | - | // | |||
| 45 | - | // gpointer | |||
| 46 | - | // pop_data (void) | |||
| 47 | - | // { | |||
| 48 | - | // gpointer data; | |||
| 49 | - | // | |||
| 50 | - | // g_mutex_lock (&data_mutex); | |||
| 51 | - | // while (!current_data) | |||
| 52 | - | // g_cond_wait (&data_cond, &data_mutex); | |||
| 53 | - | // data = current_data; | |||
| 54 | - | // current_data = NULL; | |||
| 55 | - | // g_mutex_unlock (&data_mutex); | |||
| 56 | - | // | |||
| 57 | - | // return data; | |||
| 58 | - | // } | |||
| 59 | - | // | |||
| 60 | - | // ]| | |||
| 61 | - | // Whenever a thread calls pop_data() now, it will wait until | |||
| 62 | - | // current_data is non-%NULL, i.e. until some other thread | |||
| 63 | - | // has called push_data(). | |||
| 64 | - | // | |||
| 65 | - | // The example shows that use of a condition variable must always be | |||
| 66 | - | // paired with a mutex. Without the use of a mutex, there would be a | |||
| 67 | - | // race between the check of @current_data by the while loop in | |||
| 68 | - | // pop_data() and waiting. Specifically, another thread could set | |||
| 69 | - | // @current_data after the check, and signal the cond (with nobody | |||
| 70 | - | // waiting on it) before the first thread goes to sleep. #GCond is | |||
| 71 | - | // specifically useful for its ability to release the mutex and go | |||
| 72 | - | // to sleep atomically. | |||
| 73 | - | // | |||
| 74 | - | // It is also important to use the g_cond_wait() and g_cond_wait_until() | |||
| 75 | - | // functions only inside a loop which checks for the condition to be | |||
| 76 | - | // true. See g_cond_wait() for an explanation of why the condition may | |||
| 77 | - | // not be true even after it returns. | |||
| 78 | - | // | |||
| 79 | - | // If a #GCond is allocated in static storage then it can be used | |||
| 80 | - | // without initialisation. Otherwise, you should call g_cond_init() | |||
| 81 | - | // on it and g_cond_clear() when done. | |||
| 82 | - | // | |||
| 83 | - | // A #GCond should only be accessed via the g_cond_ functions. | |||
| 84 | - | type Cond struct { | |||
| 85 | - | _ structs.HostLayout | |||
| 86 | - | ||||
| 87 | - | P uintptr | |||
| 88 | - | ||||
| 89 | - | I [2]uint | |||
| 90 | - | } | |||
| 91 | - | ||||
| 92 | - | func (x *Cond) GoPointer() uintptr { | |||
| 93 | - | return uintptr(unsafe.Pointer(x)) | |||
| 94 | - | } | |||
| 95 | - | ||||
| 96 | - | func CondNewFromInternalPtr(ptr uintptr) *Cond { | |||
| 97 | - | if ptr == 0 { | |||
| 98 | - | return nil | |||
| 99 | - | } | |||
| 100 | - | rawPtr := *(*unsafe.Pointer)(unsafe.Pointer(&ptr)) | |||
| 101 | - | return (*Cond)(rawPtr) | |||
| 102 | - | } | |||
| 103 | - | ||||
| 104 | - | var xCondBroadcast func(uintptr) | |||
| 105 | - | ||||
| 106 | - | // If threads are waiting for @cond, all of them are unblocked. | |||
| 107 | - | // If no threads are waiting for @cond, this function has no effect. | |||
| 108 | - | // It is good practice to lock the same mutex as the waiting threads | |||
| 109 | - | // while calling this function, though not required. | |||
| 110 | - | func (x *Cond) Broadcast() { | |||
| 111 | - | core.LazyRegister(&xCondBroadcast, "GLIB", "g_cond_broadcast", false) | |||
| 112 | - | ||||
| 113 | - | xCondBroadcast(x.GoPointer()) | |||
| 114 | - | } | |||
| 115 | - | ||||
| 116 | - | var xCondClear func(uintptr) | |||
| 117 | - | ||||
| 118 | - | // Frees the resources allocated to a #GCond with g_cond_init(). | |||
| 119 | - | // | |||
| 120 | - | // This function should not be used with a #GCond that has been | |||
| 121 | - | // statically allocated. | |||
| 122 | - | // | |||
| 123 | - | // Calling g_cond_clear() for a #GCond on which threads are | |||
| 124 | - | // blocking leads to undefined behaviour. | |||
| 125 | - | func (x *Cond) Clear() { | |||
| 126 | - | core.LazyRegister(&xCondClear, "GLIB", "g_cond_clear", false) | |||
| 127 | - | ||||
| 128 | - | xCondClear(x.GoPointer()) | |||
| 129 | - | } | |||
| 130 | - | ||||
| 131 | - | var xCondFree func(uintptr) | |||
| 132 | - | ||||
| 133 | - | // Destroys a #GCond that has been created with g_cond_new(). | |||
| 134 | - | // | |||
| 135 | - | // Calling g_cond_free() for a #GCond on which threads are | |||
| 136 | - | // blocking leads to undefined behaviour. | |||
| 137 | - | func (x *Cond) Free() { | |||
| 138 | - | core.LazyRegister(&xCondFree, "GLIB", "g_cond_free", false) | |||
| 139 | - | ||||
| 140 | - | xCondFree(x.GoPointer()) | |||
| 141 | - | } | |||
| 142 | - | ||||
| 143 | - | var xCondInit func(uintptr) | |||
| 144 | - | ||||
| 145 | - | // Initialises a #GCond so that it can be used. | |||
| 146 | - | // | |||
| 147 | - | // This function is useful to initialise a #GCond that has been | |||
| 148 | - | // allocated as part of a larger structure. It is not necessary to | |||
| 149 | - | // initialise a #GCond that has been statically allocated. | |||
| 150 | - | // | |||
| 151 | - | // To undo the effect of g_cond_init() when a #GCond is no longer | |||
| 152 | - | // needed, use g_cond_clear(). | |||
| 153 | - | // | |||
| 154 | - | // Calling g_cond_init() on an already-initialised #GCond leads | |||
| 155 | - | // to undefined behaviour. | |||
| 156 | - | func (x *Cond) Init() { | |||
| 157 | - | core.LazyRegister(&xCondInit, "GLIB", "g_cond_init", false) | |||
| 158 | - | ||||
| 159 | - | xCondInit(x.GoPointer()) | |||
| 160 | - | } | |||
| 161 | - | ||||
| 162 | - | var xCondSignal func(uintptr) | |||
| 163 | - | ||||
| 164 | - | // If threads are waiting for @cond, at least one of them is unblocked. | |||
| 165 | - | // If no threads are waiting for @cond, this function has no effect. | |||
| 166 | - | // It is good practice to hold the same lock as the waiting thread | |||
| 167 | - | // while calling this function, though not required. | |||
| 168 | - | func (x *Cond) Signal() { | |||
| 169 | - | core.LazyRegister(&xCondSignal, "GLIB", "g_cond_signal", false) | |||
| 170 | - | ||||
| 171 | - | xCondSignal(x.GoPointer()) | |||
| 172 | - | } | |||
| 173 | - | ||||
| 174 | - | var xCondTimedWait func(uintptr, *Mutex, *TimeVal) bool | |||
| 175 | - | ||||
| 176 | - | // Waits until this thread is woken up on @cond, but not longer than | |||
| 177 | - | // until the time specified by @abs_time. The @mutex is unlocked before | |||
| 178 | - | // falling asleep and locked again before resuming. | |||
| 179 | - | // | |||
| 180 | - | // If @abs_time is %NULL, g_cond_timed_wait() acts like g_cond_wait(). | |||
| 181 | - | // | |||
| 182 | - | // This function can be used even if g_thread_init() has not yet been | |||
| 183 | - | // called, and, in that case, will immediately return %TRUE. | |||
| 184 | - | // | |||
| 185 | - | // To easily calculate @abs_time a combination of g_get_real_time() | |||
| 186 | - | // and g_time_val_add() can be used. | |||
| 187 | - | func (x *Cond) TimedWait(MutexVar *Mutex, AbsTimeVar *TimeVal) bool { | |||
| 188 | - | core.LazyRegister(&xCondTimedWait, "GLIB", "g_cond_timed_wait", false) | |||
| 189 | - | ||||
| 190 | - | cret := xCondTimedWait(x.GoPointer(), MutexVar, AbsTimeVar) | |||
| 191 | - | return cret | |||
| 192 | - | } | |||
| 193 | - | ||||
| 194 | - | var xCondWait func(uintptr, *Mutex) | |||
| 195 | - | ||||
| 196 | - | // Atomically releases @mutex and waits until @cond is signalled. | |||
| 197 | - | // When this function returns, @mutex is locked again and owned by the | |||
| 198 | - | // calling thread. | |||
| 199 | - | // | |||
| 200 | - | // When using condition variables, it is possible that a spurious wakeup | |||
| 201 | - | // may occur (ie: g_cond_wait() returns even though g_cond_signal() was | |||
| 202 | - | // not called). It's also possible that a stolen wakeup may occur. | |||
| 203 | - | // This is when g_cond_signal() is called, but another thread acquires | |||
| 204 | - | // @mutex before this thread and modifies the state of the program in | |||
| 205 | - | // such a way that when g_cond_wait() is able to return, the expected | |||
| 206 | - | // condition is no longer met. | |||
| 207 | - | // | |||
| 208 | - | // For this reason, g_cond_wait() must always be used in a loop. See | |||
| 209 | - | // the documentation for #GCond for a complete example. | |||
| 210 | - | func (x *Cond) Wait(MutexVar *Mutex) { | |||
| 211 | - | core.LazyRegister(&xCondWait, "GLIB", "g_cond_wait", false) | |||
| 212 | - | ||||
| 213 | - | xCondWait(x.GoPointer(), MutexVar) | |||
| 214 | - | } | |||
| 215 | - | ||||
| 216 | - | var xCondWaitUntil func(uintptr, *Mutex, int64) bool | |||
| 217 | - | ||||
| 218 | - | // Waits until either @cond is signalled or @end_time has passed. | |||
| 219 | - | // | |||
| 220 | - | // As with g_cond_wait() it is possible that a spurious or stolen wakeup | |||
| 221 | - | // could occur. For that reason, waiting on a condition variable should | |||
| 222 | - | // always be in a loop, based on an explicitly-checked predicate. | |||
| 223 | - | // | |||
| 224 | - | // %TRUE is returned if the condition variable was signalled (or in the | |||
| 225 | - | // case of a spurious wakeup). %FALSE is returned if @end_time has | |||
| 226 | - | // passed. | |||
| 227 | - | // | |||
| 228 | - | // The following code shows how to correctly perform a timed wait on a | |||
| 229 | - | // condition variable (extending the example presented in the | |||
| 230 | - | // documentation for #GCond): | |||
| 231 | - | // | |||
| 232 | - | // |[<!-- language="C" --> | |||
| 233 | - | // gpointer | |||
| 234 | - | // pop_data_timed (void) | |||
| 235 | - | // | |||
| 236 | - | // { | |||
| 237 | - | // gint64 end_time; | |||
| 238 | - | // gpointer data; | |||
| 239 | - | // | |||
| 240 | - | // g_mutex_lock (&data_mutex); | |||
| 241 | - | // | |||
| 242 | - | // end_time = g_get_monotonic_time () + 5 * G_TIME_SPAN_SECOND; | |||
| 243 | - | // while (!current_data) | |||
| 244 | - | // if (!g_cond_wait_until (&data_cond, &data_mutex, end_time)) | |||
| 245 | - | // { | |||
| 246 | - | // // timeout has passed. | |||
| 247 | - | // g_mutex_unlock (&data_mutex); | |||
| 248 | - | // return NULL; | |||
| 249 | - | // } | |||
| 250 | - | // | |||
| 251 | - | // // there is data for us | |||
| 252 | - | // data = current_data; | |||
| 253 | - | // current_data = NULL; | |||
| 254 | - | // | |||
| 255 | - | // g_mutex_unlock (&data_mutex); | |||
| 256 | - | // | |||
| 257 | - | // return data; | |||
| 258 | - | // } | |||
| 259 | - | // | |||
| 260 | - | // ]| | |||
| 261 | - | // | |||
| 262 | - | // Notice that the end time is calculated once, before entering the | |||
| 263 | - | // loop and reused. This is the motivation behind the use of absolute | |||
| 264 | - | // time on this API -- if a relative time of 5 seconds were passed | |||
| 265 | - | // directly to the call and a spurious wakeup occurred, the program would | |||
| 266 | - | // have to start over waiting again (which would lead to a total wait | |||
| 267 | - | // time of more than 5 seconds). | |||
| 268 | - | func (x *Cond) WaitUntil(MutexVar *Mutex, EndTimeVar int64) bool { | |||
| 269 | - | core.LazyRegister(&xCondWaitUntil, "GLIB", "g_cond_wait_until", false) | |||
| 270 | - | ||||
| 271 | - | cret := xCondWaitUntil(x.GoPointer(), MutexVar, EndTimeVar) | |||
| 272 | - | return cret | |||
| 273 | - | } | |||
| 274 | - | ||||
| 275 | - | // A #GOnce struct controls a one-time initialization function. Any | |||
| 276 | - | // one-time initialization function must have its own unique #GOnce | |||
| 277 | - | // struct. | |||
| 278 | - | type Once struct { | |||
| 279 | - | _ structs.HostLayout | |||
| 280 | - | ||||
| 281 | - | Status OnceStatus | |||
| 282 | - | ||||
| 283 | - | Retval uintptr | |||
| 284 | - | } | |||
| 285 | - | ||||
| 286 | - | func (x *Once) GoPointer() uintptr { | |||
| 287 | - | return uintptr(unsafe.Pointer(x)) | |||
| 288 | - | } | |||
| 289 | - | ||||
| 290 | - | func OnceNewFromInternalPtr(ptr uintptr) *Once { | |||
| 291 | - | if ptr == 0 { | |||
| 292 | - | return nil | |||
| 293 | - | } | |||
| 294 | - | rawPtr := *(*unsafe.Pointer)(unsafe.Pointer(&ptr)) | |||
| 295 | - | return (*Once)(rawPtr) | |||
| 296 | - | } | |||
| 297 | - | ||||
| 298 | - | var xOnceImpl func(uintptr, uintptr, uintptr) uintptr | |||
| 299 | - | ||||
| 300 | - | func (x *Once) Impl(FuncVar *ThreadFunc, ArgVar uintptr) uintptr { | |||
| 301 | - | core.LazyRegister(&xOnceImpl, "GLIB", "g_once_impl", false) | |||
| 302 | - | ||||
| 303 | - | cret := xOnceImpl(x.GoPointer(), NewCallback(FuncVar), ArgVar) | |||
| 304 | - | return cret | |||
| 305 | - | } | |||
| 306 | - | ||||
| 307 | - | // The #GPrivate struct is an opaque data structure to represent a | |||
| 308 | - | // thread-local data key. It is approximately equivalent to the | |||
| 309 | - | // pthread_setspecific()/pthread_getspecific() APIs on POSIX and to | |||
| 310 | - | // TlsSetValue()/TlsGetValue() on Windows. | |||
| 311 | - | // | |||
| 312 | - | // If you don't already know why you might want this functionality, | |||
| 313 | - | // then you probably don't need it. | |||
| 314 | - | // | |||
| 315 | - | // #GPrivate is a very limited resource (as far as 128 per program, | |||
| 316 | - | // shared between all libraries). It is also not possible to destroy a | |||
| 317 | - | // #GPrivate after it has been used. As such, it is only ever acceptable | |||
| 318 | - | // to use #GPrivate in static scope, and even then sparingly so. | |||
| 319 | - | // | |||
| 320 | - | // See G_PRIVATE_INIT() for a couple of examples. | |||
| 321 | - | // | |||
| 322 | - | // The #GPrivate structure should be considered opaque. It should only | |||
| 323 | - | // be accessed via the g_private_ functions. | |||
| 324 | - | type Private struct { | |||
| 325 | - | _ structs.HostLayout | |||
| 326 | - | ||||
| 327 | - | P uintptr | |||
| 328 | - | ||||
| 329 | - | Notify DestroyNotify | |||
| 330 | - | ||||
| 331 | - | Future [2]uintptr | |||
| 332 | - | } | |||
| 333 | - | ||||
| 334 | - | func (x *Private) GoPointer() uintptr { | |||
| 335 | - | return uintptr(unsafe.Pointer(x)) | |||
| 336 | - | } | |||
| 337 | - | ||||
| 338 | - | func PrivateNewFromInternalPtr(ptr uintptr) *Private { | |||
| 339 | - | if ptr == 0 { | |||
| 340 | - | return nil | |||
| 341 | - | } | |||
| 342 | - | rawPtr := *(*unsafe.Pointer)(unsafe.Pointer(&ptr)) | |||
| 343 | - | return (*Private)(rawPtr) | |||
| 344 | - | } | |||
| 345 | - | ||||
| 346 | - | var xPrivateGet func(uintptr) uintptr | |||
| 347 | - | ||||
| 348 | - | // Returns the current value of the thread local variable @key. | |||
| 349 | - | // | |||
| 350 | - | // If the value has not yet been set in this thread, %NULL is returned. | |||
| 351 | - | // Values are never copied between threads (when a new thread is | |||
| 352 | - | // created, for example). | |||
| 353 | - | func (x *Private) Get() uintptr { | |||
| 354 | - | core.LazyRegister(&xPrivateGet, "GLIB", "g_private_get", false) | |||
| 355 | - | ||||
| 356 | - | cret := xPrivateGet(x.GoPointer()) | |||
| 357 | - | return cret | |||
| 358 | - | } | |||
| 359 | - | ||||
| 360 | - | var xPrivateReplace func(uintptr, uintptr) | |||
| 361 | - | ||||
| 362 | - | // Sets the thread local variable @key to have the value @value in the | |||
| 363 | - | // current thread. | |||
| 364 | - | // | |||
| 365 | - | // This function differs from g_private_set() in the following way: if | |||
| 366 | - | // the previous value was non-%NULL then the #GDestroyNotify handler for | |||
| 367 | - | // @key is run on it. | |||
| 368 | - | func (x *Private) Replace(ValueVar uintptr) { | |||
| 369 | - | core.LazyRegister(&xPrivateReplace, "GLIB", "g_private_replace", false) | |||
| 370 | - | ||||
| 371 | - | xPrivateReplace(x.GoPointer(), ValueVar) | |||
| 372 | - | } | |||
| 373 | - | ||||
| 374 | - | var xPrivateSet func(uintptr, uintptr) | |||
| 375 | - | ||||
| 376 | - | // Sets the thread local variable @key to have the value @value in the | |||
| 377 | - | // current thread. | |||
| 378 | - | // | |||
| 379 | - | // This function differs from g_private_replace() in the following way: | |||
| 380 | - | // the #GDestroyNotify for @key is not called on the old value. | |||
| 381 | - | func (x *Private) Set(ValueVar uintptr) { | |||
| 382 | - | core.LazyRegister(&xPrivateSet, "GLIB", "g_private_set", false) | |||
| 383 | - | ||||
| 384 | - | xPrivateSet(x.GoPointer(), ValueVar) | |||
| 385 | - | } | |||
| 386 | - | ||||
| 387 | - | // The GRWLock struct is an opaque data structure to represent a | |||
| 388 | - | // reader-writer lock. It is similar to a #GMutex in that it allows | |||
| 389 | - | // multiple threads to coordinate access to a shared resource. | |||
| 390 | - | // | |||
| 391 | - | // The difference to a mutex is that a reader-writer lock discriminates | |||
| 392 | - | // between read-only ('reader') and full ('writer') access. While only | |||
| 393 | - | // one thread at a time is allowed write access (by holding the 'writer' | |||
| 394 | - | // lock via g_rw_lock_writer_lock()), multiple threads can gain | |||
| 395 | - | // simultaneous read-only access (by holding the 'reader' lock via | |||
| 396 | - | // g_rw_lock_reader_lock()). | |||
| 397 | - | // | |||
| 398 | - | // It is unspecified whether readers or writers have priority in acquiring the | |||
| 399 | - | // lock when a reader already holds the lock and a writer is queued to acquire | |||
| 400 | - | // it. | |||
| 401 | - | // | |||
| 402 | - | // Here is an example for an array with access functions: | |||
| 403 | - | // |[<!-- language="C" --> | |||
| 404 | - | // | |||
| 405 | - | // GRWLock lock; | |||
| 406 | - | // GPtrArray *array; | |||
| 407 | - | // | |||
| 408 | - | // gpointer | |||
| 409 | - | // my_array_get (guint index) | |||
| 410 | - | // { | |||
| 411 | - | // gpointer retval = NULL; | |||
| 412 | - | // | |||
| 413 | - | // if (!array) | |||
| 414 | - | // return NULL; | |||
| 415 | - | // | |||
| 416 | - | // g_rw_lock_reader_lock (&lock); | |||
| 417 | - | // if (index < array->len) | |||
| 418 | - | // retval = g_ptr_array_index (array, index); | |||
| 419 | - | // g_rw_lock_reader_unlock (&lock); | |||
| 420 | - | // | |||
| 421 | - | // return retval; | |||
| 422 | - | // } | |||
| 423 | - | // | |||
| 424 | - | // void | |||
| 425 | - | // my_array_set (guint index, gpointer data) | |||
| 426 | - | // { | |||
| 427 | - | // g_rw_lock_writer_lock (&lock); | |||
| 428 | - | // | |||
| 429 | - | // if (!array) | |||
| 430 | - | // array = g_ptr_array_new (); | |||
| 431 | - | // | |||
| 432 | - | // if (index >= array->len) | |||
| 433 | - | // g_ptr_array_set_size (array, index+1); | |||
| 434 | - | // g_ptr_array_index (array, index) = data; | |||
| 435 | - | // | |||
| 436 | - | // g_rw_lock_writer_unlock (&lock); | |||
| 437 | - | // } | |||
| 438 | - | // ]| | |||
| 439 | - | // | |||
| 440 | - | // This example shows an array which can be accessed by many readers | |||
| 441 | - | // (the my_array_get() function) simultaneously, whereas the writers | |||
| 442 | - | // (the my_array_set() function) will only be allowed one at a time | |||
| 443 | - | // and only if no readers currently access the array. This is because | |||
| 444 | - | // of the potentially dangerous resizing of the array. Using these | |||
| 445 | - | // functions is fully multi-thread safe now. | |||
| 446 | - | // | |||
| 447 | - | // If a #GRWLock is allocated in static storage then it can be used | |||
| 448 | - | // without initialisation. Otherwise, you should call | |||
| 449 | - | // g_rw_lock_init() on it and g_rw_lock_clear() when done. | |||
| 450 | - | // | |||
| 451 | - | // A GRWLock should only be accessed with the g_rw_lock_ functions. | |||
| 452 | - | type RWLock struct { | |||
| 453 | - | _ structs.HostLayout | |||
| 454 | - | ||||
| 455 | - | P uintptr | |||
| 456 | - | ||||
| 457 | - | I [2]uint | |||
| 458 | - | } | |||
| 459 | - | ||||
| 460 | - | func (x *RWLock) GoPointer() uintptr { | |||
| 461 | - | return uintptr(unsafe.Pointer(x)) | |||
| 462 | - | } | |||
| 463 | - | ||||
| 464 | - | func RWLockNewFromInternalPtr(ptr uintptr) *RWLock { | |||
| 465 | - | if ptr == 0 { | |||
| 466 | - | return nil | |||
| 467 | - | } | |||
| 468 | - | rawPtr := *(*unsafe.Pointer)(unsafe.Pointer(&ptr)) | |||
| 469 | - | return (*RWLock)(rawPtr) | |||
| 470 | - | } | |||
| 471 | - | ||||
| 472 | - | var xRWLockClear func(uintptr) | |||
| 473 | - | ||||
| 474 | - | // Frees the resources allocated to a lock with g_rw_lock_init(). | |||
| 475 | - | // | |||
| 476 | - | // This function should not be used with a #GRWLock that has been | |||
| 477 | - | // statically allocated. | |||
| 478 | - | // | |||
| 479 | - | // Calling g_rw_lock_clear() when any thread holds the lock | |||
| 480 | - | // leads to undefined behaviour. | |||
| 481 | - | func (x *RWLock) Clear() { | |||
| 482 | - | core.LazyRegister(&xRWLockClear, "GLIB", "g_rw_lock_clear", false) | |||
| 483 | - | ||||
| 484 | - | xRWLockClear(x.GoPointer()) | |||
| 485 | - | } | |||
| 486 | - | ||||
| 487 | - | var xRWLockInit func(uintptr) | |||
| 488 | - | ||||
| 489 | - | // Initializes a #GRWLock so that it can be used. | |||
| 490 | - | // | |||
| 491 | - | // This function is useful to initialize a lock that has been | |||
| 492 | - | // allocated on the stack, or as part of a larger structure. It is not | |||
| 493 | - | // necessary to initialise a reader-writer lock that has been statically | |||
| 494 | - | // allocated. | |||
| 495 | - | // | |||
| 496 | - | // |[<!-- language="C" --> | |||
| 497 | - | // | |||
| 498 | - | // typedef struct { | |||
| 499 | - | // GRWLock l; | |||
| 500 | - | // ... | |||
| 501 | - | // } Blob; | |||
| 502 | - | // | |||
| 503 | - | // Blob *b; | |||
| 504 | - | // | |||
| 505 | - | // b = g_new (Blob, 1); | |||
| 506 | - | // g_rw_lock_init (&b->l); | |||
| 507 | - | // ]| | |||
| 508 | - | // | |||
| 509 | - | // To undo the effect of g_rw_lock_init() when a lock is no longer | |||
| 510 | - | // needed, use g_rw_lock_clear(). | |||
| 511 | - | // | |||
| 512 | - | // Calling g_rw_lock_init() on an already initialized #GRWLock leads | |||
| 513 | - | // to undefined behaviour. | |||
| 514 | - | func (x *RWLock) Init() { | |||
| 515 | - | core.LazyRegister(&xRWLockInit, "GLIB", "g_rw_lock_init", false) | |||
| 516 | - | ||||
| 517 | - | xRWLockInit(x.GoPointer()) | |||
| 518 | - | } | |||
| 519 | - | ||||
| 520 | - | var xRWLockReaderLock func(uintptr) | |||
| 521 | - | ||||
| 522 | - | // Obtain a read lock on @rw_lock. If another thread currently holds | |||
| 523 | - | // the write lock on @rw_lock, the current thread will block until the | |||
| 524 | - | // write lock was (held and) released. If another thread does not hold | |||
| 525 | - | // the write lock, but is waiting for it, it is implementation defined | |||
| 526 | - | // whether the reader or writer will block. Read locks can be taken | |||
| 527 | - | // recursively. | |||
| 528 | - | // | |||
| 529 | - | // Calling g_rw_lock_reader_lock() while the current thread already | |||
| 530 | - | // owns a write lock leads to undefined behaviour. Read locks however | |||
| 531 | - | // can be taken recursively, in which case you need to make sure to | |||
| 532 | - | // call g_rw_lock_reader_unlock() the same amount of times. | |||
| 533 | - | // | |||
| 534 | - | // It is implementation-defined how many read locks are allowed to be | |||
| 535 | - | // held on the same lock simultaneously. If the limit is hit, | |||
| 536 | - | // or if a deadlock is detected, a critical warning will be emitted. | |||
| 537 | - | func (x *RWLock) ReaderLock() { | |||
| 538 | - | core.LazyRegister(&xRWLockReaderLock, "GLIB", "g_rw_lock_reader_lock", false) | |||
| 539 | - | ||||
| 540 | - | xRWLockReaderLock(x.GoPointer()) | |||
| 541 | - | } | |||
| 542 | - | ||||
| 543 | - | var xRWLockReaderTrylock func(uintptr) bool | |||
| 544 | - | ||||
| 545 | - | // Tries to obtain a read lock on @rw_lock and returns %TRUE if | |||
| 546 | - | // the read lock was successfully obtained. Otherwise it | |||
| 547 | - | // returns %FALSE. | |||
| 548 | - | func (x *RWLock) ReaderTrylock() bool { | |||
| 549 | - | core.LazyRegister(&xRWLockReaderTrylock, "GLIB", "g_rw_lock_reader_trylock", false) | |||
| 550 | - | ||||
| 551 | - | cret := xRWLockReaderTrylock(x.GoPointer()) | |||
| 552 | - | return cret | |||
| 553 | - | } | |||
| 554 | - | ||||
| 555 | - | var xRWLockReaderUnlock func(uintptr) | |||
| 556 | - | ||||
| 557 | - | // Release a read lock on @rw_lock. | |||
| 558 | - | // | |||
| 559 | - | // Calling g_rw_lock_reader_unlock() on a lock that is not held | |||
| 560 | - | // by the current thread leads to undefined behaviour. | |||
| 561 | - | func (x *RWLock) ReaderUnlock() { | |||
| 562 | - | core.LazyRegister(&xRWLockReaderUnlock, "GLIB", "g_rw_lock_reader_unlock", false) | |||
| 563 | - | ||||
| 564 | - | xRWLockReaderUnlock(x.GoPointer()) | |||
| 565 | - | } | |||
| 566 | - | ||||
| 567 | - | var xRWLockWriterLock func(uintptr) | |||
| 568 | - | ||||
| 569 | - | // Obtain a write lock on @rw_lock. If another thread currently holds | |||
| 570 | - | // a read or write lock on @rw_lock, the current thread will block | |||
| 571 | - | // until all other threads have dropped their locks on @rw_lock. | |||
| 572 | - | // | |||
| 573 | - | // Calling g_rw_lock_writer_lock() while the current thread already | |||
| 574 | - | // owns a read or write lock on @rw_lock leads to undefined behaviour. | |||
| 575 | - | func (x *RWLock) WriterLock() { | |||
| 576 | - | core.LazyRegister(&xRWLockWriterLock, "GLIB", "g_rw_lock_writer_lock", false) | |||
| 577 | - | ||||
| 578 | - | xRWLockWriterLock(x.GoPointer()) | |||
| 579 | - | } | |||
| 580 | - | ||||
| 581 | - | var xRWLockWriterTrylock func(uintptr) bool | |||
| 582 | - | ||||
| 583 | - | // Tries to obtain a write lock on @rw_lock. If another thread | |||
| 584 | - | // currently holds a read or write lock on @rw_lock, it immediately | |||
| 585 | - | // returns %FALSE. | |||
| 586 | - | // Otherwise it locks @rw_lock and returns %TRUE. | |||
| 587 | - | func (x *RWLock) WriterTrylock() bool { | |||
| 588 | - | core.LazyRegister(&xRWLockWriterTrylock, "GLIB", "g_rw_lock_writer_trylock", false) | |||
| 589 | - | ||||
| 590 | - | cret := xRWLockWriterTrylock(x.GoPointer()) | |||
| 591 | - | return cret | |||
| 592 | - | } | |||
| 593 | - | ||||
| 594 | - | var xRWLockWriterUnlock func(uintptr) | |||
| 595 | - | ||||
| 596 | - | // Release a write lock on @rw_lock. | |||
| 597 | - | // | |||
| 598 | - | // Calling g_rw_lock_writer_unlock() on a lock that is not held | |||
| 599 | - | // by the current thread leads to undefined behaviour. | |||
| 600 | - | func (x *RWLock) WriterUnlock() { | |||
| 601 | - | core.LazyRegister(&xRWLockWriterUnlock, "GLIB", "g_rw_lock_writer_unlock", false) | |||
| 602 | - | ||||
| 603 | - | xRWLockWriterUnlock(x.GoPointer()) | |||
| 604 | - | } | |||
| 605 | - | ||||
| 606 | - | // The GRecMutex struct is an opaque data structure to represent a | |||
| 607 | - | // recursive mutex. It is similar to a #GMutex with the difference | |||
| 608 | - | // that it is possible to lock a GRecMutex multiple times in the same | |||
| 609 | - | // thread without deadlock. When doing so, care has to be taken to | |||
| 610 | - | // unlock the recursive mutex as often as it has been locked. | |||
| 611 | - | // | |||
| 612 | - | // If a #GRecMutex is allocated in static storage then it can be used | |||
| 613 | - | // without initialisation. Otherwise, you should call | |||
| 614 | - | // g_rec_mutex_init() on it and g_rec_mutex_clear() when done. | |||
| 615 | - | // | |||
| 616 | - | // A GRecMutex should only be accessed with the | |||
| 617 | - | // g_rec_mutex_ functions. | |||
| 618 | - | type RecMutex struct { | |||
| 619 | - | _ structs.HostLayout | |||
| 620 | - | ||||
| 621 | - | P uintptr | |||
| 622 | - | ||||
| 623 | - | I [2]uint | |||
| 624 | - | } | |||
| 625 | - | ||||
| 626 | - | func (x *RecMutex) GoPointer() uintptr { | |||
| 627 | - | return uintptr(unsafe.Pointer(x)) | |||
| 628 | - | } | |||
| 629 | - | ||||
| 630 | - | func RecMutexNewFromInternalPtr(ptr uintptr) *RecMutex { | |||
| 631 | - | if ptr == 0 { | |||
| 632 | - | return nil | |||
| 633 | - | } | |||
| 634 | - | rawPtr := *(*unsafe.Pointer)(unsafe.Pointer(&ptr)) | |||
| 635 | - | return (*RecMutex)(rawPtr) | |||
| 636 | - | } | |||
| 637 | - | ||||
| 638 | - | var xRecMutexClear func(uintptr) | |||
| 639 | - | ||||
| 640 | - | // Frees the resources allocated to a recursive mutex with | |||
| 641 | - | // g_rec_mutex_init(). | |||
| 642 | - | // | |||
| 643 | - | // This function should not be used with a #GRecMutex that has been | |||
| 644 | - | // statically allocated. | |||
| 645 | - | // | |||
| 646 | - | // Calling g_rec_mutex_clear() on a locked recursive mutex leads | |||
| 647 | - | // to undefined behaviour. | |||
| 648 | - | func (x *RecMutex) Clear() { | |||
| 649 | - | core.LazyRegister(&xRecMutexClear, "GLIB", "g_rec_mutex_clear", false) | |||
| 650 | - | ||||
| 651 | - | xRecMutexClear(x.GoPointer()) | |||
| 652 | - | } | |||
| 653 | - | ||||
| 654 | - | var xRecMutexInit func(uintptr) | |||
| 655 | - | ||||
| 656 | - | // Initializes a #GRecMutex so that it can be used. | |||
| 657 | - | // | |||
| 658 | - | // This function is useful to initialize a recursive mutex | |||
| 659 | - | // that has been allocated on the stack, or as part of a larger | |||
| 660 | - | // structure. | |||
| 661 | - | // | |||
| 662 | - | // It is not necessary to initialise a recursive mutex that has been | |||
| 663 | - | // statically allocated. | |||
| 664 | - | // | |||
| 665 | - | // |[<!-- language="C" --> | |||
| 666 | - | // | |||
| 667 | - | // typedef struct { | |||
| 668 | - | // GRecMutex m; | |||
| 669 | - | // ... | |||
| 670 | - | // } Blob; | |||
| 671 | - | // | |||
| 672 | - | // Blob *b; | |||
| 673 | - | // | |||
| 674 | - | // b = g_new (Blob, 1); | |||
| 675 | - | // g_rec_mutex_init (&b->m); | |||
| 676 | - | // ]| | |||
| 677 | - | // | |||
| 678 | - | // Calling g_rec_mutex_init() on an already initialized #GRecMutex | |||
| 679 | - | // leads to undefined behaviour. | |||
| 680 | - | // | |||
| 681 | - | // To undo the effect of g_rec_mutex_init() when a recursive mutex | |||
| 682 | - | // is no longer needed, use g_rec_mutex_clear(). | |||
| 683 | - | func (x *RecMutex) Init() { | |||
| 684 | - | core.LazyRegister(&xRecMutexInit, "GLIB", "g_rec_mutex_init", false) | |||
| 685 | - | ||||
| 686 | - | xRecMutexInit(x.GoPointer()) | |||
| 687 | - | } | |||
| 688 | - | ||||
| 689 | - | var xRecMutexLock func(uintptr) | |||
| 690 | - | ||||
| 691 | - | // Locks @rec_mutex. If @rec_mutex is already locked by another | |||
| 692 | - | // thread, the current thread will block until @rec_mutex is | |||
| 693 | - | // unlocked by the other thread. If @rec_mutex is already locked | |||
| 694 | - | // by the current thread, the 'lock count' of @rec_mutex is increased. | |||
| 695 | - | // The mutex will only become available again when it is unlocked | |||
| 696 | - | // as many times as it has been locked. | |||
| 697 | - | func (x *RecMutex) Lock() { | |||
| 698 | - | core.LazyRegister(&xRecMutexLock, "GLIB", "g_rec_mutex_lock", false) | |||
| 699 | - | ||||
| 700 | - | xRecMutexLock(x.GoPointer()) | |||
| 701 | - | } | |||
| 702 | - | ||||
| 703 | - | var xRecMutexTrylock func(uintptr) bool | |||
| 704 | - | ||||
| 705 | - | // Tries to lock @rec_mutex. If @rec_mutex is already locked | |||
| 706 | - | // by another thread, it immediately returns %FALSE. Otherwise | |||
| 707 | - | // it locks @rec_mutex and returns %TRUE. | |||
| 708 | - | func (x *RecMutex) Trylock() bool { | |||
| 709 | - | core.LazyRegister(&xRecMutexTrylock, "GLIB", "g_rec_mutex_trylock", false) | |||
| 710 | - | ||||
| 711 | - | cret := xRecMutexTrylock(x.GoPointer()) | |||
| 712 | - | return cret | |||
| 713 | - | } | |||
| 714 | - | ||||
| 715 | - | var xRecMutexUnlock func(uintptr) | |||
| 716 | - | ||||
| 717 | - | // Unlocks @rec_mutex. If another thread is blocked in a | |||
| 718 | - | // g_rec_mutex_lock() call for @rec_mutex, it will become unblocked | |||
| 719 | - | // and can lock @rec_mutex itself. | |||
| 720 | - | // | |||
| 721 | - | // Calling g_rec_mutex_unlock() on a recursive mutex that is not | |||
| 722 | - | // locked by the current thread leads to undefined behaviour. | |||
| 723 | - | func (x *RecMutex) Unlock() { | |||
| 724 | - | core.LazyRegister(&xRecMutexUnlock, "GLIB", "g_rec_mutex_unlock", false) | |||
| 725 | - | ||||
| 726 | - | xRecMutexUnlock(x.GoPointer()) | |||
| 727 | - | } | |||
| 728 | - | ||||
| 729 | - | // A #GStaticMutex works like a #GMutex. | |||
| 730 | - | // | |||
| 731 | - | // Prior to GLib 2.32, GStaticMutex had the significant advantage | |||
| 732 | - | // that it doesn't need to be created at run-time, but can be defined | |||
| 733 | - | // at compile-time. Since 2.32, #GMutex can be statically allocated | |||
| 734 | - | // as well, and GStaticMutex has been deprecated. | |||
| 735 | - | // | |||
| 736 | - | // Here is a version of our give_me_next_number() example using | |||
| 737 | - | // a GStaticMutex: | |||
| 738 | - | // |[ | |||
| 739 | - | // | |||
| 740 | - | // int | |||
| 741 | - | // give_me_next_number (void) | |||
| 742 | - | // { | |||
| 743 | - | // static int current_number = 0; | |||
| 744 | - | // int ret_val; | |||
| 745 | - | // static GStaticMutex mutex = G_STATIC_MUTEX_INIT; | |||
| 746 | - | // | |||
| 747 | - | // g_static_mutex_lock (&mutex); | |||
| 748 | - | // ret_val = current_number = calc_next_number (current_number); | |||
| 749 | - | // g_static_mutex_unlock (&mutex); | |||
| 750 | - | // | |||
| 751 | - | // return ret_val; | |||
| 752 | - | // } | |||
| 753 | - | // | |||
| 754 | - | // ]| | |||
| 755 | - | // | |||
| 756 | - | // Sometimes you would like to dynamically create a mutex. If you don't | |||
| 757 | - | // want to require prior calling to g_thread_init(), because your code | |||
| 758 | - | // should also be usable in non-threaded programs, you are not able to | |||
| 759 | - | // use g_mutex_new() and thus #GMutex, as that requires a prior call to | |||
| 760 | - | // g_thread_init(). In these cases you can also use a #GStaticMutex. | |||
| 761 | - | // It must be initialized with g_static_mutex_init() before using it | |||
| 762 | - | // and freed with with g_static_mutex_free() when not needed anymore to | |||
| 763 | - | // free up any allocated resources. | |||
| 764 | - | // | |||
| 765 | - | // Even though #GStaticMutex is not opaque, it should only be used with | |||
| 766 | - | // the following functions, as it is defined differently on different | |||
| 767 | - | // platforms. | |||
| 768 | - | // | |||
| 769 | - | // All of the g_static_mutex_* functions apart from | |||
| 770 | - | // g_static_mutex_get_mutex() can also be used even if g_thread_init() | |||
| 771 | - | // has not yet been called. Then they do nothing, apart from | |||
| 772 | - | // g_static_mutex_trylock() which does nothing but returning %TRUE. | |||
| 773 | - | // | |||
| 774 | - | // All of the g_static_mutex_* functions are actually macros. Apart from | |||
| 775 | - | // taking their addresses, you can however use them as if they were | |||
| 776 | - | // functions. | |||
| 777 | - | type StaticMutex struct { | |||
| 778 | - | _ structs.HostLayout | |||
| 779 | - | ||||
| 780 | - | Mutex *Mutex | |||
| 781 | - | } | |||
| 782 | - | ||||
| 783 | - | func (x *StaticMutex) GoPointer() uintptr { | |||
| 784 | - | return uintptr(unsafe.Pointer(x)) | |||
| 785 | - | } | |||
| 786 | - | ||||
| 787 | - | func StaticMutexNewFromInternalPtr(ptr uintptr) *StaticMutex { | |||
| 788 | - | if ptr == 0 { | |||
| 789 | - | return nil | |||
| 790 | - | } | |||
| 791 | - | rawPtr := *(*unsafe.Pointer)(unsafe.Pointer(&ptr)) | |||
| 792 | - | return (*StaticMutex)(rawPtr) | |||
| 793 | - | } | |||
| 794 | - | ||||
| 795 | - | var xStaticMutexFree func(uintptr) | |||
| 796 | - | ||||
| 797 | - | // Releases all resources allocated to @mutex. | |||
| 798 | - | // | |||
| 799 | - | // You don't have to call this functions for a #GStaticMutex with an | |||
| 800 | - | // unbounded lifetime, i.e. objects declared 'static', but if you have | |||
| 801 | - | // a #GStaticMutex as a member of a structure and the structure is | |||
| 802 | - | // freed, you should also free the #GStaticMutex. | |||
| 803 | - | // | |||
| 804 | - | // Calling g_static_mutex_free() on a locked mutex may result in | |||
| 805 | - | // undefined behaviour. | |||
| 806 | - | func (x *StaticMutex) Free() { | |||
| 807 | - | core.LazyRegister(&xStaticMutexFree, "GLIB", "g_static_mutex_free", false) | |||
| 808 | - | ||||
| 809 | - | xStaticMutexFree(x.GoPointer()) | |||
| 810 | - | } | |||
| 811 | - | ||||
| 812 | - | var xStaticMutexGetMutexImpl func(uintptr) *Mutex | |||
| 813 | - | ||||
| 814 | - | func (x *StaticMutex) GetMutexImpl() *Mutex { | |||
| 815 | - | core.LazyRegister(&xStaticMutexGetMutexImpl, "GLIB", "g_static_mutex_get_mutex_impl", false) | |||
| 816 | - | ||||
| 817 | - | cret := xStaticMutexGetMutexImpl(x.GoPointer()) | |||
| 818 | - | return cret | |||
| 819 | - | } | |||
| 820 | - | ||||
| 821 | - | var xStaticMutexInit func(uintptr) | |||
| 822 | - | ||||
| 823 | - | // Initializes @mutex. | |||
| 824 | - | // Alternatively you can initialize it with %G_STATIC_MUTEX_INIT. | |||
| 825 | - | func (x *StaticMutex) Init() { | |||
| 826 | - | core.LazyRegister(&xStaticMutexInit, "GLIB", "g_static_mutex_init", false) | |||
| 827 | - | ||||
| 828 | - | xStaticMutexInit(x.GoPointer()) | |||
| 829 | - | } | |||
| 830 | - | ||||
| 831 | - | // A #GStaticPrivate works almost like a #GPrivate, but it has one | |||
| 832 | - | // significant advantage. It doesn't need to be created at run-time | |||
| 833 | - | // like a #GPrivate, but can be defined at compile-time. This is | |||
| 834 | - | // similar to the difference between #GMutex and #GStaticMutex. | |||
| 835 | - | // | |||
| 836 | - | // Now look at our give_me_next_number() example with #GStaticPrivate: | |||
| 837 | - | // |[ | |||
| 838 | - | // | |||
| 839 | - | // int | |||
| 840 | - | // give_me_next_number () | |||
| 841 | - | // { | |||
| 842 | - | // static GStaticPrivate current_number_key = G_STATIC_PRIVATE_INIT; | |||
| 843 | - | // int *current_number = g_static_private_get (&current_number_key); | |||
| 844 | - | // | |||
| 845 | - | // if (!current_number) | |||
| 846 | - | // { | |||
| 847 | - | // current_number = g_new (int, 1); | |||
| 848 | - | // *current_number = 0; | |||
| 849 | - | // g_static_private_set (&current_number_key, current_number, g_free); | |||
| 850 | - | // } | |||
| 851 | - | // | |||
| 852 | - | // *current_number = calc_next_number (*current_number); | |||
| 853 | - | // | |||
| 854 | - | // return *current_number; | |||
| 855 | - | // } | |||
| 856 | - | // | |||
| 857 | - | // ]| | |||
| 858 | - | type StaticPrivate struct { | |||
| 859 | - | _ structs.HostLayout | |||
| 860 | - | ||||
| 861 | - | Index uint | |||
| 862 | - | } | |||
| 863 | - | ||||
| 864 | - | func (x *StaticPrivate) GoPointer() uintptr { | |||
| 865 | - | return uintptr(unsafe.Pointer(x)) | |||
| 866 | - | } | |||
| 867 | - | ||||
| 868 | - | func StaticPrivateNewFromInternalPtr(ptr uintptr) *StaticPrivate { | |||
| 869 | - | if ptr == 0 { | |||
| 870 | - | return nil | |||
| 871 | - | } | |||
| 872 | - | rawPtr := *(*unsafe.Pointer)(unsafe.Pointer(&ptr)) | |||
| 873 | - | return (*StaticPrivate)(rawPtr) | |||
| 874 | - | } | |||
| 875 | - | ||||
| 876 | - | var xStaticPrivateFree func(uintptr) | |||
| 877 | - | ||||
| 878 | - | // Releases all resources allocated to @private_key. | |||
| 879 | - | // | |||
| 880 | - | // You don't have to call this functions for a #GStaticPrivate with an | |||
| 881 | - | // unbounded lifetime, i.e. objects declared 'static', but if you have | |||
| 882 | - | // a #GStaticPrivate as a member of a structure and the structure is | |||
| 883 | - | // freed, you should also free the #GStaticPrivate. | |||
| 884 | - | func (x *StaticPrivate) Free() { | |||
| 885 | - | core.LazyRegister(&xStaticPrivateFree, "GLIB", "g_static_private_free", false) | |||
| 886 | - | ||||
| 887 | - | xStaticPrivateFree(x.GoPointer()) | |||
| 888 | - | } | |||
| 889 | - | ||||
| 890 | - | var xStaticPrivateGet func(uintptr) uintptr | |||
| 891 | - | ||||
| 892 | - | // Works like g_private_get() only for a #GStaticPrivate. | |||
| 893 | - | // | |||
| 894 | - | // This function works even if g_thread_init() has not yet been called. | |||
| 895 | - | func (x *StaticPrivate) Get() uintptr { | |||
| 896 | - | core.LazyRegister(&xStaticPrivateGet, "GLIB", "g_static_private_get", false) | |||
| 897 | - | ||||
| 898 | - | cret := xStaticPrivateGet(x.GoPointer()) | |||
| 899 | - | return cret | |||
| 900 | - | } | |||
| 901 | - | ||||
| 902 | - | var xStaticPrivateInit func(uintptr) | |||
| 903 | - | ||||
| 904 | - | // Initializes @private_key. Alternatively you can initialize it with | |||
| 905 | - | // %G_STATIC_PRIVATE_INIT. | |||
| 906 | - | func (x *StaticPrivate) Init() { | |||
| 907 | - | core.LazyRegister(&xStaticPrivateInit, "GLIB", "g_static_private_init", false) | |||
| 908 | - | ||||
| 909 | - | xStaticPrivateInit(x.GoPointer()) | |||
| 910 | - | } | |||
| 911 | - | ||||
| 912 | - | var xStaticPrivateSet func(uintptr, uintptr, uintptr) | |||
| 913 | - | ||||
| 914 | - | // Sets the pointer keyed to @private_key for the current thread and | |||
| 915 | - | // the function @notify to be called with that pointer (%NULL or | |||
| 916 | - | // non-%NULL), whenever the pointer is set again or whenever the | |||
| 917 | - | // current thread ends. | |||
| 918 | - | // | |||
| 919 | - | // This function works even if g_thread_init() has not yet been called. | |||
| 920 | - | // If g_thread_init() is called later, the @data keyed to @private_key | |||
| 921 | - | // will be inherited only by the main thread, i.e. the one that called | |||
| 922 | - | // g_thread_init(). | |||
| 923 | - | // | |||
| 924 | - | // @notify is used quite differently from @destructor in g_private_new(). | |||
| 925 | - | func (x *StaticPrivate) Set(DataVar uintptr, NotifyVar *DestroyNotify) { | |||
| 926 | - | core.LazyRegister(&xStaticPrivateSet, "GLIB", "g_static_private_set", false) | |||
| 927 | - | ||||
| 928 | - | xStaticPrivateSet(x.GoPointer(), DataVar, NewCallbackNullable(NotifyVar)) | |||
| 929 | - | } | |||
| 930 | - | ||||
| 931 | - | // The [struct@StaticRWLock] struct represents a read-write lock. A read-write | |||
| 932 | - | // lock can be used for protecting data that some portions of code only | |||
| 933 | - | // read from, while others also write. In such situations it is | |||
| 934 | - | // desirable that several readers can read at once, whereas of course | |||
| 935 | - | // only one writer may write at a time. | |||
| 936 | - | // | |||
| 937 | - | // Take a look at the following example: | |||
| 938 | - | // |[ | |||
| 939 | - | // | |||
| 940 | - | // GStaticRWLock rwlock = G_STATIC_RW_LOCK_INIT; | |||
| 941 | - | // GPtrArray *array; | |||
| 942 | - | // | |||
| 943 | - | // gpointer | |||
| 944 | - | // my_array_get (guint index) | |||
| 945 | - | // { | |||
| 946 | - | // gpointer retval = NULL; | |||
| 947 | - | // | |||
| 948 | - | // if (!array) | |||
| 949 | - | // return NULL; | |||
| 950 | - | // | |||
| 951 | - | // g_static_rw_lock_reader_lock (&rwlock); | |||
| 952 | - | // if (index < array->len) | |||
| 953 | - | // retval = g_ptr_array_index (array, index); | |||
| 954 | - | // g_static_rw_lock_reader_unlock (&rwlock); | |||
| 955 | - | // | |||
| 956 | - | // return retval; | |||
| 957 | - | // } | |||
| 958 | - | // | |||
| 959 | - | // void | |||
| 960 | - | // my_array_set (guint index, gpointer data) | |||
| 961 | - | // { | |||
| 962 | - | // g_static_rw_lock_writer_lock (&rwlock); | |||
| 963 | - | // | |||
| 964 | - | // if (!array) | |||
| 965 | - | // array = g_ptr_array_new (); | |||
| 966 | - | // | |||
| 967 | - | // if (index >= array->len) | |||
| 968 | - | // g_ptr_array_set_size (array, index + 1); | |||
| 969 | - | // g_ptr_array_index (array, index) = data; | |||
| 970 | - | // | |||
| 971 | - | // g_static_rw_lock_writer_unlock (&rwlock); | |||
| 972 | - | // } | |||
| 973 | - | // | |||
| 974 | - | // ]| | |||
| 975 | - | // | |||
| 976 | - | // This example shows an array which can be accessed by many readers | |||
| 977 | - | // (the `my_array_get()` function) simultaneously, whereas the writers | |||
| 978 | - | // (the `my_array_set()` function) will only be allowed once at a time | |||
| 979 | - | // and only if no readers currently access the array. This is because | |||
| 980 | - | // of the potentially dangerous resizing of the array. Using these | |||
| 981 | - | // functions is fully multi-thread safe now. | |||
| 982 | - | // | |||
| 983 | - | // Most of the time, writers should have precedence over readers. That | |||
| 984 | - | // means, for this implementation, that as soon as a writer wants to | |||
| 985 | - | // lock the data, no other reader is allowed to lock the data, whereas, | |||
| 986 | - | // of course, the readers that already have locked the data are allowed | |||
| 987 | - | // to finish their operation. As soon as the last reader unlocks the | |||
| 988 | - | // data, the writer will lock it. | |||
| 989 | - | // | |||
| 990 | - | // Even though [struct@StaticRWLock] is not opaque, it should only be used | |||
| 991 | - | // with the following functions. | |||
| 992 | - | // | |||
| 993 | - | // All of the `g_static_rw_lock_*` functions can be used even if | |||
| 994 | - | // [func@Thread.init] has not been called. Then they do nothing, apart | |||
| 995 | - | // from `g_static_rw_lock_*_trylock`, which does nothing but returning true. | |||
| 996 | - | // | |||
| 997 | - | // A read-write lock has a higher overhead than a mutex. For example, both | |||
| 998 | - | // [method@StaticRWLock.reader_lock] and [method@StaticRWLock.reader_unlock] have | |||
| 999 | - | // to lock and unlock a [struct@StaticMutex], so it takes at least twice the time | |||
| 1000 | - | // to lock and unlock a [struct@StaticRWLock] that it does to lock and unlock a | |||
| 1001 | - | // [struct@StaticMutex]. So only data structures that are accessed by multiple | |||
| 1002 | - | // readers, and which keep the lock for a considerable time justify a | |||
| 1003 | - | // [struct@StaticRWLock]. The above example most probably would fare better with a | |||
| 1004 | - | // [struct@StaticMutex]. | |||
| 1005 | - | type StaticRWLock struct { | |||
| 1006 | - | _ structs.HostLayout | |||
| 1007 | - | ||||
| 1008 | - | Mutex uintptr | |||
| 1009 | - | ||||
| 1010 | - | ReadCond *Cond | |||
| 1011 | - | ||||
| 1012 | - | WriteCond *Cond | |||
| 1013 | - | ||||
| 1014 | - | ReadCounter uint | |||
| 1015 | - | ||||
| 1016 | - | HaveWriter bool | |||
| 1017 | - | ||||
| 1018 | - | WantToRead uint | |||
| 1019 | - | ||||
| 1020 | - | WantToWrite uint | |||
| 1021 | - | } | |||
| 1022 | - | ||||
| 1023 | - | func (x *StaticRWLock) GoPointer() uintptr { | |||
| 1024 | - | return uintptr(unsafe.Pointer(x)) | |||
| 1025 | - | } | |||
| 1026 | - | ||||
| 1027 | - | func StaticRWLockNewFromInternalPtr(ptr uintptr) *StaticRWLock { | |||
| 1028 | - | if ptr == 0 { | |||
| 1029 | - | return nil | |||
| 1030 | - | } | |||
| 1031 | - | rawPtr := *(*unsafe.Pointer)(unsafe.Pointer(&ptr)) | |||
| 1032 | - | return (*StaticRWLock)(rawPtr) | |||
| 1033 | - | } | |||
| 1034 | - | ||||
| 1035 | - | var xStaticRWLockFree func(uintptr) | |||
| 1036 | - | ||||
| 1037 | - | // Releases all resources allocated to @lock. | |||
| 1038 | - | // | |||
| 1039 | - | // You don't have to call this functions for a #GStaticRWLock with an | |||
| 1040 | - | // unbounded lifetime, i.e. objects declared 'static', but if you have | |||
| 1041 | - | // a #GStaticRWLock as a member of a structure, and the structure is | |||
| 1042 | - | // freed, you should also free the #GStaticRWLock. | |||
| 1043 | - | func (x *StaticRWLock) Free() { | |||
| 1044 | - | core.LazyRegister(&xStaticRWLockFree, "GLIB", "g_static_rw_lock_free", false) | |||
| 1045 | - | ||||
| 1046 | - | xStaticRWLockFree(x.GoPointer()) | |||
| 1047 | - | } | |||
| 1048 | - | ||||
| 1049 | - | var xStaticRWLockInit func(uintptr) | |||
| 1050 | - | ||||
| 1051 | - | // A #GStaticRWLock must be initialized with this function before it | |||
| 1052 | - | // can be used. Alternatively you can initialize it with | |||
| 1053 | - | // %G_STATIC_RW_LOCK_INIT. | |||
| 1054 | - | func (x *StaticRWLock) Init() { | |||
| 1055 | - | core.LazyRegister(&xStaticRWLockInit, "GLIB", "g_static_rw_lock_init", false) | |||
| 1056 | - | ||||
| 1057 | - | xStaticRWLockInit(x.GoPointer()) | |||
| 1058 | - | } | |||
| 1059 | - | ||||
| 1060 | - | var xStaticRWLockReaderLock func(uintptr) | |||
| 1061 | - | ||||
| 1062 | - | // Locks @lock for reading. There may be unlimited concurrent locks for | |||
| 1063 | - | // reading of a #GStaticRWLock at the same time. If @lock is already | |||
| 1064 | - | // locked for writing by another thread or if another thread is already | |||
| 1065 | - | // waiting to lock @lock for writing, this function will block until | |||
| 1066 | - | // @lock is unlocked by the other writing thread and no other writing | |||
| 1067 | - | // threads want to lock @lock. This lock has to be unlocked by | |||
| 1068 | - | // g_static_rw_lock_reader_unlock(). | |||
| 1069 | - | // | |||
| 1070 | - | // #GStaticRWLock is not recursive. It might seem to be possible to | |||
| 1071 | - | // recursively lock for reading, but that can result in a deadlock, due | |||
| 1072 | - | // to writer preference. | |||
| 1073 | - | func (x *StaticRWLock) ReaderLock() { | |||
| 1074 | - | core.LazyRegister(&xStaticRWLockReaderLock, "GLIB", "g_static_rw_lock_reader_lock", false) | |||
| 1075 | - | ||||
| 1076 | - | xStaticRWLockReaderLock(x.GoPointer()) | |||
| 1077 | - | } | |||
| 1078 | - | ||||
| 1079 | - | var xStaticRWLockReaderTrylock func(uintptr) bool | |||
| 1080 | - | ||||
| 1081 | - | // Tries to lock @lock for reading. If @lock is already locked for | |||
| 1082 | - | // writing by another thread or if another thread is already waiting to | |||
| 1083 | - | // lock @lock for writing, immediately returns %FALSE. Otherwise locks | |||
| 1084 | - | // @lock for reading and returns %TRUE. This lock has to be unlocked by | |||
| 1085 | - | // g_static_rw_lock_reader_unlock(). | |||
| 1086 | - | func (x *StaticRWLock) ReaderTrylock() bool { | |||
| 1087 | - | core.LazyRegister(&xStaticRWLockReaderTrylock, "GLIB", "g_static_rw_lock_reader_trylock", false) | |||
| 1088 | - | ||||
| 1089 | - | cret := xStaticRWLockReaderTrylock(x.GoPointer()) | |||
| 1090 | - | return cret | |||
| 1091 | - | } | |||
| 1092 | - | ||||
| 1093 | - | var xStaticRWLockReaderUnlock func(uintptr) | |||
| 1094 | - | ||||
| 1095 | - | // Unlocks @lock. If a thread waits to lock @lock for writing and all | |||
| 1096 | - | // locks for reading have been unlocked, the waiting thread is woken up | |||
| 1097 | - | // and can lock @lock for writing. | |||
| 1098 | - | func (x *StaticRWLock) ReaderUnlock() { | |||
| 1099 | - | core.LazyRegister(&xStaticRWLockReaderUnlock, "GLIB", "g_static_rw_lock_reader_unlock", false) | |||
| 1100 | - | ||||
| 1101 | - | xStaticRWLockReaderUnlock(x.GoPointer()) | |||
| 1102 | - | } | |||
| 1103 | - | ||||
| 1104 | - | var xStaticRWLockWriterLock func(uintptr) | |||
| 1105 | - | ||||
| 1106 | - | // Locks @lock for writing. If @lock is already locked for writing or | |||
| 1107 | - | // reading by other threads, this function will block until @lock is | |||
| 1108 | - | // completely unlocked and then lock @lock for writing. While this | |||
| 1109 | - | // functions waits to lock @lock, no other thread can lock @lock for | |||
| 1110 | - | // reading. When @lock is locked for writing, no other thread can lock | |||
| 1111 | - | // @lock (neither for reading nor writing). This lock has to be | |||
| 1112 | - | // unlocked by g_static_rw_lock_writer_unlock(). | |||
| 1113 | - | func (x *StaticRWLock) WriterLock() { | |||
| 1114 | - | core.LazyRegister(&xStaticRWLockWriterLock, "GLIB", "g_static_rw_lock_writer_lock", false) | |||
| 1115 | - | ||||
| 1116 | - | xStaticRWLockWriterLock(x.GoPointer()) | |||
| 1117 | - | } | |||
| 1118 | - | ||||
| 1119 | - | var xStaticRWLockWriterTrylock func(uintptr) bool | |||
| 1120 | - | ||||
| 1121 | - | // Tries to lock @lock for writing. If @lock is already locked (for | |||
| 1122 | - | // either reading or writing) by another thread, it immediately returns | |||
| 1123 | - | // %FALSE. Otherwise it locks @lock for writing and returns %TRUE. This | |||
| 1124 | - | // lock has to be unlocked by g_static_rw_lock_writer_unlock(). | |||
| 1125 | - | func (x *StaticRWLock) WriterTrylock() bool { | |||
| 1126 | - | core.LazyRegister(&xStaticRWLockWriterTrylock, "GLIB", "g_static_rw_lock_writer_trylock", false) | |||
| 1127 | - | ||||
| 1128 | - | cret := xStaticRWLockWriterTrylock(x.GoPointer()) | |||
| 1129 | - | return cret | |||
| 1130 | - | } | |||
| 1131 | - | ||||
| 1132 | - | var xStaticRWLockWriterUnlock func(uintptr) | |||
| 1133 | - | ||||
| 1134 | - | // Unlocks @lock. If a thread is waiting to lock @lock for writing and | |||
| 1135 | - | // all locks for reading have been unlocked, the waiting thread is | |||
| 1136 | - | // woken up and can lock @lock for writing. If no thread is waiting to | |||
| 1137 | - | // lock @lock for writing, and some thread or threads are waiting to | |||
| 1138 | - | // lock @lock for reading, the waiting threads are woken up and can | |||
| 1139 | - | // lock @lock for reading. | |||
| 1140 | - | func (x *StaticRWLock) WriterUnlock() { | |||
| 1141 | - | core.LazyRegister(&xStaticRWLockWriterUnlock, "GLIB", "g_static_rw_lock_writer_unlock", false) | |||
| 1142 | - | ||||
| 1143 | - | xStaticRWLockWriterUnlock(x.GoPointer()) | |||
| 1144 | - | } | |||
| 1145 | - | ||||
| 1146 | - | // A #GStaticRecMutex works like a #GStaticMutex, but it can be locked | |||
| 1147 | - | // multiple times by one thread. If you enter it n times, you have to | |||
| 1148 | - | // unlock it n times again to let other threads lock it. An exception | |||
| 1149 | - | // is the function g_static_rec_mutex_unlock_full(): that allows you to | |||
| 1150 | - | // unlock a #GStaticRecMutex completely returning the depth, (i.e. the | |||
| 1151 | - | // number of times this mutex was locked). The depth can later be used | |||
| 1152 | - | // to restore the state of the #GStaticRecMutex by calling | |||
| 1153 | - | // g_static_rec_mutex_lock_full(). In GLib 2.32, #GStaticRecMutex has | |||
| 1154 | - | // been deprecated in favor of #GRecMutex. | |||
| 1155 | - | // | |||
| 1156 | - | // Even though #GStaticRecMutex is not opaque, it should only be used | |||
| 1157 | - | // with the following functions. | |||
| 1158 | - | // | |||
| 1159 | - | // All of the g_static_rec_mutex_* functions can be used even if | |||
| 1160 | - | // g_thread_init() has not been called. Then they do nothing, apart | |||
| 1161 | - | // from g_static_rec_mutex_trylock(), which does nothing but returning | |||
| 1162 | - | // %TRUE. | |||
| 1163 | - | type StaticRecMutex struct { | |||
| 1164 | - | _ structs.HostLayout | |||
| 1165 | - | ||||
| 1166 | - | Mutex uintptr | |||
| 1167 | - | ||||
| 1168 | - | Depth uint | |||
| 1169 | - | } | |||
| 1170 | - | ||||
| 1171 | - | func (x *StaticRecMutex) GoPointer() uintptr { | |||
| 1172 | - | return uintptr(unsafe.Pointer(x)) | |||
| 1173 | - | } | |||
| 1174 | - | ||||
| 1175 | - | func StaticRecMutexNewFromInternalPtr(ptr uintptr) *StaticRecMutex { | |||
| 1176 | - | if ptr == 0 { | |||
| 1177 | - | return nil | |||
| 1178 | - | } | |||
| 1179 | - | rawPtr := *(*unsafe.Pointer)(unsafe.Pointer(&ptr)) | |||
| 1180 | - | return (*StaticRecMutex)(rawPtr) | |||
| 1181 | - | } | |||
| 1182 | - | ||||
| 1183 | - | var xStaticRecMutexFree func(uintptr) | |||
| 1184 | - | ||||
| 1185 | - | // Releases all resources allocated to a #GStaticRecMutex. | |||
| 1186 | - | // | |||
| 1187 | - | // You don't have to call this functions for a #GStaticRecMutex with an | |||
| 1188 | - | // unbounded lifetime, i.e. objects declared 'static', but if you have | |||
| 1189 | - | // a #GStaticRecMutex as a member of a structure and the structure is | |||
| 1190 | - | // freed, you should also free the #GStaticRecMutex. | |||
| 1191 | - | func (x *StaticRecMutex) Free() { | |||
| 1192 | - | core.LazyRegister(&xStaticRecMutexFree, "GLIB", "g_static_rec_mutex_free", false) | |||
| 1193 | - | ||||
| 1194 | - | xStaticRecMutexFree(x.GoPointer()) | |||
| 1195 | - | } | |||
| 1196 | - | ||||
| 1197 | - | var xStaticRecMutexInit func(uintptr) | |||
| 1198 | - | ||||
| 1199 | - | // A #GStaticRecMutex must be initialized with this function before it | |||
| 1200 | - | // can be used. Alternatively you can initialize it with | |||
| 1201 | - | // %G_STATIC_REC_MUTEX_INIT. | |||
| 1202 | - | func (x *StaticRecMutex) Init() { | |||
| 1203 | - | core.LazyRegister(&xStaticRecMutexInit, "GLIB", "g_static_rec_mutex_init", false) | |||
| 1204 | - | ||||
| 1205 | - | xStaticRecMutexInit(x.GoPointer()) | |||
| 1206 | - | } | |||
| 1207 | - | ||||
| 1208 | - | var xStaticRecMutexLock func(uintptr) | |||
| 1209 | - | ||||
| 1210 | - | // Locks @mutex. If @mutex is already locked by another thread, the | |||
| 1211 | - | // current thread will block until @mutex is unlocked by the other | |||
| 1212 | - | // thread. If @mutex is already locked by the calling thread, this | |||
| 1213 | - | // functions increases the depth of @mutex and returns immediately. | |||
| 1214 | - | func (x *StaticRecMutex) Lock() { | |||
| 1215 | - | core.LazyRegister(&xStaticRecMutexLock, "GLIB", "g_static_rec_mutex_lock", false) | |||
| 1216 | - | ||||
| 1217 | - | xStaticRecMutexLock(x.GoPointer()) | |||
| 1218 | - | } | |||
| 1219 | - | ||||
| 1220 | - | var xStaticRecMutexLockFull func(uintptr, uint) | |||
| 1221 | - | ||||
| 1222 | - | // Works like calling g_static_rec_mutex_lock() for @mutex @depth times. | |||
| 1223 | - | func (x *StaticRecMutex) LockFull(DepthVar uint) { | |||
| 1224 | - | core.LazyRegister(&xStaticRecMutexLockFull, "GLIB", "g_static_rec_mutex_lock_full", false) | |||
| 1225 | - | ||||
| 1226 | - | xStaticRecMutexLockFull(x.GoPointer(), DepthVar) | |||
| 1227 | - | } | |||
| 1228 | - | ||||
| 1229 | - | var xStaticRecMutexTrylock func(uintptr) bool | |||
| 1230 | - | ||||
| 1231 | - | // Tries to lock @mutex. If @mutex is already locked by another thread, | |||
| 1232 | - | // it immediately returns %FALSE. Otherwise it locks @mutex and returns | |||
| 1233 | - | // %TRUE. If @mutex is already locked by the calling thread, this | |||
| 1234 | - | // functions increases the depth of @mutex and immediately returns | |||
| 1235 | - | // %TRUE. | |||
| 1236 | - | func (x *StaticRecMutex) Trylock() bool { | |||
| 1237 | - | core.LazyRegister(&xStaticRecMutexTrylock, "GLIB", "g_static_rec_mutex_trylock", false) | |||
| 1238 | - | ||||
| 1239 | - | cret := xStaticRecMutexTrylock(x.GoPointer()) | |||
| 1240 | - | return cret | |||
| 1241 | - | } | |||
| 1242 | - | ||||
| 1243 | - | var xStaticRecMutexUnlock func(uintptr) | |||
| 1244 | - | ||||
| 1245 | - | // Unlocks @mutex. Another thread will be allowed to lock @mutex only | |||
| 1246 | - | // when it has been unlocked as many times as it had been locked | |||
| 1247 | - | // before. If @mutex is completely unlocked and another thread is | |||
| 1248 | - | // blocked in a g_static_rec_mutex_lock() call for @mutex, it will be | |||
| 1249 | - | // woken and can lock @mutex itself. | |||
| 1250 | - | func (x *StaticRecMutex) Unlock() { | |||
| 1251 | - | core.LazyRegister(&xStaticRecMutexUnlock, "GLIB", "g_static_rec_mutex_unlock", false) | |||
| 1252 | - | ||||
| 1253 | - | xStaticRecMutexUnlock(x.GoPointer()) | |||
| 1254 | - | } | |||
| 1255 | - | ||||
| 1256 | - | var xStaticRecMutexUnlockFull func(uintptr) uint | |||
| 1257 | - | ||||
| 1258 | - | // Completely unlocks @mutex. If another thread is blocked in a | |||
| 1259 | - | // g_static_rec_mutex_lock() call for @mutex, it will be woken and can | |||
| 1260 | - | // lock @mutex itself. This function returns the number of times that | |||
| 1261 | - | // @mutex has been locked by the current thread. To restore the state | |||
| 1262 | - | // before the call to g_static_rec_mutex_unlock_full() you can call | |||
| 1263 | - | // g_static_rec_mutex_lock_full() with the depth returned by this | |||
| 1264 | - | // function. | |||
| 1265 | - | func (x *StaticRecMutex) UnlockFull() uint { | |||
| 1266 | - | core.LazyRegister(&xStaticRecMutexUnlockFull, "GLIB", "g_static_rec_mutex_unlock_full", false) | |||
| 1267 | - | ||||
| 1268 | - | cret := xStaticRecMutexUnlockFull(x.GoPointer()) | |||
| 1269 | - | return cret | |||
| 1270 | - | } | |||
| 1271 | - | ||||
| 1272 | - | // The #GThread struct represents a running thread. This struct | |||
| 1273 | - | // is returned by g_thread_new() or g_thread_try_new(). You can | |||
| 1274 | - | // obtain the #GThread struct representing the current thread by | |||
| 1275 | - | // calling g_thread_self(). | |||
| 1276 | - | // | |||
| 1277 | - | // GThread is refcounted, see g_thread_ref() and g_thread_unref(). | |||
| 1278 | - | // The thread represented by it holds a reference while it is running, | |||
| 1279 | - | // and g_thread_join() consumes the reference that it is given, so | |||
| 1280 | - | // it is normally not necessary to manage GThread references | |||
| 1281 | - | // explicitly. | |||
| 1282 | - | // | |||
| 1283 | - | // The structure is opaque -- none of its fields may be directly | |||
| 1284 | - | // accessed. | |||
| 1285 | - | type Thread struct { | |||
| 1286 | - | _ structs.HostLayout | |||
| 1287 | - | ||||
| 1288 | - | Func ThreadFunc | |||
| 1289 | - | ||||
| 1290 | - | Data uintptr | |||
| 1291 | - | ||||
| 1292 | - | Joinable bool | |||
| 1293 | - | ||||
| 1294 | - | Priority ThreadPriority | |||
| 1295 | - | } | |||
| 1296 | - | ||||
| 1297 | - | var xThreadGLibType func() types.GType | |||
| 1298 | - | ||||
| 1299 | - | func ThreadGLibType() types.GType { | |||
| 1300 | - | core.LazyRegister(&xThreadGLibType, "GLIB", "g_thread_get_type", false) | |||
| 1301 | - | return xThreadGLibType() | |||
| 1302 | - | } | |||
| 1303 | - | ||||
| 1304 | - | func (x *Thread) GoPointer() uintptr { | |||
| 1305 | - | return uintptr(unsafe.Pointer(x)) | |||
| 1306 | - | } | |||
| 1307 | - | ||||
| 1308 | - | func ThreadNewFromInternalPtr(ptr uintptr) *Thread { | |||
| 1309 | - | if ptr == 0 { | |||
| 1310 | - | return nil | |||
| 1311 | - | } | |||
| 1312 | - | rawPtr := *(*unsafe.Pointer)(unsafe.Pointer(&ptr)) | |||
| 1313 | - | return (*Thread)(rawPtr) | |||
| 1314 | - | } | |||
| 1315 | - | ||||
| 1316 | - | var xNewThread func(uintptr, uintptr, uintptr) uintptr | |||
| 1317 | - | ||||
| 1318 | - | // This function creates a new thread. The new thread starts by invoking | |||
| 1319 | - | // @func with the argument data. The thread will run until @func returns | |||
| 1320 | - | // or until g_thread_exit() is called from the new thread. The return value | |||
| 1321 | - | // of @func becomes the return value of the thread, which can be obtained | |||
| 1322 | - | // with g_thread_join(). | |||
| 1323 | - | // | |||
| 1324 | - | // The @name can be useful for discriminating threads in a debugger. | |||
| 1325 | - | // It is not used for other purposes and does not have to be unique. | |||
| 1326 | - | // Some systems restrict the length of @name to 16 bytes. | |||
| 1327 | - | // | |||
| 1328 | - | // If the thread can not be created the program aborts. See | |||
| 1329 | - | // g_thread_try_new() if you want to attempt to deal with failures. | |||
| 1330 | - | // | |||
| 1331 | - | // If you are using threads to offload (potentially many) short-lived tasks, | |||
| 1332 | - | // #GThreadPool may be more appropriate than manually spawning and tracking | |||
| 1333 | - | // multiple #GThreads. | |||
| 1334 | - | // | |||
| 1335 | - | // To free the struct returned by this function, use g_thread_unref(). | |||
| 1336 | - | // Note that g_thread_join() implicitly unrefs the #GThread as well. | |||
| 1337 | - | // | |||
| 1338 | - | // New threads by default inherit their scheduler policy (POSIX) or thread | |||
| 1339 | - | // priority (Windows) of the thread creating the new thread. | |||
| 1340 | - | // | |||
| 1341 | - | // This behaviour changed in GLib 2.64: before threads on Windows were not | |||
| 1342 | - | // inheriting the thread priority but were spawned with the default priority. | |||
| 1343 | - | // Starting with GLib 2.64 the behaviour is now consistent between Windows and | |||
| 1344 | - | // POSIX and all threads inherit their parent thread's priority. | |||
| 1345 | - | func NewThread(NameVar *string, FuncVar *ThreadFunc, DataVar uintptr) *Thread { | |||
| 1346 | - | core.LazyRegister(&xNewThread, "GLIB", "g_thread_new", false) | |||
| 1347 | - | ||||
| 1348 | - | NameVarPtr := core.GStrdupNullable(NameVar) | |||
| 1349 | - | defer core.GFreeNullable(NameVarPtr) | |||
| 1350 | - | ||||
| 1351 | - | cret := xNewThread(NameVarPtr, NewCallback(FuncVar), DataVar) | |||
| 1352 | - | if cret == 0 { | |||
| 1353 | - | return nil | |||
| 1354 | - | } | |||
| 1355 | - | return (*Thread)(unsafe.Pointer(cret)) | |||
| 1356 | - | } | |||
| 1357 | - | ||||
| 1358 | - | var xThreadTryNew func(uintptr, uintptr, uintptr, **Error) uintptr | |||
| 1359 | - | ||||
| 1360 | - | // This function is the same as g_thread_new() except that | |||
| 1361 | - | // it allows for the possibility of failure. | |||
| 1362 | - | // | |||
| 1363 | - | // If a thread can not be created (due to resource limits), | |||
| 1364 | - | // @error is set and %NULL is returned. | |||
| 1365 | - | func ThreadTryNew(NameVar *string, FuncVar *ThreadFunc, DataVar uintptr) (*Thread, error) { | |||
| 1366 | - | core.LazyRegister(&xThreadTryNew, "GLIB", "g_thread_try_new", false) | |||
| 1367 | - | var cerr *Error | |||
| 1368 | - | ||||
| 1369 | - | NameVarPtr := core.GStrdupNullable(NameVar) | |||
| 1370 | - | defer core.GFreeNullable(NameVarPtr) | |||
| 1371 | - | ||||
| 1372 | - | cret := xThreadTryNew(NameVarPtr, NewCallback(FuncVar), DataVar, &cerr) | |||
| 1373 | - | if cerr != nil { | |||
| 1374 | - | return nil, cerr | |||
| 1375 | - | } | |||
| 1376 | - | if cret == 0 { | |||
| 1377 | - | return nil, nil | |||
| 1378 | - | } | |||
| 1379 | - | return (*Thread)(unsafe.Pointer(cret)), nil | |||
| 1380 | - | } | |||
| 1381 | - | ||||
| 1382 | - | var xThreadGetName func(uintptr) string | |||
| 1383 | - | ||||
| 1384 | - | // Gets the name of the thread. | |||
| 1385 | - | // | |||
| 1386 | - | // This function is intended for debugging purposes. | |||
| 1387 | - | func (x *Thread) GetName() string { | |||
| 1388 | - | core.LazyRegister(&xThreadGetName, "GLIB", "g_thread_get_name", false) | |||
| 1389 | - | ||||
| 1390 | - | cret := xThreadGetName(x.GoPointer()) | |||
| 1391 | - | return cret | |||
| 1392 | - | } | |||
| 1393 | - | ||||
| 1394 | - | var xThreadJoin func(uintptr) uintptr | |||
| 1395 | - | ||||
| 1396 | - | // Waits until @thread finishes, i.e. the function @func, as | |||
| 1397 | - | // given to g_thread_new(), returns or g_thread_exit() is called. | |||
| 1398 | - | // If @thread has already terminated, then g_thread_join() | |||
| 1399 | - | // returns immediately. | |||
| 1400 | - | // | |||
| 1401 | - | // Any thread can wait for any other thread by calling g_thread_join(), | |||
| 1402 | - | // not just its 'creator'. Calling g_thread_join() from multiple threads | |||
| 1403 | - | // for the same @thread leads to undefined behaviour. | |||
| 1404 | - | // | |||
| 1405 | - | // The value returned by @func or given to g_thread_exit() is | |||
| 1406 | - | // returned by this function. | |||
| 1407 | - | // | |||
| 1408 | - | // g_thread_join() consumes the reference to the passed-in @thread. | |||
| 1409 | - | // This will usually cause the #GThread struct and associated resources | |||
| 1410 | - | // to be freed. Use g_thread_ref() to obtain an extra reference if you | |||
| 1411 | - | // want to keep the GThread alive beyond the g_thread_join() call. | |||
| 1412 | - | func (x *Thread) Join() uintptr { | |||
| 1413 | - | core.LazyRegister(&xThreadJoin, "GLIB", "g_thread_join", false) | |||
| 1414 | - | ||||
| 1415 | - | cret := xThreadJoin(x.GoPointer()) | |||
| 1416 | - | return cret | |||
| 1417 | - | } | |||
| 1418 | - | ||||
| 1419 | - | var xThreadRef func(uintptr) uintptr | |||
| 1420 | - | ||||
| 1421 | - | // Increase the reference count on @thread. | |||
| 1422 | - | func (x *Thread) Ref() *Thread { | |||
| 1423 | - | core.LazyRegister(&xThreadRef, "GLIB", "g_thread_ref", false) | |||
| 1424 | - | ||||
| 1425 | - | cret := xThreadRef(x.GoPointer()) | |||
| 1426 | - | if cret == 0 { | |||
| 1427 | - | return nil | |||
| 1428 | - | } | |||
| 1429 | - | return (*Thread)(unsafe.Pointer(cret)) | |||
| 1430 | - | } | |||
| 1431 | - | ||||
| 1432 | - | var xThreadSetPriority func(uintptr, ThreadPriority) | |||
| 1433 | - | ||||
| 1434 | - | // This function does nothing. | |||
| 1435 | - | func (x *Thread) SetPriority(PriorityVar ThreadPriority) { | |||
| 1436 | - | core.LazyRegister(&xThreadSetPriority, "GLIB", "g_thread_set_priority", false) | |||
| 1437 | - | ||||
| 1438 | - | xThreadSetPriority(x.GoPointer(), PriorityVar) | |||
| 1439 | - | } | |||
| 1440 | - | ||||
| 1441 | - | var xThreadUnref func(uintptr) | |||
| 1442 | - | ||||
| 1443 | - | // Decrease the reference count on @thread, possibly freeing all | |||
| 1444 | - | // resources associated with it. | |||
| 1445 | - | // | |||
| 1446 | - | // Note that each thread holds a reference to its #GThread while | |||
| 1447 | - | // it is running, so it is safe to drop your own reference to it | |||
| 1448 | - | // if you don't need it anymore. | |||
| 1449 | - | func (x *Thread) Unref() { | |||
| 1450 | - | core.LazyRegister(&xThreadUnref, "GLIB", "g_thread_unref", false) | |||
| 1451 | - | ||||
| 1452 | - | xThreadUnref(x.GoPointer()) | |||
| 1453 | - | } | |||
| 1454 | - | ||||
| 1455 | - | // This function table is no longer used by g_thread_init() | |||
| 1456 | - | // to initialize the thread system. | |||
| 1457 | - | type ThreadFunctions struct { | |||
| 1458 | - | _ structs.HostLayout | |||
| 1459 | - | ||||
| 1460 | - | xMutexNew uintptr | |||
| 1461 | - | ||||
| 1462 | - | xMutexLock uintptr | |||
| 1463 | - | ||||
| 1464 | - | xMutexTrylock uintptr | |||
| 1465 | - | ||||
| 1466 | - | xMutexUnlock uintptr | |||
| 1467 | - | ||||
| 1468 | - | xMutexFree uintptr | |||
| 1469 | - | ||||
| 1470 | - | xCondNew uintptr | |||
| 1471 | - | ||||
| 1472 | - | xCondSignal uintptr | |||
| 1473 | - | ||||
| 1474 | - | xCondBroadcast uintptr | |||
| 1475 | - | ||||
| 1476 | - | xCondWait uintptr | |||
| 1477 | - | ||||
| 1478 | - | xCondTimedWait uintptr | |||
| 1479 | - | ||||
| 1480 | - | xCondFree uintptr | |||
| 1481 | - | ||||
| 1482 | - | xPrivateNew uintptr | |||
| 1483 | - | ||||
| 1484 | - | xPrivateGet uintptr | |||
| 1485 | - | ||||
| 1486 | - | xPrivateSet uintptr | |||
| 1487 | - | ||||
| 1488 | - | xThreadCreate uintptr | |||
| 1489 | - | ||||
| 1490 | - | xThreadYield uintptr | |||
| 1491 | - | ||||
| 1492 | - | xThreadJoin uintptr | |||
| 1493 | - | ||||
| 1494 | - | xThreadExit uintptr | |||
| 1495 | - | ||||
| 1496 | - | xThreadSetPriority uintptr | |||
| 1497 | - | ||||
| 1498 | - | xThreadSelf uintptr | |||
| 1499 | - | ||||
| 1500 | - | xThreadEqual uintptr | |||
| 1501 | - | } | |||
| 1502 | - | ||||
| 1503 | - | func (x *ThreadFunctions) GoPointer() uintptr { | |||
| 1504 | - | return uintptr(unsafe.Pointer(x)) | |||
| 1505 | - | } | |||
| 1506 | - | ||||
| 1507 | - | func ThreadFunctionsNewFromInternalPtr(ptr uintptr) *ThreadFunctions { | |||
| 1508 | - | if ptr == 0 { | |||
| 1509 | - | return nil | |||
| 1510 | - | } | |||
| 1511 | - | rawPtr := *(*unsafe.Pointer)(unsafe.Pointer(&ptr)) | |||
| 1512 | - | return (*ThreadFunctions)(rawPtr) | |||
| 1513 | - | } | |||
| 1514 | - | ||||
| 1515 | - | // OverrideMutexNew sets the "mutex_new" callback function. | |||
| 1516 | - | // virtual function pointer for g_mutex_new() | |||
| 1517 | - | func (x *ThreadFunctions) OverrideMutexNew(cb func() *Mutex) { | |||
| 1518 | - | if cb == nil { | |||
| 1519 | - | x.xMutexNew = 0 | |||
| 1520 | - | } else { | |||
| 1521 | - | x.xMutexNew = purego.NewCallback(func() *Mutex { | |||
| 1522 | - | return cb() | |||
| 1523 | - | }) | |||
| 1524 | - | } | |||
| 1525 | - | } | |||
| 1526 | - | ||||
| 1527 | - | // GetMutexNew gets the "mutex_new" callback function. | |||
| 1528 | - | // virtual function pointer for g_mutex_new() | |||
| 1529 | - | func (x *ThreadFunctions) GetMutexNew() func() *Mutex { | |||
| 1530 | - | if x.xMutexNew == 0 { | |||
| 1531 | - | return nil | |||
| 1532 | - | } | |||
| 1533 | - | var rawCallback func() *Mutex | |||
| 1534 | - | purego.RegisterFunc(&rawCallback, x.xMutexNew) | |||
| 1535 | - | return func() *Mutex { | |||
| 1536 | - | return rawCallback() | |||
| 1537 | - | } | |||
| 1538 | - | } | |||
| 1539 | - | ||||
| 1540 | - | // OverrideMutexLock sets the "mutex_lock" callback function. | |||
| 1541 | - | // virtual function pointer for g_mutex_lock() | |||
| 1542 | - | func (x *ThreadFunctions) OverrideMutexLock(cb func(*Mutex)) { | |||
| 1543 | - | if cb == nil { | |||
| 1544 | - | x.xMutexLock = 0 | |||
| 1545 | - | } else { | |||
| 1546 | - | x.xMutexLock = purego.NewCallback(func(MutexVarp *Mutex) { | |||
| 1547 | - | cb(MutexVarp) | |||
| 1548 | - | }) | |||
| 1549 | - | } | |||
| 1550 | - | } | |||
| 1551 | - | ||||
| 1552 | - | // GetMutexLock gets the "mutex_lock" callback function. | |||
| 1553 | - | // virtual function pointer for g_mutex_lock() | |||
| 1554 | - | func (x *ThreadFunctions) GetMutexLock() func(*Mutex) { | |||
| 1555 | - | if x.xMutexLock == 0 { | |||
| 1556 | - | return nil | |||
| 1557 | - | } | |||
| 1558 | - | var rawCallback func(MutexVarp *Mutex) | |||
| 1559 | - | purego.RegisterFunc(&rawCallback, x.xMutexLock) | |||
| 1560 | - | return func(MutexVar *Mutex) { | |||
| 1561 | - | rawCallback(MutexVar) | |||
| 1562 | - | } | |||
| 1563 | - | } | |||
| 1564 | - | ||||
| 1565 | - | // OverrideMutexTrylock sets the "mutex_trylock" callback function. | |||
| 1566 | - | // virtual function pointer for g_mutex_trylock() | |||
| 1567 | - | func (x *ThreadFunctions) OverrideMutexTrylock(cb func(*Mutex) bool) { | |||
| 1568 | - | if cb == nil { | |||
| 1569 | - | x.xMutexTrylock = 0 | |||
| 1570 | - | } else { | |||
| 1571 | - | x.xMutexTrylock = purego.NewCallback(func(MutexVarp *Mutex) bool { | |||
| 1572 | - | return cb(MutexVarp) | |||
| 1573 | - | }) | |||
| 1574 | - | } | |||
| 1575 | - | } | |||
| 1576 | - | ||||
| 1577 | - | // GetMutexTrylock gets the "mutex_trylock" callback function. | |||
| 1578 | - | // virtual function pointer for g_mutex_trylock() | |||
| 1579 | - | func (x *ThreadFunctions) GetMutexTrylock() func(*Mutex) bool { | |||
| 1580 | - | if x.xMutexTrylock == 0 { | |||
| 1581 | - | return nil | |||
| 1582 | - | } | |||
| 1583 | - | var rawCallback func(MutexVarp *Mutex) bool | |||
| 1584 | - | purego.RegisterFunc(&rawCallback, x.xMutexTrylock) | |||
| 1585 | - | return func(MutexVar *Mutex) bool { | |||
| 1586 | - | return rawCallback(MutexVar) | |||
| 1587 | - | } | |||
| 1588 | - | } | |||
| 1589 | - | ||||
| 1590 | - | // OverrideMutexUnlock sets the "mutex_unlock" callback function. | |||
| 1591 | - | // virtual function pointer for g_mutex_unlock() | |||
| 1592 | - | func (x *ThreadFunctions) OverrideMutexUnlock(cb func(*Mutex)) { | |||
| 1593 | - | if cb == nil { | |||
| 1594 | - | x.xMutexUnlock = 0 | |||
| 1595 | - | } else { | |||
| 1596 | - | x.xMutexUnlock = purego.NewCallback(func(MutexVarp *Mutex) { | |||
| 1597 | - | cb(MutexVarp) | |||
| 1598 | - | }) | |||
| 1599 | - | } | |||
| 1600 | - | } | |||
| 1601 | - | ||||
| 1602 | - | // GetMutexUnlock gets the "mutex_unlock" callback function. | |||
| 1603 | - | // virtual function pointer for g_mutex_unlock() | |||
| 1604 | - | func (x *ThreadFunctions) GetMutexUnlock() func(*Mutex) { | |||
| 1605 | - | if x.xMutexUnlock == 0 { | |||
| 1606 | - | return nil | |||
| 1607 | - | } | |||
| 1608 | - | var rawCallback func(MutexVarp *Mutex) | |||
| 1609 | - | purego.RegisterFunc(&rawCallback, x.xMutexUnlock) | |||
| 1610 | - | return func(MutexVar *Mutex) { | |||
| 1611 | - | rawCallback(MutexVar) | |||
| 1612 | - | } | |||
| 1613 | - | } | |||
| 1614 | - | ||||
| 1615 | - | // OverrideMutexFree sets the "mutex_free" callback function. | |||
| 1616 | - | // virtual function pointer for g_mutex_free() | |||
| 1617 | - | func (x *ThreadFunctions) OverrideMutexFree(cb func(*Mutex)) { | |||
| 1618 | - | if cb == nil { | |||
| 1619 | - | x.xMutexFree = 0 | |||
| 1620 | - | } else { | |||
| 1621 | - | x.xMutexFree = purego.NewCallback(func(MutexVarp *Mutex) { | |||
| 1622 | - | cb(MutexVarp) | |||
| 1623 | - | }) | |||
| 1624 | - | } | |||
| 1625 | - | } | |||
| 1626 | - | ||||
| 1627 | - | // GetMutexFree gets the "mutex_free" callback function. | |||
| 1628 | - | // virtual function pointer for g_mutex_free() | |||
| 1629 | - | func (x *ThreadFunctions) GetMutexFree() func(*Mutex) { | |||
| 1630 | - | if x.xMutexFree == 0 { | |||
| 1631 | - | return nil | |||
| 1632 | - | } | |||
| 1633 | - | var rawCallback func(MutexVarp *Mutex) | |||
| 1634 | - | purego.RegisterFunc(&rawCallback, x.xMutexFree) | |||
| 1635 | - | return func(MutexVar *Mutex) { | |||
| 1636 | - | rawCallback(MutexVar) | |||
| 1637 | - | } | |||
| 1638 | - | } | |||
| 1639 | - | ||||
| 1640 | - | // OverrideCondNew sets the "cond_new" callback function. | |||
| 1641 | - | // virtual function pointer for g_cond_new() | |||
| 1642 | - | func (x *ThreadFunctions) OverrideCondNew(cb func() *Cond) { | |||
| 1643 | - | if cb == nil { | |||
| 1644 | - | x.xCondNew = 0 | |||
| 1645 | - | } else { | |||
| 1646 | - | x.xCondNew = purego.NewCallback(func() uintptr { | |||
| 1647 | - | ret := cb() | |||
| 1648 | - | if ret == nil { | |||
| 1649 | - | return 0 | |||
| 1650 | - | } | |||
| 1651 | - | return uintptr(unsafe.Pointer(ret)) | |||
| 1652 | - | }) | |||
| 1653 | - | } | |||
| 1654 | - | } | |||
| 1655 | - | ||||
| 1656 | - | // GetCondNew gets the "cond_new" callback function. | |||
| 1657 | - | // virtual function pointer for g_cond_new() | |||
| 1658 | - | func (x *ThreadFunctions) GetCondNew() func() *Cond { | |||
| 1659 | - | if x.xCondNew == 0 { | |||
| 1660 | - | return nil | |||
| 1661 | - | } | |||
| 1662 | - | var rawCallback func() uintptr | |||
| 1663 | - | purego.RegisterFunc(&rawCallback, x.xCondNew) | |||
| 1664 | - | return func() *Cond { | |||
| 1665 | - | rawRet := rawCallback() | |||
| 1666 | - | if rawRet == 0 { | |||
| 1667 | - | return nil | |||
| 1668 | - | } | |||
| 1669 | - | return (*Cond)(unsafe.Pointer(rawRet)) | |||
| 1670 | - | } | |||
| 1671 | - | } | |||
| 1672 | - | ||||
| 1673 | - | // OverrideCondSignal sets the "cond_signal" callback function. | |||
| 1674 | - | // virtual function pointer for g_cond_signal() | |||
| 1675 | - | func (x *ThreadFunctions) OverrideCondSignal(cb func(*Cond)) { | |||
| 1676 | - | if cb == nil { | |||
| 1677 | - | x.xCondSignal = 0 | |||
| 1678 | - | } else { | |||
| 1679 | - | x.xCondSignal = purego.NewCallback(func(CondVarp *Cond) { | |||
| 1680 | - | cb(CondVarp) | |||
| 1681 | - | }) | |||
| 1682 | - | } | |||
| 1683 | - | } | |||
| 1684 | - | ||||
| 1685 | - | // GetCondSignal gets the "cond_signal" callback function. | |||
| 1686 | - | // virtual function pointer for g_cond_signal() | |||
| 1687 | - | func (x *ThreadFunctions) GetCondSignal() func(*Cond) { | |||
| 1688 | - | if x.xCondSignal == 0 { | |||
| 1689 | - | return nil | |||
| 1690 | - | } | |||
| 1691 | - | var rawCallback func(CondVarp *Cond) | |||
| 1692 | - | purego.RegisterFunc(&rawCallback, x.xCondSignal) | |||
| 1693 | - | return func(CondVar *Cond) { | |||
| 1694 | - | rawCallback(CondVar) | |||
| 1695 | - | } | |||
| 1696 | - | } | |||
| 1697 | - | ||||
| 1698 | - | // OverrideCondBroadcast sets the "cond_broadcast" callback function. | |||
| 1699 | - | // virtual function pointer for g_cond_broadcast() | |||
| 1700 | - | func (x *ThreadFunctions) OverrideCondBroadcast(cb func(*Cond)) { | |||
| 1701 | - | if cb == nil { | |||
| 1702 | - | x.xCondBroadcast = 0 | |||
| 1703 | - | } else { | |||
| 1704 | - | x.xCondBroadcast = purego.NewCallback(func(CondVarp *Cond) { | |||
| 1705 | - | cb(CondVarp) | |||
| 1706 | - | }) | |||
| 1707 | - | } | |||
| 1708 | - | } | |||
| 1709 | - | ||||
| 1710 | - | // GetCondBroadcast gets the "cond_broadcast" callback function. | |||
| 1711 | - | // virtual function pointer for g_cond_broadcast() | |||
| 1712 | - | func (x *ThreadFunctions) GetCondBroadcast() func(*Cond) { | |||
| 1713 | - | if x.xCondBroadcast == 0 { | |||
| 1714 | - | return nil | |||
| 1715 | - | } | |||
| 1716 | - | var rawCallback func(CondVarp *Cond) | |||
| 1717 | - | purego.RegisterFunc(&rawCallback, x.xCondBroadcast) | |||
| 1718 | - | return func(CondVar *Cond) { | |||
| 1719 | - | rawCallback(CondVar) | |||
| 1720 | - | } | |||
| 1721 | - | } | |||
| 1722 | - | ||||
| 1723 | - | // OverrideCondWait sets the "cond_wait" callback function. | |||
| 1724 | - | // virtual function pointer for g_cond_wait() | |||
| 1725 | - | func (x *ThreadFunctions) OverrideCondWait(cb func(*Cond, *Mutex)) { | |||
| 1726 | - | if cb == nil { | |||
| 1727 | - | x.xCondWait = 0 | |||
| 1728 | - | } else { | |||
| 1729 | - | x.xCondWait = purego.NewCallback(func(CondVarp *Cond, MutexVarp *Mutex) { | |||
| 1730 | - | cb(CondVarp, MutexVarp) | |||
| 1731 | - | }) | |||
| 1732 | - | } | |||
| 1733 | - | } | |||
| 1734 | - | ||||
| 1735 | - | // GetCondWait gets the "cond_wait" callback function. | |||
| 1736 | - | // virtual function pointer for g_cond_wait() | |||
| 1737 | - | func (x *ThreadFunctions) GetCondWait() func(*Cond, *Mutex) { | |||
| 1738 | - | if x.xCondWait == 0 { | |||
| 1739 | - | return nil | |||
| 1740 | - | } | |||
| 1741 | - | var rawCallback func(CondVarp *Cond, MutexVarp *Mutex) | |||
| 1742 | - | purego.RegisterFunc(&rawCallback, x.xCondWait) | |||
| 1743 | - | return func(CondVar *Cond, MutexVar *Mutex) { | |||
| 1744 | - | rawCallback(CondVar, MutexVar) | |||
| 1745 | - | } | |||
| 1746 | - | } | |||
| 1747 | - | ||||
| 1748 | - | // OverrideCondTimedWait sets the "cond_timed_wait" callback function. | |||
| 1749 | - | // virtual function pointer for g_cond_timed_wait() | |||
| 1750 | - | func (x *ThreadFunctions) OverrideCondTimedWait(cb func(*Cond, *Mutex, *TimeVal) bool) { | |||
| 1751 | - | if cb == nil { | |||
| 1752 | - | x.xCondTimedWait = 0 | |||
| 1753 | - | } else { | |||
| 1754 | - | x.xCondTimedWait = purego.NewCallback(func(CondVarp *Cond, MutexVarp *Mutex, EndTimeVarp *TimeVal) bool { | |||
| 1755 | - | return cb(CondVarp, MutexVarp, EndTimeVarp) | |||
| 1756 | - | }) | |||
| 1757 | - | } | |||
| 1758 | - | } | |||
| 1759 | - | ||||
| 1760 | - | // GetCondTimedWait gets the "cond_timed_wait" callback function. | |||
| 1761 | - | // virtual function pointer for g_cond_timed_wait() | |||
| 1762 | - | func (x *ThreadFunctions) GetCondTimedWait() func(*Cond, *Mutex, *TimeVal) bool { | |||
| 1763 | - | if x.xCondTimedWait == 0 { | |||
| 1764 | - | return nil | |||
| 1765 | - | } | |||
| 1766 | - | var rawCallback func(CondVarp *Cond, MutexVarp *Mutex, EndTimeVarp *TimeVal) bool | |||
| 1767 | - | purego.RegisterFunc(&rawCallback, x.xCondTimedWait) | |||
| 1768 | - | return func(CondVar *Cond, MutexVar *Mutex, EndTimeVar *TimeVal) bool { | |||
| 1769 | - | return rawCallback(CondVar, MutexVar, EndTimeVar) | |||
| 1770 | - | } | |||
| 1771 | - | } | |||
| 1772 | - | ||||
| 1773 | - | // OverrideCondFree sets the "cond_free" callback function. | |||
| 1774 | - | // virtual function pointer for g_cond_free() | |||
| 1775 | - | func (x *ThreadFunctions) OverrideCondFree(cb func(*Cond)) { | |||
| 1776 | - | if cb == nil { | |||
| 1777 | - | x.xCondFree = 0 | |||
| 1778 | - | } else { | |||
| 1779 | - | x.xCondFree = purego.NewCallback(func(CondVarp *Cond) { | |||
| 1780 | - | cb(CondVarp) | |||
| 1781 | - | }) | |||
| 1782 | - | } | |||
| 1783 | - | } | |||
| 1784 | - | ||||
| 1785 | - | // GetCondFree gets the "cond_free" callback function. | |||
| 1786 | - | // virtual function pointer for g_cond_free() | |||
| 1787 | - | func (x *ThreadFunctions) GetCondFree() func(*Cond) { | |||
| 1788 | - | if x.xCondFree == 0 { | |||
| 1789 | - | return nil | |||
| 1790 | - | } | |||
| 1791 | - | var rawCallback func(CondVarp *Cond) | |||
| 1792 | - | purego.RegisterFunc(&rawCallback, x.xCondFree) | |||
| 1793 | - | return func(CondVar *Cond) { | |||
| 1794 | - | rawCallback(CondVar) | |||
| 1795 | - | } | |||
| 1796 | - | } | |||
| 1797 | - | ||||
| 1798 | - | // OverridePrivateNew sets the "private_new" callback function. | |||
| 1799 | - | // virtual function pointer for g_private_new() | |||
| 1800 | - | func (x *ThreadFunctions) OverridePrivateNew(cb func(*DestroyNotify) *Private) { | |||
| 1801 | - | if cb == nil { | |||
| 1802 | - | x.xPrivateNew = 0 | |||
| 1803 | - | } else { | |||
| 1804 | - | x.xPrivateNew = purego.NewCallback(func(DestructorVarp uintptr) uintptr { | |||
| 1805 | - | ret := cb((*DestroyNotify)(unsafe.Pointer(DestructorVarp))) | |||
| 1806 | - | if ret == nil { | |||
| 1807 | - | return 0 | |||
| 1808 | - | } | |||
| 1809 | - | return uintptr(unsafe.Pointer(ret)) | |||
| 1810 | - | }) | |||
| 1811 | - | } | |||
| 1812 | - | } | |||
| 1813 | - | ||||
| 1814 | - | // GetPrivateNew gets the "private_new" callback function. | |||
| 1815 | - | // virtual function pointer for g_private_new() | |||
| 1816 | - | func (x *ThreadFunctions) GetPrivateNew() func(*DestroyNotify) *Private { | |||
| 1817 | - | if x.xPrivateNew == 0 { | |||
| 1818 | - | return nil | |||
| 1819 | - | } | |||
| 1820 | - | var rawCallback func(DestructorVarp uintptr) uintptr | |||
| 1821 | - | purego.RegisterFunc(&rawCallback, x.xPrivateNew) | |||
| 1822 | - | return func(DestructorVar *DestroyNotify) *Private { | |||
| 1823 | - | rawRet := rawCallback(NewCallback(DestructorVar)) | |||
| 1824 | - | if rawRet == 0 { | |||
| 1825 | - | return nil | |||
| 1826 | - | } | |||
| 1827 | - | return (*Private)(unsafe.Pointer(rawRet)) | |||
| 1828 | - | } | |||
| 1829 | - | } | |||
| 1830 | - | ||||
| 1831 | - | // OverridePrivateGet sets the "private_get" callback function. | |||
| 1832 | - | // virtual function pointer for g_private_get() | |||
| 1833 | - | func (x *ThreadFunctions) OverridePrivateGet(cb func(*Private) uintptr) { | |||
| 1834 | - | if cb == nil { | |||
| 1835 | - | x.xPrivateGet = 0 | |||
| 1836 | - | } else { | |||
| 1837 | - | x.xPrivateGet = purego.NewCallback(func(PrivateKeyVarp *Private) uintptr { | |||
| 1838 | - | return cb(PrivateKeyVarp) | |||
| 1839 | - | }) | |||
| 1840 | - | } | |||
| 1841 | - | } | |||
| 1842 | - | ||||
| 1843 | - | // GetPrivateGet gets the "private_get" callback function. | |||
| 1844 | - | // virtual function pointer for g_private_get() | |||
| 1845 | - | func (x *ThreadFunctions) GetPrivateGet() func(*Private) uintptr { | |||
| 1846 | - | if x.xPrivateGet == 0 { | |||
| 1847 | - | return nil | |||
| 1848 | - | } | |||
| 1849 | - | var rawCallback func(PrivateKeyVarp *Private) uintptr | |||
| 1850 | - | purego.RegisterFunc(&rawCallback, x.xPrivateGet) | |||
| 1851 | - | return func(PrivateKeyVar *Private) uintptr { | |||
| 1852 | - | return rawCallback(PrivateKeyVar) | |||
| 1853 | - | } | |||
| 1854 | - | } | |||
| 1855 | - | ||||
| 1856 | - | // OverridePrivateSet sets the "private_set" callback function. | |||
| 1857 | - | // virtual function pointer for g_private_set() | |||
| 1858 | - | func (x *ThreadFunctions) OverridePrivateSet(cb func(*Private, uintptr)) { | |||
| 1859 | - | if cb == nil { | |||
| 1860 | - | x.xPrivateSet = 0 | |||
| 1861 | - | } else { | |||
| 1862 | - | x.xPrivateSet = purego.NewCallback(func(PrivateKeyVarp *Private, DataVarp uintptr) { | |||
| 1863 | - | cb(PrivateKeyVarp, DataVarp) | |||
| 1864 | - | }) | |||
| 1865 | - | } | |||
| 1866 | - | } | |||
| 1867 | - | ||||
| 1868 | - | // GetPrivateSet gets the "private_set" callback function. | |||
| 1869 | - | // virtual function pointer for g_private_set() | |||
| 1870 | - | func (x *ThreadFunctions) GetPrivateSet() func(*Private, uintptr) { | |||
| 1871 | - | if x.xPrivateSet == 0 { | |||
| 1872 | - | return nil | |||
| 1873 | - | } | |||
| 1874 | - | var rawCallback func(PrivateKeyVarp *Private, DataVarp uintptr) | |||
| 1875 | - | purego.RegisterFunc(&rawCallback, x.xPrivateSet) | |||
| 1876 | - | return func(PrivateKeyVar *Private, DataVar uintptr) { | |||
| 1877 | - | rawCallback(PrivateKeyVar, DataVar) | |||
| 1878 | - | } | |||
| 1879 | - | } | |||
| 1880 | - | ||||
| 1881 | - | // OverrideThreadCreate sets the "thread_create" callback function. | |||
| 1882 | - | // virtual function pointer for g_thread_create() | |||
| 1883 | - | func (x *ThreadFunctions) OverrideThreadCreate(cb func(*ThreadFunc, uintptr, uint, bool, bool, ThreadPriority, uintptr)) { | |||
| 1884 | - | if cb == nil { | |||
| 1885 | - | x.xThreadCreate = 0 | |||
| 1886 | - | } else { | |||
| 1887 | - | x.xThreadCreate = purego.NewCallback(func(FuncVarp uintptr, DataVarp uintptr, StackSizeVarp uint, JoinableVarp bool, BoundVarp bool, PriorityVarp ThreadPriority, ThreadVarp uintptr, cerrp **Error) { | |||
| 1888 | - | cb((*ThreadFunc)(unsafe.Pointer(FuncVarp)), DataVarp, StackSizeVarp, JoinableVarp, BoundVarp, PriorityVarp, ThreadVarp) | |||
| 1889 | - | }) | |||
| 1890 | - | } | |||
| 1891 | - | } | |||
| 1892 | - | ||||
| 1893 | - | // GetThreadCreate gets the "thread_create" callback function. | |||
| 1894 | - | // virtual function pointer for g_thread_create() | |||
| 1895 | - | func (x *ThreadFunctions) GetThreadCreate() func(*ThreadFunc, uintptr, uint, bool, bool, ThreadPriority, uintptr) { | |||
| 1896 | - | if x.xThreadCreate == 0 { | |||
| 1897 | - | return nil | |||
| 1898 | - | } | |||
| 1899 | - | var rawCallback func(FuncVarp uintptr, DataVarp uintptr, StackSizeVarp uint, JoinableVarp bool, BoundVarp bool, PriorityVarp ThreadPriority, ThreadVarp uintptr, cerrp **Error) | |||
| 1900 | - | purego.RegisterFunc(&rawCallback, x.xThreadCreate) | |||
| 1901 | - | return func(FuncVar *ThreadFunc, DataVar uintptr, StackSizeVar uint, JoinableVar bool, BoundVar bool, PriorityVar ThreadPriority, ThreadVar uintptr) { | |||
| 1902 | - | var cerr *Error | |||
| 1903 | - | rawCallback(NewCallback(FuncVar), DataVar, StackSizeVar, JoinableVar, BoundVar, PriorityVar, ThreadVar, &cerr) | |||
| 1904 | - | } | |||
| 1905 | - | } | |||
| 1906 | - | ||||
| 1907 | - | // OverrideThreadYield sets the "thread_yield" callback function. | |||
| 1908 | - | // virtual function pointer for g_thread_yield() | |||
| 1909 | - | func (x *ThreadFunctions) OverrideThreadYield(cb func()) { | |||
| 1910 | - | if cb == nil { | |||
| 1911 | - | x.xThreadYield = 0 | |||
| 1912 | - | } else { | |||
| 1913 | - | x.xThreadYield = purego.NewCallback(func() { | |||
| 1914 | - | cb() | |||
| 1915 | - | }) | |||
| 1916 | - | } | |||
| 1917 | - | } | |||
| 1918 | - | ||||
| 1919 | - | // GetThreadYield gets the "thread_yield" callback function. | |||
| 1920 | - | // virtual function pointer for g_thread_yield() | |||
| 1921 | - | func (x *ThreadFunctions) GetThreadYield() func() { | |||
| 1922 | - | if x.xThreadYield == 0 { | |||
| 1923 | - | return nil | |||
| 1924 | - | } | |||
| 1925 | - | var rawCallback func() | |||
| 1926 | - | purego.RegisterFunc(&rawCallback, x.xThreadYield) | |||
| 1927 | - | return func() { | |||
| 1928 | - | rawCallback() | |||
| 1929 | - | } | |||
| 1930 | - | } | |||
| 1931 | - | ||||
| 1932 | - | // OverrideThreadJoin sets the "thread_join" callback function. | |||
| 1933 | - | // virtual function pointer for g_thread_join() | |||
| 1934 | - | func (x *ThreadFunctions) OverrideThreadJoin(cb func(uintptr)) { | |||
| 1935 | - | if cb == nil { | |||
| 1936 | - | x.xThreadJoin = 0 | |||
| 1937 | - | } else { | |||
| 1938 | - | x.xThreadJoin = purego.NewCallback(func(ThreadVarp uintptr) { | |||
| 1939 | - | cb(ThreadVarp) | |||
| 1940 | - | }) | |||
| 1941 | - | } | |||
| 1942 | - | } | |||
| 1943 | - | ||||
| 1944 | - | // GetThreadJoin gets the "thread_join" callback function. | |||
| 1945 | - | // virtual function pointer for g_thread_join() | |||
| 1946 | - | func (x *ThreadFunctions) GetThreadJoin() func(uintptr) { | |||
| 1947 | - | if x.xThreadJoin == 0 { | |||
| 1948 | - | return nil | |||
| 1949 | - | } | |||
| 1950 | - | var rawCallback func(ThreadVarp uintptr) | |||
| 1951 | - | purego.RegisterFunc(&rawCallback, x.xThreadJoin) | |||
| 1952 | - | return func(ThreadVar uintptr) { | |||
| 1953 | - | rawCallback(ThreadVar) | |||
| 1954 | - | } | |||
| 1955 | - | } | |||
| 1956 | - | ||||
| 1957 | - | // OverrideThreadExit sets the "thread_exit" callback function. | |||
| 1958 | - | // virtual function pointer for g_thread_exit() | |||
| 1959 | - | func (x *ThreadFunctions) OverrideThreadExit(cb func()) { | |||
| 1960 | - | if cb == nil { | |||
| 1961 | - | x.xThreadExit = 0 | |||
| 1962 | - | } else { | |||
| 1963 | - | x.xThreadExit = purego.NewCallback(func() { | |||
| 1964 | - | cb() | |||
| 1965 | - | }) | |||
| 1966 | - | } | |||
| 1967 | - | } | |||
| 1968 | - | ||||
| 1969 | - | // GetThreadExit gets the "thread_exit" callback function. | |||
| 1970 | - | // virtual function pointer for g_thread_exit() | |||
| 1971 | - | func (x *ThreadFunctions) GetThreadExit() func() { | |||
| 1972 | - | if x.xThreadExit == 0 { | |||
| 1973 | - | return nil | |||
| 1974 | - | } | |||
| 1975 | - | var rawCallback func() | |||
| 1976 | - | purego.RegisterFunc(&rawCallback, x.xThreadExit) | |||
| 1977 | - | return func() { | |||
| 1978 | - | rawCallback() | |||
| 1979 | - | } | |||
| 1980 | - | } | |||
| 1981 | - | ||||
| 1982 | - | // OverrideThreadSetPriority sets the "thread_set_priority" callback function. | |||
| 1983 | - | // virtual function pointer for | |||
| 1984 | - | // | |||
| 1985 | - | // g_thread_set_priority() | |||
| 1986 | - | func (x *ThreadFunctions) OverrideThreadSetPriority(cb func(uintptr, ThreadPriority)) { | |||
| 1987 | - | if cb == nil { | |||
| 1988 | - | x.xThreadSetPriority = 0 | |||
| 1989 | - | } else { | |||
| 1990 | - | x.xThreadSetPriority = purego.NewCallback(func(ThreadVarp uintptr, PriorityVarp ThreadPriority) { | |||
| 1991 | - | cb(ThreadVarp, PriorityVarp) | |||
| 1992 | - | }) | |||
| 1993 | - | } | |||
| 1994 | - | } | |||
| 1995 | - | ||||
| 1996 | - | // GetThreadSetPriority gets the "thread_set_priority" callback function. | |||
| 1997 | - | // virtual function pointer for | |||
| 1998 | - | // | |||
| 1999 | - | // g_thread_set_priority() | |||
| 2000 | - | func (x *ThreadFunctions) GetThreadSetPriority() func(uintptr, ThreadPriority) { | |||
| 2001 | - | if x.xThreadSetPriority == 0 { | |||
| 2002 | - | return nil | |||
| 2003 | - | } | |||
| 2004 | - | var rawCallback func(ThreadVarp uintptr, PriorityVarp ThreadPriority) | |||
| 2005 | - | purego.RegisterFunc(&rawCallback, x.xThreadSetPriority) | |||
| 2006 | - | return func(ThreadVar uintptr, PriorityVar ThreadPriority) { | |||
| 2007 | - | rawCallback(ThreadVar, PriorityVar) | |||
| 2008 | - | } | |||
| 2009 | - | } | |||
| 2010 | - | ||||
| 2011 | - | // OverrideThreadSelf sets the "thread_self" callback function. | |||
| 2012 | - | // virtual function pointer for g_thread_self() | |||
| 2013 | - | func (x *ThreadFunctions) OverrideThreadSelf(cb func(uintptr)) { | |||
| 2014 | - | if cb == nil { | |||
| 2015 | - | x.xThreadSelf = 0 | |||
| 2016 | - | } else { | |||
| 2017 | - | x.xThreadSelf = purego.NewCallback(func(ThreadVarp uintptr) { | |||
| 2018 | - | cb(ThreadVarp) | |||
| 2019 | - | }) | |||
| 2020 | - | } | |||
| 2021 | - | } | |||
| 2022 | - | ||||
| 2023 | - | // GetThreadSelf gets the "thread_self" callback function. | |||
| 2024 | - | // virtual function pointer for g_thread_self() | |||
| 2025 | - | func (x *ThreadFunctions) GetThreadSelf() func(uintptr) { | |||
| 2026 | - | if x.xThreadSelf == 0 { | |||
| 2027 | - | return nil | |||
| 2028 | - | } | |||
| 2029 | - | var rawCallback func(ThreadVarp uintptr) | |||
| 2030 | - | purego.RegisterFunc(&rawCallback, x.xThreadSelf) | |||
| 2031 | - | return func(ThreadVar uintptr) { | |||
| 2032 | - | rawCallback(ThreadVar) | |||
| 2033 | - | } | |||
| 2034 | - | } | |||
| 2035 | - | ||||
| 2036 | - | // OverrideThreadEqual sets the "thread_equal" callback function. | |||
| 2037 | - | // used internally by recursive mutex locks and by some | |||
| 2038 | - | // | |||
| 2039 | - | // assertion checks | |||
| 2040 | - | func (x *ThreadFunctions) OverrideThreadEqual(cb func(uintptr, uintptr) bool) { | |||
| 2041 | - | if cb == nil { | |||
| 2042 | - | x.xThreadEqual = 0 | |||
| 2043 | - | } else { | |||
| 2044 | - | x.xThreadEqual = purego.NewCallback(func(Thread1Varp uintptr, Thread2Varp uintptr) bool { | |||
| 2045 | - | return cb(Thread1Varp, Thread2Varp) | |||
| 2046 | - | }) | |||
| 2047 | - | } | |||
| 2048 | - | } | |||
| 2049 | - | ||||
| 2050 | - | // GetThreadEqual gets the "thread_equal" callback function. | |||
| 2051 | - | // used internally by recursive mutex locks and by some | |||
| 2052 | - | // | |||
| 2053 | - | // assertion checks | |||
| 2054 | - | func (x *ThreadFunctions) GetThreadEqual() func(uintptr, uintptr) bool { | |||
| 2055 | - | if x.xThreadEqual == 0 { | |||
| 2056 | - | return nil | |||
| 2057 | - | } | |||
| 2058 | - | var rawCallback func(Thread1Varp uintptr, Thread2Varp uintptr) bool | |||
| 2059 | - | purego.RegisterFunc(&rawCallback, x.xThreadEqual) | |||
| 2060 | - | return func(Thread1Var uintptr, Thread2Var uintptr) bool { | |||
| 2061 | - | return rawCallback(Thread1Var, Thread2Var) | |||
| 2062 | - | } | |||
| 2063 | - | } | |||
| 2064 | - | ||||
| 2065 | - | // The #GMutex struct is an opaque data structure to represent a mutex | |||
| 2066 | - | // (mutual exclusion). It can be used to protect data against shared | |||
| 2067 | - | // access. | |||
| 2068 | - | // | |||
| 2069 | - | // Take for example the following function: | |||
| 2070 | - | // |[<!-- language="C" --> | |||
| 2071 | - | // | |||
| 2072 | - | // int | |||
| 2073 | - | // give_me_next_number (void) | |||
| 2074 | - | // { | |||
| 2075 | - | // static int current_number = 0; | |||
| 2076 | - | // | |||
| 2077 | - | // // now do a very complicated calculation to calculate the new | |||
| 2078 | - | // // number, this might for example be a random number generator | |||
| 2079 | - | // current_number = calc_next_number (current_number); | |||
| 2080 | - | // | |||
| 2081 | - | // return current_number; | |||
| 2082 | - | // } | |||
| 2083 | - | // | |||
| 2084 | - | // ]| | |||
| 2085 | - | // It is easy to see that this won't work in a multi-threaded | |||
| 2086 | - | // application. There current_number must be protected against shared | |||
| 2087 | - | // access. A #GMutex can be used as a solution to this problem: | |||
| 2088 | - | // |[<!-- language="C" --> | |||
| 2089 | - | // | |||
| 2090 | - | // int | |||
| 2091 | - | // give_me_next_number (void) | |||
| 2092 | - | // { | |||
| 2093 | - | // static GMutex mutex; | |||
| 2094 | - | // static int current_number = 0; | |||
| 2095 | - | // int ret_val; | |||
| 2096 | - | // | |||
| 2097 | - | // g_mutex_lock (&mutex); | |||
| 2098 | - | // ret_val = current_number = calc_next_number (current_number); | |||
| 2099 | - | // g_mutex_unlock (&mutex); | |||
| 2100 | - | // | |||
| 2101 | - | // return ret_val; | |||
| 2102 | - | // } | |||
| 2103 | - | // | |||
| 2104 | - | // ]| | |||
| 2105 | - | // Notice that the #GMutex is not initialised to any particular value. | |||
| 2106 | - | // Its placement in static storage ensures that it will be initialised | |||
| 2107 | - | // to all-zeros, which is appropriate. | |||
| 2108 | - | // | |||
| 2109 | - | // If a #GMutex is placed in other contexts (eg: embedded in a struct) | |||
| 2110 | - | // then it must be explicitly initialised using g_mutex_init(). | |||
| 2111 | - | // | |||
| 2112 | - | // A #GMutex should only be accessed via g_mutex_ functions. | |||
| 2113 | - | type Mutex = uintptr | |||
| 2114 | - | ||||
| 2115 | - | // Opaque type. See g_mutex_locker_new() for details. | |||
| 2116 | - | type MutexLocker = uintptr | |||
| 2117 | - | ||||
| 2118 | - | // Opaque type. See g_rw_lock_reader_locker_new() for details. | |||
| 2119 | - | type RWLockReaderLocker = uintptr | |||
| 2120 | - | ||||
| 2121 | - | // Opaque type. See g_rw_lock_writer_locker_new() for details. | |||
| 2122 | - | type RWLockWriterLocker = uintptr | |||
| 2123 | - | ||||
| 2124 | - | // Opaque type. See g_rec_mutex_locker_new() for details. | |||
| 2125 | - | type RecMutexLocker = uintptr | |||
| 2126 | - | ||||
| 2127 | - | // The possible statuses of a one-time initialization function | |||
| 2128 | - | // controlled by a #GOnce struct. | |||
| 2129 | - | type OnceStatus int | |||
| 2130 | - | ||||
| 2131 | - | const ( | |||
| 2132 | - | ||||
| 2133 | - | // the function has not been called yet. | |||
| 2134 | - | GOnceStatusNotcalledValue OnceStatus = 0 | |||
| 2135 | - | // the function call is currently in progress. | |||
| 2136 | - | GOnceStatusProgressValue OnceStatus = 1 | |||
| 2137 | - | // the function has been called. | |||
| 2138 | - | GOnceStatusReadyValue OnceStatus = 2 | |||
| 2139 | - | ) | |||
| 2140 | - | ||||
| 2141 | - | // Possible errors of thread related functions. | |||
| 2142 | - | type ThreadError int | |||
| 2143 | - | ||||
| 2144 | - | const ( | |||
| 2145 | - | ||||
| 2146 | - | // a thread couldn't be created due to resource | |||
| 2147 | - | // shortage. Try again later. | |||
| 2148 | - | GThreadErrorAgainValue ThreadError = 0 | |||
| 2149 | - | ) | |||
| 2150 | - | ||||
| 2151 | - | // Thread priorities. | |||
| 2152 | - | type ThreadPriority int | |||
| 2153 | - | ||||
| 2154 | - | const ( | |||
| 2155 | - | ||||
| 2156 | - | // a priority lower than normal | |||
| 2157 | - | GThreadPriorityLowValue ThreadPriority = 0 | |||
| 2158 | - | // the default priority | |||
| 2159 | - | GThreadPriorityNormalValue ThreadPriority = 1 | |||
| 2160 | - | // a priority higher than normal | |||
| 2161 | - | GThreadPriorityHighValue ThreadPriority = 2 | |||
| 2162 | - | // the highest priority | |||
| 2163 | - | GThreadPriorityUrgentValue ThreadPriority = 3 | |||
| 2164 | - | ) | |||
| 2165 | - | ||||
| 2166 | - | var xCondNew func() uintptr | |||
| 2167 | - | ||||
| 2168 | - | // Allocates and initializes a new #GCond. | |||
| 2169 | - | func CondNew() *Cond { | |||
| 2170 | - | core.LazyRegister(&xCondNew, "GLIB", "g_cond_new", false) | |||
| 2171 | - | ||||
| 2172 | - | cret := xCondNew() | |||
| 2173 | - | if cret == 0 { | |||
| 2174 | - | return nil | |||
| 2175 | - | } | |||
| 2176 | - | return (*Cond)(unsafe.Pointer(cret)) | |||
| 2177 | - | } | |||
| 2178 | - | ||||
| 2179 | - | var xGetNumProcessors func() uint | |||
| 2180 | - | ||||
| 2181 | - | // Determine the approximate number of threads that the system will | |||
| 2182 | - | // schedule simultaneously for this process. This is intended to be | |||
| 2183 | - | // used as a parameter to g_thread_pool_new() for CPU bound tasks and | |||
| 2184 | - | // similar cases. | |||
| 2185 | - | func GetNumProcessors() uint { | |||
| 2186 | - | core.LazyRegister(&xGetNumProcessors, "GLIB", "g_get_num_processors", false) | |||
| 2187 | - | ||||
| 2188 | - | cret := xGetNumProcessors() | |||
| 2189 | - | return cret | |||
| 2190 | - | } | |||
| 2191 | - | ||||
| 2192 | - | var xMutexNew func() *Mutex | |||
| 2193 | - | ||||
| 2194 | - | // Allocates and initializes a new #GMutex. | |||
| 2195 | - | func MutexNew() *Mutex { | |||
| 2196 | - | core.LazyRegister(&xMutexNew, "GLIB", "g_mutex_new", false) | |||
| 2197 | - | ||||
| 2198 | - | cret := xMutexNew() | |||
| 2199 | - | return cret | |||
| 2200 | - | } | |||
| 2201 | - | ||||
| 2202 | - | var xOnceInitEnter func(*uintptr) bool | |||
| 2203 | - | ||||
| 2204 | - | // Function to be called when starting a critical initialization | |||
| 2205 | - | // section. The argument @location must point to a static | |||
| 2206 | - | // 0-initialized variable that will be set to a value other than 0 at | |||
| 2207 | - | // the end of the initialization section. In combination with | |||
| 2208 | - | // g_once_init_leave() and the unique address @value_location, it can | |||
| 2209 | - | // be ensured that an initialization section will be executed only once | |||
| 2210 | - | // during a program's life time, and that concurrent threads are | |||
| 2211 | - | // blocked until initialization completed. To be used in constructs | |||
| 2212 | - | // like this: | |||
| 2213 | - | // | |||
| 2214 | - | // |[<!-- language="C" --> | |||
| 2215 | - | // | |||
| 2216 | - | // static gsize initialization_value = 0; | |||
| 2217 | - | // | |||
| 2218 | - | // if (g_once_init_enter (&initialization_value)) | |||
| 2219 | - | // { | |||
| 2220 | - | // gsize setup_value = 42; // initialization code here | |||
| 2221 | - | // | |||
| 2222 | - | // g_once_init_leave (&initialization_value, setup_value); | |||
| 2223 | - | // } | |||
| 2224 | - | // | |||
| 2225 | - | // // use initialization_value here | |||
| 2226 | - | // | |||
| 2227 | - | // ]| | |||
| 2228 | - | // | |||
| 2229 | - | // While @location has a `volatile` qualifier, this is a historical artifact and | |||
| 2230 | - | // the pointer passed to it should not be `volatile`. | |||
| 2231 | - | func OnceInitEnter(LocationVar *uintptr) bool { | |||
| 2232 | - | core.LazyRegister(&xOnceInitEnter, "GLIB", "g_once_init_enter", false) | |||
| 2233 | - | ||||
| 2234 | - | cret := xOnceInitEnter(LocationVar) | |||
| 2235 | - | return cret | |||
| 2236 | - | } | |||
| 2237 | - | ||||
| 2238 | - | var xOnceInitEnterImpl func(uint) bool | |||
| 2239 | - | ||||
| 2240 | - | func OnceInitEnterImpl(LocationVar uint) bool { | |||
| 2241 | - | core.LazyRegister(&xOnceInitEnterImpl, "GLIB", "g_once_init_enter_impl", false) | |||
| 2242 | - | ||||
| 2243 | - | cret := xOnceInitEnterImpl(LocationVar) | |||
| 2244 | - | return cret | |||
| 2245 | - | } | |||
| 2246 | - | ||||
| 2247 | - | var xOnceInitEnterPointer func(uintptr) bool | |||
| 2248 | - | ||||
| 2249 | - | // This functions behaves in the same way as g_once_init_enter(), but can | |||
| 2250 | - | // can be used to initialize pointers (or #guintptr) instead of #gsize. | |||
| 2251 | - | // | |||
| 2252 | - | // |[<!-- language="C" --> | |||
| 2253 | - | // | |||
| 2254 | - | // static MyStruct *interesting_struct = NULL; | |||
| 2255 | - | // | |||
| 2256 | - | // if (g_once_init_enter_pointer (&interesting_struct)) | |||
| 2257 | - | // { | |||
| 2258 | - | // MyStruct *setup_value = allocate_my_struct (); // initialization code here | |||
| 2259 | - | // | |||
| 2260 | - | // g_once_init_leave_pointer (&interesting_struct, g_steal_pointer (&setup_value)); | |||
| 2261 | - | // } | |||
| 2262 | - | // | |||
| 2263 | - | // // use interesting_struct here | |||
| 2264 | - | // | |||
| 2265 | - | // ]| | |||
| 2266 | - | func OnceInitEnterPointer(LocationVar uintptr) bool { | |||
| 2267 | - | core.LazyRegister(&xOnceInitEnterPointer, "GLIB", "g_once_init_enter_pointer", false) | |||
| 2268 | - | ||||
| 2269 | - | cret := xOnceInitEnterPointer(LocationVar) | |||
| 2270 | - | return cret | |||
| 2271 | - | } | |||
| 2272 | - | ||||
| 2273 | - | var xOnceInitLeave func(*uintptr, uint) | |||
| 2274 | - | ||||
| 2275 | - | // Counterpart to g_once_init_enter(). Expects a location of a static | |||
| 2276 | - | // 0-initialized initialization variable, and an initialization value | |||
| 2277 | - | // other than 0. Sets the variable to the initialization value, and | |||
| 2278 | - | // releases concurrent threads blocking in g_once_init_enter() on this | |||
| 2279 | - | // initialization variable. | |||
| 2280 | - | // | |||
| 2281 | - | // While @location has a `volatile` qualifier, this is a historical artifact and | |||
| 2282 | - | // the pointer passed to it should not be `volatile`. | |||
| 2283 | - | func OnceInitLeave(LocationVar *uintptr, ResultVar uint) { | |||
| 2284 | - | core.LazyRegister(&xOnceInitLeave, "GLIB", "g_once_init_leave", false) | |||
| 2285 | - | ||||
| 2286 | - | xOnceInitLeave(LocationVar, ResultVar) | |||
| 2287 | - | } | |||
| 2288 | - | ||||
| 2289 | - | var xOnceInitLeavePointer func(uintptr, uintptr) | |||
| 2290 | - | ||||
| 2291 | - | // Counterpart to g_once_init_enter_pointer(). Expects a location of a static | |||
| 2292 | - | // `NULL`-initialized initialization variable, and an initialization value | |||
| 2293 | - | // other than `NULL`. Sets the variable to the initialization value, and | |||
| 2294 | - | // releases concurrent threads blocking in g_once_init_enter_pointer() on this | |||
| 2295 | - | // initialization variable. | |||
| 2296 | - | // | |||
| 2297 | - | // This functions behaves in the same way as g_once_init_leave(), but | |||
| 2298 | - | // can be used to initialize pointers (or #guintptr) instead of #gsize. | |||
| 2299 | - | func OnceInitLeavePointer(LocationVar uintptr, ResultVar uintptr) { | |||
| 2300 | - | core.LazyRegister(&xOnceInitLeavePointer, "GLIB", "g_once_init_leave_pointer", false) | |||
| 2301 | - | ||||
| 2302 | - | xOnceInitLeavePointer(LocationVar, ResultVar) | |||
| 2303 | - | } | |||
| 2304 | - | ||||
| 2305 | - | var xPrivateNew func(uintptr) uintptr | |||
| 2306 | - | ||||
| 2307 | - | // Creates a new #GPrivate. | |||
| 2308 | - | func PrivateNew(NotifyVar *DestroyNotify) *Private { | |||
| 2309 | - | core.LazyRegister(&xPrivateNew, "GLIB", "g_private_new", false) | |||
| 2310 | - | ||||
| 2311 | - | cret := xPrivateNew(NewCallbackNullable(NotifyVar)) | |||
| 2312 | - | if cret == 0 { | |||
| 2313 | - | return nil | |||
| 2314 | - | } | |||
| 2315 | - | return (*Private)(unsafe.Pointer(cret)) | |||
| 2316 | - | } | |||
| 2317 | - | ||||
| 2318 | - | var xThreadCreate func(uintptr, uintptr, bool, **Error) uintptr | |||
| 2319 | - | ||||
| 2320 | - | // This function creates a new thread. | |||
| 2321 | - | // | |||
| 2322 | - | // The new thread executes the function @func with the argument @data. | |||
| 2323 | - | // If the thread was created successfully, it is returned. | |||
| 2324 | - | // | |||
| 2325 | - | // @error can be %NULL to ignore errors, or non-%NULL to report errors. | |||
| 2326 | - | // The error is set, if and only if the function returns %NULL. | |||
| 2327 | - | // | |||
| 2328 | - | // This function returns a reference to the created thread only if | |||
| 2329 | - | // @joinable is %TRUE. In that case, you must free this reference by | |||
| 2330 | - | // calling g_thread_unref() or g_thread_join(). If @joinable is %FALSE | |||
| 2331 | - | // then you should probably not touch the return value. | |||
| 2332 | - | func ThreadCreate(FuncVar *ThreadFunc, DataVar uintptr, JoinableVar bool) (*Thread, error) { | |||
| 2333 | - | core.LazyRegister(&xThreadCreate, "GLIB", "g_thread_create", false) | |||
| 2334 | - | var cerr *Error | |||
| 2335 | - | ||||
| 2336 | - | cret := xThreadCreate(NewCallback(FuncVar), DataVar, JoinableVar, &cerr) | |||
| 2337 | - | if cerr != nil { | |||
| 2338 | - | return nil, cerr | |||
| 2339 | - | } | |||
| 2340 | - | if cret == 0 { | |||
| 2341 | - | return nil, nil | |||
| 2342 | - | } | |||
| 2343 | - | return (*Thread)(unsafe.Pointer(cret)), nil | |||
| 2344 | - | } | |||
| 2345 | - | ||||
| 2346 | - | var xThreadCreateFull func(uintptr, uintptr, uint, bool, bool, ThreadPriority, **Error) uintptr | |||
| 2347 | - | ||||
| 2348 | - | // This function creates a new thread. | |||
| 2349 | - | func ThreadCreateFull(FuncVar *ThreadFunc, DataVar uintptr, StackSizeVar uint, JoinableVar bool, BoundVar bool, PriorityVar ThreadPriority) (*Thread, error) { | |||
| 2350 | - | core.LazyRegister(&xThreadCreateFull, "GLIB", "g_thread_create_full", false) | |||
| 2351 | - | var cerr *Error | |||
| 2352 | - | ||||
| 2353 | - | cret := xThreadCreateFull(NewCallback(FuncVar), DataVar, StackSizeVar, JoinableVar, BoundVar, PriorityVar, &cerr) | |||
| 2354 | - | if cerr != nil { | |||
| 2355 | - | return nil, cerr | |||
| 2356 | - | } | |||
| 2357 | - | if cret == 0 { | |||
| 2358 | - | return nil, nil | |||
| 2359 | - | } | |||
| 2360 | - | return (*Thread)(unsafe.Pointer(cret)), nil | |||
| 2361 | - | } | |||
| 2362 | - | ||||
| 2363 | - | var xThreadExit func(uintptr) | |||
| 2364 | - | ||||
| 2365 | - | // Terminates the current thread. | |||
| 2366 | - | // | |||
| 2367 | - | // If another thread is waiting for us using g_thread_join() then the | |||
| 2368 | - | // waiting thread will be woken up and get @retval as the return value | |||
| 2369 | - | // of g_thread_join(). | |||
| 2370 | - | // | |||
| 2371 | - | // Calling g_thread_exit() with a parameter @retval is equivalent to | |||
| 2372 | - | // returning @retval from the function @func, as given to g_thread_new(). | |||
| 2373 | - | // | |||
| 2374 | - | // You must only call g_thread_exit() from a thread that you created | |||
| 2375 | - | // yourself with g_thread_new() or related APIs. You must not call | |||
| 2376 | - | // this function from a thread created with another threading library | |||
| 2377 | - | // or or from within a #GThreadPool. | |||
| 2378 | - | func ThreadExit(RetvalVar uintptr) { | |||
| 2379 | - | core.LazyRegister(&xThreadExit, "GLIB", "g_thread_exit", false) | |||
| 2380 | - | ||||
| 2381 | - | xThreadExit(RetvalVar) | |||
| 2382 | - | } | |||
| 2383 | - | ||||
| 2384 | - | var xThreadForeach func(uintptr, uintptr) | |||
| 2385 | - | ||||
| 2386 | - | // Call @thread_func on all #GThreads that have been | |||
| 2387 | - | // created with g_thread_create(). | |||
| 2388 | - | // | |||
| 2389 | - | // Note that threads may decide to exit while @thread_func is | |||
| 2390 | - | // running, so without intimate knowledge about the lifetime of | |||
| 2391 | - | // foreign threads, @thread_func shouldn't access the GThread* | |||
| 2392 | - | // pointer passed in as first argument. However, @thread_func will | |||
| 2393 | - | // not be called for threads which are known to have exited already. | |||
| 2394 | - | // | |||
| 2395 | - | // Due to thread lifetime checks, this function has an execution complexity | |||
| 2396 | - | // which is quadratic in the number of existing threads. | |||
| 2397 | - | func ThreadForeach(ThreadFuncVar *Func, UserDataVar uintptr) { | |||
| 2398 | - | core.LazyRegister(&xThreadForeach, "GLIB", "g_thread_foreach", false) | |||
| 2399 | - | ||||
| 2400 | - | xThreadForeach(NewCallback(ThreadFuncVar), UserDataVar) | |||
| 2401 | - | } | |||
| 2402 | - | ||||
| 2403 | - | var xThreadGetInitialized func() bool | |||
| 2404 | - | ||||
| 2405 | - | // Indicates if g_thread_init() has been called. | |||
| 2406 | - | func ThreadGetInitialized() bool { | |||
| 2407 | - | core.LazyRegister(&xThreadGetInitialized, "GLIB", "g_thread_get_initialized", false) | |||
| 2408 | - | ||||
| 2409 | - | cret := xThreadGetInitialized() | |||
| 2410 | - | return cret | |||
| 2411 | - | } | |||
| 2412 | - | ||||
| 2413 | - | var xThreadInit func(uintptr) | |||
| 2414 | - | ||||
| 2415 | - | // If you use GLib from more than one thread, you must initialize the | |||
| 2416 | - | // thread system by calling g_thread_init(). | |||
| 2417 | - | // | |||
| 2418 | - | // Since version 2.24, calling g_thread_init() multiple times is allowed, | |||
| 2419 | - | // but nothing happens except for the first call. | |||
| 2420 | - | // | |||
| 2421 | - | // Since version 2.32, GLib does not support custom thread implementations | |||
| 2422 | - | // anymore and the @vtable parameter is ignored and you should pass %NULL. | |||
| 2423 | - | // | |||
| 2424 | - | // ::: note | |||
| 2425 | - | // | |||
| 2426 | - | // g_thread_init() must not be called directly or indirectly in a | |||
| 2427 | - | // callback from GLib. Also no mutexes may be currently locked | |||
| 2428 | - | // while calling g_thread_init(). | |||
| 2429 | - | // | |||
| 2430 | - | // ::: note | |||
| 2431 | - | // | |||
| 2432 | - | // To use g_thread_init() in your program, you have to link with | |||
| 2433 | - | // the libraries that the command `pkg-config --libs gthread-2.0` | |||
| 2434 | - | // outputs. This is not the case for all the other thread-related | |||
| 2435 | - | // functions of GLib. Those can be used without having to link | |||
| 2436 | - | // with the thread libraries. | |||
| 2437 | - | func ThreadInit(VtableVar uintptr) { | |||
| 2438 | - | core.LazyRegister(&xThreadInit, "GLIB", "g_thread_init", false) | |||
| 2439 | - | ||||
| 2440 | - | xThreadInit(VtableVar) | |||
| 2441 | - | } | |||
| 2442 | - | ||||
| 2443 | - | var xThreadInitWithErrorcheckMutexes func(uintptr) | |||
| 2444 | - | ||||
| 2445 | - | func ThreadInitWithErrorcheckMutexes(VtableVar uintptr) { | |||
| 2446 | - | core.LazyRegister(&xThreadInitWithErrorcheckMutexes, "GLIB", "g_thread_init_with_errorcheck_mutexes", false) | |||
| 2447 | - | ||||
| 2448 | - | xThreadInitWithErrorcheckMutexes(VtableVar) | |||
| 2449 | - | } | |||
| 2450 | - | ||||
| 2451 | - | var xThreadSelf func() uintptr | |||
| 2452 | - | ||||
| 2453 | - | // This function returns the #GThread corresponding to the | |||
| 2454 | - | // current thread. Note that this function does not increase | |||
| 2455 | - | // the reference count of the returned struct. | |||
| 2456 | - | // | |||
| 2457 | - | // This function will return a #GThread even for threads that | |||
| 2458 | - | // were not created by GLib (i.e. those created by other threading | |||
| 2459 | - | // APIs). This may be useful for thread identification purposes | |||
| 2460 | - | // (i.e. comparisons) but you must not use GLib functions (such | |||
| 2461 | - | // as g_thread_join()) on these threads. | |||
| 2462 | - | func ThreadSelf() *Thread { | |||
| 2463 | - | core.LazyRegister(&xThreadSelf, "GLIB", "g_thread_self", false) | |||
| 2464 | - | ||||
| 2465 | - | cret := xThreadSelf() | |||
| 2466 | - | if cret == 0 { | |||
| 2467 | - | return nil | |||
| 2468 | - | } | |||
| 2469 | - | return (*Thread)(unsafe.Pointer(cret)) | |||
| 2470 | - | } | |||
| 2471 | - | ||||
| 2472 | - | var xThreadYield func() | |||
| 2473 | - | ||||
| 2474 | - | // Causes the calling thread to voluntarily relinquish the CPU, so | |||
| 2475 | - | // that other threads can run. | |||
| 2476 | - | // | |||
| 2477 | - | // This function is often used as a method to make busy wait less evil. | |||
| 2478 | - | func ThreadYield() { | |||
| 2479 | - | core.LazyRegister(&xThreadYield, "GLIB", "g_thread_yield", false) | |||
| 2480 | - | ||||
| 2481 | - | xThreadYield() | |||
| 2482 | - | } | |||
| 2483 | - | ||||
| 2484 | - | func init() { | |||
| 2485 | - | core.SetPackageName("GLIB", "glib-2.0") | |||
| 2486 | - | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | |||
| 2487 | - | } | |||
D vendor/github.com/bnema/puregotk/v4/glib/gthreadpool.go +0 -278 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gtimer.go +0 -162 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gtimezone.go +0 -378 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gtrashstack.go +0 -88 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gtree.go +0 -521 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gtypes.go +0 -250 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gunicode.go +0 -1703 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/guri.go +0 -1112 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gutils.go +0 -766 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/guuid.go +0 -38 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gvariant-parser.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gvariant.go +0 -3134 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gvarianttype.go +0 -730 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gversion.go +0 -33 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gversionmacros.go +0 -18 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/main.go +0 -144 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/more.go +0 -366 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/more_other.go +0 -8 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/more_sysv.go +0 -29 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/more_windows.go +0 -6 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gmodule/gmodule.go +0 -168 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gmodule/gmoduleconf.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gmodule/main.go +0 -21 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gbinding.go +0 -361 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gbindinggroup.go +0 -142 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gboxed.go +0 -58 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gclosure.go +0 -549 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/genums.go +0 -292 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/glib-types.go +0 -25 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gmarshal.go +0 -237 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gobject.go +0 -2267 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gparam.go +0 -935 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gparamspecs.go +0 -1291 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gsignal.go +0 -839 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gsignalgroup.go +0 -265 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gsourceclosure.go +0 -43 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gtype.go +0 -1702 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gtypemodule.go +0 -380 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gtypeplugin.go +0 -191 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gvalue.go +0 -951 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gvaluearray.go +0 -212 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gvaluecollector.go +0 -11 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gvaluetypes.go +0 -45 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/main.go +0 -37 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/more.go +0 -160 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/types/types.go +0 -3 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-box.go +0 -408 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-config.go +0 -55 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-euler.go +0 -408 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-frustum.go +0 -161 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-macros.go +0 -8 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-matrix.go +0 -885 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-plane.go +0 -220 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-point.go +0 -196 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-point3d.go +0 -235 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-quad.go +0 -140 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-quaternion.go +0 -331 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-ray.go +0 -274 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-rect.go +0 -485 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-size.go +0 -137 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-sphere.go +0 -195 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-triangle.go +0 -244 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-types.go +0 -53 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-vec2.go +0 -331 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-vec3.go +0 -417 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-vec4.go +0 -431 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskblendnode.go +0 -106 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskblurnode.go +0 -87 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskbordernode.go +0 -97 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskbroadwayrenderer.go +0 -86 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskcaironode.go +0 -95 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskcairorenderer.go +0 -87 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskclipnode.go +0 -94 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskcolormatrixnode.go +0 -114 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskcolornode.go +0 -79 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskcomponenttransfer.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskcomponenttransfernode.go +0 -95 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskcompositenode.go +0 -112 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskconicgradientnode.go +0 -123 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskcontainernode.go +0 -89 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskcopynode.go +0 -79 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskcrossfadenode.go +0 -105 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskdebugnode.go +0 -91 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskenums.go +0 -592 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskfillnode.go +0 -106 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskglrenderer.go +0 -127 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskglshader.go +0 -682 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskglshadernode.go +0 -138 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskinsetshadownode.go +0 -131 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskisolationnode.go +0 -95 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gsklineargradientnode.go +0 -156 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskmasknode.go +0 -109 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskopacitynode.go +0 -88 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskoutsetshadownode.go +0 -131 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskpastenode.go +0 -69 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskpath.go +0 -118 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskpathpoint.go +0 -189 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskradialgradientnode.go +0 -188 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskrenderer.go +0 -227 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskrendernode.go +0 -338 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskrenderreplay.go +0 -33 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskrepeatnode.go +0 -94 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskroundedclipnode.go +0 -93 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskroundedrect.go +0 -191 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskshadownode.go +0 -129 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskstroke.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskstrokenode.go +0 -115 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gsksubsurfacenode.go +0 -92 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gsktextnode.go +0 -144 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gsktexturenode.go +0 -84 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gsktexturescalenode.go +0 -100 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gsktransform.go +0 -25 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gsktransformnode.go +0 -93 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gsktypes.go +0 -2171 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskvulkanrenderer.go +0 -85 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkaboutdialog.go +0 -1303 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkaccelgroup.go +0 -174 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkaccessible.go +0 -857 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkaccessiblehypertext.go +0 -484 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkaccessiblerange.go +0 -111 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkaccessibletext.go +0 -579 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkactionable.go +0 -361 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkactionbar.go +0 -460 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkadjustment.go +0 -604 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkalertdialog.go +0 -402 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkappchooser.go +0 -135 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkappchooserbutton.go +0 -656 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkappchooserdialog.go +0 -551 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkappchooserwidget.go +0 -681 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkapplication.go +0 -1023 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkapplicationwindow.go +0 -944 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkaspectframe.go +0 -517 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkassistant.go +0 -1046 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkatcontext.go +0 -140 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkbinlayout.go +0 -84 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkbitset.go +0 -135 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkbookmarklist.go +0 -318 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkboolfilter.go +0 -147 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkborder.go +0 -84 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkbox.go +0 -592 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkboxlayout.go +0 -250 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkbuildable.go +0 -717 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkbuilder.go +0 -1015 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkbuilderlistitemfactory.go +0 -206 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkbuilderscope.go +0 -347 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkbutton.go +0 -910 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcalendar.go +0 -836 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcellarea.go +0 -1892 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcellareabox.go +0 -241 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcellareacontext.go +0 -431 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcelleditable.go +0 -226 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcelllayout.go +0 -649 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrenderer.go +0 -1060 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrendereraccel.go +0 -168 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrenderercombo.go +0 -163 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrendererpixbuf.go +0 -98 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrendererprogress.go +0 -210 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrendererspin.go +0 -106 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrendererspinner.go +0 -114 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrenderertext.go +0 -764 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrenderertoggle.go +0 -224 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcellview.go +0 -691 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcenterbox.go +0 -560 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcenterlayout.go +0 -268 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcheckbutton.go +0 -872 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcolorbutton.go +0 -565 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcolorchooser.go +0 -317 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcolorchooserdialog.go +0 -510 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcolorchooserwidget.go +0 -415 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcolordialog.go +0 -242 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcolordialogbutton.go +0 -482 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcolorutils.go +0 -33 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcolumnview.go +0 -935 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcolumnviewcell.go +0 -213 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcolumnviewcolumn.go +0 -472 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcolumnviewrow.go +0 -337 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcolumnviewsorter.go +0 -171 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcombobox.go +0 -1338 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcomboboxtext.go +0 -649 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkconstraint.go +0 -362 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkconstraintguide.go +0 -316 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkconstraintlayout.go +0 -552 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcssenums.go +0 -40 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcsserror.go +0 -32 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcsslocation.go +0 -34 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcssprovider.go +0 -263 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcsssection.go +0 -201 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcustomfilter.go +0 -108 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcustomlayout.go +0 -98 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcustomsorter.go +0 -100 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkdebug.go +0 -98 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkdialog.go +0 -1015 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkdialogerror.go +0 -48 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkdirectorylist.go +0 -415 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkdragicon.go +0 -521 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkdragsource.go +0 -384 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkdrawingarea.go +0 -598 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkdropcontrollermotion.go +0 -227 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkdropdown.go +0 -757 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkdroptarget.go +0 -536 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkdroptargetasync.go +0 -340 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkeditable.go +0 -1116 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkeditablelabel.go +0 -686 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkemojichooser.go +0 -463 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkentry.go +0 -2296 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkentrybuffer.go +0 -665 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkentrycompletion.go +0 -772 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkenums.go +0 -2235 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkeventcontroller.go +0 -263 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkeventcontrollerfocus.go +0 -199 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkeventcontrollerkey.go +0 -234 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkeventcontrollerlegacy.go +0 -107 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkeventcontrollermotion.go +0 -204 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkeventcontrollerscroll.go +0 -281 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkexpander.go +0 -730 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkexpression.go +0 -975 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfilechooser.go +0 -711 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfilechooserdialog.go +0 -934 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfilechoosernative.go +0 -662 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfilechooserwidget.go +0 -1084 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfiledialog.go +0 -714 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfilefilter.go +0 -324 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfilelauncher.go +0 -249 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfilter.go +0 -485 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfilterlistmodel.go +0 -402 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfixed.go +0 -447 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfixedlayout.go +0 -196 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkflattenlistmodel.go +0 -251 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkflowbox.go +0 -1649 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfontbutton.go +0 -759 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfontchooser.go +0 -773 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfontchooserdialog.go +0 -643 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfontchooserwidget.go +0 -532 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfontdialog.go +0 -411 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfontdialogbutton.go +0 -712 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkframe.go +0 -559 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkgesture.go +0 -650 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkgestureclick.go +0 -188 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkgesturedrag.go +0 -184 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkgesturelongpress.go +0 -180 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkgesturepan.go +0 -134 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkgesturerotate.go +0 -120 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkgesturesingle.go +0 -229 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkgesturestylus.go +0 -292 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkgestureswipe.go +0 -129 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkgesturezoom.go +0 -122 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkglarea.go +0 -1007 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkgraphicsoffload.go +0 -491 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkgrid.go +0 -789 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkgridlayout.go +0 -494 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkgridview.go +0 -759 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkheaderbar.go +0 -635 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkiconpaintable.go +0 -349 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkicontheme.go +0 -535 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkiconview.go +0 -1817 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkimage.go +0 -879 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkimcontext.go +0 -1256 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkimcontextsimple.go +0 -165 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkimmodule.go +0 -7 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkimmulticontext.go +0 -229 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkinfobar.go +0 -705 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkinscription.go +0 -881 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtklabel.go +0 -1759 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtklayoutchild.go +0 -107 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtklayoutmanager.go +0 -407 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtklevelbar.go +0 -714 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtklinkbutton.go +0 -583 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtklistbase.go +0 -454 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtklistbox.go +0 -1802 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtklistheader.go +0 -181 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtklistitem.go +0 -383 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtklistitemfactory.go +0 -107 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkliststore.go +0 -945 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtklistview.go +0 -815 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtklockbutton.go +0 -571 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkmain.go +0 -183 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkmaplistmodel.go +0 -312 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkmediacontrols.go +0 -377 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkmediafile.go +0 -560 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkmediastream.go +0 -1173 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkmenubutton.go +0 -917 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkmessagedialog.go +0 -751 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkmountoperation.go +0 -286 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkmultifilter.go +0 -518 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkmultiselection.go +0 -351 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkmultisorter.go +0 -216 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtknative.go +0 -185 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtknativedialog.go +0 -474 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtknoselection.go +0 -356 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtknotebook.go +0 -1572 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtknumericsorter.go +0 -138 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkorientable.go +0 -97 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkoverlay.go +0 -489 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkoverlaylayout.go +0 -207 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkpadcontroller.go +0 -223 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkpagesetup.go +0 -454 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkpagesetupunixdialog.go +0 -497 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkpaned.go +0 -930 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkpapersize.go +0 -375 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkpasswordentry.go +0 -756 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkpasswordentrybuffer.go +0 -82 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkpicture.go +0 -835 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkpopover.go +0 -931 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkpopoverbin.go +0 -521 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkpopovermenu.go +0 -627 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkpopovermenubar.go +0 -407 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkprintcontext.go +0 -272 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkprintdialog.go +0 -488 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkprinter.go +0 -564 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkprintjob.go +0 -486 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkprintoperation.go +0 -1921 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkprintoperationpreview.go +0 -444 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkprintsettings.go +0 -1024 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkprintunixdialog.go +0 -756 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkprogressbar.go +0 -659 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkrange.go +0 -968 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkrecentmanager.go +0 -913 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkrender.go +0 -171 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkrevealer.go +0 -539 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkroot.go +0 -144 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkscale.go +0 -736 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkscalebutton.go +0 -726 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkscrollable.go +0 -266 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkscrollbar.go +0 -406 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkscrolledwindow.go +0 -1169 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtksearchbar.go +0 -534 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtksearchentry.go +0 -970 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtksectionmodel.go +0 -156 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkselectionfiltermodel.go +0 -208 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkselectionmodel.go +0 -606 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkseparator.go +0 -351 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtksettings.go +0 -1332 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcut.go +0 -210 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcutaction.go +0 -640 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcutcontroller.go +0 -330 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcutlabel.go +0 -419 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcutmanager.go +0 -135 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcutsgroup.go +0 -414 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcutssection.go +0 -510 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcutsshortcut.go +0 -540 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcutswindow.go +0 -597 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcuttrigger.go +0 -605 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkshow.go +0 -53 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtksignallistitemfactory.go +0 -241 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtksingleselection.go +0 -505 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtksizegroup.go +0 -243 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtksizerequest.go +0 -55 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkslicelistmodel.go +0 -320 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtksnapshot.go +0 -864 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtksorter.go +0 -482 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtksortlistmodel.go +0 -401 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkspinbutton.go +0 -1420 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkspinner.go +0 -397 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkstack.go +0 -1398 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkstacksidebar.go +0 -371 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkstackswitcher.go +0 -394 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkstatusbar.go +0 -464 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkstringfilter.go +0 -242 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkstringlist.go +0 -396 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkstringsorter.go +0 -199 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkstylecontext.go +0 -521 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkstyleprovider.go +0 -76 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtksvg.go +0 -877 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkswitch.go +0 -598 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtksymbolicpaintable.go +0 -174 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktestatcontext.go +0 -92 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktestutils.go +0 -65 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktext.go +0 -1750 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktextbuffer.go +0 -2305 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktextchild.go +0 -237 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktextiter.go +0 -1468 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktextmark.go +0 -252 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktexttag.go +0 -1574 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktexttagtable.go +0 -238 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktextview.go +0 -2855 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktogglebutton.go +0 -667 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktooltip.go +0 -165 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktreednd.go +0 -402 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktreeexpander.go +0 -611 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktreelistmodel.go +0 -593 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktreelistrowsorter.go +0 -125 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktreemodel.go +0 -1898 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktreemodelfilter.go +0 -741 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktreemodelsort.go +0 -688 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktreeselection.go +0 -334 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktreesortable.go +0 -379 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktreestore.go +0 -899 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktreeview.go +0 -2734 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktreeviewcolumn.go +0 -1028 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktypes.go +0 -534 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkurilauncher.go +0 -174 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkversion.go +0 -139 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkvideo.go +0 -630 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkviewport.go +0 -504 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkvolumebutton.go +0 -366 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkwidget.go +0 -5777 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkwidgetpaintable.go +0 -258 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkwindow.go +0 -2182 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkwindowcontrols.go +0 -551 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkwindowgroup.go +0 -231 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkwindowhandle.go +0 -383 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/main.go +0 -21 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/javascriptcore/JSCClass.go +0 -519 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/javascriptcore/JSCContext.go +0 -414 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/javascriptcore/JSCException.go +0 -252 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/javascriptcore/JSCOptions.go +0 -234 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/javascriptcore/JSCValue.go +0 -1092 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/javascriptcore/JSCVersion.go +0 -72 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/javascriptcore/JSCVirtualMachine.go +0 -85 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/javascriptcore/JSCWeakValue.go +0 -123 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/layershell/gtk4-layer-shell.go +0 -354 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/main.go +0 -21 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-attributes.go +0 -1850 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-bidi-type.go +0 -131 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-break.go +0 -139 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-color.go +0 -129 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-context.go +0 -430 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-coverage.go +0 -202 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-direction.go +0 -59 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-features.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-font.go +0 -2354 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-fontmap.go +0 -573 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-fontset-simple.go +0 -102 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-fontset.go +0 -366 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-glyph-item.go +0 -307 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-glyph.go +0 -440 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-gravity.go +0 -143 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-item.go +0 -253 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-language.go +0 -103 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-layout.go +0 -1847 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-markup.go +0 -97 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-matrix.go +0 -248 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-renderer.go +0 -789 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-script.go +0 -419 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-tabs.go +0 -283 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-types.go +0 -246 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-utils.go +0 -302 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-auth-basic.go +0 -45 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-auth-digest.go +0 -45 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-auth-domain-basic.go +0 -141 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-auth-domain-digest.go +0 -155 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-auth-domain.go +0 -402 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-auth-manager.go +0 -107 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-auth-negotiate.go +0 -64 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-auth-ntlm.go +0 -45 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-auth.go +0 -540 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-cache.go +0 -242 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-content-decoder.go +0 -86 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-content-sniffer.go +0 -101 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-cookie-jar-db.go +0 -110 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-cookie-jar-text.go +0 -106 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-cookie-jar.go +0 -467 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-cookie.go +0 -162 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-date-utils.go +0 -67 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-form.go +0 -146 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-headers.go +0 -250 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-hsts-enforcer-db.go +0 -107 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-hsts-enforcer.go +0 -308 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-hsts-policy.go +0 -7 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-logger.go +0 -265 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-message-body.go +0 -285 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-message-headers.go +0 -642 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-message.go +0 -1445 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-multipart-input-stream.go +0 -254 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-multipart.go +0 -161 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-server-message.go +0 -700 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-server.go +0 -1002 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-session-feature.go +0 -68 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-session.go +0 -1397 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-status.go +0 -193 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-tld.go +0 -96 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-types.go +0 -854 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-uri-utils.go +0 -96 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-version.go +0 -103 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-websocket-connection.go +0 -636 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-websocket-extension-deflate.go +0 -66 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-websocket-extension-manager.go +0 -70 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-websocket-extension.go +0 -328 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-websocket.go +0 -264 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitApplicationInfo.go +0 -133 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitAuthenticationRequest.go +0 -343 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitAutomationSession.go +0 -212 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitBackForwardList.go +0 -243 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitBackForwardListItem.go +0 -106 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitClipboardPermissionRequest.go +0 -84 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitColorChooserRequest.go +0 -182 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitContextMenu.go +0 -344 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitContextMenuActions.go +0 -124 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitContextMenuItem.go +0 -276 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitCookieManager.go +0 -347 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitCredential.go +0 -187 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitDeviceInfoPermissionRequest.go +0 -85 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitDownload.go +0 -429 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitEditingCommands.go +0 -61 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitEditorState.go +0 -193 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitError.go +0 -328 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitFaviconDatabase.go +0 -195 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitFeature.go +0 -326 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitFileChooserRequest.go +0 -219 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitFindController.go +0 -351 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitFormSubmissionRequest.go +0 -100 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitGeolocationManager.go +0 -281 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitGeolocationPermissionRequest.go +0 -100 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitHitTestResult.go +0 -354 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitImage.go +0 -267 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitInputMethodContext.go +0 -1260 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitMediaKeySystemPermissionRequest.go +0 -97 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitMemoryPressureSettings.go +0 -215 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitNavigationAction.go +0 -183 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitNavigationPolicyDecision.go +0 -92 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitNetworkProxySettings.go +0 -147 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitNetworkSession.go +0 -423 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitNotification.go +0 -210 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitNotificationPermissionRequest.go +0 -84 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitOptionMenu.go +0 -184 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitOptionMenuItem.go +0 -129 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitPermissionRequest.go +0 -149 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitPermissionStateQuery.go +0 -131 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitPointerLockPermissionRequest.go +0 -84 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitPolicyDecision.go +0 -341 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitPrintOperation.go +0 -273 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitResponsePolicyDecision.go +0 -138 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitScriptDialog.go +0 -177 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitSecurityManager.go +0 -218 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitSecurityOrigin.go +0 -163 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitSettings.go +0 -2622 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitURIRequest.go +0 -148 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitURIResponse.go +0 -194 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitURISchemeRequest.go +0 -197 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitURISchemeResponse.go +0 -141 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitURIUtilities.go +0 -28 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitUserContent.go +0 -323 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitUserContentFilterStore.go +0 -289 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitUserContentManager.go +0 -432 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitUserMediaPermissionRequest.go +0 -130 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitUserMessage.go +0 -230 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitVersion.go +0 -78 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebContext.go +0 -650 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebExtension.go +0 -617 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebExtensionMatchPattern.go +0 -264 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebInspector.go +0 -388 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebResource.go +0 -280 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebView.go +0 -4734 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebViewBase.go +0 -444 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebViewGtk4.go +0 -55 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebViewSessionState.go +0 -98 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebsiteData.go +0 -124 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebsiteDataAccessPermissionRequest.go +0 -103 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebsiteDataManager.go +0 -545 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebsitePolicies.go +0 -138 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitWindowProperties.go +0 -338 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitXRPermissionRequest.go +0 -241 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/more.go +0 -234 collapsed to keep the page light
D vendor/github.com/cenkalti/backoff/v4/.gitignore +0 -25 collapsed to keep the page light
D vendor/github.com/cenkalti/backoff/v4/LICENSE +0 -20 collapsed to keep the page light
D vendor/github.com/cenkalti/backoff/v4/README.md +0 -30 collapsed to keep the page light
D vendor/github.com/cenkalti/backoff/v4/backoff.go +0 -66 collapsed to keep the page light
D vendor/github.com/cenkalti/backoff/v4/context.go +0 -62 collapsed to keep the page light
D vendor/github.com/cenkalti/backoff/v4/exponential.go +0 -216 collapsed to keep the page light
D vendor/github.com/cenkalti/backoff/v4/retry.go +0 -146 collapsed to keep the page light
D vendor/github.com/cenkalti/backoff/v4/ticker.go +0 -97 collapsed to keep the page light
D vendor/github.com/cenkalti/backoff/v4/timer.go +0 -35 collapsed to keep the page light
D vendor/github.com/cenkalti/backoff/v4/tries.go +0 -38 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/cursor/cursor.go +0 -221 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/help/help.go +0 -240 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/key/key.go +0 -140 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/list/README.md +0 -71 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/list/defaultitem.go +0 -229 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/list/keys.go +0 -97 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/list/list.go +0 -1330 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/list/style.go +0 -99 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/paginator/paginator.go +0 -214 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/runeutil/runeutil.go +0 -102 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/spinner/spinner.go +0 -224 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/table/table.go +0 -450 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/textinput/textinput.go +0 -890 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/viewport/keymap.go +0 -60 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/viewport/viewport.go +0 -544 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/.gitattributes +0 -1 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/.gitignore +0 -23 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/.golangci.yml +0 -44 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/.goreleaser.yml +0 -5 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/README.md +0 -400 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/Taskfile.yaml +0 -14 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/commands.go +0 -222 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/exec.go +0 -133 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/focus.go +0 -9 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/inputreader_other.go +0 -19 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/inputreader_windows.go +0 -129 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/key.go +0 -715 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/key_other.go +0 -13 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/key_sequences.go +0 -130 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/key_windows.go +0 -441 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/logging.go +0 -53 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/mouse.go +0 -308 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/nil_renderer.go +0 -29 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/options.go +0 -252 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/renderer.go +0 -88 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/screen.go +0 -248 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/signals_unix.go +0 -33 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/signals_windows.go +0 -10 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/standard_renderer.go +0 -790 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/tea.go +0 -941 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/tea_init.go +0 -22 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/tty.go +0 -141 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/tty_unix.go +0 -49 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/tty_windows.go +0 -68 collapsed to keep the page light
D vendor/github.com/charmbracelet/colorprofile/.golangci.yml +0 -47 collapsed to keep the page light
D vendor/github.com/charmbracelet/colorprofile/.goreleaser.yml +0 -6 collapsed to keep the page light
D vendor/github.com/charmbracelet/colorprofile/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/charmbracelet/colorprofile/README.md +0 -109 collapsed to keep the page light
D vendor/github.com/charmbracelet/colorprofile/doc.go +0 -4 collapsed to keep the page light
D vendor/github.com/charmbracelet/colorprofile/env.go +0 -294 collapsed to keep the page light
D vendor/github.com/charmbracelet/colorprofile/env_other.go +0 -8 collapsed to keep the page light
D vendor/github.com/charmbracelet/colorprofile/env_windows.go +0 -40 collapsed to keep the page light
D vendor/github.com/charmbracelet/colorprofile/profile.go +0 -108 collapsed to keep the page light
D vendor/github.com/charmbracelet/colorprofile/writer.go +0 -171 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/.gitignore +0 -2 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/.golangci.yml +0 -41 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/.goreleaser.yml +0 -5 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/README.md +0 -815 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/Taskfile.yaml +0 -19 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/align.go +0 -83 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/ansi_unix.go +0 -7 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/ansi_windows.go +0 -22 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/borders.go +0 -490 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/color.go +0 -172 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/get.go +0 -556 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/join.go +0 -175 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/position.go +0 -154 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/ranges.go +0 -48 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/renderer.go +0 -181 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/runes.go +0 -43 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/set.go +0 -799 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/size.go +0 -41 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/style.go +0 -588 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/unset.go +0 -331 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/whitespace.go +0 -83 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/ansi.go +0 -11 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/ascii.go +0 -8 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/background.go +0 -178 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/c0.go +0 -79 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/c1.go +0 -72 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/charset.go +0 -55 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/clipboard.go +0 -75 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/color.go +0 -784 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/ctrl.go +0 -156 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/cursor.go +0 -637 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/cwd.go +0 -26 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/doc.go +0 -7 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/finalterm.go +0 -67 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/focus.go +0 -9 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/graphics.go +0 -62 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/hyperlink.go +0 -28 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/inband.go +0 -24 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/iterm2.go +0 -18 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/keypad.go +0 -28 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/kitty.go +0 -90 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/method.go +0 -196 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/mode.go +0 -690 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/mode_deprecated.go +0 -495 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/modes.go +0 -65 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/mouse.go +0 -172 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/notification.go +0 -32 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/palette.go +0 -34 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/parser.go +0 -417 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/parser/const.go +0 -79 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/parser/seq.go +0 -136 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/parser/transition_table.go +0 -273 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/parser_decode.go +0 -525 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/parser_handler.go +0 -60 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/parser_sync.go +0 -29 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/passthrough.go +0 -60 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/paste.go +0 -7 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/progress.go +0 -49 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/reset.go +0 -11 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/screen.go +0 -410 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/sgr.go +0 -79 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/status.go +0 -168 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/style.go +0 -819 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/termcap.go +0 -41 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/title.go +0 -48 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/truncate.go +0 -290 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/urxvt.go +0 -17 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/util.go +0 -92 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/width.go +0 -107 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/winop.go +0 -59 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/wrap.go +0 -472 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/xterm.go +0 -138 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/buffer.go +0 -474 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/cell.go +0 -487 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/errors.go +0 -6 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/geom.go +0 -21 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/hardscroll.go +0 -273 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/hashmap.go +0 -301 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/link.go +0 -14 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/pen.go +0 -92 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/screen.go +0 -1514 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/sequence.go +0 -131 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/style.go +0 -31 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/tabstop.go +0 -137 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/utils.go +0 -24 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/wrap.go +0 -191 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/writer.go +0 -340 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/term/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/term/term.go +0 -51 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/term/term_other.go +0 -39 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/term/term_plan9.go +0 -118 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/term/term_unix.go +0 -96 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/term/term_unix_bsd.go +0 -11 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/term/term_unix_other.go +0 -11 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/term/term_windows.go +0 -87 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/term/terminal.go +0 -12 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/term/util.go +0 -47 collapsed to keep the page light
D vendor/github.com/cli/browser/LICENSE +0 -23 collapsed to keep the page light
D vendor/github.com/cli/browser/README.md +0 -20 collapsed to keep the page light
D vendor/github.com/cli/browser/browser.go +0 -57 collapsed to keep the page light
D vendor/github.com/cli/browser/browser_darwin.go +0 -5 collapsed to keep the page light
D vendor/github.com/cli/browser/browser_freebsd.go +0 -15 collapsed to keep the page light
D vendor/github.com/cli/browser/browser_linux.go +0 -21 collapsed to keep the page light
D vendor/github.com/cli/browser/browser_netbsd.go +0 -14 collapsed to keep the page light
D vendor/github.com/cli/browser/browser_openbsd.go +0 -15 collapsed to keep the page light
D vendor/github.com/cli/browser/browser_unsupported.go +0 -12 collapsed to keep the page light
D vendor/github.com/cli/browser/browser_windows.go +0 -7 collapsed to keep the page light
D vendor/github.com/clipperhouse/displaywidth/.gitignore +0 -3 collapsed to keep the page light
D vendor/github.com/clipperhouse/displaywidth/AGENTS.md +0 -51 collapsed to keep the page light
D vendor/github.com/clipperhouse/displaywidth/CHANGELOG.md +0 -129 collapsed to keep the page light
D vendor/github.com/clipperhouse/displaywidth/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/clipperhouse/displaywidth/README.md +0 -190 collapsed to keep the page light
D vendor/github.com/clipperhouse/displaywidth/gen.go +0 -3 collapsed to keep the page light
D vendor/github.com/clipperhouse/displaywidth/graphemes.go +0 -73 collapsed to keep the page light
D vendor/github.com/clipperhouse/displaywidth/options.go +0 -30 collapsed to keep the page light
D vendor/github.com/clipperhouse/displaywidth/trie.go +0 -1699 collapsed to keep the page light
D vendor/github.com/clipperhouse/displaywidth/truncate.go +0 -149 collapsed to keep the page light
D vendor/github.com/clipperhouse/displaywidth/width.go +0 -239 collapsed to keep the page light
D vendor/github.com/clipperhouse/uax29/v2/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/clipperhouse/uax29/v2/graphemes/README.md +0 -120 collapsed to keep the page light
D vendor/github.com/clipperhouse/uax29/v2/graphemes/ansi.go +0 -138 collapsed to keep the page light
D vendor/github.com/clipperhouse/uax29/v2/graphemes/ansi8.go +0 -79 collapsed to keep the page light
D vendor/github.com/clipperhouse/uax29/v2/graphemes/iterator.go +0 -144 collapsed to keep the page light
D vendor/github.com/clipperhouse/uax29/v2/graphemes/reader.go +0 -25 collapsed to keep the page light
D vendor/github.com/clipperhouse/uax29/v2/graphemes/splitfunc.go +0 -205 collapsed to keep the page light
D vendor/github.com/clipperhouse/uax29/v2/graphemes/trie.go +0 -1717 collapsed to keep the page light
D vendor/github.com/cpuguy83/go-md2man/v2/LICENSE.md +0 -21 collapsed to keep the page light
D vendor/github.com/cpuguy83/go-md2man/v2/md2man/debug.go +0 -62 collapsed to keep the page light
D vendor/github.com/cpuguy83/go-md2man/v2/md2man/md2man.go +0 -24 collapsed to keep the page light
D vendor/github.com/cpuguy83/go-md2man/v2/md2man/roff.go +0 -416 collapsed to keep the page light
D vendor/github.com/davecgh/go-spew/LICENSE +0 -15 collapsed to keep the page light
D vendor/github.com/davecgh/go-spew/spew/bypass.go +0 -145 collapsed to keep the page light
D vendor/github.com/davecgh/go-spew/spew/bypasssafe.go +0 -38 collapsed to keep the page light
D vendor/github.com/davecgh/go-spew/spew/common.go +0 -341 collapsed to keep the page light
D vendor/github.com/davecgh/go-spew/spew/config.go +0 -306 collapsed to keep the page light
D vendor/github.com/davecgh/go-spew/spew/doc.go +0 -211 collapsed to keep the page light
D vendor/github.com/davecgh/go-spew/spew/dump.go +0 -509 collapsed to keep the page light
D vendor/github.com/davecgh/go-spew/spew/format.go +0 -419 collapsed to keep the page light
D vendor/github.com/davecgh/go-spew/spew/spew.go +0 -148 collapsed to keep the page light
D vendor/github.com/erikgeiser/coninput/.gitignore +0 -15 collapsed to keep the page light
D vendor/github.com/erikgeiser/coninput/.golangci.yml +0 -24 collapsed to keep the page light
D vendor/github.com/erikgeiser/coninput/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/erikgeiser/coninput/README.md +0 -2 collapsed to keep the page light
D vendor/github.com/erikgeiser/coninput/keycodes.go +0 -205 collapsed to keep the page light
D vendor/github.com/erikgeiser/coninput/mode.go +0 -82 collapsed to keep the page light
D vendor/github.com/erikgeiser/coninput/read.go +0 -154 collapsed to keep the page light
D vendor/github.com/erikgeiser/coninput/records.go +0 -486 collapsed to keep the page light
D vendor/github.com/fatih/color/LICENSE.md +0 -20 collapsed to keep the page light
D vendor/github.com/fatih/color/README.md +0 -189 collapsed to keep the page light
D vendor/github.com/fatih/color/color.go +0 -733 collapsed to keep the page light
D vendor/github.com/fatih/color/color_windows.go +0 -22 collapsed to keep the page light
D vendor/github.com/fatih/color/doc.go +0 -134 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/.gitignore +0 -10 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/.mailmap +0 -2 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/CHANGELOG.md +0 -651 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/CONTRIBUTING.md +0 -147 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/LICENSE +0 -25 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/README.md +0 -214 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/backend_fen.go +0 -469 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/backend_inotify.go +0 -597 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/backend_kqueue.go +0 -735 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/backend_other.go +0 -22 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/backend_windows.go +0 -702 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/fsnotify.go +0 -526 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/darwin.go +0 -20 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/debug_darwin.go +0 -15 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/debug_dragonfly.go +0 -15 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/debug_freebsd.go +0 -20 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/debug_kqueue.go +0 -32 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/debug_linux.go +0 -56 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/debug_netbsd.go +0 -15 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/debug_openbsd.go +0 -16 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/debug_solaris.go +0 -45 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/debug_windows.go +0 -40 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/freebsd.go +0 -20 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/internal.go +0 -2 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/unix.go +0 -20 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/unix2.go +0 -25 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/windows.go +0 -40 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/shared.go +0 -64 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/staticcheck.conf +0 -3 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/system_bsd.go +0 -7 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/system_darwin.go +0 -8 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/.editorconfig +0 -24 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/.envrc +0 -7 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/.gitignore +0 -10 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/.golangci.yaml +0 -48 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/CHANGELOG.md +0 -104 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/README.md +0 -81 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/decode_hooks.go +0 -714 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/devenv.lock +0 -103 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/devenv.nix +0 -14 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/devenv.yaml +0 -4 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/errors.go +0 -244 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/internal/errors/errors.go +0 -11 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/internal/errors/join.go +0 -9 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/internal/errors/join_go1_19.go +0 -61 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/mapstructure.go +0 -1948 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/reflect_go1_19.go +0 -44 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/reflect_go1_20.go +0 -10 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/.cirrus.yml +0 -11 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/.golangci.yml +0 -13 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/CONTRIBUTING.md +0 -50 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/LICENSE +0 -25 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/MAINTAINERS +0 -3 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/README.md +0 -47 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/SECURITY.md +0 -13 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/auth.go +0 -257 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/auth_anonymous.go +0 -16 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/auth_default_other.go +0 -7 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/auth_default_windows.go +0 -5 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/auth_external.go +0 -26 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/auth_sha1_windows.go +0 -109 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/call.go +0 -66 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/conn.go +0 -1009 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/conn_darwin.go +0 -36 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/conn_other.go +0 -83 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/conn_unix.go +0 -40 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/conn_windows.go +0 -13 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/dbus.go +0 -427 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/decoder.go +0 -376 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/default_handler.go +0 -338 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/doc.go +0 -70 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/encoder.go +0 -235 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/escape.go +0 -84 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/export.go +0 -484 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/match.go +0 -89 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/message.go +0 -393 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/object.go +0 -181 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/sequence.go +0 -24 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/sequential_handler.go +0 -125 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/server_interfaces.go +0 -107 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/sig.go +0 -298 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/transport_darwin.go +0 -6 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/transport_generic.go +0 -52 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/transport_nonce_tcp.go +0 -41 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/transport_tcp.go +0 -41 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/transport_unix.go +0 -291 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/transport_unixcred_dragonfly.go +0 -95 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/transport_unixcred_freebsd.go +0 -94 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/transport_unixcred_linux.go +0 -25 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/transport_unixcred_netbsd.go +0 -14 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/transport_unixcred_openbsd.go +0 -14 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/transport_zos.go +0 -6 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/variant.go +0 -169 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/variant_lexer.go +0 -284 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/variant_parser.go +0 -815 collapsed to keep the page light
D vendor/github.com/inconshreveable/mousetrap/LICENSE +0 -201 collapsed to keep the page light
D vendor/github.com/inconshreveable/mousetrap/README.md +0 -23 collapsed to keep the page light
D vendor/github.com/inconshreveable/mousetrap/trap_others.go +0 -16 collapsed to keep the page light
D vendor/github.com/inconshreveable/mousetrap/trap_windows.go +0 -42 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/.gitignore +0 -101 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/CHANGELOG.md +0 -72 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/LICENSE +0 -7 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/README.md +0 -490 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/colorgens.go +0 -67 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/colors.go +0 -1156 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/happy_palettegen.go +0 -29 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/hexcolor.go +0 -91 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/hsluv-snapshot-rev4.json +0 -1 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/hsluv.go +0 -208 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/rand.go +0 -22 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/soft_palettegen.go +0 -192 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/sort.go +0 -191 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/warm_palettegen.go +0 -29 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/widegamut.go +0 -290 collapsed to keep the page light
D vendor/github.com/mattn/go-colorable/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/mattn/go-colorable/README.md +0 -48 collapsed to keep the page light
D vendor/github.com/mattn/go-colorable/colorable_others.go +0 -38 collapsed to keep the page light
D vendor/github.com/mattn/go-colorable/colorable_windows.go +0 -1047 collapsed to keep the page light
D vendor/github.com/mattn/go-colorable/go.test.sh +0 -12 collapsed to keep the page light
D vendor/github.com/mattn/go-colorable/noncolorable.go +0 -57 collapsed to keep the page light
D vendor/github.com/mattn/go-isatty/LICENSE +0 -9 collapsed to keep the page light
D vendor/github.com/mattn/go-isatty/README.md +0 -50 collapsed to keep the page light
D vendor/github.com/mattn/go-isatty/doc.go +0 -2 collapsed to keep the page light
D vendor/github.com/mattn/go-isatty/go.test.sh +0 -12 collapsed to keep the page light
D vendor/github.com/mattn/go-isatty/isatty_bsd.go +0 -20 collapsed to keep the page light
D vendor/github.com/mattn/go-isatty/isatty_others.go +0 -17 collapsed to keep the page light
D vendor/github.com/mattn/go-isatty/isatty_plan9.go +0 -23 collapsed to keep the page light
D vendor/github.com/mattn/go-isatty/isatty_solaris.go +0 -21 collapsed to keep the page light
D vendor/github.com/mattn/go-isatty/isatty_tcgets.go +0 -20 collapsed to keep the page light
D vendor/github.com/mattn/go-isatty/isatty_windows.go +0 -136 collapsed to keep the page light
D vendor/github.com/mattn/go-localereader/README.md +0 -23 collapsed to keep the page light
D vendor/github.com/mattn/go-localereader/localereader.go +0 -19 collapsed to keep the page light
D vendor/github.com/mattn/go-localereader/localereader_unix.go +0 -11 collapsed to keep the page light
D vendor/github.com/mattn/go-localereader/localereader_windows.go +0 -85 collapsed to keep the page light
D vendor/github.com/mattn/go-runewidth/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/mattn/go-runewidth/README.md +0 -27 collapsed to keep the page light
D vendor/github.com/mattn/go-runewidth/benchstat.txt +0 -43 collapsed to keep the page light
D vendor/github.com/mattn/go-runewidth/new.txt +0 -54 collapsed to keep the page light
D vendor/github.com/mattn/go-runewidth/old.txt +0 -54 collapsed to keep the page light
D vendor/github.com/mattn/go-runewidth/runewidth.go +0 -420 collapsed to keep the page light
D vendor/github.com/mattn/go-runewidth/runewidth_appengine.go +0 -9 collapsed to keep the page light
D vendor/github.com/mattn/go-runewidth/runewidth_js.go +0 -9 collapsed to keep the page light
D vendor/github.com/mattn/go-runewidth/runewidth_posix.go +0 -81 collapsed to keep the page light
D vendor/github.com/mattn/go-runewidth/runewidth_table.go +0 -488 collapsed to keep the page light
D vendor/github.com/mattn/go-runewidth/runewidth_windows.go +0 -34 collapsed to keep the page light
D vendor/github.com/mfridman/interpolate/LICENSE.txt +0 -24 collapsed to keep the page light
D vendor/github.com/mfridman/interpolate/README.md +0 -85 collapsed to keep the page light
D vendor/github.com/mfridman/interpolate/env.go +0 -53 collapsed to keep the page light
D vendor/github.com/mfridman/interpolate/interpolate.go +0 -213 collapsed to keep the page light
D vendor/github.com/mfridman/interpolate/parser.go +0 -281 collapsed to keep the page light
D vendor/github.com/muesli/ansi/.gitignore +0 -15 collapsed to keep the page light
D vendor/github.com/muesli/ansi/.golangci.yml +0 -27 collapsed to keep the page light
D vendor/github.com/muesli/ansi/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/muesli/ansi/README.md +0 -31 collapsed to keep the page light
D vendor/github.com/muesli/ansi/ansi.go +0 -7 collapsed to keep the page light
D vendor/github.com/muesli/ansi/buffer.go +0 -40 collapsed to keep the page light
D vendor/github.com/muesli/ansi/compressor/writer.go +0 -132 collapsed to keep the page light
D vendor/github.com/muesli/ansi/writer.go +0 -76 collapsed to keep the page light
D vendor/github.com/muesli/cancelreader/.gitignore +0 -15 collapsed to keep the page light
D vendor/github.com/muesli/cancelreader/.golangci-soft.yml +0 -47 collapsed to keep the page light
D vendor/github.com/muesli/cancelreader/.golangci.yml +0 -29 collapsed to keep the page light
D vendor/github.com/muesli/cancelreader/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/muesli/cancelreader/README.md +0 -64 collapsed to keep the page light
D vendor/github.com/muesli/cancelreader/cancelreader.go +0 -93 collapsed to keep the page light
D vendor/github.com/muesli/cancelreader/cancelreader_bsd.go +0 -146 collapsed to keep the page light
D vendor/github.com/muesli/cancelreader/cancelreader_default.go +0 -12 collapsed to keep the page light
D vendor/github.com/muesli/cancelreader/cancelreader_linux.go +0 -154 collapsed to keep the page light
D vendor/github.com/muesli/cancelreader/cancelreader_select.go +0 -136 collapsed to keep the page light
D vendor/github.com/muesli/cancelreader/cancelreader_unix.go +0 -18 collapsed to keep the page light
D vendor/github.com/muesli/cancelreader/cancelreader_windows.go +0 -244 collapsed to keep the page light
D vendor/github.com/muesli/termenv/.gitignore +0 -15 collapsed to keep the page light
D vendor/github.com/muesli/termenv/.golangci-soft.yml +0 -43 collapsed to keep the page light
D vendor/github.com/muesli/termenv/.golangci.yml +0 -28 collapsed to keep the page light
D vendor/github.com/muesli/termenv/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/muesli/termenv/README.md +0 -431 collapsed to keep the page light
D vendor/github.com/muesli/termenv/ansi_compat.md +0 -65 collapsed to keep the page light
D vendor/github.com/muesli/termenv/ansicolors.go +0 -281 collapsed to keep the page light
D vendor/github.com/muesli/termenv/color.go +0 -205 collapsed to keep the page light
D vendor/github.com/muesli/termenv/constants_linux.go +0 -8 collapsed to keep the page light
D vendor/github.com/muesli/termenv/constants_solaris.go +0 -8 collapsed to keep the page light
D vendor/github.com/muesli/termenv/constants_unix.go +0 -13 collapsed to keep the page light
D vendor/github.com/muesli/termenv/constants_zos.go +0 -8 collapsed to keep the page light
D vendor/github.com/muesli/termenv/copy.go +0 -37 collapsed to keep the page light
D vendor/github.com/muesli/termenv/hyperlink.go +0 -11 collapsed to keep the page light
D vendor/github.com/muesli/termenv/notification.go +0 -11 collapsed to keep the page light
D vendor/github.com/muesli/termenv/output.go +0 -205 collapsed to keep the page light
D vendor/github.com/muesli/termenv/profile.go +0 -112 collapsed to keep the page light
D vendor/github.com/muesli/termenv/screen.go +0 -590 collapsed to keep the page light
D vendor/github.com/muesli/termenv/style.go +0 -126 collapsed to keep the page light
D vendor/github.com/muesli/termenv/templatehelper.go +0 -88 collapsed to keep the page light
D vendor/github.com/muesli/termenv/termenv.go +0 -115 collapsed to keep the page light
D vendor/github.com/muesli/termenv/termenv_other.go +0 -30 collapsed to keep the page light
D vendor/github.com/muesli/termenv/termenv_posix.go +0 -17 collapsed to keep the page light
D vendor/github.com/muesli/termenv/termenv_solaris.go +0 -22 collapsed to keep the page light
D vendor/github.com/muesli/termenv/termenv_unix.go +0 -301 collapsed to keep the page light
D vendor/github.com/muesli/termenv/termenv_windows.go +0 -140 collapsed to keep the page light
D vendor/github.com/natefinch/atomic/.gitignore +0 -24 collapsed to keep the page light
D vendor/github.com/natefinch/atomic/LICENSE +0 -22 collapsed to keep the page light
D vendor/github.com/natefinch/atomic/README.md +0 -35 collapsed to keep the page light
D vendor/github.com/natefinch/atomic/atomic.go +0 -73 collapsed to keep the page light
D vendor/github.com/natefinch/atomic/file_unix.go +0 -14 collapsed to keep the page light
D vendor/github.com/natefinch/atomic/file_windows.go +0 -33 collapsed to keep the page light
D vendor/github.com/natefinch/atomic/zfile_windows.go +0 -27 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/.dockerignore +0 -2 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/.gitattributes +0 -4 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/.gitignore +0 -8 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/.golangci.toml +0 -76 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/.goreleaser.yaml +0 -128 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/AGENTS.md +0 -73 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/CONTRIBUTING.md +0 -254 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/Dockerfile +0 -6 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/LICENSE +0 -22 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/README.md +0 -327 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/SECURITY.md +0 -16 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/capability_baseline.txt +0 -1 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/caps.sh +0 -101 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/ci.sh +0 -293 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/decode.go +0 -538 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/decode_fused.go +0 -362 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/doc.go +0 -2 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/errors.go +0 -233 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/internal/parserbridge/parserbridge.go +0 -37 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/internal/tracker/key.go +0 -49 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/internal/tracker/seen.go +0 -450 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/internal/tracker/tracker.go +0 -2 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/localtime.go +0 -121 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/marshaler.go +0 -1697 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/strict.go +0 -108 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/test-go-versions.sh +0 -597 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/toml.abnf +0 -246 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/types.go +0 -24 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/unmarshaler.go +0 -2396 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/unstable/ast.go +0 -124 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/unstable/bridge.go +0 -21 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/unstable/doc.go +0 -3 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/unstable/kind.go +0 -83 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/unstable/marshaler.go +0 -29 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/unstable/parser.go +0 -1686 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/unstable/unmarshaler.go +0 -43 collapsed to keep the page light
D vendor/github.com/pmezard/go-difflib/LICENSE +0 -27 collapsed to keep the page light
D vendor/github.com/pmezard/go-difflib/difflib/difflib.go +0 -772 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/.gitignore +0 -22 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/.golangci.yaml +0 -31 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/.goreleaser.yaml +0 -37 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/CHANGELOG.md +0 -350 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/LICENSE +0 -22 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/Makefile +0 -150 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/README.md +0 -500 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/create.go +0 -116 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/database/dialect/querier.go +0 -25 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/database/dialect/querier_extended.go +0 -22 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/database/dialects.go +0 -214 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/database/doc.go +0 -14 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/database/sql_extended.go +0 -23 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/database/store.go +0 -66 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/database/store_extended.go +0 -33 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/db.go +0 -48 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/dialect.go +0 -74 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/down.go +0 -107 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/fix.go +0 -54 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/globals.go +0 -104 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/goose.go +0 -141 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/helpers.go +0 -84 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/install.sh +0 -37 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/controller/store.go +0 -37 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/dialects/clickhouse.go +0 -53 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/dialects/dsql.go +0 -66 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/dialects/mysql.go +0 -62 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/dialects/postgres.go +0 -70 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/dialects/redshift.go +0 -52 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/dialects/spanner.go +0 -50 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/dialects/sqlite3.go +0 -51 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/dialects/sqlserver.go +0 -51 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/dialects/starrocks.go +0 -54 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/dialects/tidb.go +0 -52 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/dialects/turso.go +0 -14 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/dialects/vertica.go +0 -54 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/dialects/ydb.go +0 -72 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/gooseutil/resolve.go +0 -118 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/legacystore/legacystore.go +0 -173 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/sqlparser/parse.go +0 -59 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/sqlparser/parser.go +0 -394 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/lock/internal/store/postgres.go +0 -282 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/lock/internal/store/store.go +0 -51 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/lock/internal/table/config.go +0 -28 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/lock/internal/table/locker.go +0 -237 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/lock/locker.go +0 -32 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/lock/postgres.go +0 -165 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/lock/session_locker_options.go +0 -98 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/lock/table_locker_options.go +0 -136 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/log.go +0 -36 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/migrate.go +0 -379 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/migration.go +0 -398 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/migration_sql.go +0 -115 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/osfs.go +0 -28 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/provider.go +0 -669 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/provider_collect.go +0 -196 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/provider_errors.go +0 -48 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/provider_options.go +0 -280 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/provider_run.go +0 -535 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/provider_types.go +0 -91 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/redo.go +0 -51 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/register.go +0 -133 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/reset.go +0 -64 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/status.go +0 -64 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/up.go +0 -221 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/version.go +0 -52 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/LICENSE.txt +0 -21 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/README.md +0 -137 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/doc.go +0 -108 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/eastasianwidth.go +0 -2588 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/emojipresentation.go +0 -295 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/gen_breaktest.go +0 -215 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/gen_properties.go +0 -261 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/grapheme.go +0 -331 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/graphemeproperties.go +0 -1915 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/graphemerules.go +0 -176 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/line.go +0 -134 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/lineproperties.go +0 -3554 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/linerules.go +0 -626 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/properties.go +0 -208 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/sentence.go +0 -90 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/sentenceproperties.go +0 -2845 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/sentencerules.go +0 -276 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/step.go +0 -242 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/width.go +0 -61 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/word.go +0 -89 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/wordproperties.go +0 -1883 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/wordrules.go +0 -282 collapsed to keep the page light
D vendor/github.com/rs/zerolog/.gitignore +0 -27 collapsed to keep the page light
D vendor/github.com/rs/zerolog/CONTRIBUTING.md +0 -43 collapsed to keep the page light
D vendor/github.com/rs/zerolog/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/rs/zerolog/README.md +0 -858 collapsed to keep the page light
D vendor/github.com/rs/zerolog/array.go +0 -276 collapsed to keep the page light
D vendor/github.com/rs/zerolog/console.go +0 -535 collapsed to keep the page light
D vendor/github.com/rs/zerolog/context.go +0 -535 collapsed to keep the page light
D vendor/github.com/rs/zerolog/ctx.go +0 -51 collapsed to keep the page light
D vendor/github.com/rs/zerolog/encoder.go +0 -56 collapsed to keep the page light
D vendor/github.com/rs/zerolog/encoder_cbor.go +0 -45 collapsed to keep the page light
D vendor/github.com/rs/zerolog/encoder_json.go +0 -51 collapsed to keep the page light
D vendor/github.com/rs/zerolog/event.go +0 -919 collapsed to keep the page light
D vendor/github.com/rs/zerolog/example.jsonl +0 -7 collapsed to keep the page light
D vendor/github.com/rs/zerolog/fields.go +0 -312 collapsed to keep the page light
D vendor/github.com/rs/zerolog/globals.go +0 -208 collapsed to keep the page light
D vendor/github.com/rs/zerolog/globals_118.go +0 -30 collapsed to keep the page light
D vendor/github.com/rs/zerolog/go112.go +0 -7 collapsed to keep the page light
D vendor/github.com/rs/zerolog/hook.go +0 -64 collapsed to keep the page light
D vendor/github.com/rs/zerolog/internal/cbor/README.md +0 -56 collapsed to keep the page light
D vendor/github.com/rs/zerolog/internal/cbor/base.go +0 -19 collapsed to keep the page light
D vendor/github.com/rs/zerolog/internal/cbor/cbor.go +0 -102 collapsed to keep the page light
D vendor/github.com/rs/zerolog/internal/cbor/decode_stream.go +0 -654 collapsed to keep the page light
D vendor/github.com/rs/zerolog/internal/cbor/string.go +0 -117 collapsed to keep the page light
D vendor/github.com/rs/zerolog/internal/cbor/time.go +0 -111 collapsed to keep the page light
D vendor/github.com/rs/zerolog/internal/cbor/types.go +0 -524 collapsed to keep the page light
D vendor/github.com/rs/zerolog/internal/json/base.go +0 -19 collapsed to keep the page light
D vendor/github.com/rs/zerolog/internal/json/bytes.go +0 -85 collapsed to keep the page light
D vendor/github.com/rs/zerolog/internal/json/string.go +0 -149 collapsed to keep the page light
D vendor/github.com/rs/zerolog/internal/json/time.go +0 -124 collapsed to keep the page light
D vendor/github.com/rs/zerolog/internal/json/types.go +0 -466 collapsed to keep the page light
D vendor/github.com/rs/zerolog/log.go +0 -528 collapsed to keep the page light
D vendor/github.com/rs/zerolog/not_go112.go +0 -5 collapsed to keep the page light
D vendor/github.com/rs/zerolog/pretty.png +0 -0 binary file: no text diff
binary file: no text diff
D vendor/github.com/rs/zerolog/sampler.go +0 -137 collapsed to keep the page light
D vendor/github.com/rs/zerolog/slog.go +0 -247 collapsed to keep the page light
D vendor/github.com/rs/zerolog/syslog.go +0 -89 collapsed to keep the page light
D vendor/github.com/rs/zerolog/writer.go +0 -355 collapsed to keep the page light
D vendor/github.com/russross/blackfriday/v2/.gitignore +0 -8 collapsed to keep the page light
D vendor/github.com/russross/blackfriday/v2/.travis.yml +0 -17 collapsed to keep the page light
D vendor/github.com/russross/blackfriday/v2/LICENSE.txt +0 -29 collapsed to keep the page light
D vendor/github.com/russross/blackfriday/v2/README.md +0 -335 collapsed to keep the page light
D vendor/github.com/russross/blackfriday/v2/block.go +0 -1612 collapsed to keep the page light
D vendor/github.com/russross/blackfriday/v2/doc.go +0 -46 collapsed to keep the page light
D vendor/github.com/russross/blackfriday/v2/entities.go +0 -2236 collapsed to keep the page light
D vendor/github.com/russross/blackfriday/v2/esc.go +0 -70 collapsed to keep the page light
D vendor/github.com/russross/blackfriday/v2/html.go +0 -952 collapsed to keep the page light
D vendor/github.com/russross/blackfriday/v2/inline.go +0 -1228 collapsed to keep the page light
D vendor/github.com/russross/blackfriday/v2/markdown.go +0 -950 collapsed to keep the page light
D vendor/github.com/russross/blackfriday/v2/node.go +0 -360 collapsed to keep the page light
D vendor/github.com/russross/blackfriday/v2/smartypants.go +0 -457 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/.editorconfig +0 -21 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/.envrc +0 -4 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/.gitignore +0 -5 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/.golangci.yaml +0 -37 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/LICENSE +0 -19 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/README.md +0 -37 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/devenv.lock +0 -103 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/devenv.nix +0 -17 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/devenv.yaml +0 -4 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/file_type.go +0 -32 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/finder.go +0 -171 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/glob.go +0 -5 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/glob_windows.go +0 -8 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/helpers.go +0 -41 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/internal/queue/eager.go +0 -53 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/internal/queue/queue.go +0 -8 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/justfile +0 -14 collapsed to keep the page light
D vendor/github.com/sahilm/fuzzy/.editorconfig +0 -18 collapsed to keep the page light
D vendor/github.com/sahilm/fuzzy/.gitignore +0 -2 collapsed to keep the page light
D vendor/github.com/sahilm/fuzzy/CONTRIBUTING.md +0 -1 collapsed to keep the page light
D vendor/github.com/sahilm/fuzzy/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/sahilm/fuzzy/Makefile +0 -59 collapsed to keep the page light
D vendor/github.com/sahilm/fuzzy/README.md +0 -186 collapsed to keep the page light
D vendor/github.com/sahilm/fuzzy/fuzzy.go +0 -263 collapsed to keep the page light
D vendor/github.com/sethvargo/go-retry/LICENSE +0 -202 collapsed to keep the page light
D vendor/github.com/sethvargo/go-retry/README.md +0 -185 collapsed to keep the page light
D vendor/github.com/sethvargo/go-retry/backoff.go +0 -134 collapsed to keep the page light
D vendor/github.com/sethvargo/go-retry/backoff_constant.go +0 -25 collapsed to keep the page light
D vendor/github.com/sethvargo/go-retry/backoff_exponential.go +0 -47 collapsed to keep the page light
D vendor/github.com/sethvargo/go-retry/backoff_fibonacci.go +0 -56 collapsed to keep the page light
D vendor/github.com/sethvargo/go-retry/rand.go +0 -54 collapsed to keep the page light
D vendor/github.com/sethvargo/go-retry/retry.go +0 -104 collapsed to keep the page light
D vendor/github.com/spf13/afero/.editorconfig +0 -15 collapsed to keep the page light
D vendor/github.com/spf13/afero/.gitignore +0 -2 collapsed to keep the page light
D vendor/github.com/spf13/afero/.golangci.yaml +0 -48 collapsed to keep the page light
D vendor/github.com/spf13/afero/LICENSE.txt +0 -174 collapsed to keep the page light
D vendor/github.com/spf13/afero/README.md +0 -474 collapsed to keep the page light
D vendor/github.com/spf13/afero/afero.go +0 -111 collapsed to keep the page light
D vendor/github.com/spf13/afero/appveyor.yml +0 -10 collapsed to keep the page light
D vendor/github.com/spf13/afero/basepath.go +0 -222 collapsed to keep the page light
D vendor/github.com/spf13/afero/cacheOnReadFs.go +0 -315 collapsed to keep the page light
D vendor/github.com/spf13/afero/const_bsds.go +0 -23 collapsed to keep the page light
D vendor/github.com/spf13/afero/const_win_unix.go +0 -22 collapsed to keep the page light
D vendor/github.com/spf13/afero/copyOnWriteFs.go +0 -332 collapsed to keep the page light
D vendor/github.com/spf13/afero/httpFs.go +0 -114 collapsed to keep the page light
D vendor/github.com/spf13/afero/internal/common/adapters.go +0 -27 collapsed to keep the page light
D vendor/github.com/spf13/afero/iofs.go +0 -302 collapsed to keep the page light
D vendor/github.com/spf13/afero/ioutil.go +0 -243 collapsed to keep the page light
D vendor/github.com/spf13/afero/lstater.go +0 -27 collapsed to keep the page light
D vendor/github.com/spf13/afero/match.go +0 -110 collapsed to keep the page light
D vendor/github.com/spf13/afero/mem/dir.go +0 -37 collapsed to keep the page light
D vendor/github.com/spf13/afero/mem/dirmap.go +0 -43 collapsed to keep the page light
D vendor/github.com/spf13/afero/mem/file.go +0 -373 collapsed to keep the page light
D vendor/github.com/spf13/afero/memmap.go +0 -463 collapsed to keep the page light
D vendor/github.com/spf13/afero/os.go +0 -113 collapsed to keep the page light
D vendor/github.com/spf13/afero/path.go +0 -106 collapsed to keep the page light
D vendor/github.com/spf13/afero/readonlyfs.go +0 -96 collapsed to keep the page light
D vendor/github.com/spf13/afero/regexpfs.go +0 -223 collapsed to keep the page light
D vendor/github.com/spf13/afero/symlink.go +0 -55 collapsed to keep the page light
D vendor/github.com/spf13/afero/unionFile.go +0 -331 collapsed to keep the page light
D vendor/github.com/spf13/afero/util.go +0 -329 collapsed to keep the page light
D vendor/github.com/spf13/cast/.editorconfig +0 -15 collapsed to keep the page light
D vendor/github.com/spf13/cast/.gitignore +0 -25 collapsed to keep the page light
D vendor/github.com/spf13/cast/.golangci.yaml +0 -39 collapsed to keep the page light
D vendor/github.com/spf13/cast/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/spf13/cast/Makefile +0 -40 collapsed to keep the page light
D vendor/github.com/spf13/cast/README.md +0 -79 collapsed to keep the page light
D vendor/github.com/spf13/cast/alias.go +0 -69 collapsed to keep the page light
D vendor/github.com/spf13/cast/basic.go +0 -131 collapsed to keep the page light
D vendor/github.com/spf13/cast/cast.go +0 -84 collapsed to keep the page light
D vendor/github.com/spf13/cast/indirect.go +0 -37 collapsed to keep the page light
D vendor/github.com/spf13/cast/internal/time.go +0 -79 collapsed to keep the page light
D vendor/github.com/spf13/cast/internal/timeformattype_string.go +0 -27 collapsed to keep the page light
D vendor/github.com/spf13/cast/map.go +0 -212 collapsed to keep the page light
D vendor/github.com/spf13/cast/number.go +0 -549 collapsed to keep the page light
D vendor/github.com/spf13/cast/slice.go +0 -106 collapsed to keep the page light
D vendor/github.com/spf13/cast/time.go +0 -116 collapsed to keep the page light
D vendor/github.com/spf13/cast/zz_generated.go +0 -261 collapsed to keep the page light
D vendor/github.com/spf13/cobra/.gitignore +0 -39 collapsed to keep the page light
D vendor/github.com/spf13/cobra/.golangci.yml +0 -66 collapsed to keep the page light
D vendor/github.com/spf13/cobra/.mailmap +0 -3 collapsed to keep the page light
D vendor/github.com/spf13/cobra/CONDUCT.md +0 -37 collapsed to keep the page light
D vendor/github.com/spf13/cobra/CONTRIBUTING.md +0 -50 collapsed to keep the page light
D vendor/github.com/spf13/cobra/LICENSE.txt +0 -174 collapsed to keep the page light
D vendor/github.com/spf13/cobra/MAINTAINERS +0 -13 collapsed to keep the page light
D vendor/github.com/spf13/cobra/Makefile +0 -35 collapsed to keep the page light
D vendor/github.com/spf13/cobra/README.md +0 -133 collapsed to keep the page light
D vendor/github.com/spf13/cobra/SECURITY.md +0 -105 collapsed to keep the page light
D vendor/github.com/spf13/cobra/active_help.go +0 -60 collapsed to keep the page light
D vendor/github.com/spf13/cobra/args.go +0 -131 collapsed to keep the page light
D vendor/github.com/spf13/cobra/bash_completions.go +0 -709 collapsed to keep the page light
D vendor/github.com/spf13/cobra/bash_completionsV2.go +0 -484 collapsed to keep the page light
D vendor/github.com/spf13/cobra/cobra.go +0 -246 collapsed to keep the page light
D vendor/github.com/spf13/cobra/command.go +0 -2072 collapsed to keep the page light
D vendor/github.com/spf13/cobra/command_notwin.go +0 -20 collapsed to keep the page light
D vendor/github.com/spf13/cobra/command_win.go +0 -41 collapsed to keep the page light
D vendor/github.com/spf13/cobra/completions.go +0 -1020 collapsed to keep the page light
D vendor/github.com/spf13/cobra/doc/man_docs.go +0 -246 collapsed to keep the page light
D vendor/github.com/spf13/cobra/doc/md_docs.go +0 -158 collapsed to keep the page light
D vendor/github.com/spf13/cobra/doc/rest_docs.go +0 -186 collapsed to keep the page light
D vendor/github.com/spf13/cobra/doc/util.go +0 -52 collapsed to keep the page light
D vendor/github.com/spf13/cobra/doc/yaml_docs.go +0 -175 collapsed to keep the page light
D vendor/github.com/spf13/cobra/fish_completions.go +0 -292 collapsed to keep the page light
D vendor/github.com/spf13/cobra/flag_groups.go +0 -290 collapsed to keep the page light
D vendor/github.com/spf13/cobra/powershell_completions.go +0 -350 collapsed to keep the page light
D vendor/github.com/spf13/cobra/shell_completions.go +0 -98 collapsed to keep the page light
D vendor/github.com/spf13/cobra/zsh_completions.go +0 -308 collapsed to keep the page light
D vendor/github.com/spf13/pflag/.editorconfig +0 -12 collapsed to keep the page light
D vendor/github.com/spf13/pflag/.gitignore +0 -2 collapsed to keep the page light
D vendor/github.com/spf13/pflag/.golangci.yaml +0 -4 collapsed to keep the page light
D vendor/github.com/spf13/pflag/.travis.yml +0 -22 collapsed to keep the page light
D vendor/github.com/spf13/pflag/LICENSE +0 -28 collapsed to keep the page light
D vendor/github.com/spf13/pflag/README.md +0 -323 collapsed to keep the page light
D vendor/github.com/spf13/pflag/bool.go +0 -94 collapsed to keep the page light
D vendor/github.com/spf13/pflag/bool_func.go +0 -40 collapsed to keep the page light
D vendor/github.com/spf13/pflag/bool_slice.go +0 -185 collapsed to keep the page light
D vendor/github.com/spf13/pflag/bytes.go +0 -209 collapsed to keep the page light
D vendor/github.com/spf13/pflag/count.go +0 -96 collapsed to keep the page light
D vendor/github.com/spf13/pflag/duration.go +0 -86 collapsed to keep the page light
D vendor/github.com/spf13/pflag/duration_slice.go +0 -166 collapsed to keep the page light
D vendor/github.com/spf13/pflag/errors.go +0 -149 collapsed to keep the page light
D vendor/github.com/spf13/pflag/flag.go +0 -1289 collapsed to keep the page light
D vendor/github.com/spf13/pflag/float32.go +0 -88 collapsed to keep the page light
D vendor/github.com/spf13/pflag/float32_slice.go +0 -174 collapsed to keep the page light
D vendor/github.com/spf13/pflag/float64.go +0 -84 collapsed to keep the page light
D vendor/github.com/spf13/pflag/float64_slice.go +0 -166 collapsed to keep the page light
D vendor/github.com/spf13/pflag/func.go +0 -37 collapsed to keep the page light
D vendor/github.com/spf13/pflag/golangflag.go +0 -161 collapsed to keep the page light
D vendor/github.com/spf13/pflag/int.go +0 -84 collapsed to keep the page light
D vendor/github.com/spf13/pflag/int16.go +0 -88 collapsed to keep the page light
D vendor/github.com/spf13/pflag/int32.go +0 -88 collapsed to keep the page light
D vendor/github.com/spf13/pflag/int32_slice.go +0 -174 collapsed to keep the page light
D vendor/github.com/spf13/pflag/int64.go +0 -84 collapsed to keep the page light
D vendor/github.com/spf13/pflag/int64_slice.go +0 -166 collapsed to keep the page light
D vendor/github.com/spf13/pflag/int8.go +0 -88 collapsed to keep the page light
D vendor/github.com/spf13/pflag/int_slice.go +0 -158 collapsed to keep the page light
D vendor/github.com/spf13/pflag/ip.go +0 -97 collapsed to keep the page light
D vendor/github.com/spf13/pflag/ip_slice.go +0 -186 collapsed to keep the page light
D vendor/github.com/spf13/pflag/ipmask.go +0 -122 collapsed to keep the page light
D vendor/github.com/spf13/pflag/ipnet.go +0 -98 collapsed to keep the page light
D vendor/github.com/spf13/pflag/ipnet_slice.go +0 -147 collapsed to keep the page light
D vendor/github.com/spf13/pflag/string.go +0 -80 collapsed to keep the page light
D vendor/github.com/spf13/pflag/string_array.go +0 -125 collapsed to keep the page light
D vendor/github.com/spf13/pflag/string_slice.go +0 -163 collapsed to keep the page light
D vendor/github.com/spf13/pflag/string_to_int.go +0 -149 collapsed to keep the page light
D vendor/github.com/spf13/pflag/string_to_int64.go +0 -149 collapsed to keep the page light
D vendor/github.com/spf13/pflag/string_to_string.go +0 -168 collapsed to keep the page light
D vendor/github.com/spf13/pflag/text.go +0 -81 collapsed to keep the page light
D vendor/github.com/spf13/pflag/time.go +0 -124 collapsed to keep the page light
D vendor/github.com/spf13/pflag/uint.go +0 -88 collapsed to keep the page light
D vendor/github.com/spf13/pflag/uint16.go +0 -88 collapsed to keep the page light
D vendor/github.com/spf13/pflag/uint32.go +0 -88 collapsed to keep the page light
D vendor/github.com/spf13/pflag/uint64.go +0 -88 collapsed to keep the page light
D vendor/github.com/spf13/pflag/uint8.go +0 -88 collapsed to keep the page light
D vendor/github.com/spf13/pflag/uint_slice.go +0 -168 collapsed to keep the page light
D vendor/github.com/spf13/viper/.editorconfig +0 -21 collapsed to keep the page light
D vendor/github.com/spf13/viper/.envrc +0 -4 collapsed to keep the page light
D vendor/github.com/spf13/viper/.gitignore +0 -8 collapsed to keep the page light
D vendor/github.com/spf13/viper/.golangci.yaml +0 -118 collapsed to keep the page light
D vendor/github.com/spf13/viper/.yamlignore +0 -2 collapsed to keep the page light
D vendor/github.com/spf13/viper/.yamllint.yaml +0 -6 collapsed to keep the page light
D vendor/github.com/spf13/viper/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/spf13/viper/Makefile +0 -87 collapsed to keep the page light
D vendor/github.com/spf13/viper/README.md +0 -931 collapsed to keep the page light
D vendor/github.com/spf13/viper/TROUBLESHOOTING.md +0 -32 collapsed to keep the page light
D vendor/github.com/spf13/viper/UPGRADE.md +0 -147 collapsed to keep the page light
D vendor/github.com/spf13/viper/encoding.go +0 -181 collapsed to keep the page light
D vendor/github.com/spf13/viper/experimental.go +0 -8 collapsed to keep the page light
D vendor/github.com/spf13/viper/file.go +0 -104 collapsed to keep the page light
D vendor/github.com/spf13/viper/finder.go +0 -55 collapsed to keep the page light
D vendor/github.com/spf13/viper/flags.go +0 -57 collapsed to keep the page light
D vendor/github.com/spf13/viper/flake.lock +0 -255 collapsed to keep the page light
D vendor/github.com/spf13/viper/flake.nix +0 -61 collapsed to keep the page light
D vendor/github.com/spf13/viper/internal/encoding/dotenv/codec.go +0 -61 collapsed to keep the page light
D vendor/github.com/spf13/viper/internal/encoding/dotenv/map_utils.go +0 -41 collapsed to keep the page light
D vendor/github.com/spf13/viper/internal/encoding/json/codec.go +0 -17 collapsed to keep the page light
D vendor/github.com/spf13/viper/internal/encoding/toml/codec.go +0 -16 collapsed to keep the page light
D vendor/github.com/spf13/viper/internal/encoding/yaml/codec.go +0 -14 collapsed to keep the page light
D vendor/github.com/spf13/viper/internal/features/bind_struct.go +0 -5 collapsed to keep the page light
D vendor/github.com/spf13/viper/internal/features/bind_struct_default.go +0 -5 collapsed to keep the page light
D vendor/github.com/spf13/viper/internal/features/finder.go +0 -5 collapsed to keep the page light
D vendor/github.com/spf13/viper/internal/features/finder_default.go +0 -5 collapsed to keep the page light
D vendor/github.com/spf13/viper/logger.go +0 -31 collapsed to keep the page light
D vendor/github.com/spf13/viper/remote.go +0 -259 collapsed to keep the page light
D vendor/github.com/spf13/viper/util.go +0 -211 collapsed to keep the page light
D vendor/github.com/spf13/viper/viper.go +0 -2077 collapsed to keep the page light
D vendor/github.com/stretchr/objx/.codeclimate.yml +0 -21 collapsed to keep the page light
D vendor/github.com/stretchr/objx/.gitignore +0 -11 collapsed to keep the page light
D vendor/github.com/stretchr/objx/LICENSE +0 -22 collapsed to keep the page light
D vendor/github.com/stretchr/objx/README.md +0 -91 collapsed to keep the page light
D vendor/github.com/stretchr/objx/Taskfile.yml +0 -27 collapsed to keep the page light
D vendor/github.com/stretchr/objx/accessors.go +0 -197 collapsed to keep the page light
D vendor/github.com/stretchr/objx/conversions.go +0 -280 collapsed to keep the page light
D vendor/github.com/stretchr/objx/doc.go +0 -66 collapsed to keep the page light
D vendor/github.com/stretchr/objx/map.go +0 -214 collapsed to keep the page light
D vendor/github.com/stretchr/objx/mutations.go +0 -77 collapsed to keep the page light
D vendor/github.com/stretchr/objx/security.go +0 -12 collapsed to keep the page light
D vendor/github.com/stretchr/objx/tests.go +0 -17 collapsed to keep the page light
D vendor/github.com/stretchr/objx/type_specific.go +0 -346 collapsed to keep the page light
D vendor/github.com/stretchr/objx/type_specific_codegen.go +0 -2261 collapsed to keep the page light
D vendor/github.com/stretchr/objx/value.go +0 -159 collapsed to keep the page light
D vendor/github.com/stretchr/testify/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/stretchr/testify/assert/assertion_compare.go +0 -495 collapsed to keep the page light
D vendor/github.com/stretchr/testify/assert/assertion_format.go +0 -866 collapsed to keep the page light
D vendor/github.com/stretchr/testify/assert/assertion_format.go.tmpl +0 -5 collapsed to keep the page light
D vendor/github.com/stretchr/testify/assert/assertion_forward.go +0 -1723 collapsed to keep the page light
D vendor/github.com/stretchr/testify/assert/assertion_forward.go.tmpl +0 -5 collapsed to keep the page light
D vendor/github.com/stretchr/testify/assert/assertion_order.go +0 -81 collapsed to keep the page light
D vendor/github.com/stretchr/testify/assert/assertions.go +0 -2295 collapsed to keep the page light
D vendor/github.com/stretchr/testify/assert/doc.go +0 -50 collapsed to keep the page light
D vendor/github.com/stretchr/testify/assert/errors.go +0 -10 collapsed to keep the page light
D vendor/github.com/stretchr/testify/assert/forward_assertions.go +0 -16 collapsed to keep the page light
D vendor/github.com/stretchr/testify/assert/http_assertions.go +0 -165 collapsed to keep the page light
D vendor/github.com/stretchr/testify/assert/yaml/yaml_custom.go +0 -24 collapsed to keep the page light
D vendor/github.com/stretchr/testify/assert/yaml/yaml_default.go +0 -36 collapsed to keep the page light
D vendor/github.com/stretchr/testify/assert/yaml/yaml_fail.go +0 -17 collapsed to keep the page light
D vendor/github.com/stretchr/testify/mock/doc.go +0 -44 collapsed to keep the page light
D vendor/github.com/stretchr/testify/mock/mock.go +0 -1298 collapsed to keep the page light
D vendor/github.com/stretchr/testify/require/doc.go +0 -31 collapsed to keep the page light
D vendor/github.com/stretchr/testify/require/forward_requirements.go +0 -16 collapsed to keep the page light
D vendor/github.com/stretchr/testify/require/require.go +0 -2180 collapsed to keep the page light
D vendor/github.com/stretchr/testify/require/require.go.tmpl +0 -6 collapsed to keep the page light
D vendor/github.com/stretchr/testify/require/require_forward.go +0 -1724 collapsed to keep the page light
D vendor/github.com/stretchr/testify/require/require_forward.go.tmpl +0 -5 collapsed to keep the page light
D vendor/github.com/stretchr/testify/require/requirements.go +0 -29 collapsed to keep the page light
D vendor/github.com/subosito/gotenv/.env +0 -1 collapsed to keep the page light
D vendor/github.com/subosito/gotenv/.env.invalid +0 -1 collapsed to keep the page light
D vendor/github.com/subosito/gotenv/.gitignore +0 -4 collapsed to keep the page light
D vendor/github.com/subosito/gotenv/.golangci.yaml +0 -7 collapsed to keep the page light
D vendor/github.com/subosito/gotenv/CHANGELOG.md +0 -105 collapsed to keep the page light
D vendor/github.com/subosito/gotenv/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/subosito/gotenv/README.md +0 -129 collapsed to keep the page light
D vendor/github.com/subosito/gotenv/gotenv.go +0 -409 collapsed to keep the page light
D vendor/github.com/xo/terminfo/.gitignore +0 -9 collapsed to keep the page light
D vendor/github.com/xo/terminfo/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/xo/terminfo/README.md +0 -139 collapsed to keep the page light
D vendor/github.com/xo/terminfo/caps.go +0 -31 collapsed to keep the page light
D vendor/github.com/xo/terminfo/capvals.go +0 -1525 collapsed to keep the page light
D vendor/github.com/xo/terminfo/color.go +0 -88 collapsed to keep the page light
D vendor/github.com/xo/terminfo/dec.go +0 -245 collapsed to keep the page light
D vendor/github.com/xo/terminfo/load.go +0 -64 collapsed to keep the page light
D vendor/github.com/xo/terminfo/param.go +0 -405 collapsed to keep the page light
D vendor/github.com/xo/terminfo/stack.go +0 -48 collapsed to keep the page light
D vendor/github.com/xo/terminfo/terminfo.go +0 -479 collapsed to keep the page light
D vendor/go.uber.org/multierr/.codecov.yml +0 -15 collapsed to keep the page light
D vendor/go.uber.org/multierr/.gitignore +0 -4 collapsed to keep the page light
D vendor/go.uber.org/multierr/CHANGELOG.md +0 -95 collapsed to keep the page light
D vendor/go.uber.org/multierr/LICENSE.txt +0 -19 collapsed to keep the page light
D vendor/go.uber.org/multierr/Makefile +0 -38 collapsed to keep the page light
D vendor/go.uber.org/multierr/README.md +0 -43 collapsed to keep the page light
D vendor/go.uber.org/multierr/error.go +0 -646 collapsed to keep the page light
D vendor/go.uber.org/multierr/error_post_go120.go +0 -48 collapsed to keep the page light
D vendor/go.uber.org/multierr/error_pre_go120.go +0 -79 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/LICENSE +0 -50 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/NOTICE +0 -13 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/README.md +0 -171 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/apic.go +0 -747 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/decode.go +0 -1018 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/emitterc.go +0 -2054 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/encode.go +0 -577 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/parserc.go +0 -1274 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/readerc.go +0 -434 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/resolve.go +0 -326 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/scannerc.go +0 -3040 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/sorter.go +0 -134 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/writerc.go +0 -48 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/yaml.go +0 -703 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/yamlh.go +0 -811 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/yamlprivateh.go +0 -198 collapsed to keep the page light
D vendor/golang.org/x/image/LICENSE +0 -27 collapsed to keep the page light
D vendor/golang.org/x/image/PATENTS +0 -22 collapsed to keep the page light
D vendor/golang.org/x/image/draw/draw.go +0 -67 collapsed to keep the page light
D vendor/golang.org/x/image/draw/impl.go +0 -8426 collapsed to keep the page light
D vendor/golang.org/x/image/draw/scale.go +0 -525 collapsed to keep the page light
D vendor/golang.org/x/image/math/f64/f64.go +0 -37 collapsed to keep the page light
D vendor/golang.org/x/mod/LICENSE +0 -27 collapsed to keep the page light
D vendor/golang.org/x/mod/PATENTS +0 -22 collapsed to keep the page light
D vendor/golang.org/x/mod/internal/lazyregexp/lazyre.go +0 -78 collapsed to keep the page light
D vendor/golang.org/x/mod/modfile/print.go +0 -184 collapsed to keep the page light
D vendor/golang.org/x/mod/modfile/read.go +0 -962 collapsed to keep the page light
D vendor/golang.org/x/mod/modfile/rule.go +0 -1951 collapsed to keep the page light
D vendor/golang.org/x/mod/modfile/work.go +0 -333 collapsed to keep the page light
D vendor/golang.org/x/mod/module/module.go +0 -840 collapsed to keep the page light
D vendor/golang.org/x/mod/module/pseudo.go +0 -250 collapsed to keep the page light
D vendor/golang.org/x/mod/semver/semver.go +0 -407 collapsed to keep the page light
D vendor/golang.org/x/net/LICENSE +0 -27 collapsed to keep the page light
D vendor/golang.org/x/net/PATENTS +0 -22 collapsed to keep the page light
D vendor/golang.org/x/net/html/atom/atom.go +0 -78 collapsed to keep the page light
D vendor/golang.org/x/net/html/atom/table.go +0 -785 collapsed to keep the page light
D vendor/golang.org/x/net/html/const.go +0 -111 collapsed to keep the page light
D vendor/golang.org/x/net/html/doc.go +0 -122 collapsed to keep the page light
D vendor/golang.org/x/net/html/doctype.go +0 -156 collapsed to keep the page light
D vendor/golang.org/x/net/html/entity.go +0 -2252 collapsed to keep the page light
D vendor/golang.org/x/net/html/escape.go +0 -379 collapsed to keep the page light
D vendor/golang.org/x/net/html/foreign.go +0 -221 collapsed to keep the page light
D vendor/golang.org/x/net/html/iter.go +0 -54 collapsed to keep the page light
D vendor/golang.org/x/net/html/node.go +0 -230 collapsed to keep the page light
D vendor/golang.org/x/net/html/nodetype_string.go +0 -31 collapsed to keep the page light
D vendor/golang.org/x/net/html/parse.go +0 -2378 collapsed to keep the page light
D vendor/golang.org/x/net/html/render.go +0 -316 collapsed to keep the page light
D vendor/golang.org/x/net/html/token.go +0 -1322 collapsed to keep the page light
D vendor/golang.org/x/net/idna/idna.go +0 -880 collapsed to keep the page light
D vendor/golang.org/x/net/idna/punycode.go +0 -220 collapsed to keep the page light
D vendor/golang.org/x/net/idna/tables15.0.0.go +0 -5144 collapsed to keep the page light
D vendor/golang.org/x/net/idna/tables17.0.0.go +0 -5302 collapsed to keep the page light
D vendor/golang.org/x/net/idna/trie.go +0 -51 collapsed to keep the page light
D vendor/golang.org/x/net/idna/trieval.go +0 -119 collapsed to keep the page light
D vendor/golang.org/x/net/publicsuffix/data/children +0 -0 binary file: no text diff
binary file: no text diff
D vendor/golang.org/x/net/publicsuffix/data/nodes +0 -0 binary file: no text diff
binary file: no text diff