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
| @@ -1,7 +1,10 @@ | |||
| 1 | 1 | // Package gio was automatically generated by github.com/bnema/puregotk DO NOT EDIT | |
| 2 | 2 | package gio | |
| 3 | 3 | ||
| 4 | - | import "github.com/bnema/puregotk/v4/gobject/types" | |
| 4 | + | import ( | |
| 5 | + | "github.com/bnema/puregotk/pkg/core" | |
| 6 | + | "github.com/bnema/puregotk/v4/gobject/types" | |
| 7 | + | ) | |
| 5 | 8 | ||
| 6 | 9 | // Flags used when creating a #GAppInfo. | |
| 7 | 10 | type AppInfoCreateFlags int | |
| @@ -9,6 +12,7 @@ type AppInfoCreateFlags int | |||
| 9 | 12 | var xAppInfoCreateFlagsGLibType func() types.GType | |
| 10 | 13 | ||
| 11 | 14 | func AppInfoCreateFlagsGLibType() types.GType { | |
| 15 | + | core.LazyRegister(&xAppInfoCreateFlagsGLibType, "GIO", "g_app_info_create_flags_get_type", false) | |
| 12 | 16 | return xAppInfoCreateFlagsGLibType() | |
| 13 | 17 | } | |
| 14 | 18 | ||
| @@ -30,6 +34,7 @@ type ApplicationFlags int | |||
| 30 | 34 | var xApplicationFlagsGLibType func() types.GType | |
| 31 | 35 | ||
| 32 | 36 | func ApplicationFlagsGLibType() types.GType { | |
| 37 | + | core.LazyRegister(&xApplicationFlagsGLibType, "GIO", "g_application_flags_get_type", false) | |
| 33 | 38 | return xApplicationFlagsGLibType() | |
| 34 | 39 | } | |
| 35 | 40 | ||
| @@ -94,6 +99,7 @@ type AskPasswordFlags int | |||
| 94 | 99 | var xAskPasswordFlagsGLibType func() types.GType | |
| 95 | 100 | ||
| 96 | 101 | func AskPasswordFlagsGLibType() types.GType { | |
| 102 | + | core.LazyRegister(&xAskPasswordFlagsGLibType, "GIO", "g_ask_password_flags_get_type", false) | |
| 97 | 103 | return xAskPasswordFlagsGLibType() | |
| 98 | 104 | } | |
| 99 | 105 | ||
| @@ -119,6 +125,7 @@ type BusNameOwnerFlags int | |||
| 119 | 125 | var xBusNameOwnerFlagsGLibType func() types.GType | |
| 120 | 126 | ||
| 121 | 127 | func BusNameOwnerFlagsGLibType() types.GType { | |
| 128 | + | core.LazyRegister(&xBusNameOwnerFlagsGLibType, "GIO", "g_bus_name_owner_flags_get_type", false) | |
| 122 | 129 | return xBusNameOwnerFlagsGLibType() | |
| 123 | 130 | } | |
| 124 | 131 | ||
| @@ -143,6 +150,7 @@ type BusNameWatcherFlags int | |||
| 143 | 150 | var xBusNameWatcherFlagsGLibType func() types.GType | |
| 144 | 151 | ||
| 145 | 152 | func BusNameWatcherFlagsGLibType() types.GType { | |
| 153 | + | core.LazyRegister(&xBusNameWatcherFlagsGLibType, "GIO", "g_bus_name_watcher_flags_get_type", false) | |
| 146 | 154 | return xBusNameWatcherFlagsGLibType() | |
| 147 | 155 | } | |
| 148 | 156 | ||
| @@ -162,6 +170,7 @@ type ConverterFlags int | |||
| 162 | 170 | var xConverterFlagsGLibType func() types.GType | |
| 163 | 171 | ||
| 164 | 172 | func ConverterFlagsGLibType() types.GType { | |
| 173 | + | core.LazyRegister(&xConverterFlagsGLibType, "GIO", "g_converter_flags_get_type", false) | |
| 165 | 174 | return xConverterFlagsGLibType() | |
| 166 | 175 | } | |
| 167 | 176 | ||
| @@ -181,6 +190,7 @@ type DBusCallFlags int | |||
| 181 | 190 | var xDBusCallFlagsGLibType func() types.GType | |
| 182 | 191 | ||
| 183 | 192 | func DBusCallFlagsGLibType() types.GType { | |
| 193 | + | core.LazyRegister(&xDBusCallFlagsGLibType, "GIO", "g_dbus_call_flags_get_type", false) | |
| 184 | 194 | return xDBusCallFlagsGLibType() | |
| 185 | 195 | } | |
| 186 | 196 | ||
| @@ -203,6 +213,7 @@ type DBusCapabilityFlags int | |||
| 203 | 213 | var xDBusCapabilityFlagsGLibType func() types.GType | |
| 204 | 214 | ||
| 205 | 215 | func DBusCapabilityFlagsGLibType() types.GType { | |
| 216 | + | core.LazyRegister(&xDBusCapabilityFlagsGLibType, "GIO", "g_dbus_capability_flags_get_type", false) | |
| 206 | 217 | return xDBusCapabilityFlagsGLibType() | |
| 207 | 218 | } | |
| 208 | 219 | ||
| @@ -221,6 +232,7 @@ type DBusConnectionFlags int | |||
| 221 | 232 | var xDBusConnectionFlagsGLibType func() types.GType | |
| 222 | 233 | ||
| 223 | 234 | func DBusConnectionFlagsGLibType() types.GType { | |
| 235 | + | core.LazyRegister(&xDBusConnectionFlagsGLibType, "GIO", "g_dbus_connection_flags_get_type", false) | |
| 224 | 236 | return xDBusConnectionFlagsGLibType() | |
| 225 | 237 | } | |
| 226 | 238 | ||
| @@ -260,6 +272,7 @@ type DBusInterfaceSkeletonFlags int | |||
| 260 | 272 | var xDBusInterfaceSkeletonFlagsGLibType func() types.GType | |
| 261 | 273 | ||
| 262 | 274 | func DBusInterfaceSkeletonFlagsGLibType() types.GType { | |
| 275 | + | core.LazyRegister(&xDBusInterfaceSkeletonFlagsGLibType, "GIO", "g_dbus_interface_skeleton_flags_get_type", false) | |
| 263 | 276 | return xDBusInterfaceSkeletonFlagsGLibType() | |
| 264 | 277 | } | |
| 265 | 278 | ||
| @@ -280,6 +293,7 @@ type DBusMessageFlags int | |||
| 280 | 293 | var xDBusMessageFlagsGLibType func() types.GType | |
| 281 | 294 | ||
| 282 | 295 | func DBusMessageFlagsGLibType() types.GType { | |
| 296 | + | core.LazyRegister(&xDBusMessageFlagsGLibType, "GIO", "g_dbus_message_flags_get_type", false) | |
| 283 | 297 | return xDBusMessageFlagsGLibType() | |
| 284 | 298 | } | |
| 285 | 299 | ||
| @@ -304,6 +318,7 @@ type DBusObjectManagerClientFlags int | |||
| 304 | 318 | var xDBusObjectManagerClientFlagsGLibType func() types.GType | |
| 305 | 319 | ||
| 306 | 320 | func DBusObjectManagerClientFlagsGLibType() types.GType { | |
| 321 | + | core.LazyRegister(&xDBusObjectManagerClientFlagsGLibType, "GIO", "g_dbus_object_manager_client_flags_get_type", false) | |
| 307 | 322 | return xDBusObjectManagerClientFlagsGLibType() | |
| 308 | 323 | } | |
| 309 | 324 | ||
| @@ -324,6 +339,7 @@ type DBusPropertyInfoFlags int | |||
| 324 | 339 | var xDBusPropertyInfoFlagsGLibType func() types.GType | |
| 325 | 340 | ||
| 326 | 341 | func DBusPropertyInfoFlagsGLibType() types.GType { | |
| 342 | + | core.LazyRegister(&xDBusPropertyInfoFlagsGLibType, "GIO", "g_dbus_property_info_flags_get_type", false) | |
| 327 | 343 | return xDBusPropertyInfoFlagsGLibType() | |
| 328 | 344 | } | |
| 329 | 345 | ||
| @@ -343,6 +359,7 @@ type DBusProxyFlags int | |||
| 343 | 359 | var xDBusProxyFlagsGLibType func() types.GType | |
| 344 | 360 | ||
| 345 | 361 | func DBusProxyFlagsGLibType() types.GType { | |
| 362 | + | core.LazyRegister(&xDBusProxyFlagsGLibType, "GIO", "g_dbus_proxy_flags_get_type", false) | |
| 346 | 363 | return xDBusProxyFlagsGLibType() | |
| 347 | 364 | } | |
| 348 | 365 | ||
| @@ -377,6 +394,7 @@ type DBusSendMessageFlags int | |||
| 377 | 394 | var xDBusSendMessageFlagsGLibType func() types.GType | |
| 378 | 395 | ||
| 379 | 396 | func DBusSendMessageFlagsGLibType() types.GType { | |
| 397 | + | core.LazyRegister(&xDBusSendMessageFlagsGLibType, "GIO", "g_dbus_send_message_flags_get_type", false) | |
| 380 | 398 | return xDBusSendMessageFlagsGLibType() | |
| 381 | 399 | } | |
| 382 | 400 | ||
| @@ -396,6 +414,7 @@ type DBusServerFlags int | |||
| 396 | 414 | var xDBusServerFlagsGLibType func() types.GType | |
| 397 | 415 | ||
| 398 | 416 | func DBusServerFlagsGLibType() types.GType { | |
| 417 | + | core.LazyRegister(&xDBusServerFlagsGLibType, "GIO", "g_dbus_server_flags_get_type", false) | |
| 399 | 418 | return xDBusServerFlagsGLibType() | |
| 400 | 419 | } | |
| 401 | 420 | ||
| @@ -421,6 +440,7 @@ type DBusSignalFlags int | |||
| 421 | 440 | var xDBusSignalFlagsGLibType func() types.GType | |
| 422 | 441 | ||
| 423 | 442 | func DBusSignalFlagsGLibType() types.GType { | |
| 443 | + | core.LazyRegister(&xDBusSignalFlagsGLibType, "GIO", "g_dbus_signal_flags_get_type", false) | |
| 424 | 444 | return xDBusSignalFlagsGLibType() | |
| 425 | 445 | } | |
| 426 | 446 | ||
| @@ -447,6 +467,7 @@ type DBusSubtreeFlags int | |||
| 447 | 467 | var xDBusSubtreeFlagsGLibType func() types.GType | |
| 448 | 468 | ||
| 449 | 469 | func DBusSubtreeFlagsGLibType() types.GType { | |
| 470 | + | core.LazyRegister(&xDBusSubtreeFlagsGLibType, "GIO", "g_dbus_subtree_flags_get_type", false) | |
| 450 | 471 | return xDBusSubtreeFlagsGLibType() | |
| 451 | 472 | } | |
| 452 | 473 | ||
| @@ -466,6 +487,7 @@ type DriveStartFlags int | |||
| 466 | 487 | var xDriveStartFlagsGLibType func() types.GType | |
| 467 | 488 | ||
| 468 | 489 | func DriveStartFlagsGLibType() types.GType { | |
| 490 | + | core.LazyRegister(&xDriveStartFlagsGLibType, "GIO", "g_drive_start_flags_get_type", false) | |
| 469 | 491 | return xDriveStartFlagsGLibType() | |
| 470 | 492 | } | |
| 471 | 493 | ||
| @@ -481,6 +503,7 @@ type FileAttributeInfoFlags int | |||
| 481 | 503 | var xFileAttributeInfoFlagsGLibType func() types.GType | |
| 482 | 504 | ||
| 483 | 505 | func FileAttributeInfoFlagsGLibType() types.GType { | |
| 506 | + | core.LazyRegister(&xFileAttributeInfoFlagsGLibType, "GIO", "g_file_attribute_info_flags_get_type", false) | |
| 484 | 507 | return xFileAttributeInfoFlagsGLibType() | |
| 485 | 508 | } | |
| 486 | 509 | ||
| @@ -500,6 +523,7 @@ type FileCopyFlags int | |||
| 500 | 523 | var xFileCopyFlagsGLibType func() types.GType | |
| 501 | 524 | ||
| 502 | 525 | func FileCopyFlagsGLibType() types.GType { | |
| 526 | + | core.LazyRegister(&xFileCopyFlagsGLibType, "GIO", "g_file_copy_flags_get_type", false) | |
| 503 | 527 | return xFileCopyFlagsGLibType() | |
| 504 | 528 | } | |
| 505 | 529 | ||
| @@ -530,6 +554,7 @@ type FileCreateFlags int | |||
| 530 | 554 | var xFileCreateFlagsGLibType func() types.GType | |
| 531 | 555 | ||
| 532 | 556 | func FileCreateFlagsGLibType() types.GType { | |
| 557 | + | core.LazyRegister(&xFileCreateFlagsGLibType, "GIO", "g_file_create_flags_get_type", false) | |
| 533 | 558 | return xFileCreateFlagsGLibType() | |
| 534 | 559 | } | |
| 535 | 560 | ||
| @@ -559,6 +584,7 @@ type FileMeasureFlags int | |||
| 559 | 584 | var xFileMeasureFlagsGLibType func() types.GType | |
| 560 | 585 | ||
| 561 | 586 | func FileMeasureFlagsGLibType() types.GType { | |
| 587 | + | core.LazyRegister(&xFileMeasureFlagsGLibType, "GIO", "g_file_measure_flags_get_type", false) | |
| 562 | 588 | return xFileMeasureFlagsGLibType() | |
| 563 | 589 | } | |
| 564 | 590 | ||
| @@ -589,6 +615,7 @@ type FileMonitorFlags int | |||
| 589 | 615 | var xFileMonitorFlagsGLibType func() types.GType | |
| 590 | 616 | ||
| 591 | 617 | func FileMonitorFlagsGLibType() types.GType { | |
| 618 | + | core.LazyRegister(&xFileMonitorFlagsGLibType, "GIO", "g_file_monitor_flags_get_type", false) | |
| 592 | 619 | return xFileMonitorFlagsGLibType() | |
| 593 | 620 | } | |
| 594 | 621 | ||
| @@ -621,6 +648,7 @@ type FileQueryInfoFlags int | |||
| 621 | 648 | var xFileQueryInfoFlagsGLibType func() types.GType | |
| 622 | 649 | ||
| 623 | 650 | func FileQueryInfoFlagsGLibType() types.GType { | |
| 651 | + | core.LazyRegister(&xFileQueryInfoFlagsGLibType, "GIO", "g_file_query_info_flags_get_type", false) | |
| 624 | 652 | return xFileQueryInfoFlagsGLibType() | |
| 625 | 653 | } | |
| 626 | 654 | ||
| @@ -638,6 +666,7 @@ type IOModuleScopeFlags int | |||
| 638 | 666 | var xIOModuleScopeFlagsGLibType func() types.GType | |
| 639 | 667 | ||
| 640 | 668 | func IOModuleScopeFlagsGLibType() types.GType { | |
| 669 | + | core.LazyRegister(&xIOModuleScopeFlagsGLibType, "GIO", "g_io_module_scope_flags_get_type", false) | |
| 641 | 670 | return xIOModuleScopeFlagsGLibType() | |
| 642 | 671 | } | |
| 643 | 672 | ||
| @@ -657,6 +686,7 @@ type IOStreamSpliceFlags int | |||
| 657 | 686 | var xIOStreamSpliceFlagsGLibType func() types.GType | |
| 658 | 687 | ||
| 659 | 688 | func IOStreamSpliceFlagsGLibType() types.GType { | |
| 689 | + | core.LazyRegister(&xIOStreamSpliceFlagsGLibType, "GIO", "g_io_stream_splice_flags_get_type", false) | |
| 660 | 690 | return xIOStreamSpliceFlagsGLibType() | |
| 661 | 691 | } | |
| 662 | 692 | ||
| @@ -681,6 +711,7 @@ type MountMountFlags int | |||
| 681 | 711 | var xMountMountFlagsGLibType func() types.GType | |
| 682 | 712 | ||
| 683 | 713 | func MountMountFlagsGLibType() types.GType { | |
| 714 | + | core.LazyRegister(&xMountMountFlagsGLibType, "GIO", "g_mount_mount_flags_get_type", false) | |
| 684 | 715 | return xMountMountFlagsGLibType() | |
| 685 | 716 | } | |
| 686 | 717 | ||
| @@ -696,6 +727,7 @@ type MountUnmountFlags int | |||
| 696 | 727 | var xMountUnmountFlagsGLibType func() types.GType | |
| 697 | 728 | ||
| 698 | 729 | func MountUnmountFlagsGLibType() types.GType { | |
| 730 | + | core.LazyRegister(&xMountUnmountFlagsGLibType, "GIO", "g_mount_unmount_flags_get_type", false) | |
| 699 | 731 | return xMountUnmountFlagsGLibType() | |
| 700 | 732 | } | |
| 701 | 733 | ||
| @@ -714,6 +746,7 @@ type OutputStreamSpliceFlags int | |||
| 714 | 746 | var xOutputStreamSpliceFlagsGLibType func() types.GType | |
| 715 | 747 | ||
| 716 | 748 | func OutputStreamSpliceFlagsGLibType() types.GType { | |
| 749 | + | core.LazyRegister(&xOutputStreamSpliceFlagsGLibType, "GIO", "g_output_stream_splice_flags_get_type", false) | |
| 717 | 750 | return xOutputStreamSpliceFlagsGLibType() | |
| 718 | 751 | } | |
| 719 | 752 | ||
| @@ -736,6 +769,7 @@ type ResourceFlags int | |||
| 736 | 769 | var xResourceFlagsGLibType func() types.GType | |
| 737 | 770 | ||
| 738 | 771 | func ResourceFlagsGLibType() types.GType { | |
| 772 | + | core.LazyRegister(&xResourceFlagsGLibType, "GIO", "g_resource_flags_get_type", false) | |
| 739 | 773 | return xResourceFlagsGLibType() | |
| 740 | 774 | } | |
| 741 | 775 | ||
| @@ -753,6 +787,7 @@ type ResourceLookupFlags int | |||
| 753 | 787 | var xResourceLookupFlagsGLibType func() types.GType | |
| 754 | 788 | ||
| 755 | 789 | func ResourceLookupFlagsGLibType() types.GType { | |
| 790 | + | core.LazyRegister(&xResourceLookupFlagsGLibType, "GIO", "g_resource_lookup_flags_get_type", false) | |
| 756 | 791 | return xResourceLookupFlagsGLibType() | |
| 757 | 792 | } | |
| 758 | 793 | ||
| @@ -772,6 +807,7 @@ type SocketMsgFlags int | |||
| 772 | 807 | var xSocketMsgFlagsGLibType func() types.GType | |
| 773 | 808 | ||
| 774 | 809 | func SocketMsgFlagsGLibType() types.GType { | |
| 810 | + | core.LazyRegister(&xSocketMsgFlagsGLibType, "GIO", "g_socket_msg_flags_get_type", false) | |
| 775 | 811 | return xSocketMsgFlagsGLibType() | |
| 776 | 812 | } | |
| 777 | 813 | ||
| @@ -803,6 +839,7 @@ type SubprocessFlags int | |||
| 803 | 839 | var xSubprocessFlagsGLibType func() types.GType | |
| 804 | 840 | ||
| 805 | 841 | func SubprocessFlagsGLibType() types.GType { | |
| 842 | + | core.LazyRegister(&xSubprocessFlagsGLibType, "GIO", "g_subprocess_flags_get_type", false) | |
| 806 | 843 | return xSubprocessFlagsGLibType() | |
| 807 | 844 | } | |
| 808 | 845 | ||
| @@ -852,6 +889,7 @@ type TestDBusFlags int | |||
| 852 | 889 | var xTestDBusFlagsGLibType func() types.GType | |
| 853 | 890 | ||
| 854 | 891 | func TestDBusFlagsGLibType() types.GType { | |
| 892 | + | core.LazyRegister(&xTestDBusFlagsGLibType, "GIO", "g_test_dbus_flags_get_type", false) | |
| 855 | 893 | return xTestDBusFlagsGLibType() | |
| 856 | 894 | } | |
| 857 | 895 | ||
| @@ -877,6 +915,7 @@ type TlsCertificateFlags int | |||
| 877 | 915 | var xTlsCertificateFlagsGLibType func() types.GType | |
| 878 | 916 | ||
| 879 | 917 | func TlsCertificateFlagsGLibType() types.GType { | |
| 918 | + | core.LazyRegister(&xTlsCertificateFlagsGLibType, "GIO", "g_tls_certificate_flags_get_type", false) | |
| 880 | 919 | return xTlsCertificateFlagsGLibType() | |
| 881 | 920 | } | |
| 882 | 921 | ||
| @@ -917,6 +956,7 @@ type TlsCertificateRequestFlags int | |||
| 917 | 956 | var xTlsCertificateRequestFlagsGLibType func() types.GType | |
| 918 | 957 | ||
| 919 | 958 | func TlsCertificateRequestFlagsGLibType() types.GType { | |
| 959 | + | core.LazyRegister(&xTlsCertificateRequestFlagsGLibType, "GIO", "g_tls_certificate_request_flags_get_type", false) | |
| 920 | 960 | return xTlsCertificateRequestFlagsGLibType() | |
| 921 | 961 | } | |
| 922 | 962 | ||
| @@ -934,6 +974,7 @@ type TlsDatabaseLookupFlags int | |||
| 934 | 974 | var xTlsDatabaseLookupFlagsGLibType func() types.GType | |
| 935 | 975 | ||
| 936 | 976 | func TlsDatabaseLookupFlagsGLibType() types.GType { | |
| 977 | + | core.LazyRegister(&xTlsDatabaseLookupFlagsGLibType, "GIO", "g_tls_database_lookup_flags_get_type", false) | |
| 937 | 978 | return xTlsDatabaseLookupFlagsGLibType() | |
| 938 | 979 | } | |
| 939 | 980 | ||
| @@ -952,6 +993,7 @@ type TlsDatabaseVerifyFlags int | |||
| 952 | 993 | var xTlsDatabaseVerifyFlagsGLibType func() types.GType | |
| 953 | 994 | ||
| 954 | 995 | func TlsDatabaseVerifyFlagsGLibType() types.GType { | |
| 996 | + | core.LazyRegister(&xTlsDatabaseVerifyFlagsGLibType, "GIO", "g_tls_database_verify_flags_get_type", false) | |
| 955 | 997 | return xTlsDatabaseVerifyFlagsGLibType() | |
| 956 | 998 | } | |
| 957 | 999 | ||
| @@ -967,6 +1009,7 @@ type TlsPasswordFlags int | |||
| 967 | 1009 | var xTlsPasswordFlagsGLibType func() types.GType | |
| 968 | 1010 | ||
| 969 | 1011 | func TlsPasswordFlagsGLibType() types.GType { | |
| 1012 | + | core.LazyRegister(&xTlsPasswordFlagsGLibType, "GIO", "g_tls_password_flags_get_type", false) | |
| 970 | 1013 | return xTlsPasswordFlagsGLibType() | |
| 971 | 1014 | } | |
| 972 | 1015 | ||
| @@ -999,6 +1042,7 @@ type BusType int | |||
| 999 | 1042 | var xBusTypeGLibType func() types.GType | |
| 1000 | 1043 | ||
| 1001 | 1044 | func BusTypeGLibType() types.GType { | |
| 1045 | + | core.LazyRegister(&xBusTypeGLibType, "GIO", "g_bus_type_get_type", false) | |
| 1002 | 1046 | return xBusTypeGLibType() | |
| 1003 | 1047 | } | |
| 1004 | 1048 | ||
| @@ -1020,6 +1064,7 @@ type ConverterResult int | |||
| 1020 | 1064 | var xConverterResultGLibType func() types.GType | |
| 1021 | 1065 | ||
| 1022 | 1066 | func ConverterResultGLibType() types.GType { | |
| 1067 | + | core.LazyRegister(&xConverterResultGLibType, "GIO", "g_converter_result_get_type", false) | |
| 1023 | 1068 | return xConverterResultGLibType() | |
| 1024 | 1069 | } | |
| 1025 | 1070 | ||
| @@ -1041,6 +1086,7 @@ type CredentialsType int | |||
| 1041 | 1086 | var xCredentialsTypeGLibType func() types.GType | |
| 1042 | 1087 | ||
| 1043 | 1088 | func CredentialsTypeGLibType() types.GType { | |
| 1089 | + | core.LazyRegister(&xCredentialsTypeGLibType, "GIO", "g_credentials_type_get_type", false) | |
| 1044 | 1090 | return xCredentialsTypeGLibType() | |
| 1045 | 1091 | } | |
| 1046 | 1092 | ||
| @@ -1070,6 +1116,7 @@ type DBusError int | |||
| 1070 | 1116 | var xDBusErrorGLibType func() types.GType | |
| 1071 | 1117 | ||
| 1072 | 1118 | func DBusErrorGLibType() types.GType { | |
| 1119 | + | core.LazyRegister(&xDBusErrorGLibType, "GIO", "g_dbus_error_get_type", false) | |
| 1073 | 1120 | return xDBusErrorGLibType() | |
| 1074 | 1121 | } | |
| 1075 | 1122 | ||
| @@ -1183,6 +1230,7 @@ type DBusMessageByteOrder int | |||
| 1183 | 1230 | var xDBusMessageByteOrderGLibType func() types.GType | |
| 1184 | 1231 | ||
| 1185 | 1232 | func DBusMessageByteOrderGLibType() types.GType { | |
| 1233 | + | core.LazyRegister(&xDBusMessageByteOrderGLibType, "GIO", "g_dbus_message_byte_order_get_type", false) | |
| 1186 | 1234 | return xDBusMessageByteOrderGLibType() | |
| 1187 | 1235 | } | |
| 1188 | 1236 | ||
| @@ -1200,6 +1248,7 @@ type DBusMessageHeaderField int | |||
| 1200 | 1248 | var xDBusMessageHeaderFieldGLibType func() types.GType | |
| 1201 | 1249 | ||
| 1202 | 1250 | func DBusMessageHeaderFieldGLibType() types.GType { | |
| 1251 | + | core.LazyRegister(&xDBusMessageHeaderFieldGLibType, "GIO", "g_dbus_message_header_field_get_type", false) | |
| 1203 | 1252 | return xDBusMessageHeaderFieldGLibType() | |
| 1204 | 1253 | } | |
| 1205 | 1254 | ||
| @@ -1233,6 +1282,7 @@ type DBusMessageType int | |||
| 1233 | 1282 | var xDBusMessageTypeGLibType func() types.GType | |
| 1234 | 1283 | ||
| 1235 | 1284 | func DBusMessageTypeGLibType() types.GType { | |
| 1285 | + | core.LazyRegister(&xDBusMessageTypeGLibType, "GIO", "g_dbus_message_type_get_type", false) | |
| 1236 | 1286 | return xDBusMessageTypeGLibType() | |
| 1237 | 1287 | } | |
| 1238 | 1288 | ||
| @@ -1257,6 +1307,7 @@ type DataStreamByteOrder int | |||
| 1257 | 1307 | var xDataStreamByteOrderGLibType func() types.GType | |
| 1258 | 1308 | ||
| 1259 | 1309 | func DataStreamByteOrderGLibType() types.GType { | |
| 1310 | + | core.LazyRegister(&xDataStreamByteOrderGLibType, "GIO", "g_data_stream_byte_order_get_type", false) | |
| 1260 | 1311 | return xDataStreamByteOrderGLibType() | |
| 1261 | 1312 | } | |
| 1262 | 1313 | ||
| @@ -1276,6 +1327,7 @@ type DataStreamNewlineType int | |||
| 1276 | 1327 | var xDataStreamNewlineTypeGLibType func() types.GType | |
| 1277 | 1328 | ||
| 1278 | 1329 | func DataStreamNewlineTypeGLibType() types.GType { | |
| 1330 | + | core.LazyRegister(&xDataStreamNewlineTypeGLibType, "GIO", "g_data_stream_newline_type_get_type", false) | |
| 1279 | 1331 | return xDataStreamNewlineTypeGLibType() | |
| 1280 | 1332 | } | |
| 1281 | 1333 | ||
| @@ -1297,6 +1349,7 @@ type DriveStartStopType int | |||
| 1297 | 1349 | var xDriveStartStopTypeGLibType func() types.GType | |
| 1298 | 1350 | ||
| 1299 | 1351 | func DriveStartStopTypeGLibType() types.GType { | |
| 1352 | + | core.LazyRegister(&xDriveStartStopTypeGLibType, "GIO", "g_drive_start_stop_type_get_type", false) | |
| 1300 | 1353 | return xDriveStartStopTypeGLibType() | |
| 1301 | 1354 | } | |
| 1302 | 1355 | ||
| @@ -1331,6 +1384,7 @@ type EcnCodePoint int | |||
| 1331 | 1384 | var xEcnCodePointGLibType func() types.GType | |
| 1332 | 1385 | ||
| 1333 | 1386 | func EcnCodePointGLibType() types.GType { | |
| 1387 | + | core.LazyRegister(&xEcnCodePointGLibType, "GIO", "g_ecn_code_point_get_type", false) | |
| 1334 | 1388 | return xEcnCodePointGLibType() | |
| 1335 | 1389 | } | |
| 1336 | 1390 | ||
| @@ -1353,6 +1407,7 @@ type EmblemOrigin int | |||
| 1353 | 1407 | var xEmblemOriginGLibType func() types.GType | |
| 1354 | 1408 | ||
| 1355 | 1409 | func EmblemOriginGLibType() types.GType { | |
| 1410 | + | core.LazyRegister(&xEmblemOriginGLibType, "GIO", "g_emblem_origin_get_type", false) | |
| 1356 | 1411 | return xEmblemOriginGLibType() | |
| 1357 | 1412 | } | |
| 1358 | 1413 | ||
| @@ -1374,6 +1429,7 @@ type FileAttributeStatus int | |||
| 1374 | 1429 | var xFileAttributeStatusGLibType func() types.GType | |
| 1375 | 1430 | ||
| 1376 | 1431 | func FileAttributeStatusGLibType() types.GType { | |
| 1432 | + | core.LazyRegister(&xFileAttributeStatusGLibType, "GIO", "g_file_attribute_status_get_type", false) | |
| 1377 | 1433 | return xFileAttributeStatusGLibType() | |
| 1378 | 1434 | } | |
| 1379 | 1435 | ||
| @@ -1393,6 +1449,7 @@ type FileAttributeType int | |||
| 1393 | 1449 | var xFileAttributeTypeGLibType func() types.GType | |
| 1394 | 1450 | ||
| 1395 | 1451 | func FileAttributeTypeGLibType() types.GType { | |
| 1452 | + | core.LazyRegister(&xFileAttributeTypeGLibType, "GIO", "g_file_attribute_type_get_type", false) | |
| 1396 | 1453 | return xFileAttributeTypeGLibType() | |
| 1397 | 1454 | } | |
| 1398 | 1455 | ||
| @@ -1426,6 +1483,7 @@ type FileMonitorEvent int | |||
| 1426 | 1483 | var xFileMonitorEventGLibType func() types.GType | |
| 1427 | 1484 | ||
| 1428 | 1485 | func FileMonitorEventGLibType() types.GType { | |
| 1486 | + | core.LazyRegister(&xFileMonitorEventGLibType, "GIO", "g_file_monitor_event_get_type", false) | |
| 1429 | 1487 | return xFileMonitorEventGLibType() | |
| 1430 | 1488 | } | |
| 1431 | 1489 | ||
| @@ -1477,6 +1535,7 @@ type FileType int | |||
| 1477 | 1535 | var xFileTypeGLibType func() types.GType | |
| 1478 | 1536 | ||
| 1479 | 1537 | func FileTypeGLibType() types.GType { | |
| 1538 | + | core.LazyRegister(&xFileTypeGLibType, "GIO", "g_file_type_get_type", false) | |
| 1480 | 1539 | return xFileTypeGLibType() | |
| 1481 | 1540 | } | |
| 1482 | 1541 | ||
| @@ -1508,6 +1567,7 @@ type FilesystemPreviewType int | |||
| 1508 | 1567 | var xFilesystemPreviewTypeGLibType func() types.GType | |
| 1509 | 1568 | ||
| 1510 | 1569 | func FilesystemPreviewTypeGLibType() types.GType { | |
| 1570 | + | core.LazyRegister(&xFilesystemPreviewTypeGLibType, "GIO", "g_filesystem_preview_type_get_type", false) | |
| 1511 | 1571 | return xFilesystemPreviewTypeGLibType() | |
| 1512 | 1572 | } | |
| 1513 | 1573 | ||
| @@ -1546,6 +1606,7 @@ type IOErrorEnum int | |||
| 1546 | 1606 | var xIOErrorEnumGLibType func() types.GType | |
| 1547 | 1607 | ||
| 1548 | 1608 | func IOErrorEnumGLibType() types.GType { | |
| 1609 | + | core.LazyRegister(&xIOErrorEnumGLibType, "GIO", "g_io_error_enum_get_type", false) | |
| 1549 | 1610 | return xIOErrorEnumGLibType() | |
| 1550 | 1611 | } | |
| 1551 | 1612 | ||
| @@ -1681,6 +1742,7 @@ type MemoryMonitorWarningLevel int | |||
| 1681 | 1742 | var xMemoryMonitorWarningLevelGLibType func() types.GType | |
| 1682 | 1743 | ||
| 1683 | 1744 | func MemoryMonitorWarningLevelGLibType() types.GType { | |
| 1745 | + | core.LazyRegister(&xMemoryMonitorWarningLevelGLibType, "GIO", "g_memory_monitor_warning_level_get_type", false) | |
| 1684 | 1746 | return xMemoryMonitorWarningLevelGLibType() | |
| 1685 | 1747 | } | |
| 1686 | 1748 | ||
| @@ -1707,6 +1769,7 @@ type MountOperationResult int | |||
| 1707 | 1769 | var xMountOperationResultGLibType func() types.GType | |
| 1708 | 1770 | ||
| 1709 | 1771 | func MountOperationResultGLibType() types.GType { | |
| 1772 | + | core.LazyRegister(&xMountOperationResultGLibType, "GIO", "g_mount_operation_result_get_type", false) | |
| 1710 | 1773 | return xMountOperationResultGLibType() | |
| 1711 | 1774 | } | |
| 1712 | 1775 | ||
| @@ -1729,6 +1792,7 @@ type NetworkConnectivity int | |||
| 1729 | 1792 | var xNetworkConnectivityGLibType func() types.GType | |
| 1730 | 1793 | ||
| 1731 | 1794 | func NetworkConnectivityGLibType() types.GType { | |
| 1795 | + | core.LazyRegister(&xNetworkConnectivityGLibType, "GIO", "g_network_connectivity_get_type", false) | |
| 1732 | 1796 | return xNetworkConnectivityGLibType() | |
| 1733 | 1797 | } | |
| 1734 | 1798 | ||
| @@ -1756,6 +1820,7 @@ type NotificationPriority int | |||
| 1756 | 1820 | var xNotificationPriorityGLibType func() types.GType | |
| 1757 | 1821 | ||
| 1758 | 1822 | func NotificationPriorityGLibType() types.GType { | |
| 1823 | + | core.LazyRegister(&xNotificationPriorityGLibType, "GIO", "g_notification_priority_get_type", false) | |
| 1759 | 1824 | return xNotificationPriorityGLibType() | |
| 1760 | 1825 | } | |
| 1761 | 1826 | ||
| @@ -1788,6 +1853,7 @@ type PasswordSave int | |||
| 1788 | 1853 | var xPasswordSaveGLibType func() types.GType | |
| 1789 | 1854 | ||
| 1790 | 1855 | func PasswordSaveGLibType() types.GType { | |
| 1856 | + | core.LazyRegister(&xPasswordSaveGLibType, "GIO", "g_password_save_get_type", false) | |
| 1791 | 1857 | return xPasswordSaveGLibType() | |
| 1792 | 1858 | } | |
| 1793 | 1859 | ||
| @@ -1815,6 +1881,7 @@ type PollableReturn int | |||
| 1815 | 1881 | var xPollableReturnGLibType func() types.GType | |
| 1816 | 1882 | ||
| 1817 | 1883 | func PollableReturnGLibType() types.GType { | |
| 1884 | + | core.LazyRegister(&xPollableReturnGLibType, "GIO", "g_pollable_return_get_type", false) | |
| 1818 | 1885 | return xPollableReturnGLibType() | |
| 1819 | 1886 | } | |
| 1820 | 1887 | ||
| @@ -1835,6 +1902,7 @@ type ResolverError int | |||
| 1835 | 1902 | var xResolverErrorGLibType func() types.GType | |
| 1836 | 1903 | ||
| 1837 | 1904 | func ResolverErrorGLibType() types.GType { | |
| 1905 | + | core.LazyRegister(&xResolverErrorGLibType, "GIO", "g_resolver_error_get_type", false) | |
| 1838 | 1906 | return xResolverErrorGLibType() | |
| 1839 | 1907 | } | |
| 1840 | 1908 | ||
| @@ -1885,6 +1953,7 @@ type ResolverRecordType int | |||
| 1885 | 1953 | var xResolverRecordTypeGLibType func() types.GType | |
| 1886 | 1954 | ||
| 1887 | 1955 | func ResolverRecordTypeGLibType() types.GType { | |
| 1956 | + | core.LazyRegister(&xResolverRecordTypeGLibType, "GIO", "g_resolver_record_type_get_type", false) | |
| 1888 | 1957 | return xResolverRecordTypeGLibType() | |
| 1889 | 1958 | } | |
| 1890 | 1959 | ||
| @@ -1909,6 +1978,7 @@ type ResourceError int | |||
| 1909 | 1978 | var xResourceErrorGLibType func() types.GType | |
| 1910 | 1979 | ||
| 1911 | 1980 | func ResourceErrorGLibType() types.GType { | |
| 1981 | + | core.LazyRegister(&xResourceErrorGLibType, "GIO", "g_resource_error_get_type", false) | |
| 1912 | 1982 | return xResourceErrorGLibType() | |
| 1913 | 1983 | } | |
| 1914 | 1984 | ||
| @@ -1929,6 +1999,7 @@ type SocketClientEvent int | |||
| 1929 | 1999 | var xSocketClientEventGLibType func() types.GType | |
| 1930 | 2000 | ||
| 1931 | 2001 | func SocketClientEventGLibType() types.GType { | |
| 2002 | + | core.LazyRegister(&xSocketClientEventGLibType, "GIO", "g_socket_client_event_get_type", false) | |
| 1932 | 2003 | return xSocketClientEventGLibType() | |
| 1933 | 2004 | } | |
| 1934 | 2005 | ||
| @@ -1969,6 +2040,7 @@ type SocketFamily int | |||
| 1969 | 2040 | var xSocketFamilyGLibType func() types.GType | |
| 1970 | 2041 | ||
| 1971 | 2042 | func SocketFamilyGLibType() types.GType { | |
| 2043 | + | core.LazyRegister(&xSocketFamilyGLibType, "GIO", "g_socket_family_get_type", false) | |
| 1972 | 2044 | return xSocketFamilyGLibType() | |
| 1973 | 2045 | } | |
| 1974 | 2046 | ||
| @@ -1993,6 +2065,7 @@ type SocketListenerEvent int | |||
| 1993 | 2065 | var xSocketListenerEventGLibType func() types.GType | |
| 1994 | 2066 | ||
| 1995 | 2067 | func SocketListenerEventGLibType() types.GType { | |
| 2068 | + | core.LazyRegister(&xSocketListenerEventGLibType, "GIO", "g_socket_listener_event_get_type", false) | |
| 1996 | 2069 | return xSocketListenerEventGLibType() | |
| 1997 | 2070 | } | |
| 1998 | 2071 | ||
| @@ -2022,6 +2095,7 @@ type SocketProtocol int | |||
| 2022 | 2095 | var xSocketProtocolGLibType func() types.GType | |
| 2023 | 2096 | ||
| 2024 | 2097 | func SocketProtocolGLibType() types.GType { | |
| 2098 | + | core.LazyRegister(&xSocketProtocolGLibType, "GIO", "g_socket_protocol_get_type", false) | |
| 2025 | 2099 | return xSocketProtocolGLibType() | |
| 2026 | 2100 | } | |
| 2027 | 2101 | ||
| @@ -2046,6 +2120,7 @@ type SocketType int | |||
| 2046 | 2120 | var xSocketTypeGLibType func() types.GType | |
| 2047 | 2121 | ||
| 2048 | 2122 | func SocketTypeGLibType() types.GType { | |
| 2123 | + | core.LazyRegister(&xSocketTypeGLibType, "GIO", "g_socket_type_get_type", false) | |
| 2049 | 2124 | return xSocketTypeGLibType() | |
| 2050 | 2125 | } | |
| 2051 | 2126 | ||
| @@ -2069,6 +2144,7 @@ type TlsAuthenticationMode int | |||
| 2069 | 2144 | var xTlsAuthenticationModeGLibType func() types.GType | |
| 2070 | 2145 | ||
| 2071 | 2146 | func TlsAuthenticationModeGLibType() types.GType { | |
| 2147 | + | core.LazyRegister(&xTlsAuthenticationModeGLibType, "GIO", "g_tls_authentication_mode_get_type", false) | |
| 2072 | 2148 | return xTlsAuthenticationModeGLibType() | |
| 2073 | 2149 | } | |
| 2074 | 2150 | ||
| @@ -2089,6 +2165,7 @@ type TlsChannelBindingError int | |||
| 2089 | 2165 | var xTlsChannelBindingErrorGLibType func() types.GType | |
| 2090 | 2166 | ||
| 2091 | 2167 | func TlsChannelBindingErrorGLibType() types.GType { | |
| 2168 | + | core.LazyRegister(&xTlsChannelBindingErrorGLibType, "GIO", "g_tls_channel_binding_error_get_type", false) | |
| 2092 | 2169 | return xTlsChannelBindingErrorGLibType() | |
| 2093 | 2170 | } | |
| 2094 | 2171 | ||
| @@ -2126,6 +2203,7 @@ type TlsChannelBindingType int | |||
| 2126 | 2203 | var xTlsChannelBindingTypeGLibType func() types.GType | |
| 2127 | 2204 | ||
| 2128 | 2205 | func TlsChannelBindingTypeGLibType() types.GType { | |
| 2206 | + | core.LazyRegister(&xTlsChannelBindingTypeGLibType, "GIO", "g_tls_channel_binding_type_get_type", false) | |
| 2129 | 2207 | return xTlsChannelBindingTypeGLibType() | |
| 2130 | 2208 | } | |
| 2131 | 2209 | ||
| @@ -2149,6 +2227,7 @@ type TlsError int | |||
| 2149 | 2227 | var xTlsErrorGLibType func() types.GType | |
| 2150 | 2228 | ||
| 2151 | 2229 | func TlsErrorGLibType() types.GType { | |
| 2230 | + | core.LazyRegister(&xTlsErrorGLibType, "GIO", "g_tls_error_get_type", false) | |
| 2152 | 2231 | return xTlsErrorGLibType() | |
| 2153 | 2232 | } | |
| 2154 | 2233 | ||
| @@ -2191,6 +2270,7 @@ type TlsInteractionResult int | |||
| 2191 | 2270 | var xTlsInteractionResultGLibType func() types.GType | |
| 2192 | 2271 | ||
| 2193 | 2272 | func TlsInteractionResultGLibType() types.GType { | |
| 2273 | + | core.LazyRegister(&xTlsInteractionResultGLibType, "GIO", "g_tls_interaction_result_get_type", false) | |
| 2194 | 2274 | return xTlsInteractionResultGLibType() | |
| 2195 | 2275 | } | |
| 2196 | 2276 | ||
| @@ -2221,6 +2301,7 @@ type TlsProtocolVersion int | |||
| 2221 | 2301 | var xTlsProtocolVersionGLibType func() types.GType | |
| 2222 | 2302 | ||
| 2223 | 2303 | func TlsProtocolVersionGLibType() types.GType { | |
| 2304 | + | core.LazyRegister(&xTlsProtocolVersionGLibType, "GIO", "g_tls_protocol_version_get_type", false) | |
| 2224 | 2305 | return xTlsProtocolVersionGLibType() | |
| 2225 | 2306 | } | |
| 2226 | 2307 | ||
| @@ -2251,6 +2332,7 @@ type TlsRehandshakeMode int | |||
| 2251 | 2332 | var xTlsRehandshakeModeGLibType func() types.GType | |
| 2252 | 2333 | ||
| 2253 | 2334 | func TlsRehandshakeModeGLibType() types.GType { | |
| 2335 | + | core.LazyRegister(&xTlsRehandshakeModeGLibType, "GIO", "g_tls_rehandshake_mode_get_type", false) | |
| 2254 | 2336 | return xTlsRehandshakeModeGLibType() | |
| 2255 | 2337 | } | |
| 2256 | 2338 | ||
| @@ -2282,6 +2364,7 @@ type UnixSocketAddressType int | |||
| 2282 | 2364 | var xUnixSocketAddressTypeGLibType func() types.GType | |
| 2283 | 2365 | ||
| 2284 | 2366 | func UnixSocketAddressTypeGLibType() types.GType { | |
| 2367 | + | core.LazyRegister(&xUnixSocketAddressTypeGLibType, "GIO", "g_unix_socket_address_type_get_type", false) | |
| 2285 | 2368 | return xUnixSocketAddressTypeGLibType() | |
| 2286 | 2369 | } | |
| 2287 | 2370 | ||
| @@ -2307,6 +2390,7 @@ type ZlibCompressorFormat int | |||
| 2307 | 2390 | var xZlibCompressorFormatGLibType func() types.GType | |
| 2308 | 2391 | ||
| 2309 | 2392 | func ZlibCompressorFormatGLibType() types.GType { | |
| 2393 | + | core.LazyRegister(&xZlibCompressorFormatGLibType, "GIO", "g_zlib_compressor_format_get_type", false) | |
| 2310 | 2394 | return xZlibCompressorFormatGLibType() | |
| 2311 | 2395 | } | |
| 2312 | 2396 | ||
| @@ -2319,3 +2403,8 @@ const ( | |||
| 2319 | 2403 | // deflate compression with no header | |
| 2320 | 2404 | GZlibCompressorFormatRawValue ZlibCompressorFormat = 2 | |
| 2321 | 2405 | ) | |
| 2406 | + | ||
| 2407 | + | func init() { | |
| 2408 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 2409 | + | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | |
| 2410 | + | } | |
| @@ -1,7 +1,10 @@ | |||||
| 1 | // Package gio was automatically generated by github.com/bnema/puregotk DO NOT EDIT | 1 | // Package gio was automatically generated by github.com/bnema/puregotk DO NOT EDIT | ||
| 2 | package gio | 2 | package gio | ||
| 3 | 3 | ||||
| 4 | - | import "github.com/bnema/puregotk/v4/gobject/types" | 4 | + | import ( |
| 5 | + | "github.com/bnema/puregotk/pkg/core" | |||
| 6 | + | "github.com/bnema/puregotk/v4/gobject/types" | |||
| 7 | + | ) | |||
| 5 | 8 | ||||
| 6 | // Flags used when creating a #GAppInfo. | 9 | // Flags used when creating a #GAppInfo. | ||
| 7 | type AppInfoCreateFlags int | 10 | type AppInfoCreateFlags int | ||
| @@ -9,6 +12,7 @@ type AppInfoCreateFlags int | |||||
| 9 | var xAppInfoCreateFlagsGLibType func() types.GType | 12 | var xAppInfoCreateFlagsGLibType func() types.GType | ||
| 10 | 13 | ||||
| 11 | func AppInfoCreateFlagsGLibType() types.GType { | 14 | func AppInfoCreateFlagsGLibType() types.GType { | ||
| 15 | + | core.LazyRegister(&xAppInfoCreateFlagsGLibType, "GIO", "g_app_info_create_flags_get_type", false) | |||
| 12 | return xAppInfoCreateFlagsGLibType() | 16 | return xAppInfoCreateFlagsGLibType() | ||
| 13 | } | 17 | } | ||
| 14 | 18 | ||||
| @@ -30,6 +34,7 @@ type ApplicationFlags int | |||||
| 30 | var xApplicationFlagsGLibType func() types.GType | 34 | var xApplicationFlagsGLibType func() types.GType | ||
| 31 | 35 | ||||
| 32 | func ApplicationFlagsGLibType() types.GType { | 36 | func ApplicationFlagsGLibType() types.GType { | ||
| 37 | + | core.LazyRegister(&xApplicationFlagsGLibType, "GIO", "g_application_flags_get_type", false) | |||
| 33 | return xApplicationFlagsGLibType() | 38 | return xApplicationFlagsGLibType() | ||
| 34 | } | 39 | } | ||
| 35 | 40 | ||||
| @@ -94,6 +99,7 @@ type AskPasswordFlags int | |||||
| 94 | var xAskPasswordFlagsGLibType func() types.GType | 99 | var xAskPasswordFlagsGLibType func() types.GType | ||
| 95 | 100 | ||||
| 96 | func AskPasswordFlagsGLibType() types.GType { | 101 | func AskPasswordFlagsGLibType() types.GType { | ||
| 102 | + | core.LazyRegister(&xAskPasswordFlagsGLibType, "GIO", "g_ask_password_flags_get_type", false) | |||
| 97 | return xAskPasswordFlagsGLibType() | 103 | return xAskPasswordFlagsGLibType() | ||
| 98 | } | 104 | } | ||
| 99 | 105 | ||||
| @@ -119,6 +125,7 @@ type BusNameOwnerFlags int | |||||
| 119 | var xBusNameOwnerFlagsGLibType func() types.GType | 125 | var xBusNameOwnerFlagsGLibType func() types.GType | ||
| 120 | 126 | ||||
| 121 | func BusNameOwnerFlagsGLibType() types.GType { | 127 | func BusNameOwnerFlagsGLibType() types.GType { | ||
| 128 | + | core.LazyRegister(&xBusNameOwnerFlagsGLibType, "GIO", "g_bus_name_owner_flags_get_type", false) | |||
| 122 | return xBusNameOwnerFlagsGLibType() | 129 | return xBusNameOwnerFlagsGLibType() | ||
| 123 | } | 130 | } | ||
| 124 | 131 | ||||
| @@ -143,6 +150,7 @@ type BusNameWatcherFlags int | |||||
| 143 | var xBusNameWatcherFlagsGLibType func() types.GType | 150 | var xBusNameWatcherFlagsGLibType func() types.GType | ||
| 144 | 151 | ||||
| 145 | func BusNameWatcherFlagsGLibType() types.GType { | 152 | func BusNameWatcherFlagsGLibType() types.GType { | ||
| 153 | + | core.LazyRegister(&xBusNameWatcherFlagsGLibType, "GIO", "g_bus_name_watcher_flags_get_type", false) | |||
| 146 | return xBusNameWatcherFlagsGLibType() | 154 | return xBusNameWatcherFlagsGLibType() | ||
| 147 | } | 155 | } | ||
| 148 | 156 | ||||
| @@ -162,6 +170,7 @@ type ConverterFlags int | |||||
| 162 | var xConverterFlagsGLibType func() types.GType | 170 | var xConverterFlagsGLibType func() types.GType | ||
| 163 | 171 | ||||
| 164 | func ConverterFlagsGLibType() types.GType { | 172 | func ConverterFlagsGLibType() types.GType { | ||
| 173 | + | core.LazyRegister(&xConverterFlagsGLibType, "GIO", "g_converter_flags_get_type", false) | |||
| 165 | return xConverterFlagsGLibType() | 174 | return xConverterFlagsGLibType() | ||
| 166 | } | 175 | } | ||
| 167 | 176 | ||||
| @@ -181,6 +190,7 @@ type DBusCallFlags int | |||||
| 181 | var xDBusCallFlagsGLibType func() types.GType | 190 | var xDBusCallFlagsGLibType func() types.GType | ||
| 182 | 191 | ||||
| 183 | func DBusCallFlagsGLibType() types.GType { | 192 | func DBusCallFlagsGLibType() types.GType { | ||
| 193 | + | core.LazyRegister(&xDBusCallFlagsGLibType, "GIO", "g_dbus_call_flags_get_type", false) | |||
| 184 | return xDBusCallFlagsGLibType() | 194 | return xDBusCallFlagsGLibType() | ||
| 185 | } | 195 | } | ||
| 186 | 196 | ||||
| @@ -203,6 +213,7 @@ type DBusCapabilityFlags int | |||||
| 203 | var xDBusCapabilityFlagsGLibType func() types.GType | 213 | var xDBusCapabilityFlagsGLibType func() types.GType | ||
| 204 | 214 | ||||
| 205 | func DBusCapabilityFlagsGLibType() types.GType { | 215 | func DBusCapabilityFlagsGLibType() types.GType { | ||
| 216 | + | core.LazyRegister(&xDBusCapabilityFlagsGLibType, "GIO", "g_dbus_capability_flags_get_type", false) | |||
| 206 | return xDBusCapabilityFlagsGLibType() | 217 | return xDBusCapabilityFlagsGLibType() | ||
| 207 | } | 218 | } | ||
| 208 | 219 | ||||
| @@ -221,6 +232,7 @@ type DBusConnectionFlags int | |||||
| 221 | var xDBusConnectionFlagsGLibType func() types.GType | 232 | var xDBusConnectionFlagsGLibType func() types.GType | ||
| 222 | 233 | ||||
| 223 | func DBusConnectionFlagsGLibType() types.GType { | 234 | func DBusConnectionFlagsGLibType() types.GType { | ||
| 235 | + | core.LazyRegister(&xDBusConnectionFlagsGLibType, "GIO", "g_dbus_connection_flags_get_type", false) | |||
| 224 | return xDBusConnectionFlagsGLibType() | 236 | return xDBusConnectionFlagsGLibType() | ||
| 225 | } | 237 | } | ||
| 226 | 238 | ||||
| @@ -260,6 +272,7 @@ type DBusInterfaceSkeletonFlags int | |||||
| 260 | var xDBusInterfaceSkeletonFlagsGLibType func() types.GType | 272 | var xDBusInterfaceSkeletonFlagsGLibType func() types.GType | ||
| 261 | 273 | ||||
| 262 | func DBusInterfaceSkeletonFlagsGLibType() types.GType { | 274 | func DBusInterfaceSkeletonFlagsGLibType() types.GType { | ||
| 275 | + | core.LazyRegister(&xDBusInterfaceSkeletonFlagsGLibType, "GIO", "g_dbus_interface_skeleton_flags_get_type", false) | |||
| 263 | return xDBusInterfaceSkeletonFlagsGLibType() | 276 | return xDBusInterfaceSkeletonFlagsGLibType() | ||
| 264 | } | 277 | } | ||
| 265 | 278 | ||||
| @@ -280,6 +293,7 @@ type DBusMessageFlags int | |||||
| 280 | var xDBusMessageFlagsGLibType func() types.GType | 293 | var xDBusMessageFlagsGLibType func() types.GType | ||
| 281 | 294 | ||||
| 282 | func DBusMessageFlagsGLibType() types.GType { | 295 | func DBusMessageFlagsGLibType() types.GType { | ||
| 296 | + | core.LazyRegister(&xDBusMessageFlagsGLibType, "GIO", "g_dbus_message_flags_get_type", false) | |||
| 283 | return xDBusMessageFlagsGLibType() | 297 | return xDBusMessageFlagsGLibType() | ||
| 284 | } | 298 | } | ||
| 285 | 299 | ||||
| @@ -304,6 +318,7 @@ type DBusObjectManagerClientFlags int | |||||
| 304 | var xDBusObjectManagerClientFlagsGLibType func() types.GType | 318 | var xDBusObjectManagerClientFlagsGLibType func() types.GType | ||
| 305 | 319 | ||||
| 306 | func DBusObjectManagerClientFlagsGLibType() types.GType { | 320 | func DBusObjectManagerClientFlagsGLibType() types.GType { | ||
| 321 | + | core.LazyRegister(&xDBusObjectManagerClientFlagsGLibType, "GIO", "g_dbus_object_manager_client_flags_get_type", false) | |||
| 307 | return xDBusObjectManagerClientFlagsGLibType() | 322 | return xDBusObjectManagerClientFlagsGLibType() | ||
| 308 | } | 323 | } | ||
| 309 | 324 | ||||
| @@ -324,6 +339,7 @@ type DBusPropertyInfoFlags int | |||||
| 324 | var xDBusPropertyInfoFlagsGLibType func() types.GType | 339 | var xDBusPropertyInfoFlagsGLibType func() types.GType | ||
| 325 | 340 | ||||
| 326 | func DBusPropertyInfoFlagsGLibType() types.GType { | 341 | func DBusPropertyInfoFlagsGLibType() types.GType { | ||
| 342 | + | core.LazyRegister(&xDBusPropertyInfoFlagsGLibType, "GIO", "g_dbus_property_info_flags_get_type", false) | |||
| 327 | return xDBusPropertyInfoFlagsGLibType() | 343 | return xDBusPropertyInfoFlagsGLibType() | ||
| 328 | } | 344 | } | ||
| 329 | 345 | ||||
| @@ -343,6 +359,7 @@ type DBusProxyFlags int | |||||
| 343 | var xDBusProxyFlagsGLibType func() types.GType | 359 | var xDBusProxyFlagsGLibType func() types.GType | ||
| 344 | 360 | ||||
| 345 | func DBusProxyFlagsGLibType() types.GType { | 361 | func DBusProxyFlagsGLibType() types.GType { | ||
| 362 | + | core.LazyRegister(&xDBusProxyFlagsGLibType, "GIO", "g_dbus_proxy_flags_get_type", false) | |||
| 346 | return xDBusProxyFlagsGLibType() | 363 | return xDBusProxyFlagsGLibType() | ||
| 347 | } | 364 | } | ||
| 348 | 365 | ||||
| @@ -377,6 +394,7 @@ type DBusSendMessageFlags int | |||||
| 377 | var xDBusSendMessageFlagsGLibType func() types.GType | 394 | var xDBusSendMessageFlagsGLibType func() types.GType | ||
| 378 | 395 | ||||
| 379 | func DBusSendMessageFlagsGLibType() types.GType { | 396 | func DBusSendMessageFlagsGLibType() types.GType { | ||
| 397 | + | core.LazyRegister(&xDBusSendMessageFlagsGLibType, "GIO", "g_dbus_send_message_flags_get_type", false) | |||
| 380 | return xDBusSendMessageFlagsGLibType() | 398 | return xDBusSendMessageFlagsGLibType() | ||
| 381 | } | 399 | } | ||
| 382 | 400 | ||||
| @@ -396,6 +414,7 @@ type DBusServerFlags int | |||||
| 396 | var xDBusServerFlagsGLibType func() types.GType | 414 | var xDBusServerFlagsGLibType func() types.GType | ||
| 397 | 415 | ||||
| 398 | func DBusServerFlagsGLibType() types.GType { | 416 | func DBusServerFlagsGLibType() types.GType { | ||
| 417 | + | core.LazyRegister(&xDBusServerFlagsGLibType, "GIO", "g_dbus_server_flags_get_type", false) | |||
| 399 | return xDBusServerFlagsGLibType() | 418 | return xDBusServerFlagsGLibType() | ||
| 400 | } | 419 | } | ||
| 401 | 420 | ||||
| @@ -421,6 +440,7 @@ type DBusSignalFlags int | |||||
| 421 | var xDBusSignalFlagsGLibType func() types.GType | 440 | var xDBusSignalFlagsGLibType func() types.GType | ||
| 422 | 441 | ||||
| 423 | func DBusSignalFlagsGLibType() types.GType { | 442 | func DBusSignalFlagsGLibType() types.GType { | ||
| 443 | + | core.LazyRegister(&xDBusSignalFlagsGLibType, "GIO", "g_dbus_signal_flags_get_type", false) | |||
| 424 | return xDBusSignalFlagsGLibType() | 444 | return xDBusSignalFlagsGLibType() | ||
| 425 | } | 445 | } | ||
| 426 | 446 | ||||
| @@ -447,6 +467,7 @@ type DBusSubtreeFlags int | |||||
| 447 | var xDBusSubtreeFlagsGLibType func() types.GType | 467 | var xDBusSubtreeFlagsGLibType func() types.GType | ||
| 448 | 468 | ||||
| 449 | func DBusSubtreeFlagsGLibType() types.GType { | 469 | func DBusSubtreeFlagsGLibType() types.GType { | ||
| 470 | + | core.LazyRegister(&xDBusSubtreeFlagsGLibType, "GIO", "g_dbus_subtree_flags_get_type", false) | |||
| 450 | return xDBusSubtreeFlagsGLibType() | 471 | return xDBusSubtreeFlagsGLibType() | ||
| 451 | } | 472 | } | ||
| 452 | 473 | ||||
| @@ -466,6 +487,7 @@ type DriveStartFlags int | |||||
| 466 | var xDriveStartFlagsGLibType func() types.GType | 487 | var xDriveStartFlagsGLibType func() types.GType | ||
| 467 | 488 | ||||
| 468 | func DriveStartFlagsGLibType() types.GType { | 489 | func DriveStartFlagsGLibType() types.GType { | ||
| 490 | + | core.LazyRegister(&xDriveStartFlagsGLibType, "GIO", "g_drive_start_flags_get_type", false) | |||
| 469 | return xDriveStartFlagsGLibType() | 491 | return xDriveStartFlagsGLibType() | ||
| 470 | } | 492 | } | ||
| 471 | 493 | ||||
| @@ -481,6 +503,7 @@ type FileAttributeInfoFlags int | |||||
| 481 | var xFileAttributeInfoFlagsGLibType func() types.GType | 503 | var xFileAttributeInfoFlagsGLibType func() types.GType | ||
| 482 | 504 | ||||
| 483 | func FileAttributeInfoFlagsGLibType() types.GType { | 505 | func FileAttributeInfoFlagsGLibType() types.GType { | ||
| 506 | + | core.LazyRegister(&xFileAttributeInfoFlagsGLibType, "GIO", "g_file_attribute_info_flags_get_type", false) | |||
| 484 | return xFileAttributeInfoFlagsGLibType() | 507 | return xFileAttributeInfoFlagsGLibType() | ||
| 485 | } | 508 | } | ||
| 486 | 509 | ||||
| @@ -500,6 +523,7 @@ type FileCopyFlags int | |||||
| 500 | var xFileCopyFlagsGLibType func() types.GType | 523 | var xFileCopyFlagsGLibType func() types.GType | ||
| 501 | 524 | ||||
| 502 | func FileCopyFlagsGLibType() types.GType { | 525 | func FileCopyFlagsGLibType() types.GType { | ||
| 526 | + | core.LazyRegister(&xFileCopyFlagsGLibType, "GIO", "g_file_copy_flags_get_type", false) | |||
| 503 | return xFileCopyFlagsGLibType() | 527 | return xFileCopyFlagsGLibType() | ||
| 504 | } | 528 | } | ||
| 505 | 529 | ||||
| @@ -530,6 +554,7 @@ type FileCreateFlags int | |||||
| 530 | var xFileCreateFlagsGLibType func() types.GType | 554 | var xFileCreateFlagsGLibType func() types.GType | ||
| 531 | 555 | ||||
| 532 | func FileCreateFlagsGLibType() types.GType { | 556 | func FileCreateFlagsGLibType() types.GType { | ||
| 557 | + | core.LazyRegister(&xFileCreateFlagsGLibType, "GIO", "g_file_create_flags_get_type", false) | |||
| 533 | return xFileCreateFlagsGLibType() | 558 | return xFileCreateFlagsGLibType() | ||
| 534 | } | 559 | } | ||
| 535 | 560 | ||||
| @@ -559,6 +584,7 @@ type FileMeasureFlags int | |||||
| 559 | var xFileMeasureFlagsGLibType func() types.GType | 584 | var xFileMeasureFlagsGLibType func() types.GType | ||
| 560 | 585 | ||||
| 561 | func FileMeasureFlagsGLibType() types.GType { | 586 | func FileMeasureFlagsGLibType() types.GType { | ||
| 587 | + | core.LazyRegister(&xFileMeasureFlagsGLibType, "GIO", "g_file_measure_flags_get_type", false) | |||
| 562 | return xFileMeasureFlagsGLibType() | 588 | return xFileMeasureFlagsGLibType() | ||
| 563 | } | 589 | } | ||
| 564 | 590 | ||||
| @@ -589,6 +615,7 @@ type FileMonitorFlags int | |||||
| 589 | var xFileMonitorFlagsGLibType func() types.GType | 615 | var xFileMonitorFlagsGLibType func() types.GType | ||
| 590 | 616 | ||||
| 591 | func FileMonitorFlagsGLibType() types.GType { | 617 | func FileMonitorFlagsGLibType() types.GType { | ||
| 618 | + | core.LazyRegister(&xFileMonitorFlagsGLibType, "GIO", "g_file_monitor_flags_get_type", false) | |||
| 592 | return xFileMonitorFlagsGLibType() | 619 | return xFileMonitorFlagsGLibType() | ||
| 593 | } | 620 | } | ||
| 594 | 621 | ||||
| @@ -621,6 +648,7 @@ type FileQueryInfoFlags int | |||||
| 621 | var xFileQueryInfoFlagsGLibType func() types.GType | 648 | var xFileQueryInfoFlagsGLibType func() types.GType | ||
| 622 | 649 | ||||
| 623 | func FileQueryInfoFlagsGLibType() types.GType { | 650 | func FileQueryInfoFlagsGLibType() types.GType { | ||
| 651 | + | core.LazyRegister(&xFileQueryInfoFlagsGLibType, "GIO", "g_file_query_info_flags_get_type", false) | |||
| 624 | return xFileQueryInfoFlagsGLibType() | 652 | return xFileQueryInfoFlagsGLibType() | ||
| 625 | } | 653 | } | ||
| 626 | 654 | ||||
| @@ -638,6 +666,7 @@ type IOModuleScopeFlags int | |||||
| 638 | var xIOModuleScopeFlagsGLibType func() types.GType | 666 | var xIOModuleScopeFlagsGLibType func() types.GType | ||
| 639 | 667 | ||||
| 640 | func IOModuleScopeFlagsGLibType() types.GType { | 668 | func IOModuleScopeFlagsGLibType() types.GType { | ||
| 669 | + | core.LazyRegister(&xIOModuleScopeFlagsGLibType, "GIO", "g_io_module_scope_flags_get_type", false) | |||
| 641 | return xIOModuleScopeFlagsGLibType() | 670 | return xIOModuleScopeFlagsGLibType() | ||
| 642 | } | 671 | } | ||
| 643 | 672 | ||||
| @@ -657,6 +686,7 @@ type IOStreamSpliceFlags int | |||||
| 657 | var xIOStreamSpliceFlagsGLibType func() types.GType | 686 | var xIOStreamSpliceFlagsGLibType func() types.GType | ||
| 658 | 687 | ||||
| 659 | func IOStreamSpliceFlagsGLibType() types.GType { | 688 | func IOStreamSpliceFlagsGLibType() types.GType { | ||
| 689 | + | core.LazyRegister(&xIOStreamSpliceFlagsGLibType, "GIO", "g_io_stream_splice_flags_get_type", false) | |||
| 660 | return xIOStreamSpliceFlagsGLibType() | 690 | return xIOStreamSpliceFlagsGLibType() | ||
| 661 | } | 691 | } | ||
| 662 | 692 | ||||
| @@ -681,6 +711,7 @@ type MountMountFlags int | |||||
| 681 | var xMountMountFlagsGLibType func() types.GType | 711 | var xMountMountFlagsGLibType func() types.GType | ||
| 682 | 712 | ||||
| 683 | func MountMountFlagsGLibType() types.GType { | 713 | func MountMountFlagsGLibType() types.GType { | ||
| 714 | + | core.LazyRegister(&xMountMountFlagsGLibType, "GIO", "g_mount_mount_flags_get_type", false) | |||
| 684 | return xMountMountFlagsGLibType() | 715 | return xMountMountFlagsGLibType() | ||
| 685 | } | 716 | } | ||
| 686 | 717 | ||||
| @@ -696,6 +727,7 @@ type MountUnmountFlags int | |||||
| 696 | var xMountUnmountFlagsGLibType func() types.GType | 727 | var xMountUnmountFlagsGLibType func() types.GType | ||
| 697 | 728 | ||||
| 698 | func MountUnmountFlagsGLibType() types.GType { | 729 | func MountUnmountFlagsGLibType() types.GType { | ||
| 730 | + | core.LazyRegister(&xMountUnmountFlagsGLibType, "GIO", "g_mount_unmount_flags_get_type", false) | |||
| 699 | return xMountUnmountFlagsGLibType() | 731 | return xMountUnmountFlagsGLibType() | ||
| 700 | } | 732 | } | ||
| 701 | 733 | ||||
| @@ -714,6 +746,7 @@ type OutputStreamSpliceFlags int | |||||
| 714 | var xOutputStreamSpliceFlagsGLibType func() types.GType | 746 | var xOutputStreamSpliceFlagsGLibType func() types.GType | ||
| 715 | 747 | ||||
| 716 | func OutputStreamSpliceFlagsGLibType() types.GType { | 748 | func OutputStreamSpliceFlagsGLibType() types.GType { | ||
| 749 | + | core.LazyRegister(&xOutputStreamSpliceFlagsGLibType, "GIO", "g_output_stream_splice_flags_get_type", false) | |||
| 717 | return xOutputStreamSpliceFlagsGLibType() | 750 | return xOutputStreamSpliceFlagsGLibType() | ||
| 718 | } | 751 | } | ||
| 719 | 752 | ||||
| @@ -736,6 +769,7 @@ type ResourceFlags int | |||||
| 736 | var xResourceFlagsGLibType func() types.GType | 769 | var xResourceFlagsGLibType func() types.GType | ||
| 737 | 770 | ||||
| 738 | func ResourceFlagsGLibType() types.GType { | 771 | func ResourceFlagsGLibType() types.GType { | ||
| 772 | + | core.LazyRegister(&xResourceFlagsGLibType, "GIO", "g_resource_flags_get_type", false) | |||
| 739 | return xResourceFlagsGLibType() | 773 | return xResourceFlagsGLibType() | ||
| 740 | } | 774 | } | ||
| 741 | 775 | ||||
| @@ -753,6 +787,7 @@ type ResourceLookupFlags int | |||||
| 753 | var xResourceLookupFlagsGLibType func() types.GType | 787 | var xResourceLookupFlagsGLibType func() types.GType | ||
| 754 | 788 | ||||
| 755 | func ResourceLookupFlagsGLibType() types.GType { | 789 | func ResourceLookupFlagsGLibType() types.GType { | ||
| 790 | + | core.LazyRegister(&xResourceLookupFlagsGLibType, "GIO", "g_resource_lookup_flags_get_type", false) | |||
| 756 | return xResourceLookupFlagsGLibType() | 791 | return xResourceLookupFlagsGLibType() | ||
| 757 | } | 792 | } | ||
| 758 | 793 | ||||
| @@ -772,6 +807,7 @@ type SocketMsgFlags int | |||||
| 772 | var xSocketMsgFlagsGLibType func() types.GType | 807 | var xSocketMsgFlagsGLibType func() types.GType | ||
| 773 | 808 | ||||
| 774 | func SocketMsgFlagsGLibType() types.GType { | 809 | func SocketMsgFlagsGLibType() types.GType { | ||
| 810 | + | core.LazyRegister(&xSocketMsgFlagsGLibType, "GIO", "g_socket_msg_flags_get_type", false) | |||
| 775 | return xSocketMsgFlagsGLibType() | 811 | return xSocketMsgFlagsGLibType() | ||
| 776 | } | 812 | } | ||
| 777 | 813 | ||||
| @@ -803,6 +839,7 @@ type SubprocessFlags int | |||||
| 803 | var xSubprocessFlagsGLibType func() types.GType | 839 | var xSubprocessFlagsGLibType func() types.GType | ||
| 804 | 840 | ||||
| 805 | func SubprocessFlagsGLibType() types.GType { | 841 | func SubprocessFlagsGLibType() types.GType { | ||
| 842 | + | core.LazyRegister(&xSubprocessFlagsGLibType, "GIO", "g_subprocess_flags_get_type", false) | |||
| 806 | return xSubprocessFlagsGLibType() | 843 | return xSubprocessFlagsGLibType() | ||
| 807 | } | 844 | } | ||
| 808 | 845 | ||||
| @@ -852,6 +889,7 @@ type TestDBusFlags int | |||||
| 852 | var xTestDBusFlagsGLibType func() types.GType | 889 | var xTestDBusFlagsGLibType func() types.GType | ||
| 853 | 890 | ||||
| 854 | func TestDBusFlagsGLibType() types.GType { | 891 | func TestDBusFlagsGLibType() types.GType { | ||
| 892 | + | core.LazyRegister(&xTestDBusFlagsGLibType, "GIO", "g_test_dbus_flags_get_type", false) | |||
| 855 | return xTestDBusFlagsGLibType() | 893 | return xTestDBusFlagsGLibType() | ||
| 856 | } | 894 | } | ||
| 857 | 895 | ||||
| @@ -877,6 +915,7 @@ type TlsCertificateFlags int | |||||
| 877 | var xTlsCertificateFlagsGLibType func() types.GType | 915 | var xTlsCertificateFlagsGLibType func() types.GType | ||
| 878 | 916 | ||||
| 879 | func TlsCertificateFlagsGLibType() types.GType { | 917 | func TlsCertificateFlagsGLibType() types.GType { | ||
| 918 | + | core.LazyRegister(&xTlsCertificateFlagsGLibType, "GIO", "g_tls_certificate_flags_get_type", false) | |||
| 880 | return xTlsCertificateFlagsGLibType() | 919 | return xTlsCertificateFlagsGLibType() | ||
| 881 | } | 920 | } | ||
| 882 | 921 | ||||
| @@ -917,6 +956,7 @@ type TlsCertificateRequestFlags int | |||||
| 917 | var xTlsCertificateRequestFlagsGLibType func() types.GType | 956 | var xTlsCertificateRequestFlagsGLibType func() types.GType | ||
| 918 | 957 | ||||
| 919 | func TlsCertificateRequestFlagsGLibType() types.GType { | 958 | func TlsCertificateRequestFlagsGLibType() types.GType { | ||
| 959 | + | core.LazyRegister(&xTlsCertificateRequestFlagsGLibType, "GIO", "g_tls_certificate_request_flags_get_type", false) | |||
| 920 | return xTlsCertificateRequestFlagsGLibType() | 960 | return xTlsCertificateRequestFlagsGLibType() | ||
| 921 | } | 961 | } | ||
| 922 | 962 | ||||
| @@ -934,6 +974,7 @@ type TlsDatabaseLookupFlags int | |||||
| 934 | var xTlsDatabaseLookupFlagsGLibType func() types.GType | 974 | var xTlsDatabaseLookupFlagsGLibType func() types.GType | ||
| 935 | 975 | ||||
| 936 | func TlsDatabaseLookupFlagsGLibType() types.GType { | 976 | func TlsDatabaseLookupFlagsGLibType() types.GType { | ||
| 977 | + | core.LazyRegister(&xTlsDatabaseLookupFlagsGLibType, "GIO", "g_tls_database_lookup_flags_get_type", false) | |||
| 937 | return xTlsDatabaseLookupFlagsGLibType() | 978 | return xTlsDatabaseLookupFlagsGLibType() | ||
| 938 | } | 979 | } | ||
| 939 | 980 | ||||
| @@ -952,6 +993,7 @@ type TlsDatabaseVerifyFlags int | |||||
| 952 | var xTlsDatabaseVerifyFlagsGLibType func() types.GType | 993 | var xTlsDatabaseVerifyFlagsGLibType func() types.GType | ||
| 953 | 994 | ||||
| 954 | func TlsDatabaseVerifyFlagsGLibType() types.GType { | 995 | func TlsDatabaseVerifyFlagsGLibType() types.GType { | ||
| 996 | + | core.LazyRegister(&xTlsDatabaseVerifyFlagsGLibType, "GIO", "g_tls_database_verify_flags_get_type", false) | |||
| 955 | return xTlsDatabaseVerifyFlagsGLibType() | 997 | return xTlsDatabaseVerifyFlagsGLibType() | ||
| 956 | } | 998 | } | ||
| 957 | 999 | ||||
| @@ -967,6 +1009,7 @@ type TlsPasswordFlags int | |||||
| 967 | var xTlsPasswordFlagsGLibType func() types.GType | 1009 | var xTlsPasswordFlagsGLibType func() types.GType | ||
| 968 | 1010 | ||||
| 969 | func TlsPasswordFlagsGLibType() types.GType { | 1011 | func TlsPasswordFlagsGLibType() types.GType { | ||
| 1012 | + | core.LazyRegister(&xTlsPasswordFlagsGLibType, "GIO", "g_tls_password_flags_get_type", false) | |||
| 970 | return xTlsPasswordFlagsGLibType() | 1013 | return xTlsPasswordFlagsGLibType() | ||
| 971 | } | 1014 | } | ||
| 972 | 1015 | ||||
| @@ -999,6 +1042,7 @@ type BusType int | |||||
| 999 | var xBusTypeGLibType func() types.GType | 1042 | var xBusTypeGLibType func() types.GType | ||
| 1000 | 1043 | ||||
| 1001 | func BusTypeGLibType() types.GType { | 1044 | func BusTypeGLibType() types.GType { | ||
| 1045 | + | core.LazyRegister(&xBusTypeGLibType, "GIO", "g_bus_type_get_type", false) | |||
| 1002 | return xBusTypeGLibType() | 1046 | return xBusTypeGLibType() | ||
| 1003 | } | 1047 | } | ||
| 1004 | 1048 | ||||
| @@ -1020,6 +1064,7 @@ type ConverterResult int | |||||
| 1020 | var xConverterResultGLibType func() types.GType | 1064 | var xConverterResultGLibType func() types.GType | ||
| 1021 | 1065 | ||||
| 1022 | func ConverterResultGLibType() types.GType { | 1066 | func ConverterResultGLibType() types.GType { | ||
| 1067 | + | core.LazyRegister(&xConverterResultGLibType, "GIO", "g_converter_result_get_type", false) | |||
| 1023 | return xConverterResultGLibType() | 1068 | return xConverterResultGLibType() | ||
| 1024 | } | 1069 | } | ||
| 1025 | 1070 | ||||
| @@ -1041,6 +1086,7 @@ type CredentialsType int | |||||
| 1041 | var xCredentialsTypeGLibType func() types.GType | 1086 | var xCredentialsTypeGLibType func() types.GType | ||
| 1042 | 1087 | ||||
| 1043 | func CredentialsTypeGLibType() types.GType { | 1088 | func CredentialsTypeGLibType() types.GType { | ||
| 1089 | + | core.LazyRegister(&xCredentialsTypeGLibType, "GIO", "g_credentials_type_get_type", false) | |||
| 1044 | return xCredentialsTypeGLibType() | 1090 | return xCredentialsTypeGLibType() | ||
| 1045 | } | 1091 | } | ||
| 1046 | 1092 | ||||
| @@ -1070,6 +1116,7 @@ type DBusError int | |||||
| 1070 | var xDBusErrorGLibType func() types.GType | 1116 | var xDBusErrorGLibType func() types.GType | ||
| 1071 | 1117 | ||||
| 1072 | func DBusErrorGLibType() types.GType { | 1118 | func DBusErrorGLibType() types.GType { | ||
| 1119 | + | core.LazyRegister(&xDBusErrorGLibType, "GIO", "g_dbus_error_get_type", false) | |||
| 1073 | return xDBusErrorGLibType() | 1120 | return xDBusErrorGLibType() | ||
| 1074 | } | 1121 | } | ||
| 1075 | 1122 | ||||
| @@ -1183,6 +1230,7 @@ type DBusMessageByteOrder int | |||||
| 1183 | var xDBusMessageByteOrderGLibType func() types.GType | 1230 | var xDBusMessageByteOrderGLibType func() types.GType | ||
| 1184 | 1231 | ||||
| 1185 | func DBusMessageByteOrderGLibType() types.GType { | 1232 | func DBusMessageByteOrderGLibType() types.GType { | ||
| 1233 | + | core.LazyRegister(&xDBusMessageByteOrderGLibType, "GIO", "g_dbus_message_byte_order_get_type", false) | |||
| 1186 | return xDBusMessageByteOrderGLibType() | 1234 | return xDBusMessageByteOrderGLibType() | ||
| 1187 | } | 1235 | } | ||
| 1188 | 1236 | ||||
| @@ -1200,6 +1248,7 @@ type DBusMessageHeaderField int | |||||
| 1200 | var xDBusMessageHeaderFieldGLibType func() types.GType | 1248 | var xDBusMessageHeaderFieldGLibType func() types.GType | ||
| 1201 | 1249 | ||||
| 1202 | func DBusMessageHeaderFieldGLibType() types.GType { | 1250 | func DBusMessageHeaderFieldGLibType() types.GType { | ||
| 1251 | + | core.LazyRegister(&xDBusMessageHeaderFieldGLibType, "GIO", "g_dbus_message_header_field_get_type", false) | |||
| 1203 | return xDBusMessageHeaderFieldGLibType() | 1252 | return xDBusMessageHeaderFieldGLibType() | ||
| 1204 | } | 1253 | } | ||
| 1205 | 1254 | ||||
| @@ -1233,6 +1282,7 @@ type DBusMessageType int | |||||
| 1233 | var xDBusMessageTypeGLibType func() types.GType | 1282 | var xDBusMessageTypeGLibType func() types.GType | ||
| 1234 | 1283 | ||||
| 1235 | func DBusMessageTypeGLibType() types.GType { | 1284 | func DBusMessageTypeGLibType() types.GType { | ||
| 1285 | + | core.LazyRegister(&xDBusMessageTypeGLibType, "GIO", "g_dbus_message_type_get_type", false) | |||
| 1236 | return xDBusMessageTypeGLibType() | 1286 | return xDBusMessageTypeGLibType() | ||
| 1237 | } | 1287 | } | ||
| 1238 | 1288 | ||||
| @@ -1257,6 +1307,7 @@ type DataStreamByteOrder int | |||||
| 1257 | var xDataStreamByteOrderGLibType func() types.GType | 1307 | var xDataStreamByteOrderGLibType func() types.GType | ||
| 1258 | 1308 | ||||
| 1259 | func DataStreamByteOrderGLibType() types.GType { | 1309 | func DataStreamByteOrderGLibType() types.GType { | ||
| 1310 | + | core.LazyRegister(&xDataStreamByteOrderGLibType, "GIO", "g_data_stream_byte_order_get_type", false) | |||
| 1260 | return xDataStreamByteOrderGLibType() | 1311 | return xDataStreamByteOrderGLibType() | ||
| 1261 | } | 1312 | } | ||
| 1262 | 1313 | ||||
| @@ -1276,6 +1327,7 @@ type DataStreamNewlineType int | |||||
| 1276 | var xDataStreamNewlineTypeGLibType func() types.GType | 1327 | var xDataStreamNewlineTypeGLibType func() types.GType | ||
| 1277 | 1328 | ||||
| 1278 | func DataStreamNewlineTypeGLibType() types.GType { | 1329 | func DataStreamNewlineTypeGLibType() types.GType { | ||
| 1330 | + | core.LazyRegister(&xDataStreamNewlineTypeGLibType, "GIO", "g_data_stream_newline_type_get_type", false) | |||
| 1279 | return xDataStreamNewlineTypeGLibType() | 1331 | return xDataStreamNewlineTypeGLibType() | ||
| 1280 | } | 1332 | } | ||
| 1281 | 1333 | ||||
| @@ -1297,6 +1349,7 @@ type DriveStartStopType int | |||||
| 1297 | var xDriveStartStopTypeGLibType func() types.GType | 1349 | var xDriveStartStopTypeGLibType func() types.GType | ||
| 1298 | 1350 | ||||
| 1299 | func DriveStartStopTypeGLibType() types.GType { | 1351 | func DriveStartStopTypeGLibType() types.GType { | ||
| 1352 | + | core.LazyRegister(&xDriveStartStopTypeGLibType, "GIO", "g_drive_start_stop_type_get_type", false) | |||
| 1300 | return xDriveStartStopTypeGLibType() | 1353 | return xDriveStartStopTypeGLibType() | ||
| 1301 | } | 1354 | } | ||
| 1302 | 1355 | ||||
| @@ -1331,6 +1384,7 @@ type EcnCodePoint int | |||||
| 1331 | var xEcnCodePointGLibType func() types.GType | 1384 | var xEcnCodePointGLibType func() types.GType | ||
| 1332 | 1385 | ||||
| 1333 | func EcnCodePointGLibType() types.GType { | 1386 | func EcnCodePointGLibType() types.GType { | ||
| 1387 | + | core.LazyRegister(&xEcnCodePointGLibType, "GIO", "g_ecn_code_point_get_type", false) | |||
| 1334 | return xEcnCodePointGLibType() | 1388 | return xEcnCodePointGLibType() | ||
| 1335 | } | 1389 | } | ||
| 1336 | 1390 | ||||
| @@ -1353,6 +1407,7 @@ type EmblemOrigin int | |||||
| 1353 | var xEmblemOriginGLibType func() types.GType | 1407 | var xEmblemOriginGLibType func() types.GType | ||
| 1354 | 1408 | ||||
| 1355 | func EmblemOriginGLibType() types.GType { | 1409 | func EmblemOriginGLibType() types.GType { | ||
| 1410 | + | core.LazyRegister(&xEmblemOriginGLibType, "GIO", "g_emblem_origin_get_type", false) | |||
| 1356 | return xEmblemOriginGLibType() | 1411 | return xEmblemOriginGLibType() | ||
| 1357 | } | 1412 | } | ||
| 1358 | 1413 | ||||
| @@ -1374,6 +1429,7 @@ type FileAttributeStatus int | |||||
| 1374 | var xFileAttributeStatusGLibType func() types.GType | 1429 | var xFileAttributeStatusGLibType func() types.GType | ||
| 1375 | 1430 | ||||
| 1376 | func FileAttributeStatusGLibType() types.GType { | 1431 | func FileAttributeStatusGLibType() types.GType { | ||
| 1432 | + | core.LazyRegister(&xFileAttributeStatusGLibType, "GIO", "g_file_attribute_status_get_type", false) | |||
| 1377 | return xFileAttributeStatusGLibType() | 1433 | return xFileAttributeStatusGLibType() | ||
| 1378 | } | 1434 | } | ||
| 1379 | 1435 | ||||
| @@ -1393,6 +1449,7 @@ type FileAttributeType int | |||||
| 1393 | var xFileAttributeTypeGLibType func() types.GType | 1449 | var xFileAttributeTypeGLibType func() types.GType | ||
| 1394 | 1450 | ||||
| 1395 | func FileAttributeTypeGLibType() types.GType { | 1451 | func FileAttributeTypeGLibType() types.GType { | ||
| 1452 | + | core.LazyRegister(&xFileAttributeTypeGLibType, "GIO", "g_file_attribute_type_get_type", false) | |||
| 1396 | return xFileAttributeTypeGLibType() | 1453 | return xFileAttributeTypeGLibType() | ||
| 1397 | } | 1454 | } | ||
| 1398 | 1455 | ||||
| @@ -1426,6 +1483,7 @@ type FileMonitorEvent int | |||||
| 1426 | var xFileMonitorEventGLibType func() types.GType | 1483 | var xFileMonitorEventGLibType func() types.GType | ||
| 1427 | 1484 | ||||
| 1428 | func FileMonitorEventGLibType() types.GType { | 1485 | func FileMonitorEventGLibType() types.GType { | ||
| 1486 | + | core.LazyRegister(&xFileMonitorEventGLibType, "GIO", "g_file_monitor_event_get_type", false) | |||
| 1429 | return xFileMonitorEventGLibType() | 1487 | return xFileMonitorEventGLibType() | ||
| 1430 | } | 1488 | } | ||
| 1431 | 1489 | ||||
| @@ -1477,6 +1535,7 @@ type FileType int | |||||
| 1477 | var xFileTypeGLibType func() types.GType | 1535 | var xFileTypeGLibType func() types.GType | ||
| 1478 | 1536 | ||||
| 1479 | func FileTypeGLibType() types.GType { | 1537 | func FileTypeGLibType() types.GType { | ||
| 1538 | + | core.LazyRegister(&xFileTypeGLibType, "GIO", "g_file_type_get_type", false) | |||
| 1480 | return xFileTypeGLibType() | 1539 | return xFileTypeGLibType() | ||
| 1481 | } | 1540 | } | ||
| 1482 | 1541 | ||||
| @@ -1508,6 +1567,7 @@ type FilesystemPreviewType int | |||||
| 1508 | var xFilesystemPreviewTypeGLibType func() types.GType | 1567 | var xFilesystemPreviewTypeGLibType func() types.GType | ||
| 1509 | 1568 | ||||
| 1510 | func FilesystemPreviewTypeGLibType() types.GType { | 1569 | func FilesystemPreviewTypeGLibType() types.GType { | ||
| 1570 | + | core.LazyRegister(&xFilesystemPreviewTypeGLibType, "GIO", "g_filesystem_preview_type_get_type", false) | |||
| 1511 | return xFilesystemPreviewTypeGLibType() | 1571 | return xFilesystemPreviewTypeGLibType() | ||
| 1512 | } | 1572 | } | ||
| 1513 | 1573 | ||||
| @@ -1546,6 +1606,7 @@ type IOErrorEnum int | |||||
| 1546 | var xIOErrorEnumGLibType func() types.GType | 1606 | var xIOErrorEnumGLibType func() types.GType | ||
| 1547 | 1607 | ||||
| 1548 | func IOErrorEnumGLibType() types.GType { | 1608 | func IOErrorEnumGLibType() types.GType { | ||
| 1609 | + | core.LazyRegister(&xIOErrorEnumGLibType, "GIO", "g_io_error_enum_get_type", false) | |||
| 1549 | return xIOErrorEnumGLibType() | 1610 | return xIOErrorEnumGLibType() | ||
| 1550 | } | 1611 | } | ||
| 1551 | 1612 | ||||
| @@ -1681,6 +1742,7 @@ type MemoryMonitorWarningLevel int | |||||
| 1681 | var xMemoryMonitorWarningLevelGLibType func() types.GType | 1742 | var xMemoryMonitorWarningLevelGLibType func() types.GType | ||
| 1682 | 1743 | ||||
| 1683 | func MemoryMonitorWarningLevelGLibType() types.GType { | 1744 | func MemoryMonitorWarningLevelGLibType() types.GType { | ||
| 1745 | + | core.LazyRegister(&xMemoryMonitorWarningLevelGLibType, "GIO", "g_memory_monitor_warning_level_get_type", false) | |||
| 1684 | return xMemoryMonitorWarningLevelGLibType() | 1746 | return xMemoryMonitorWarningLevelGLibType() | ||
| 1685 | } | 1747 | } | ||
| 1686 | 1748 | ||||
| @@ -1707,6 +1769,7 @@ type MountOperationResult int | |||||
| 1707 | var xMountOperationResultGLibType func() types.GType | 1769 | var xMountOperationResultGLibType func() types.GType | ||
| 1708 | 1770 | ||||
| 1709 | func MountOperationResultGLibType() types.GType { | 1771 | func MountOperationResultGLibType() types.GType { | ||
| 1772 | + | core.LazyRegister(&xMountOperationResultGLibType, "GIO", "g_mount_operation_result_get_type", false) | |||
| 1710 | return xMountOperationResultGLibType() | 1773 | return xMountOperationResultGLibType() | ||
| 1711 | } | 1774 | } | ||
| 1712 | 1775 | ||||
| @@ -1729,6 +1792,7 @@ type NetworkConnectivity int | |||||
| 1729 | var xNetworkConnectivityGLibType func() types.GType | 1792 | var xNetworkConnectivityGLibType func() types.GType | ||
| 1730 | 1793 | ||||
| 1731 | func NetworkConnectivityGLibType() types.GType { | 1794 | func NetworkConnectivityGLibType() types.GType { | ||
| 1795 | + | core.LazyRegister(&xNetworkConnectivityGLibType, "GIO", "g_network_connectivity_get_type", false) | |||
| 1732 | return xNetworkConnectivityGLibType() | 1796 | return xNetworkConnectivityGLibType() | ||
| 1733 | } | 1797 | } | ||
| 1734 | 1798 | ||||
| @@ -1756,6 +1820,7 @@ type NotificationPriority int | |||||
| 1756 | var xNotificationPriorityGLibType func() types.GType | 1820 | var xNotificationPriorityGLibType func() types.GType | ||
| 1757 | 1821 | ||||
| 1758 | func NotificationPriorityGLibType() types.GType { | 1822 | func NotificationPriorityGLibType() types.GType { | ||
| 1823 | + | core.LazyRegister(&xNotificationPriorityGLibType, "GIO", "g_notification_priority_get_type", false) | |||
| 1759 | return xNotificationPriorityGLibType() | 1824 | return xNotificationPriorityGLibType() | ||
| 1760 | } | 1825 | } | ||
| 1761 | 1826 | ||||
| @@ -1788,6 +1853,7 @@ type PasswordSave int | |||||
| 1788 | var xPasswordSaveGLibType func() types.GType | 1853 | var xPasswordSaveGLibType func() types.GType | ||
| 1789 | 1854 | ||||
| 1790 | func PasswordSaveGLibType() types.GType { | 1855 | func PasswordSaveGLibType() types.GType { | ||
| 1856 | + | core.LazyRegister(&xPasswordSaveGLibType, "GIO", "g_password_save_get_type", false) | |||
| 1791 | return xPasswordSaveGLibType() | 1857 | return xPasswordSaveGLibType() | ||
| 1792 | } | 1858 | } | ||
| 1793 | 1859 | ||||
| @@ -1815,6 +1881,7 @@ type PollableReturn int | |||||
| 1815 | var xPollableReturnGLibType func() types.GType | 1881 | var xPollableReturnGLibType func() types.GType | ||
| 1816 | 1882 | ||||
| 1817 | func PollableReturnGLibType() types.GType { | 1883 | func PollableReturnGLibType() types.GType { | ||
| 1884 | + | core.LazyRegister(&xPollableReturnGLibType, "GIO", "g_pollable_return_get_type", false) | |||
| 1818 | return xPollableReturnGLibType() | 1885 | return xPollableReturnGLibType() | ||
| 1819 | } | 1886 | } | ||
| 1820 | 1887 | ||||
| @@ -1835,6 +1902,7 @@ type ResolverError int | |||||
| 1835 | var xResolverErrorGLibType func() types.GType | 1902 | var xResolverErrorGLibType func() types.GType | ||
| 1836 | 1903 | ||||
| 1837 | func ResolverErrorGLibType() types.GType { | 1904 | func ResolverErrorGLibType() types.GType { | ||
| 1905 | + | core.LazyRegister(&xResolverErrorGLibType, "GIO", "g_resolver_error_get_type", false) | |||
| 1838 | return xResolverErrorGLibType() | 1906 | return xResolverErrorGLibType() | ||
| 1839 | } | 1907 | } | ||
| 1840 | 1908 | ||||
| @@ -1885,6 +1953,7 @@ type ResolverRecordType int | |||||
| 1885 | var xResolverRecordTypeGLibType func() types.GType | 1953 | var xResolverRecordTypeGLibType func() types.GType | ||
| 1886 | 1954 | ||||
| 1887 | func ResolverRecordTypeGLibType() types.GType { | 1955 | func ResolverRecordTypeGLibType() types.GType { | ||
| 1956 | + | core.LazyRegister(&xResolverRecordTypeGLibType, "GIO", "g_resolver_record_type_get_type", false) | |||
| 1888 | return xResolverRecordTypeGLibType() | 1957 | return xResolverRecordTypeGLibType() | ||
| 1889 | } | 1958 | } | ||
| 1890 | 1959 | ||||
| @@ -1909,6 +1978,7 @@ type ResourceError int | |||||
| 1909 | var xResourceErrorGLibType func() types.GType | 1978 | var xResourceErrorGLibType func() types.GType | ||
| 1910 | 1979 | ||||
| 1911 | func ResourceErrorGLibType() types.GType { | 1980 | func ResourceErrorGLibType() types.GType { | ||
| 1981 | + | core.LazyRegister(&xResourceErrorGLibType, "GIO", "g_resource_error_get_type", false) | |||
| 1912 | return xResourceErrorGLibType() | 1982 | return xResourceErrorGLibType() | ||
| 1913 | } | 1983 | } | ||
| 1914 | 1984 | ||||
| @@ -1929,6 +1999,7 @@ type SocketClientEvent int | |||||
| 1929 | var xSocketClientEventGLibType func() types.GType | 1999 | var xSocketClientEventGLibType func() types.GType | ||
| 1930 | 2000 | ||||
| 1931 | func SocketClientEventGLibType() types.GType { | 2001 | func SocketClientEventGLibType() types.GType { | ||
| 2002 | + | core.LazyRegister(&xSocketClientEventGLibType, "GIO", "g_socket_client_event_get_type", false) | |||
| 1932 | return xSocketClientEventGLibType() | 2003 | return xSocketClientEventGLibType() | ||
| 1933 | } | 2004 | } | ||
| 1934 | 2005 | ||||
| @@ -1969,6 +2040,7 @@ type SocketFamily int | |||||
| 1969 | var xSocketFamilyGLibType func() types.GType | 2040 | var xSocketFamilyGLibType func() types.GType | ||
| 1970 | 2041 | ||||
| 1971 | func SocketFamilyGLibType() types.GType { | 2042 | func SocketFamilyGLibType() types.GType { | ||
| 2043 | + | core.LazyRegister(&xSocketFamilyGLibType, "GIO", "g_socket_family_get_type", false) | |||
| 1972 | return xSocketFamilyGLibType() | 2044 | return xSocketFamilyGLibType() | ||
| 1973 | } | 2045 | } | ||
| 1974 | 2046 | ||||
| @@ -1993,6 +2065,7 @@ type SocketListenerEvent int | |||||
| 1993 | var xSocketListenerEventGLibType func() types.GType | 2065 | var xSocketListenerEventGLibType func() types.GType | ||
| 1994 | 2066 | ||||
| 1995 | func SocketListenerEventGLibType() types.GType { | 2067 | func SocketListenerEventGLibType() types.GType { | ||
| 2068 | + | core.LazyRegister(&xSocketListenerEventGLibType, "GIO", "g_socket_listener_event_get_type", false) | |||
| 1996 | return xSocketListenerEventGLibType() | 2069 | return xSocketListenerEventGLibType() | ||
| 1997 | } | 2070 | } | ||
| 1998 | 2071 | ||||
| @@ -2022,6 +2095,7 @@ type SocketProtocol int | |||||
| 2022 | var xSocketProtocolGLibType func() types.GType | 2095 | var xSocketProtocolGLibType func() types.GType | ||
| 2023 | 2096 | ||||
| 2024 | func SocketProtocolGLibType() types.GType { | 2097 | func SocketProtocolGLibType() types.GType { | ||
| 2098 | + | core.LazyRegister(&xSocketProtocolGLibType, "GIO", "g_socket_protocol_get_type", false) | |||
| 2025 | return xSocketProtocolGLibType() | 2099 | return xSocketProtocolGLibType() | ||
| 2026 | } | 2100 | } | ||
| 2027 | 2101 | ||||
| @@ -2046,6 +2120,7 @@ type SocketType int | |||||
| 2046 | var xSocketTypeGLibType func() types.GType | 2120 | var xSocketTypeGLibType func() types.GType | ||
| 2047 | 2121 | ||||
| 2048 | func SocketTypeGLibType() types.GType { | 2122 | func SocketTypeGLibType() types.GType { | ||
| 2123 | + | core.LazyRegister(&xSocketTypeGLibType, "GIO", "g_socket_type_get_type", false) | |||
| 2049 | return xSocketTypeGLibType() | 2124 | return xSocketTypeGLibType() | ||
| 2050 | } | 2125 | } | ||
| 2051 | 2126 | ||||
| @@ -2069,6 +2144,7 @@ type TlsAuthenticationMode int | |||||
| 2069 | var xTlsAuthenticationModeGLibType func() types.GType | 2144 | var xTlsAuthenticationModeGLibType func() types.GType | ||
| 2070 | 2145 | ||||
| 2071 | func TlsAuthenticationModeGLibType() types.GType { | 2146 | func TlsAuthenticationModeGLibType() types.GType { | ||
| 2147 | + | core.LazyRegister(&xTlsAuthenticationModeGLibType, "GIO", "g_tls_authentication_mode_get_type", false) | |||
| 2072 | return xTlsAuthenticationModeGLibType() | 2148 | return xTlsAuthenticationModeGLibType() | ||
| 2073 | } | 2149 | } | ||
| 2074 | 2150 | ||||
| @@ -2089,6 +2165,7 @@ type TlsChannelBindingError int | |||||
| 2089 | var xTlsChannelBindingErrorGLibType func() types.GType | 2165 | var xTlsChannelBindingErrorGLibType func() types.GType | ||
| 2090 | 2166 | ||||
| 2091 | func TlsChannelBindingErrorGLibType() types.GType { | 2167 | func TlsChannelBindingErrorGLibType() types.GType { | ||
| 2168 | + | core.LazyRegister(&xTlsChannelBindingErrorGLibType, "GIO", "g_tls_channel_binding_error_get_type", false) | |||
| 2092 | return xTlsChannelBindingErrorGLibType() | 2169 | return xTlsChannelBindingErrorGLibType() | ||
| 2093 | } | 2170 | } | ||
| 2094 | 2171 | ||||
| @@ -2126,6 +2203,7 @@ type TlsChannelBindingType int | |||||
| 2126 | var xTlsChannelBindingTypeGLibType func() types.GType | 2203 | var xTlsChannelBindingTypeGLibType func() types.GType | ||
| 2127 | 2204 | ||||
| 2128 | func TlsChannelBindingTypeGLibType() types.GType { | 2205 | func TlsChannelBindingTypeGLibType() types.GType { | ||
| 2206 | + | core.LazyRegister(&xTlsChannelBindingTypeGLibType, "GIO", "g_tls_channel_binding_type_get_type", false) | |||
| 2129 | return xTlsChannelBindingTypeGLibType() | 2207 | return xTlsChannelBindingTypeGLibType() | ||
| 2130 | } | 2208 | } | ||
| 2131 | 2209 | ||||
| @@ -2149,6 +2227,7 @@ type TlsError int | |||||
| 2149 | var xTlsErrorGLibType func() types.GType | 2227 | var xTlsErrorGLibType func() types.GType | ||
| 2150 | 2228 | ||||
| 2151 | func TlsErrorGLibType() types.GType { | 2229 | func TlsErrorGLibType() types.GType { | ||
| 2230 | + | core.LazyRegister(&xTlsErrorGLibType, "GIO", "g_tls_error_get_type", false) | |||
| 2152 | return xTlsErrorGLibType() | 2231 | return xTlsErrorGLibType() | ||
| 2153 | } | 2232 | } | ||
| 2154 | 2233 | ||||
| @@ -2191,6 +2270,7 @@ type TlsInteractionResult int | |||||
| 2191 | var xTlsInteractionResultGLibType func() types.GType | 2270 | var xTlsInteractionResultGLibType func() types.GType | ||
| 2192 | 2271 | ||||
| 2193 | func TlsInteractionResultGLibType() types.GType { | 2272 | func TlsInteractionResultGLibType() types.GType { | ||
| 2273 | + | core.LazyRegister(&xTlsInteractionResultGLibType, "GIO", "g_tls_interaction_result_get_type", false) | |||
| 2194 | return xTlsInteractionResultGLibType() | 2274 | return xTlsInteractionResultGLibType() | ||
| 2195 | } | 2275 | } | ||
| 2196 | 2276 | ||||
| @@ -2221,6 +2301,7 @@ type TlsProtocolVersion int | |||||
| 2221 | var xTlsProtocolVersionGLibType func() types.GType | 2301 | var xTlsProtocolVersionGLibType func() types.GType | ||
| 2222 | 2302 | ||||
| 2223 | func TlsProtocolVersionGLibType() types.GType { | 2303 | func TlsProtocolVersionGLibType() types.GType { | ||
| 2304 | + | core.LazyRegister(&xTlsProtocolVersionGLibType, "GIO", "g_tls_protocol_version_get_type", false) | |||
| 2224 | return xTlsProtocolVersionGLibType() | 2305 | return xTlsProtocolVersionGLibType() | ||
| 2225 | } | 2306 | } | ||
| 2226 | 2307 | ||||
| @@ -2251,6 +2332,7 @@ type TlsRehandshakeMode int | |||||
| 2251 | var xTlsRehandshakeModeGLibType func() types.GType | 2332 | var xTlsRehandshakeModeGLibType func() types.GType | ||
| 2252 | 2333 | ||||
| 2253 | func TlsRehandshakeModeGLibType() types.GType { | 2334 | func TlsRehandshakeModeGLibType() types.GType { | ||
| 2335 | + | core.LazyRegister(&xTlsRehandshakeModeGLibType, "GIO", "g_tls_rehandshake_mode_get_type", false) | |||
| 2254 | return xTlsRehandshakeModeGLibType() | 2336 | return xTlsRehandshakeModeGLibType() | ||
| 2255 | } | 2337 | } | ||
| 2256 | 2338 | ||||
| @@ -2282,6 +2364,7 @@ type UnixSocketAddressType int | |||||
| 2282 | var xUnixSocketAddressTypeGLibType func() types.GType | 2364 | var xUnixSocketAddressTypeGLibType func() types.GType | ||
| 2283 | 2365 | ||||
| 2284 | func UnixSocketAddressTypeGLibType() types.GType { | 2366 | func UnixSocketAddressTypeGLibType() types.GType { | ||
| 2367 | + | core.LazyRegister(&xUnixSocketAddressTypeGLibType, "GIO", "g_unix_socket_address_type_get_type", false) | |||
| 2285 | return xUnixSocketAddressTypeGLibType() | 2368 | return xUnixSocketAddressTypeGLibType() | ||
| 2286 | } | 2369 | } | ||
| 2287 | 2370 | ||||
| @@ -2307,6 +2390,7 @@ type ZlibCompressorFormat int | |||||
| 2307 | var xZlibCompressorFormatGLibType func() types.GType | 2390 | var xZlibCompressorFormatGLibType func() types.GType | ||
| 2308 | 2391 | ||||
| 2309 | func ZlibCompressorFormatGLibType() types.GType { | 2392 | func ZlibCompressorFormatGLibType() types.GType { | ||
| 2393 | + | core.LazyRegister(&xZlibCompressorFormatGLibType, "GIO", "g_zlib_compressor_format_get_type", false) | |||
| 2310 | return xZlibCompressorFormatGLibType() | 2394 | return xZlibCompressorFormatGLibType() | ||
| 2311 | } | 2395 | } | ||
| 2312 | 2396 | ||||
| @@ -2319,3 +2403,8 @@ const ( | |||||
| 2319 | // deflate compression with no header | 2403 | // deflate compression with no header | ||
| 2320 | GZlibCompressorFormatRawValue ZlibCompressorFormat = 2 | 2404 | GZlibCompressorFormatRawValue ZlibCompressorFormat = 2 | ||
| 2321 | ) | 2405 | ) | ||
| 2406 | + | ||||
| 2407 | + | func init() { | |||
| 2408 | + | core.SetPackageName("GIO", "gio-2.0") | |||
| 2409 | + | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | |||
| 2410 | + | } | |||