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
| @@ -399,7 +399,7 @@ func (x *ApplicationClass) OverrideDbusRegister(cb func(*Application, *DBusConne | |||
| 399 | 399 | if cb == nil { | |
| 400 | 400 | x.xDbusRegister = 0 | |
| 401 | 401 | } else { | |
| 402 | - | x.xDbusRegister = purego.NewCallback(func(ApplicationVarp uintptr, ConnectionVarp uintptr, ObjectPathVarp string) bool { | |
| 402 | + | x.xDbusRegister = purego.NewCallback(func(ApplicationVarp uintptr, ConnectionVarp uintptr, ObjectPathVarp string, cerrp **glib.Error) bool { | |
| 403 | 403 | return cb(ApplicationNewFromInternalPtr(ApplicationVarp), DBusConnectionNewFromInternalPtr(ConnectionVarp), ObjectPathVarp) | |
| 404 | 404 | }) | |
| 405 | 405 | } | |
| @@ -418,10 +418,11 @@ func (x *ApplicationClass) GetDbusRegister() func(*Application, *DBusConnection, | |||
| 418 | 418 | if x.xDbusRegister == 0 { | |
| 419 | 419 | return nil | |
| 420 | 420 | } | |
| 421 | - | var rawCallback func(ApplicationVarp uintptr, ConnectionVarp uintptr, ObjectPathVarp string) bool | |
| 421 | + | var rawCallback func(ApplicationVarp uintptr, ConnectionVarp uintptr, ObjectPathVarp string, cerrp **glib.Error) bool | |
| 422 | 422 | purego.RegisterFunc(&rawCallback, x.xDbusRegister) | |
| 423 | 423 | return func(ApplicationVar *Application, ConnectionVar *DBusConnection, ObjectPathVar string) bool { | |
| 424 | - | return rawCallback(ApplicationVar.GoPointer(), ConnectionVar.GoPointer(), ObjectPathVar) | |
| 424 | + | var cerr *glib.Error | |
| 425 | + | return rawCallback(ApplicationVar.GoPointer(), ConnectionVar.GoPointer(), ObjectPathVar, &cerr) | |
| 425 | 426 | } | |
| 426 | 427 | } | |
| 427 | 428 | ||
| @@ -656,6 +657,7 @@ type Application struct { | |||
| 656 | 657 | var xApplicationGLibType func() types.GType | |
| 657 | 658 | ||
| 658 | 659 | func ApplicationGLibType() types.GType { | |
| 660 | + | core.LazyRegister(&xApplicationGLibType, "GIO", "g_application_get_type", false) | |
| 659 | 661 | return xApplicationGLibType() | |
| 660 | 662 | } | |
| 661 | 663 | ||
| @@ -675,6 +677,7 @@ var xNewApplication func(uintptr, ApplicationFlags) uintptr | |||
| 675 | 677 | // If no application ID is given then some features of #GApplication | |
| 676 | 678 | // (most notably application uniqueness) will be disabled. | |
| 677 | 679 | func NewApplication(ApplicationIdVar *string, FlagsVar ApplicationFlags) *Application { | |
| 680 | + | core.LazyRegister(&xNewApplication, "GIO", "g_application_new", false) | |
| 678 | 681 | var cls *Application | |
| 679 | 682 | ||
| 680 | 683 | ApplicationIdVarPtr := core.GStrdupNullable(ApplicationIdVar) | |
| @@ -699,6 +702,8 @@ var xApplicationActivate func(uintptr) | |||
| 699 | 702 | // | |
| 700 | 703 | // The application must be registered before calling this function. | |
| 701 | 704 | func (x *Application) Activate() { | |
| 705 | + | core.LazyRegister(&xApplicationActivate, "GIO", "g_application_activate", false) | |
| 706 | + | ||
| 702 | 707 | xApplicationActivate(x.GoPointer()) | |
| 703 | 708 | } | |
| 704 | 709 | ||
| @@ -718,6 +723,8 @@ var xApplicationAddMainOption func(uintptr, string, byte, glib.OptionFlags, glib | |||
| 718 | 723 | // | |
| 719 | 724 | // See #GOptionEntry for more documentation of the arguments. | |
| 720 | 725 | func (x *Application) AddMainOption(LongNameVar string, ShortNameVar byte, FlagsVar glib.OptionFlags, ArgVar glib.OptionArg, DescriptionVar string, ArgDescriptionVar *string) { | |
| 726 | + | core.LazyRegister(&xApplicationAddMainOption, "GIO", "g_application_add_main_option", false) | |
| 727 | + | ||
| 721 | 728 | ArgDescriptionVarPtr := core.GStrdupNullable(ArgDescriptionVar) | |
| 722 | 729 | defer core.GFreeNullable(ArgDescriptionVarPtr) | |
| 723 | 730 | ||
| @@ -783,6 +790,8 @@ var xApplicationAddMainOptionEntries func(uintptr, []glib.OptionEntry) | |||
| 783 | 790 | // - for %G_OPTION_ARG_STRING_ARRAY, use `^a&s` | |
| 784 | 791 | // - for %G_OPTION_ARG_FILENAME_ARRAY, use `^a&ay` | |
| 785 | 792 | func (x *Application) AddMainOptionEntries(EntriesVar []glib.OptionEntry) { | |
| 793 | + | core.LazyRegister(&xApplicationAddMainOptionEntries, "GIO", "g_application_add_main_option_entries", false) | |
| 794 | + | ||
| 786 | 795 | xApplicationAddMainOptionEntries(x.GoPointer(), EntriesVar) | |
| 787 | 796 | } | |
| 788 | 797 | ||
| @@ -814,6 +823,8 @@ var xApplicationAddOptionGroup func(uintptr, *glib.OptionGroup) | |||
| 814 | 823 | // new functionality whereby unrecognized options are rejected even if | |
| 815 | 824 | // %G_APPLICATION_HANDLES_COMMAND_LINE was given. | |
| 816 | 825 | func (x *Application) AddOptionGroup(GroupVar *glib.OptionGroup) { | |
| 826 | + | core.LazyRegister(&xApplicationAddOptionGroup, "GIO", "g_application_add_option_group", false) | |
| 827 | + | ||
| 817 | 828 | xApplicationAddOptionGroup(x.GoPointer(), GroupVar) | |
| 818 | 829 | } | |
| 819 | 830 | ||
| @@ -826,6 +837,8 @@ var xApplicationBindBusyProperty func(uintptr, uintptr, string) | |||
| 826 | 837 | // not to @object. Instead, the binding is destroyed when @object is | |
| 827 | 838 | // finalized. | |
| 828 | 839 | func (x *Application) BindBusyProperty(ObjectVar *gobject.Object, PropertyVar string) { | |
| 840 | + | core.LazyRegister(&xApplicationBindBusyProperty, "GIO", "g_application_bind_busy_property", false) | |
| 841 | + | ||
| 829 | 842 | xApplicationBindBusyProperty(x.GoPointer(), ObjectVar.GoPointer(), PropertyVar) | |
| 830 | 843 | } | |
| 831 | 844 | ||
| @@ -833,6 +846,8 @@ var xApplicationGetApplicationId func(uintptr) string | |||
| 833 | 846 | ||
| 834 | 847 | // Gets the unique identifier for @application. | |
| 835 | 848 | func (x *Application) GetApplicationId() string { | |
| 849 | + | core.LazyRegister(&xApplicationGetApplicationId, "GIO", "g_application_get_application_id", false) | |
| 850 | + | ||
| 836 | 851 | cret := xApplicationGetApplicationId(x.GoPointer()) | |
| 837 | 852 | return cret | |
| 838 | 853 | } | |
| @@ -853,6 +868,7 @@ var xApplicationGetDbusConnection func(uintptr) uintptr | |||
| 853 | 868 | // This function must not be called before the application has been | |
| 854 | 869 | // registered. See g_application_get_is_registered(). | |
| 855 | 870 | func (x *Application) GetDbusConnection() *DBusConnection { | |
| 871 | + | core.LazyRegister(&xApplicationGetDbusConnection, "GIO", "g_application_get_dbus_connection", false) | |
| 856 | 872 | var cls *DBusConnection | |
| 857 | 873 | ||
| 858 | 874 | cret := xApplicationGetDbusConnection(x.GoPointer()) | |
| @@ -883,6 +899,8 @@ var xApplicationGetDbusObjectPath func(uintptr) string | |||
| 883 | 899 | // This function must not be called before the application has been | |
| 884 | 900 | // registered. See g_application_get_is_registered(). | |
| 885 | 901 | func (x *Application) GetDbusObjectPath() string { | |
| 902 | + | core.LazyRegister(&xApplicationGetDbusObjectPath, "GIO", "g_application_get_dbus_object_path", false) | |
| 903 | + | ||
| 886 | 904 | cret := xApplicationGetDbusObjectPath(x.GoPointer()) | |
| 887 | 905 | return cret | |
| 888 | 906 | } | |
| @@ -893,6 +911,8 @@ var xApplicationGetFlags func(uintptr) ApplicationFlags | |||
| 893 | 911 | // | |
| 894 | 912 | // See #GApplicationFlags. | |
| 895 | 913 | func (x *Application) GetFlags() ApplicationFlags { | |
| 914 | + | core.LazyRegister(&xApplicationGetFlags, "GIO", "g_application_get_flags", false) | |
| 915 | + | ||
| 896 | 916 | cret := xApplicationGetFlags(x.GoPointer()) | |
| 897 | 917 | return cret | |
| 898 | 918 | } | |
| @@ -904,6 +924,8 @@ var xApplicationGetInactivityTimeout func(uintptr) uint | |||
| 904 | 924 | // This is the amount of time (in milliseconds) after the last call to | |
| 905 | 925 | // g_application_release() before the application stops running. | |
| 906 | 926 | func (x *Application) GetInactivityTimeout() uint { | |
| 927 | + | core.LazyRegister(&xApplicationGetInactivityTimeout, "GIO", "g_application_get_inactivity_timeout", false) | |
| 928 | + | ||
| 907 | 929 | cret := xApplicationGetInactivityTimeout(x.GoPointer()) | |
| 908 | 930 | return cret | |
| 909 | 931 | } | |
| @@ -913,6 +935,8 @@ var xApplicationGetIsBusy func(uintptr) bool | |||
| 913 | 935 | // Gets the application's current busy state, as set through | |
| 914 | 936 | // g_application_mark_busy() or g_application_bind_busy_property(). | |
| 915 | 937 | func (x *Application) GetIsBusy() bool { | |
| 938 | + | core.LazyRegister(&xApplicationGetIsBusy, "GIO", "g_application_get_is_busy", false) | |
| 939 | + | ||
| 916 | 940 | cret := xApplicationGetIsBusy(x.GoPointer()) | |
| 917 | 941 | return cret | |
| 918 | 942 | } | |
| @@ -924,6 +948,8 @@ var xApplicationGetIsRegistered func(uintptr) bool | |||
| 924 | 948 | // An application is registered if g_application_register() has been | |
| 925 | 949 | // successfully called. | |
| 926 | 950 | func (x *Application) GetIsRegistered() bool { | |
| 951 | + | core.LazyRegister(&xApplicationGetIsRegistered, "GIO", "g_application_get_is_registered", false) | |
| 952 | + | ||
| 927 | 953 | cret := xApplicationGetIsRegistered(x.GoPointer()) | |
| 928 | 954 | return cret | |
| 929 | 955 | } | |
| @@ -941,6 +967,8 @@ var xApplicationGetIsRemote func(uintptr) bool | |||
| 941 | 967 | // g_application_register() has been called. See | |
| 942 | 968 | // g_application_get_is_registered(). | |
| 943 | 969 | func (x *Application) GetIsRemote() bool { | |
| 970 | + | core.LazyRegister(&xApplicationGetIsRemote, "GIO", "g_application_get_is_remote", false) | |
| 971 | + | ||
| 944 | 972 | cret := xApplicationGetIsRemote(x.GoPointer()) | |
| 945 | 973 | return cret | |
| 946 | 974 | } | |
| @@ -951,6 +979,8 @@ var xApplicationGetResourceBasePath func(uintptr) string | |||
| 951 | 979 | // | |
| 952 | 980 | // See g_application_set_resource_base_path() for more information. | |
| 953 | 981 | func (x *Application) GetResourceBasePath() string { | |
| 982 | + | core.LazyRegister(&xApplicationGetResourceBasePath, "GIO", "g_application_get_resource_base_path", false) | |
| 983 | + | ||
| 954 | 984 | cret := xApplicationGetResourceBasePath(x.GoPointer()) | |
| 955 | 985 | return cret | |
| 956 | 986 | } | |
| @@ -959,6 +989,8 @@ var xApplicationGetVersion func(uintptr) string | |||
| 959 | 989 | ||
| 960 | 990 | // Gets the version of @application. | |
| 961 | 991 | func (x *Application) GetVersion() string { | |
| 992 | + | core.LazyRegister(&xApplicationGetVersion, "GIO", "g_application_get_version", false) | |
| 993 | + | ||
| 962 | 994 | cret := xApplicationGetVersion(x.GoPointer()) | |
| 963 | 995 | return cret | |
| 964 | 996 | } | |
| @@ -973,6 +1005,8 @@ var xApplicationHold func(uintptr) | |||
| 973 | 1005 | // | |
| 974 | 1006 | // To cancel the hold, call g_application_release(). | |
| 975 | 1007 | func (x *Application) Hold() { | |
| 1008 | + | core.LazyRegister(&xApplicationHold, "GIO", "g_application_hold", false) | |
| 1009 | + | ||
| 976 | 1010 | xApplicationHold(x.GoPointer()) | |
| 977 | 1011 | } | |
| 978 | 1012 | ||
| @@ -991,6 +1025,8 @@ var xApplicationMarkBusy func(uintptr) | |||
| 991 | 1025 | // | |
| 992 | 1026 | // The application must be registered before calling this function. | |
| 993 | 1027 | func (x *Application) MarkBusy() { | |
| 1028 | + | core.LazyRegister(&xApplicationMarkBusy, "GIO", "g_application_mark_busy", false) | |
| 1029 | + | ||
| 994 | 1030 | xApplicationMarkBusy(x.GoPointer()) | |
| 995 | 1031 | } | |
| 996 | 1032 | ||
| @@ -1011,6 +1047,8 @@ var xApplicationOpen func(uintptr, uintptr, int, string) | |||
| 1011 | 1047 | // The application must be registered before calling this function | |
| 1012 | 1048 | // and it must have the %G_APPLICATION_HANDLES_OPEN flag set. | |
| 1013 | 1049 | func (x *Application) Open(FilesVar uintptr, NFilesVar int, HintVar string) { | |
| 1050 | + | core.LazyRegister(&xApplicationOpen, "GIO", "g_application_open", false) | |
| 1051 | + | ||
| 1014 | 1052 | xApplicationOpen(x.GoPointer(), FilesVar, NFilesVar, HintVar) | |
| 1015 | 1053 | } | |
| 1016 | 1054 | ||
| @@ -1030,6 +1068,8 @@ var xApplicationQuit func(uintptr) | |||
| 1030 | 1068 | // The result of calling g_application_run() again after it returns is | |
| 1031 | 1069 | // unspecified. | |
| 1032 | 1070 | func (x *Application) Quit() { | |
| 1071 | + | core.LazyRegister(&xApplicationQuit, "GIO", "g_application_quit", false) | |
| 1072 | + | ||
| 1033 | 1073 | xApplicationQuit(x.GoPointer()) | |
| 1034 | 1074 | } | |
| 1035 | 1075 | ||
| @@ -1066,6 +1106,7 @@ var xApplicationRegister func(uintptr, uintptr, **glib.Error) bool | |||
| 1066 | 1106 | // instance is or is not the primary instance of the application. See | |
| 1067 | 1107 | // g_application_get_is_remote() for that. | |
| 1068 | 1108 | func (x *Application) Register(CancellableVar *Cancellable) (bool, error) { | |
| 1109 | + | core.LazyRegister(&xApplicationRegister, "GIO", "g_application_register", false) | |
| 1069 | 1110 | var cerr *glib.Error | |
| 1070 | 1111 | ||
| 1071 | 1112 | cret := xApplicationRegister(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | |
| @@ -1084,6 +1125,8 @@ var xApplicationRelease func(uintptr) | |||
| 1084 | 1125 | // Never call this function except to cancel the effect of a previous | |
| 1085 | 1126 | // call to g_application_hold(). | |
| 1086 | 1127 | func (x *Application) Release() { | |
| 1128 | + | core.LazyRegister(&xApplicationRelease, "GIO", "g_application_release", false) | |
| 1129 | + | ||
| 1087 | 1130 | xApplicationRelease(x.GoPointer()) | |
| 1088 | 1131 | } | |
| 1089 | 1132 | ||
| @@ -1165,6 +1208,8 @@ var xApplicationRun func(uintptr, int, []string) int | |||
| 1165 | 1208 | // control over when processes invoked via the commandline will exit and | |
| 1166 | 1209 | // what their exit status will be. | |
| 1167 | 1210 | func (x *Application) Run(ArgcVar int, ArgvVar []string) int { | |
| 1211 | + | core.LazyRegister(&xApplicationRun, "GIO", "g_application_run", false) | |
| 1212 | + | ||
| 1168 | 1213 | cret := xApplicationRun(x.GoPointer(), ArgcVar, ArgvVar) | |
| 1169 | 1214 | return cret | |
| 1170 | 1215 | } | |
| @@ -1201,6 +1246,8 @@ var xApplicationSendNotification func(uintptr, uintptr, uintptr) | |||
| 1201 | 1246 | // It is an error to call this function if @application has no | |
| 1202 | 1247 | // application ID. | |
| 1203 | 1248 | func (x *Application) SendNotification(IdVar *string, NotificationVar *Notification) { | |
| 1249 | + | core.LazyRegister(&xApplicationSendNotification, "GIO", "g_application_send_notification", false) | |
| 1250 | + | ||
| 1204 | 1251 | IdVarPtr := core.GStrdupNullable(IdVar) | |
| 1205 | 1252 | defer core.GFreeNullable(IdVarPtr) | |
| 1206 | 1253 | ||
| @@ -1212,6 +1259,8 @@ var xApplicationSetActionGroup func(uintptr, uintptr) | |||
| 1212 | 1259 | // This used to be how actions were associated with a #GApplication. | |
| 1213 | 1260 | // Now there is #GActionMap for that. | |
| 1214 | 1261 | func (x *Application) SetActionGroup(ActionGroupVar ActionGroup) { | |
| 1262 | + | core.LazyRegister(&xApplicationSetActionGroup, "GIO", "g_application_set_action_group", false) | |
| 1263 | + | ||
| 1215 | 1264 | xApplicationSetActionGroup(x.GoPointer(), ActionGroupVar.GoPointer()) | |
| 1216 | 1265 | } | |
| 1217 | 1266 | ||
| @@ -1225,6 +1274,8 @@ var xApplicationSetApplicationId func(uintptr, uintptr) | |||
| 1225 | 1274 | // If non-%NULL, the application id must be valid. See | |
| 1226 | 1275 | // g_application_id_is_valid(). | |
| 1227 | 1276 | func (x *Application) SetApplicationId(ApplicationIdVar *string) { | |
| 1277 | + | core.LazyRegister(&xApplicationSetApplicationId, "GIO", "g_application_set_application_id", false) | |
| 1278 | + | ||
| 1228 | 1279 | ApplicationIdVarPtr := core.GStrdupNullable(ApplicationIdVar) | |
| 1229 | 1280 | defer core.GFreeNullable(ApplicationIdVarPtr) | |
| 1230 | 1281 | ||
| @@ -1240,6 +1291,8 @@ var xApplicationSetDefault func(uintptr) | |||
| 1240 | 1291 | // @application is destroyed then the default application will revert | |
| 1241 | 1292 | // back to %NULL. | |
| 1242 | 1293 | func (x *Application) SetDefault() { | |
| 1294 | + | core.LazyRegister(&xApplicationSetDefault, "GIO", "g_application_set_default", false) | |
| 1295 | + | ||
| 1243 | 1296 | xApplicationSetDefault(x.GoPointer()) | |
| 1244 | 1297 | } | |
| 1245 | 1298 | ||
| @@ -1252,6 +1305,8 @@ var xApplicationSetFlags func(uintptr, ApplicationFlags) | |||
| 1252 | 1305 | // | |
| 1253 | 1306 | // See #GApplicationFlags. | |
| 1254 | 1307 | func (x *Application) SetFlags(FlagsVar ApplicationFlags) { | |
| 1308 | + | core.LazyRegister(&xApplicationSetFlags, "GIO", "g_application_set_flags", false) | |
| 1309 | + | ||
| 1255 | 1310 | xApplicationSetFlags(x.GoPointer(), FlagsVar) | |
| 1256 | 1311 | } | |
| 1257 | 1312 | ||
| @@ -1266,6 +1321,8 @@ var xApplicationSetInactivityTimeout func(uintptr, uint) | |||
| 1266 | 1321 | // used for next time g_application_release() drops the use count to | |
| 1267 | 1322 | // zero. Any timeouts currently in progress are not impacted. | |
| 1268 | 1323 | func (x *Application) SetInactivityTimeout(InactivityTimeoutVar uint) { | |
| 1324 | + | core.LazyRegister(&xApplicationSetInactivityTimeout, "GIO", "g_application_set_inactivity_timeout", false) | |
| 1325 | + | ||
| 1269 | 1326 | xApplicationSetInactivityTimeout(x.GoPointer(), InactivityTimeoutVar) | |
| 1270 | 1327 | } | |
| 1271 | 1328 | ||
| @@ -1275,6 +1332,8 @@ var xApplicationSetOptionContextDescription func(uintptr, uintptr) | |||
| 1275 | 1332 | // | |
| 1276 | 1333 | // See g_option_context_set_description() for more information. | |
| 1277 | 1334 | func (x *Application) SetOptionContextDescription(DescriptionVar *string) { | |
| 1335 | + | core.LazyRegister(&xApplicationSetOptionContextDescription, "GIO", "g_application_set_option_context_description", false) | |
| 1336 | + | ||
| 1278 | 1337 | DescriptionVarPtr := core.GStrdupNullable(DescriptionVar) | |
| 1279 | 1338 | defer core.GFreeNullable(DescriptionVarPtr) | |
| 1280 | 1339 | ||
| @@ -1290,6 +1349,8 @@ var xApplicationSetOptionContextParameterString func(uintptr, uintptr) | |||
| 1290 | 1349 | // | |
| 1291 | 1350 | // See g_option_context_new() for more information about @parameter_string. | |
| 1292 | 1351 | func (x *Application) SetOptionContextParameterString(ParameterStringVar *string) { | |
| 1352 | + | core.LazyRegister(&xApplicationSetOptionContextParameterString, "GIO", "g_application_set_option_context_parameter_string", false) | |
| 1353 | + | ||
| 1293 | 1354 | ParameterStringVarPtr := core.GStrdupNullable(ParameterStringVar) | |
| 1294 | 1355 | defer core.GFreeNullable(ParameterStringVarPtr) | |
| 1295 | 1356 | ||
| @@ -1302,6 +1363,8 @@ var xApplicationSetOptionContextSummary func(uintptr, uintptr) | |||
| 1302 | 1363 | // | |
| 1303 | 1364 | // See g_option_context_set_summary() for more information. | |
| 1304 | 1365 | func (x *Application) SetOptionContextSummary(SummaryVar *string) { | |
| 1366 | + | core.LazyRegister(&xApplicationSetOptionContextSummary, "GIO", "g_application_set_option_context_summary", false) | |
| 1367 | + | ||
| 1305 | 1368 | SummaryVarPtr := core.GStrdupNullable(SummaryVar) | |
| 1306 | 1369 | defer core.GFreeNullable(SummaryVarPtr) | |
| 1307 | 1370 | ||
| @@ -1344,6 +1407,8 @@ var xApplicationSetResourceBasePath func(uintptr, uintptr) | |||
| 1344 | 1407 | // can call this function in the #GApplicationClass.startup virtual function, | |
| 1345 | 1408 | // before chaining up to the parent implementation. | |
| 1346 | 1409 | func (x *Application) SetResourceBasePath(ResourcePathVar *string) { | |
| 1410 | + | core.LazyRegister(&xApplicationSetResourceBasePath, "GIO", "g_application_set_resource_base_path", false) | |
| 1411 | + | ||
| 1347 | 1412 | ResourcePathVarPtr := core.GStrdupNullable(ResourcePathVar) | |
| 1348 | 1413 | defer core.GFreeNullable(ResourcePathVarPtr) | |
| 1349 | 1414 | ||
| @@ -1358,6 +1423,8 @@ var xApplicationSetVersion func(uintptr, string) | |||
| 1358 | 1423 | // The application version can only be modified if @application has not yet | |
| 1359 | 1424 | // been registered. | |
| 1360 | 1425 | func (x *Application) SetVersion(VersionVar string) { | |
| 1426 | + | core.LazyRegister(&xApplicationSetVersion, "GIO", "g_application_set_version", false) | |
| 1427 | + | ||
| 1361 | 1428 | xApplicationSetVersion(x.GoPointer(), VersionVar) | |
| 1362 | 1429 | } | |
| 1363 | 1430 | ||
| @@ -1367,6 +1434,8 @@ var xApplicationUnbindBusyProperty func(uintptr, uintptr, string) | |||
| 1367 | 1434 | // @application that was previously created with | |
| 1368 | 1435 | // g_application_bind_busy_property(). | |
| 1369 | 1436 | func (x *Application) UnbindBusyProperty(ObjectVar *gobject.Object, PropertyVar string) { | |
| 1437 | + | core.LazyRegister(&xApplicationUnbindBusyProperty, "GIO", "g_application_unbind_busy_property", false) | |
| 1438 | + | ||
| 1370 | 1439 | xApplicationUnbindBusyProperty(x.GoPointer(), ObjectVar.GoPointer(), PropertyVar) | |
| 1371 | 1440 | } | |
| 1372 | 1441 | ||
| @@ -1380,6 +1449,8 @@ var xApplicationUnmarkBusy func(uintptr) | |||
| 1380 | 1449 | // This function must only be called to cancel the effect of a previous | |
| 1381 | 1450 | // call to g_application_mark_busy(). | |
| 1382 | 1451 | func (x *Application) UnmarkBusy() { | |
| 1452 | + | core.LazyRegister(&xApplicationUnmarkBusy, "GIO", "g_application_unmark_busy", false) | |
| 1453 | + | ||
| 1383 | 1454 | xApplicationUnmarkBusy(x.GoPointer()) | |
| 1384 | 1455 | } | |
| 1385 | 1456 | ||
| @@ -1399,6 +1470,8 @@ var xApplicationWithdrawNotification func(uintptr, string) | |||
| 1399 | 1470 | // of the buttons in a notification or triggers its default action, so | |
| 1400 | 1471 | // there is no need to explicitly withdraw the notification in that case. | |
| 1401 | 1472 | func (x *Application) WithdrawNotification(IdVar string) { | |
| 1473 | + | core.LazyRegister(&xApplicationWithdrawNotification, "GIO", "g_application_withdraw_notification", false) | |
| 1474 | + | ||
| 1402 | 1475 | xApplicationWithdrawNotification(x.GoPointer(), IdVar) | |
| 1403 | 1476 | } | |
| 1404 | 1477 | ||
| @@ -2066,6 +2139,7 @@ var xApplicationGetDefault func() uintptr | |||
| 2066 | 2139 | // | |
| 2067 | 2140 | // If there is no default application then %NULL is returned. | |
| 2068 | 2141 | func ApplicationGetDefault() *Application { | |
| 2142 | + | core.LazyRegister(&xApplicationGetDefault, "GIO", "g_application_get_default", false) | |
| 2069 | 2143 | var cls *Application | |
| 2070 | 2144 | ||
| 2071 | 2145 | cret := xApplicationGetDefault() | |
| @@ -2127,6 +2201,8 @@ var xApplicationIdIsValid func(string) bool | |||
| 2127 | 2201 | // For example, if the owner of 7-zip.org used an application identifier for an | |
| 2128 | 2202 | // archiving application, it might be named `org._7_zip.Archiver`. | |
| 2129 | 2203 | func ApplicationIdIsValid(ApplicationIdVar string) bool { | |
| 2204 | + | core.LazyRegister(&xApplicationIdIsValid, "GIO", "g_application_id_is_valid", false) | |
| 2205 | + | ||
| 2130 | 2206 | cret := xApplicationIdIsValid(ApplicationIdVar) | |
| 2131 | 2207 | return cret | |
| 2132 | 2208 | } | |
| @@ -2134,56 +2210,4 @@ func ApplicationIdIsValid(ApplicationIdVar string) bool { | |||
| 2134 | 2210 | func init() { | |
| 2135 | 2211 | core.SetPackageName("GIO", "gio-2.0") | |
| 2136 | 2212 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | |
| 2137 | - | var libs []uintptr | |
| 2138 | - | for _, libPath := range core.GetPaths("GIO") { | |
| 2139 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 2140 | - | if err != nil { | |
| 2141 | - | panic(err) | |
| 2142 | - | } | |
| 2143 | - | libs = append(libs, lib) | |
| 2144 | - | } | |
| 2145 | - | ||
| 2146 | - | core.PuregoSafeRegister(&xApplicationGLibType, libs, "g_application_get_type") | |
| 2147 | - | ||
| 2148 | - | core.PuregoSafeRegister(&xNewApplication, libs, "g_application_new") | |
| 2149 | - | ||
| 2150 | - | core.PuregoSafeRegister(&xApplicationActivate, libs, "g_application_activate") | |
| 2151 | - | core.PuregoSafeRegister(&xApplicationAddMainOption, libs, "g_application_add_main_option") | |
| 2152 | - | core.PuregoSafeRegister(&xApplicationAddMainOptionEntries, libs, "g_application_add_main_option_entries") | |
| 2153 | - | core.PuregoSafeRegister(&xApplicationAddOptionGroup, libs, "g_application_add_option_group") | |
| 2154 | - | core.PuregoSafeRegister(&xApplicationBindBusyProperty, libs, "g_application_bind_busy_property") | |
| 2155 | - | core.PuregoSafeRegister(&xApplicationGetApplicationId, libs, "g_application_get_application_id") | |
| 2156 | - | core.PuregoSafeRegister(&xApplicationGetDbusConnection, libs, "g_application_get_dbus_connection") | |
| 2157 | - | core.PuregoSafeRegister(&xApplicationGetDbusObjectPath, libs, "g_application_get_dbus_object_path") | |
| 2158 | - | core.PuregoSafeRegister(&xApplicationGetFlags, libs, "g_application_get_flags") | |
| 2159 | - | core.PuregoSafeRegister(&xApplicationGetInactivityTimeout, libs, "g_application_get_inactivity_timeout") | |
| 2160 | - | core.PuregoSafeRegister(&xApplicationGetIsBusy, libs, "g_application_get_is_busy") | |
| 2161 | - | core.PuregoSafeRegister(&xApplicationGetIsRegistered, libs, "g_application_get_is_registered") | |
| 2162 | - | core.PuregoSafeRegister(&xApplicationGetIsRemote, libs, "g_application_get_is_remote") | |
| 2163 | - | core.PuregoSafeRegister(&xApplicationGetResourceBasePath, libs, "g_application_get_resource_base_path") | |
| 2164 | - | core.PuregoSafeRegister(&xApplicationGetVersion, libs, "g_application_get_version") | |
| 2165 | - | core.PuregoSafeRegister(&xApplicationHold, libs, "g_application_hold") | |
| 2166 | - | core.PuregoSafeRegister(&xApplicationMarkBusy, libs, "g_application_mark_busy") | |
| 2167 | - | core.PuregoSafeRegister(&xApplicationOpen, libs, "g_application_open") | |
| 2168 | - | core.PuregoSafeRegister(&xApplicationQuit, libs, "g_application_quit") | |
| 2169 | - | core.PuregoSafeRegister(&xApplicationRegister, libs, "g_application_register") | |
| 2170 | - | core.PuregoSafeRegister(&xApplicationRelease, libs, "g_application_release") | |
| 2171 | - | core.PuregoSafeRegister(&xApplicationRun, libs, "g_application_run") | |
| 2172 | - | core.PuregoSafeRegister(&xApplicationSendNotification, libs, "g_application_send_notification") | |
| 2173 | - | core.PuregoSafeRegister(&xApplicationSetActionGroup, libs, "g_application_set_action_group") | |
| 2174 | - | core.PuregoSafeRegister(&xApplicationSetApplicationId, libs, "g_application_set_application_id") | |
| 2175 | - | core.PuregoSafeRegister(&xApplicationSetDefault, libs, "g_application_set_default") | |
| 2176 | - | core.PuregoSafeRegister(&xApplicationSetFlags, libs, "g_application_set_flags") | |
| 2177 | - | core.PuregoSafeRegister(&xApplicationSetInactivityTimeout, libs, "g_application_set_inactivity_timeout") | |
| 2178 | - | core.PuregoSafeRegister(&xApplicationSetOptionContextDescription, libs, "g_application_set_option_context_description") | |
| 2179 | - | core.PuregoSafeRegister(&xApplicationSetOptionContextParameterString, libs, "g_application_set_option_context_parameter_string") | |
| 2180 | - | core.PuregoSafeRegister(&xApplicationSetOptionContextSummary, libs, "g_application_set_option_context_summary") | |
| 2181 | - | core.PuregoSafeRegister(&xApplicationSetResourceBasePath, libs, "g_application_set_resource_base_path") | |
| 2182 | - | core.PuregoSafeRegister(&xApplicationSetVersion, libs, "g_application_set_version") | |
| 2183 | - | core.PuregoSafeRegister(&xApplicationUnbindBusyProperty, libs, "g_application_unbind_busy_property") | |
| 2184 | - | core.PuregoSafeRegister(&xApplicationUnmarkBusy, libs, "g_application_unmark_busy") | |
| 2185 | - | core.PuregoSafeRegister(&xApplicationWithdrawNotification, libs, "g_application_withdraw_notification") | |
| 2186 | - | ||
| 2187 | - | core.PuregoSafeRegister(&xApplicationGetDefault, libs, "g_application_get_default") | |
| 2188 | - | core.PuregoSafeRegister(&xApplicationIdIsValid, libs, "g_application_id_is_valid") | |
| 2189 | 2213 | } | |
| @@ -399,7 +399,7 @@ func (x *ApplicationClass) OverrideDbusRegister(cb func(*Application, *DBusConne | |||||
| 399 | if cb == nil { | 399 | if cb == nil { | ||
| 400 | x.xDbusRegister = 0 | 400 | x.xDbusRegister = 0 | ||
| 401 | } else { | 401 | } else { | ||
| 402 | - | x.xDbusRegister = purego.NewCallback(func(ApplicationVarp uintptr, ConnectionVarp uintptr, ObjectPathVarp string) bool { | 402 | + | x.xDbusRegister = purego.NewCallback(func(ApplicationVarp uintptr, ConnectionVarp uintptr, ObjectPathVarp string, cerrp **glib.Error) bool { |
| 403 | return cb(ApplicationNewFromInternalPtr(ApplicationVarp), DBusConnectionNewFromInternalPtr(ConnectionVarp), ObjectPathVarp) | 403 | return cb(ApplicationNewFromInternalPtr(ApplicationVarp), DBusConnectionNewFromInternalPtr(ConnectionVarp), ObjectPathVarp) | ||
| 404 | }) | 404 | }) | ||
| 405 | } | 405 | } | ||
| @@ -418,10 +418,11 @@ func (x *ApplicationClass) GetDbusRegister() func(*Application, *DBusConnection, | |||||
| 418 | if x.xDbusRegister == 0 { | 418 | if x.xDbusRegister == 0 { | ||
| 419 | return nil | 419 | return nil | ||
| 420 | } | 420 | } | ||
| 421 | - | var rawCallback func(ApplicationVarp uintptr, ConnectionVarp uintptr, ObjectPathVarp string) bool | 421 | + | var rawCallback func(ApplicationVarp uintptr, ConnectionVarp uintptr, ObjectPathVarp string, cerrp **glib.Error) bool |
| 422 | purego.RegisterFunc(&rawCallback, x.xDbusRegister) | 422 | purego.RegisterFunc(&rawCallback, x.xDbusRegister) | ||
| 423 | return func(ApplicationVar *Application, ConnectionVar *DBusConnection, ObjectPathVar string) bool { | 423 | return func(ApplicationVar *Application, ConnectionVar *DBusConnection, ObjectPathVar string) bool { | ||
| 424 | - | return rawCallback(ApplicationVar.GoPointer(), ConnectionVar.GoPointer(), ObjectPathVar) | 424 | + | var cerr *glib.Error |
| 425 | + | return rawCallback(ApplicationVar.GoPointer(), ConnectionVar.GoPointer(), ObjectPathVar, &cerr) | |||
| 425 | } | 426 | } | ||
| 426 | } | 427 | } | ||
| 427 | 428 | ||||
| @@ -656,6 +657,7 @@ type Application struct { | |||||
| 656 | var xApplicationGLibType func() types.GType | 657 | var xApplicationGLibType func() types.GType | ||
| 657 | 658 | ||||
| 658 | func ApplicationGLibType() types.GType { | 659 | func ApplicationGLibType() types.GType { | ||
| 660 | + | core.LazyRegister(&xApplicationGLibType, "GIO", "g_application_get_type", false) | |||
| 659 | return xApplicationGLibType() | 661 | return xApplicationGLibType() | ||
| 660 | } | 662 | } | ||
| 661 | 663 | ||||
| @@ -675,6 +677,7 @@ var xNewApplication func(uintptr, ApplicationFlags) uintptr | |||||
| 675 | // If no application ID is given then some features of #GApplication | 677 | // If no application ID is given then some features of #GApplication | ||
| 676 | // (most notably application uniqueness) will be disabled. | 678 | // (most notably application uniqueness) will be disabled. | ||
| 677 | func NewApplication(ApplicationIdVar *string, FlagsVar ApplicationFlags) *Application { | 679 | func NewApplication(ApplicationIdVar *string, FlagsVar ApplicationFlags) *Application { | ||
| 680 | + | core.LazyRegister(&xNewApplication, "GIO", "g_application_new", false) | |||
| 678 | var cls *Application | 681 | var cls *Application | ||
| 679 | 682 | ||||
| 680 | ApplicationIdVarPtr := core.GStrdupNullable(ApplicationIdVar) | 683 | ApplicationIdVarPtr := core.GStrdupNullable(ApplicationIdVar) | ||
| @@ -699,6 +702,8 @@ var xApplicationActivate func(uintptr) | |||||
| 699 | // | 702 | // | ||
| 700 | // The application must be registered before calling this function. | 703 | // The application must be registered before calling this function. | ||
| 701 | func (x *Application) Activate() { | 704 | func (x *Application) Activate() { | ||
| 705 | + | core.LazyRegister(&xApplicationActivate, "GIO", "g_application_activate", false) | |||
| 706 | + | ||||
| 702 | xApplicationActivate(x.GoPointer()) | 707 | xApplicationActivate(x.GoPointer()) | ||
| 703 | } | 708 | } | ||
| 704 | 709 | ||||
| @@ -718,6 +723,8 @@ var xApplicationAddMainOption func(uintptr, string, byte, glib.OptionFlags, glib | |||||
| 718 | // | 723 | // | ||
| 719 | // See #GOptionEntry for more documentation of the arguments. | 724 | // See #GOptionEntry for more documentation of the arguments. | ||
| 720 | func (x *Application) AddMainOption(LongNameVar string, ShortNameVar byte, FlagsVar glib.OptionFlags, ArgVar glib.OptionArg, DescriptionVar string, ArgDescriptionVar *string) { | 725 | func (x *Application) AddMainOption(LongNameVar string, ShortNameVar byte, FlagsVar glib.OptionFlags, ArgVar glib.OptionArg, DescriptionVar string, ArgDescriptionVar *string) { | ||
| 726 | + | core.LazyRegister(&xApplicationAddMainOption, "GIO", "g_application_add_main_option", false) | |||
| 727 | + | ||||
| 721 | ArgDescriptionVarPtr := core.GStrdupNullable(ArgDescriptionVar) | 728 | ArgDescriptionVarPtr := core.GStrdupNullable(ArgDescriptionVar) | ||
| 722 | defer core.GFreeNullable(ArgDescriptionVarPtr) | 729 | defer core.GFreeNullable(ArgDescriptionVarPtr) | ||
| 723 | 730 | ||||
| @@ -783,6 +790,8 @@ var xApplicationAddMainOptionEntries func(uintptr, []glib.OptionEntry) | |||||
| 783 | // - for %G_OPTION_ARG_STRING_ARRAY, use `^a&s` | 790 | // - for %G_OPTION_ARG_STRING_ARRAY, use `^a&s` | ||
| 784 | // - for %G_OPTION_ARG_FILENAME_ARRAY, use `^a&ay` | 791 | // - for %G_OPTION_ARG_FILENAME_ARRAY, use `^a&ay` | ||
| 785 | func (x *Application) AddMainOptionEntries(EntriesVar []glib.OptionEntry) { | 792 | func (x *Application) AddMainOptionEntries(EntriesVar []glib.OptionEntry) { | ||
| 793 | + | core.LazyRegister(&xApplicationAddMainOptionEntries, "GIO", "g_application_add_main_option_entries", false) | |||
| 794 | + | ||||
| 786 | xApplicationAddMainOptionEntries(x.GoPointer(), EntriesVar) | 795 | xApplicationAddMainOptionEntries(x.GoPointer(), EntriesVar) | ||
| 787 | } | 796 | } | ||
| 788 | 797 | ||||
| @@ -814,6 +823,8 @@ var xApplicationAddOptionGroup func(uintptr, *glib.OptionGroup) | |||||
| 814 | // new functionality whereby unrecognized options are rejected even if | 823 | // new functionality whereby unrecognized options are rejected even if | ||
| 815 | // %G_APPLICATION_HANDLES_COMMAND_LINE was given. | 824 | // %G_APPLICATION_HANDLES_COMMAND_LINE was given. | ||
| 816 | func (x *Application) AddOptionGroup(GroupVar *glib.OptionGroup) { | 825 | func (x *Application) AddOptionGroup(GroupVar *glib.OptionGroup) { | ||
| 826 | + | core.LazyRegister(&xApplicationAddOptionGroup, "GIO", "g_application_add_option_group", false) | |||
| 827 | + | ||||
| 817 | xApplicationAddOptionGroup(x.GoPointer(), GroupVar) | 828 | xApplicationAddOptionGroup(x.GoPointer(), GroupVar) | ||
| 818 | } | 829 | } | ||
| 819 | 830 | ||||
| @@ -826,6 +837,8 @@ var xApplicationBindBusyProperty func(uintptr, uintptr, string) | |||||
| 826 | // not to @object. Instead, the binding is destroyed when @object is | 837 | // not to @object. Instead, the binding is destroyed when @object is | ||
| 827 | // finalized. | 838 | // finalized. | ||
| 828 | func (x *Application) BindBusyProperty(ObjectVar *gobject.Object, PropertyVar string) { | 839 | func (x *Application) BindBusyProperty(ObjectVar *gobject.Object, PropertyVar string) { | ||
| 840 | + | core.LazyRegister(&xApplicationBindBusyProperty, "GIO", "g_application_bind_busy_property", false) | |||
| 841 | + | ||||
| 829 | xApplicationBindBusyProperty(x.GoPointer(), ObjectVar.GoPointer(), PropertyVar) | 842 | xApplicationBindBusyProperty(x.GoPointer(), ObjectVar.GoPointer(), PropertyVar) | ||
| 830 | } | 843 | } | ||
| 831 | 844 | ||||
| @@ -833,6 +846,8 @@ var xApplicationGetApplicationId func(uintptr) string | |||||
| 833 | 846 | ||||
| 834 | // Gets the unique identifier for @application. | 847 | // Gets the unique identifier for @application. | ||
| 835 | func (x *Application) GetApplicationId() string { | 848 | func (x *Application) GetApplicationId() string { | ||
| 849 | + | core.LazyRegister(&xApplicationGetApplicationId, "GIO", "g_application_get_application_id", false) | |||
| 850 | + | ||||
| 836 | cret := xApplicationGetApplicationId(x.GoPointer()) | 851 | cret := xApplicationGetApplicationId(x.GoPointer()) | ||
| 837 | return cret | 852 | return cret | ||
| 838 | } | 853 | } | ||
| @@ -853,6 +868,7 @@ var xApplicationGetDbusConnection func(uintptr) uintptr | |||||
| 853 | // This function must not be called before the application has been | 868 | // This function must not be called before the application has been | ||
| 854 | // registered. See g_application_get_is_registered(). | 869 | // registered. See g_application_get_is_registered(). | ||
| 855 | func (x *Application) GetDbusConnection() *DBusConnection { | 870 | func (x *Application) GetDbusConnection() *DBusConnection { | ||
| 871 | + | core.LazyRegister(&xApplicationGetDbusConnection, "GIO", "g_application_get_dbus_connection", false) | |||
| 856 | var cls *DBusConnection | 872 | var cls *DBusConnection | ||
| 857 | 873 | ||||
| 858 | cret := xApplicationGetDbusConnection(x.GoPointer()) | 874 | cret := xApplicationGetDbusConnection(x.GoPointer()) | ||
| @@ -883,6 +899,8 @@ var xApplicationGetDbusObjectPath func(uintptr) string | |||||
| 883 | // This function must not be called before the application has been | 899 | // This function must not be called before the application has been | ||
| 884 | // registered. See g_application_get_is_registered(). | 900 | // registered. See g_application_get_is_registered(). | ||
| 885 | func (x *Application) GetDbusObjectPath() string { | 901 | func (x *Application) GetDbusObjectPath() string { | ||
| 902 | + | core.LazyRegister(&xApplicationGetDbusObjectPath, "GIO", "g_application_get_dbus_object_path", false) | |||
| 903 | + | ||||
| 886 | cret := xApplicationGetDbusObjectPath(x.GoPointer()) | 904 | cret := xApplicationGetDbusObjectPath(x.GoPointer()) | ||
| 887 | return cret | 905 | return cret | ||
| 888 | } | 906 | } | ||
| @@ -893,6 +911,8 @@ var xApplicationGetFlags func(uintptr) ApplicationFlags | |||||
| 893 | // | 911 | // | ||
| 894 | // See #GApplicationFlags. | 912 | // See #GApplicationFlags. | ||
| 895 | func (x *Application) GetFlags() ApplicationFlags { | 913 | func (x *Application) GetFlags() ApplicationFlags { | ||
| 914 | + | core.LazyRegister(&xApplicationGetFlags, "GIO", "g_application_get_flags", false) | |||
| 915 | + | ||||
| 896 | cret := xApplicationGetFlags(x.GoPointer()) | 916 | cret := xApplicationGetFlags(x.GoPointer()) | ||
| 897 | return cret | 917 | return cret | ||
| 898 | } | 918 | } | ||
| @@ -904,6 +924,8 @@ var xApplicationGetInactivityTimeout func(uintptr) uint | |||||
| 904 | // This is the amount of time (in milliseconds) after the last call to | 924 | // This is the amount of time (in milliseconds) after the last call to | ||
| 905 | // g_application_release() before the application stops running. | 925 | // g_application_release() before the application stops running. | ||
| 906 | func (x *Application) GetInactivityTimeout() uint { | 926 | func (x *Application) GetInactivityTimeout() uint { | ||
| 927 | + | core.LazyRegister(&xApplicationGetInactivityTimeout, "GIO", "g_application_get_inactivity_timeout", false) | |||
| 928 | + | ||||
| 907 | cret := xApplicationGetInactivityTimeout(x.GoPointer()) | 929 | cret := xApplicationGetInactivityTimeout(x.GoPointer()) | ||
| 908 | return cret | 930 | return cret | ||
| 909 | } | 931 | } | ||
| @@ -913,6 +935,8 @@ var xApplicationGetIsBusy func(uintptr) bool | |||||
| 913 | // Gets the application's current busy state, as set through | 935 | // Gets the application's current busy state, as set through | ||
| 914 | // g_application_mark_busy() or g_application_bind_busy_property(). | 936 | // g_application_mark_busy() or g_application_bind_busy_property(). | ||
| 915 | func (x *Application) GetIsBusy() bool { | 937 | func (x *Application) GetIsBusy() bool { | ||
| 938 | + | core.LazyRegister(&xApplicationGetIsBusy, "GIO", "g_application_get_is_busy", false) | |||
| 939 | + | ||||
| 916 | cret := xApplicationGetIsBusy(x.GoPointer()) | 940 | cret := xApplicationGetIsBusy(x.GoPointer()) | ||
| 917 | return cret | 941 | return cret | ||
| 918 | } | 942 | } | ||
| @@ -924,6 +948,8 @@ var xApplicationGetIsRegistered func(uintptr) bool | |||||
| 924 | // An application is registered if g_application_register() has been | 948 | // An application is registered if g_application_register() has been | ||
| 925 | // successfully called. | 949 | // successfully called. | ||
| 926 | func (x *Application) GetIsRegistered() bool { | 950 | func (x *Application) GetIsRegistered() bool { | ||
| 951 | + | core.LazyRegister(&xApplicationGetIsRegistered, "GIO", "g_application_get_is_registered", false) | |||
| 952 | + | ||||
| 927 | cret := xApplicationGetIsRegistered(x.GoPointer()) | 953 | cret := xApplicationGetIsRegistered(x.GoPointer()) | ||
| 928 | return cret | 954 | return cret | ||
| 929 | } | 955 | } | ||
| @@ -941,6 +967,8 @@ var xApplicationGetIsRemote func(uintptr) bool | |||||
| 941 | // g_application_register() has been called. See | 967 | // g_application_register() has been called. See | ||
| 942 | // g_application_get_is_registered(). | 968 | // g_application_get_is_registered(). | ||
| 943 | func (x *Application) GetIsRemote() bool { | 969 | func (x *Application) GetIsRemote() bool { | ||
| 970 | + | core.LazyRegister(&xApplicationGetIsRemote, "GIO", "g_application_get_is_remote", false) | |||
| 971 | + | ||||
| 944 | cret := xApplicationGetIsRemote(x.GoPointer()) | 972 | cret := xApplicationGetIsRemote(x.GoPointer()) | ||
| 945 | return cret | 973 | return cret | ||
| 946 | } | 974 | } | ||
| @@ -951,6 +979,8 @@ var xApplicationGetResourceBasePath func(uintptr) string | |||||
| 951 | // | 979 | // | ||
| 952 | // See g_application_set_resource_base_path() for more information. | 980 | // See g_application_set_resource_base_path() for more information. | ||
| 953 | func (x *Application) GetResourceBasePath() string { | 981 | func (x *Application) GetResourceBasePath() string { | ||
| 982 | + | core.LazyRegister(&xApplicationGetResourceBasePath, "GIO", "g_application_get_resource_base_path", false) | |||
| 983 | + | ||||
| 954 | cret := xApplicationGetResourceBasePath(x.GoPointer()) | 984 | cret := xApplicationGetResourceBasePath(x.GoPointer()) | ||
| 955 | return cret | 985 | return cret | ||
| 956 | } | 986 | } | ||
| @@ -959,6 +989,8 @@ var xApplicationGetVersion func(uintptr) string | |||||
| 959 | 989 | ||||
| 960 | // Gets the version of @application. | 990 | // Gets the version of @application. | ||
| 961 | func (x *Application) GetVersion() string { | 991 | func (x *Application) GetVersion() string { | ||
| 992 | + | core.LazyRegister(&xApplicationGetVersion, "GIO", "g_application_get_version", false) | |||
| 993 | + | ||||
| 962 | cret := xApplicationGetVersion(x.GoPointer()) | 994 | cret := xApplicationGetVersion(x.GoPointer()) | ||
| 963 | return cret | 995 | return cret | ||
| 964 | } | 996 | } | ||
| @@ -973,6 +1005,8 @@ var xApplicationHold func(uintptr) | |||||
| 973 | // | 1005 | // | ||
| 974 | // To cancel the hold, call g_application_release(). | 1006 | // To cancel the hold, call g_application_release(). | ||
| 975 | func (x *Application) Hold() { | 1007 | func (x *Application) Hold() { | ||
| 1008 | + | core.LazyRegister(&xApplicationHold, "GIO", "g_application_hold", false) | |||
| 1009 | + | ||||
| 976 | xApplicationHold(x.GoPointer()) | 1010 | xApplicationHold(x.GoPointer()) | ||
| 977 | } | 1011 | } | ||
| 978 | 1012 | ||||
| @@ -991,6 +1025,8 @@ var xApplicationMarkBusy func(uintptr) | |||||
| 991 | // | 1025 | // | ||
| 992 | // The application must be registered before calling this function. | 1026 | // The application must be registered before calling this function. | ||
| 993 | func (x *Application) MarkBusy() { | 1027 | func (x *Application) MarkBusy() { | ||
| 1028 | + | core.LazyRegister(&xApplicationMarkBusy, "GIO", "g_application_mark_busy", false) | |||
| 1029 | + | ||||
| 994 | xApplicationMarkBusy(x.GoPointer()) | 1030 | xApplicationMarkBusy(x.GoPointer()) | ||
| 995 | } | 1031 | } | ||
| 996 | 1032 | ||||
| @@ -1011,6 +1047,8 @@ var xApplicationOpen func(uintptr, uintptr, int, string) | |||||
| 1011 | // The application must be registered before calling this function | 1047 | // The application must be registered before calling this function | ||
| 1012 | // and it must have the %G_APPLICATION_HANDLES_OPEN flag set. | 1048 | // and it must have the %G_APPLICATION_HANDLES_OPEN flag set. | ||
| 1013 | func (x *Application) Open(FilesVar uintptr, NFilesVar int, HintVar string) { | 1049 | func (x *Application) Open(FilesVar uintptr, NFilesVar int, HintVar string) { | ||
| 1050 | + | core.LazyRegister(&xApplicationOpen, "GIO", "g_application_open", false) | |||
| 1051 | + | ||||
| 1014 | xApplicationOpen(x.GoPointer(), FilesVar, NFilesVar, HintVar) | 1052 | xApplicationOpen(x.GoPointer(), FilesVar, NFilesVar, HintVar) | ||
| 1015 | } | 1053 | } | ||
| 1016 | 1054 | ||||
| @@ -1030,6 +1068,8 @@ var xApplicationQuit func(uintptr) | |||||
| 1030 | // The result of calling g_application_run() again after it returns is | 1068 | // The result of calling g_application_run() again after it returns is | ||
| 1031 | // unspecified. | 1069 | // unspecified. | ||
| 1032 | func (x *Application) Quit() { | 1070 | func (x *Application) Quit() { | ||
| 1071 | + | core.LazyRegister(&xApplicationQuit, "GIO", "g_application_quit", false) | |||
| 1072 | + | ||||
| 1033 | xApplicationQuit(x.GoPointer()) | 1073 | xApplicationQuit(x.GoPointer()) | ||
| 1034 | } | 1074 | } | ||
| 1035 | 1075 | ||||
| @@ -1066,6 +1106,7 @@ var xApplicationRegister func(uintptr, uintptr, **glib.Error) bool | |||||
| 1066 | // instance is or is not the primary instance of the application. See | 1106 | // instance is or is not the primary instance of the application. See | ||
| 1067 | // g_application_get_is_remote() for that. | 1107 | // g_application_get_is_remote() for that. | ||
| 1068 | func (x *Application) Register(CancellableVar *Cancellable) (bool, error) { | 1108 | func (x *Application) Register(CancellableVar *Cancellable) (bool, error) { | ||
| 1109 | + | core.LazyRegister(&xApplicationRegister, "GIO", "g_application_register", false) | |||
| 1069 | var cerr *glib.Error | 1110 | var cerr *glib.Error | ||
| 1070 | 1111 | ||||
| 1071 | cret := xApplicationRegister(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | 1112 | cret := xApplicationRegister(x.GoPointer(), CancellableVar.GoPointer(), &cerr) | ||
| @@ -1084,6 +1125,8 @@ var xApplicationRelease func(uintptr) | |||||
| 1084 | // Never call this function except to cancel the effect of a previous | 1125 | // Never call this function except to cancel the effect of a previous | ||
| 1085 | // call to g_application_hold(). | 1126 | // call to g_application_hold(). | ||
| 1086 | func (x *Application) Release() { | 1127 | func (x *Application) Release() { | ||
| 1128 | + | core.LazyRegister(&xApplicationRelease, "GIO", "g_application_release", false) | |||
| 1129 | + | ||||
| 1087 | xApplicationRelease(x.GoPointer()) | 1130 | xApplicationRelease(x.GoPointer()) | ||
| 1088 | } | 1131 | } | ||
| 1089 | 1132 | ||||
| @@ -1165,6 +1208,8 @@ var xApplicationRun func(uintptr, int, []string) int | |||||
| 1165 | // control over when processes invoked via the commandline will exit and | 1208 | // control over when processes invoked via the commandline will exit and | ||
| 1166 | // what their exit status will be. | 1209 | // what their exit status will be. | ||
| 1167 | func (x *Application) Run(ArgcVar int, ArgvVar []string) int { | 1210 | func (x *Application) Run(ArgcVar int, ArgvVar []string) int { | ||
| 1211 | + | core.LazyRegister(&xApplicationRun, "GIO", "g_application_run", false) | |||
| 1212 | + | ||||
| 1168 | cret := xApplicationRun(x.GoPointer(), ArgcVar, ArgvVar) | 1213 | cret := xApplicationRun(x.GoPointer(), ArgcVar, ArgvVar) | ||
| 1169 | return cret | 1214 | return cret | ||
| 1170 | } | 1215 | } | ||
| @@ -1201,6 +1246,8 @@ var xApplicationSendNotification func(uintptr, uintptr, uintptr) | |||||
| 1201 | // It is an error to call this function if @application has no | 1246 | // It is an error to call this function if @application has no | ||
| 1202 | // application ID. | 1247 | // application ID. | ||
| 1203 | func (x *Application) SendNotification(IdVar *string, NotificationVar *Notification) { | 1248 | func (x *Application) SendNotification(IdVar *string, NotificationVar *Notification) { | ||
| 1249 | + | core.LazyRegister(&xApplicationSendNotification, "GIO", "g_application_send_notification", false) | |||
| 1250 | + | ||||
| 1204 | IdVarPtr := core.GStrdupNullable(IdVar) | 1251 | IdVarPtr := core.GStrdupNullable(IdVar) | ||
| 1205 | defer core.GFreeNullable(IdVarPtr) | 1252 | defer core.GFreeNullable(IdVarPtr) | ||
| 1206 | 1253 | ||||
| @@ -1212,6 +1259,8 @@ var xApplicationSetActionGroup func(uintptr, uintptr) | |||||
| 1212 | // This used to be how actions were associated with a #GApplication. | 1259 | // This used to be how actions were associated with a #GApplication. | ||
| 1213 | // Now there is #GActionMap for that. | 1260 | // Now there is #GActionMap for that. | ||
| 1214 | func (x *Application) SetActionGroup(ActionGroupVar ActionGroup) { | 1261 | func (x *Application) SetActionGroup(ActionGroupVar ActionGroup) { | ||
| 1262 | + | core.LazyRegister(&xApplicationSetActionGroup, "GIO", "g_application_set_action_group", false) | |||
| 1263 | + | ||||
| 1215 | xApplicationSetActionGroup(x.GoPointer(), ActionGroupVar.GoPointer()) | 1264 | xApplicationSetActionGroup(x.GoPointer(), ActionGroupVar.GoPointer()) | ||
| 1216 | } | 1265 | } | ||
| 1217 | 1266 | ||||
| @@ -1225,6 +1274,8 @@ var xApplicationSetApplicationId func(uintptr, uintptr) | |||||
| 1225 | // If non-%NULL, the application id must be valid. See | 1274 | // If non-%NULL, the application id must be valid. See | ||
| 1226 | // g_application_id_is_valid(). | 1275 | // g_application_id_is_valid(). | ||
| 1227 | func (x *Application) SetApplicationId(ApplicationIdVar *string) { | 1276 | func (x *Application) SetApplicationId(ApplicationIdVar *string) { | ||
| 1277 | + | core.LazyRegister(&xApplicationSetApplicationId, "GIO", "g_application_set_application_id", false) | |||
| 1278 | + | ||||
| 1228 | ApplicationIdVarPtr := core.GStrdupNullable(ApplicationIdVar) | 1279 | ApplicationIdVarPtr := core.GStrdupNullable(ApplicationIdVar) | ||
| 1229 | defer core.GFreeNullable(ApplicationIdVarPtr) | 1280 | defer core.GFreeNullable(ApplicationIdVarPtr) | ||
| 1230 | 1281 | ||||
| @@ -1240,6 +1291,8 @@ var xApplicationSetDefault func(uintptr) | |||||
| 1240 | // @application is destroyed then the default application will revert | 1291 | // @application is destroyed then the default application will revert | ||
| 1241 | // back to %NULL. | 1292 | // back to %NULL. | ||
| 1242 | func (x *Application) SetDefault() { | 1293 | func (x *Application) SetDefault() { | ||
| 1294 | + | core.LazyRegister(&xApplicationSetDefault, "GIO", "g_application_set_default", false) | |||
| 1295 | + | ||||
| 1243 | xApplicationSetDefault(x.GoPointer()) | 1296 | xApplicationSetDefault(x.GoPointer()) | ||
| 1244 | } | 1297 | } | ||
| 1245 | 1298 | ||||
| @@ -1252,6 +1305,8 @@ var xApplicationSetFlags func(uintptr, ApplicationFlags) | |||||
| 1252 | // | 1305 | // | ||
| 1253 | // See #GApplicationFlags. | 1306 | // See #GApplicationFlags. | ||
| 1254 | func (x *Application) SetFlags(FlagsVar ApplicationFlags) { | 1307 | func (x *Application) SetFlags(FlagsVar ApplicationFlags) { | ||
| 1308 | + | core.LazyRegister(&xApplicationSetFlags, "GIO", "g_application_set_flags", false) | |||
| 1309 | + | ||||
| 1255 | xApplicationSetFlags(x.GoPointer(), FlagsVar) | 1310 | xApplicationSetFlags(x.GoPointer(), FlagsVar) | ||
| 1256 | } | 1311 | } | ||
| 1257 | 1312 | ||||
| @@ -1266,6 +1321,8 @@ var xApplicationSetInactivityTimeout func(uintptr, uint) | |||||
| 1266 | // used for next time g_application_release() drops the use count to | 1321 | // used for next time g_application_release() drops the use count to | ||
| 1267 | // zero. Any timeouts currently in progress are not impacted. | 1322 | // zero. Any timeouts currently in progress are not impacted. | ||
| 1268 | func (x *Application) SetInactivityTimeout(InactivityTimeoutVar uint) { | 1323 | func (x *Application) SetInactivityTimeout(InactivityTimeoutVar uint) { | ||
| 1324 | + | core.LazyRegister(&xApplicationSetInactivityTimeout, "GIO", "g_application_set_inactivity_timeout", false) | |||
| 1325 | + | ||||
| 1269 | xApplicationSetInactivityTimeout(x.GoPointer(), InactivityTimeoutVar) | 1326 | xApplicationSetInactivityTimeout(x.GoPointer(), InactivityTimeoutVar) | ||
| 1270 | } | 1327 | } | ||
| 1271 | 1328 | ||||
| @@ -1275,6 +1332,8 @@ var xApplicationSetOptionContextDescription func(uintptr, uintptr) | |||||
| 1275 | // | 1332 | // | ||
| 1276 | // See g_option_context_set_description() for more information. | 1333 | // See g_option_context_set_description() for more information. | ||
| 1277 | func (x *Application) SetOptionContextDescription(DescriptionVar *string) { | 1334 | func (x *Application) SetOptionContextDescription(DescriptionVar *string) { | ||
| 1335 | + | core.LazyRegister(&xApplicationSetOptionContextDescription, "GIO", "g_application_set_option_context_description", false) | |||
| 1336 | + | ||||
| 1278 | DescriptionVarPtr := core.GStrdupNullable(DescriptionVar) | 1337 | DescriptionVarPtr := core.GStrdupNullable(DescriptionVar) | ||
| 1279 | defer core.GFreeNullable(DescriptionVarPtr) | 1338 | defer core.GFreeNullable(DescriptionVarPtr) | ||
| 1280 | 1339 | ||||
| @@ -1290,6 +1349,8 @@ var xApplicationSetOptionContextParameterString func(uintptr, uintptr) | |||||
| 1290 | // | 1349 | // | ||
| 1291 | // See g_option_context_new() for more information about @parameter_string. | 1350 | // See g_option_context_new() for more information about @parameter_string. | ||
| 1292 | func (x *Application) SetOptionContextParameterString(ParameterStringVar *string) { | 1351 | func (x *Application) SetOptionContextParameterString(ParameterStringVar *string) { | ||
| 1352 | + | core.LazyRegister(&xApplicationSetOptionContextParameterString, "GIO", "g_application_set_option_context_parameter_string", false) | |||
| 1353 | + | ||||
| 1293 | ParameterStringVarPtr := core.GStrdupNullable(ParameterStringVar) | 1354 | ParameterStringVarPtr := core.GStrdupNullable(ParameterStringVar) | ||
| 1294 | defer core.GFreeNullable(ParameterStringVarPtr) | 1355 | defer core.GFreeNullable(ParameterStringVarPtr) | ||
| 1295 | 1356 | ||||
| @@ -1302,6 +1363,8 @@ var xApplicationSetOptionContextSummary func(uintptr, uintptr) | |||||
| 1302 | // | 1363 | // | ||
| 1303 | // See g_option_context_set_summary() for more information. | 1364 | // See g_option_context_set_summary() for more information. | ||
| 1304 | func (x *Application) SetOptionContextSummary(SummaryVar *string) { | 1365 | func (x *Application) SetOptionContextSummary(SummaryVar *string) { | ||
| 1366 | + | core.LazyRegister(&xApplicationSetOptionContextSummary, "GIO", "g_application_set_option_context_summary", false) | |||
| 1367 | + | ||||
| 1305 | SummaryVarPtr := core.GStrdupNullable(SummaryVar) | 1368 | SummaryVarPtr := core.GStrdupNullable(SummaryVar) | ||
| 1306 | defer core.GFreeNullable(SummaryVarPtr) | 1369 | defer core.GFreeNullable(SummaryVarPtr) | ||
| 1307 | 1370 | ||||
| @@ -1344,6 +1407,8 @@ var xApplicationSetResourceBasePath func(uintptr, uintptr) | |||||
| 1344 | // can call this function in the #GApplicationClass.startup virtual function, | 1407 | // can call this function in the #GApplicationClass.startup virtual function, | ||
| 1345 | // before chaining up to the parent implementation. | 1408 | // before chaining up to the parent implementation. | ||
| 1346 | func (x *Application) SetResourceBasePath(ResourcePathVar *string) { | 1409 | func (x *Application) SetResourceBasePath(ResourcePathVar *string) { | ||
| 1410 | + | core.LazyRegister(&xApplicationSetResourceBasePath, "GIO", "g_application_set_resource_base_path", false) | |||
| 1411 | + | ||||
| 1347 | ResourcePathVarPtr := core.GStrdupNullable(ResourcePathVar) | 1412 | ResourcePathVarPtr := core.GStrdupNullable(ResourcePathVar) | ||
| 1348 | defer core.GFreeNullable(ResourcePathVarPtr) | 1413 | defer core.GFreeNullable(ResourcePathVarPtr) | ||
| 1349 | 1414 | ||||
| @@ -1358,6 +1423,8 @@ var xApplicationSetVersion func(uintptr, string) | |||||
| 1358 | // The application version can only be modified if @application has not yet | 1423 | // The application version can only be modified if @application has not yet | ||
| 1359 | // been registered. | 1424 | // been registered. | ||
| 1360 | func (x *Application) SetVersion(VersionVar string) { | 1425 | func (x *Application) SetVersion(VersionVar string) { | ||
| 1426 | + | core.LazyRegister(&xApplicationSetVersion, "GIO", "g_application_set_version", false) | |||
| 1427 | + | ||||
| 1361 | xApplicationSetVersion(x.GoPointer(), VersionVar) | 1428 | xApplicationSetVersion(x.GoPointer(), VersionVar) | ||
| 1362 | } | 1429 | } | ||
| 1363 | 1430 | ||||
| @@ -1367,6 +1434,8 @@ var xApplicationUnbindBusyProperty func(uintptr, uintptr, string) | |||||
| 1367 | // @application that was previously created with | 1434 | // @application that was previously created with | ||
| 1368 | // g_application_bind_busy_property(). | 1435 | // g_application_bind_busy_property(). | ||
| 1369 | func (x *Application) UnbindBusyProperty(ObjectVar *gobject.Object, PropertyVar string) { | 1436 | func (x *Application) UnbindBusyProperty(ObjectVar *gobject.Object, PropertyVar string) { | ||
| 1437 | + | core.LazyRegister(&xApplicationUnbindBusyProperty, "GIO", "g_application_unbind_busy_property", false) | |||
| 1438 | + | ||||
| 1370 | xApplicationUnbindBusyProperty(x.GoPointer(), ObjectVar.GoPointer(), PropertyVar) | 1439 | xApplicationUnbindBusyProperty(x.GoPointer(), ObjectVar.GoPointer(), PropertyVar) | ||
| 1371 | } | 1440 | } | ||
| 1372 | 1441 | ||||
| @@ -1380,6 +1449,8 @@ var xApplicationUnmarkBusy func(uintptr) | |||||
| 1380 | // This function must only be called to cancel the effect of a previous | 1449 | // This function must only be called to cancel the effect of a previous | ||
| 1381 | // call to g_application_mark_busy(). | 1450 | // call to g_application_mark_busy(). | ||
| 1382 | func (x *Application) UnmarkBusy() { | 1451 | func (x *Application) UnmarkBusy() { | ||
| 1452 | + | core.LazyRegister(&xApplicationUnmarkBusy, "GIO", "g_application_unmark_busy", false) | |||
| 1453 | + | ||||
| 1383 | xApplicationUnmarkBusy(x.GoPointer()) | 1454 | xApplicationUnmarkBusy(x.GoPointer()) | ||
| 1384 | } | 1455 | } | ||
| 1385 | 1456 | ||||
| @@ -1399,6 +1470,8 @@ var xApplicationWithdrawNotification func(uintptr, string) | |||||
| 1399 | // of the buttons in a notification or triggers its default action, so | 1470 | // of the buttons in a notification or triggers its default action, so | ||
| 1400 | // there is no need to explicitly withdraw the notification in that case. | 1471 | // there is no need to explicitly withdraw the notification in that case. | ||
| 1401 | func (x *Application) WithdrawNotification(IdVar string) { | 1472 | func (x *Application) WithdrawNotification(IdVar string) { | ||
| 1473 | + | core.LazyRegister(&xApplicationWithdrawNotification, "GIO", "g_application_withdraw_notification", false) | |||
| 1474 | + | ||||
| 1402 | xApplicationWithdrawNotification(x.GoPointer(), IdVar) | 1475 | xApplicationWithdrawNotification(x.GoPointer(), IdVar) | ||
| 1403 | } | 1476 | } | ||
| 1404 | 1477 | ||||
| @@ -2066,6 +2139,7 @@ var xApplicationGetDefault func() uintptr | |||||
| 2066 | // | 2139 | // | ||
| 2067 | // If there is no default application then %NULL is returned. | 2140 | // If there is no default application then %NULL is returned. | ||
| 2068 | func ApplicationGetDefault() *Application { | 2141 | func ApplicationGetDefault() *Application { | ||
| 2142 | + | core.LazyRegister(&xApplicationGetDefault, "GIO", "g_application_get_default", false) | |||
| 2069 | var cls *Application | 2143 | var cls *Application | ||
| 2070 | 2144 | ||||
| 2071 | cret := xApplicationGetDefault() | 2145 | cret := xApplicationGetDefault() | ||
| @@ -2127,6 +2201,8 @@ var xApplicationIdIsValid func(string) bool | |||||
| 2127 | // For example, if the owner of 7-zip.org used an application identifier for an | 2201 | // For example, if the owner of 7-zip.org used an application identifier for an | ||
| 2128 | // archiving application, it might be named `org._7_zip.Archiver`. | 2202 | // archiving application, it might be named `org._7_zip.Archiver`. | ||
| 2129 | func ApplicationIdIsValid(ApplicationIdVar string) bool { | 2203 | func ApplicationIdIsValid(ApplicationIdVar string) bool { | ||
| 2204 | + | core.LazyRegister(&xApplicationIdIsValid, "GIO", "g_application_id_is_valid", false) | |||
| 2205 | + | ||||
| 2130 | cret := xApplicationIdIsValid(ApplicationIdVar) | 2206 | cret := xApplicationIdIsValid(ApplicationIdVar) | ||
| 2131 | return cret | 2207 | return cret | ||
| 2132 | } | 2208 | } | ||
| @@ -2134,56 +2210,4 @@ func ApplicationIdIsValid(ApplicationIdVar string) bool { | |||||
| 2134 | func init() { | 2210 | func init() { | ||
| 2135 | core.SetPackageName("GIO", "gio-2.0") | 2211 | core.SetPackageName("GIO", "gio-2.0") | ||
| 2136 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | 2212 | core.SetSharedLibraries("GIO", []string{"libgio-2.0.so.0", "libgio-2.0.0.dylib"}) | ||
| 2137 | - | var libs []uintptr | |||
| 2138 | - | for _, libPath := range core.GetPaths("GIO") { | |||
| 2139 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 2140 | - | if err != nil { | |||
| 2141 | - | panic(err) | |||
| 2142 | - | } | |||
| 2143 | - | libs = append(libs, lib) | |||
| 2144 | - | } | |||
| 2145 | - | ||||
| 2146 | - | core.PuregoSafeRegister(&xApplicationGLibType, libs, "g_application_get_type") | |||
| 2147 | - | ||||
| 2148 | - | core.PuregoSafeRegister(&xNewApplication, libs, "g_application_new") | |||
| 2149 | - | ||||
| 2150 | - | core.PuregoSafeRegister(&xApplicationActivate, libs, "g_application_activate") | |||
| 2151 | - | core.PuregoSafeRegister(&xApplicationAddMainOption, libs, "g_application_add_main_option") | |||
| 2152 | - | core.PuregoSafeRegister(&xApplicationAddMainOptionEntries, libs, "g_application_add_main_option_entries") | |||
| 2153 | - | core.PuregoSafeRegister(&xApplicationAddOptionGroup, libs, "g_application_add_option_group") | |||
| 2154 | - | core.PuregoSafeRegister(&xApplicationBindBusyProperty, libs, "g_application_bind_busy_property") | |||
| 2155 | - | core.PuregoSafeRegister(&xApplicationGetApplicationId, libs, "g_application_get_application_id") | |||
| 2156 | - | core.PuregoSafeRegister(&xApplicationGetDbusConnection, libs, "g_application_get_dbus_connection") | |||
| 2157 | - | core.PuregoSafeRegister(&xApplicationGetDbusObjectPath, libs, "g_application_get_dbus_object_path") | |||
| 2158 | - | core.PuregoSafeRegister(&xApplicationGetFlags, libs, "g_application_get_flags") | |||
| 2159 | - | core.PuregoSafeRegister(&xApplicationGetInactivityTimeout, libs, "g_application_get_inactivity_timeout") | |||
| 2160 | - | core.PuregoSafeRegister(&xApplicationGetIsBusy, libs, "g_application_get_is_busy") | |||
| 2161 | - | core.PuregoSafeRegister(&xApplicationGetIsRegistered, libs, "g_application_get_is_registered") | |||
| 2162 | - | core.PuregoSafeRegister(&xApplicationGetIsRemote, libs, "g_application_get_is_remote") | |||
| 2163 | - | core.PuregoSafeRegister(&xApplicationGetResourceBasePath, libs, "g_application_get_resource_base_path") | |||
| 2164 | - | core.PuregoSafeRegister(&xApplicationGetVersion, libs, "g_application_get_version") | |||
| 2165 | - | core.PuregoSafeRegister(&xApplicationHold, libs, "g_application_hold") | |||
| 2166 | - | core.PuregoSafeRegister(&xApplicationMarkBusy, libs, "g_application_mark_busy") | |||
| 2167 | - | core.PuregoSafeRegister(&xApplicationOpen, libs, "g_application_open") | |||
| 2168 | - | core.PuregoSafeRegister(&xApplicationQuit, libs, "g_application_quit") | |||
| 2169 | - | core.PuregoSafeRegister(&xApplicationRegister, libs, "g_application_register") | |||
| 2170 | - | core.PuregoSafeRegister(&xApplicationRelease, libs, "g_application_release") | |||
| 2171 | - | core.PuregoSafeRegister(&xApplicationRun, libs, "g_application_run") | |||
| 2172 | - | core.PuregoSafeRegister(&xApplicationSendNotification, libs, "g_application_send_notification") | |||
| 2173 | - | core.PuregoSafeRegister(&xApplicationSetActionGroup, libs, "g_application_set_action_group") | |||
| 2174 | - | core.PuregoSafeRegister(&xApplicationSetApplicationId, libs, "g_application_set_application_id") | |||
| 2175 | - | core.PuregoSafeRegister(&xApplicationSetDefault, libs, "g_application_set_default") | |||
| 2176 | - | core.PuregoSafeRegister(&xApplicationSetFlags, libs, "g_application_set_flags") | |||
| 2177 | - | core.PuregoSafeRegister(&xApplicationSetInactivityTimeout, libs, "g_application_set_inactivity_timeout") | |||
| 2178 | - | core.PuregoSafeRegister(&xApplicationSetOptionContextDescription, libs, "g_application_set_option_context_description") | |||
| 2179 | - | core.PuregoSafeRegister(&xApplicationSetOptionContextParameterString, libs, "g_application_set_option_context_parameter_string") | |||
| 2180 | - | core.PuregoSafeRegister(&xApplicationSetOptionContextSummary, libs, "g_application_set_option_context_summary") | |||
| 2181 | - | core.PuregoSafeRegister(&xApplicationSetResourceBasePath, libs, "g_application_set_resource_base_path") | |||
| 2182 | - | core.PuregoSafeRegister(&xApplicationSetVersion, libs, "g_application_set_version") | |||
| 2183 | - | core.PuregoSafeRegister(&xApplicationUnbindBusyProperty, libs, "g_application_unbind_busy_property") | |||
| 2184 | - | core.PuregoSafeRegister(&xApplicationUnmarkBusy, libs, "g_application_unmark_busy") | |||
| 2185 | - | core.PuregoSafeRegister(&xApplicationWithdrawNotification, libs, "g_application_withdraw_notification") | |||
| 2186 | - | ||||
| 2187 | - | core.PuregoSafeRegister(&xApplicationGetDefault, libs, "g_application_get_default") | |||
| 2188 | - | core.PuregoSafeRegister(&xApplicationIdIsValid, libs, "g_application_id_is_valid") | |||
| 2189 | } | 2213 | } | ||