Merge pull request #344 from bnema/chore/upstream-foundations
chore(deps): integrate approved upstream foundations
921 files · +28709 -25527
M docs/first-presentation.md +5 -2
| @@ -46,5 +46,8 @@ labels. Set `DUMBER_MACHINE_GPU_PROFILE` to one of `generic-gpu`, | |||
| 46 | 46 | `integrated-gpu`, `discrete-gpu`, `hybrid-gpu`, `virtual-gpu`, or `unknown-gpu`; | |
| 47 | 47 | do not use a device model or other identifier. Publish only the seven reviewed | |
| 48 | 48 | JSON files to an external Gist. Raw logs and temporary XDG homes are removed and | |
| 49 | - | must not be published. A missing or incomplete timeline, non-DMABUF backend, or | |
| 50 | - | invalid run fails collection. | |
| 49 | + | must not be published. `metadata.json` derives the selected | |
| 50 | + | `github.com/bnema/purego-cef2gtk` pseudo-version and its full immutable Git | |
| 51 | + | origin hash from Go module metadata; branch selectors or missing origin metadata | |
| 52 | + | fail collection. A missing or incomplete timeline, non-DMABUF backend, or invalid | |
| 53 | + | run also fails collection. | |
| @@ -46,5 +46,8 @@ labels. Set `DUMBER_MACHINE_GPU_PROFILE` to one of `generic-gpu`, | |||||
| 46 | `integrated-gpu`, `discrete-gpu`, `hybrid-gpu`, `virtual-gpu`, or `unknown-gpu`; | 46 | `integrated-gpu`, `discrete-gpu`, `hybrid-gpu`, `virtual-gpu`, or `unknown-gpu`; | ||
| 47 | do not use a device model or other identifier. Publish only the seven reviewed | 47 | do not use a device model or other identifier. Publish only the seven reviewed | ||
| 48 | JSON files to an external Gist. Raw logs and temporary XDG homes are removed and | 48 | JSON files to an external Gist. Raw logs and temporary XDG homes are removed and | ||
| 49 | - | must not be published. A missing or incomplete timeline, non-DMABUF backend, or | 49 | + | must not be published. `metadata.json` derives the selected |
| 50 | - | invalid run fails collection. | 50 | + | `github.com/bnema/purego-cef2gtk` pseudo-version and its full immutable Git |
| 51 | + | origin hash from Go module metadata; branch selectors or missing origin metadata | |||
| 52 | + | fail collection. A missing or incomplete timeline, non-DMABUF backend, or invalid | |||
| 53 | + | run also fails collection. | |||
M go.mod +5 -5
| @@ -6,11 +6,11 @@ require ( | |||
| 6 | 6 | github.com/a-h/templ v0.3.1020 | |
| 7 | 7 | github.com/andybalholm/brotli v1.2.2 | |
| 8 | 8 | github.com/bnema/purego v0.11.0-bnema.4 | |
| 9 | - | github.com/bnema/purego-cef v0.13.3 | |
| 10 | - | github.com/bnema/purego-cef2gtk v0.8.4 | |
| 11 | - | github.com/bnema/purego-pipewire v0.1.4 | |
| 12 | - | github.com/bnema/purego-sqlite v0.1.3 | |
| 13 | - | github.com/bnema/puregotk v0.7.0 | |
| 9 | + | github.com/bnema/purego-cef v0.13.4-0.20260714140305-f0b7414af67e | |
| 10 | + | github.com/bnema/purego-cef2gtk v0.8.4-0.20260714160309-bbd397409ebe | |
| 11 | + | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | |
| 12 | + | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | |
| 13 | + | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | |
| 14 | 14 | github.com/charmbracelet/bubbles v1.0.0 | |
| 15 | 15 | github.com/charmbracelet/bubbletea v1.3.10 | |
| 16 | 16 | github.com/charmbracelet/lipgloss v1.1.0 | |
| @@ -6,11 +6,11 @@ require ( | |||||
| 6 | github.com/a-h/templ v0.3.1020 | 6 | github.com/a-h/templ v0.3.1020 | ||
| 7 | github.com/andybalholm/brotli v1.2.2 | 7 | github.com/andybalholm/brotli v1.2.2 | ||
| 8 | github.com/bnema/purego v0.11.0-bnema.4 | 8 | github.com/bnema/purego v0.11.0-bnema.4 | ||
| 9 | - | github.com/bnema/purego-cef v0.13.3 | 9 | + | github.com/bnema/purego-cef v0.13.4-0.20260714140305-f0b7414af67e |
| 10 | - | github.com/bnema/purego-cef2gtk v0.8.4 | 10 | + | github.com/bnema/purego-cef2gtk v0.8.4-0.20260714160309-bbd397409ebe |
| 11 | - | github.com/bnema/purego-pipewire v0.1.4 | 11 | + | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a |
| 12 | - | github.com/bnema/purego-sqlite v0.1.3 | 12 | + | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c |
| 13 | - | github.com/bnema/puregotk v0.7.0 | 13 | + | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 |
| 14 | github.com/charmbracelet/bubbles v1.0.0 | 14 | github.com/charmbracelet/bubbles v1.0.0 | ||
| 15 | github.com/charmbracelet/bubbletea v1.3.10 | 15 | github.com/charmbracelet/bubbletea v1.3.10 | ||
| 16 | github.com/charmbracelet/lipgloss v1.1.0 | 16 | github.com/charmbracelet/lipgloss v1.1.0 | ||
M go.sum +12 -0 generated file: collapsed
A internal/infrastructure/persistence/sqlite/history_repo_benchmark_test.go +71 -0
| @@ -0,0 +1,71 @@ | |||
| 1 | + | package sqlite_test | |
| 2 | + | ||
| 3 | + | import ( | |
| 4 | + | "fmt" | |
| 5 | + | "path/filepath" | |
| 6 | + | "testing" | |
| 7 | + | ||
| 8 | + | "github.com/bnema/dumber/internal/domain/entity" | |
| 9 | + | "github.com/bnema/dumber/internal/domain/repository" | |
| 10 | + | "github.com/bnema/dumber/internal/infrastructure/persistence/sqlite" | |
| 11 | + | ) | |
| 12 | + | ||
| 13 | + | // newHistoryBenchmarkRepository creates a representative local history corpus | |
| 14 | + | // outside the measured operation. Sidebar reads use GetRecent and omnibox | |
| 15 | + | // history suggestions use Search. | |
| 16 | + | func newHistoryBenchmarkRepository(b *testing.B) (repository.HistoryRepository, func()) { | |
| 17 | + | b.Helper() | |
| 18 | + | ||
| 19 | + | ctx := historyTestCtx() | |
| 20 | + | db, err := sqlite.NewConnection(ctx, filepath.Join(b.TempDir(), "dumber.db")) | |
| 21 | + | if err != nil { | |
| 22 | + | b.Fatal(err) | |
| 23 | + | } | |
| 24 | + | ||
| 25 | + | b.Cleanup(func() { | |
| 26 | + | if err := db.Close(); err != nil { | |
| 27 | + | b.Errorf("close benchmark database: %v", err) | |
| 28 | + | } | |
| 29 | + | }) | |
| 30 | + | ||
| 31 | + | repo := sqlite.NewHistoryRepository(db) | |
| 32 | + | for i := range 200 { | |
| 33 | + | entry := &entity.HistoryEntry{ | |
| 34 | + | URL: fmt.Sprintf("https://example%d.test/dumber/history/%d", i%20, i), | |
| 35 | + | Title: fmt.Sprintf("Dumber history entry %d", i), | |
| 36 | + | } | |
| 37 | + | if err := repo.Save(ctx, entry); err != nil { | |
| 38 | + | b.Fatal(err) | |
| 39 | + | } | |
| 40 | + | } | |
| 41 | + | ||
| 42 | + | return repo, func() {} | |
| 43 | + | } | |
| 44 | + | ||
| 45 | + | func BenchmarkHistorySQLiteSidebarRecent(b *testing.B) { | |
| 46 | + | repo, closeDB := newHistoryBenchmarkRepository(b) | |
| 47 | + | defer closeDB() | |
| 48 | + | ctx := historyTestCtx() | |
| 49 | + | ||
| 50 | + | b.ReportAllocs() | |
| 51 | + | b.ResetTimer() | |
| 52 | + | for range b.N { | |
| 53 | + | if _, err := repo.GetRecent(ctx, 50, 0); err != nil { | |
| 54 | + | b.Fatal(err) | |
| 55 | + | } | |
| 56 | + | } | |
| 57 | + | } | |
| 58 | + | ||
| 59 | + | func BenchmarkHistorySQLiteOmniboxSearch(b *testing.B) { | |
| 60 | + | repo, closeDB := newHistoryBenchmarkRepository(b) | |
| 61 | + | defer closeDB() | |
| 62 | + | ctx := historyTestCtx() | |
| 63 | + | ||
| 64 | + | b.ReportAllocs() | |
| 65 | + | b.ResetTimer() | |
| 66 | + | for range b.N { | |
| 67 | + | if _, err := repo.Search(ctx, "dumber history", 10); err != nil { | |
| 68 | + | b.Fatal(err) | |
| 69 | + | } | |
| 70 | + | } | |
| 71 | + | } | |
| @@ -0,0 +1,71 @@ | |||||
| 1 | + | package sqlite_test | |||
| 2 | + | ||||
| 3 | + | import ( | |||
| 4 | + | "fmt" | |||
| 5 | + | "path/filepath" | |||
| 6 | + | "testing" | |||
| 7 | + | ||||
| 8 | + | "github.com/bnema/dumber/internal/domain/entity" | |||
| 9 | + | "github.com/bnema/dumber/internal/domain/repository" | |||
| 10 | + | "github.com/bnema/dumber/internal/infrastructure/persistence/sqlite" | |||
| 11 | + | ) | |||
| 12 | + | ||||
| 13 | + | // newHistoryBenchmarkRepository creates a representative local history corpus | |||
| 14 | + | // outside the measured operation. Sidebar reads use GetRecent and omnibox | |||
| 15 | + | // history suggestions use Search. | |||
| 16 | + | func newHistoryBenchmarkRepository(b *testing.B) (repository.HistoryRepository, func()) { | |||
| 17 | + | b.Helper() | |||
| 18 | + | ||||
| 19 | + | ctx := historyTestCtx() | |||
| 20 | + | db, err := sqlite.NewConnection(ctx, filepath.Join(b.TempDir(), "dumber.db")) | |||
| 21 | + | if err != nil { | |||
| 22 | + | b.Fatal(err) | |||
| 23 | + | } | |||
| 24 | + | ||||
| 25 | + | b.Cleanup(func() { | |||
| 26 | + | if err := db.Close(); err != nil { | |||
| 27 | + | b.Errorf("close benchmark database: %v", err) | |||
| 28 | + | } | |||
| 29 | + | }) | |||
| 30 | + | ||||
| 31 | + | repo := sqlite.NewHistoryRepository(db) | |||
| 32 | + | for i := range 200 { | |||
| 33 | + | entry := &entity.HistoryEntry{ | |||
| 34 | + | URL: fmt.Sprintf("https://example%d.test/dumber/history/%d", i%20, i), | |||
| 35 | + | Title: fmt.Sprintf("Dumber history entry %d", i), | |||
| 36 | + | } | |||
| 37 | + | if err := repo.Save(ctx, entry); err != nil { | |||
| 38 | + | b.Fatal(err) | |||
| 39 | + | } | |||
| 40 | + | } | |||
| 41 | + | ||||
| 42 | + | return repo, func() {} | |||
| 43 | + | } | |||
| 44 | + | ||||
| 45 | + | func BenchmarkHistorySQLiteSidebarRecent(b *testing.B) { | |||
| 46 | + | repo, closeDB := newHistoryBenchmarkRepository(b) | |||
| 47 | + | defer closeDB() | |||
| 48 | + | ctx := historyTestCtx() | |||
| 49 | + | ||||
| 50 | + | b.ReportAllocs() | |||
| 51 | + | b.ResetTimer() | |||
| 52 | + | for range b.N { | |||
| 53 | + | if _, err := repo.GetRecent(ctx, 50, 0); err != nil { | |||
| 54 | + | b.Fatal(err) | |||
| 55 | + | } | |||
| 56 | + | } | |||
| 57 | + | } | |||
| 58 | + | ||||
| 59 | + | func BenchmarkHistorySQLiteOmniboxSearch(b *testing.B) { | |||
| 60 | + | repo, closeDB := newHistoryBenchmarkRepository(b) | |||
| 61 | + | defer closeDB() | |||
| 62 | + | ctx := historyTestCtx() | |||
| 63 | + | ||||
| 64 | + | b.ReportAllocs() | |||
| 65 | + | b.ResetTimer() | |||
| 66 | + | for range b.N { | |||
| 67 | + | if _, err := repo.Search(ctx, "dumber history", 10); err != nil { | |||
| 68 | + | b.Fatal(err) | |||
| 69 | + | } | |||
| 70 | + | } | |||
| 71 | + | } | |||
M internal/logging/first_presentation_collector_test.go +132 -1
| @@ -2,6 +2,7 @@ package logging | |||
| 2 | 2 | ||
| 3 | 3 | import ( | |
| 4 | 4 | "encoding/json" | |
| 5 | + | "fmt" | |
| 5 | 6 | "os" | |
| 6 | 7 | "os/exec" | |
| 7 | 8 | "path/filepath" | |
| @@ -143,8 +144,9 @@ func TestFirstPresentationCollectorSanitizesMachineLocalValues(t *testing.T) { | |||
| 143 | 144 | } | |
| 144 | 145 | for _, required := range []string{ | |
| 145 | 146 | `"measured_source_revision"`, | |
| 147 | + | `"version": "v0.8.4-0.20260714160309-bbd397409ebe"`, | |
| 146 | 148 | `"tag": "v0.8.4"`, | |
| 147 | - | `"revision": "f217ece342dea3ef2a3f98671fcd16a39ad0037d"`, | |
| 149 | + | `"revision": "bbd397409ebed75a5979c1e4566a2ef319f6a484"`, | |
| 148 | 150 | } { | |
| 149 | 151 | require.Contains(t, artifacts.String(), required) | |
| 150 | 152 | } | |
| @@ -166,6 +168,135 @@ func TestFirstPresentationCollectorSanitizesMachineLocalValues(t *testing.T) { | |||
| 166 | 168 | require.Equal(t, "integrated-gpu", metadata.Comparison.MachineGPUProfile) | |
| 167 | 169 | } | |
| 168 | 170 | ||
| 171 | + | func TestFirstPresentationCollectorDerivesSelectedImmutableModuleProvenance(t *testing.T) { | |
| 172 | + | repoRoot, err := filepath.Abs(filepath.Join("..", "..")) | |
| 173 | + | require.NoError(t, err) | |
| 174 | + | temp := t.TempDir() | |
| 175 | + | runtime := filepath.Join(temp, "cef-147-runtime") | |
| 176 | + | require.NoError(t, os.Mkdir(runtime, 0o755)) | |
| 177 | + | binary := filepath.Join(temp, "dumber") | |
| 178 | + | require.NoError(t, os.WriteFile(binary, collectorTestBinary(validFirstPresentationLog), 0o755)) | |
| 179 | + | ||
| 180 | + | // This exact pseudo-version is deliberately newer than the former v0.8.4 | |
| 181 | + | // hardcode; the collector must report what the selected module says. | |
| 182 | + | const version = "v0.8.5-0.20300102030405-bbd397409ebe" | |
| 183 | + | const revision = "bbd397409ebed75a5979c1e4566a2ef319f6a484" | |
| 184 | + | goBin := collectorProvenanceGo(t, temp, version, revision, "") | |
| 185 | + | output := filepath.Join(temp, "artifacts") | |
| 186 | + | cmd := exec.Command(filepath.Join(repoRoot, "scripts", "collect_first_presentation.sh")) | |
| 187 | + | cmd.Dir = repoRoot | |
| 188 | + | cmd.Env = append(os.Environ(), | |
| 189 | + | "DISPLAY=:test", | |
| 190 | + | "DUMBER_CEF_DIR="+runtime, | |
| 191 | + | "DUMBER_FIRST_PRESENTATION_BIN="+binary, | |
| 192 | + | "DUMBER_FIRST_PRESENTATION_OUTPUT="+output, | |
| 193 | + | "DUMBER_FIRST_PRESENTATION_TIMEOUT_SECONDS=1", | |
| 194 | + | "PATH="+filepath.Dir(goBin)+":"+os.Getenv("PATH"), | |
| 195 | + | ) | |
| 196 | + | result, err := cmd.CombinedOutput() | |
| 197 | + | require.NoErrorf(t, err, "collector failed: %s", result) | |
| 198 | + | ||
| 199 | + | var metadata struct { | |
| 200 | + | Upstream struct { | |
| 201 | + | Module string `json:"module"` | |
| 202 | + | Version string `json:"version"` | |
| 203 | + | Tag string `json:"tag"` | |
| 204 | + | Revision string `json:"revision"` | |
| 205 | + | } `json:"upstream"` | |
| 206 | + | } | |
| 207 | + | contents, err := os.ReadFile(filepath.Join(output, "metadata.json")) | |
| 208 | + | require.NoError(t, err) | |
| 209 | + | require.NoError(t, json.Unmarshal(contents, &metadata)) | |
| 210 | + | require.Equal(t, "github.com/bnema/purego-cef2gtk", metadata.Upstream.Module) | |
| 211 | + | require.Equal(t, version, metadata.Upstream.Version) | |
| 212 | + | require.Equal(t, "v0.8.5", metadata.Upstream.Tag) | |
| 213 | + | require.Equal(t, revision, metadata.Upstream.Revision) | |
| 214 | + | ||
| 215 | + | script, err := os.ReadFile(filepath.Join(repoRoot, "scripts", "collect_first_presentation.sh")) | |
| 216 | + | require.NoError(t, err) | |
| 217 | + | require.NotContains(t, string(script), "f217ece342dea3ef2a3f98671fcd16a39ad0037d") | |
| 218 | + | } | |
| 219 | + | ||
| 220 | + | func TestFirstPresentationCollectorRejectsNonImmutableModuleProvenanceWithoutLeaks(t *testing.T) { | |
| 221 | + | repoRoot, err := filepath.Abs(filepath.Join("..", "..")) | |
| 222 | + | require.NoError(t, err) | |
| 223 | + | ||
| 224 | + | for _, test := range []struct { | |
| 225 | + | name, version, revision, ref string | |
| 226 | + | }{ | |
| 227 | + | {name: "branch selector", version: "main", ref: "main"}, | |
| 228 | + | {name: "missing origin", version: "v0.8.5-0.20300102030405-bbd397409ebe"}, | |
| 229 | + | {name: "named origin ref", version: "v0.8.5-0.20300102030405-bbd397409ebe", revision: "bbd397409ebed75a5979c1e4566a2ef319f6a484", ref: "main"}, | |
| 230 | + | } { | |
| 231 | + | t.Run(test.name, func(t *testing.T) { | |
| 232 | + | temp := t.TempDir() | |
| 233 | + | runtime := filepath.Join(temp, "cef-147-runtime") | |
| 234 | + | require.NoError(t, os.Mkdir(runtime, 0o755)) | |
| 235 | + | binary := filepath.Join(temp, "dumber") | |
| 236 | + | require.NoError(t, os.WriteFile(binary, collectorTestBinary(validFirstPresentationLog), 0o755)) | |
| 237 | + | ||
| 238 | + | goBin := collectorProvenanceGo(t, temp, test.version, test.revision, test.ref) | |
| 239 | + | output := filepath.Join(temp, "artifacts") | |
| 240 | + | cmd := exec.Command(filepath.Join(repoRoot, "scripts", "collect_first_presentation.sh")) | |
| 241 | + | cmd.Dir = repoRoot | |
| 242 | + | cmd.Env = append(os.Environ(), | |
| 243 | + | "DISPLAY=:test", | |
| 244 | + | "DUMBER_CEF_DIR="+runtime, | |
| 245 | + | "DUMBER_FIRST_PRESENTATION_BIN="+binary, | |
| 246 | + | "DUMBER_FIRST_PRESENTATION_OUTPUT="+output, | |
| 247 | + | "PATH="+filepath.Dir(goBin)+":"+os.Getenv("PATH"), | |
| 248 | + | ) | |
| 249 | + | result, runErr := cmd.CombinedOutput() | |
| 250 | + | require.Errorf(t, runErr, "collector accepted nonimmutable module provenance: %s", result) | |
| 251 | + | require.Contains(t, string(result), "immutable module provenance is unavailable") | |
| 252 | + | require.NotContains(t, string(result), temp) | |
| 253 | + | require.NoFileExists(t, filepath.Join(output, "metadata.json")) | |
| 254 | + | for _, name := range runArtifactNames() { | |
| 255 | + | require.NoFileExists(t, filepath.Join(output, name)) | |
| 256 | + | } | |
| 257 | + | }) | |
| 258 | + | } | |
| 259 | + | } | |
| 260 | + | ||
| 261 | + | func collectorProvenanceGo(t *testing.T, temp, version, revision, ref string) string { | |
| 262 | + | t.Helper() | |
| 263 | + | infoPath := filepath.Join(temp, "module.info") | |
| 264 | + | info := map[string]any{"Version": version} | |
| 265 | + | if revision != "" { | |
| 266 | + | info["Origin"] = map[string]string{ | |
| 267 | + | "VCS": "git", "URL": "https://github.com/bnema/purego-cef2gtk", "Hash": revision, "Ref": ref, | |
| 268 | + | } | |
| 269 | + | } | |
| 270 | + | infoJSON, err := json.Marshal(info) | |
| 271 | + | require.NoError(t, err) | |
| 272 | + | require.NoError(t, os.WriteFile(infoPath, infoJSON, 0o600)) | |
| 273 | + | ||
| 274 | + | selectedJSON, err := json.Marshal(map[string]string{ | |
| 275 | + | "Path": "github.com/bnema/purego-cef2gtk", "Version": version, | |
| 276 | + | }) | |
| 277 | + | require.NoError(t, err) | |
| 278 | + | downloadedJSON, err := json.Marshal(map[string]string{ | |
| 279 | + | "Path": "github.com/bnema/purego-cef2gtk", "Version": version, "Info": infoPath, | |
| 280 | + | }) | |
| 281 | + | require.NoError(t, err) | |
| 282 | + | binDir := filepath.Join(temp, "bin") | |
| 283 | + | require.NoError(t, os.Mkdir(binDir, 0o755)) | |
| 284 | + | goBin := filepath.Join(binDir, "go") | |
| 285 | + | script := fmt.Sprintf(`#!/bin/sh | |
| 286 | + | if [ "$1" = "list" ] && [ "$2" = "-m" ] && [ "$3" = "-json" ] && [ "$4" = "github.com/bnema/purego-cef2gtk" ]; then | |
| 287 | + | printf '%%s\n' '%s' | |
| 288 | + | exit 0 | |
| 289 | + | fi | |
| 290 | + | if [ "$1" = "mod" ] && [ "$2" = "download" ] && [ "$3" = "-json" ] && [ "$4" = "github.com/bnema/purego-cef2gtk@%s" ]; then | |
| 291 | + | printf '%%s\n' '%s' | |
| 292 | + | exit 0 | |
| 293 | + | fi | |
| 294 | + | exit 1 | |
| 295 | + | `, selectedJSON, version, downloadedJSON) | |
| 296 | + | require.NoError(t, os.WriteFile(goBin, []byte(script), 0o755)) | |
| 297 | + | return goBin | |
| 298 | + | } | |
| 299 | + | ||
| 169 | 300 | func TestFirstPresentationCollectorDefaultsToXDGStateEvidenceDirectory(t *testing.T) { | |
| 170 | 301 | repoRoot, err := filepath.Abs(filepath.Join("..", "..")) | |
| 171 | 302 | require.NoError(t, err) | |
| @@ -2,6 +2,7 @@ package logging | |||||
| 2 | 2 | ||||
| 3 | import ( | 3 | import ( | ||
| 4 | "encoding/json" | 4 | "encoding/json" | ||
| 5 | + | "fmt" | |||
| 5 | "os" | 6 | "os" | ||
| 6 | "os/exec" | 7 | "os/exec" | ||
| 7 | "path/filepath" | 8 | "path/filepath" | ||
| @@ -143,8 +144,9 @@ func TestFirstPresentationCollectorSanitizesMachineLocalValues(t *testing.T) { | |||||
| 143 | } | 144 | } | ||
| 144 | for _, required := range []string{ | 145 | for _, required := range []string{ | ||
| 145 | `"measured_source_revision"`, | 146 | `"measured_source_revision"`, | ||
| 147 | + | `"version": "v0.8.4-0.20260714160309-bbd397409ebe"`, | |||
| 146 | `"tag": "v0.8.4"`, | 148 | `"tag": "v0.8.4"`, | ||
| 147 | - | `"revision": "f217ece342dea3ef2a3f98671fcd16a39ad0037d"`, | 149 | + | `"revision": "bbd397409ebed75a5979c1e4566a2ef319f6a484"`, |
| 148 | } { | 150 | } { | ||
| 149 | require.Contains(t, artifacts.String(), required) | 151 | require.Contains(t, artifacts.String(), required) | ||
| 150 | } | 152 | } | ||
| @@ -166,6 +168,135 @@ func TestFirstPresentationCollectorSanitizesMachineLocalValues(t *testing.T) { | |||||
| 166 | require.Equal(t, "integrated-gpu", metadata.Comparison.MachineGPUProfile) | 168 | require.Equal(t, "integrated-gpu", metadata.Comparison.MachineGPUProfile) | ||
| 167 | } | 169 | } | ||
| 168 | 170 | ||||
| 171 | + | func TestFirstPresentationCollectorDerivesSelectedImmutableModuleProvenance(t *testing.T) { | |||
| 172 | + | repoRoot, err := filepath.Abs(filepath.Join("..", "..")) | |||
| 173 | + | require.NoError(t, err) | |||
| 174 | + | temp := t.TempDir() | |||
| 175 | + | runtime := filepath.Join(temp, "cef-147-runtime") | |||
| 176 | + | require.NoError(t, os.Mkdir(runtime, 0o755)) | |||
| 177 | + | binary := filepath.Join(temp, "dumber") | |||
| 178 | + | require.NoError(t, os.WriteFile(binary, collectorTestBinary(validFirstPresentationLog), 0o755)) | |||
| 179 | + | ||||
| 180 | + | // This exact pseudo-version is deliberately newer than the former v0.8.4 | |||
| 181 | + | // hardcode; the collector must report what the selected module says. | |||
| 182 | + | const version = "v0.8.5-0.20300102030405-bbd397409ebe" | |||
| 183 | + | const revision = "bbd397409ebed75a5979c1e4566a2ef319f6a484" | |||
| 184 | + | goBin := collectorProvenanceGo(t, temp, version, revision, "") | |||
| 185 | + | output := filepath.Join(temp, "artifacts") | |||
| 186 | + | cmd := exec.Command(filepath.Join(repoRoot, "scripts", "collect_first_presentation.sh")) | |||
| 187 | + | cmd.Dir = repoRoot | |||
| 188 | + | cmd.Env = append(os.Environ(), | |||
| 189 | + | "DISPLAY=:test", | |||
| 190 | + | "DUMBER_CEF_DIR="+runtime, | |||
| 191 | + | "DUMBER_FIRST_PRESENTATION_BIN="+binary, | |||
| 192 | + | "DUMBER_FIRST_PRESENTATION_OUTPUT="+output, | |||
| 193 | + | "DUMBER_FIRST_PRESENTATION_TIMEOUT_SECONDS=1", | |||
| 194 | + | "PATH="+filepath.Dir(goBin)+":"+os.Getenv("PATH"), | |||
| 195 | + | ) | |||
| 196 | + | result, err := cmd.CombinedOutput() | |||
| 197 | + | require.NoErrorf(t, err, "collector failed: %s", result) | |||
| 198 | + | ||||
| 199 | + | var metadata struct { | |||
| 200 | + | Upstream struct { | |||
| 201 | + | Module string `json:"module"` | |||
| 202 | + | Version string `json:"version"` | |||
| 203 | + | Tag string `json:"tag"` | |||
| 204 | + | Revision string `json:"revision"` | |||
| 205 | + | } `json:"upstream"` | |||
| 206 | + | } | |||
| 207 | + | contents, err := os.ReadFile(filepath.Join(output, "metadata.json")) | |||
| 208 | + | require.NoError(t, err) | |||
| 209 | + | require.NoError(t, json.Unmarshal(contents, &metadata)) | |||
| 210 | + | require.Equal(t, "github.com/bnema/purego-cef2gtk", metadata.Upstream.Module) | |||
| 211 | + | require.Equal(t, version, metadata.Upstream.Version) | |||
| 212 | + | require.Equal(t, "v0.8.5", metadata.Upstream.Tag) | |||
| 213 | + | require.Equal(t, revision, metadata.Upstream.Revision) | |||
| 214 | + | ||||
| 215 | + | script, err := os.ReadFile(filepath.Join(repoRoot, "scripts", "collect_first_presentation.sh")) | |||
| 216 | + | require.NoError(t, err) | |||
| 217 | + | require.NotContains(t, string(script), "f217ece342dea3ef2a3f98671fcd16a39ad0037d") | |||
| 218 | + | } | |||
| 219 | + | ||||
| 220 | + | func TestFirstPresentationCollectorRejectsNonImmutableModuleProvenanceWithoutLeaks(t *testing.T) { | |||
| 221 | + | repoRoot, err := filepath.Abs(filepath.Join("..", "..")) | |||
| 222 | + | require.NoError(t, err) | |||
| 223 | + | ||||
| 224 | + | for _, test := range []struct { | |||
| 225 | + | name, version, revision, ref string | |||
| 226 | + | }{ | |||
| 227 | + | {name: "branch selector", version: "main", ref: "main"}, | |||
| 228 | + | {name: "missing origin", version: "v0.8.5-0.20300102030405-bbd397409ebe"}, | |||
| 229 | + | {name: "named origin ref", version: "v0.8.5-0.20300102030405-bbd397409ebe", revision: "bbd397409ebed75a5979c1e4566a2ef319f6a484", ref: "main"}, | |||
| 230 | + | } { | |||
| 231 | + | t.Run(test.name, func(t *testing.T) { | |||
| 232 | + | temp := t.TempDir() | |||
| 233 | + | runtime := filepath.Join(temp, "cef-147-runtime") | |||
| 234 | + | require.NoError(t, os.Mkdir(runtime, 0o755)) | |||
| 235 | + | binary := filepath.Join(temp, "dumber") | |||
| 236 | + | require.NoError(t, os.WriteFile(binary, collectorTestBinary(validFirstPresentationLog), 0o755)) | |||
| 237 | + | ||||
| 238 | + | goBin := collectorProvenanceGo(t, temp, test.version, test.revision, test.ref) | |||
| 239 | + | output := filepath.Join(temp, "artifacts") | |||
| 240 | + | cmd := exec.Command(filepath.Join(repoRoot, "scripts", "collect_first_presentation.sh")) | |||
| 241 | + | cmd.Dir = repoRoot | |||
| 242 | + | cmd.Env = append(os.Environ(), | |||
| 243 | + | "DISPLAY=:test", | |||
| 244 | + | "DUMBER_CEF_DIR="+runtime, | |||
| 245 | + | "DUMBER_FIRST_PRESENTATION_BIN="+binary, | |||
| 246 | + | "DUMBER_FIRST_PRESENTATION_OUTPUT="+output, | |||
| 247 | + | "PATH="+filepath.Dir(goBin)+":"+os.Getenv("PATH"), | |||
| 248 | + | ) | |||
| 249 | + | result, runErr := cmd.CombinedOutput() | |||
| 250 | + | require.Errorf(t, runErr, "collector accepted nonimmutable module provenance: %s", result) | |||
| 251 | + | require.Contains(t, string(result), "immutable module provenance is unavailable") | |||
| 252 | + | require.NotContains(t, string(result), temp) | |||
| 253 | + | require.NoFileExists(t, filepath.Join(output, "metadata.json")) | |||
| 254 | + | for _, name := range runArtifactNames() { | |||
| 255 | + | require.NoFileExists(t, filepath.Join(output, name)) | |||
| 256 | + | } | |||
| 257 | + | }) | |||
| 258 | + | } | |||
| 259 | + | } | |||
| 260 | + | ||||
| 261 | + | func collectorProvenanceGo(t *testing.T, temp, version, revision, ref string) string { | |||
| 262 | + | t.Helper() | |||
| 263 | + | infoPath := filepath.Join(temp, "module.info") | |||
| 264 | + | info := map[string]any{"Version": version} | |||
| 265 | + | if revision != "" { | |||
| 266 | + | info["Origin"] = map[string]string{ | |||
| 267 | + | "VCS": "git", "URL": "https://github.com/bnema/purego-cef2gtk", "Hash": revision, "Ref": ref, | |||
| 268 | + | } | |||
| 269 | + | } | |||
| 270 | + | infoJSON, err := json.Marshal(info) | |||
| 271 | + | require.NoError(t, err) | |||
| 272 | + | require.NoError(t, os.WriteFile(infoPath, infoJSON, 0o600)) | |||
| 273 | + | ||||
| 274 | + | selectedJSON, err := json.Marshal(map[string]string{ | |||
| 275 | + | "Path": "github.com/bnema/purego-cef2gtk", "Version": version, | |||
| 276 | + | }) | |||
| 277 | + | require.NoError(t, err) | |||
| 278 | + | downloadedJSON, err := json.Marshal(map[string]string{ | |||
| 279 | + | "Path": "github.com/bnema/purego-cef2gtk", "Version": version, "Info": infoPath, | |||
| 280 | + | }) | |||
| 281 | + | require.NoError(t, err) | |||
| 282 | + | binDir := filepath.Join(temp, "bin") | |||
| 283 | + | require.NoError(t, os.Mkdir(binDir, 0o755)) | |||
| 284 | + | goBin := filepath.Join(binDir, "go") | |||
| 285 | + | script := fmt.Sprintf(`#!/bin/sh | |||
| 286 | + | if [ "$1" = "list" ] && [ "$2" = "-m" ] && [ "$3" = "-json" ] && [ "$4" = "github.com/bnema/purego-cef2gtk" ]; then | |||
| 287 | + | printf '%%s\n' '%s' | |||
| 288 | + | exit 0 | |||
| 289 | + | fi | |||
| 290 | + | if [ "$1" = "mod" ] && [ "$2" = "download" ] && [ "$3" = "-json" ] && [ "$4" = "github.com/bnema/purego-cef2gtk@%s" ]; then | |||
| 291 | + | printf '%%s\n' '%s' | |||
| 292 | + | exit 0 | |||
| 293 | + | fi | |||
| 294 | + | exit 1 | |||
| 295 | + | `, selectedJSON, version, downloadedJSON) | |||
| 296 | + | require.NoError(t, os.WriteFile(goBin, []byte(script), 0o755)) | |||
| 297 | + | return goBin | |||
| 298 | + | } | |||
| 299 | + | ||||
| 169 | func TestFirstPresentationCollectorDefaultsToXDGStateEvidenceDirectory(t *testing.T) { | 300 | func TestFirstPresentationCollectorDefaultsToXDGStateEvidenceDirectory(t *testing.T) { | ||
| 170 | repoRoot, err := filepath.Abs(filepath.Join("..", "..")) | 301 | repoRoot, err := filepath.Abs(filepath.Join("..", "..")) | ||
| 171 | require.NoError(t, err) | 302 | require.NoError(t, err) | ||
M scripts/collect_first_presentation.sh +78 -9
| @@ -31,8 +31,78 @@ else | |||
| 31 | 31 | fi | |
| 32 | 32 | readonly output | |
| 33 | 33 | readonly upstream_module="github.com/bnema/purego-cef2gtk" | |
| 34 | - | readonly upstream_tag="v0.8.4" | |
| 35 | - | readonly upstream_revision="f217ece342dea3ef2a3f98671fcd16a39ad0037d" | |
| 34 | + | ||
| 35 | + | # Resolve the version selected by this checkout, then obtain its immutable VCS | |
| 36 | + | # origin from Go's cached module metadata. Do not infer a revision from a tag, | |
| 37 | + | # a branch, or a truncated pseudo-version suffix. | |
| 38 | + | resolve_upstream_provenance() { | |
| 39 | + | local selected_metadata selected_version downloaded_metadata | |
| 40 | + | ||
| 41 | + | selected_metadata="$(go list -m -json "$upstream_module" 2>/dev/null)" || { | |
| 42 | + | echo "first-presentation: immutable module provenance is unavailable" >&2 | |
| 43 | + | exit 2 | |
| 44 | + | } | |
| 45 | + | selected_version="$(python3 - "$upstream_module" "$selected_metadata" <<'PY' | |
| 46 | + | import json, sys | |
| 47 | + | try: | |
| 48 | + | metadata = json.loads(sys.argv[2]) | |
| 49 | + | if metadata.get("Path") != sys.argv[1] or not isinstance(metadata.get("Version"), str): | |
| 50 | + | raise ValueError | |
| 51 | + | print(metadata["Version"]) | |
| 52 | + | except (AttributeError, TypeError, ValueError, json.JSONDecodeError): | |
| 53 | + | raise SystemExit("first-presentation: immutable module provenance is unavailable") | |
| 54 | + | PY | |
| 55 | + | )" || exit $? | |
| 56 | + | downloaded_metadata="$(go mod download -json "$upstream_module@$selected_version" 2>/dev/null)" || { | |
| 57 | + | echo "first-presentation: immutable module provenance is unavailable" >&2 | |
| 58 | + | exit 2 | |
| 59 | + | } | |
| 60 | + | ||
| 61 | + | python3 - "$upstream_module" "$selected_metadata" "$downloaded_metadata" <<'PY' | |
| 62 | + | import json, re, sys | |
| 63 | + | ||
| 64 | + | module, selected_raw, downloaded_raw = sys.argv[1:] | |
| 65 | + | ||
| 66 | + | def fail(): | |
| 67 | + | # Do not expose Go cache locations or other machine-local values. | |
| 68 | + | raise SystemExit("first-presentation: immutable module provenance is unavailable") | |
| 69 | + | ||
| 70 | + | try: | |
| 71 | + | selected = json.loads(selected_raw) | |
| 72 | + | downloaded = json.loads(downloaded_raw) | |
| 73 | + | version = selected["Version"] | |
| 74 | + | if selected.get("Path") != module or downloaded.get("Path") != module: | |
| 75 | + | fail() | |
| 76 | + | if downloaded.get("Version") != version: | |
| 77 | + | fail() | |
| 78 | + | # A selected pseudo-version is an exact immutable selector, never a branch. | |
| 79 | + | match = re.fullmatch(r"(v\d+\.\d+\.\d+)-0\.\d{14}-([0-9a-f]{12})", version) | |
| 80 | + | if not match: | |
| 81 | + | fail() | |
| 82 | + | info_path = downloaded.get("Info") | |
| 83 | + | if not isinstance(info_path, str) or not info_path: | |
| 84 | + | fail() | |
| 85 | + | with open(info_path, encoding="utf-8") as info_file: | |
| 86 | + | info = json.load(info_file) | |
| 87 | + | origin = info.get("Origin") or downloaded.get("Origin") | |
| 88 | + | if info.get("Version") != version or not isinstance(origin, dict): | |
| 89 | + | fail() | |
| 90 | + | revision = origin.get("Hash") | |
| 91 | + | if origin.get("VCS") != "git" or origin.get("URL") != "https://github.com/bnema/purego-cef2gtk": | |
| 92 | + | fail() | |
| 93 | + | if not isinstance(revision, str) or not re.fullmatch(r"[0-9a-f]{40}", revision): | |
| 94 | + | fail() | |
| 95 | + | if not revision.startswith(match.group(2)): | |
| 96 | + | fail() | |
| 97 | + | # A named ref can move. Only the immutable hash itself is acceptable. | |
| 98 | + | if origin.get("Ref") not in (None, "", revision): | |
| 99 | + | fail() | |
| 100 | + | except (AttributeError, KeyError, OSError, TypeError, ValueError, json.JSONDecodeError): | |
| 101 | + | fail() | |
| 102 | + | ||
| 103 | + | print("\t".join((version, match.group(1), revision))) | |
| 104 | + | PY | |
| 105 | + | } | |
| 36 | 106 | ||
| 37 | 107 | # The artifact destination is caller-controlled. Never empty or recursively | |
| 38 | 108 | # clear it: collection only writes to a newly-created directory whose parent is | |
| @@ -66,10 +136,9 @@ prepare_output | |||
| 66 | 136 | [[ -x "$binary" ]] || { echo "first-presentation: executable not found: $binary" >&2; exit 2; } | |
| 67 | 137 | [[ -d "$runtime" ]] || { echo "first-presentation: CEF runtime not found: $runtime" >&2; exit 2; } | |
| 68 | 138 | [[ -n "${WAYLAND_DISPLAY:-}${DISPLAY:-}" ]] || { echo "first-presentation: a current Wayland/X11 display is required" >&2; exit 2; } | |
| 69 | - | [[ "$(go list -m -f '{{.Version}}' "$upstream_module")" == "$upstream_tag" ]] || { | |
| 70 | - | echo "first-presentation: expected $upstream_module@$upstream_tag" >&2 | |
| 71 | - | exit 2 | |
| 72 | - | } | |
| 139 | + | upstream_provenance="$(resolve_upstream_provenance)" || exit $? | |
| 140 | + | IFS=$'\t' read -r upstream_version upstream_tag upstream_revision <<<"$upstream_provenance" | |
| 141 | + | readonly upstream_version upstream_tag upstream_revision | |
| 73 | 142 | ||
| 74 | 143 | # Raw logs and temporary XDG homes may contain machine-local paths. Keep them | |
| 75 | 144 | # outside the committed artifact directory and always remove them. | |
| @@ -80,9 +149,9 @@ cleanup_work_root() { | |||
| 80 | 149 | rm -rf -- "$work_root" | |
| 81 | 150 | } | |
| 82 | 151 | trap cleanup_work_root EXIT | |
| 83 | - | python3 - "$output/metadata.json" "$binary" "$timeout_seconds" "$upstream_module" "$upstream_tag" "$upstream_revision" <<'PY' | |
| 152 | + | python3 - "$output/metadata.json" "$binary" "$timeout_seconds" "$upstream_module" "$upstream_version" "$upstream_tag" "$upstream_revision" <<'PY' | |
| 84 | 153 | import hashlib, json, os, platform, subprocess, sys | |
| 85 | - | path, binary, timeout, upstream_module, upstream_tag, upstream_revision = sys.argv[1:] | |
| 154 | + | path, binary, timeout, upstream_module, upstream_version, upstream_tag, upstream_revision = sys.argv[1:] | |
| 86 | 155 | with open(binary, "rb") as candidate: | |
| 87 | 156 | binary_sha256 = hashlib.file_digest(candidate, "sha256").hexdigest() | |
| 88 | 157 | ||
| @@ -102,7 +171,7 @@ json.dump({ | |||
| 102 | 171 | "binary": {"label": "dumber", "sha256": binary_sha256}, | |
| 103 | 172 | "timeout_seconds": int(timeout), | |
| 104 | 173 | "measured_source_revision": subprocess.check_output(["git", "-c", f"safe.directory={os.getcwd()}", "rev-parse", "HEAD"], text=True).strip(), | |
| 105 | - | "upstream": {"module": upstream_module, "tag": upstream_tag, "revision": upstream_revision}, | |
| 174 | + | "upstream": {"module": upstream_module, "version": upstream_version, "tag": upstream_tag, "revision": upstream_revision}, | |
| 106 | 175 | "comparison": {"os": os_label, "architecture": architecture, "display_protocol": display_protocol, "machine_gpu_profile": gpu_profile}, | |
| 107 | 176 | "render_configuration": {"backend": "gdk-dmabuf", "buffer_sharing": "dmabuf", "renderer": "vulkan"} | |
| 108 | 177 | }, open(path, "w"), indent=2, sort_keys=True) | |
| @@ -31,8 +31,78 @@ else | |||||
| 31 | fi | 31 | fi | ||
| 32 | readonly output | 32 | readonly output | ||
| 33 | readonly upstream_module="github.com/bnema/purego-cef2gtk" | 33 | readonly upstream_module="github.com/bnema/purego-cef2gtk" | ||
| 34 | - | readonly upstream_tag="v0.8.4" | 34 | + | |
| 35 | - | readonly upstream_revision="f217ece342dea3ef2a3f98671fcd16a39ad0037d" | 35 | + | # Resolve the version selected by this checkout, then obtain its immutable VCS |
| 36 | + | # origin from Go's cached module metadata. Do not infer a revision from a tag, | |||
| 37 | + | # a branch, or a truncated pseudo-version suffix. | |||
| 38 | + | resolve_upstream_provenance() { | |||
| 39 | + | local selected_metadata selected_version downloaded_metadata | |||
| 40 | + | ||||
| 41 | + | selected_metadata="$(go list -m -json "$upstream_module" 2>/dev/null)" || { | |||
| 42 | + | echo "first-presentation: immutable module provenance is unavailable" >&2 | |||
| 43 | + | exit 2 | |||
| 44 | + | } | |||
| 45 | + | selected_version="$(python3 - "$upstream_module" "$selected_metadata" <<'PY' | |||
| 46 | + | import json, sys | |||
| 47 | + | try: | |||
| 48 | + | metadata = json.loads(sys.argv[2]) | |||
| 49 | + | if metadata.get("Path") != sys.argv[1] or not isinstance(metadata.get("Version"), str): | |||
| 50 | + | raise ValueError | |||
| 51 | + | print(metadata["Version"]) | |||
| 52 | + | except (AttributeError, TypeError, ValueError, json.JSONDecodeError): | |||
| 53 | + | raise SystemExit("first-presentation: immutable module provenance is unavailable") | |||
| 54 | + | PY | |||
| 55 | + | )" || exit $? | |||
| 56 | + | downloaded_metadata="$(go mod download -json "$upstream_module@$selected_version" 2>/dev/null)" || { | |||
| 57 | + | echo "first-presentation: immutable module provenance is unavailable" >&2 | |||
| 58 | + | exit 2 | |||
| 59 | + | } | |||
| 60 | + | ||||
| 61 | + | python3 - "$upstream_module" "$selected_metadata" "$downloaded_metadata" <<'PY' | |||
| 62 | + | import json, re, sys | |||
| 63 | + | ||||
| 64 | + | module, selected_raw, downloaded_raw = sys.argv[1:] | |||
| 65 | + | ||||
| 66 | + | def fail(): | |||
| 67 | + | # Do not expose Go cache locations or other machine-local values. | |||
| 68 | + | raise SystemExit("first-presentation: immutable module provenance is unavailable") | |||
| 69 | + | ||||
| 70 | + | try: | |||
| 71 | + | selected = json.loads(selected_raw) | |||
| 72 | + | downloaded = json.loads(downloaded_raw) | |||
| 73 | + | version = selected["Version"] | |||
| 74 | + | if selected.get("Path") != module or downloaded.get("Path") != module: | |||
| 75 | + | fail() | |||
| 76 | + | if downloaded.get("Version") != version: | |||
| 77 | + | fail() | |||
| 78 | + | # A selected pseudo-version is an exact immutable selector, never a branch. | |||
| 79 | + | match = re.fullmatch(r"(v\d+\.\d+\.\d+)-0\.\d{14}-([0-9a-f]{12})", version) | |||
| 80 | + | if not match: | |||
| 81 | + | fail() | |||
| 82 | + | info_path = downloaded.get("Info") | |||
| 83 | + | if not isinstance(info_path, str) or not info_path: | |||
| 84 | + | fail() | |||
| 85 | + | with open(info_path, encoding="utf-8") as info_file: | |||
| 86 | + | info = json.load(info_file) | |||
| 87 | + | origin = info.get("Origin") or downloaded.get("Origin") | |||
| 88 | + | if info.get("Version") != version or not isinstance(origin, dict): | |||
| 89 | + | fail() | |||
| 90 | + | revision = origin.get("Hash") | |||
| 91 | + | if origin.get("VCS") != "git" or origin.get("URL") != "https://github.com/bnema/purego-cef2gtk": | |||
| 92 | + | fail() | |||
| 93 | + | if not isinstance(revision, str) or not re.fullmatch(r"[0-9a-f]{40}", revision): | |||
| 94 | + | fail() | |||
| 95 | + | if not revision.startswith(match.group(2)): | |||
| 96 | + | fail() | |||
| 97 | + | # A named ref can move. Only the immutable hash itself is acceptable. | |||
| 98 | + | if origin.get("Ref") not in (None, "", revision): | |||
| 99 | + | fail() | |||
| 100 | + | except (AttributeError, KeyError, OSError, TypeError, ValueError, json.JSONDecodeError): | |||
| 101 | + | fail() | |||
| 102 | + | ||||
| 103 | + | print("\t".join((version, match.group(1), revision))) | |||
| 104 | + | PY | |||
| 105 | + | } | |||
| 36 | 106 | ||||
| 37 | # The artifact destination is caller-controlled. Never empty or recursively | 107 | # The artifact destination is caller-controlled. Never empty or recursively | ||
| 38 | # clear it: collection only writes to a newly-created directory whose parent is | 108 | # clear it: collection only writes to a newly-created directory whose parent is | ||
| @@ -66,10 +136,9 @@ prepare_output | |||||
| 66 | [[ -x "$binary" ]] || { echo "first-presentation: executable not found: $binary" >&2; exit 2; } | 136 | [[ -x "$binary" ]] || { echo "first-presentation: executable not found: $binary" >&2; exit 2; } | ||
| 67 | [[ -d "$runtime" ]] || { echo "first-presentation: CEF runtime not found: $runtime" >&2; exit 2; } | 137 | [[ -d "$runtime" ]] || { echo "first-presentation: CEF runtime not found: $runtime" >&2; exit 2; } | ||
| 68 | [[ -n "${WAYLAND_DISPLAY:-}${DISPLAY:-}" ]] || { echo "first-presentation: a current Wayland/X11 display is required" >&2; exit 2; } | 138 | [[ -n "${WAYLAND_DISPLAY:-}${DISPLAY:-}" ]] || { echo "first-presentation: a current Wayland/X11 display is required" >&2; exit 2; } | ||
| 69 | - | [[ "$(go list -m -f '{{.Version}}' "$upstream_module")" == "$upstream_tag" ]] || { | 139 | + | upstream_provenance="$(resolve_upstream_provenance)" || exit $? |
| 70 | - | echo "first-presentation: expected $upstream_module@$upstream_tag" >&2 | 140 | + | IFS=$'\t' read -r upstream_version upstream_tag upstream_revision <<<"$upstream_provenance" |
| 71 | - | exit 2 | 141 | + | readonly upstream_version upstream_tag upstream_revision |
| 72 | - | } | |||
| 73 | 142 | ||||
| 74 | # Raw logs and temporary XDG homes may contain machine-local paths. Keep them | 143 | # Raw logs and temporary XDG homes may contain machine-local paths. Keep them | ||
| 75 | # outside the committed artifact directory and always remove them. | 144 | # outside the committed artifact directory and always remove them. | ||
| @@ -80,9 +149,9 @@ cleanup_work_root() { | |||||
| 80 | rm -rf -- "$work_root" | 149 | rm -rf -- "$work_root" | ||
| 81 | } | 150 | } | ||
| 82 | trap cleanup_work_root EXIT | 151 | trap cleanup_work_root EXIT | ||
| 83 | - | python3 - "$output/metadata.json" "$binary" "$timeout_seconds" "$upstream_module" "$upstream_tag" "$upstream_revision" <<'PY' | 152 | + | python3 - "$output/metadata.json" "$binary" "$timeout_seconds" "$upstream_module" "$upstream_version" "$upstream_tag" "$upstream_revision" <<'PY' |
| 84 | import hashlib, json, os, platform, subprocess, sys | 153 | import hashlib, json, os, platform, subprocess, sys | ||
| 85 | - | path, binary, timeout, upstream_module, upstream_tag, upstream_revision = sys.argv[1:] | 154 | + | path, binary, timeout, upstream_module, upstream_version, upstream_tag, upstream_revision = sys.argv[1:] |
| 86 | with open(binary, "rb") as candidate: | 155 | with open(binary, "rb") as candidate: | ||
| 87 | binary_sha256 = hashlib.file_digest(candidate, "sha256").hexdigest() | 156 | binary_sha256 = hashlib.file_digest(candidate, "sha256").hexdigest() | ||
| 88 | 157 | ||||
| @@ -102,7 +171,7 @@ json.dump({ | |||||
| 102 | "binary": {"label": "dumber", "sha256": binary_sha256}, | 171 | "binary": {"label": "dumber", "sha256": binary_sha256}, | ||
| 103 | "timeout_seconds": int(timeout), | 172 | "timeout_seconds": int(timeout), | ||
| 104 | "measured_source_revision": subprocess.check_output(["git", "-c", f"safe.directory={os.getcwd()}", "rev-parse", "HEAD"], text=True).strip(), | 173 | "measured_source_revision": subprocess.check_output(["git", "-c", f"safe.directory={os.getcwd()}", "rev-parse", "HEAD"], text=True).strip(), | ||
| 105 | - | "upstream": {"module": upstream_module, "tag": upstream_tag, "revision": upstream_revision}, | 174 | + | "upstream": {"module": upstream_module, "version": upstream_version, "tag": upstream_tag, "revision": upstream_revision}, |
| 106 | "comparison": {"os": os_label, "architecture": architecture, "display_protocol": display_protocol, "machine_gpu_profile": gpu_profile}, | 175 | "comparison": {"os": os_label, "architecture": architecture, "display_protocol": display_protocol, "machine_gpu_profile": gpu_profile}, | ||
| 107 | "render_configuration": {"backend": "gdk-dmabuf", "buffer_sharing": "dmabuf", "renderer": "vulkan"} | 176 | "render_configuration": {"backend": "gdk-dmabuf", "buffer_sharing": "dmabuf", "renderer": "vulkan"} | ||
| 108 | }, open(path, "w"), indent=2, sort_keys=True) | 177 | }, open(path, "w"), indent=2, sort_keys=True) | ||
M vendor/github.com/bnema/purego-cef/cef/bridge.go +8 -13 generated file: collapsed
M vendor/github.com/bnema/purego-cef2gtk/internal/cefadapter/accelerated_paint.go +34 -37 generated file: collapsed
M vendor/github.com/bnema/purego-cef2gtk/internal/dmabuf/frame.go +38 -19 generated file: collapsed
M vendor/github.com/bnema/purego-cef2gtk/internal/gtkgdk/renderer.go +89 -69 generated file: collapsed
M vendor/github.com/bnema/purego-pipewire/internal/core/player.go +5 -0 generated file: collapsed
M vendor/github.com/bnema/purego-pipewire/internal/core/player_rt.go +10 -6 generated file: collapsed
M vendor/github.com/bnema/purego-pipewire/internal/core/pwbuffer.go +66 -32 generated file: collapsed
M vendor/github.com/bnema/purego-sqlite/driver/driver.go +268 -63 generated file: collapsed
M vendor/github.com/bnema/purego-sqlite/internal/core/db.go +8 -0 generated file: collapsed
M vendor/github.com/bnema/purego-sqlite/internal/core/rows.go +13 -0 generated file: collapsed
M vendor/github.com/bnema/purego-sqlite/internal/loader/loader.go +23 -5 generated file: collapsed
M vendor/github.com/bnema/purego-sqlite/internal/ports/in/ports_gen.go +3 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/internal/core/core.go +197 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/pkg/core/core.go +10 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-dialog.go +99 -64 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-window.go +95 -62 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-accent-color.go +7 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-action-row.go +33 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-alert-dialog.go +66 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-target.go +10 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-util.go +4 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation.go +24 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application-window.go +14 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application.go +3 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-avatar.go +22 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-banner.go +23 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bin.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bottom-sheet.go +47 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint-bin.go +10 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint.go +33 -37 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-content.go +18 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-row.go +10 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-dots.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-lines.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel.go +47 -37 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-layout.go +14 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-scrollable.go +17 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp.go +17 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-combo-row.go +34 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-dialog.go +45 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-easing.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-entry-row.go +40 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-enum-list-model.go +13 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-expander-row.go +40 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-flap.go +61 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-fold-threshold-policy.go +10 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-header-bar.go +36 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-inline-view-switcher.go +18 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout-slot.go +4 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout.go +7 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-leaflet.go +69 -56 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-length-unit.go +5 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-main.go +5 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-message-dialog.go +63 -44 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-multi-layout-view.go +17 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-direction.go +10 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-split-view.go +36 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-view.go +60 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-overlay-split-view.go +48 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-password-entry-row.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-dialog.go +23 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-group.go +24 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-page.go +38 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-row.go +18 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-window.go +31 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcut-label.go +10 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-dialog.go +4 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-item.go +23 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-section.go +8 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-item.go +45 -37 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-section.go +24 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar.go +41 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spin-row.go +40 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner-paintable.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-split-button.go +39 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-animation.go +34 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-params.go +17 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-squeezer.go +49 -44 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-status-page.go +20 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-style-manager.go +25 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipe-tracker.go +33 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipeable.go +33 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-switch-row.go +6 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-bar.go +35 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-button.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-overview.go +45 -37 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-view.go +123 -87 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-timed-animation.go +30 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast-overlay.go +9 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast.go +41 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toggle-group.go +64 -51 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toolbar-view.go +40 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-version.go +7 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-stack.go +78 -62 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-bar.go +9 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-sidebar.go +15 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-title.go +19 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher.go +10 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window-title.go +10 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window.go +14 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-box.go +66 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-layout.go +57 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/cairo/main.go +36 -79 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkapplaunchcontext.go +10 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairo.go +12 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairocontext.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcicpparams.go +20 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkclipboard.go +34 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcolorstate.go +12 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentdeserializer.go +26 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentformats.go +28 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentprovider.go +23 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentserializer.go +26 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcursor.go +12 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevice.go +36 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicepad.go +27 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicetool.go +10 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplay.go +51 -43 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplaymanager.go +10 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexture.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexturebuilder.go +53 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrag.go +20 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurface.go +6 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurfacesize.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrawcontext.go +11 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrop.go +19 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkenums.go +21 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkevents.go +120 -118 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframeclock.go +22 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframetimings.go +17 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkglcontext.go +40 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexture.go +4 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexturebuilder.go +41 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkkeys.go +19 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexture.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexturebuilder.go +42 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmonitor.go +27 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpaintable.go +63 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpango.go +4 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpixbuf.go +2 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopup.go +47 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopuplayout.go +36 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkrgba.go +19 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkseat.go +11 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksnapshot.go +7 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksurface.go +46 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktexture.go +27 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevel.go +157 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevellayout.go +24 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevelsize.go +9 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktypes.go +95 -72 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkvulkancontext.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-animation.go +26 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-core.go +9 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-io.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-loader.go +13 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-simple-anim.go +8 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-transform.go +11 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf.go +102 -79 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/main.go +5 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gaction.go +59 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactiongroup.go +96 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactionmap.go +33 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gappinfo.go +244 -116 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplication.go +79 -55 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplicationcommandline.go +31 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncinitable.go +25 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncresult.go +26 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedinputstream.go +26 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedoutputstream.go +11 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbytesicon.go +4 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcancellable.go +26 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcharsetconverter.go +8 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcontenttype.go +30 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverter.go +23 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverterinputstream.go +3 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverteroutputstream.go +3 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcredentials.go +12 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatagrambased.go +45 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatainputstream.go +31 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdataoutputstream.go +14 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusactiongroup.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusaddress.go +10 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusauthobserver.go +6 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusconnection.go +77 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbuserror.go +16 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusinterface.go +26 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusinterfaceskeleton.go +25 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusintrospection.go +54 -56 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmenumodel.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmessage.go +88 -64 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmethodinvocation.go +35 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusnameowning.go +10 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusnamewatching.go +10 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobject.go +19 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanager.go +26 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerclient.go +16 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerserver.go +13 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectproxy.go +3 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectskeleton.go +12 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusproxy.go +42 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusserver.go +14 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusutils.go +24 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdebugcontroller.go +12 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdebugcontrollerdbus.go +4 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdrive.go +214 -82 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsclientconnection.go +34 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsconnection.go +207 -80 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsserverconnection.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gemblem.go +6 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gemblemedicon.go +9 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfile.go +1148 -450 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileattribute.go +13 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileenumerator.go +34 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileicon.go +3 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileinfo.go +138 -84 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileinputstream.go +17 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileiostream.go +23 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilemonitor.go +9 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilenamecompleter.go +8 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileoutputstream.go +23 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilterinputstream.go +6 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilteroutputstream.go +6 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gicon.go +32 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetaddress.go +40 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetaddressmask.go +14 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetsocketaddress.go +10 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginitable.go +11 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginputstream.go +52 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioenums.go +90 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioerror.go +6 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giomodule.go +26 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioscheduler.go +4 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giostream.go +25 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giotypes.go +70 -60 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giptosmessage.go +6 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gipv6tclassmessage.go +6 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/glistmodel.go +33 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gliststore.go +22 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gloadableicon.go +27 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemoryinputstream.go +8 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemorymonitor.go +2 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemoryoutputstream.go +13 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmenu.go +62 -50 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmenumodel.go +31 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmount.go +215 -86 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmountoperation.go +40 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnativesocketaddress.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnativevolumemonitor.go +7 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkaddress.go +11 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworking.go +3 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkmonitor.go +49 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkservice.go +12 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnotification.go +26 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/goutputstream.go +86 -72 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpermission.go +33 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableinputstream.go +30 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableoutputstream.go +41 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableutils.go +7 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpowerprofilemonitor.go +7 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpropertyaction.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxy.go +35 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyaddress.go +16 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyaddressenumerator.go +7 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyresolver.go +35 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gremoteactiongroup.go +12 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gresolver.go +75 -67 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gresource.go +19 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gseekable.go +41 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettings.go +99 -67 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettingsbackend.go +19 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettingsschema.go +48 -43 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleaction.go +9 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleactiongroup.go +9 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleasyncresult.go +46 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleiostream.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimplepermission.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleproxyresolver.go +8 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocket.go +87 -72 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketaddress.go +11 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketaddressenumerator.go +13 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketclient.go +54 -44 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketconnectable.go +19 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketconnection.go +14 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketcontrolmessage.go +10 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketlistener.go +18 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketservice.go +8 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsrvtarget.go +2 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsubprocess.go +40 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsubprocesslauncher.go +34 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtask.go +70 -52 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtcpconnection.go +5 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtcpwrapperconnection.go +3 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtestdbus.go +16 -22 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gthemedicon.go +10 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gthreadedresolver.go +7 -0 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gthreadedsocketservice.go +2 -12 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gtlsbackend.go +69 -33 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gtlscertificate.go +25 -29 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gtlsclientconnection.go +55 -29 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gtlsconnection.go +56 -46 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gtlsdatabase.go +51 -48 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gtlsfiledatabase.go +2 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gtlsinteraction.go +27 -31 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gtlspassword.go +20 -22 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gtlsserverconnection.go +2 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gunixconnection.go +11 -20 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gunixcredentialsmessage.go +6 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gunixfdlist.go +11 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gunixsocketaddress.go +14 -22 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvfs.go +18 -24 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvolume.go +143 -58 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvolumemonitor.go +11 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gzlibcompressor.go +9 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gzlibdecompressor.go +3 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/main.go +2 -11 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gallocator.go +32 -28 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/garray.go +82 -59 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gasyncqueue.go +56 -39 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gatomic.go +43 -34 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbacktrace.go +5 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbase64.go +13 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbitlock.go +23 -24 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbookmarkfile.go +69 -61 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcache.go +10 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcharset.go +13 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gchecksum.go +23 -25 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcompletion.go +14 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gconvert.go +25 -28 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdataset.go +36 -28 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdate.go +103 -65 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdatetime.go +107 -66 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdir.go +12 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/genviron.go +17 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gerror.go +30 -29 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gfileutils.go +45 -38 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ggettext.go +13 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghash.go +81 -53 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghmac.go +21 -24 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghook.go +28 -26 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghostutils.go +11 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/giochannel.go +83 -67 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gkeyfile.go +72 -62 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/glib-types.go +4 -12 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/glist.go +2 -11 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmain.go +181 -117 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmappedfile.go +15 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmarkup.go +51 -43 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmem.go +44 -31 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmessages.go +70 -45 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gnode.go +50 -35 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/goption.go +57 -43 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gpathbuf.go +26 -24 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gpattern.go +19 -23 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gpoll.go +3 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gprimes.go +3 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gprintf.go +15 -20 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gqsort.go +5 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gquark.go +13 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gqueue.go +84 -52 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grand.go +33 -30 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grcbox.go +29 -27 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grefcount.go +17 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grefstring.go +15 -20 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gregex.go +72 -57 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grel.go +20 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gscanner.go +40 -30 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gsequence.go +74 -49 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gshell.go +5 -16 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gslice.go +17 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gslist.go +2 -11 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gspawn.go +12 -23 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstdio.go +33 -27 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstrfuncs.go +115 -71 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstring.go +77 -51 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstringchunk.go +10 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstrvbuilder.go +19 -22 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtestutils.go +132 -80 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gthread.go +146 -97 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gthreadpool.go +26 -25 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtimer.go +18 -20 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtimezone.go +27 -26 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtrashstack.go +8 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtree.go +63 -45 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtypes.go +4 -12 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gunicode.go +132 -85 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/guri.go +63 -50 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gutils.go +62 -41 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/guuid.go +5 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gvariant-parser.go +3 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gvariant.go +242 -143
| @@ -5,7 +5,6 @@ import ( | |||
| 5 | 5 | "structs" | |
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | - | "github.com/bnema/purego" | |
| 9 | 8 | "github.com/bnema/puregotk/pkg/core" | |
| 10 | 9 | "github.com/bnema/puregotk/v4/gobject/types" | |
| 11 | 10 | ) | |
| @@ -261,6 +260,7 @@ type Variant struct { | |||
| 261 | 260 | var xVariantGLibType func() types.GType | |
| 262 | 261 | ||
| 263 | 262 | func VariantGLibType() types.GType { | |
| 263 | + | core.LazyRegister(&xVariantGLibType, "GLIB", "intern", false) | |
| 264 | 264 | return xVariantGLibType() | |
| 265 | 265 | } | |
| 266 | 266 | ||
| @@ -309,6 +309,8 @@ var xNewVariant func(string, ...interface{}) uintptr | |||
| 309 | 309 | // | |
| 310 | 310 | // ]| | |
| 311 | 311 | func NewVariant(FormatStringVar string, varArgs ...interface{}) *Variant { | |
| 312 | + | core.LazyRegister(&xNewVariant, "GLIB", "g_variant_new", false) | |
| 313 | + | ||
| 312 | 314 | cret := xNewVariant(FormatStringVar, varArgs...) | |
| 313 | 315 | if cret == 0 { | |
| 314 | 316 | return nil | |
| @@ -334,6 +336,8 @@ var xNewVariantArray func(*VariantType, uintptr, uint) uintptr | |||
| 334 | 336 | // If the @children are floating references (see g_variant_ref_sink()), the | |
| 335 | 337 | // new instance takes ownership of them as if via g_variant_ref_sink(). | |
| 336 | 338 | func NewVariantArray(ChildTypeVar *VariantType, ChildrenVar uintptr, NChildrenVar uint) *Variant { | |
| 339 | + | core.LazyRegister(&xNewVariantArray, "GLIB", "g_variant_new_array", false) | |
| 340 | + | ||
| 337 | 341 | cret := xNewVariantArray(ChildTypeVar, ChildrenVar, NChildrenVar) | |
| 338 | 342 | if cret == 0 { | |
| 339 | 343 | return nil | |
| @@ -345,6 +349,8 @@ var xNewVariantBoolean func(bool) uintptr | |||
| 345 | 349 | ||
| 346 | 350 | // Creates a new boolean #GVariant instance -- either %TRUE or %FALSE. | |
| 347 | 351 | func NewVariantBoolean(ValueVar bool) *Variant { | |
| 352 | + | core.LazyRegister(&xNewVariantBoolean, "GLIB", "g_variant_new_boolean", false) | |
| 353 | + | ||
| 348 | 354 | cret := xNewVariantBoolean(ValueVar) | |
| 349 | 355 | if cret == 0 { | |
| 350 | 356 | return nil | |
| @@ -356,6 +362,8 @@ var xNewVariantByte func(byte) uintptr | |||
| 356 | 362 | ||
| 357 | 363 | // Creates a new byte #GVariant instance. | |
| 358 | 364 | func NewVariantByte(ValueVar byte) *Variant { | |
| 365 | + | core.LazyRegister(&xNewVariantByte, "GLIB", "g_variant_new_byte", false) | |
| 366 | + | ||
| 359 | 367 | cret := xNewVariantByte(ValueVar) | |
| 360 | 368 | if cret == 0 { | |
| 361 | 369 | return nil | |
| @@ -372,6 +380,8 @@ var xNewVariantBytestring func([]byte) uintptr | |||
| 372 | 380 | // The nul terminator character at the end of the string is stored in | |
| 373 | 381 | // the array. | |
| 374 | 382 | func NewVariantBytestring(StringVar []byte) *Variant { | |
| 383 | + | core.LazyRegister(&xNewVariantBytestring, "GLIB", "g_variant_new_bytestring", false) | |
| 384 | + | ||
| 375 | 385 | cret := xNewVariantBytestring(StringVar) | |
| 376 | 386 | if cret == 0 { | |
| 377 | 387 | return nil | |
| @@ -386,6 +396,8 @@ var xNewVariantBytestringArray func([]string, int) uintptr | |||
| 386 | 396 | // | |
| 387 | 397 | // If @length is -1 then @strv is %NULL-terminated. | |
| 388 | 398 | func NewVariantBytestringArray(StrvVar []string, LengthVar int) *Variant { | |
| 399 | + | core.LazyRegister(&xNewVariantBytestringArray, "GLIB", "g_variant_new_bytestring_array", false) | |
| 400 | + | ||
| 389 | 401 | cret := xNewVariantBytestringArray(StrvVar, LengthVar) | |
| 390 | 402 | if cret == 0 { | |
| 391 | 403 | return nil | |
| @@ -401,6 +413,8 @@ var xNewVariantDictEntry func(*Variant, *Variant) uintptr | |||
| 401 | 413 | // If the @key or @value are floating references (see g_variant_ref_sink()), | |
| 402 | 414 | // the new instance takes ownership of them as if via g_variant_ref_sink(). | |
| 403 | 415 | func NewVariantDictEntry(KeyVar *Variant, ValueVar *Variant) *Variant { | |
| 416 | + | core.LazyRegister(&xNewVariantDictEntry, "GLIB", "g_variant_new_dict_entry", false) | |
| 417 | + | ||
| 404 | 418 | cret := xNewVariantDictEntry(KeyVar, ValueVar) | |
| 405 | 419 | if cret == 0 { | |
| 406 | 420 | return nil | |
| @@ -412,6 +426,8 @@ var xNewVariantDouble func(float64) uintptr | |||
| 412 | 426 | ||
| 413 | 427 | // Creates a new double #GVariant instance. | |
| 414 | 428 | func NewVariantDouble(ValueVar float64) *Variant { | |
| 429 | + | core.LazyRegister(&xNewVariantDouble, "GLIB", "g_variant_new_double", false) | |
| 430 | + | ||
| 415 | 431 | cret := xNewVariantDouble(ValueVar) | |
| 416 | 432 | if cret == 0 { | |
| 417 | 433 | return nil | |
| @@ -435,6 +451,8 @@ var xNewVariantFixedArray func(*VariantType, uintptr, uint, uint) uintptr | |||
| 435 | 451 | // | |
| 436 | 452 | // @n_elements must be the length of the @elements array. | |
| 437 | 453 | func NewVariantFixedArray(ElementTypeVar *VariantType, ElementsVar uintptr, NElementsVar uint, ElementSizeVar uint) *Variant { | |
| 454 | + | core.LazyRegister(&xNewVariantFixedArray, "GLIB", "g_variant_new_fixed_array", false) | |
| 455 | + | ||
| 438 | 456 | cret := xNewVariantFixedArray(ElementTypeVar, ElementsVar, NElementsVar, ElementSizeVar) | |
| 439 | 457 | if cret == 0 { | |
| 440 | 458 | return nil | |
| @@ -454,6 +472,8 @@ var xNewVariantFromBytes func(*VariantType, *Bytes, bool) uintptr | |||
| 454 | 472 | // Otherwise this function will internally create a copy of the memory (since | |
| 455 | 473 | // GLib 2.60) or (in older versions) fail and exit the process. | |
| 456 | 474 | func NewVariantFromBytes(TypeVar *VariantType, BytesVar *Bytes, TrustedVar bool) *Variant { | |
| 475 | + | core.LazyRegister(&xNewVariantFromBytes, "GLIB", "g_variant_new_from_bytes", false) | |
| 476 | + | ||
| 457 | 477 | cret := xNewVariantFromBytes(TypeVar, BytesVar, TrustedVar) | |
| 458 | 478 | if cret == 0 { | |
| 459 | 479 | return nil | |
| @@ -493,6 +513,8 @@ var xNewVariantFromData func(*VariantType, []byte, uint, bool, uintptr, uintptr) | |||
| 493 | 513 | // the memory (since GLib 2.60) or (in older versions) fail and exit the | |
| 494 | 514 | // process. | |
| 495 | 515 | func NewVariantFromData(TypeVar *VariantType, DataVar []byte, SizeVar uint, TrustedVar bool, NotifyVar *DestroyNotify, UserDataVar uintptr) *Variant { | |
| 516 | + | core.LazyRegister(&xNewVariantFromData, "GLIB", "g_variant_new_from_data", false) | |
| 517 | + | ||
| 496 | 518 | cret := xNewVariantFromData(TypeVar, DataVar, SizeVar, TrustedVar, NewCallbackNullable(NotifyVar), UserDataVar) | |
| 497 | 519 | if cret == 0 { | |
| 498 | 520 | return nil | |
| @@ -508,6 +530,8 @@ var xNewVariantHandle func(int32) uintptr | |||
| 508 | 530 | // that are sent alongside a D-Bus message. If you're not interacting | |
| 509 | 531 | // with D-Bus, you probably don't need them. | |
| 510 | 532 | func NewVariantHandle(ValueVar int32) *Variant { | |
| 533 | + | core.LazyRegister(&xNewVariantHandle, "GLIB", "g_variant_new_handle", false) | |
| 534 | + | ||
| 511 | 535 | cret := xNewVariantHandle(ValueVar) | |
| 512 | 536 | if cret == 0 { | |
| 513 | 537 | return nil | |
| @@ -519,6 +543,8 @@ var xNewVariantInt16 func(int16) uintptr | |||
| 519 | 543 | ||
| 520 | 544 | // Creates a new int16 #GVariant instance. | |
| 521 | 545 | func NewVariantInt16(ValueVar int16) *Variant { | |
| 546 | + | core.LazyRegister(&xNewVariantInt16, "GLIB", "g_variant_new_int16", false) | |
| 547 | + | ||
| 522 | 548 | cret := xNewVariantInt16(ValueVar) | |
| 523 | 549 | if cret == 0 { | |
| 524 | 550 | return nil | |
| @@ -530,6 +556,8 @@ var xNewVariantInt32 func(int32) uintptr | |||
| 530 | 556 | ||
| 531 | 557 | // Creates a new int32 #GVariant instance. | |
| 532 | 558 | func NewVariantInt32(ValueVar int32) *Variant { | |
| 559 | + | core.LazyRegister(&xNewVariantInt32, "GLIB", "g_variant_new_int32", false) | |
| 560 | + | ||
| 533 | 561 | cret := xNewVariantInt32(ValueVar) | |
| 534 | 562 | if cret == 0 { | |
| 535 | 563 | return nil | |
| @@ -541,6 +569,8 @@ var xNewVariantInt64 func(int64) uintptr | |||
| 541 | 569 | ||
| 542 | 570 | // Creates a new int64 #GVariant instance. | |
| 543 | 571 | func NewVariantInt64(ValueVar int64) *Variant { | |
| 572 | + | core.LazyRegister(&xNewVariantInt64, "GLIB", "g_variant_new_int64", false) | |
| 573 | + | ||
| 544 | 574 | cret := xNewVariantInt64(ValueVar) | |
| 545 | 575 | if cret == 0 { | |
| 546 | 576 | return nil | |
| @@ -561,6 +591,8 @@ var xNewVariantMaybe func(*VariantType, *Variant) uintptr | |||
| 561 | 591 | // If @child is a floating reference (see g_variant_ref_sink()), the new | |
| 562 | 592 | // instance takes ownership of @child. | |
| 563 | 593 | func NewVariantMaybe(ChildTypeVar *VariantType, ChildVar *Variant) *Variant { | |
| 594 | + | core.LazyRegister(&xNewVariantMaybe, "GLIB", "g_variant_new_maybe", false) | |
| 595 | + | ||
| 564 | 596 | cret := xNewVariantMaybe(ChildTypeVar, ChildVar) | |
| 565 | 597 | if cret == 0 { | |
| 566 | 598 | return nil | |
| @@ -574,6 +606,8 @@ var xNewVariantObjectPath func(string) uintptr | |||
| 574 | 606 | // @object_path must be a valid D-Bus object path. Use | |
| 575 | 607 | // g_variant_is_object_path() if you're not sure. | |
| 576 | 608 | func NewVariantObjectPath(ObjectPathVar string) *Variant { | |
| 609 | + | core.LazyRegister(&xNewVariantObjectPath, "GLIB", "g_variant_new_object_path", false) | |
| 610 | + | ||
| 577 | 611 | cret := xNewVariantObjectPath(ObjectPathVar) | |
| 578 | 612 | if cret == 0 { | |
| 579 | 613 | return nil | |
| @@ -591,6 +625,8 @@ var xNewVariantObjv func([]string, int) uintptr | |||
| 591 | 625 | // | |
| 592 | 626 | // If @length is -1 then @strv is %NULL-terminated. | |
| 593 | 627 | func NewVariantObjv(StrvVar []string, LengthVar int) *Variant { | |
| 628 | + | core.LazyRegister(&xNewVariantObjv, "GLIB", "g_variant_new_objv", false) | |
| 629 | + | ||
| 594 | 630 | cret := xNewVariantObjv(StrvVar, LengthVar) | |
| 595 | 631 | if cret == 0 { | |
| 596 | 632 | return nil | |
| @@ -635,6 +671,8 @@ var xNewVariantParsed func(string, ...interface{}) uintptr | |||
| 635 | 671 | // be anything along the lines of "%*", "%?", "\%r", or anything starting | |
| 636 | 672 | // with "%@". | |
| 637 | 673 | func NewVariantParsed(FormatVar string, varArgs ...interface{}) *Variant { | |
| 674 | + | core.LazyRegister(&xNewVariantParsed, "GLIB", "g_variant_new_parsed", false) | |
| 675 | + | ||
| 638 | 676 | cret := xNewVariantParsed(FormatVar, varArgs...) | |
| 639 | 677 | if cret == 0 { | |
| 640 | 678 | return nil | |
| @@ -666,6 +704,8 @@ var xNewVariantParsedVa func(string, []interface{}) uintptr | |||
| 666 | 704 | // result. This can also be done by adding the result to a container, | |
| 667 | 705 | // or by passing it to another g_variant_new() call. | |
| 668 | 706 | func NewVariantParsedVa(FormatVar string, AppVar []interface{}) *Variant { | |
| 707 | + | core.LazyRegister(&xNewVariantParsedVa, "GLIB", "g_variant_new_parsed_va", false) | |
| 708 | + | ||
| 669 | 709 | cret := xNewVariantParsedVa(FormatVar, AppVar) | |
| 670 | 710 | if cret == 0 { | |
| 671 | 711 | return nil | |
| @@ -681,6 +721,8 @@ var xNewVariantPrintf func(string, ...interface{}) uintptr | |||
| 681 | 721 | // g_variant_new_string() but it saves a temporary variable and an | |
| 682 | 722 | // unnecessary copy. | |
| 683 | 723 | func NewVariantPrintf(FormatStringVar string, varArgs ...interface{}) *Variant { | |
| 724 | + | core.LazyRegister(&xNewVariantPrintf, "GLIB", "g_variant_new_printf", false) | |
| 725 | + | ||
| 684 | 726 | cret := xNewVariantPrintf(FormatStringVar, varArgs...) | |
| 685 | 727 | if cret == 0 { | |
| 686 | 728 | return nil | |
| @@ -694,6 +736,8 @@ var xNewVariantSignature func(string) uintptr | |||
| 694 | 736 | // @string. @string must be a valid D-Bus type signature. Use | |
| 695 | 737 | // g_variant_is_signature() if you're not sure. | |
| 696 | 738 | func NewVariantSignature(SignatureVar string) *Variant { | |
| 739 | + | core.LazyRegister(&xNewVariantSignature, "GLIB", "g_variant_new_signature", false) | |
| 740 | + | ||
| 697 | 741 | cret := xNewVariantSignature(SignatureVar) | |
| 698 | 742 | if cret == 0 { | |
| 699 | 743 | return nil | |
| @@ -709,6 +753,8 @@ var xNewVariantString func(string) uintptr | |||
| 709 | 753 | // potentially-%NULL strings, use g_variant_new() with `ms` as the | |
| 710 | 754 | // [format string](gvariant-format-strings.html#maybe-types). | |
| 711 | 755 | func NewVariantString(StringVar string) *Variant { | |
| 756 | + | core.LazyRegister(&xNewVariantString, "GLIB", "g_variant_new_string", false) | |
| 757 | + | ||
| 712 | 758 | cret := xNewVariantString(StringVar) | |
| 713 | 759 | if cret == 0 { | |
| 714 | 760 | return nil | |
| @@ -723,6 +769,8 @@ var xNewVariantStrv func([]string, int) uintptr | |||
| 723 | 769 | // | |
| 724 | 770 | // If @length is -1 then @strv is %NULL-terminated. | |
| 725 | 771 | func NewVariantStrv(StrvVar []string, LengthVar int) *Variant { | |
| 772 | + | core.LazyRegister(&xNewVariantStrv, "GLIB", "g_variant_new_strv", false) | |
| 773 | + | ||
| 726 | 774 | cret := xNewVariantStrv(StrvVar, LengthVar) | |
| 727 | 775 | if cret == 0 { | |
| 728 | 776 | return nil | |
| @@ -745,6 +793,8 @@ var xNewVariantTakeString func(string) uintptr | |||
| 745 | 793 | // it to this function. It is even possible that @string is immediately | |
| 746 | 794 | // freed. | |
| 747 | 795 | func NewVariantTakeString(StringVar string) *Variant { | |
| 796 | + | core.LazyRegister(&xNewVariantTakeString, "GLIB", "g_variant_new_take_string", false) | |
| 797 | + | ||
| 748 | 798 | cret := xNewVariantTakeString(StringVar) | |
| 749 | 799 | if cret == 0 { | |
| 750 | 800 | return nil | |
| @@ -763,6 +813,8 @@ var xNewVariantTuple func(uintptr, uint) uintptr | |||
| 763 | 813 | // If the @children are floating references (see g_variant_ref_sink()), the | |
| 764 | 814 | // new instance takes ownership of them as if via g_variant_ref_sink(). | |
| 765 | 815 | func NewVariantTuple(ChildrenVar uintptr, NChildrenVar uint) *Variant { | |
| 816 | + | core.LazyRegister(&xNewVariantTuple, "GLIB", "g_variant_new_tuple", false) | |
| 817 | + | ||
| 766 | 818 | cret := xNewVariantTuple(ChildrenVar, NChildrenVar) | |
| 767 | 819 | if cret == 0 { | |
| 768 | 820 | return nil | |
| @@ -774,6 +826,8 @@ var xNewVariantUint16 func(uint16) uintptr | |||
| 774 | 826 | ||
| 775 | 827 | // Creates a new uint16 #GVariant instance. | |
| 776 | 828 | func NewVariantUint16(ValueVar uint16) *Variant { | |
| 829 | + | core.LazyRegister(&xNewVariantUint16, "GLIB", "g_variant_new_uint16", false) | |
| 830 | + | ||
| 777 | 831 | cret := xNewVariantUint16(ValueVar) | |
| 778 | 832 | if cret == 0 { | |
| 779 | 833 | return nil | |
| @@ -785,6 +839,8 @@ var xNewVariantUint32 func(uint32) uintptr | |||
| 785 | 839 | ||
| 786 | 840 | // Creates a new uint32 #GVariant instance. | |
| 787 | 841 | func NewVariantUint32(ValueVar uint32) *Variant { | |
| 842 | + | core.LazyRegister(&xNewVariantUint32, "GLIB", "g_variant_new_uint32", false) | |
| 843 | + | ||
| 788 | 844 | cret := xNewVariantUint32(ValueVar) | |
| 789 | 845 | if cret == 0 { | |
| 790 | 846 | return nil | |
| @@ -796,6 +852,8 @@ var xNewVariantUint64 func(uint64) uintptr | |||
| 796 | 852 | ||
| 797 | 853 | // Creates a new uint64 #GVariant instance. | |
| 798 | 854 | func NewVariantUint64(ValueVar uint64) *Variant { | |
| 855 | + | core.LazyRegister(&xNewVariantUint64, "GLIB", "g_variant_new_uint64", false) | |
| 856 | + | ||
| 799 | 857 | cret := xNewVariantUint64(ValueVar) | |
| 800 | 858 | if cret == 0 { | |
| 801 | 859 | return nil | |
| @@ -842,6 +900,8 @@ var xNewVariantVa func(string, uintptr, []interface{}) uintptr | |||
| 842 | 900 | // result. This can also be done by adding the result to a container, | |
| 843 | 901 | // or by passing it to another g_variant_new() call. | |
| 844 | 902 | func NewVariantVa(FormatStringVar string, EndptrVar *string, AppVar []interface{}) *Variant { | |
| 903 | + | core.LazyRegister(&xNewVariantVa, "GLIB", "g_variant_new_va", false) | |
| 904 | + | ||
| 845 | 905 | EndptrVarPtr := core.GStrdupNullable(EndptrVar) | |
| 846 | 906 | defer core.GFreeNullable(EndptrVarPtr) | |
| 847 | 907 | ||
| @@ -860,6 +920,8 @@ var xNewVariantVariant func(*Variant) uintptr | |||
| 860 | 920 | // If @child is a floating reference (see g_variant_ref_sink()), the new | |
| 861 | 921 | // instance takes ownership of @child. | |
| 862 | 922 | func NewVariantVariant(ValueVar *Variant) *Variant { | |
| 923 | + | core.LazyRegister(&xNewVariantVariant, "GLIB", "g_variant_new_variant", false) | |
| 924 | + | ||
| 863 | 925 | cret := xNewVariantVariant(ValueVar) | |
| 864 | 926 | if cret == 0 { | |
| 865 | 927 | return nil | |
| @@ -887,6 +949,8 @@ var xVariantByteswap func(uintptr) uintptr | |||
| 887 | 949 | // The returned value is always in normal form and is marked as trusted. | |
| 888 | 950 | // A full, not floating, reference is returned. | |
| 889 | 951 | func (x *Variant) Byteswap() *Variant { | |
| 952 | + | core.LazyRegister(&xVariantByteswap, "GLIB", "g_variant_byteswap", false) | |
| 953 | + | ||
| 890 | 954 | cret := xVariantByteswap(x.GoPointer()) | |
| 891 | 955 | if cret == 0 { | |
| 892 | 956 | return nil | |
| @@ -911,6 +975,8 @@ var xVariantCheckFormatString func(uintptr, string, bool) bool | |||
| 911 | 975 | // varargs accessors to #GVariant values of uncertain values (eg: | |
| 912 | 976 | // g_variant_lookup() or g_menu_model_get_item_attribute()). | |
| 913 | 977 | func (x *Variant) CheckFormatString(FormatStringVar string, CopyOnlyVar bool) bool { | |
| 978 | + | core.LazyRegister(&xVariantCheckFormatString, "GLIB", "g_variant_check_format_string", false) | |
| 979 | + | ||
| 914 | 980 | cret := xVariantCheckFormatString(x.GoPointer(), FormatStringVar, CopyOnlyVar) | |
| 915 | 981 | return cret | |
| 916 | 982 | } | |
| @@ -919,6 +985,8 @@ var xVariantClassify func(uintptr) VariantClass | |||
| 919 | 985 | ||
| 920 | 986 | // Classifies @value according to its top-level type. | |
| 921 | 987 | func (x *Variant) Classify() VariantClass { | |
| 988 | + | core.LazyRegister(&xVariantClassify, "GLIB", "g_variant_classify", false) | |
| 989 | + | ||
| 922 | 990 | cret := xVariantClassify(x.GoPointer()) | |
| 923 | 991 | return cret | |
| 924 | 992 | } | |
| @@ -945,6 +1013,8 @@ var xVariantCompare func(uintptr, uintptr) int | |||
| 945 | 1013 | // If you only require an equality comparison, g_variant_equal() is more | |
| 946 | 1014 | // general. | |
| 947 | 1015 | func (x *Variant) Compare(TwoVar uintptr) int { | |
| 1016 | + | core.LazyRegister(&xVariantCompare, "GLIB", "g_variant_compare", false) | |
| 1017 | + | ||
| 948 | 1018 | cret := xVariantCompare(x.GoPointer(), TwoVar) | |
| 949 | 1019 | return cret | |
| 950 | 1020 | } | |
| @@ -956,6 +1026,8 @@ var xVariantDupBytestring func(uintptr, *uint) uintptr | |||
| 956 | 1026 | // | |
| 957 | 1027 | // The return value must be freed using g_free(). | |
| 958 | 1028 | func (x *Variant) DupBytestring(LengthVar *uint) uintptr { | |
| 1029 | + | core.LazyRegister(&xVariantDupBytestring, "GLIB", "g_variant_dup_bytestring", false) | |
| 1030 | + | ||
| 959 | 1031 | cret := xVariantDupBytestring(x.GoPointer(), LengthVar) | |
| 960 | 1032 | return cret | |
| 961 | 1033 | } | |
| @@ -973,6 +1045,8 @@ var xVariantDupBytestringArray func(uintptr, *uint) []string | |||
| 973 | 1045 | // For an empty array, @length will be set to 0 and a pointer to a | |
| 974 | 1046 | // %NULL pointer will be returned. | |
| 975 | 1047 | func (x *Variant) DupBytestringArray(LengthVar *uint) []string { | |
| 1048 | + | core.LazyRegister(&xVariantDupBytestringArray, "GLIB", "g_variant_dup_bytestring_array", false) | |
| 1049 | + | ||
| 976 | 1050 | cret := xVariantDupBytestringArray(x.GoPointer(), LengthVar) | |
| 977 | 1051 | return cret | |
| 978 | 1052 | } | |
| @@ -990,6 +1064,8 @@ var xVariantDupObjv func(uintptr, *uint) []string | |||
| 990 | 1064 | // For an empty array, @length will be set to 0 and a pointer to a | |
| 991 | 1065 | // %NULL pointer will be returned. | |
| 992 | 1066 | func (x *Variant) DupObjv(LengthVar *uint) []string { | |
| 1067 | + | core.LazyRegister(&xVariantDupObjv, "GLIB", "g_variant_dup_objv", false) | |
| 1068 | + | ||
| 993 | 1069 | cret := xVariantDupObjv(x.GoPointer(), LengthVar) | |
| 994 | 1070 | return cret | |
| 995 | 1071 | } | |
| @@ -1003,6 +1079,8 @@ var xVariantDupString func(uintptr, *uint) string | |||
| 1003 | 1079 | // | |
| 1004 | 1080 | // The return value must be freed using g_free(). | |
| 1005 | 1081 | func (x *Variant) DupString(LengthVar *uint) string { | |
| 1082 | + | core.LazyRegister(&xVariantDupString, "GLIB", "g_variant_dup_string", false) | |
| 1083 | + | ||
| 1006 | 1084 | cret := xVariantDupString(x.GoPointer(), LengthVar) | |
| 1007 | 1085 | return cret | |
| 1008 | 1086 | } | |
| @@ -1020,6 +1098,8 @@ var xVariantDupStrv func(uintptr, *uint) []string | |||
| 1020 | 1098 | // For an empty array, @length will be set to 0 and a pointer to a | |
| 1021 | 1099 | // %NULL pointer will be returned. | |
| 1022 | 1100 | func (x *Variant) DupStrv(LengthVar *uint) []string { | |
| 1101 | + | core.LazyRegister(&xVariantDupStrv, "GLIB", "g_variant_dup_strv", false) | |
| 1102 | + | ||
| 1023 | 1103 | cret := xVariantDupStrv(x.GoPointer(), LengthVar) | |
| 1024 | 1104 | return cret | |
| 1025 | 1105 | } | |
| @@ -1031,6 +1111,8 @@ var xVariantEqual func(uintptr, uintptr) bool | |||
| 1031 | 1111 | // The types of @one and @two are #gconstpointer only to allow use of | |
| 1032 | 1112 | // this function with #GHashTable. They must each be a #GVariant. | |
| 1033 | 1113 | func (x *Variant) Equal(TwoVar uintptr) bool { | |
| 1114 | + | core.LazyRegister(&xVariantEqual, "GLIB", "g_variant_equal", false) | |
| 1115 | + | ||
| 1034 | 1116 | cret := xVariantEqual(x.GoPointer(), TwoVar) | |
| 1035 | 1117 | return cret | |
| 1036 | 1118 | } | |
| @@ -1054,6 +1136,8 @@ var xVariantGet func(uintptr, string, ...interface{}) | |||
| 1054 | 1136 | // see the section on | |
| 1055 | 1137 | // [`GVariant` format strings](gvariant-format-strings.html#pointers). | |
| 1056 | 1138 | func (x *Variant) Get(FormatStringVar string, varArgs ...interface{}) { | |
| 1139 | + | core.LazyRegister(&xVariantGet, "GLIB", "g_variant_get", false) | |
| 1140 | + | ||
| 1057 | 1141 | xVariantGet(x.GoPointer(), FormatStringVar, varArgs...) | |
| 1058 | 1142 | } | |
| 1059 | 1143 | ||
| @@ -1064,6 +1148,8 @@ var xVariantGetBoolean func(uintptr) bool | |||
| 1064 | 1148 | // It is an error to call this function with a @value of any type | |
| 1065 | 1149 | // other than %G_VARIANT_TYPE_BOOLEAN. | |
| 1066 | 1150 | func (x *Variant) GetBoolean() bool { | |
| 1151 | + | core.LazyRegister(&xVariantGetBoolean, "GLIB", "g_variant_get_boolean", false) | |
| 1152 | + | ||
| 1067 | 1153 | cret := xVariantGetBoolean(x.GoPointer()) | |
| 1068 | 1154 | return cret | |
| 1069 | 1155 | } | |
| @@ -1075,6 +1161,8 @@ var xVariantGetByte func(uintptr) byte | |||
| 1075 | 1161 | // It is an error to call this function with a @value of any type | |
| 1076 | 1162 | // other than %G_VARIANT_TYPE_BYTE. | |
| 1077 | 1163 | func (x *Variant) GetByte() byte { | |
| 1164 | + | core.LazyRegister(&xVariantGetByte, "GLIB", "g_variant_get_byte", false) | |
| 1165 | + | ||
| 1078 | 1166 | cret := xVariantGetByte(x.GoPointer()) | |
| 1079 | 1167 | return cret | |
| 1080 | 1168 | } | |
| @@ -1100,6 +1188,8 @@ var xVariantGetBytestring func(uintptr) uintptr | |||
| 1100 | 1188 | // | |
| 1101 | 1189 | // The return value remains valid as long as @value exists. | |
| 1102 | 1190 | func (x *Variant) GetBytestring() uintptr { | |
| 1191 | + | core.LazyRegister(&xVariantGetBytestring, "GLIB", "g_variant_get_bytestring", false) | |
| 1192 | + | ||
| 1103 | 1193 | cret := xVariantGetBytestring(x.GoPointer()) | |
| 1104 | 1194 | return cret | |
| 1105 | 1195 | } | |
| @@ -1117,6 +1207,8 @@ var xVariantGetBytestringArray func(uintptr, *uint) []string | |||
| 1117 | 1207 | // For an empty array, @length will be set to 0 and a pointer to a | |
| 1118 | 1208 | // %NULL pointer will be returned. | |
| 1119 | 1209 | func (x *Variant) GetBytestringArray(LengthVar *uint) []string { | |
| 1210 | + | core.LazyRegister(&xVariantGetBytestringArray, "GLIB", "g_variant_get_bytestring_array", false) | |
| 1211 | + | ||
| 1120 | 1212 | cret := xVariantGetBytestringArray(x.GoPointer(), LengthVar) | |
| 1121 | 1213 | return cret | |
| 1122 | 1214 | } | |
| @@ -1133,6 +1225,8 @@ var xVariantGetChild func(uintptr, uint, string, ...interface{}) | |||
| 1133 | 1225 | // see the section on | |
| 1134 | 1226 | // [`GVariant` format strings](gvariant-format-strings.html#pointers). | |
| 1135 | 1227 | func (x *Variant) GetChild(IndexVar uint, FormatStringVar string, varArgs ...interface{}) { | |
| 1228 | + | core.LazyRegister(&xVariantGetChild, "GLIB", "g_variant_get_child", false) | |
| 1229 | + | ||
| 1136 | 1230 | xVariantGetChild(x.GoPointer(), IndexVar, FormatStringVar, varArgs...) | |
| 1137 | 1231 | } | |
| 1138 | 1232 | ||
| @@ -1162,6 +1256,8 @@ var xVariantGetChildValue func(uintptr, uint) uintptr | |||
| 1162 | 1256 | // | |
| 1163 | 1257 | // This function is O(1). | |
| 1164 | 1258 | func (x *Variant) GetChildValue(IndexVar uint) *Variant { | |
| 1259 | + | core.LazyRegister(&xVariantGetChildValue, "GLIB", "g_variant_get_child_value", false) | |
| 1260 | + | ||
| 1165 | 1261 | cret := xVariantGetChildValue(x.GoPointer(), IndexVar) | |
| 1166 | 1262 | if cret == 0 { | |
| 1167 | 1263 | return nil | |
| @@ -1197,6 +1293,8 @@ var xVariantGetData func(uintptr) uintptr | |||
| 1197 | 1293 | // explicitly (by storing the type and/or endianness in addition to the | |
| 1198 | 1294 | // serialized data). | |
| 1199 | 1295 | func (x *Variant) GetData() uintptr { | |
| 1296 | + | core.LazyRegister(&xVariantGetData, "GLIB", "g_variant_get_data", false) | |
| 1297 | + | ||
| 1200 | 1298 | cret := xVariantGetData(x.GoPointer()) | |
| 1201 | 1299 | return cret | |
| 1202 | 1300 | } | |
| @@ -1208,6 +1306,8 @@ var xVariantGetDataAsBytes func(uintptr) uintptr | |||
| 1208 | 1306 | // g_variant_get_data(), except that the returned #GBytes holds | |
| 1209 | 1307 | // a reference to the variant data. | |
| 1210 | 1308 | func (x *Variant) GetDataAsBytes() *Bytes { | |
| 1309 | + | core.LazyRegister(&xVariantGetDataAsBytes, "GLIB", "g_variant_get_data_as_bytes", false) | |
| 1310 | + | ||
| 1211 | 1311 | cret := xVariantGetDataAsBytes(x.GoPointer()) | |
| 1212 | 1312 | if cret == 0 { | |
| 1213 | 1313 | return nil | |
| @@ -1222,6 +1322,8 @@ var xVariantGetDouble func(uintptr) float64 | |||
| 1222 | 1322 | // It is an error to call this function with a @value of any type | |
| 1223 | 1323 | // other than %G_VARIANT_TYPE_DOUBLE. | |
| 1224 | 1324 | func (x *Variant) GetDouble() float64 { | |
| 1325 | + | core.LazyRegister(&xVariantGetDouble, "GLIB", "g_variant_get_double", false) | |
| 1326 | + | ||
| 1225 | 1327 | cret := xVariantGetDouble(x.GoPointer()) | |
| 1226 | 1328 | return cret | |
| 1227 | 1329 | } | |
| @@ -1255,6 +1357,8 @@ var xVariantGetFixedArray func(uintptr, *uint, uint) uintptr | |||
| 1255 | 1357 | // @n_elements, which must be non-%NULL, is set equal to the number of | |
| 1256 | 1358 | // items in the array. | |
| 1257 | 1359 | func (x *Variant) GetFixedArray(NElementsVar *uint, ElementSizeVar uint) uintptr { | |
| 1360 | + | core.LazyRegister(&xVariantGetFixedArray, "GLIB", "g_variant_get_fixed_array", false) | |
| 1361 | + | ||
| 1258 | 1362 | cret := xVariantGetFixedArray(x.GoPointer(), NElementsVar, ElementSizeVar) | |
| 1259 | 1363 | return cret | |
| 1260 | 1364 | } | |
| @@ -1270,6 +1374,8 @@ var xVariantGetHandle func(uintptr) int32 | |||
| 1270 | 1374 | // that are sent alongside a D-Bus message. If you're not interacting | |
| 1271 | 1375 | // with D-Bus, you probably don't need them. | |
| 1272 | 1376 | func (x *Variant) GetHandle() int32 { | |
| 1377 | + | core.LazyRegister(&xVariantGetHandle, "GLIB", "g_variant_get_handle", false) | |
| 1378 | + | ||
| 1273 | 1379 | cret := xVariantGetHandle(x.GoPointer()) | |
| 1274 | 1380 | return cret | |
| 1275 | 1381 | } | |
| @@ -1281,6 +1387,8 @@ var xVariantGetInt16 func(uintptr) int16 | |||
| 1281 | 1387 | // It is an error to call this function with a @value of any type | |
| 1282 | 1388 | // other than %G_VARIANT_TYPE_INT16. | |
| 1283 | 1389 | func (x *Variant) GetInt16() int16 { | |
| 1390 | + | core.LazyRegister(&xVariantGetInt16, "GLIB", "g_variant_get_int16", false) | |
| 1391 | + | ||
| 1284 | 1392 | cret := xVariantGetInt16(x.GoPointer()) | |
| 1285 | 1393 | return cret | |
| 1286 | 1394 | } | |
| @@ -1292,6 +1400,8 @@ var xVariantGetInt32 func(uintptr) int32 | |||
| 1292 | 1400 | // It is an error to call this function with a @value of any type | |
| 1293 | 1401 | // other than %G_VARIANT_TYPE_INT32. | |
| 1294 | 1402 | func (x *Variant) GetInt32() int32 { | |
| 1403 | + | core.LazyRegister(&xVariantGetInt32, "GLIB", "g_variant_get_int32", false) | |
| 1404 | + | ||
| 1295 | 1405 | cret := xVariantGetInt32(x.GoPointer()) | |
| 1296 | 1406 | return cret | |
| 1297 | 1407 | } | |
| @@ -1303,6 +1413,8 @@ var xVariantGetInt64 func(uintptr) int64 | |||
| 1303 | 1413 | // It is an error to call this function with a @value of any type | |
| 1304 | 1414 | // other than %G_VARIANT_TYPE_INT64. | |
| 1305 | 1415 | func (x *Variant) GetInt64() int64 { | |
| 1416 | + | core.LazyRegister(&xVariantGetInt64, "GLIB", "g_variant_get_int64", false) | |
| 1417 | + | ||
| 1306 | 1418 | cret := xVariantGetInt64(x.GoPointer()) | |
| 1307 | 1419 | return cret | |
| 1308 | 1420 | } | |
| @@ -1312,6 +1424,8 @@ var xVariantGetMaybe func(uintptr) uintptr | |||
| 1312 | 1424 | // Given a maybe-typed #GVariant instance, extract its value. If the | |
| 1313 | 1425 | // value is Nothing, then this function returns %NULL. | |
| 1314 | 1426 | func (x *Variant) GetMaybe() *Variant { | |
| 1427 | + | core.LazyRegister(&xVariantGetMaybe, "GLIB", "g_variant_get_maybe", false) | |
| 1428 | + | ||
| 1315 | 1429 | cret := xVariantGetMaybe(x.GoPointer()) | |
| 1316 | 1430 | if cret == 0 { | |
| 1317 | 1431 | return nil | |
| @@ -1347,6 +1461,8 @@ var xVariantGetNormalForm func(uintptr) uintptr | |||
| 1347 | 1461 | // value from this function to guarantee ownership of a single non-floating | |
| 1348 | 1462 | // reference to it. | |
| 1349 | 1463 | func (x *Variant) GetNormalForm() *Variant { | |
| 1464 | + | core.LazyRegister(&xVariantGetNormalForm, "GLIB", "g_variant_get_normal_form", false) | |
| 1465 | + | ||
| 1350 | 1466 | cret := xVariantGetNormalForm(x.GoPointer()) | |
| 1351 | 1467 | if cret == 0 { | |
| 1352 | 1468 | return nil | |
| @@ -1367,6 +1483,8 @@ var xVariantGetObjv func(uintptr, *uint) []string | |||
| 1367 | 1483 | // For an empty array, @length will be set to 0 and a pointer to a | |
| 1368 | 1484 | // %NULL pointer will be returned. | |
| 1369 | 1485 | func (x *Variant) GetObjv(LengthVar *uint) []string { | |
| 1486 | + | core.LazyRegister(&xVariantGetObjv, "GLIB", "g_variant_get_objv", false) | |
| 1487 | + | ||
| 1370 | 1488 | cret := xVariantGetObjv(x.GoPointer(), LengthVar) | |
| 1371 | 1489 | return cret | |
| 1372 | 1490 | } | |
| @@ -1385,6 +1503,8 @@ var xVariantGetSize func(uintptr) uint | |||
| 1385 | 1503 | // operation which is approximately O(n) in the number of values | |
| 1386 | 1504 | // involved. | |
| 1387 | 1505 | func (x *Variant) GetSize() uint { | |
| 1506 | + | core.LazyRegister(&xVariantGetSize, "GLIB", "g_variant_get_size", false) | |
| 1507 | + | ||
| 1388 | 1508 | cret := xVariantGetSize(x.GoPointer()) | |
| 1389 | 1509 | return cret | |
| 1390 | 1510 | } | |
| @@ -1410,6 +1530,8 @@ var xVariantGetString func(uintptr, *uint) string | |||
| 1410 | 1530 | // | |
| 1411 | 1531 | // The return value remains valid as long as @value exists. | |
| 1412 | 1532 | func (x *Variant) GetString(LengthVar *uint) string { | |
| 1533 | + | core.LazyRegister(&xVariantGetString, "GLIB", "g_variant_get_string", false) | |
| 1534 | + | ||
| 1413 | 1535 | cret := xVariantGetString(x.GoPointer(), LengthVar) | |
| 1414 | 1536 | return cret | |
| 1415 | 1537 | } | |
| @@ -1427,6 +1549,8 @@ var xVariantGetStrv func(uintptr, *uint) []string | |||
| 1427 | 1549 | // For an empty array, @length will be set to 0 and a pointer to a | |
| 1428 | 1550 | // %NULL pointer will be returned. | |
| 1429 | 1551 | func (x *Variant) GetStrv(LengthVar *uint) []string { | |
| 1552 | + | core.LazyRegister(&xVariantGetStrv, "GLIB", "g_variant_get_strv", false) | |
| 1553 | + | ||
| 1430 | 1554 | cret := xVariantGetStrv(x.GoPointer(), LengthVar) | |
| 1431 | 1555 | return cret | |
| 1432 | 1556 | } | |
| @@ -1438,6 +1562,8 @@ var xVariantGetType func(uintptr) uintptr | |||
| 1438 | 1562 | // The return value is valid for the lifetime of @value and must not | |
| 1439 | 1563 | // be freed. | |
| 1440 | 1564 | func (x *Variant) GetType() *VariantType { | |
| 1565 | + | core.LazyRegister(&xVariantGetType, "GLIB", "g_variant_get_type", false) | |
| 1566 | + | ||
| 1441 | 1567 | cret := xVariantGetType(x.GoPointer()) | |
| 1442 | 1568 | if cret == 0 { | |
| 1443 | 1569 | return nil | |
| @@ -1451,6 +1577,8 @@ var xVariantGetTypeString func(uintptr) string | |||
| 1451 | 1577 | // g_variant_type_peek_string(), this string is nul-terminated. This | |
| 1452 | 1578 | // string belongs to #GVariant and must not be freed. | |
| 1453 | 1579 | func (x *Variant) GetTypeString() string { | |
| 1580 | + | core.LazyRegister(&xVariantGetTypeString, "GLIB", "g_variant_get_type_string", false) | |
| 1581 | + | ||
| 1454 | 1582 | cret := xVariantGetTypeString(x.GoPointer()) | |
| 1455 | 1583 | return cret | |
| 1456 | 1584 | } | |
| @@ -1462,6 +1590,8 @@ var xVariantGetUint16 func(uintptr) uint16 | |||
| 1462 | 1590 | // It is an error to call this function with a @value of any type | |
| 1463 | 1591 | // other than %G_VARIANT_TYPE_UINT16. | |
| 1464 | 1592 | func (x *Variant) GetUint16() uint16 { | |
| 1593 | + | core.LazyRegister(&xVariantGetUint16, "GLIB", "g_variant_get_uint16", false) | |
| 1594 | + | ||
| 1465 | 1595 | cret := xVariantGetUint16(x.GoPointer()) | |
| 1466 | 1596 | return cret | |
| 1467 | 1597 | } | |
| @@ -1473,6 +1603,8 @@ var xVariantGetUint32 func(uintptr) uint32 | |||
| 1473 | 1603 | // It is an error to call this function with a @value of any type | |
| 1474 | 1604 | // other than %G_VARIANT_TYPE_UINT32. | |
| 1475 | 1605 | func (x *Variant) GetUint32() uint32 { | |
| 1606 | + | core.LazyRegister(&xVariantGetUint32, "GLIB", "g_variant_get_uint32", false) | |
| 1607 | + | ||
| 1476 | 1608 | cret := xVariantGetUint32(x.GoPointer()) | |
| 1477 | 1609 | return cret | |
| 1478 | 1610 | } | |
| @@ -1484,6 +1616,8 @@ var xVariantGetUint64 func(uintptr) uint64 | |||
| 1484 | 1616 | // It is an error to call this function with a @value of any type | |
| 1485 | 1617 | // other than %G_VARIANT_TYPE_UINT64. | |
| 1486 | 1618 | func (x *Variant) GetUint64() uint64 { | |
| 1619 | + | core.LazyRegister(&xVariantGetUint64, "GLIB", "g_variant_get_uint64", false) | |
| 1620 | + | ||
| 1487 | 1621 | cret := xVariantGetUint64(x.GoPointer()) | |
| 1488 | 1622 | return cret | |
| 1489 | 1623 | } | |
| @@ -1515,6 +1649,8 @@ var xVariantGetVa func(uintptr, string, uintptr, []interface{}) | |||
| 1515 | 1649 | // see the section on | |
| 1516 | 1650 | // [`GVariant` format strings](gvariant-format-strings.html#pointers). | |
| 1517 | 1651 | func (x *Variant) GetVa(FormatStringVar string, EndptrVar *string, AppVar []interface{}) { | |
| 1652 | + | core.LazyRegister(&xVariantGetVa, "GLIB", "g_variant_get_va", false) | |
| 1653 | + | ||
| 1518 | 1654 | EndptrVarPtr := core.GStrdupNullable(EndptrVar) | |
| 1519 | 1655 | defer core.GFreeNullable(EndptrVarPtr) | |
| 1520 | 1656 | ||
| @@ -1526,6 +1662,8 @@ var xVariantGetVariant func(uintptr) uintptr | |||
| 1526 | 1662 | // Unboxes @value. The result is the #GVariant instance that was | |
| 1527 | 1663 | // contained in @value. | |
| 1528 | 1664 | func (x *Variant) GetVariant() *Variant { | |
| 1665 | + | core.LazyRegister(&xVariantGetVariant, "GLIB", "g_variant_get_variant", false) | |
| 1666 | + | ||
| 1529 | 1667 | cret := xVariantGetVariant(x.GoPointer()) | |
| 1530 | 1668 | if cret == 0 { | |
| 1531 | 1669 | return nil | |
| @@ -1545,6 +1683,8 @@ var xVariantHash func(uintptr) uint | |||
| 1545 | 1683 | // The type of @value is #gconstpointer only to allow use of this | |
| 1546 | 1684 | // function with #GHashTable. @value must be a #GVariant. | |
| 1547 | 1685 | func (x *Variant) Hash() uint { | |
| 1686 | + | core.LazyRegister(&xVariantHash, "GLIB", "g_variant_hash", false) | |
| 1687 | + | ||
| 1548 | 1688 | cret := xVariantHash(x.GoPointer()) | |
| 1549 | 1689 | return cret | |
| 1550 | 1690 | } | |
| @@ -1553,6 +1693,8 @@ var xVariantIsContainer func(uintptr) bool | |||
| 1553 | 1693 | ||
| 1554 | 1694 | // Checks if @value is a container. | |
| 1555 | 1695 | func (x *Variant) IsContainer() bool { | |
| 1696 | + | core.LazyRegister(&xVariantIsContainer, "GLIB", "g_variant_is_container", false) | |
| 1697 | + | ||
| 1556 | 1698 | cret := xVariantIsContainer(x.GoPointer()) | |
| 1557 | 1699 | return cret | |
| 1558 | 1700 | } | |
| @@ -1569,6 +1711,8 @@ var xVariantIsFloating func(uintptr) bool | |||
| 1569 | 1711 | // See g_variant_ref_sink() for more information about floating reference | |
| 1570 | 1712 | // counts. | |
| 1571 | 1713 | func (x *Variant) IsFloating() bool { | |
| 1714 | + | core.LazyRegister(&xVariantIsFloating, "GLIB", "g_variant_is_floating", false) | |
| 1715 | + | ||
| 1572 | 1716 | cret := xVariantIsFloating(x.GoPointer()) | |
| 1573 | 1717 | return cret | |
| 1574 | 1718 | } | |
| @@ -1589,6 +1733,8 @@ var xVariantIsNormalForm func(uintptr) bool | |||
| 1589 | 1733 | // There may be implementation specific restrictions on deeply nested values. | |
| 1590 | 1734 | // GVariant is guaranteed to handle nesting up to at least 64 levels. | |
| 1591 | 1735 | func (x *Variant) IsNormalForm() bool { | |
| 1736 | + | core.LazyRegister(&xVariantIsNormalForm, "GLIB", "g_variant_is_normal_form", false) | |
| 1737 | + | ||
| 1592 | 1738 | cret := xVariantIsNormalForm(x.GoPointer()) | |
| 1593 | 1739 | return cret | |
| 1594 | 1740 | } | |
| @@ -1597,6 +1743,8 @@ var xVariantIsOfType func(uintptr, *VariantType) bool | |||
| 1597 | 1743 | ||
| 1598 | 1744 | // Checks if a value has a type matching the provided type. | |
| 1599 | 1745 | func (x *Variant) IsOfType(TypeVar *VariantType) bool { | |
| 1746 | + | core.LazyRegister(&xVariantIsOfType, "GLIB", "g_variant_is_of_type", false) | |
| 1747 | + | ||
| 1600 | 1748 | cret := xVariantIsOfType(x.GoPointer(), TypeVar) | |
| 1601 | 1749 | return cret | |
| 1602 | 1750 | } | |
| @@ -1612,6 +1760,8 @@ var xVariantIterNew func(uintptr) uintptr | |||
| 1612 | 1760 | // A reference is taken to @value and will be released only when | |
| 1613 | 1761 | // g_variant_iter_free() is called. | |
| 1614 | 1762 | func (x *Variant) IterNew() *VariantIter { | |
| 1763 | + | core.LazyRegister(&xVariantIterNew, "GLIB", "g_variant_iter_new", false) | |
| 1764 | + | ||
| 1615 | 1765 | cret := xVariantIterNew(x.GoPointer()) | |
| 1616 | 1766 | if cret == 0 { | |
| 1617 | 1767 | return nil | |
| @@ -1636,6 +1786,8 @@ var xVariantLookup func(uintptr, string, string, ...interface{}) bool | |||
| 1636 | 1786 | // This function is currently implemented with a linear scan. If you | |
| 1637 | 1787 | // plan to do many lookups then #GVariantDict may be more efficient. | |
| 1638 | 1788 | func (x *Variant) Lookup(KeyVar string, FormatStringVar string, varArgs ...interface{}) bool { | |
| 1789 | + | core.LazyRegister(&xVariantLookup, "GLIB", "g_variant_lookup", false) | |
| 1790 | + | ||
| 1639 | 1791 | cret := xVariantLookup(x.GoPointer(), KeyVar, FormatStringVar, varArgs...) | |
| 1640 | 1792 | return cret | |
| 1641 | 1793 | } | |
| @@ -1664,6 +1816,8 @@ var xVariantLookupValue func(uintptr, string, *VariantType) uintptr | |||
| 1664 | 1816 | // This function is currently implemented with a linear scan. If you | |
| 1665 | 1817 | // plan to do many lookups then [struct@VariantDict] may be more efficient. | |
| 1666 | 1818 | func (x *Variant) LookupValue(KeyVar string, ExpectedTypeVar *VariantType) *Variant { | |
| 1819 | + | core.LazyRegister(&xVariantLookupValue, "GLIB", "g_variant_lookup_value", false) | |
| 1820 | + | ||
| 1667 | 1821 | cret := xVariantLookupValue(x.GoPointer(), KeyVar, ExpectedTypeVar) | |
| 1668 | 1822 | if cret == 0 { | |
| 1669 | 1823 | return nil | |
| @@ -1685,6 +1839,8 @@ var xVariantNChildren func(uintptr) uint | |||
| 1685 | 1839 | // | |
| 1686 | 1840 | // This function is O(1). | |
| 1687 | 1841 | func (x *Variant) NChildren() uint { | |
| 1842 | + | core.LazyRegister(&xVariantNChildren, "GLIB", "g_variant_n_children", false) | |
| 1843 | + | ||
| 1688 | 1844 | cret := xVariantNChildren(x.GoPointer()) | |
| 1689 | 1845 | return cret | |
| 1690 | 1846 | } | |
| @@ -1698,6 +1854,8 @@ var xVariantPrint func(uintptr, bool) string | |||
| 1698 | 1854 | // If @type_annotate is %TRUE, then type information is included in | |
| 1699 | 1855 | // the output. | |
| 1700 | 1856 | func (x *Variant) Print(TypeAnnotateVar bool) string { | |
| 1857 | + | core.LazyRegister(&xVariantPrint, "GLIB", "g_variant_print", false) | |
| 1858 | + | ||
| 1701 | 1859 | cret := xVariantPrint(x.GoPointer(), TypeAnnotateVar) | |
| 1702 | 1860 | return cret | |
| 1703 | 1861 | } | |
| @@ -1709,6 +1867,8 @@ var xVariantPrintString func(uintptr, *String, bool) uintptr | |||
| 1709 | 1867 | // If @string is non-%NULL then it is appended to and returned. Else, | |
| 1710 | 1868 | // a new empty #GString is allocated and it is returned. | |
| 1711 | 1869 | func (x *Variant) PrintString(StringVar *String, TypeAnnotateVar bool) *String { | |
| 1870 | + | core.LazyRegister(&xVariantPrintString, "GLIB", "g_variant_print_string", false) | |
| 1871 | + | ||
| 1712 | 1872 | cret := xVariantPrintString(x.GoPointer(), StringVar, TypeAnnotateVar) | |
| 1713 | 1873 | if cret == 0 { | |
| 1714 | 1874 | return nil | |
| @@ -1720,6 +1880,8 @@ var xVariantRef func(uintptr) uintptr | |||
| 1720 | 1880 | ||
| 1721 | 1881 | // Increases the reference count of @value. | |
| 1722 | 1882 | func (x *Variant) Ref() *Variant { | |
| 1883 | + | core.LazyRegister(&xVariantRef, "GLIB", "g_variant_ref", false) | |
| 1884 | + | ||
| 1723 | 1885 | cret := xVariantRef(x.GoPointer()) | |
| 1724 | 1886 | if cret == 0 { | |
| 1725 | 1887 | return nil | |
| @@ -1752,6 +1914,8 @@ var xVariantRefSink func(uintptr) uintptr | |||
| 1752 | 1914 | // maintaining normal refcounting semantics in situations where values | |
| 1753 | 1915 | // are not floating. | |
| 1754 | 1916 | func (x *Variant) RefSink() *Variant { | |
| 1917 | + | core.LazyRegister(&xVariantRefSink, "GLIB", "g_variant_ref_sink", false) | |
| 1918 | + | ||
| 1755 | 1919 | cret := xVariantRefSink(x.GoPointer()) | |
| 1756 | 1920 | if cret == 0 { | |
| 1757 | 1921 | return nil | |
| @@ -1774,6 +1938,8 @@ var xVariantStore func(uintptr, uintptr) | |||
| 1774 | 1938 | // | |
| 1775 | 1939 | // This function is approximately O(n) in the size of @data. | |
| 1776 | 1940 | func (x *Variant) Store(DataVar uintptr) { | |
| 1941 | + | core.LazyRegister(&xVariantStore, "GLIB", "g_variant_store", false) | |
| 1942 | + | ||
| 1777 | 1943 | xVariantStore(x.GoPointer(), DataVar) | |
| 1778 | 1944 | } | |
| 1779 | 1945 | ||
| @@ -1812,6 +1978,8 @@ var xVariantTakeRef func(uintptr) uintptr | |||
| 1812 | 1978 | // an additional reference on top of that one is added. It is best to | |
| 1813 | 1979 | // avoid this situation. | |
| 1814 | 1980 | func (x *Variant) TakeRef() *Variant { | |
| 1981 | + | core.LazyRegister(&xVariantTakeRef, "GLIB", "g_variant_take_ref", false) | |
| 1982 | + | ||
| 1815 | 1983 | cret := xVariantTakeRef(x.GoPointer()) | |
| 1816 | 1984 | if cret == 0 { | |
| 1817 | 1985 | return nil | |
| @@ -1824,6 +1992,8 @@ var xVariantUnref func(uintptr) | |||
| 1824 | 1992 | // Decreases the reference count of @value. When its reference count | |
| 1825 | 1993 | // drops to 0, the memory used by the variant is freed. | |
| 1826 | 1994 | func (x *Variant) Unref() { | |
| 1995 | + | core.LazyRegister(&xVariantUnref, "GLIB", "g_variant_unref", false) | |
| 1996 | + | ||
| 1827 | 1997 | xVariantUnref(x.GoPointer()) | |
| 1828 | 1998 | } | |
| 1829 | 1999 | ||
| @@ -1841,6 +2011,7 @@ type VariantBuilder struct { | |||
| 1841 | 2011 | var xVariantBuilderGLibType func() types.GType | |
| 1842 | 2012 | ||
| 1843 | 2013 | func VariantBuilderGLibType() types.GType { | |
| 2014 | + | core.LazyRegister(&xVariantBuilderGLibType, "GLIB", "g_variant_builder_get_type", false) | |
| 1844 | 2015 | return xVariantBuilderGLibType() | |
| 1845 | 2016 | } | |
| 1846 | 2017 | ||
| @@ -1868,6 +2039,8 @@ var xNewVariantBuilder func(*VariantType) uintptr | |||
| 1868 | 2039 | // the stack of the calling function and initialise it with | |
| 1869 | 2040 | // g_variant_builder_init_static(). | |
| 1870 | 2041 | func NewVariantBuilder(TypeVar *VariantType) *VariantBuilder { | |
| 2042 | + | core.LazyRegister(&xNewVariantBuilder, "GLIB", "g_variant_builder_new", false) | |
| 2043 | + | ||
| 1871 | 2044 | cret := xNewVariantBuilder(TypeVar) | |
| 1872 | 2045 | if cret == 0 { | |
| 1873 | 2046 | return nil | |
| @@ -1910,6 +2083,8 @@ var xVariantBuilderAdd func(uintptr, string, ...interface{}) | |||
| 1910 | 2083 | // | |
| 1911 | 2084 | // ]| | |
| 1912 | 2085 | func (x *VariantBuilder) Add(FormatStringVar string, varArgs ...interface{}) { | |
| 2086 | + | core.LazyRegister(&xVariantBuilderAdd, "GLIB", "g_variant_builder_add", false) | |
| 2087 | + | ||
| 1913 | 2088 | xVariantBuilderAdd(x.GoPointer(), FormatStringVar, varArgs...) | |
| 1914 | 2089 | } | |
| 1915 | 2090 | ||
| @@ -1944,6 +2119,8 @@ var xVariantBuilderAddParsed func(uintptr, string, ...interface{}) | |||
| 1944 | 2119 | // | |
| 1945 | 2120 | // ]| | |
| 1946 | 2121 | func (x *VariantBuilder) AddParsed(FormatVar string, varArgs ...interface{}) { | |
| 2122 | + | core.LazyRegister(&xVariantBuilderAddParsed, "GLIB", "g_variant_builder_add_parsed", false) | |
| 2123 | + | ||
| 1947 | 2124 | xVariantBuilderAddParsed(x.GoPointer(), FormatVar, varArgs...) | |
| 1948 | 2125 | } | |
| 1949 | 2126 | ||
| @@ -1960,6 +2137,8 @@ var xVariantBuilderAddValue func(uintptr, *Variant) | |||
| 1960 | 2137 | // If @value is a floating reference (see g_variant_ref_sink()), | |
| 1961 | 2138 | // the @builder instance takes ownership of @value. | |
| 1962 | 2139 | func (x *VariantBuilder) AddValue(ValueVar *Variant) { | |
| 2140 | + | core.LazyRegister(&xVariantBuilderAddValue, "GLIB", "g_variant_builder_add_value", false) | |
| 2141 | + | ||
| 1963 | 2142 | xVariantBuilderAddValue(x.GoPointer(), ValueVar) | |
| 1964 | 2143 | } | |
| 1965 | 2144 | ||
| @@ -1980,6 +2159,8 @@ var xVariantBuilderClear func(uintptr) | |||
| 1980 | 2159 | // #GVariantBuilder or one that is set to all-zeros but it is not valid | |
| 1981 | 2160 | // to call this function on uninitialised memory. | |
| 1982 | 2161 | func (x *VariantBuilder) Clear() { | |
| 2162 | + | core.LazyRegister(&xVariantBuilderClear, "GLIB", "g_variant_builder_clear", false) | |
| 2163 | + | ||
| 1983 | 2164 | xVariantBuilderClear(x.GoPointer()) | |
| 1984 | 2165 | } | |
| 1985 | 2166 | ||
| @@ -1992,6 +2173,8 @@ var xVariantBuilderClose func(uintptr) | |||
| 1992 | 2173 | // inconsistent value to be constructed (ie: too few values added to the | |
| 1993 | 2174 | // subcontainer). | |
| 1994 | 2175 | func (x *VariantBuilder) Close() { | |
| 2176 | + | core.LazyRegister(&xVariantBuilderClose, "GLIB", "g_variant_builder_close", false) | |
| 2177 | + | ||
| 1995 | 2178 | xVariantBuilderClose(x.GoPointer()) | |
| 1996 | 2179 | } | |
| 1997 | 2180 | ||
| @@ -2015,6 +2198,8 @@ var xVariantBuilderEnd func(uintptr) uintptr | |||
| 2015 | 2198 | // have been added; in this case it is impossible to infer the type of | |
| 2016 | 2199 | // the empty array. | |
| 2017 | 2200 | func (x *VariantBuilder) End() *Variant { | |
| 2201 | + | core.LazyRegister(&xVariantBuilderEnd, "GLIB", "g_variant_builder_end", false) | |
| 2202 | + | ||
| 2018 | 2203 | cret := xVariantBuilderEnd(x.GoPointer()) | |
| 2019 | 2204 | if cret == 0 { | |
| 2020 | 2205 | return nil | |
| @@ -2058,6 +2243,8 @@ var xVariantBuilderInit func(uintptr, *VariantType) | |||
| 2058 | 2243 | // reference counting; you should use g_variant_builder_new() instead of | |
| 2059 | 2244 | // this function. | |
| 2060 | 2245 | func (x *VariantBuilder) Init(TypeVar *VariantType) { | |
| 2246 | + | core.LazyRegister(&xVariantBuilderInit, "GLIB", "g_variant_builder_init", false) | |
| 2247 | + | ||
| 2061 | 2248 | xVariantBuilderInit(x.GoPointer(), TypeVar) | |
| 2062 | 2249 | } | |
| 2063 | 2250 | ||
| @@ -2070,6 +2257,8 @@ var xVariantBuilderInitStatic func(uintptr, *VariantType) | |||
| 2070 | 2257 | // lifetime of @builder. This is always true of type constants like | |
| 2071 | 2258 | // `G_VARIANT_TYPE_*` or `G_VARIANT_TYPE ("(ii)")`. | |
| 2072 | 2259 | func (x *VariantBuilder) InitStatic(TypeVar *VariantType) { | |
| 2260 | + | core.LazyRegister(&xVariantBuilderInitStatic, "GLIB", "g_variant_builder_init_static", false) | |
| 2261 | + | ||
| 2073 | 2262 | xVariantBuilderInitStatic(x.GoPointer(), TypeVar) | |
| 2074 | 2263 | } | |
| 2075 | 2264 | ||
| @@ -2113,6 +2302,8 @@ var xVariantBuilderOpen func(uintptr, *VariantType) | |||
| 2113 | 2302 | // output = g_variant_builder_end (&builder); | |
| 2114 | 2303 | // ]| | |
| 2115 | 2304 | func (x *VariantBuilder) Open(TypeVar *VariantType) { | |
| 2305 | + | core.LazyRegister(&xVariantBuilderOpen, "GLIB", "g_variant_builder_open", false) | |
| 2306 | + | ||
| 2116 | 2307 | xVariantBuilderOpen(x.GoPointer(), TypeVar) | |
| 2117 | 2308 | } | |
| 2118 | 2309 | ||
| @@ -2123,6 +2314,8 @@ var xVariantBuilderRef func(uintptr) uintptr | |||
| 2123 | 2314 | // Don't call this on stack-allocated #GVariantBuilder instances or bad | |
| 2124 | 2315 | // things will happen. | |
| 2125 | 2316 | func (x *VariantBuilder) Ref() *VariantBuilder { | |
| 2317 | + | core.LazyRegister(&xVariantBuilderRef, "GLIB", "g_variant_builder_ref", false) | |
| 2318 | + | ||
| 2126 | 2319 | cret := xVariantBuilderRef(x.GoPointer()) | |
| 2127 | 2320 | if cret == 0 { | |
| 2128 | 2321 | return nil | |
| @@ -2140,6 +2333,8 @@ var xVariantBuilderUnref func(uintptr) | |||
| 2140 | 2333 | // Don't call this on stack-allocated #GVariantBuilder instances or bad | |
| 2141 | 2334 | // things will happen. | |
| 2142 | 2335 | func (x *VariantBuilder) Unref() { | |
| 2336 | + | core.LazyRegister(&xVariantBuilderUnref, "GLIB", "g_variant_builder_unref", false) | |
| 2337 | + | ||
| 2143 | 2338 | xVariantBuilderUnref(x.GoPointer()) | |
| 2144 | 2339 | } | |
| 2145 | 2340 | ||
| @@ -2243,6 +2438,7 @@ type VariantDict struct { | |||
| 2243 | 2438 | var xVariantDictGLibType func() types.GType | |
| 2244 | 2439 | ||
| 2245 | 2440 | func VariantDictGLibType() types.GType { | |
| 2441 | + | core.LazyRegister(&xVariantDictGLibType, "GLIB", "g_variant_dict_get_type", false) | |
| 2246 | 2442 | return xVariantDictGLibType() | |
| 2247 | 2443 | } | |
| 2248 | 2444 | ||
| @@ -2271,6 +2467,8 @@ var xNewVariantDict func(*Variant) uintptr | |||
| 2271 | 2467 | // g_variant_dict_init(). This is particularly useful when you are | |
| 2272 | 2468 | // using #GVariantDict to construct a #GVariant. | |
| 2273 | 2469 | func NewVariantDict(FromAsvVar *Variant) *VariantDict { | |
| 2470 | + | core.LazyRegister(&xNewVariantDict, "GLIB", "g_variant_dict_new", false) | |
| 2471 | + | ||
| 2274 | 2472 | cret := xNewVariantDict(FromAsvVar) | |
| 2275 | 2473 | if cret == 0 { | |
| 2276 | 2474 | return nil | |
| @@ -2295,6 +2493,8 @@ var xVariantDictClear func(uintptr) | |||
| 2295 | 2493 | // to g_variant_dict_clear() but it is not valid to call this function | |
| 2296 | 2494 | // on uninitialised memory. | |
| 2297 | 2495 | func (x *VariantDict) Clear() { | |
| 2496 | + | core.LazyRegister(&xVariantDictClear, "GLIB", "g_variant_dict_clear", false) | |
| 2497 | + | ||
| 2298 | 2498 | xVariantDictClear(x.GoPointer()) | |
| 2299 | 2499 | } | |
| 2300 | 2500 | ||
| @@ -2302,6 +2502,8 @@ var xVariantDictContains func(uintptr, string) bool | |||
| 2302 | 2502 | ||
| 2303 | 2503 | // Checks if @key exists in @dict. | |
| 2304 | 2504 | func (x *VariantDict) Contains(KeyVar string) bool { | |
| 2505 | + | core.LazyRegister(&xVariantDictContains, "GLIB", "g_variant_dict_contains", false) | |
| 2506 | + | ||
| 2305 | 2507 | cret := xVariantDictContains(x.GoPointer(), KeyVar) | |
| 2306 | 2508 | return cret | |
| 2307 | 2509 | } | |
| @@ -2316,6 +2518,8 @@ var xVariantDictEnd func(uintptr) uintptr | |||
| 2316 | 2518 | // #GVariantDict) or by reinitialising it with g_variant_dict_init() (in | |
| 2317 | 2519 | // the case of stack-allocated). | |
| 2318 | 2520 | func (x *VariantDict) End() *Variant { | |
| 2521 | + | core.LazyRegister(&xVariantDictEnd, "GLIB", "g_variant_dict_end", false) | |
| 2522 | + | ||
| 2319 | 2523 | cret := xVariantDictEnd(x.GoPointer()) | |
| 2320 | 2524 | if cret == 0 { | |
| 2321 | 2525 | return nil | |
| @@ -2342,6 +2546,8 @@ var xVariantDictInit func(uintptr, *Variant) | |||
| 2342 | 2546 | // reference may try to use reference counting; you should use | |
| 2343 | 2547 | // g_variant_dict_new() instead of this function. | |
| 2344 | 2548 | func (x *VariantDict) Init(FromAsvVar *Variant) { | |
| 2549 | + | core.LazyRegister(&xVariantDictInit, "GLIB", "g_variant_dict_init", false) | |
| 2550 | + | ||
| 2345 | 2551 | xVariantDictInit(x.GoPointer(), FromAsvVar) | |
| 2346 | 2552 | } | |
| 2347 | 2553 | ||
| @@ -2352,6 +2558,8 @@ var xVariantDictInsert func(uintptr, string, string, ...interface{}) | |||
| 2352 | 2558 | // This call is a convenience wrapper that is exactly equivalent to | |
| 2353 | 2559 | // calling g_variant_new() followed by g_variant_dict_insert_value(). | |
| 2354 | 2560 | func (x *VariantDict) Insert(KeyVar string, FormatStringVar string, varArgs ...interface{}) { | |
| 2561 | + | core.LazyRegister(&xVariantDictInsert, "GLIB", "g_variant_dict_insert", false) | |
| 2562 | + | ||
| 2355 | 2563 | xVariantDictInsert(x.GoPointer(), KeyVar, FormatStringVar, varArgs...) | |
| 2356 | 2564 | } | |
| 2357 | 2565 | ||
| @@ -2361,6 +2569,8 @@ var xVariantDictInsertValue func(uintptr, string, *Variant) | |||
| 2361 | 2569 | // | |
| 2362 | 2570 | // @value is consumed if it is floating. | |
| 2363 | 2571 | func (x *VariantDict) InsertValue(KeyVar string, ValueVar *Variant) { | |
| 2572 | + | core.LazyRegister(&xVariantDictInsertValue, "GLIB", "g_variant_dict_insert_value", false) | |
| 2573 | + | ||
| 2364 | 2574 | xVariantDictInsertValue(x.GoPointer(), KeyVar, ValueVar) | |
| 2365 | 2575 | } | |
| 2366 | 2576 | ||
| @@ -2378,6 +2588,8 @@ var xVariantDictLookup func(uintptr, string, string, ...interface{}) bool | |||
| 2378 | 2588 | // values and also determines if the values are copied or borrowed, see the | |
| 2379 | 2589 | // section on [`GVariant` format strings](gvariant-format-strings.html#pointers). | |
| 2380 | 2590 | func (x *VariantDict) Lookup(KeyVar string, FormatStringVar string, varArgs ...interface{}) bool { | |
| 2591 | + | core.LazyRegister(&xVariantDictLookup, "GLIB", "g_variant_dict_lookup", false) | |
| 2592 | + | ||
| 2381 | 2593 | cret := xVariantDictLookup(x.GoPointer(), KeyVar, FormatStringVar, varArgs...) | |
| 2382 | 2594 | return cret | |
| 2383 | 2595 | } | |
| @@ -2396,6 +2608,8 @@ var xVariantDictLookupValue func(uintptr, string, *VariantType) uintptr | |||
| 2396 | 2608 | // returned. If @expected_type was specified then any non-%NULL return | |
| 2397 | 2609 | // value will have this type. | |
| 2398 | 2610 | func (x *VariantDict) LookupValue(KeyVar string, ExpectedTypeVar *VariantType) *Variant { | |
| 2611 | + | core.LazyRegister(&xVariantDictLookupValue, "GLIB", "g_variant_dict_lookup_value", false) | |
| 2612 | + | ||
| 2399 | 2613 | cret := xVariantDictLookupValue(x.GoPointer(), KeyVar, ExpectedTypeVar) | |
| 2400 | 2614 | if cret == 0 { | |
| 2401 | 2615 | return nil | |
| @@ -2410,6 +2624,8 @@ var xVariantDictRef func(uintptr) uintptr | |||
| 2410 | 2624 | // Don't call this on stack-allocated #GVariantDict instances or bad | |
| 2411 | 2625 | // things will happen. | |
| 2412 | 2626 | func (x *VariantDict) Ref() *VariantDict { | |
| 2627 | + | core.LazyRegister(&xVariantDictRef, "GLIB", "g_variant_dict_ref", false) | |
| 2628 | + | ||
| 2413 | 2629 | cret := xVariantDictRef(x.GoPointer()) | |
| 2414 | 2630 | if cret == 0 { | |
| 2415 | 2631 | return nil | |
| @@ -2421,6 +2637,8 @@ var xVariantDictRemove func(uintptr, string) bool | |||
| 2421 | 2637 | ||
| 2422 | 2638 | // Removes a key and its associated value from a #GVariantDict. | |
| 2423 | 2639 | func (x *VariantDict) Remove(KeyVar string) bool { | |
| 2640 | + | core.LazyRegister(&xVariantDictRemove, "GLIB", "g_variant_dict_remove", false) | |
| 2641 | + | ||
| 2424 | 2642 | cret := xVariantDictRemove(x.GoPointer(), KeyVar) | |
| 2425 | 2643 | return cret | |
| 2426 | 2644 | } | |
| @@ -2435,6 +2653,8 @@ var xVariantDictUnref func(uintptr) | |||
| 2435 | 2653 | // Don't call this on stack-allocated #GVariantDict instances or bad | |
| 2436 | 2654 | // things will happen. | |
| 2437 | 2655 | func (x *VariantDict) Unref() { | |
| 2656 | + | core.LazyRegister(&xVariantDictUnref, "GLIB", "g_variant_dict_unref", false) | |
| 2657 | + | ||
| 2438 | 2658 | xVariantDictUnref(x.GoPointer()) | |
| 2439 | 2659 | } | |
| 2440 | 2660 | ||
| @@ -2471,6 +2691,8 @@ var xVariantIterCopy func(uintptr) uintptr | |||
| 2471 | 2691 | // A reference is taken to the container that @iter is iterating over | |
| 2472 | 2692 | // and will be related only when g_variant_iter_free() is called. | |
| 2473 | 2693 | func (x *VariantIter) Copy() *VariantIter { | |
| 2694 | + | core.LazyRegister(&xVariantIterCopy, "GLIB", "g_variant_iter_copy", false) | |
| 2695 | + | ||
| 2474 | 2696 | cret := xVariantIterCopy(x.GoPointer()) | |
| 2475 | 2697 | if cret == 0 { | |
| 2476 | 2698 | return nil | |
| @@ -2484,6 +2706,8 @@ var xVariantIterFree func(uintptr) | |||
| 2484 | 2706 | // iterators that were returned by g_variant_iter_new() or | |
| 2485 | 2707 | // g_variant_iter_copy(). | |
| 2486 | 2708 | func (x *VariantIter) Free() { | |
| 2709 | + | core.LazyRegister(&xVariantIterFree, "GLIB", "g_variant_iter_free", false) | |
| 2710 | + | ||
| 2487 | 2711 | xVariantIterFree(x.GoPointer()) | |
| 2488 | 2712 | } | |
| 2489 | 2713 | ||
| @@ -2496,6 +2720,8 @@ var xVariantIterInit func(uintptr, *Variant) uint | |||
| 2496 | 2720 | // The iterator remains valid for as long as @value exists, and need not | |
| 2497 | 2721 | // be freed in any way. | |
| 2498 | 2722 | func (x *VariantIter) Init(ValueVar *Variant) uint { | |
| 2723 | + | core.LazyRegister(&xVariantIterInit, "GLIB", "g_variant_iter_init", false) | |
| 2724 | + | ||
| 2499 | 2725 | cret := xVariantIterInit(x.GoPointer(), ValueVar) | |
| 2500 | 2726 | return cret | |
| 2501 | 2727 | } | |
| @@ -2567,6 +2793,8 @@ var xVariantIterLoop func(uintptr, string, ...interface{}) bool | |||
| 2567 | 2793 | // See the section on | |
| 2568 | 2794 | // [`GVariant` format strings](gvariant-format-strings.html#pointers). | |
| 2569 | 2795 | func (x *VariantIter) Loop(FormatStringVar string, varArgs ...interface{}) bool { | |
| 2796 | + | core.LazyRegister(&xVariantIterLoop, "GLIB", "g_variant_iter_loop", false) | |
| 2797 | + | ||
| 2570 | 2798 | cret := xVariantIterLoop(x.GoPointer(), FormatStringVar, varArgs...) | |
| 2571 | 2799 | return cret | |
| 2572 | 2800 | } | |
| @@ -2579,6 +2807,8 @@ var xVariantIterNChildren func(uintptr) uint | |||
| 2579 | 2807 | // | |
| 2580 | 2808 | // This function might be useful for preallocation of arrays. | |
| 2581 | 2809 | func (x *VariantIter) NChildren() uint { | |
| 2810 | + | core.LazyRegister(&xVariantIterNChildren, "GLIB", "g_variant_iter_n_children", false) | |
| 2811 | + | ||
| 2582 | 2812 | cret := xVariantIterNChildren(x.GoPointer()) | |
| 2583 | 2813 | return cret | |
| 2584 | 2814 | } | |
| @@ -2629,6 +2859,8 @@ var xVariantIterNext func(uintptr, string, ...interface{}) bool | |||
| 2629 | 2859 | // See the section on | |
| 2630 | 2860 | // [`GVariant` format strings](gvariant-format-strings.html#pointers). | |
| 2631 | 2861 | func (x *VariantIter) Next(FormatStringVar string, varArgs ...interface{}) bool { | |
| 2862 | + | core.LazyRegister(&xVariantIterNext, "GLIB", "g_variant_iter_next", false) | |
| 2863 | + | ||
| 2632 | 2864 | cret := xVariantIterNext(x.GoPointer(), FormatStringVar, varArgs...) | |
| 2633 | 2865 | return cret | |
| 2634 | 2866 | } | |
| @@ -2665,6 +2897,8 @@ var xVariantIterNextValue func(uintptr) uintptr | |||
| 2665 | 2897 | // | |
| 2666 | 2898 | // ]| | |
| 2667 | 2899 | func (x *VariantIter) NextValue() *Variant { | |
| 2900 | + | core.LazyRegister(&xVariantIterNextValue, "GLIB", "g_variant_iter_next_value", false) | |
| 2901 | + | ||
| 2668 | 2902 | cret := xVariantIterNextValue(x.GoPointer()) | |
| 2669 | 2903 | if cret == 0 { | |
| 2670 | 2904 | return nil | |
| @@ -2773,6 +3007,8 @@ var xVariantIsObjectPath func(string) bool | |||
| 2773 | 3007 | // must contain only the characters `[A-Z][a-z][0-9]_`. No sequence | |
| 2774 | 3008 | // (including the one following the final `/` character) may be empty. | |
| 2775 | 3009 | func VariantIsObjectPath(StringVar string) bool { | |
| 3010 | + | core.LazyRegister(&xVariantIsObjectPath, "GLIB", "g_variant_is_object_path", false) | |
| 3011 | + | ||
| 2776 | 3012 | cret := xVariantIsObjectPath(StringVar) | |
| 2777 | 3013 | return cret | |
| 2778 | 3014 | } | |
| @@ -2786,6 +3022,8 @@ var xVariantIsSignature func(string) bool | |||
| 2786 | 3022 | // D-Bus type signatures consist of zero or more definite #GVariantType | |
| 2787 | 3023 | // strings in sequence. | |
| 2788 | 3024 | func VariantIsSignature(StringVar string) bool { | |
| 3025 | + | core.LazyRegister(&xVariantIsSignature, "GLIB", "g_variant_is_signature", false) | |
| 3026 | + | ||
| 2789 | 3027 | cret := xVariantIsSignature(StringVar) | |
| 2790 | 3028 | return cret | |
| 2791 | 3029 | } | |
| @@ -2829,6 +3067,7 @@ var xVariantParse func(*VariantType, string, uintptr, uintptr, **Error) uintptr | |||
| 2829 | 3067 | // which would result in a %G_VARIANT_PARSE_ERROR_RECURSION error. #GVariant is | |
| 2830 | 3068 | // guaranteed to handle nesting up to at least 64 levels. | |
| 2831 | 3069 | func VariantParse(TypeVar *VariantType, TextVar string, LimitVar *string, EndptrVar *string) (*Variant, error) { | |
| 3070 | + | core.LazyRegister(&xVariantParse, "GLIB", "g_variant_parse", false) | |
| 2832 | 3071 | var cerr *Error | |
| 2833 | 3072 | ||
| 2834 | 3073 | LimitVarPtr := core.GStrdupNullable(LimitVar) | |
| @@ -2883,6 +3122,8 @@ var xVariantParseErrorPrintContext func(*Error, string) string | |||
| 2883 | 3122 | // g_variant_parse() then you must add nul termination before using this | |
| 2884 | 3123 | // function. | |
| 2885 | 3124 | func VariantParseErrorPrintContext(ErrorVar *Error, SourceStrVar string) string { | |
| 3125 | + | core.LazyRegister(&xVariantParseErrorPrintContext, "GLIB", "g_variant_parse_error_print_context", false) | |
| 3126 | + | ||
| 2886 | 3127 | cret := xVariantParseErrorPrintContext(ErrorVar, SourceStrVar) | |
| 2887 | 3128 | return cret | |
| 2888 | 3129 | } | |
| @@ -2890,146 +3131,4 @@ func VariantParseErrorPrintContext(ErrorVar *Error, SourceStrVar string) string | |||
| 2890 | 3131 | func init() { | |
| 2891 | 3132 | core.SetPackageName("GLIB", "glib-2.0") | |
| 2892 | 3133 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | |
| 2893 | - | var libs []uintptr | |
| 2894 | - | for _, libPath := range core.GetPaths("GLIB") { | |
| 2895 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 2896 | - | if err != nil { | |
| 2897 | - | panic(err) | |
| 2898 | - | } | |
| 2899 | - | libs = append(libs, lib) | |
| 2900 | - | } | |
| 2901 | - | ||
| 2902 | - | core.PuregoSafeRegister(&xVariantIsObjectPath, libs, "g_variant_is_object_path") | |
| 2903 | - | core.PuregoSafeRegister(&xVariantIsSignature, libs, "g_variant_is_signature") | |
| 2904 | - | core.PuregoSafeRegister(&xVariantParse, libs, "g_variant_parse") | |
| 2905 | - | core.PuregoSafeRegister(&xVariantParseErrorPrintContext, libs, "g_variant_parse_error_print_context") | |
| 2906 | - | ||
| 2907 | - | core.PuregoSafeRegister(&xVariantGLibType, libs, "intern") | |
| 2908 | - | ||
| 2909 | - | core.PuregoSafeRegister(&xNewVariant, libs, "g_variant_new") | |
| 2910 | - | core.PuregoSafeRegister(&xNewVariantArray, libs, "g_variant_new_array") | |
| 2911 | - | core.PuregoSafeRegister(&xNewVariantBoolean, libs, "g_variant_new_boolean") | |
| 2912 | - | core.PuregoSafeRegister(&xNewVariantByte, libs, "g_variant_new_byte") | |
| 2913 | - | core.PuregoSafeRegister(&xNewVariantBytestring, libs, "g_variant_new_bytestring") | |
| 2914 | - | core.PuregoSafeRegister(&xNewVariantBytestringArray, libs, "g_variant_new_bytestring_array") | |
| 2915 | - | core.PuregoSafeRegister(&xNewVariantDictEntry, libs, "g_variant_new_dict_entry") | |
| 2916 | - | core.PuregoSafeRegister(&xNewVariantDouble, libs, "g_variant_new_double") | |
| 2917 | - | core.PuregoSafeRegister(&xNewVariantFixedArray, libs, "g_variant_new_fixed_array") | |
| 2918 | - | core.PuregoSafeRegister(&xNewVariantFromBytes, libs, "g_variant_new_from_bytes") | |
| 2919 | - | core.PuregoSafeRegister(&xNewVariantFromData, libs, "g_variant_new_from_data") | |
| 2920 | - | core.PuregoSafeRegister(&xNewVariantHandle, libs, "g_variant_new_handle") | |
| 2921 | - | core.PuregoSafeRegister(&xNewVariantInt16, libs, "g_variant_new_int16") | |
| 2922 | - | core.PuregoSafeRegister(&xNewVariantInt32, libs, "g_variant_new_int32") | |
| 2923 | - | core.PuregoSafeRegister(&xNewVariantInt64, libs, "g_variant_new_int64") | |
| 2924 | - | core.PuregoSafeRegister(&xNewVariantMaybe, libs, "g_variant_new_maybe") | |
| 2925 | - | core.PuregoSafeRegister(&xNewVariantObjectPath, libs, "g_variant_new_object_path") | |
| 2926 | - | core.PuregoSafeRegister(&xNewVariantObjv, libs, "g_variant_new_objv") | |
| 2927 | - | core.PuregoSafeRegister(&xNewVariantParsed, libs, "g_variant_new_parsed") | |
| 2928 | - | core.PuregoSafeRegister(&xNewVariantParsedVa, libs, "g_variant_new_parsed_va") | |
| 2929 | - | core.PuregoSafeRegister(&xNewVariantPrintf, libs, "g_variant_new_printf") | |
| 2930 | - | core.PuregoSafeRegister(&xNewVariantSignature, libs, "g_variant_new_signature") | |
| 2931 | - | core.PuregoSafeRegister(&xNewVariantString, libs, "g_variant_new_string") | |
| 2932 | - | core.PuregoSafeRegister(&xNewVariantStrv, libs, "g_variant_new_strv") | |
| 2933 | - | core.PuregoSafeRegister(&xNewVariantTakeString, libs, "g_variant_new_take_string") | |
| 2934 | - | core.PuregoSafeRegister(&xNewVariantTuple, libs, "g_variant_new_tuple") | |
| 2935 | - | core.PuregoSafeRegister(&xNewVariantUint16, libs, "g_variant_new_uint16") | |
| 2936 | - | core.PuregoSafeRegister(&xNewVariantUint32, libs, "g_variant_new_uint32") | |
| 2937 | - | core.PuregoSafeRegister(&xNewVariantUint64, libs, "g_variant_new_uint64") | |
| 2938 | - | core.PuregoSafeRegister(&xNewVariantVa, libs, "g_variant_new_va") | |
| 2939 | - | core.PuregoSafeRegister(&xNewVariantVariant, libs, "g_variant_new_variant") | |
| 2940 | - | ||
| 2941 | - | core.PuregoSafeRegister(&xVariantByteswap, libs, "g_variant_byteswap") | |
| 2942 | - | core.PuregoSafeRegister(&xVariantCheckFormatString, libs, "g_variant_check_format_string") | |
| 2943 | - | core.PuregoSafeRegister(&xVariantClassify, libs, "g_variant_classify") | |
| 2944 | - | core.PuregoSafeRegister(&xVariantCompare, libs, "g_variant_compare") | |
| 2945 | - | core.PuregoSafeRegister(&xVariantDupBytestring, libs, "g_variant_dup_bytestring") | |
| 2946 | - | core.PuregoSafeRegister(&xVariantDupBytestringArray, libs, "g_variant_dup_bytestring_array") | |
| 2947 | - | core.PuregoSafeRegister(&xVariantDupObjv, libs, "g_variant_dup_objv") | |
| 2948 | - | core.PuregoSafeRegister(&xVariantDupString, libs, "g_variant_dup_string") | |
| 2949 | - | core.PuregoSafeRegister(&xVariantDupStrv, libs, "g_variant_dup_strv") | |
| 2950 | - | core.PuregoSafeRegister(&xVariantEqual, libs, "g_variant_equal") | |
| 2951 | - | core.PuregoSafeRegister(&xVariantGet, libs, "g_variant_get") | |
| 2952 | - | core.PuregoSafeRegister(&xVariantGetBoolean, libs, "g_variant_get_boolean") | |
| 2953 | - | core.PuregoSafeRegister(&xVariantGetByte, libs, "g_variant_get_byte") | |
| 2954 | - | core.PuregoSafeRegister(&xVariantGetBytestring, libs, "g_variant_get_bytestring") | |
| 2955 | - | core.PuregoSafeRegister(&xVariantGetBytestringArray, libs, "g_variant_get_bytestring_array") | |
| 2956 | - | core.PuregoSafeRegister(&xVariantGetChild, libs, "g_variant_get_child") | |
| 2957 | - | core.PuregoSafeRegister(&xVariantGetChildValue, libs, "g_variant_get_child_value") | |
| 2958 | - | core.PuregoSafeRegister(&xVariantGetData, libs, "g_variant_get_data") | |
| 2959 | - | core.PuregoSafeRegister(&xVariantGetDataAsBytes, libs, "g_variant_get_data_as_bytes") | |
| 2960 | - | core.PuregoSafeRegister(&xVariantGetDouble, libs, "g_variant_get_double") | |
| 2961 | - | core.PuregoSafeRegister(&xVariantGetFixedArray, libs, "g_variant_get_fixed_array") | |
| 2962 | - | core.PuregoSafeRegister(&xVariantGetHandle, libs, "g_variant_get_handle") | |
| 2963 | - | core.PuregoSafeRegister(&xVariantGetInt16, libs, "g_variant_get_int16") | |
| 2964 | - | core.PuregoSafeRegister(&xVariantGetInt32, libs, "g_variant_get_int32") | |
| 2965 | - | core.PuregoSafeRegister(&xVariantGetInt64, libs, "g_variant_get_int64") | |
| 2966 | - | core.PuregoSafeRegister(&xVariantGetMaybe, libs, "g_variant_get_maybe") | |
| 2967 | - | core.PuregoSafeRegister(&xVariantGetNormalForm, libs, "g_variant_get_normal_form") | |
| 2968 | - | core.PuregoSafeRegister(&xVariantGetObjv, libs, "g_variant_get_objv") | |
| 2969 | - | core.PuregoSafeRegister(&xVariantGetSize, libs, "g_variant_get_size") | |
| 2970 | - | core.PuregoSafeRegister(&xVariantGetString, libs, "g_variant_get_string") | |
| 2971 | - | core.PuregoSafeRegister(&xVariantGetStrv, libs, "g_variant_get_strv") | |
| 2972 | - | core.PuregoSafeRegister(&xVariantGetType, libs, "g_variant_get_type") | |
| 2973 | - | core.PuregoSafeRegister(&xVariantGetTypeString, libs, "g_variant_get_type_string") | |
| 2974 | - | core.PuregoSafeRegister(&xVariantGetUint16, libs, "g_variant_get_uint16") | |
| 2975 | - | core.PuregoSafeRegister(&xVariantGetUint32, libs, "g_variant_get_uint32") | |
| 2976 | - | core.PuregoSafeRegister(&xVariantGetUint64, libs, "g_variant_get_uint64") | |
| 2977 | - | core.PuregoSafeRegister(&xVariantGetVa, libs, "g_variant_get_va") | |
| 2978 | - | core.PuregoSafeRegister(&xVariantGetVariant, libs, "g_variant_get_variant") | |
| 2979 | - | core.PuregoSafeRegister(&xVariantHash, libs, "g_variant_hash") | |
| 2980 | - | core.PuregoSafeRegister(&xVariantIsContainer, libs, "g_variant_is_container") | |
| 2981 | - | core.PuregoSafeRegister(&xVariantIsFloating, libs, "g_variant_is_floating") | |
| 2982 | - | core.PuregoSafeRegister(&xVariantIsNormalForm, libs, "g_variant_is_normal_form") | |
| 2983 | - | core.PuregoSafeRegister(&xVariantIsOfType, libs, "g_variant_is_of_type") | |
| 2984 | - | core.PuregoSafeRegister(&xVariantIterNew, libs, "g_variant_iter_new") | |
| 2985 | - | core.PuregoSafeRegister(&xVariantLookup, libs, "g_variant_lookup") | |
| 2986 | - | core.PuregoSafeRegister(&xVariantLookupValue, libs, "g_variant_lookup_value") | |
| 2987 | - | core.PuregoSafeRegister(&xVariantNChildren, libs, "g_variant_n_children") | |
| 2988 | - | core.PuregoSafeRegister(&xVariantPrint, libs, "g_variant_print") | |
| 2989 | - | core.PuregoSafeRegister(&xVariantPrintString, libs, "g_variant_print_string") | |
| 2990 | - | core.PuregoSafeRegister(&xVariantRef, libs, "g_variant_ref") | |
| 2991 | - | core.PuregoSafeRegister(&xVariantRefSink, libs, "g_variant_ref_sink") | |
| 2992 | - | core.PuregoSafeRegister(&xVariantStore, libs, "g_variant_store") | |
| 2993 | - | core.PuregoSafeRegister(&xVariantTakeRef, libs, "g_variant_take_ref") | |
| 2994 | - | core.PuregoSafeRegister(&xVariantUnref, libs, "g_variant_unref") | |
| 2995 | - | ||
| 2996 | - | core.PuregoSafeRegister(&xVariantBuilderGLibType, libs, "g_variant_builder_get_type") | |
| 2997 | - | ||
| 2998 | - | core.PuregoSafeRegister(&xNewVariantBuilder, libs, "g_variant_builder_new") | |
| 2999 | - | ||
| 3000 | - | core.PuregoSafeRegister(&xVariantBuilderAdd, libs, "g_variant_builder_add") | |
| 3001 | - | core.PuregoSafeRegister(&xVariantBuilderAddParsed, libs, "g_variant_builder_add_parsed") | |
| 3002 | - | core.PuregoSafeRegister(&xVariantBuilderAddValue, libs, "g_variant_builder_add_value") | |
| 3003 | - | core.PuregoSafeRegister(&xVariantBuilderClear, libs, "g_variant_builder_clear") | |
| 3004 | - | core.PuregoSafeRegister(&xVariantBuilderClose, libs, "g_variant_builder_close") | |
| 3005 | - | core.PuregoSafeRegister(&xVariantBuilderEnd, libs, "g_variant_builder_end") | |
| 3006 | - | core.PuregoSafeRegister(&xVariantBuilderInit, libs, "g_variant_builder_init") | |
| 3007 | - | core.PuregoSafeRegister(&xVariantBuilderInitStatic, libs, "g_variant_builder_init_static") | |
| 3008 | - | core.PuregoSafeRegister(&xVariantBuilderOpen, libs, "g_variant_builder_open") | |
| 3009 | - | core.PuregoSafeRegister(&xVariantBuilderRef, libs, "g_variant_builder_ref") | |
| 3010 | - | core.PuregoSafeRegister(&xVariantBuilderUnref, libs, "g_variant_builder_unref") | |
| 3011 | - | ||
| 3012 | - | core.PuregoSafeRegister(&xVariantDictGLibType, libs, "g_variant_dict_get_type") | |
| 3013 | - | ||
| 3014 | - | core.PuregoSafeRegister(&xNewVariantDict, libs, "g_variant_dict_new") | |
| 3015 | - | ||
| 3016 | - | core.PuregoSafeRegister(&xVariantDictClear, libs, "g_variant_dict_clear") | |
| 3017 | - | core.PuregoSafeRegister(&xVariantDictContains, libs, "g_variant_dict_contains") | |
| 3018 | - | core.PuregoSafeRegister(&xVariantDictEnd, libs, "g_variant_dict_end") | |
| 3019 | - | core.PuregoSafeRegister(&xVariantDictInit, libs, "g_variant_dict_init") | |
| 3020 | - | core.PuregoSafeRegister(&xVariantDictInsert, libs, "g_variant_dict_insert") | |
| 3021 | - | core.PuregoSafeRegister(&xVariantDictInsertValue, libs, "g_variant_dict_insert_value") | |
| 3022 | - | core.PuregoSafeRegister(&xVariantDictLookup, libs, "g_variant_dict_lookup") | |
| 3023 | - | core.PuregoSafeRegister(&xVariantDictLookupValue, libs, "g_variant_dict_lookup_value") | |
| 3024 | - | core.PuregoSafeRegister(&xVariantDictRef, libs, "g_variant_dict_ref") | |
| 3025 | - | core.PuregoSafeRegister(&xVariantDictRemove, libs, "g_variant_dict_remove") | |
| 3026 | - | core.PuregoSafeRegister(&xVariantDictUnref, libs, "g_variant_dict_unref") | |
| 3027 | - | ||
| 3028 | - | core.PuregoSafeRegister(&xVariantIterCopy, libs, "g_variant_iter_copy") | |
| 3029 | - | core.PuregoSafeRegister(&xVariantIterFree, libs, "g_variant_iter_free") | |
| 3030 | - | core.PuregoSafeRegister(&xVariantIterInit, libs, "g_variant_iter_init") | |
| 3031 | - | core.PuregoSafeRegister(&xVariantIterLoop, libs, "g_variant_iter_loop") | |
| 3032 | - | core.PuregoSafeRegister(&xVariantIterNChildren, libs, "g_variant_iter_n_children") | |
| 3033 | - | core.PuregoSafeRegister(&xVariantIterNext, libs, "g_variant_iter_next") | |
| 3034 | - | core.PuregoSafeRegister(&xVariantIterNextValue, libs, "g_variant_iter_next_value") | |
| 3035 | 3134 | } | |
| @@ -5,7 +5,6 @@ import ( | |||||
| 5 | "structs" | 5 | "structs" | ||
| 6 | "unsafe" | 6 | "unsafe" | ||
| 7 | 7 | ||||
| 8 | - | "github.com/bnema/purego" | |||
| 9 | "github.com/bnema/puregotk/pkg/core" | 8 | "github.com/bnema/puregotk/pkg/core" | ||
| 10 | "github.com/bnema/puregotk/v4/gobject/types" | 9 | "github.com/bnema/puregotk/v4/gobject/types" | ||
| 11 | ) | 10 | ) | ||
| @@ -261,6 +260,7 @@ type Variant struct { | |||||
| 261 | var xVariantGLibType func() types.GType | 260 | var xVariantGLibType func() types.GType | ||
| 262 | 261 | ||||
| 263 | func VariantGLibType() types.GType { | 262 | func VariantGLibType() types.GType { | ||
| 263 | + | core.LazyRegister(&xVariantGLibType, "GLIB", "intern", false) | |||
| 264 | return xVariantGLibType() | 264 | return xVariantGLibType() | ||
| 265 | } | 265 | } | ||
| 266 | 266 | ||||
| @@ -309,6 +309,8 @@ var xNewVariant func(string, ...interface{}) uintptr | |||||
| 309 | // | 309 | // | ||
| 310 | // ]| | 310 | // ]| | ||
| 311 | func NewVariant(FormatStringVar string, varArgs ...interface{}) *Variant { | 311 | func NewVariant(FormatStringVar string, varArgs ...interface{}) *Variant { | ||
| 312 | + | core.LazyRegister(&xNewVariant, "GLIB", "g_variant_new", false) | |||
| 313 | + | ||||
| 312 | cret := xNewVariant(FormatStringVar, varArgs...) | 314 | cret := xNewVariant(FormatStringVar, varArgs...) | ||
| 313 | if cret == 0 { | 315 | if cret == 0 { | ||
| 314 | return nil | 316 | return nil | ||
| @@ -334,6 +336,8 @@ var xNewVariantArray func(*VariantType, uintptr, uint) uintptr | |||||
| 334 | // If the @children are floating references (see g_variant_ref_sink()), the | 336 | // If the @children are floating references (see g_variant_ref_sink()), the | ||
| 335 | // new instance takes ownership of them as if via g_variant_ref_sink(). | 337 | // new instance takes ownership of them as if via g_variant_ref_sink(). | ||
| 336 | func NewVariantArray(ChildTypeVar *VariantType, ChildrenVar uintptr, NChildrenVar uint) *Variant { | 338 | func NewVariantArray(ChildTypeVar *VariantType, ChildrenVar uintptr, NChildrenVar uint) *Variant { | ||
| 339 | + | core.LazyRegister(&xNewVariantArray, "GLIB", "g_variant_new_array", false) | |||
| 340 | + | ||||
| 337 | cret := xNewVariantArray(ChildTypeVar, ChildrenVar, NChildrenVar) | 341 | cret := xNewVariantArray(ChildTypeVar, ChildrenVar, NChildrenVar) | ||
| 338 | if cret == 0 { | 342 | if cret == 0 { | ||
| 339 | return nil | 343 | return nil | ||
| @@ -345,6 +349,8 @@ var xNewVariantBoolean func(bool) uintptr | |||||
| 345 | 349 | ||||
| 346 | // Creates a new boolean #GVariant instance -- either %TRUE or %FALSE. | 350 | // Creates a new boolean #GVariant instance -- either %TRUE or %FALSE. | ||
| 347 | func NewVariantBoolean(ValueVar bool) *Variant { | 351 | func NewVariantBoolean(ValueVar bool) *Variant { | ||
| 352 | + | core.LazyRegister(&xNewVariantBoolean, "GLIB", "g_variant_new_boolean", false) | |||
| 353 | + | ||||
| 348 | cret := xNewVariantBoolean(ValueVar) | 354 | cret := xNewVariantBoolean(ValueVar) | ||
| 349 | if cret == 0 { | 355 | if cret == 0 { | ||
| 350 | return nil | 356 | return nil | ||
| @@ -356,6 +362,8 @@ var xNewVariantByte func(byte) uintptr | |||||
| 356 | 362 | ||||
| 357 | // Creates a new byte #GVariant instance. | 363 | // Creates a new byte #GVariant instance. | ||
| 358 | func NewVariantByte(ValueVar byte) *Variant { | 364 | func NewVariantByte(ValueVar byte) *Variant { | ||
| 365 | + | core.LazyRegister(&xNewVariantByte, "GLIB", "g_variant_new_byte", false) | |||
| 366 | + | ||||
| 359 | cret := xNewVariantByte(ValueVar) | 367 | cret := xNewVariantByte(ValueVar) | ||
| 360 | if cret == 0 { | 368 | if cret == 0 { | ||
| 361 | return nil | 369 | return nil | ||
| @@ -372,6 +380,8 @@ var xNewVariantBytestring func([]byte) uintptr | |||||
| 372 | // The nul terminator character at the end of the string is stored in | 380 | // The nul terminator character at the end of the string is stored in | ||
| 373 | // the array. | 381 | // the array. | ||
| 374 | func NewVariantBytestring(StringVar []byte) *Variant { | 382 | func NewVariantBytestring(StringVar []byte) *Variant { | ||
| 383 | + | core.LazyRegister(&xNewVariantBytestring, "GLIB", "g_variant_new_bytestring", false) | |||
| 384 | + | ||||
| 375 | cret := xNewVariantBytestring(StringVar) | 385 | cret := xNewVariantBytestring(StringVar) | ||
| 376 | if cret == 0 { | 386 | if cret == 0 { | ||
| 377 | return nil | 387 | return nil | ||
| @@ -386,6 +396,8 @@ var xNewVariantBytestringArray func([]string, int) uintptr | |||||
| 386 | // | 396 | // | ||
| 387 | // If @length is -1 then @strv is %NULL-terminated. | 397 | // If @length is -1 then @strv is %NULL-terminated. | ||
| 388 | func NewVariantBytestringArray(StrvVar []string, LengthVar int) *Variant { | 398 | func NewVariantBytestringArray(StrvVar []string, LengthVar int) *Variant { | ||
| 399 | + | core.LazyRegister(&xNewVariantBytestringArray, "GLIB", "g_variant_new_bytestring_array", false) | |||
| 400 | + | ||||
| 389 | cret := xNewVariantBytestringArray(StrvVar, LengthVar) | 401 | cret := xNewVariantBytestringArray(StrvVar, LengthVar) | ||
| 390 | if cret == 0 { | 402 | if cret == 0 { | ||
| 391 | return nil | 403 | return nil | ||
| @@ -401,6 +413,8 @@ var xNewVariantDictEntry func(*Variant, *Variant) uintptr | |||||
| 401 | // If the @key or @value are floating references (see g_variant_ref_sink()), | 413 | // If the @key or @value are floating references (see g_variant_ref_sink()), | ||
| 402 | // the new instance takes ownership of them as if via g_variant_ref_sink(). | 414 | // the new instance takes ownership of them as if via g_variant_ref_sink(). | ||
| 403 | func NewVariantDictEntry(KeyVar *Variant, ValueVar *Variant) *Variant { | 415 | func NewVariantDictEntry(KeyVar *Variant, ValueVar *Variant) *Variant { | ||
| 416 | + | core.LazyRegister(&xNewVariantDictEntry, "GLIB", "g_variant_new_dict_entry", false) | |||
| 417 | + | ||||
| 404 | cret := xNewVariantDictEntry(KeyVar, ValueVar) | 418 | cret := xNewVariantDictEntry(KeyVar, ValueVar) | ||
| 405 | if cret == 0 { | 419 | if cret == 0 { | ||
| 406 | return nil | 420 | return nil | ||
| @@ -412,6 +426,8 @@ var xNewVariantDouble func(float64) uintptr | |||||
| 412 | 426 | ||||
| 413 | // Creates a new double #GVariant instance. | 427 | // Creates a new double #GVariant instance. | ||
| 414 | func NewVariantDouble(ValueVar float64) *Variant { | 428 | func NewVariantDouble(ValueVar float64) *Variant { | ||
| 429 | + | core.LazyRegister(&xNewVariantDouble, "GLIB", "g_variant_new_double", false) | |||
| 430 | + | ||||
| 415 | cret := xNewVariantDouble(ValueVar) | 431 | cret := xNewVariantDouble(ValueVar) | ||
| 416 | if cret == 0 { | 432 | if cret == 0 { | ||
| 417 | return nil | 433 | return nil | ||
| @@ -435,6 +451,8 @@ var xNewVariantFixedArray func(*VariantType, uintptr, uint, uint) uintptr | |||||
| 435 | // | 451 | // | ||
| 436 | // @n_elements must be the length of the @elements array. | 452 | // @n_elements must be the length of the @elements array. | ||
| 437 | func NewVariantFixedArray(ElementTypeVar *VariantType, ElementsVar uintptr, NElementsVar uint, ElementSizeVar uint) *Variant { | 453 | func NewVariantFixedArray(ElementTypeVar *VariantType, ElementsVar uintptr, NElementsVar uint, ElementSizeVar uint) *Variant { | ||
| 454 | + | core.LazyRegister(&xNewVariantFixedArray, "GLIB", "g_variant_new_fixed_array", false) | |||
| 455 | + | ||||
| 438 | cret := xNewVariantFixedArray(ElementTypeVar, ElementsVar, NElementsVar, ElementSizeVar) | 456 | cret := xNewVariantFixedArray(ElementTypeVar, ElementsVar, NElementsVar, ElementSizeVar) | ||
| 439 | if cret == 0 { | 457 | if cret == 0 { | ||
| 440 | return nil | 458 | return nil | ||
| @@ -454,6 +472,8 @@ var xNewVariantFromBytes func(*VariantType, *Bytes, bool) uintptr | |||||
| 454 | // Otherwise this function will internally create a copy of the memory (since | 472 | // Otherwise this function will internally create a copy of the memory (since | ||
| 455 | // GLib 2.60) or (in older versions) fail and exit the process. | 473 | // GLib 2.60) or (in older versions) fail and exit the process. | ||
| 456 | func NewVariantFromBytes(TypeVar *VariantType, BytesVar *Bytes, TrustedVar bool) *Variant { | 474 | func NewVariantFromBytes(TypeVar *VariantType, BytesVar *Bytes, TrustedVar bool) *Variant { | ||
| 475 | + | core.LazyRegister(&xNewVariantFromBytes, "GLIB", "g_variant_new_from_bytes", false) | |||
| 476 | + | ||||
| 457 | cret := xNewVariantFromBytes(TypeVar, BytesVar, TrustedVar) | 477 | cret := xNewVariantFromBytes(TypeVar, BytesVar, TrustedVar) | ||
| 458 | if cret == 0 { | 478 | if cret == 0 { | ||
| 459 | return nil | 479 | return nil | ||
| @@ -493,6 +513,8 @@ var xNewVariantFromData func(*VariantType, []byte, uint, bool, uintptr, uintptr) | |||||
| 493 | // the memory (since GLib 2.60) or (in older versions) fail and exit the | 513 | // the memory (since GLib 2.60) or (in older versions) fail and exit the | ||
| 494 | // process. | 514 | // process. | ||
| 495 | func NewVariantFromData(TypeVar *VariantType, DataVar []byte, SizeVar uint, TrustedVar bool, NotifyVar *DestroyNotify, UserDataVar uintptr) *Variant { | 515 | func NewVariantFromData(TypeVar *VariantType, DataVar []byte, SizeVar uint, TrustedVar bool, NotifyVar *DestroyNotify, UserDataVar uintptr) *Variant { | ||
| 516 | + | core.LazyRegister(&xNewVariantFromData, "GLIB", "g_variant_new_from_data", false) | |||
| 517 | + | ||||
| 496 | cret := xNewVariantFromData(TypeVar, DataVar, SizeVar, TrustedVar, NewCallbackNullable(NotifyVar), UserDataVar) | 518 | cret := xNewVariantFromData(TypeVar, DataVar, SizeVar, TrustedVar, NewCallbackNullable(NotifyVar), UserDataVar) | ||
| 497 | if cret == 0 { | 519 | if cret == 0 { | ||
| 498 | return nil | 520 | return nil | ||
| @@ -508,6 +530,8 @@ var xNewVariantHandle func(int32) uintptr | |||||
| 508 | // that are sent alongside a D-Bus message. If you're not interacting | 530 | // that are sent alongside a D-Bus message. If you're not interacting | ||
| 509 | // with D-Bus, you probably don't need them. | 531 | // with D-Bus, you probably don't need them. | ||
| 510 | func NewVariantHandle(ValueVar int32) *Variant { | 532 | func NewVariantHandle(ValueVar int32) *Variant { | ||
| 533 | + | core.LazyRegister(&xNewVariantHandle, "GLIB", "g_variant_new_handle", false) | |||
| 534 | + | ||||
| 511 | cret := xNewVariantHandle(ValueVar) | 535 | cret := xNewVariantHandle(ValueVar) | ||
| 512 | if cret == 0 { | 536 | if cret == 0 { | ||
| 513 | return nil | 537 | return nil | ||
| @@ -519,6 +543,8 @@ var xNewVariantInt16 func(int16) uintptr | |||||
| 519 | 543 | ||||
| 520 | // Creates a new int16 #GVariant instance. | 544 | // Creates a new int16 #GVariant instance. | ||
| 521 | func NewVariantInt16(ValueVar int16) *Variant { | 545 | func NewVariantInt16(ValueVar int16) *Variant { | ||
| 546 | + | core.LazyRegister(&xNewVariantInt16, "GLIB", "g_variant_new_int16", false) | |||
| 547 | + | ||||
| 522 | cret := xNewVariantInt16(ValueVar) | 548 | cret := xNewVariantInt16(ValueVar) | ||
| 523 | if cret == 0 { | 549 | if cret == 0 { | ||
| 524 | return nil | 550 | return nil | ||
| @@ -530,6 +556,8 @@ var xNewVariantInt32 func(int32) uintptr | |||||
| 530 | 556 | ||||
| 531 | // Creates a new int32 #GVariant instance. | 557 | // Creates a new int32 #GVariant instance. | ||
| 532 | func NewVariantInt32(ValueVar int32) *Variant { | 558 | func NewVariantInt32(ValueVar int32) *Variant { | ||
| 559 | + | core.LazyRegister(&xNewVariantInt32, "GLIB", "g_variant_new_int32", false) | |||
| 560 | + | ||||
| 533 | cret := xNewVariantInt32(ValueVar) | 561 | cret := xNewVariantInt32(ValueVar) | ||
| 534 | if cret == 0 { | 562 | if cret == 0 { | ||
| 535 | return nil | 563 | return nil | ||
| @@ -541,6 +569,8 @@ var xNewVariantInt64 func(int64) uintptr | |||||
| 541 | 569 | ||||
| 542 | // Creates a new int64 #GVariant instance. | 570 | // Creates a new int64 #GVariant instance. | ||
| 543 | func NewVariantInt64(ValueVar int64) *Variant { | 571 | func NewVariantInt64(ValueVar int64) *Variant { | ||
| 572 | + | core.LazyRegister(&xNewVariantInt64, "GLIB", "g_variant_new_int64", false) | |||
| 573 | + | ||||
| 544 | cret := xNewVariantInt64(ValueVar) | 574 | cret := xNewVariantInt64(ValueVar) | ||
| 545 | if cret == 0 { | 575 | if cret == 0 { | ||
| 546 | return nil | 576 | return nil | ||
| @@ -561,6 +591,8 @@ var xNewVariantMaybe func(*VariantType, *Variant) uintptr | |||||
| 561 | // If @child is a floating reference (see g_variant_ref_sink()), the new | 591 | // If @child is a floating reference (see g_variant_ref_sink()), the new | ||
| 562 | // instance takes ownership of @child. | 592 | // instance takes ownership of @child. | ||
| 563 | func NewVariantMaybe(ChildTypeVar *VariantType, ChildVar *Variant) *Variant { | 593 | func NewVariantMaybe(ChildTypeVar *VariantType, ChildVar *Variant) *Variant { | ||
| 594 | + | core.LazyRegister(&xNewVariantMaybe, "GLIB", "g_variant_new_maybe", false) | |||
| 595 | + | ||||
| 564 | cret := xNewVariantMaybe(ChildTypeVar, ChildVar) | 596 | cret := xNewVariantMaybe(ChildTypeVar, ChildVar) | ||
| 565 | if cret == 0 { | 597 | if cret == 0 { | ||
| 566 | return nil | 598 | return nil | ||
| @@ -574,6 +606,8 @@ var xNewVariantObjectPath func(string) uintptr | |||||
| 574 | // @object_path must be a valid D-Bus object path. Use | 606 | // @object_path must be a valid D-Bus object path. Use | ||
| 575 | // g_variant_is_object_path() if you're not sure. | 607 | // g_variant_is_object_path() if you're not sure. | ||
| 576 | func NewVariantObjectPath(ObjectPathVar string) *Variant { | 608 | func NewVariantObjectPath(ObjectPathVar string) *Variant { | ||
| 609 | + | core.LazyRegister(&xNewVariantObjectPath, "GLIB", "g_variant_new_object_path", false) | |||
| 610 | + | ||||
| 577 | cret := xNewVariantObjectPath(ObjectPathVar) | 611 | cret := xNewVariantObjectPath(ObjectPathVar) | ||
| 578 | if cret == 0 { | 612 | if cret == 0 { | ||
| 579 | return nil | 613 | return nil | ||
| @@ -591,6 +625,8 @@ var xNewVariantObjv func([]string, int) uintptr | |||||
| 591 | // | 625 | // | ||
| 592 | // If @length is -1 then @strv is %NULL-terminated. | 626 | // If @length is -1 then @strv is %NULL-terminated. | ||
| 593 | func NewVariantObjv(StrvVar []string, LengthVar int) *Variant { | 627 | func NewVariantObjv(StrvVar []string, LengthVar int) *Variant { | ||
| 628 | + | core.LazyRegister(&xNewVariantObjv, "GLIB", "g_variant_new_objv", false) | |||
| 629 | + | ||||
| 594 | cret := xNewVariantObjv(StrvVar, LengthVar) | 630 | cret := xNewVariantObjv(StrvVar, LengthVar) | ||
| 595 | if cret == 0 { | 631 | if cret == 0 { | ||
| 596 | return nil | 632 | return nil | ||
| @@ -635,6 +671,8 @@ var xNewVariantParsed func(string, ...interface{}) uintptr | |||||
| 635 | // be anything along the lines of "%*", "%?", "\%r", or anything starting | 671 | // be anything along the lines of "%*", "%?", "\%r", or anything starting | ||
| 636 | // with "%@". | 672 | // with "%@". | ||
| 637 | func NewVariantParsed(FormatVar string, varArgs ...interface{}) *Variant { | 673 | func NewVariantParsed(FormatVar string, varArgs ...interface{}) *Variant { | ||
| 674 | + | core.LazyRegister(&xNewVariantParsed, "GLIB", "g_variant_new_parsed", false) | |||
| 675 | + | ||||
| 638 | cret := xNewVariantParsed(FormatVar, varArgs...) | 676 | cret := xNewVariantParsed(FormatVar, varArgs...) | ||
| 639 | if cret == 0 { | 677 | if cret == 0 { | ||
| 640 | return nil | 678 | return nil | ||
| @@ -666,6 +704,8 @@ var xNewVariantParsedVa func(string, []interface{}) uintptr | |||||
| 666 | // result. This can also be done by adding the result to a container, | 704 | // result. This can also be done by adding the result to a container, | ||
| 667 | // or by passing it to another g_variant_new() call. | 705 | // or by passing it to another g_variant_new() call. | ||
| 668 | func NewVariantParsedVa(FormatVar string, AppVar []interface{}) *Variant { | 706 | func NewVariantParsedVa(FormatVar string, AppVar []interface{}) *Variant { | ||
| 707 | + | core.LazyRegister(&xNewVariantParsedVa, "GLIB", "g_variant_new_parsed_va", false) | |||
| 708 | + | ||||
| 669 | cret := xNewVariantParsedVa(FormatVar, AppVar) | 709 | cret := xNewVariantParsedVa(FormatVar, AppVar) | ||
| 670 | if cret == 0 { | 710 | if cret == 0 { | ||
| 671 | return nil | 711 | return nil | ||
| @@ -681,6 +721,8 @@ var xNewVariantPrintf func(string, ...interface{}) uintptr | |||||
| 681 | // g_variant_new_string() but it saves a temporary variable and an | 721 | // g_variant_new_string() but it saves a temporary variable and an | ||
| 682 | // unnecessary copy. | 722 | // unnecessary copy. | ||
| 683 | func NewVariantPrintf(FormatStringVar string, varArgs ...interface{}) *Variant { | 723 | func NewVariantPrintf(FormatStringVar string, varArgs ...interface{}) *Variant { | ||
| 724 | + | core.LazyRegister(&xNewVariantPrintf, "GLIB", "g_variant_new_printf", false) | |||
| 725 | + | ||||
| 684 | cret := xNewVariantPrintf(FormatStringVar, varArgs...) | 726 | cret := xNewVariantPrintf(FormatStringVar, varArgs...) | ||
| 685 | if cret == 0 { | 727 | if cret == 0 { | ||
| 686 | return nil | 728 | return nil | ||
| @@ -694,6 +736,8 @@ var xNewVariantSignature func(string) uintptr | |||||
| 694 | // @string. @string must be a valid D-Bus type signature. Use | 736 | // @string. @string must be a valid D-Bus type signature. Use | ||
| 695 | // g_variant_is_signature() if you're not sure. | 737 | // g_variant_is_signature() if you're not sure. | ||
| 696 | func NewVariantSignature(SignatureVar string) *Variant { | 738 | func NewVariantSignature(SignatureVar string) *Variant { | ||
| 739 | + | core.LazyRegister(&xNewVariantSignature, "GLIB", "g_variant_new_signature", false) | |||
| 740 | + | ||||
| 697 | cret := xNewVariantSignature(SignatureVar) | 741 | cret := xNewVariantSignature(SignatureVar) | ||
| 698 | if cret == 0 { | 742 | if cret == 0 { | ||
| 699 | return nil | 743 | return nil | ||
| @@ -709,6 +753,8 @@ var xNewVariantString func(string) uintptr | |||||
| 709 | // potentially-%NULL strings, use g_variant_new() with `ms` as the | 753 | // potentially-%NULL strings, use g_variant_new() with `ms` as the | ||
| 710 | // [format string](gvariant-format-strings.html#maybe-types). | 754 | // [format string](gvariant-format-strings.html#maybe-types). | ||
| 711 | func NewVariantString(StringVar string) *Variant { | 755 | func NewVariantString(StringVar string) *Variant { | ||
| 756 | + | core.LazyRegister(&xNewVariantString, "GLIB", "g_variant_new_string", false) | |||
| 757 | + | ||||
| 712 | cret := xNewVariantString(StringVar) | 758 | cret := xNewVariantString(StringVar) | ||
| 713 | if cret == 0 { | 759 | if cret == 0 { | ||
| 714 | return nil | 760 | return nil | ||
| @@ -723,6 +769,8 @@ var xNewVariantStrv func([]string, int) uintptr | |||||
| 723 | // | 769 | // | ||
| 724 | // If @length is -1 then @strv is %NULL-terminated. | 770 | // If @length is -1 then @strv is %NULL-terminated. | ||
| 725 | func NewVariantStrv(StrvVar []string, LengthVar int) *Variant { | 771 | func NewVariantStrv(StrvVar []string, LengthVar int) *Variant { | ||
| 772 | + | core.LazyRegister(&xNewVariantStrv, "GLIB", "g_variant_new_strv", false) | |||
| 773 | + | ||||
| 726 | cret := xNewVariantStrv(StrvVar, LengthVar) | 774 | cret := xNewVariantStrv(StrvVar, LengthVar) | ||
| 727 | if cret == 0 { | 775 | if cret == 0 { | ||
| 728 | return nil | 776 | return nil | ||
| @@ -745,6 +793,8 @@ var xNewVariantTakeString func(string) uintptr | |||||
| 745 | // it to this function. It is even possible that @string is immediately | 793 | // it to this function. It is even possible that @string is immediately | ||
| 746 | // freed. | 794 | // freed. | ||
| 747 | func NewVariantTakeString(StringVar string) *Variant { | 795 | func NewVariantTakeString(StringVar string) *Variant { | ||
| 796 | + | core.LazyRegister(&xNewVariantTakeString, "GLIB", "g_variant_new_take_string", false) | |||
| 797 | + | ||||
| 748 | cret := xNewVariantTakeString(StringVar) | 798 | cret := xNewVariantTakeString(StringVar) | ||
| 749 | if cret == 0 { | 799 | if cret == 0 { | ||
| 750 | return nil | 800 | return nil | ||
| @@ -763,6 +813,8 @@ var xNewVariantTuple func(uintptr, uint) uintptr | |||||
| 763 | // If the @children are floating references (see g_variant_ref_sink()), the | 813 | // If the @children are floating references (see g_variant_ref_sink()), the | ||
| 764 | // new instance takes ownership of them as if via g_variant_ref_sink(). | 814 | // new instance takes ownership of them as if via g_variant_ref_sink(). | ||
| 765 | func NewVariantTuple(ChildrenVar uintptr, NChildrenVar uint) *Variant { | 815 | func NewVariantTuple(ChildrenVar uintptr, NChildrenVar uint) *Variant { | ||
| 816 | + | core.LazyRegister(&xNewVariantTuple, "GLIB", "g_variant_new_tuple", false) | |||
| 817 | + | ||||
| 766 | cret := xNewVariantTuple(ChildrenVar, NChildrenVar) | 818 | cret := xNewVariantTuple(ChildrenVar, NChildrenVar) | ||
| 767 | if cret == 0 { | 819 | if cret == 0 { | ||
| 768 | return nil | 820 | return nil | ||
| @@ -774,6 +826,8 @@ var xNewVariantUint16 func(uint16) uintptr | |||||
| 774 | 826 | ||||
| 775 | // Creates a new uint16 #GVariant instance. | 827 | // Creates a new uint16 #GVariant instance. | ||
| 776 | func NewVariantUint16(ValueVar uint16) *Variant { | 828 | func NewVariantUint16(ValueVar uint16) *Variant { | ||
| 829 | + | core.LazyRegister(&xNewVariantUint16, "GLIB", "g_variant_new_uint16", false) | |||
| 830 | + | ||||
| 777 | cret := xNewVariantUint16(ValueVar) | 831 | cret := xNewVariantUint16(ValueVar) | ||
| 778 | if cret == 0 { | 832 | if cret == 0 { | ||
| 779 | return nil | 833 | return nil | ||
| @@ -785,6 +839,8 @@ var xNewVariantUint32 func(uint32) uintptr | |||||
| 785 | 839 | ||||
| 786 | // Creates a new uint32 #GVariant instance. | 840 | // Creates a new uint32 #GVariant instance. | ||
| 787 | func NewVariantUint32(ValueVar uint32) *Variant { | 841 | func NewVariantUint32(ValueVar uint32) *Variant { | ||
| 842 | + | core.LazyRegister(&xNewVariantUint32, "GLIB", "g_variant_new_uint32", false) | |||
| 843 | + | ||||
| 788 | cret := xNewVariantUint32(ValueVar) | 844 | cret := xNewVariantUint32(ValueVar) | ||
| 789 | if cret == 0 { | 845 | if cret == 0 { | ||
| 790 | return nil | 846 | return nil | ||
| @@ -796,6 +852,8 @@ var xNewVariantUint64 func(uint64) uintptr | |||||
| 796 | 852 | ||||
| 797 | // Creates a new uint64 #GVariant instance. | 853 | // Creates a new uint64 #GVariant instance. | ||
| 798 | func NewVariantUint64(ValueVar uint64) *Variant { | 854 | func NewVariantUint64(ValueVar uint64) *Variant { | ||
| 855 | + | core.LazyRegister(&xNewVariantUint64, "GLIB", "g_variant_new_uint64", false) | |||
| 856 | + | ||||
| 799 | cret := xNewVariantUint64(ValueVar) | 857 | cret := xNewVariantUint64(ValueVar) | ||
| 800 | if cret == 0 { | 858 | if cret == 0 { | ||
| 801 | return nil | 859 | return nil | ||
| @@ -842,6 +900,8 @@ var xNewVariantVa func(string, uintptr, []interface{}) uintptr | |||||
| 842 | // result. This can also be done by adding the result to a container, | 900 | // result. This can also be done by adding the result to a container, | ||
| 843 | // or by passing it to another g_variant_new() call. | 901 | // or by passing it to another g_variant_new() call. | ||
| 844 | func NewVariantVa(FormatStringVar string, EndptrVar *string, AppVar []interface{}) *Variant { | 902 | func NewVariantVa(FormatStringVar string, EndptrVar *string, AppVar []interface{}) *Variant { | ||
| 903 | + | core.LazyRegister(&xNewVariantVa, "GLIB", "g_variant_new_va", false) | |||
| 904 | + | ||||
| 845 | EndptrVarPtr := core.GStrdupNullable(EndptrVar) | 905 | EndptrVarPtr := core.GStrdupNullable(EndptrVar) | ||
| 846 | defer core.GFreeNullable(EndptrVarPtr) | 906 | defer core.GFreeNullable(EndptrVarPtr) | ||
| 847 | 907 | ||||
| @@ -860,6 +920,8 @@ var xNewVariantVariant func(*Variant) uintptr | |||||
| 860 | // If @child is a floating reference (see g_variant_ref_sink()), the new | 920 | // If @child is a floating reference (see g_variant_ref_sink()), the new | ||
| 861 | // instance takes ownership of @child. | 921 | // instance takes ownership of @child. | ||
| 862 | func NewVariantVariant(ValueVar *Variant) *Variant { | 922 | func NewVariantVariant(ValueVar *Variant) *Variant { | ||
| 923 | + | core.LazyRegister(&xNewVariantVariant, "GLIB", "g_variant_new_variant", false) | |||
| 924 | + | ||||
| 863 | cret := xNewVariantVariant(ValueVar) | 925 | cret := xNewVariantVariant(ValueVar) | ||
| 864 | if cret == 0 { | 926 | if cret == 0 { | ||
| 865 | return nil | 927 | return nil | ||
| @@ -887,6 +949,8 @@ var xVariantByteswap func(uintptr) uintptr | |||||
| 887 | // The returned value is always in normal form and is marked as trusted. | 949 | // The returned value is always in normal form and is marked as trusted. | ||
| 888 | // A full, not floating, reference is returned. | 950 | // A full, not floating, reference is returned. | ||
| 889 | func (x *Variant) Byteswap() *Variant { | 951 | func (x *Variant) Byteswap() *Variant { | ||
| 952 | + | core.LazyRegister(&xVariantByteswap, "GLIB", "g_variant_byteswap", false) | |||
| 953 | + | ||||
| 890 | cret := xVariantByteswap(x.GoPointer()) | 954 | cret := xVariantByteswap(x.GoPointer()) | ||
| 891 | if cret == 0 { | 955 | if cret == 0 { | ||
| 892 | return nil | 956 | return nil | ||
| @@ -911,6 +975,8 @@ var xVariantCheckFormatString func(uintptr, string, bool) bool | |||||
| 911 | // varargs accessors to #GVariant values of uncertain values (eg: | 975 | // varargs accessors to #GVariant values of uncertain values (eg: | ||
| 912 | // g_variant_lookup() or g_menu_model_get_item_attribute()). | 976 | // g_variant_lookup() or g_menu_model_get_item_attribute()). | ||
| 913 | func (x *Variant) CheckFormatString(FormatStringVar string, CopyOnlyVar bool) bool { | 977 | func (x *Variant) CheckFormatString(FormatStringVar string, CopyOnlyVar bool) bool { | ||
| 978 | + | core.LazyRegister(&xVariantCheckFormatString, "GLIB", "g_variant_check_format_string", false) | |||
| 979 | + | ||||
| 914 | cret := xVariantCheckFormatString(x.GoPointer(), FormatStringVar, CopyOnlyVar) | 980 | cret := xVariantCheckFormatString(x.GoPointer(), FormatStringVar, CopyOnlyVar) | ||
| 915 | return cret | 981 | return cret | ||
| 916 | } | 982 | } | ||
| @@ -919,6 +985,8 @@ var xVariantClassify func(uintptr) VariantClass | |||||
| 919 | 985 | ||||
| 920 | // Classifies @value according to its top-level type. | 986 | // Classifies @value according to its top-level type. | ||
| 921 | func (x *Variant) Classify() VariantClass { | 987 | func (x *Variant) Classify() VariantClass { | ||
| 988 | + | core.LazyRegister(&xVariantClassify, "GLIB", "g_variant_classify", false) | |||
| 989 | + | ||||
| 922 | cret := xVariantClassify(x.GoPointer()) | 990 | cret := xVariantClassify(x.GoPointer()) | ||
| 923 | return cret | 991 | return cret | ||
| 924 | } | 992 | } | ||
| @@ -945,6 +1013,8 @@ var xVariantCompare func(uintptr, uintptr) int | |||||
| 945 | // If you only require an equality comparison, g_variant_equal() is more | 1013 | // If you only require an equality comparison, g_variant_equal() is more | ||
| 946 | // general. | 1014 | // general. | ||
| 947 | func (x *Variant) Compare(TwoVar uintptr) int { | 1015 | func (x *Variant) Compare(TwoVar uintptr) int { | ||
| 1016 | + | core.LazyRegister(&xVariantCompare, "GLIB", "g_variant_compare", false) | |||
| 1017 | + | ||||
| 948 | cret := xVariantCompare(x.GoPointer(), TwoVar) | 1018 | cret := xVariantCompare(x.GoPointer(), TwoVar) | ||
| 949 | return cret | 1019 | return cret | ||
| 950 | } | 1020 | } | ||
| @@ -956,6 +1026,8 @@ var xVariantDupBytestring func(uintptr, *uint) uintptr | |||||
| 956 | // | 1026 | // | ||
| 957 | // The return value must be freed using g_free(). | 1027 | // The return value must be freed using g_free(). | ||
| 958 | func (x *Variant) DupBytestring(LengthVar *uint) uintptr { | 1028 | func (x *Variant) DupBytestring(LengthVar *uint) uintptr { | ||
| 1029 | + | core.LazyRegister(&xVariantDupBytestring, "GLIB", "g_variant_dup_bytestring", false) | |||
| 1030 | + | ||||
| 959 | cret := xVariantDupBytestring(x.GoPointer(), LengthVar) | 1031 | cret := xVariantDupBytestring(x.GoPointer(), LengthVar) | ||
| 960 | return cret | 1032 | return cret | ||
| 961 | } | 1033 | } | ||
| @@ -973,6 +1045,8 @@ var xVariantDupBytestringArray func(uintptr, *uint) []string | |||||
| 973 | // For an empty array, @length will be set to 0 and a pointer to a | 1045 | // For an empty array, @length will be set to 0 and a pointer to a | ||
| 974 | // %NULL pointer will be returned. | 1046 | // %NULL pointer will be returned. | ||
| 975 | func (x *Variant) DupBytestringArray(LengthVar *uint) []string { | 1047 | func (x *Variant) DupBytestringArray(LengthVar *uint) []string { | ||
| 1048 | + | core.LazyRegister(&xVariantDupBytestringArray, "GLIB", "g_variant_dup_bytestring_array", false) | |||
| 1049 | + | ||||
| 976 | cret := xVariantDupBytestringArray(x.GoPointer(), LengthVar) | 1050 | cret := xVariantDupBytestringArray(x.GoPointer(), LengthVar) | ||
| 977 | return cret | 1051 | return cret | ||
| 978 | } | 1052 | } | ||
| @@ -990,6 +1064,8 @@ var xVariantDupObjv func(uintptr, *uint) []string | |||||
| 990 | // For an empty array, @length will be set to 0 and a pointer to a | 1064 | // For an empty array, @length will be set to 0 and a pointer to a | ||
| 991 | // %NULL pointer will be returned. | 1065 | // %NULL pointer will be returned. | ||
| 992 | func (x *Variant) DupObjv(LengthVar *uint) []string { | 1066 | func (x *Variant) DupObjv(LengthVar *uint) []string { | ||
| 1067 | + | core.LazyRegister(&xVariantDupObjv, "GLIB", "g_variant_dup_objv", false) | |||
| 1068 | + | ||||
| 993 | cret := xVariantDupObjv(x.GoPointer(), LengthVar) | 1069 | cret := xVariantDupObjv(x.GoPointer(), LengthVar) | ||
| 994 | return cret | 1070 | return cret | ||
| 995 | } | 1071 | } | ||
| @@ -1003,6 +1079,8 @@ var xVariantDupString func(uintptr, *uint) string | |||||
| 1003 | // | 1079 | // | ||
| 1004 | // The return value must be freed using g_free(). | 1080 | // The return value must be freed using g_free(). | ||
| 1005 | func (x *Variant) DupString(LengthVar *uint) string { | 1081 | func (x *Variant) DupString(LengthVar *uint) string { | ||
| 1082 | + | core.LazyRegister(&xVariantDupString, "GLIB", "g_variant_dup_string", false) | |||
| 1083 | + | ||||
| 1006 | cret := xVariantDupString(x.GoPointer(), LengthVar) | 1084 | cret := xVariantDupString(x.GoPointer(), LengthVar) | ||
| 1007 | return cret | 1085 | return cret | ||
| 1008 | } | 1086 | } | ||
| @@ -1020,6 +1098,8 @@ var xVariantDupStrv func(uintptr, *uint) []string | |||||
| 1020 | // For an empty array, @length will be set to 0 and a pointer to a | 1098 | // For an empty array, @length will be set to 0 and a pointer to a | ||
| 1021 | // %NULL pointer will be returned. | 1099 | // %NULL pointer will be returned. | ||
| 1022 | func (x *Variant) DupStrv(LengthVar *uint) []string { | 1100 | func (x *Variant) DupStrv(LengthVar *uint) []string { | ||
| 1101 | + | core.LazyRegister(&xVariantDupStrv, "GLIB", "g_variant_dup_strv", false) | |||
| 1102 | + | ||||
| 1023 | cret := xVariantDupStrv(x.GoPointer(), LengthVar) | 1103 | cret := xVariantDupStrv(x.GoPointer(), LengthVar) | ||
| 1024 | return cret | 1104 | return cret | ||
| 1025 | } | 1105 | } | ||
| @@ -1031,6 +1111,8 @@ var xVariantEqual func(uintptr, uintptr) bool | |||||
| 1031 | // The types of @one and @two are #gconstpointer only to allow use of | 1111 | // The types of @one and @two are #gconstpointer only to allow use of | ||
| 1032 | // this function with #GHashTable. They must each be a #GVariant. | 1112 | // this function with #GHashTable. They must each be a #GVariant. | ||
| 1033 | func (x *Variant) Equal(TwoVar uintptr) bool { | 1113 | func (x *Variant) Equal(TwoVar uintptr) bool { | ||
| 1114 | + | core.LazyRegister(&xVariantEqual, "GLIB", "g_variant_equal", false) | |||
| 1115 | + | ||||
| 1034 | cret := xVariantEqual(x.GoPointer(), TwoVar) | 1116 | cret := xVariantEqual(x.GoPointer(), TwoVar) | ||
| 1035 | return cret | 1117 | return cret | ||
| 1036 | } | 1118 | } | ||
| @@ -1054,6 +1136,8 @@ var xVariantGet func(uintptr, string, ...interface{}) | |||||
| 1054 | // see the section on | 1136 | // see the section on | ||
| 1055 | // [`GVariant` format strings](gvariant-format-strings.html#pointers). | 1137 | // [`GVariant` format strings](gvariant-format-strings.html#pointers). | ||
| 1056 | func (x *Variant) Get(FormatStringVar string, varArgs ...interface{}) { | 1138 | func (x *Variant) Get(FormatStringVar string, varArgs ...interface{}) { | ||
| 1139 | + | core.LazyRegister(&xVariantGet, "GLIB", "g_variant_get", false) | |||
| 1140 | + | ||||
| 1057 | xVariantGet(x.GoPointer(), FormatStringVar, varArgs...) | 1141 | xVariantGet(x.GoPointer(), FormatStringVar, varArgs...) | ||
| 1058 | } | 1142 | } | ||
| 1059 | 1143 | ||||
| @@ -1064,6 +1148,8 @@ var xVariantGetBoolean func(uintptr) bool | |||||
| 1064 | // It is an error to call this function with a @value of any type | 1148 | // It is an error to call this function with a @value of any type | ||
| 1065 | // other than %G_VARIANT_TYPE_BOOLEAN. | 1149 | // other than %G_VARIANT_TYPE_BOOLEAN. | ||
| 1066 | func (x *Variant) GetBoolean() bool { | 1150 | func (x *Variant) GetBoolean() bool { | ||
| 1151 | + | core.LazyRegister(&xVariantGetBoolean, "GLIB", "g_variant_get_boolean", false) | |||
| 1152 | + | ||||
| 1067 | cret := xVariantGetBoolean(x.GoPointer()) | 1153 | cret := xVariantGetBoolean(x.GoPointer()) | ||
| 1068 | return cret | 1154 | return cret | ||
| 1069 | } | 1155 | } | ||
| @@ -1075,6 +1161,8 @@ var xVariantGetByte func(uintptr) byte | |||||
| 1075 | // It is an error to call this function with a @value of any type | 1161 | // It is an error to call this function with a @value of any type | ||
| 1076 | // other than %G_VARIANT_TYPE_BYTE. | 1162 | // other than %G_VARIANT_TYPE_BYTE. | ||
| 1077 | func (x *Variant) GetByte() byte { | 1163 | func (x *Variant) GetByte() byte { | ||
| 1164 | + | core.LazyRegister(&xVariantGetByte, "GLIB", "g_variant_get_byte", false) | |||
| 1165 | + | ||||
| 1078 | cret := xVariantGetByte(x.GoPointer()) | 1166 | cret := xVariantGetByte(x.GoPointer()) | ||
| 1079 | return cret | 1167 | return cret | ||
| 1080 | } | 1168 | } | ||
| @@ -1100,6 +1188,8 @@ var xVariantGetBytestring func(uintptr) uintptr | |||||
| 1100 | // | 1188 | // | ||
| 1101 | // The return value remains valid as long as @value exists. | 1189 | // The return value remains valid as long as @value exists. | ||
| 1102 | func (x *Variant) GetBytestring() uintptr { | 1190 | func (x *Variant) GetBytestring() uintptr { | ||
| 1191 | + | core.LazyRegister(&xVariantGetBytestring, "GLIB", "g_variant_get_bytestring", false) | |||
| 1192 | + | ||||
| 1103 | cret := xVariantGetBytestring(x.GoPointer()) | 1193 | cret := xVariantGetBytestring(x.GoPointer()) | ||
| 1104 | return cret | 1194 | return cret | ||
| 1105 | } | 1195 | } | ||
| @@ -1117,6 +1207,8 @@ var xVariantGetBytestringArray func(uintptr, *uint) []string | |||||
| 1117 | // For an empty array, @length will be set to 0 and a pointer to a | 1207 | // For an empty array, @length will be set to 0 and a pointer to a | ||
| 1118 | // %NULL pointer will be returned. | 1208 | // %NULL pointer will be returned. | ||
| 1119 | func (x *Variant) GetBytestringArray(LengthVar *uint) []string { | 1209 | func (x *Variant) GetBytestringArray(LengthVar *uint) []string { | ||
| 1210 | + | core.LazyRegister(&xVariantGetBytestringArray, "GLIB", "g_variant_get_bytestring_array", false) | |||
| 1211 | + | ||||
| 1120 | cret := xVariantGetBytestringArray(x.GoPointer(), LengthVar) | 1212 | cret := xVariantGetBytestringArray(x.GoPointer(), LengthVar) | ||
| 1121 | return cret | 1213 | return cret | ||
| 1122 | } | 1214 | } | ||
| @@ -1133,6 +1225,8 @@ var xVariantGetChild func(uintptr, uint, string, ...interface{}) | |||||
| 1133 | // see the section on | 1225 | // see the section on | ||
| 1134 | // [`GVariant` format strings](gvariant-format-strings.html#pointers). | 1226 | // [`GVariant` format strings](gvariant-format-strings.html#pointers). | ||
| 1135 | func (x *Variant) GetChild(IndexVar uint, FormatStringVar string, varArgs ...interface{}) { | 1227 | func (x *Variant) GetChild(IndexVar uint, FormatStringVar string, varArgs ...interface{}) { | ||
| 1228 | + | core.LazyRegister(&xVariantGetChild, "GLIB", "g_variant_get_child", false) | |||
| 1229 | + | ||||
| 1136 | xVariantGetChild(x.GoPointer(), IndexVar, FormatStringVar, varArgs...) | 1230 | xVariantGetChild(x.GoPointer(), IndexVar, FormatStringVar, varArgs...) | ||
| 1137 | } | 1231 | } | ||
| 1138 | 1232 | ||||
| @@ -1162,6 +1256,8 @@ var xVariantGetChildValue func(uintptr, uint) uintptr | |||||
| 1162 | // | 1256 | // | ||
| 1163 | // This function is O(1). | 1257 | // This function is O(1). | ||
| 1164 | func (x *Variant) GetChildValue(IndexVar uint) *Variant { | 1258 | func (x *Variant) GetChildValue(IndexVar uint) *Variant { | ||
| 1259 | + | core.LazyRegister(&xVariantGetChildValue, "GLIB", "g_variant_get_child_value", false) | |||
| 1260 | + | ||||
| 1165 | cret := xVariantGetChildValue(x.GoPointer(), IndexVar) | 1261 | cret := xVariantGetChildValue(x.GoPointer(), IndexVar) | ||
| 1166 | if cret == 0 { | 1262 | if cret == 0 { | ||
| 1167 | return nil | 1263 | return nil | ||
| @@ -1197,6 +1293,8 @@ var xVariantGetData func(uintptr) uintptr | |||||
| 1197 | // explicitly (by storing the type and/or endianness in addition to the | 1293 | // explicitly (by storing the type and/or endianness in addition to the | ||
| 1198 | // serialized data). | 1294 | // serialized data). | ||
| 1199 | func (x *Variant) GetData() uintptr { | 1295 | func (x *Variant) GetData() uintptr { | ||
| 1296 | + | core.LazyRegister(&xVariantGetData, "GLIB", "g_variant_get_data", false) | |||
| 1297 | + | ||||
| 1200 | cret := xVariantGetData(x.GoPointer()) | 1298 | cret := xVariantGetData(x.GoPointer()) | ||
| 1201 | return cret | 1299 | return cret | ||
| 1202 | } | 1300 | } | ||
| @@ -1208,6 +1306,8 @@ var xVariantGetDataAsBytes func(uintptr) uintptr | |||||
| 1208 | // g_variant_get_data(), except that the returned #GBytes holds | 1306 | // g_variant_get_data(), except that the returned #GBytes holds | ||
| 1209 | // a reference to the variant data. | 1307 | // a reference to the variant data. | ||
| 1210 | func (x *Variant) GetDataAsBytes() *Bytes { | 1308 | func (x *Variant) GetDataAsBytes() *Bytes { | ||
| 1309 | + | core.LazyRegister(&xVariantGetDataAsBytes, "GLIB", "g_variant_get_data_as_bytes", false) | |||
| 1310 | + | ||||
| 1211 | cret := xVariantGetDataAsBytes(x.GoPointer()) | 1311 | cret := xVariantGetDataAsBytes(x.GoPointer()) | ||
| 1212 | if cret == 0 { | 1312 | if cret == 0 { | ||
| 1213 | return nil | 1313 | return nil | ||
| @@ -1222,6 +1322,8 @@ var xVariantGetDouble func(uintptr) float64 | |||||
| 1222 | // It is an error to call this function with a @value of any type | 1322 | // It is an error to call this function with a @value of any type | ||
| 1223 | // other than %G_VARIANT_TYPE_DOUBLE. | 1323 | // other than %G_VARIANT_TYPE_DOUBLE. | ||
| 1224 | func (x *Variant) GetDouble() float64 { | 1324 | func (x *Variant) GetDouble() float64 { | ||
| 1325 | + | core.LazyRegister(&xVariantGetDouble, "GLIB", "g_variant_get_double", false) | |||
| 1326 | + | ||||
| 1225 | cret := xVariantGetDouble(x.GoPointer()) | 1327 | cret := xVariantGetDouble(x.GoPointer()) | ||
| 1226 | return cret | 1328 | return cret | ||
| 1227 | } | 1329 | } | ||
| @@ -1255,6 +1357,8 @@ var xVariantGetFixedArray func(uintptr, *uint, uint) uintptr | |||||
| 1255 | // @n_elements, which must be non-%NULL, is set equal to the number of | 1357 | // @n_elements, which must be non-%NULL, is set equal to the number of | ||
| 1256 | // items in the array. | 1358 | // items in the array. | ||
| 1257 | func (x *Variant) GetFixedArray(NElementsVar *uint, ElementSizeVar uint) uintptr { | 1359 | func (x *Variant) GetFixedArray(NElementsVar *uint, ElementSizeVar uint) uintptr { | ||
| 1360 | + | core.LazyRegister(&xVariantGetFixedArray, "GLIB", "g_variant_get_fixed_array", false) | |||
| 1361 | + | ||||
| 1258 | cret := xVariantGetFixedArray(x.GoPointer(), NElementsVar, ElementSizeVar) | 1362 | cret := xVariantGetFixedArray(x.GoPointer(), NElementsVar, ElementSizeVar) | ||
| 1259 | return cret | 1363 | return cret | ||
| 1260 | } | 1364 | } | ||
| @@ -1270,6 +1374,8 @@ var xVariantGetHandle func(uintptr) int32 | |||||
| 1270 | // that are sent alongside a D-Bus message. If you're not interacting | 1374 | // that are sent alongside a D-Bus message. If you're not interacting | ||
| 1271 | // with D-Bus, you probably don't need them. | 1375 | // with D-Bus, you probably don't need them. | ||
| 1272 | func (x *Variant) GetHandle() int32 { | 1376 | func (x *Variant) GetHandle() int32 { | ||
| 1377 | + | core.LazyRegister(&xVariantGetHandle, "GLIB", "g_variant_get_handle", false) | |||
| 1378 | + | ||||
| 1273 | cret := xVariantGetHandle(x.GoPointer()) | 1379 | cret := xVariantGetHandle(x.GoPointer()) | ||
| 1274 | return cret | 1380 | return cret | ||
| 1275 | } | 1381 | } | ||
| @@ -1281,6 +1387,8 @@ var xVariantGetInt16 func(uintptr) int16 | |||||
| 1281 | // It is an error to call this function with a @value of any type | 1387 | // It is an error to call this function with a @value of any type | ||
| 1282 | // other than %G_VARIANT_TYPE_INT16. | 1388 | // other than %G_VARIANT_TYPE_INT16. | ||
| 1283 | func (x *Variant) GetInt16() int16 { | 1389 | func (x *Variant) GetInt16() int16 { | ||
| 1390 | + | core.LazyRegister(&xVariantGetInt16, "GLIB", "g_variant_get_int16", false) | |||
| 1391 | + | ||||
| 1284 | cret := xVariantGetInt16(x.GoPointer()) | 1392 | cret := xVariantGetInt16(x.GoPointer()) | ||
| 1285 | return cret | 1393 | return cret | ||
| 1286 | } | 1394 | } | ||
| @@ -1292,6 +1400,8 @@ var xVariantGetInt32 func(uintptr) int32 | |||||
| 1292 | // It is an error to call this function with a @value of any type | 1400 | // It is an error to call this function with a @value of any type | ||
| 1293 | // other than %G_VARIANT_TYPE_INT32. | 1401 | // other than %G_VARIANT_TYPE_INT32. | ||
| 1294 | func (x *Variant) GetInt32() int32 { | 1402 | func (x *Variant) GetInt32() int32 { | ||
| 1403 | + | core.LazyRegister(&xVariantGetInt32, "GLIB", "g_variant_get_int32", false) | |||
| 1404 | + | ||||
| 1295 | cret := xVariantGetInt32(x.GoPointer()) | 1405 | cret := xVariantGetInt32(x.GoPointer()) | ||
| 1296 | return cret | 1406 | return cret | ||
| 1297 | } | 1407 | } | ||
| @@ -1303,6 +1413,8 @@ var xVariantGetInt64 func(uintptr) int64 | |||||
| 1303 | // It is an error to call this function with a @value of any type | 1413 | // It is an error to call this function with a @value of any type | ||
| 1304 | // other than %G_VARIANT_TYPE_INT64. | 1414 | // other than %G_VARIANT_TYPE_INT64. | ||
| 1305 | func (x *Variant) GetInt64() int64 { | 1415 | func (x *Variant) GetInt64() int64 { | ||
| 1416 | + | core.LazyRegister(&xVariantGetInt64, "GLIB", "g_variant_get_int64", false) | |||
| 1417 | + | ||||
| 1306 | cret := xVariantGetInt64(x.GoPointer()) | 1418 | cret := xVariantGetInt64(x.GoPointer()) | ||
| 1307 | return cret | 1419 | return cret | ||
| 1308 | } | 1420 | } | ||
| @@ -1312,6 +1424,8 @@ var xVariantGetMaybe func(uintptr) uintptr | |||||
| 1312 | // Given a maybe-typed #GVariant instance, extract its value. If the | 1424 | // Given a maybe-typed #GVariant instance, extract its value. If the | ||
| 1313 | // value is Nothing, then this function returns %NULL. | 1425 | // value is Nothing, then this function returns %NULL. | ||
| 1314 | func (x *Variant) GetMaybe() *Variant { | 1426 | func (x *Variant) GetMaybe() *Variant { | ||
| 1427 | + | core.LazyRegister(&xVariantGetMaybe, "GLIB", "g_variant_get_maybe", false) | |||
| 1428 | + | ||||
| 1315 | cret := xVariantGetMaybe(x.GoPointer()) | 1429 | cret := xVariantGetMaybe(x.GoPointer()) | ||
| 1316 | if cret == 0 { | 1430 | if cret == 0 { | ||
| 1317 | return nil | 1431 | return nil | ||
| @@ -1347,6 +1461,8 @@ var xVariantGetNormalForm func(uintptr) uintptr | |||||
| 1347 | // value from this function to guarantee ownership of a single non-floating | 1461 | // value from this function to guarantee ownership of a single non-floating | ||
| 1348 | // reference to it. | 1462 | // reference to it. | ||
| 1349 | func (x *Variant) GetNormalForm() *Variant { | 1463 | func (x *Variant) GetNormalForm() *Variant { | ||
| 1464 | + | core.LazyRegister(&xVariantGetNormalForm, "GLIB", "g_variant_get_normal_form", false) | |||
| 1465 | + | ||||
| 1350 | cret := xVariantGetNormalForm(x.GoPointer()) | 1466 | cret := xVariantGetNormalForm(x.GoPointer()) | ||
| 1351 | if cret == 0 { | 1467 | if cret == 0 { | ||
| 1352 | return nil | 1468 | return nil | ||
| @@ -1367,6 +1483,8 @@ var xVariantGetObjv func(uintptr, *uint) []string | |||||
| 1367 | // For an empty array, @length will be set to 0 and a pointer to a | 1483 | // For an empty array, @length will be set to 0 and a pointer to a | ||
| 1368 | // %NULL pointer will be returned. | 1484 | // %NULL pointer will be returned. | ||
| 1369 | func (x *Variant) GetObjv(LengthVar *uint) []string { | 1485 | func (x *Variant) GetObjv(LengthVar *uint) []string { | ||
| 1486 | + | core.LazyRegister(&xVariantGetObjv, "GLIB", "g_variant_get_objv", false) | |||
| 1487 | + | ||||
| 1370 | cret := xVariantGetObjv(x.GoPointer(), LengthVar) | 1488 | cret := xVariantGetObjv(x.GoPointer(), LengthVar) | ||
| 1371 | return cret | 1489 | return cret | ||
| 1372 | } | 1490 | } | ||
| @@ -1385,6 +1503,8 @@ var xVariantGetSize func(uintptr) uint | |||||
| 1385 | // operation which is approximately O(n) in the number of values | 1503 | // operation which is approximately O(n) in the number of values | ||
| 1386 | // involved. | 1504 | // involved. | ||
| 1387 | func (x *Variant) GetSize() uint { | 1505 | func (x *Variant) GetSize() uint { | ||
| 1506 | + | core.LazyRegister(&xVariantGetSize, "GLIB", "g_variant_get_size", false) | |||
| 1507 | + | ||||
| 1388 | cret := xVariantGetSize(x.GoPointer()) | 1508 | cret := xVariantGetSize(x.GoPointer()) | ||
| 1389 | return cret | 1509 | return cret | ||
| 1390 | } | 1510 | } | ||
| @@ -1410,6 +1530,8 @@ var xVariantGetString func(uintptr, *uint) string | |||||
| 1410 | // | 1530 | // | ||
| 1411 | // The return value remains valid as long as @value exists. | 1531 | // The return value remains valid as long as @value exists. | ||
| 1412 | func (x *Variant) GetString(LengthVar *uint) string { | 1532 | func (x *Variant) GetString(LengthVar *uint) string { | ||
| 1533 | + | core.LazyRegister(&xVariantGetString, "GLIB", "g_variant_get_string", false) | |||
| 1534 | + | ||||
| 1413 | cret := xVariantGetString(x.GoPointer(), LengthVar) | 1535 | cret := xVariantGetString(x.GoPointer(), LengthVar) | ||
| 1414 | return cret | 1536 | return cret | ||
| 1415 | } | 1537 | } | ||
| @@ -1427,6 +1549,8 @@ var xVariantGetStrv func(uintptr, *uint) []string | |||||
| 1427 | // For an empty array, @length will be set to 0 and a pointer to a | 1549 | // For an empty array, @length will be set to 0 and a pointer to a | ||
| 1428 | // %NULL pointer will be returned. | 1550 | // %NULL pointer will be returned. | ||
| 1429 | func (x *Variant) GetStrv(LengthVar *uint) []string { | 1551 | func (x *Variant) GetStrv(LengthVar *uint) []string { | ||
| 1552 | + | core.LazyRegister(&xVariantGetStrv, "GLIB", "g_variant_get_strv", false) | |||
| 1553 | + | ||||
| 1430 | cret := xVariantGetStrv(x.GoPointer(), LengthVar) | 1554 | cret := xVariantGetStrv(x.GoPointer(), LengthVar) | ||
| 1431 | return cret | 1555 | return cret | ||
| 1432 | } | 1556 | } | ||
| @@ -1438,6 +1562,8 @@ var xVariantGetType func(uintptr) uintptr | |||||
| 1438 | // The return value is valid for the lifetime of @value and must not | 1562 | // The return value is valid for the lifetime of @value and must not | ||
| 1439 | // be freed. | 1563 | // be freed. | ||
| 1440 | func (x *Variant) GetType() *VariantType { | 1564 | func (x *Variant) GetType() *VariantType { | ||
| 1565 | + | core.LazyRegister(&xVariantGetType, "GLIB", "g_variant_get_type", false) | |||
| 1566 | + | ||||
| 1441 | cret := xVariantGetType(x.GoPointer()) | 1567 | cret := xVariantGetType(x.GoPointer()) | ||
| 1442 | if cret == 0 { | 1568 | if cret == 0 { | ||
| 1443 | return nil | 1569 | return nil | ||
| @@ -1451,6 +1577,8 @@ var xVariantGetTypeString func(uintptr) string | |||||
| 1451 | // g_variant_type_peek_string(), this string is nul-terminated. This | 1577 | // g_variant_type_peek_string(), this string is nul-terminated. This | ||
| 1452 | // string belongs to #GVariant and must not be freed. | 1578 | // string belongs to #GVariant and must not be freed. | ||
| 1453 | func (x *Variant) GetTypeString() string { | 1579 | func (x *Variant) GetTypeString() string { | ||
| 1580 | + | core.LazyRegister(&xVariantGetTypeString, "GLIB", "g_variant_get_type_string", false) | |||
| 1581 | + | ||||
| 1454 | cret := xVariantGetTypeString(x.GoPointer()) | 1582 | cret := xVariantGetTypeString(x.GoPointer()) | ||
| 1455 | return cret | 1583 | return cret | ||
| 1456 | } | 1584 | } | ||
| @@ -1462,6 +1590,8 @@ var xVariantGetUint16 func(uintptr) uint16 | |||||
| 1462 | // It is an error to call this function with a @value of any type | 1590 | // It is an error to call this function with a @value of any type | ||
| 1463 | // other than %G_VARIANT_TYPE_UINT16. | 1591 | // other than %G_VARIANT_TYPE_UINT16. | ||
| 1464 | func (x *Variant) GetUint16() uint16 { | 1592 | func (x *Variant) GetUint16() uint16 { | ||
| 1593 | + | core.LazyRegister(&xVariantGetUint16, "GLIB", "g_variant_get_uint16", false) | |||
| 1594 | + | ||||
| 1465 | cret := xVariantGetUint16(x.GoPointer()) | 1595 | cret := xVariantGetUint16(x.GoPointer()) | ||
| 1466 | return cret | 1596 | return cret | ||
| 1467 | } | 1597 | } | ||
| @@ -1473,6 +1603,8 @@ var xVariantGetUint32 func(uintptr) uint32 | |||||
| 1473 | // It is an error to call this function with a @value of any type | 1603 | // It is an error to call this function with a @value of any type | ||
| 1474 | // other than %G_VARIANT_TYPE_UINT32. | 1604 | // other than %G_VARIANT_TYPE_UINT32. | ||
| 1475 | func (x *Variant) GetUint32() uint32 { | 1605 | func (x *Variant) GetUint32() uint32 { | ||
| 1606 | + | core.LazyRegister(&xVariantGetUint32, "GLIB", "g_variant_get_uint32", false) | |||
| 1607 | + | ||||
| 1476 | cret := xVariantGetUint32(x.GoPointer()) | 1608 | cret := xVariantGetUint32(x.GoPointer()) | ||
| 1477 | return cret | 1609 | return cret | ||
| 1478 | } | 1610 | } | ||
| @@ -1484,6 +1616,8 @@ var xVariantGetUint64 func(uintptr) uint64 | |||||
| 1484 | // It is an error to call this function with a @value of any type | 1616 | // It is an error to call this function with a @value of any type | ||
| 1485 | // other than %G_VARIANT_TYPE_UINT64. | 1617 | // other than %G_VARIANT_TYPE_UINT64. | ||
| 1486 | func (x *Variant) GetUint64() uint64 { | 1618 | func (x *Variant) GetUint64() uint64 { | ||
| 1619 | + | core.LazyRegister(&xVariantGetUint64, "GLIB", "g_variant_get_uint64", false) | |||
| 1620 | + | ||||
| 1487 | cret := xVariantGetUint64(x.GoPointer()) | 1621 | cret := xVariantGetUint64(x.GoPointer()) | ||
| 1488 | return cret | 1622 | return cret | ||
| 1489 | } | 1623 | } | ||
| @@ -1515,6 +1649,8 @@ var xVariantGetVa func(uintptr, string, uintptr, []interface{}) | |||||
| 1515 | // see the section on | 1649 | // see the section on | ||
| 1516 | // [`GVariant` format strings](gvariant-format-strings.html#pointers). | 1650 | // [`GVariant` format strings](gvariant-format-strings.html#pointers). | ||
| 1517 | func (x *Variant) GetVa(FormatStringVar string, EndptrVar *string, AppVar []interface{}) { | 1651 | func (x *Variant) GetVa(FormatStringVar string, EndptrVar *string, AppVar []interface{}) { | ||
| 1652 | + | core.LazyRegister(&xVariantGetVa, "GLIB", "g_variant_get_va", false) | |||
| 1653 | + | ||||
| 1518 | EndptrVarPtr := core.GStrdupNullable(EndptrVar) | 1654 | EndptrVarPtr := core.GStrdupNullable(EndptrVar) | ||
| 1519 | defer core.GFreeNullable(EndptrVarPtr) | 1655 | defer core.GFreeNullable(EndptrVarPtr) | ||
| 1520 | 1656 | ||||
| @@ -1526,6 +1662,8 @@ var xVariantGetVariant func(uintptr) uintptr | |||||
| 1526 | // Unboxes @value. The result is the #GVariant instance that was | 1662 | // Unboxes @value. The result is the #GVariant instance that was | ||
| 1527 | // contained in @value. | 1663 | // contained in @value. | ||
| 1528 | func (x *Variant) GetVariant() *Variant { | 1664 | func (x *Variant) GetVariant() *Variant { | ||
| 1665 | + | core.LazyRegister(&xVariantGetVariant, "GLIB", "g_variant_get_variant", false) | |||
| 1666 | + | ||||
| 1529 | cret := xVariantGetVariant(x.GoPointer()) | 1667 | cret := xVariantGetVariant(x.GoPointer()) | ||
| 1530 | if cret == 0 { | 1668 | if cret == 0 { | ||
| 1531 | return nil | 1669 | return nil | ||
| @@ -1545,6 +1683,8 @@ var xVariantHash func(uintptr) uint | |||||
| 1545 | // The type of @value is #gconstpointer only to allow use of this | 1683 | // The type of @value is #gconstpointer only to allow use of this | ||
| 1546 | // function with #GHashTable. @value must be a #GVariant. | 1684 | // function with #GHashTable. @value must be a #GVariant. | ||
| 1547 | func (x *Variant) Hash() uint { | 1685 | func (x *Variant) Hash() uint { | ||
| 1686 | + | core.LazyRegister(&xVariantHash, "GLIB", "g_variant_hash", false) | |||
| 1687 | + | ||||
| 1548 | cret := xVariantHash(x.GoPointer()) | 1688 | cret := xVariantHash(x.GoPointer()) | ||
| 1549 | return cret | 1689 | return cret | ||
| 1550 | } | 1690 | } | ||
| @@ -1553,6 +1693,8 @@ var xVariantIsContainer func(uintptr) bool | |||||
| 1553 | 1693 | ||||
| 1554 | // Checks if @value is a container. | 1694 | // Checks if @value is a container. | ||
| 1555 | func (x *Variant) IsContainer() bool { | 1695 | func (x *Variant) IsContainer() bool { | ||
| 1696 | + | core.LazyRegister(&xVariantIsContainer, "GLIB", "g_variant_is_container", false) | |||
| 1697 | + | ||||
| 1556 | cret := xVariantIsContainer(x.GoPointer()) | 1698 | cret := xVariantIsContainer(x.GoPointer()) | ||
| 1557 | return cret | 1699 | return cret | ||
| 1558 | } | 1700 | } | ||
| @@ -1569,6 +1711,8 @@ var xVariantIsFloating func(uintptr) bool | |||||
| 1569 | // See g_variant_ref_sink() for more information about floating reference | 1711 | // See g_variant_ref_sink() for more information about floating reference | ||
| 1570 | // counts. | 1712 | // counts. | ||
| 1571 | func (x *Variant) IsFloating() bool { | 1713 | func (x *Variant) IsFloating() bool { | ||
| 1714 | + | core.LazyRegister(&xVariantIsFloating, "GLIB", "g_variant_is_floating", false) | |||
| 1715 | + | ||||
| 1572 | cret := xVariantIsFloating(x.GoPointer()) | 1716 | cret := xVariantIsFloating(x.GoPointer()) | ||
| 1573 | return cret | 1717 | return cret | ||
| 1574 | } | 1718 | } | ||
| @@ -1589,6 +1733,8 @@ var xVariantIsNormalForm func(uintptr) bool | |||||
| 1589 | // There may be implementation specific restrictions on deeply nested values. | 1733 | // There may be implementation specific restrictions on deeply nested values. | ||
| 1590 | // GVariant is guaranteed to handle nesting up to at least 64 levels. | 1734 | // GVariant is guaranteed to handle nesting up to at least 64 levels. | ||
| 1591 | func (x *Variant) IsNormalForm() bool { | 1735 | func (x *Variant) IsNormalForm() bool { | ||
| 1736 | + | core.LazyRegister(&xVariantIsNormalForm, "GLIB", "g_variant_is_normal_form", false) | |||
| 1737 | + | ||||
| 1592 | cret := xVariantIsNormalForm(x.GoPointer()) | 1738 | cret := xVariantIsNormalForm(x.GoPointer()) | ||
| 1593 | return cret | 1739 | return cret | ||
| 1594 | } | 1740 | } | ||
| @@ -1597,6 +1743,8 @@ var xVariantIsOfType func(uintptr, *VariantType) bool | |||||
| 1597 | 1743 | ||||
| 1598 | // Checks if a value has a type matching the provided type. | 1744 | // Checks if a value has a type matching the provided type. | ||
| 1599 | func (x *Variant) IsOfType(TypeVar *VariantType) bool { | 1745 | func (x *Variant) IsOfType(TypeVar *VariantType) bool { | ||
| 1746 | + | core.LazyRegister(&xVariantIsOfType, "GLIB", "g_variant_is_of_type", false) | |||
| 1747 | + | ||||
| 1600 | cret := xVariantIsOfType(x.GoPointer(), TypeVar) | 1748 | cret := xVariantIsOfType(x.GoPointer(), TypeVar) | ||
| 1601 | return cret | 1749 | return cret | ||
| 1602 | } | 1750 | } | ||
| @@ -1612,6 +1760,8 @@ var xVariantIterNew func(uintptr) uintptr | |||||
| 1612 | // A reference is taken to @value and will be released only when | 1760 | // A reference is taken to @value and will be released only when | ||
| 1613 | // g_variant_iter_free() is called. | 1761 | // g_variant_iter_free() is called. | ||
| 1614 | func (x *Variant) IterNew() *VariantIter { | 1762 | func (x *Variant) IterNew() *VariantIter { | ||
| 1763 | + | core.LazyRegister(&xVariantIterNew, "GLIB", "g_variant_iter_new", false) | |||
| 1764 | + | ||||
| 1615 | cret := xVariantIterNew(x.GoPointer()) | 1765 | cret := xVariantIterNew(x.GoPointer()) | ||
| 1616 | if cret == 0 { | 1766 | if cret == 0 { | ||
| 1617 | return nil | 1767 | return nil | ||
| @@ -1636,6 +1786,8 @@ var xVariantLookup func(uintptr, string, string, ...interface{}) bool | |||||
| 1636 | // This function is currently implemented with a linear scan. If you | 1786 | // This function is currently implemented with a linear scan. If you | ||
| 1637 | // plan to do many lookups then #GVariantDict may be more efficient. | 1787 | // plan to do many lookups then #GVariantDict may be more efficient. | ||
| 1638 | func (x *Variant) Lookup(KeyVar string, FormatStringVar string, varArgs ...interface{}) bool { | 1788 | func (x *Variant) Lookup(KeyVar string, FormatStringVar string, varArgs ...interface{}) bool { | ||
| 1789 | + | core.LazyRegister(&xVariantLookup, "GLIB", "g_variant_lookup", false) | |||
| 1790 | + | ||||
| 1639 | cret := xVariantLookup(x.GoPointer(), KeyVar, FormatStringVar, varArgs...) | 1791 | cret := xVariantLookup(x.GoPointer(), KeyVar, FormatStringVar, varArgs...) | ||
| 1640 | return cret | 1792 | return cret | ||
| 1641 | } | 1793 | } | ||
| @@ -1664,6 +1816,8 @@ var xVariantLookupValue func(uintptr, string, *VariantType) uintptr | |||||
| 1664 | // This function is currently implemented with a linear scan. If you | 1816 | // This function is currently implemented with a linear scan. If you | ||
| 1665 | // plan to do many lookups then [struct@VariantDict] may be more efficient. | 1817 | // plan to do many lookups then [struct@VariantDict] may be more efficient. | ||
| 1666 | func (x *Variant) LookupValue(KeyVar string, ExpectedTypeVar *VariantType) *Variant { | 1818 | func (x *Variant) LookupValue(KeyVar string, ExpectedTypeVar *VariantType) *Variant { | ||
| 1819 | + | core.LazyRegister(&xVariantLookupValue, "GLIB", "g_variant_lookup_value", false) | |||
| 1820 | + | ||||
| 1667 | cret := xVariantLookupValue(x.GoPointer(), KeyVar, ExpectedTypeVar) | 1821 | cret := xVariantLookupValue(x.GoPointer(), KeyVar, ExpectedTypeVar) | ||
| 1668 | if cret == 0 { | 1822 | if cret == 0 { | ||
| 1669 | return nil | 1823 | return nil | ||
| @@ -1685,6 +1839,8 @@ var xVariantNChildren func(uintptr) uint | |||||
| 1685 | // | 1839 | // | ||
| 1686 | // This function is O(1). | 1840 | // This function is O(1). | ||
| 1687 | func (x *Variant) NChildren() uint { | 1841 | func (x *Variant) NChildren() uint { | ||
| 1842 | + | core.LazyRegister(&xVariantNChildren, "GLIB", "g_variant_n_children", false) | |||
| 1843 | + | ||||
| 1688 | cret := xVariantNChildren(x.GoPointer()) | 1844 | cret := xVariantNChildren(x.GoPointer()) | ||
| 1689 | return cret | 1845 | return cret | ||
| 1690 | } | 1846 | } | ||
| @@ -1698,6 +1854,8 @@ var xVariantPrint func(uintptr, bool) string | |||||
| 1698 | // If @type_annotate is %TRUE, then type information is included in | 1854 | // If @type_annotate is %TRUE, then type information is included in | ||
| 1699 | // the output. | 1855 | // the output. | ||
| 1700 | func (x *Variant) Print(TypeAnnotateVar bool) string { | 1856 | func (x *Variant) Print(TypeAnnotateVar bool) string { | ||
| 1857 | + | core.LazyRegister(&xVariantPrint, "GLIB", "g_variant_print", false) | |||
| 1858 | + | ||||
| 1701 | cret := xVariantPrint(x.GoPointer(), TypeAnnotateVar) | 1859 | cret := xVariantPrint(x.GoPointer(), TypeAnnotateVar) | ||
| 1702 | return cret | 1860 | return cret | ||
| 1703 | } | 1861 | } | ||
| @@ -1709,6 +1867,8 @@ var xVariantPrintString func(uintptr, *String, bool) uintptr | |||||
| 1709 | // If @string is non-%NULL then it is appended to and returned. Else, | 1867 | // If @string is non-%NULL then it is appended to and returned. Else, | ||
| 1710 | // a new empty #GString is allocated and it is returned. | 1868 | // a new empty #GString is allocated and it is returned. | ||
| 1711 | func (x *Variant) PrintString(StringVar *String, TypeAnnotateVar bool) *String { | 1869 | func (x *Variant) PrintString(StringVar *String, TypeAnnotateVar bool) *String { | ||
| 1870 | + | core.LazyRegister(&xVariantPrintString, "GLIB", "g_variant_print_string", false) | |||
| 1871 | + | ||||
| 1712 | cret := xVariantPrintString(x.GoPointer(), StringVar, TypeAnnotateVar) | 1872 | cret := xVariantPrintString(x.GoPointer(), StringVar, TypeAnnotateVar) | ||
| 1713 | if cret == 0 { | 1873 | if cret == 0 { | ||
| 1714 | return nil | 1874 | return nil | ||
| @@ -1720,6 +1880,8 @@ var xVariantRef func(uintptr) uintptr | |||||
| 1720 | 1880 | ||||
| 1721 | // Increases the reference count of @value. | 1881 | // Increases the reference count of @value. | ||
| 1722 | func (x *Variant) Ref() *Variant { | 1882 | func (x *Variant) Ref() *Variant { | ||
| 1883 | + | core.LazyRegister(&xVariantRef, "GLIB", "g_variant_ref", false) | |||
| 1884 | + | ||||
| 1723 | cret := xVariantRef(x.GoPointer()) | 1885 | cret := xVariantRef(x.GoPointer()) | ||
| 1724 | if cret == 0 { | 1886 | if cret == 0 { | ||
| 1725 | return nil | 1887 | return nil | ||
| @@ -1752,6 +1914,8 @@ var xVariantRefSink func(uintptr) uintptr | |||||
| 1752 | // maintaining normal refcounting semantics in situations where values | 1914 | // maintaining normal refcounting semantics in situations where values | ||
| 1753 | // are not floating. | 1915 | // are not floating. | ||
| 1754 | func (x *Variant) RefSink() *Variant { | 1916 | func (x *Variant) RefSink() *Variant { | ||
| 1917 | + | core.LazyRegister(&xVariantRefSink, "GLIB", "g_variant_ref_sink", false) | |||
| 1918 | + | ||||
| 1755 | cret := xVariantRefSink(x.GoPointer()) | 1919 | cret := xVariantRefSink(x.GoPointer()) | ||
| 1756 | if cret == 0 { | 1920 | if cret == 0 { | ||
| 1757 | return nil | 1921 | return nil | ||
| @@ -1774,6 +1938,8 @@ var xVariantStore func(uintptr, uintptr) | |||||
| 1774 | // | 1938 | // | ||
| 1775 | // This function is approximately O(n) in the size of @data. | 1939 | // This function is approximately O(n) in the size of @data. | ||
| 1776 | func (x *Variant) Store(DataVar uintptr) { | 1940 | func (x *Variant) Store(DataVar uintptr) { | ||
| 1941 | + | core.LazyRegister(&xVariantStore, "GLIB", "g_variant_store", false) | |||
| 1942 | + | ||||
| 1777 | xVariantStore(x.GoPointer(), DataVar) | 1943 | xVariantStore(x.GoPointer(), DataVar) | ||
| 1778 | } | 1944 | } | ||
| 1779 | 1945 | ||||
| @@ -1812,6 +1978,8 @@ var xVariantTakeRef func(uintptr) uintptr | |||||
| 1812 | // an additional reference on top of that one is added. It is best to | 1978 | // an additional reference on top of that one is added. It is best to | ||
| 1813 | // avoid this situation. | 1979 | // avoid this situation. | ||
| 1814 | func (x *Variant) TakeRef() *Variant { | 1980 | func (x *Variant) TakeRef() *Variant { | ||
| 1981 | + | core.LazyRegister(&xVariantTakeRef, "GLIB", "g_variant_take_ref", false) | |||
| 1982 | + | ||||
| 1815 | cret := xVariantTakeRef(x.GoPointer()) | 1983 | cret := xVariantTakeRef(x.GoPointer()) | ||
| 1816 | if cret == 0 { | 1984 | if cret == 0 { | ||
| 1817 | return nil | 1985 | return nil | ||
| @@ -1824,6 +1992,8 @@ var xVariantUnref func(uintptr) | |||||
| 1824 | // Decreases the reference count of @value. When its reference count | 1992 | // Decreases the reference count of @value. When its reference count | ||
| 1825 | // drops to 0, the memory used by the variant is freed. | 1993 | // drops to 0, the memory used by the variant is freed. | ||
| 1826 | func (x *Variant) Unref() { | 1994 | func (x *Variant) Unref() { | ||
| 1995 | + | core.LazyRegister(&xVariantUnref, "GLIB", "g_variant_unref", false) | |||
| 1996 | + | ||||
| 1827 | xVariantUnref(x.GoPointer()) | 1997 | xVariantUnref(x.GoPointer()) | ||
| 1828 | } | 1998 | } | ||
| 1829 | 1999 | ||||
| @@ -1841,6 +2011,7 @@ type VariantBuilder struct { | |||||
| 1841 | var xVariantBuilderGLibType func() types.GType | 2011 | var xVariantBuilderGLibType func() types.GType | ||
| 1842 | 2012 | ||||
| 1843 | func VariantBuilderGLibType() types.GType { | 2013 | func VariantBuilderGLibType() types.GType { | ||
| 2014 | + | core.LazyRegister(&xVariantBuilderGLibType, "GLIB", "g_variant_builder_get_type", false) | |||
| 1844 | return xVariantBuilderGLibType() | 2015 | return xVariantBuilderGLibType() | ||
| 1845 | } | 2016 | } | ||
| 1846 | 2017 | ||||
| @@ -1868,6 +2039,8 @@ var xNewVariantBuilder func(*VariantType) uintptr | |||||
| 1868 | // the stack of the calling function and initialise it with | 2039 | // the stack of the calling function and initialise it with | ||
| 1869 | // g_variant_builder_init_static(). | 2040 | // g_variant_builder_init_static(). | ||
| 1870 | func NewVariantBuilder(TypeVar *VariantType) *VariantBuilder { | 2041 | func NewVariantBuilder(TypeVar *VariantType) *VariantBuilder { | ||
| 2042 | + | core.LazyRegister(&xNewVariantBuilder, "GLIB", "g_variant_builder_new", false) | |||
| 2043 | + | ||||
| 1871 | cret := xNewVariantBuilder(TypeVar) | 2044 | cret := xNewVariantBuilder(TypeVar) | ||
| 1872 | if cret == 0 { | 2045 | if cret == 0 { | ||
| 1873 | return nil | 2046 | return nil | ||
| @@ -1910,6 +2083,8 @@ var xVariantBuilderAdd func(uintptr, string, ...interface{}) | |||||
| 1910 | // | 2083 | // | ||
| 1911 | // ]| | 2084 | // ]| | ||
| 1912 | func (x *VariantBuilder) Add(FormatStringVar string, varArgs ...interface{}) { | 2085 | func (x *VariantBuilder) Add(FormatStringVar string, varArgs ...interface{}) { | ||
| 2086 | + | core.LazyRegister(&xVariantBuilderAdd, "GLIB", "g_variant_builder_add", false) | |||
| 2087 | + | ||||
| 1913 | xVariantBuilderAdd(x.GoPointer(), FormatStringVar, varArgs...) | 2088 | xVariantBuilderAdd(x.GoPointer(), FormatStringVar, varArgs...) | ||
| 1914 | } | 2089 | } | ||
| 1915 | 2090 | ||||
| @@ -1944,6 +2119,8 @@ var xVariantBuilderAddParsed func(uintptr, string, ...interface{}) | |||||
| 1944 | // | 2119 | // | ||
| 1945 | // ]| | 2120 | // ]| | ||
| 1946 | func (x *VariantBuilder) AddParsed(FormatVar string, varArgs ...interface{}) { | 2121 | func (x *VariantBuilder) AddParsed(FormatVar string, varArgs ...interface{}) { | ||
| 2122 | + | core.LazyRegister(&xVariantBuilderAddParsed, "GLIB", "g_variant_builder_add_parsed", false) | |||
| 2123 | + | ||||
| 1947 | xVariantBuilderAddParsed(x.GoPointer(), FormatVar, varArgs...) | 2124 | xVariantBuilderAddParsed(x.GoPointer(), FormatVar, varArgs...) | ||
| 1948 | } | 2125 | } | ||
| 1949 | 2126 | ||||
| @@ -1960,6 +2137,8 @@ var xVariantBuilderAddValue func(uintptr, *Variant) | |||||
| 1960 | // If @value is a floating reference (see g_variant_ref_sink()), | 2137 | // If @value is a floating reference (see g_variant_ref_sink()), | ||
| 1961 | // the @builder instance takes ownership of @value. | 2138 | // the @builder instance takes ownership of @value. | ||
| 1962 | func (x *VariantBuilder) AddValue(ValueVar *Variant) { | 2139 | func (x *VariantBuilder) AddValue(ValueVar *Variant) { | ||
| 2140 | + | core.LazyRegister(&xVariantBuilderAddValue, "GLIB", "g_variant_builder_add_value", false) | |||
| 2141 | + | ||||
| 1963 | xVariantBuilderAddValue(x.GoPointer(), ValueVar) | 2142 | xVariantBuilderAddValue(x.GoPointer(), ValueVar) | ||
| 1964 | } | 2143 | } | ||
| 1965 | 2144 | ||||
| @@ -1980,6 +2159,8 @@ var xVariantBuilderClear func(uintptr) | |||||
| 1980 | // #GVariantBuilder or one that is set to all-zeros but it is not valid | 2159 | // #GVariantBuilder or one that is set to all-zeros but it is not valid | ||
| 1981 | // to call this function on uninitialised memory. | 2160 | // to call this function on uninitialised memory. | ||
| 1982 | func (x *VariantBuilder) Clear() { | 2161 | func (x *VariantBuilder) Clear() { | ||
| 2162 | + | core.LazyRegister(&xVariantBuilderClear, "GLIB", "g_variant_builder_clear", false) | |||
| 2163 | + | ||||
| 1983 | xVariantBuilderClear(x.GoPointer()) | 2164 | xVariantBuilderClear(x.GoPointer()) | ||
| 1984 | } | 2165 | } | ||
| 1985 | 2166 | ||||
| @@ -1992,6 +2173,8 @@ var xVariantBuilderClose func(uintptr) | |||||
| 1992 | // inconsistent value to be constructed (ie: too few values added to the | 2173 | // inconsistent value to be constructed (ie: too few values added to the | ||
| 1993 | // subcontainer). | 2174 | // subcontainer). | ||
| 1994 | func (x *VariantBuilder) Close() { | 2175 | func (x *VariantBuilder) Close() { | ||
| 2176 | + | core.LazyRegister(&xVariantBuilderClose, "GLIB", "g_variant_builder_close", false) | |||
| 2177 | + | ||||
| 1995 | xVariantBuilderClose(x.GoPointer()) | 2178 | xVariantBuilderClose(x.GoPointer()) | ||
| 1996 | } | 2179 | } | ||
| 1997 | 2180 | ||||
| @@ -2015,6 +2198,8 @@ var xVariantBuilderEnd func(uintptr) uintptr | |||||
| 2015 | // have been added; in this case it is impossible to infer the type of | 2198 | // have been added; in this case it is impossible to infer the type of | ||
| 2016 | // the empty array. | 2199 | // the empty array. | ||
| 2017 | func (x *VariantBuilder) End() *Variant { | 2200 | func (x *VariantBuilder) End() *Variant { | ||
| 2201 | + | core.LazyRegister(&xVariantBuilderEnd, "GLIB", "g_variant_builder_end", false) | |||
| 2202 | + | ||||
| 2018 | cret := xVariantBuilderEnd(x.GoPointer()) | 2203 | cret := xVariantBuilderEnd(x.GoPointer()) | ||
| 2019 | if cret == 0 { | 2204 | if cret == 0 { | ||
| 2020 | return nil | 2205 | return nil | ||
| @@ -2058,6 +2243,8 @@ var xVariantBuilderInit func(uintptr, *VariantType) | |||||
| 2058 | // reference counting; you should use g_variant_builder_new() instead of | 2243 | // reference counting; you should use g_variant_builder_new() instead of | ||
| 2059 | // this function. | 2244 | // this function. | ||
| 2060 | func (x *VariantBuilder) Init(TypeVar *VariantType) { | 2245 | func (x *VariantBuilder) Init(TypeVar *VariantType) { | ||
| 2246 | + | core.LazyRegister(&xVariantBuilderInit, "GLIB", "g_variant_builder_init", false) | |||
| 2247 | + | ||||
| 2061 | xVariantBuilderInit(x.GoPointer(), TypeVar) | 2248 | xVariantBuilderInit(x.GoPointer(), TypeVar) | ||
| 2062 | } | 2249 | } | ||
| 2063 | 2250 | ||||
| @@ -2070,6 +2257,8 @@ var xVariantBuilderInitStatic func(uintptr, *VariantType) | |||||
| 2070 | // lifetime of @builder. This is always true of type constants like | 2257 | // lifetime of @builder. This is always true of type constants like | ||
| 2071 | // `G_VARIANT_TYPE_*` or `G_VARIANT_TYPE ("(ii)")`. | 2258 | // `G_VARIANT_TYPE_*` or `G_VARIANT_TYPE ("(ii)")`. | ||
| 2072 | func (x *VariantBuilder) InitStatic(TypeVar *VariantType) { | 2259 | func (x *VariantBuilder) InitStatic(TypeVar *VariantType) { | ||
| 2260 | + | core.LazyRegister(&xVariantBuilderInitStatic, "GLIB", "g_variant_builder_init_static", false) | |||
| 2261 | + | ||||
| 2073 | xVariantBuilderInitStatic(x.GoPointer(), TypeVar) | 2262 | xVariantBuilderInitStatic(x.GoPointer(), TypeVar) | ||
| 2074 | } | 2263 | } | ||
| 2075 | 2264 | ||||
| @@ -2113,6 +2302,8 @@ var xVariantBuilderOpen func(uintptr, *VariantType) | |||||
| 2113 | // output = g_variant_builder_end (&builder); | 2302 | // output = g_variant_builder_end (&builder); | ||
| 2114 | // ]| | 2303 | // ]| | ||
| 2115 | func (x *VariantBuilder) Open(TypeVar *VariantType) { | 2304 | func (x *VariantBuilder) Open(TypeVar *VariantType) { | ||
| 2305 | + | core.LazyRegister(&xVariantBuilderOpen, "GLIB", "g_variant_builder_open", false) | |||
| 2306 | + | ||||
| 2116 | xVariantBuilderOpen(x.GoPointer(), TypeVar) | 2307 | xVariantBuilderOpen(x.GoPointer(), TypeVar) | ||
| 2117 | } | 2308 | } | ||
| 2118 | 2309 | ||||
| @@ -2123,6 +2314,8 @@ var xVariantBuilderRef func(uintptr) uintptr | |||||
| 2123 | // Don't call this on stack-allocated #GVariantBuilder instances or bad | 2314 | // Don't call this on stack-allocated #GVariantBuilder instances or bad | ||
| 2124 | // things will happen. | 2315 | // things will happen. | ||
| 2125 | func (x *VariantBuilder) Ref() *VariantBuilder { | 2316 | func (x *VariantBuilder) Ref() *VariantBuilder { | ||
| 2317 | + | core.LazyRegister(&xVariantBuilderRef, "GLIB", "g_variant_builder_ref", false) | |||
| 2318 | + | ||||
| 2126 | cret := xVariantBuilderRef(x.GoPointer()) | 2319 | cret := xVariantBuilderRef(x.GoPointer()) | ||
| 2127 | if cret == 0 { | 2320 | if cret == 0 { | ||
| 2128 | return nil | 2321 | return nil | ||
| @@ -2140,6 +2333,8 @@ var xVariantBuilderUnref func(uintptr) | |||||
| 2140 | // Don't call this on stack-allocated #GVariantBuilder instances or bad | 2333 | // Don't call this on stack-allocated #GVariantBuilder instances or bad | ||
| 2141 | // things will happen. | 2334 | // things will happen. | ||
| 2142 | func (x *VariantBuilder) Unref() { | 2335 | func (x *VariantBuilder) Unref() { | ||
| 2336 | + | core.LazyRegister(&xVariantBuilderUnref, "GLIB", "g_variant_builder_unref", false) | |||
| 2337 | + | ||||
| 2143 | xVariantBuilderUnref(x.GoPointer()) | 2338 | xVariantBuilderUnref(x.GoPointer()) | ||
| 2144 | } | 2339 | } | ||
| 2145 | 2340 | ||||
| @@ -2243,6 +2438,7 @@ type VariantDict struct { | |||||
| 2243 | var xVariantDictGLibType func() types.GType | 2438 | var xVariantDictGLibType func() types.GType | ||
| 2244 | 2439 | ||||
| 2245 | func VariantDictGLibType() types.GType { | 2440 | func VariantDictGLibType() types.GType { | ||
| 2441 | + | core.LazyRegister(&xVariantDictGLibType, "GLIB", "g_variant_dict_get_type", false) | |||
| 2246 | return xVariantDictGLibType() | 2442 | return xVariantDictGLibType() | ||
| 2247 | } | 2443 | } | ||
| 2248 | 2444 | ||||
| @@ -2271,6 +2467,8 @@ var xNewVariantDict func(*Variant) uintptr | |||||
| 2271 | // g_variant_dict_init(). This is particularly useful when you are | 2467 | // g_variant_dict_init(). This is particularly useful when you are | ||
| 2272 | // using #GVariantDict to construct a #GVariant. | 2468 | // using #GVariantDict to construct a #GVariant. | ||
| 2273 | func NewVariantDict(FromAsvVar *Variant) *VariantDict { | 2469 | func NewVariantDict(FromAsvVar *Variant) *VariantDict { | ||
| 2470 | + | core.LazyRegister(&xNewVariantDict, "GLIB", "g_variant_dict_new", false) | |||
| 2471 | + | ||||
| 2274 | cret := xNewVariantDict(FromAsvVar) | 2472 | cret := xNewVariantDict(FromAsvVar) | ||
| 2275 | if cret == 0 { | 2473 | if cret == 0 { | ||
| 2276 | return nil | 2474 | return nil | ||
| @@ -2295,6 +2493,8 @@ var xVariantDictClear func(uintptr) | |||||
| 2295 | // to g_variant_dict_clear() but it is not valid to call this function | 2493 | // to g_variant_dict_clear() but it is not valid to call this function | ||
| 2296 | // on uninitialised memory. | 2494 | // on uninitialised memory. | ||
| 2297 | func (x *VariantDict) Clear() { | 2495 | func (x *VariantDict) Clear() { | ||
| 2496 | + | core.LazyRegister(&xVariantDictClear, "GLIB", "g_variant_dict_clear", false) | |||
| 2497 | + | ||||
| 2298 | xVariantDictClear(x.GoPointer()) | 2498 | xVariantDictClear(x.GoPointer()) | ||
| 2299 | } | 2499 | } | ||
| 2300 | 2500 | ||||
| @@ -2302,6 +2502,8 @@ var xVariantDictContains func(uintptr, string) bool | |||||
| 2302 | 2502 | ||||
| 2303 | // Checks if @key exists in @dict. | 2503 | // Checks if @key exists in @dict. | ||
| 2304 | func (x *VariantDict) Contains(KeyVar string) bool { | 2504 | func (x *VariantDict) Contains(KeyVar string) bool { | ||
| 2505 | + | core.LazyRegister(&xVariantDictContains, "GLIB", "g_variant_dict_contains", false) | |||
| 2506 | + | ||||
| 2305 | cret := xVariantDictContains(x.GoPointer(), KeyVar) | 2507 | cret := xVariantDictContains(x.GoPointer(), KeyVar) | ||
| 2306 | return cret | 2508 | return cret | ||
| 2307 | } | 2509 | } | ||
| @@ -2316,6 +2518,8 @@ var xVariantDictEnd func(uintptr) uintptr | |||||
| 2316 | // #GVariantDict) or by reinitialising it with g_variant_dict_init() (in | 2518 | // #GVariantDict) or by reinitialising it with g_variant_dict_init() (in | ||
| 2317 | // the case of stack-allocated). | 2519 | // the case of stack-allocated). | ||
| 2318 | func (x *VariantDict) End() *Variant { | 2520 | func (x *VariantDict) End() *Variant { | ||
| 2521 | + | core.LazyRegister(&xVariantDictEnd, "GLIB", "g_variant_dict_end", false) | |||
| 2522 | + | ||||
| 2319 | cret := xVariantDictEnd(x.GoPointer()) | 2523 | cret := xVariantDictEnd(x.GoPointer()) | ||
| 2320 | if cret == 0 { | 2524 | if cret == 0 { | ||
| 2321 | return nil | 2525 | return nil | ||
| @@ -2342,6 +2546,8 @@ var xVariantDictInit func(uintptr, *Variant) | |||||
| 2342 | // reference may try to use reference counting; you should use | 2546 | // reference may try to use reference counting; you should use | ||
| 2343 | // g_variant_dict_new() instead of this function. | 2547 | // g_variant_dict_new() instead of this function. | ||
| 2344 | func (x *VariantDict) Init(FromAsvVar *Variant) { | 2548 | func (x *VariantDict) Init(FromAsvVar *Variant) { | ||
| 2549 | + | core.LazyRegister(&xVariantDictInit, "GLIB", "g_variant_dict_init", false) | |||
| 2550 | + | ||||
| 2345 | xVariantDictInit(x.GoPointer(), FromAsvVar) | 2551 | xVariantDictInit(x.GoPointer(), FromAsvVar) | ||
| 2346 | } | 2552 | } | ||
| 2347 | 2553 | ||||
| @@ -2352,6 +2558,8 @@ var xVariantDictInsert func(uintptr, string, string, ...interface{}) | |||||
| 2352 | // This call is a convenience wrapper that is exactly equivalent to | 2558 | // This call is a convenience wrapper that is exactly equivalent to | ||
| 2353 | // calling g_variant_new() followed by g_variant_dict_insert_value(). | 2559 | // calling g_variant_new() followed by g_variant_dict_insert_value(). | ||
| 2354 | func (x *VariantDict) Insert(KeyVar string, FormatStringVar string, varArgs ...interface{}) { | 2560 | func (x *VariantDict) Insert(KeyVar string, FormatStringVar string, varArgs ...interface{}) { | ||
| 2561 | + | core.LazyRegister(&xVariantDictInsert, "GLIB", "g_variant_dict_insert", false) | |||
| 2562 | + | ||||
| 2355 | xVariantDictInsert(x.GoPointer(), KeyVar, FormatStringVar, varArgs...) | 2563 | xVariantDictInsert(x.GoPointer(), KeyVar, FormatStringVar, varArgs...) | ||
| 2356 | } | 2564 | } | ||
| 2357 | 2565 | ||||
| @@ -2361,6 +2569,8 @@ var xVariantDictInsertValue func(uintptr, string, *Variant) | |||||
| 2361 | // | 2569 | // | ||
| 2362 | // @value is consumed if it is floating. | 2570 | // @value is consumed if it is floating. | ||
| 2363 | func (x *VariantDict) InsertValue(KeyVar string, ValueVar *Variant) { | 2571 | func (x *VariantDict) InsertValue(KeyVar string, ValueVar *Variant) { | ||
| 2572 | + | core.LazyRegister(&xVariantDictInsertValue, "GLIB", "g_variant_dict_insert_value", false) | |||
| 2573 | + | ||||
| 2364 | xVariantDictInsertValue(x.GoPointer(), KeyVar, ValueVar) | 2574 | xVariantDictInsertValue(x.GoPointer(), KeyVar, ValueVar) | ||
| 2365 | } | 2575 | } | ||
| 2366 | 2576 | ||||
| @@ -2378,6 +2588,8 @@ var xVariantDictLookup func(uintptr, string, string, ...interface{}) bool | |||||
| 2378 | // values and also determines if the values are copied or borrowed, see the | 2588 | // values and also determines if the values are copied or borrowed, see the | ||
| 2379 | // section on [`GVariant` format strings](gvariant-format-strings.html#pointers). | 2589 | // section on [`GVariant` format strings](gvariant-format-strings.html#pointers). | ||
| 2380 | func (x *VariantDict) Lookup(KeyVar string, FormatStringVar string, varArgs ...interface{}) bool { | 2590 | func (x *VariantDict) Lookup(KeyVar string, FormatStringVar string, varArgs ...interface{}) bool { | ||
| 2591 | + | core.LazyRegister(&xVariantDictLookup, "GLIB", "g_variant_dict_lookup", false) | |||
| 2592 | + | ||||
| 2381 | cret := xVariantDictLookup(x.GoPointer(), KeyVar, FormatStringVar, varArgs...) | 2593 | cret := xVariantDictLookup(x.GoPointer(), KeyVar, FormatStringVar, varArgs...) | ||
| 2382 | return cret | 2594 | return cret | ||
| 2383 | } | 2595 | } | ||
| @@ -2396,6 +2608,8 @@ var xVariantDictLookupValue func(uintptr, string, *VariantType) uintptr | |||||
| 2396 | // returned. If @expected_type was specified then any non-%NULL return | 2608 | // returned. If @expected_type was specified then any non-%NULL return | ||
| 2397 | // value will have this type. | 2609 | // value will have this type. | ||
| 2398 | func (x *VariantDict) LookupValue(KeyVar string, ExpectedTypeVar *VariantType) *Variant { | 2610 | func (x *VariantDict) LookupValue(KeyVar string, ExpectedTypeVar *VariantType) *Variant { | ||
| 2611 | + | core.LazyRegister(&xVariantDictLookupValue, "GLIB", "g_variant_dict_lookup_value", false) | |||
| 2612 | + | ||||
| 2399 | cret := xVariantDictLookupValue(x.GoPointer(), KeyVar, ExpectedTypeVar) | 2613 | cret := xVariantDictLookupValue(x.GoPointer(), KeyVar, ExpectedTypeVar) | ||
| 2400 | if cret == 0 { | 2614 | if cret == 0 { | ||
| 2401 | return nil | 2615 | return nil | ||
| @@ -2410,6 +2624,8 @@ var xVariantDictRef func(uintptr) uintptr | |||||
| 2410 | // Don't call this on stack-allocated #GVariantDict instances or bad | 2624 | // Don't call this on stack-allocated #GVariantDict instances or bad | ||
| 2411 | // things will happen. | 2625 | // things will happen. | ||
| 2412 | func (x *VariantDict) Ref() *VariantDict { | 2626 | func (x *VariantDict) Ref() *VariantDict { | ||
| 2627 | + | core.LazyRegister(&xVariantDictRef, "GLIB", "g_variant_dict_ref", false) | |||
| 2628 | + | ||||
| 2413 | cret := xVariantDictRef(x.GoPointer()) | 2629 | cret := xVariantDictRef(x.GoPointer()) | ||
| 2414 | if cret == 0 { | 2630 | if cret == 0 { | ||
| 2415 | return nil | 2631 | return nil | ||
| @@ -2421,6 +2637,8 @@ var xVariantDictRemove func(uintptr, string) bool | |||||
| 2421 | 2637 | ||||
| 2422 | // Removes a key and its associated value from a #GVariantDict. | 2638 | // Removes a key and its associated value from a #GVariantDict. | ||
| 2423 | func (x *VariantDict) Remove(KeyVar string) bool { | 2639 | func (x *VariantDict) Remove(KeyVar string) bool { | ||
| 2640 | + | core.LazyRegister(&xVariantDictRemove, "GLIB", "g_variant_dict_remove", false) | |||
| 2641 | + | ||||
| 2424 | cret := xVariantDictRemove(x.GoPointer(), KeyVar) | 2642 | cret := xVariantDictRemove(x.GoPointer(), KeyVar) | ||
| 2425 | return cret | 2643 | return cret | ||
| 2426 | } | 2644 | } | ||
| @@ -2435,6 +2653,8 @@ var xVariantDictUnref func(uintptr) | |||||
| 2435 | // Don't call this on stack-allocated #GVariantDict instances or bad | 2653 | // Don't call this on stack-allocated #GVariantDict instances or bad | ||
| 2436 | // things will happen. | 2654 | // things will happen. | ||
| 2437 | func (x *VariantDict) Unref() { | 2655 | func (x *VariantDict) Unref() { | ||
| 2656 | + | core.LazyRegister(&xVariantDictUnref, "GLIB", "g_variant_dict_unref", false) | |||
| 2657 | + | ||||
| 2438 | xVariantDictUnref(x.GoPointer()) | 2658 | xVariantDictUnref(x.GoPointer()) | ||
| 2439 | } | 2659 | } | ||
| 2440 | 2660 | ||||
| @@ -2471,6 +2691,8 @@ var xVariantIterCopy func(uintptr) uintptr | |||||
| 2471 | // A reference is taken to the container that @iter is iterating over | 2691 | // A reference is taken to the container that @iter is iterating over | ||
| 2472 | // and will be related only when g_variant_iter_free() is called. | 2692 | // and will be related only when g_variant_iter_free() is called. | ||
| 2473 | func (x *VariantIter) Copy() *VariantIter { | 2693 | func (x *VariantIter) Copy() *VariantIter { | ||
| 2694 | + | core.LazyRegister(&xVariantIterCopy, "GLIB", "g_variant_iter_copy", false) | |||
| 2695 | + | ||||
| 2474 | cret := xVariantIterCopy(x.GoPointer()) | 2696 | cret := xVariantIterCopy(x.GoPointer()) | ||
| 2475 | if cret == 0 { | 2697 | if cret == 0 { | ||
| 2476 | return nil | 2698 | return nil | ||
| @@ -2484,6 +2706,8 @@ var xVariantIterFree func(uintptr) | |||||
| 2484 | // iterators that were returned by g_variant_iter_new() or | 2706 | // iterators that were returned by g_variant_iter_new() or | ||
| 2485 | // g_variant_iter_copy(). | 2707 | // g_variant_iter_copy(). | ||
| 2486 | func (x *VariantIter) Free() { | 2708 | func (x *VariantIter) Free() { | ||
| 2709 | + | core.LazyRegister(&xVariantIterFree, "GLIB", "g_variant_iter_free", false) | |||
| 2710 | + | ||||
| 2487 | xVariantIterFree(x.GoPointer()) | 2711 | xVariantIterFree(x.GoPointer()) | ||
| 2488 | } | 2712 | } | ||
| 2489 | 2713 | ||||
| @@ -2496,6 +2720,8 @@ var xVariantIterInit func(uintptr, *Variant) uint | |||||
| 2496 | // The iterator remains valid for as long as @value exists, and need not | 2720 | // The iterator remains valid for as long as @value exists, and need not | ||
| 2497 | // be freed in any way. | 2721 | // be freed in any way. | ||
| 2498 | func (x *VariantIter) Init(ValueVar *Variant) uint { | 2722 | func (x *VariantIter) Init(ValueVar *Variant) uint { | ||
| 2723 | + | core.LazyRegister(&xVariantIterInit, "GLIB", "g_variant_iter_init", false) | |||
| 2724 | + | ||||
| 2499 | cret := xVariantIterInit(x.GoPointer(), ValueVar) | 2725 | cret := xVariantIterInit(x.GoPointer(), ValueVar) | ||
| 2500 | return cret | 2726 | return cret | ||
| 2501 | } | 2727 | } | ||
| @@ -2567,6 +2793,8 @@ var xVariantIterLoop func(uintptr, string, ...interface{}) bool | |||||
| 2567 | // See the section on | 2793 | // See the section on | ||
| 2568 | // [`GVariant` format strings](gvariant-format-strings.html#pointers). | 2794 | // [`GVariant` format strings](gvariant-format-strings.html#pointers). | ||
| 2569 | func (x *VariantIter) Loop(FormatStringVar string, varArgs ...interface{}) bool { | 2795 | func (x *VariantIter) Loop(FormatStringVar string, varArgs ...interface{}) bool { | ||
| 2796 | + | core.LazyRegister(&xVariantIterLoop, "GLIB", "g_variant_iter_loop", false) | |||
| 2797 | + | ||||
| 2570 | cret := xVariantIterLoop(x.GoPointer(), FormatStringVar, varArgs...) | 2798 | cret := xVariantIterLoop(x.GoPointer(), FormatStringVar, varArgs...) | ||
| 2571 | return cret | 2799 | return cret | ||
| 2572 | } | 2800 | } | ||
| @@ -2579,6 +2807,8 @@ var xVariantIterNChildren func(uintptr) uint | |||||
| 2579 | // | 2807 | // | ||
| 2580 | // This function might be useful for preallocation of arrays. | 2808 | // This function might be useful for preallocation of arrays. | ||
| 2581 | func (x *VariantIter) NChildren() uint { | 2809 | func (x *VariantIter) NChildren() uint { | ||
| 2810 | + | core.LazyRegister(&xVariantIterNChildren, "GLIB", "g_variant_iter_n_children", false) | |||
| 2811 | + | ||||
| 2582 | cret := xVariantIterNChildren(x.GoPointer()) | 2812 | cret := xVariantIterNChildren(x.GoPointer()) | ||
| 2583 | return cret | 2813 | return cret | ||
| 2584 | } | 2814 | } | ||
| @@ -2629,6 +2859,8 @@ var xVariantIterNext func(uintptr, string, ...interface{}) bool | |||||
| 2629 | // See the section on | 2859 | // See the section on | ||
| 2630 | // [`GVariant` format strings](gvariant-format-strings.html#pointers). | 2860 | // [`GVariant` format strings](gvariant-format-strings.html#pointers). | ||
| 2631 | func (x *VariantIter) Next(FormatStringVar string, varArgs ...interface{}) bool { | 2861 | func (x *VariantIter) Next(FormatStringVar string, varArgs ...interface{}) bool { | ||
| 2862 | + | core.LazyRegister(&xVariantIterNext, "GLIB", "g_variant_iter_next", false) | |||
| 2863 | + | ||||
| 2632 | cret := xVariantIterNext(x.GoPointer(), FormatStringVar, varArgs...) | 2864 | cret := xVariantIterNext(x.GoPointer(), FormatStringVar, varArgs...) | ||
| 2633 | return cret | 2865 | return cret | ||
| 2634 | } | 2866 | } | ||
| @@ -2665,6 +2897,8 @@ var xVariantIterNextValue func(uintptr) uintptr | |||||
| 2665 | // | 2897 | // | ||
| 2666 | // ]| | 2898 | // ]| | ||
| 2667 | func (x *VariantIter) NextValue() *Variant { | 2899 | func (x *VariantIter) NextValue() *Variant { | ||
| 2900 | + | core.LazyRegister(&xVariantIterNextValue, "GLIB", "g_variant_iter_next_value", false) | |||
| 2901 | + | ||||
| 2668 | cret := xVariantIterNextValue(x.GoPointer()) | 2902 | cret := xVariantIterNextValue(x.GoPointer()) | ||
| 2669 | if cret == 0 { | 2903 | if cret == 0 { | ||
| 2670 | return nil | 2904 | return nil | ||
| @@ -2773,6 +3007,8 @@ var xVariantIsObjectPath func(string) bool | |||||
| 2773 | // must contain only the characters `[A-Z][a-z][0-9]_`. No sequence | 3007 | // must contain only the characters `[A-Z][a-z][0-9]_`. No sequence | ||
| 2774 | // (including the one following the final `/` character) may be empty. | 3008 | // (including the one following the final `/` character) may be empty. | ||
| 2775 | func VariantIsObjectPath(StringVar string) bool { | 3009 | func VariantIsObjectPath(StringVar string) bool { | ||
| 3010 | + | core.LazyRegister(&xVariantIsObjectPath, "GLIB", "g_variant_is_object_path", false) | |||
| 3011 | + | ||||
| 2776 | cret := xVariantIsObjectPath(StringVar) | 3012 | cret := xVariantIsObjectPath(StringVar) | ||
| 2777 | return cret | 3013 | return cret | ||
| 2778 | } | 3014 | } | ||
| @@ -2786,6 +3022,8 @@ var xVariantIsSignature func(string) bool | |||||
| 2786 | // D-Bus type signatures consist of zero or more definite #GVariantType | 3022 | // D-Bus type signatures consist of zero or more definite #GVariantType | ||
| 2787 | // strings in sequence. | 3023 | // strings in sequence. | ||
| 2788 | func VariantIsSignature(StringVar string) bool { | 3024 | func VariantIsSignature(StringVar string) bool { | ||
| 3025 | + | core.LazyRegister(&xVariantIsSignature, "GLIB", "g_variant_is_signature", false) | |||
| 3026 | + | ||||
| 2789 | cret := xVariantIsSignature(StringVar) | 3027 | cret := xVariantIsSignature(StringVar) | ||
| 2790 | return cret | 3028 | return cret | ||
| 2791 | } | 3029 | } | ||
| @@ -2829,6 +3067,7 @@ var xVariantParse func(*VariantType, string, uintptr, uintptr, **Error) uintptr | |||||
| 2829 | // which would result in a %G_VARIANT_PARSE_ERROR_RECURSION error. #GVariant is | 3067 | // which would result in a %G_VARIANT_PARSE_ERROR_RECURSION error. #GVariant is | ||
| 2830 | // guaranteed to handle nesting up to at least 64 levels. | 3068 | // guaranteed to handle nesting up to at least 64 levels. | ||
| 2831 | func VariantParse(TypeVar *VariantType, TextVar string, LimitVar *string, EndptrVar *string) (*Variant, error) { | 3069 | func VariantParse(TypeVar *VariantType, TextVar string, LimitVar *string, EndptrVar *string) (*Variant, error) { | ||
| 3070 | + | core.LazyRegister(&xVariantParse, "GLIB", "g_variant_parse", false) | |||
| 2832 | var cerr *Error | 3071 | var cerr *Error | ||
| 2833 | 3072 | ||||
| 2834 | LimitVarPtr := core.GStrdupNullable(LimitVar) | 3073 | LimitVarPtr := core.GStrdupNullable(LimitVar) | ||
| @@ -2883,6 +3122,8 @@ var xVariantParseErrorPrintContext func(*Error, string) string | |||||
| 2883 | // g_variant_parse() then you must add nul termination before using this | 3122 | // g_variant_parse() then you must add nul termination before using this | ||
| 2884 | // function. | 3123 | // function. | ||
| 2885 | func VariantParseErrorPrintContext(ErrorVar *Error, SourceStrVar string) string { | 3124 | func VariantParseErrorPrintContext(ErrorVar *Error, SourceStrVar string) string { | ||
| 3125 | + | core.LazyRegister(&xVariantParseErrorPrintContext, "GLIB", "g_variant_parse_error_print_context", false) | |||
| 3126 | + | ||||
| 2886 | cret := xVariantParseErrorPrintContext(ErrorVar, SourceStrVar) | 3127 | cret := xVariantParseErrorPrintContext(ErrorVar, SourceStrVar) | ||
| 2887 | return cret | 3128 | return cret | ||
| 2888 | } | 3129 | } | ||
| @@ -2890,146 +3131,4 @@ func VariantParseErrorPrintContext(ErrorVar *Error, SourceStrVar string) string | |||||
| 2890 | func init() { | 3131 | func init() { | ||
| 2891 | core.SetPackageName("GLIB", "glib-2.0") | 3132 | core.SetPackageName("GLIB", "glib-2.0") | ||
| 2892 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | 3133 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | ||
| 2893 | - | var libs []uintptr | |||
| 2894 | - | for _, libPath := range core.GetPaths("GLIB") { | |||
| 2895 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 2896 | - | if err != nil { | |||
| 2897 | - | panic(err) | |||
| 2898 | - | } | |||
| 2899 | - | libs = append(libs, lib) | |||
| 2900 | - | } | |||
| 2901 | - | ||||
| 2902 | - | core.PuregoSafeRegister(&xVariantIsObjectPath, libs, "g_variant_is_object_path") | |||
| 2903 | - | core.PuregoSafeRegister(&xVariantIsSignature, libs, "g_variant_is_signature") | |||
| 2904 | - | core.PuregoSafeRegister(&xVariantParse, libs, "g_variant_parse") | |||
| 2905 | - | core.PuregoSafeRegister(&xVariantParseErrorPrintContext, libs, "g_variant_parse_error_print_context") | |||
| 2906 | - | ||||
| 2907 | - | core.PuregoSafeRegister(&xVariantGLibType, libs, "intern") | |||
| 2908 | - | ||||
| 2909 | - | core.PuregoSafeRegister(&xNewVariant, libs, "g_variant_new") | |||
| 2910 | - | core.PuregoSafeRegister(&xNewVariantArray, libs, "g_variant_new_array") | |||
| 2911 | - | core.PuregoSafeRegister(&xNewVariantBoolean, libs, "g_variant_new_boolean") | |||
| 2912 | - | core.PuregoSafeRegister(&xNewVariantByte, libs, "g_variant_new_byte") | |||
| 2913 | - | core.PuregoSafeRegister(&xNewVariantBytestring, libs, "g_variant_new_bytestring") | |||
| 2914 | - | core.PuregoSafeRegister(&xNewVariantBytestringArray, libs, "g_variant_new_bytestring_array") | |||
| 2915 | - | core.PuregoSafeRegister(&xNewVariantDictEntry, libs, "g_variant_new_dict_entry") | |||
| 2916 | - | core.PuregoSafeRegister(&xNewVariantDouble, libs, "g_variant_new_double") | |||
| 2917 | - | core.PuregoSafeRegister(&xNewVariantFixedArray, libs, "g_variant_new_fixed_array") | |||
| 2918 | - | core.PuregoSafeRegister(&xNewVariantFromBytes, libs, "g_variant_new_from_bytes") | |||
| 2919 | - | core.PuregoSafeRegister(&xNewVariantFromData, libs, "g_variant_new_from_data") | |||
| 2920 | - | core.PuregoSafeRegister(&xNewVariantHandle, libs, "g_variant_new_handle") | |||
| 2921 | - | core.PuregoSafeRegister(&xNewVariantInt16, libs, "g_variant_new_int16") | |||
| 2922 | - | core.PuregoSafeRegister(&xNewVariantInt32, libs, "g_variant_new_int32") | |||
| 2923 | - | core.PuregoSafeRegister(&xNewVariantInt64, libs, "g_variant_new_int64") | |||
| 2924 | - | core.PuregoSafeRegister(&xNewVariantMaybe, libs, "g_variant_new_maybe") | |||
| 2925 | - | core.PuregoSafeRegister(&xNewVariantObjectPath, libs, "g_variant_new_object_path") | |||
| 2926 | - | core.PuregoSafeRegister(&xNewVariantObjv, libs, "g_variant_new_objv") | |||
| 2927 | - | core.PuregoSafeRegister(&xNewVariantParsed, libs, "g_variant_new_parsed") | |||
| 2928 | - | core.PuregoSafeRegister(&xNewVariantParsedVa, libs, "g_variant_new_parsed_va") | |||
| 2929 | - | core.PuregoSafeRegister(&xNewVariantPrintf, libs, "g_variant_new_printf") | |||
| 2930 | - | core.PuregoSafeRegister(&xNewVariantSignature, libs, "g_variant_new_signature") | |||
| 2931 | - | core.PuregoSafeRegister(&xNewVariantString, libs, "g_variant_new_string") | |||
| 2932 | - | core.PuregoSafeRegister(&xNewVariantStrv, libs, "g_variant_new_strv") | |||
| 2933 | - | core.PuregoSafeRegister(&xNewVariantTakeString, libs, "g_variant_new_take_string") | |||
| 2934 | - | core.PuregoSafeRegister(&xNewVariantTuple, libs, "g_variant_new_tuple") | |||
| 2935 | - | core.PuregoSafeRegister(&xNewVariantUint16, libs, "g_variant_new_uint16") | |||
| 2936 | - | core.PuregoSafeRegister(&xNewVariantUint32, libs, "g_variant_new_uint32") | |||
| 2937 | - | core.PuregoSafeRegister(&xNewVariantUint64, libs, "g_variant_new_uint64") | |||
| 2938 | - | core.PuregoSafeRegister(&xNewVariantVa, libs, "g_variant_new_va") | |||
| 2939 | - | core.PuregoSafeRegister(&xNewVariantVariant, libs, "g_variant_new_variant") | |||
| 2940 | - | ||||
| 2941 | - | core.PuregoSafeRegister(&xVariantByteswap, libs, "g_variant_byteswap") | |||
| 2942 | - | core.PuregoSafeRegister(&xVariantCheckFormatString, libs, "g_variant_check_format_string") | |||
| 2943 | - | core.PuregoSafeRegister(&xVariantClassify, libs, "g_variant_classify") | |||
| 2944 | - | core.PuregoSafeRegister(&xVariantCompare, libs, "g_variant_compare") | |||
| 2945 | - | core.PuregoSafeRegister(&xVariantDupBytestring, libs, "g_variant_dup_bytestring") | |||
| 2946 | - | core.PuregoSafeRegister(&xVariantDupBytestringArray, libs, "g_variant_dup_bytestring_array") | |||
| 2947 | - | core.PuregoSafeRegister(&xVariantDupObjv, libs, "g_variant_dup_objv") | |||
| 2948 | - | core.PuregoSafeRegister(&xVariantDupString, libs, "g_variant_dup_string") | |||
| 2949 | - | core.PuregoSafeRegister(&xVariantDupStrv, libs, "g_variant_dup_strv") | |||
| 2950 | - | core.PuregoSafeRegister(&xVariantEqual, libs, "g_variant_equal") | |||
| 2951 | - | core.PuregoSafeRegister(&xVariantGet, libs, "g_variant_get") | |||
| 2952 | - | core.PuregoSafeRegister(&xVariantGetBoolean, libs, "g_variant_get_boolean") | |||
| 2953 | - | core.PuregoSafeRegister(&xVariantGetByte, libs, "g_variant_get_byte") | |||
| 2954 | - | core.PuregoSafeRegister(&xVariantGetBytestring, libs, "g_variant_get_bytestring") | |||
| 2955 | - | core.PuregoSafeRegister(&xVariantGetBytestringArray, libs, "g_variant_get_bytestring_array") | |||
| 2956 | - | core.PuregoSafeRegister(&xVariantGetChild, libs, "g_variant_get_child") | |||
| 2957 | - | core.PuregoSafeRegister(&xVariantGetChildValue, libs, "g_variant_get_child_value") | |||
| 2958 | - | core.PuregoSafeRegister(&xVariantGetData, libs, "g_variant_get_data") | |||
| 2959 | - | core.PuregoSafeRegister(&xVariantGetDataAsBytes, libs, "g_variant_get_data_as_bytes") | |||
| 2960 | - | core.PuregoSafeRegister(&xVariantGetDouble, libs, "g_variant_get_double") | |||
| 2961 | - | core.PuregoSafeRegister(&xVariantGetFixedArray, libs, "g_variant_get_fixed_array") | |||
| 2962 | - | core.PuregoSafeRegister(&xVariantGetHandle, libs, "g_variant_get_handle") | |||
| 2963 | - | core.PuregoSafeRegister(&xVariantGetInt16, libs, "g_variant_get_int16") | |||
| 2964 | - | core.PuregoSafeRegister(&xVariantGetInt32, libs, "g_variant_get_int32") | |||
| 2965 | - | core.PuregoSafeRegister(&xVariantGetInt64, libs, "g_variant_get_int64") | |||
| 2966 | - | core.PuregoSafeRegister(&xVariantGetMaybe, libs, "g_variant_get_maybe") | |||
| 2967 | - | core.PuregoSafeRegister(&xVariantGetNormalForm, libs, "g_variant_get_normal_form") | |||
| 2968 | - | core.PuregoSafeRegister(&xVariantGetObjv, libs, "g_variant_get_objv") | |||
| 2969 | - | core.PuregoSafeRegister(&xVariantGetSize, libs, "g_variant_get_size") | |||
| 2970 | - | core.PuregoSafeRegister(&xVariantGetString, libs, "g_variant_get_string") | |||
| 2971 | - | core.PuregoSafeRegister(&xVariantGetStrv, libs, "g_variant_get_strv") | |||
| 2972 | - | core.PuregoSafeRegister(&xVariantGetType, libs, "g_variant_get_type") | |||
| 2973 | - | core.PuregoSafeRegister(&xVariantGetTypeString, libs, "g_variant_get_type_string") | |||
| 2974 | - | core.PuregoSafeRegister(&xVariantGetUint16, libs, "g_variant_get_uint16") | |||
| 2975 | - | core.PuregoSafeRegister(&xVariantGetUint32, libs, "g_variant_get_uint32") | |||
| 2976 | - | core.PuregoSafeRegister(&xVariantGetUint64, libs, "g_variant_get_uint64") | |||
| 2977 | - | core.PuregoSafeRegister(&xVariantGetVa, libs, "g_variant_get_va") | |||
| 2978 | - | core.PuregoSafeRegister(&xVariantGetVariant, libs, "g_variant_get_variant") | |||
| 2979 | - | core.PuregoSafeRegister(&xVariantHash, libs, "g_variant_hash") | |||
| 2980 | - | core.PuregoSafeRegister(&xVariantIsContainer, libs, "g_variant_is_container") | |||
| 2981 | - | core.PuregoSafeRegister(&xVariantIsFloating, libs, "g_variant_is_floating") | |||
| 2982 | - | core.PuregoSafeRegister(&xVariantIsNormalForm, libs, "g_variant_is_normal_form") | |||
| 2983 | - | core.PuregoSafeRegister(&xVariantIsOfType, libs, "g_variant_is_of_type") | |||
| 2984 | - | core.PuregoSafeRegister(&xVariantIterNew, libs, "g_variant_iter_new") | |||
| 2985 | - | core.PuregoSafeRegister(&xVariantLookup, libs, "g_variant_lookup") | |||
| 2986 | - | core.PuregoSafeRegister(&xVariantLookupValue, libs, "g_variant_lookup_value") | |||
| 2987 | - | core.PuregoSafeRegister(&xVariantNChildren, libs, "g_variant_n_children") | |||
| 2988 | - | core.PuregoSafeRegister(&xVariantPrint, libs, "g_variant_print") | |||
| 2989 | - | core.PuregoSafeRegister(&xVariantPrintString, libs, "g_variant_print_string") | |||
| 2990 | - | core.PuregoSafeRegister(&xVariantRef, libs, "g_variant_ref") | |||
| 2991 | - | core.PuregoSafeRegister(&xVariantRefSink, libs, "g_variant_ref_sink") | |||
| 2992 | - | core.PuregoSafeRegister(&xVariantStore, libs, "g_variant_store") | |||
| 2993 | - | core.PuregoSafeRegister(&xVariantTakeRef, libs, "g_variant_take_ref") | |||
| 2994 | - | core.PuregoSafeRegister(&xVariantUnref, libs, "g_variant_unref") | |||
| 2995 | - | ||||
| 2996 | - | core.PuregoSafeRegister(&xVariantBuilderGLibType, libs, "g_variant_builder_get_type") | |||
| 2997 | - | ||||
| 2998 | - | core.PuregoSafeRegister(&xNewVariantBuilder, libs, "g_variant_builder_new") | |||
| 2999 | - | ||||
| 3000 | - | core.PuregoSafeRegister(&xVariantBuilderAdd, libs, "g_variant_builder_add") | |||
| 3001 | - | core.PuregoSafeRegister(&xVariantBuilderAddParsed, libs, "g_variant_builder_add_parsed") | |||
| 3002 | - | core.PuregoSafeRegister(&xVariantBuilderAddValue, libs, "g_variant_builder_add_value") | |||
| 3003 | - | core.PuregoSafeRegister(&xVariantBuilderClear, libs, "g_variant_builder_clear") | |||
| 3004 | - | core.PuregoSafeRegister(&xVariantBuilderClose, libs, "g_variant_builder_close") | |||
| 3005 | - | core.PuregoSafeRegister(&xVariantBuilderEnd, libs, "g_variant_builder_end") | |||
| 3006 | - | core.PuregoSafeRegister(&xVariantBuilderInit, libs, "g_variant_builder_init") | |||
| 3007 | - | core.PuregoSafeRegister(&xVariantBuilderInitStatic, libs, "g_variant_builder_init_static") | |||
| 3008 | - | core.PuregoSafeRegister(&xVariantBuilderOpen, libs, "g_variant_builder_open") | |||
| 3009 | - | core.PuregoSafeRegister(&xVariantBuilderRef, libs, "g_variant_builder_ref") | |||
| 3010 | - | core.PuregoSafeRegister(&xVariantBuilderUnref, libs, "g_variant_builder_unref") | |||
| 3011 | - | ||||
| 3012 | - | core.PuregoSafeRegister(&xVariantDictGLibType, libs, "g_variant_dict_get_type") | |||
| 3013 | - | ||||
| 3014 | - | core.PuregoSafeRegister(&xNewVariantDict, libs, "g_variant_dict_new") | |||
| 3015 | - | ||||
| 3016 | - | core.PuregoSafeRegister(&xVariantDictClear, libs, "g_variant_dict_clear") | |||
| 3017 | - | core.PuregoSafeRegister(&xVariantDictContains, libs, "g_variant_dict_contains") | |||
| 3018 | - | core.PuregoSafeRegister(&xVariantDictEnd, libs, "g_variant_dict_end") | |||
| 3019 | - | core.PuregoSafeRegister(&xVariantDictInit, libs, "g_variant_dict_init") | |||
| 3020 | - | core.PuregoSafeRegister(&xVariantDictInsert, libs, "g_variant_dict_insert") | |||
| 3021 | - | core.PuregoSafeRegister(&xVariantDictInsertValue, libs, "g_variant_dict_insert_value") | |||
| 3022 | - | core.PuregoSafeRegister(&xVariantDictLookup, libs, "g_variant_dict_lookup") | |||
| 3023 | - | core.PuregoSafeRegister(&xVariantDictLookupValue, libs, "g_variant_dict_lookup_value") | |||
| 3024 | - | core.PuregoSafeRegister(&xVariantDictRef, libs, "g_variant_dict_ref") | |||
| 3025 | - | core.PuregoSafeRegister(&xVariantDictRemove, libs, "g_variant_dict_remove") | |||
| 3026 | - | core.PuregoSafeRegister(&xVariantDictUnref, libs, "g_variant_dict_unref") | |||
| 3027 | - | ||||
| 3028 | - | core.PuregoSafeRegister(&xVariantIterCopy, libs, "g_variant_iter_copy") | |||
| 3029 | - | core.PuregoSafeRegister(&xVariantIterFree, libs, "g_variant_iter_free") | |||
| 3030 | - | core.PuregoSafeRegister(&xVariantIterInit, libs, "g_variant_iter_init") | |||
| 3031 | - | core.PuregoSafeRegister(&xVariantIterLoop, libs, "g_variant_iter_loop") | |||
| 3032 | - | core.PuregoSafeRegister(&xVariantIterNChildren, libs, "g_variant_iter_n_children") | |||
| 3033 | - | core.PuregoSafeRegister(&xVariantIterNext, libs, "g_variant_iter_next") | |||
| 3034 | - | core.PuregoSafeRegister(&xVariantIterNextValue, libs, "g_variant_iter_next_value") | |||
| 3035 | } | 3134 | } | ||