Merge pull request #344 from bnema/chore/upstream-foundations
chore(deps): integrate approved upstream foundations
921 files · +28709 -25527
M docs/first-presentation.md +5 -2
| @@ -46,5 +46,8 @@ labels. Set `DUMBER_MACHINE_GPU_PROFILE` to one of `generic-gpu`, | |||
| 46 | 46 | `integrated-gpu`, `discrete-gpu`, `hybrid-gpu`, `virtual-gpu`, or `unknown-gpu`; | |
| 47 | 47 | do not use a device model or other identifier. Publish only the seven reviewed | |
| 48 | 48 | JSON files to an external Gist. Raw logs and temporary XDG homes are removed and | |
| 49 | - | must not be published. A missing or incomplete timeline, non-DMABUF backend, or | |
| 50 | - | invalid run fails collection. | |
| 49 | + | must not be published. `metadata.json` derives the selected | |
| 50 | + | `github.com/bnema/purego-cef2gtk` pseudo-version and its full immutable Git | |
| 51 | + | origin hash from Go module metadata; branch selectors or missing origin metadata | |
| 52 | + | fail collection. A missing or incomplete timeline, non-DMABUF backend, or invalid | |
| 53 | + | run also fails collection. | |
| @@ -46,5 +46,8 @@ labels. Set `DUMBER_MACHINE_GPU_PROFILE` to one of `generic-gpu`, | |||||
| 46 | `integrated-gpu`, `discrete-gpu`, `hybrid-gpu`, `virtual-gpu`, or `unknown-gpu`; | 46 | `integrated-gpu`, `discrete-gpu`, `hybrid-gpu`, `virtual-gpu`, or `unknown-gpu`; | ||
| 47 | do not use a device model or other identifier. Publish only the seven reviewed | 47 | do not use a device model or other identifier. Publish only the seven reviewed | ||
| 48 | JSON files to an external Gist. Raw logs and temporary XDG homes are removed and | 48 | JSON files to an external Gist. Raw logs and temporary XDG homes are removed and | ||
| 49 | - | must not be published. A missing or incomplete timeline, non-DMABUF backend, or | 49 | + | must not be published. `metadata.json` derives the selected |
| 50 | - | invalid run fails collection. | 50 | + | `github.com/bnema/purego-cef2gtk` pseudo-version and its full immutable Git |
| 51 | + | origin hash from Go module metadata; branch selectors or missing origin metadata | |||
| 52 | + | fail collection. A missing or incomplete timeline, non-DMABUF backend, or invalid | |||
| 53 | + | run also fails collection. | |||
M go.mod +5 -5
| @@ -6,11 +6,11 @@ require ( | |||
| 6 | 6 | github.com/a-h/templ v0.3.1020 | |
| 7 | 7 | github.com/andybalholm/brotli v1.2.2 | |
| 8 | 8 | github.com/bnema/purego v0.11.0-bnema.4 | |
| 9 | - | github.com/bnema/purego-cef v0.13.3 | |
| 10 | - | github.com/bnema/purego-cef2gtk v0.8.4 | |
| 11 | - | github.com/bnema/purego-pipewire v0.1.4 | |
| 12 | - | github.com/bnema/purego-sqlite v0.1.3 | |
| 13 | - | github.com/bnema/puregotk v0.7.0 | |
| 9 | + | github.com/bnema/purego-cef v0.13.4-0.20260714140305-f0b7414af67e | |
| 10 | + | github.com/bnema/purego-cef2gtk v0.8.4-0.20260714160309-bbd397409ebe | |
| 11 | + | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | |
| 12 | + | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | |
| 13 | + | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | |
| 14 | 14 | github.com/charmbracelet/bubbles v1.0.0 | |
| 15 | 15 | github.com/charmbracelet/bubbletea v1.3.10 | |
| 16 | 16 | github.com/charmbracelet/lipgloss v1.1.0 | |
| @@ -6,11 +6,11 @@ require ( | |||||
| 6 | github.com/a-h/templ v0.3.1020 | 6 | github.com/a-h/templ v0.3.1020 | ||
| 7 | github.com/andybalholm/brotli v1.2.2 | 7 | github.com/andybalholm/brotli v1.2.2 | ||
| 8 | github.com/bnema/purego v0.11.0-bnema.4 | 8 | github.com/bnema/purego v0.11.0-bnema.4 | ||
| 9 | - | github.com/bnema/purego-cef v0.13.3 | 9 | + | github.com/bnema/purego-cef v0.13.4-0.20260714140305-f0b7414af67e |
| 10 | - | github.com/bnema/purego-cef2gtk v0.8.4 | 10 | + | github.com/bnema/purego-cef2gtk v0.8.4-0.20260714160309-bbd397409ebe |
| 11 | - | github.com/bnema/purego-pipewire v0.1.4 | 11 | + | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a |
| 12 | - | github.com/bnema/purego-sqlite v0.1.3 | 12 | + | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c |
| 13 | - | github.com/bnema/puregotk v0.7.0 | 13 | + | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 |
| 14 | github.com/charmbracelet/bubbles v1.0.0 | 14 | github.com/charmbracelet/bubbles v1.0.0 | ||
| 15 | github.com/charmbracelet/bubbletea v1.3.10 | 15 | github.com/charmbracelet/bubbletea v1.3.10 | ||
| 16 | github.com/charmbracelet/lipgloss v1.1.0 | 16 | github.com/charmbracelet/lipgloss v1.1.0 | ||
M go.sum +12 -0 generated file: collapsed
A internal/infrastructure/persistence/sqlite/history_repo_benchmark_test.go +71 -0
| @@ -0,0 +1,71 @@ | |||
| 1 | + | package sqlite_test | |
| 2 | + | ||
| 3 | + | import ( | |
| 4 | + | "fmt" | |
| 5 | + | "path/filepath" | |
| 6 | + | "testing" | |
| 7 | + | ||
| 8 | + | "github.com/bnema/dumber/internal/domain/entity" | |
| 9 | + | "github.com/bnema/dumber/internal/domain/repository" | |
| 10 | + | "github.com/bnema/dumber/internal/infrastructure/persistence/sqlite" | |
| 11 | + | ) | |
| 12 | + | ||
| 13 | + | // newHistoryBenchmarkRepository creates a representative local history corpus | |
| 14 | + | // outside the measured operation. Sidebar reads use GetRecent and omnibox | |
| 15 | + | // history suggestions use Search. | |
| 16 | + | func newHistoryBenchmarkRepository(b *testing.B) (repository.HistoryRepository, func()) { | |
| 17 | + | b.Helper() | |
| 18 | + | ||
| 19 | + | ctx := historyTestCtx() | |
| 20 | + | db, err := sqlite.NewConnection(ctx, filepath.Join(b.TempDir(), "dumber.db")) | |
| 21 | + | if err != nil { | |
| 22 | + | b.Fatal(err) | |
| 23 | + | } | |
| 24 | + | ||
| 25 | + | b.Cleanup(func() { | |
| 26 | + | if err := db.Close(); err != nil { | |
| 27 | + | b.Errorf("close benchmark database: %v", err) | |
| 28 | + | } | |
| 29 | + | }) | |
| 30 | + | ||
| 31 | + | repo := sqlite.NewHistoryRepository(db) | |
| 32 | + | for i := range 200 { | |
| 33 | + | entry := &entity.HistoryEntry{ | |
| 34 | + | URL: fmt.Sprintf("https://example%d.test/dumber/history/%d", i%20, i), | |
| 35 | + | Title: fmt.Sprintf("Dumber history entry %d", i), | |
| 36 | + | } | |
| 37 | + | if err := repo.Save(ctx, entry); err != nil { | |
| 38 | + | b.Fatal(err) | |
| 39 | + | } | |
| 40 | + | } | |
| 41 | + | ||
| 42 | + | return repo, func() {} | |
| 43 | + | } | |
| 44 | + | ||
| 45 | + | func BenchmarkHistorySQLiteSidebarRecent(b *testing.B) { | |
| 46 | + | repo, closeDB := newHistoryBenchmarkRepository(b) | |
| 47 | + | defer closeDB() | |
| 48 | + | ctx := historyTestCtx() | |
| 49 | + | ||
| 50 | + | b.ReportAllocs() | |
| 51 | + | b.ResetTimer() | |
| 52 | + | for range b.N { | |
| 53 | + | if _, err := repo.GetRecent(ctx, 50, 0); err != nil { | |
| 54 | + | b.Fatal(err) | |
| 55 | + | } | |
| 56 | + | } | |
| 57 | + | } | |
| 58 | + | ||
| 59 | + | func BenchmarkHistorySQLiteOmniboxSearch(b *testing.B) { | |
| 60 | + | repo, closeDB := newHistoryBenchmarkRepository(b) | |
| 61 | + | defer closeDB() | |
| 62 | + | ctx := historyTestCtx() | |
| 63 | + | ||
| 64 | + | b.ReportAllocs() | |
| 65 | + | b.ResetTimer() | |
| 66 | + | for range b.N { | |
| 67 | + | if _, err := repo.Search(ctx, "dumber history", 10); err != nil { | |
| 68 | + | b.Fatal(err) | |
| 69 | + | } | |
| 70 | + | } | |
| 71 | + | } | |
| @@ -0,0 +1,71 @@ | |||||
| 1 | + | package sqlite_test | |||
| 2 | + | ||||
| 3 | + | import ( | |||
| 4 | + | "fmt" | |||
| 5 | + | "path/filepath" | |||
| 6 | + | "testing" | |||
| 7 | + | ||||
| 8 | + | "github.com/bnema/dumber/internal/domain/entity" | |||
| 9 | + | "github.com/bnema/dumber/internal/domain/repository" | |||
| 10 | + | "github.com/bnema/dumber/internal/infrastructure/persistence/sqlite" | |||
| 11 | + | ) | |||
| 12 | + | ||||
| 13 | + | // newHistoryBenchmarkRepository creates a representative local history corpus | |||
| 14 | + | // outside the measured operation. Sidebar reads use GetRecent and omnibox | |||
| 15 | + | // history suggestions use Search. | |||
| 16 | + | func newHistoryBenchmarkRepository(b *testing.B) (repository.HistoryRepository, func()) { | |||
| 17 | + | b.Helper() | |||
| 18 | + | ||||
| 19 | + | ctx := historyTestCtx() | |||
| 20 | + | db, err := sqlite.NewConnection(ctx, filepath.Join(b.TempDir(), "dumber.db")) | |||
| 21 | + | if err != nil { | |||
| 22 | + | b.Fatal(err) | |||
| 23 | + | } | |||
| 24 | + | ||||
| 25 | + | b.Cleanup(func() { | |||
| 26 | + | if err := db.Close(); err != nil { | |||
| 27 | + | b.Errorf("close benchmark database: %v", err) | |||
| 28 | + | } | |||
| 29 | + | }) | |||
| 30 | + | ||||
| 31 | + | repo := sqlite.NewHistoryRepository(db) | |||
| 32 | + | for i := range 200 { | |||
| 33 | + | entry := &entity.HistoryEntry{ | |||
| 34 | + | URL: fmt.Sprintf("https://example%d.test/dumber/history/%d", i%20, i), | |||
| 35 | + | Title: fmt.Sprintf("Dumber history entry %d", i), | |||
| 36 | + | } | |||
| 37 | + | if err := repo.Save(ctx, entry); err != nil { | |||
| 38 | + | b.Fatal(err) | |||
| 39 | + | } | |||
| 40 | + | } | |||
| 41 | + | ||||
| 42 | + | return repo, func() {} | |||
| 43 | + | } | |||
| 44 | + | ||||
| 45 | + | func BenchmarkHistorySQLiteSidebarRecent(b *testing.B) { | |||
| 46 | + | repo, closeDB := newHistoryBenchmarkRepository(b) | |||
| 47 | + | defer closeDB() | |||
| 48 | + | ctx := historyTestCtx() | |||
| 49 | + | ||||
| 50 | + | b.ReportAllocs() | |||
| 51 | + | b.ResetTimer() | |||
| 52 | + | for range b.N { | |||
| 53 | + | if _, err := repo.GetRecent(ctx, 50, 0); err != nil { | |||
| 54 | + | b.Fatal(err) | |||
| 55 | + | } | |||
| 56 | + | } | |||
| 57 | + | } | |||
| 58 | + | ||||
| 59 | + | func BenchmarkHistorySQLiteOmniboxSearch(b *testing.B) { | |||
| 60 | + | repo, closeDB := newHistoryBenchmarkRepository(b) | |||
| 61 | + | defer closeDB() | |||
| 62 | + | ctx := historyTestCtx() | |||
| 63 | + | ||||
| 64 | + | b.ReportAllocs() | |||
| 65 | + | b.ResetTimer() | |||
| 66 | + | for range b.N { | |||
| 67 | + | if _, err := repo.Search(ctx, "dumber history", 10); err != nil { | |||
| 68 | + | b.Fatal(err) | |||
| 69 | + | } | |||
| 70 | + | } | |||
| 71 | + | } | |||
M internal/logging/first_presentation_collector_test.go +132 -1
| @@ -2,6 +2,7 @@ package logging | |||
| 2 | 2 | ||
| 3 | 3 | import ( | |
| 4 | 4 | "encoding/json" | |
| 5 | + | "fmt" | |
| 5 | 6 | "os" | |
| 6 | 7 | "os/exec" | |
| 7 | 8 | "path/filepath" | |
| @@ -143,8 +144,9 @@ func TestFirstPresentationCollectorSanitizesMachineLocalValues(t *testing.T) { | |||
| 143 | 144 | } | |
| 144 | 145 | for _, required := range []string{ | |
| 145 | 146 | `"measured_source_revision"`, | |
| 147 | + | `"version": "v0.8.4-0.20260714160309-bbd397409ebe"`, | |
| 146 | 148 | `"tag": "v0.8.4"`, | |
| 147 | - | `"revision": "f217ece342dea3ef2a3f98671fcd16a39ad0037d"`, | |
| 149 | + | `"revision": "bbd397409ebed75a5979c1e4566a2ef319f6a484"`, | |
| 148 | 150 | } { | |
| 149 | 151 | require.Contains(t, artifacts.String(), required) | |
| 150 | 152 | } | |
| @@ -166,6 +168,135 @@ func TestFirstPresentationCollectorSanitizesMachineLocalValues(t *testing.T) { | |||
| 166 | 168 | require.Equal(t, "integrated-gpu", metadata.Comparison.MachineGPUProfile) | |
| 167 | 169 | } | |
| 168 | 170 | ||
| 171 | + | func TestFirstPresentationCollectorDerivesSelectedImmutableModuleProvenance(t *testing.T) { | |
| 172 | + | repoRoot, err := filepath.Abs(filepath.Join("..", "..")) | |
| 173 | + | require.NoError(t, err) | |
| 174 | + | temp := t.TempDir() | |
| 175 | + | runtime := filepath.Join(temp, "cef-147-runtime") | |
| 176 | + | require.NoError(t, os.Mkdir(runtime, 0o755)) | |
| 177 | + | binary := filepath.Join(temp, "dumber") | |
| 178 | + | require.NoError(t, os.WriteFile(binary, collectorTestBinary(validFirstPresentationLog), 0o755)) | |
| 179 | + | ||
| 180 | + | // This exact pseudo-version is deliberately newer than the former v0.8.4 | |
| 181 | + | // hardcode; the collector must report what the selected module says. | |
| 182 | + | const version = "v0.8.5-0.20300102030405-bbd397409ebe" | |
| 183 | + | const revision = "bbd397409ebed75a5979c1e4566a2ef319f6a484" | |
| 184 | + | goBin := collectorProvenanceGo(t, temp, version, revision, "") | |
| 185 | + | output := filepath.Join(temp, "artifacts") | |
| 186 | + | cmd := exec.Command(filepath.Join(repoRoot, "scripts", "collect_first_presentation.sh")) | |
| 187 | + | cmd.Dir = repoRoot | |
| 188 | + | cmd.Env = append(os.Environ(), | |
| 189 | + | "DISPLAY=:test", | |
| 190 | + | "DUMBER_CEF_DIR="+runtime, | |
| 191 | + | "DUMBER_FIRST_PRESENTATION_BIN="+binary, | |
| 192 | + | "DUMBER_FIRST_PRESENTATION_OUTPUT="+output, | |
| 193 | + | "DUMBER_FIRST_PRESENTATION_TIMEOUT_SECONDS=1", | |
| 194 | + | "PATH="+filepath.Dir(goBin)+":"+os.Getenv("PATH"), | |
| 195 | + | ) | |
| 196 | + | result, err := cmd.CombinedOutput() | |
| 197 | + | require.NoErrorf(t, err, "collector failed: %s", result) | |
| 198 | + | ||
| 199 | + | var metadata struct { | |
| 200 | + | Upstream struct { | |
| 201 | + | Module string `json:"module"` | |
| 202 | + | Version string `json:"version"` | |
| 203 | + | Tag string `json:"tag"` | |
| 204 | + | Revision string `json:"revision"` | |
| 205 | + | } `json:"upstream"` | |
| 206 | + | } | |
| 207 | + | contents, err := os.ReadFile(filepath.Join(output, "metadata.json")) | |
| 208 | + | require.NoError(t, err) | |
| 209 | + | require.NoError(t, json.Unmarshal(contents, &metadata)) | |
| 210 | + | require.Equal(t, "github.com/bnema/purego-cef2gtk", metadata.Upstream.Module) | |
| 211 | + | require.Equal(t, version, metadata.Upstream.Version) | |
| 212 | + | require.Equal(t, "v0.8.5", metadata.Upstream.Tag) | |
| 213 | + | require.Equal(t, revision, metadata.Upstream.Revision) | |
| 214 | + | ||
| 215 | + | script, err := os.ReadFile(filepath.Join(repoRoot, "scripts", "collect_first_presentation.sh")) | |
| 216 | + | require.NoError(t, err) | |
| 217 | + | require.NotContains(t, string(script), "f217ece342dea3ef2a3f98671fcd16a39ad0037d") | |
| 218 | + | } | |
| 219 | + | ||
| 220 | + | func TestFirstPresentationCollectorRejectsNonImmutableModuleProvenanceWithoutLeaks(t *testing.T) { | |
| 221 | + | repoRoot, err := filepath.Abs(filepath.Join("..", "..")) | |
| 222 | + | require.NoError(t, err) | |
| 223 | + | ||
| 224 | + | for _, test := range []struct { | |
| 225 | + | name, version, revision, ref string | |
| 226 | + | }{ | |
| 227 | + | {name: "branch selector", version: "main", ref: "main"}, | |
| 228 | + | {name: "missing origin", version: "v0.8.5-0.20300102030405-bbd397409ebe"}, | |
| 229 | + | {name: "named origin ref", version: "v0.8.5-0.20300102030405-bbd397409ebe", revision: "bbd397409ebed75a5979c1e4566a2ef319f6a484", ref: "main"}, | |
| 230 | + | } { | |
| 231 | + | t.Run(test.name, func(t *testing.T) { | |
| 232 | + | temp := t.TempDir() | |
| 233 | + | runtime := filepath.Join(temp, "cef-147-runtime") | |
| 234 | + | require.NoError(t, os.Mkdir(runtime, 0o755)) | |
| 235 | + | binary := filepath.Join(temp, "dumber") | |
| 236 | + | require.NoError(t, os.WriteFile(binary, collectorTestBinary(validFirstPresentationLog), 0o755)) | |
| 237 | + | ||
| 238 | + | goBin := collectorProvenanceGo(t, temp, test.version, test.revision, test.ref) | |
| 239 | + | output := filepath.Join(temp, "artifacts") | |
| 240 | + | cmd := exec.Command(filepath.Join(repoRoot, "scripts", "collect_first_presentation.sh")) | |
| 241 | + | cmd.Dir = repoRoot | |
| 242 | + | cmd.Env = append(os.Environ(), | |
| 243 | + | "DISPLAY=:test", | |
| 244 | + | "DUMBER_CEF_DIR="+runtime, | |
| 245 | + | "DUMBER_FIRST_PRESENTATION_BIN="+binary, | |
| 246 | + | "DUMBER_FIRST_PRESENTATION_OUTPUT="+output, | |
| 247 | + | "PATH="+filepath.Dir(goBin)+":"+os.Getenv("PATH"), | |
| 248 | + | ) | |
| 249 | + | result, runErr := cmd.CombinedOutput() | |
| 250 | + | require.Errorf(t, runErr, "collector accepted nonimmutable module provenance: %s", result) | |
| 251 | + | require.Contains(t, string(result), "immutable module provenance is unavailable") | |
| 252 | + | require.NotContains(t, string(result), temp) | |
| 253 | + | require.NoFileExists(t, filepath.Join(output, "metadata.json")) | |
| 254 | + | for _, name := range runArtifactNames() { | |
| 255 | + | require.NoFileExists(t, filepath.Join(output, name)) | |
| 256 | + | } | |
| 257 | + | }) | |
| 258 | + | } | |
| 259 | + | } | |
| 260 | + | ||
| 261 | + | func collectorProvenanceGo(t *testing.T, temp, version, revision, ref string) string { | |
| 262 | + | t.Helper() | |
| 263 | + | infoPath := filepath.Join(temp, "module.info") | |
| 264 | + | info := map[string]any{"Version": version} | |
| 265 | + | if revision != "" { | |
| 266 | + | info["Origin"] = map[string]string{ | |
| 267 | + | "VCS": "git", "URL": "https://github.com/bnema/purego-cef2gtk", "Hash": revision, "Ref": ref, | |
| 268 | + | } | |
| 269 | + | } | |
| 270 | + | infoJSON, err := json.Marshal(info) | |
| 271 | + | require.NoError(t, err) | |
| 272 | + | require.NoError(t, os.WriteFile(infoPath, infoJSON, 0o600)) | |
| 273 | + | ||
| 274 | + | selectedJSON, err := json.Marshal(map[string]string{ | |
| 275 | + | "Path": "github.com/bnema/purego-cef2gtk", "Version": version, | |
| 276 | + | }) | |
| 277 | + | require.NoError(t, err) | |
| 278 | + | downloadedJSON, err := json.Marshal(map[string]string{ | |
| 279 | + | "Path": "github.com/bnema/purego-cef2gtk", "Version": version, "Info": infoPath, | |
| 280 | + | }) | |
| 281 | + | require.NoError(t, err) | |
| 282 | + | binDir := filepath.Join(temp, "bin") | |
| 283 | + | require.NoError(t, os.Mkdir(binDir, 0o755)) | |
| 284 | + | goBin := filepath.Join(binDir, "go") | |
| 285 | + | script := fmt.Sprintf(`#!/bin/sh | |
| 286 | + | if [ "$1" = "list" ] && [ "$2" = "-m" ] && [ "$3" = "-json" ] && [ "$4" = "github.com/bnema/purego-cef2gtk" ]; then | |
| 287 | + | printf '%%s\n' '%s' | |
| 288 | + | exit 0 | |
| 289 | + | fi | |
| 290 | + | if [ "$1" = "mod" ] && [ "$2" = "download" ] && [ "$3" = "-json" ] && [ "$4" = "github.com/bnema/purego-cef2gtk@%s" ]; then | |
| 291 | + | printf '%%s\n' '%s' | |
| 292 | + | exit 0 | |
| 293 | + | fi | |
| 294 | + | exit 1 | |
| 295 | + | `, selectedJSON, version, downloadedJSON) | |
| 296 | + | require.NoError(t, os.WriteFile(goBin, []byte(script), 0o755)) | |
| 297 | + | return goBin | |
| 298 | + | } | |
| 299 | + | ||
| 169 | 300 | func TestFirstPresentationCollectorDefaultsToXDGStateEvidenceDirectory(t *testing.T) { | |
| 170 | 301 | repoRoot, err := filepath.Abs(filepath.Join("..", "..")) | |
| 171 | 302 | require.NoError(t, err) | |
| @@ -2,6 +2,7 @@ package logging | |||||
| 2 | 2 | ||||
| 3 | import ( | 3 | import ( | ||
| 4 | "encoding/json" | 4 | "encoding/json" | ||
| 5 | + | "fmt" | |||
| 5 | "os" | 6 | "os" | ||
| 6 | "os/exec" | 7 | "os/exec" | ||
| 7 | "path/filepath" | 8 | "path/filepath" | ||
| @@ -143,8 +144,9 @@ func TestFirstPresentationCollectorSanitizesMachineLocalValues(t *testing.T) { | |||||
| 143 | } | 144 | } | ||
| 144 | for _, required := range []string{ | 145 | for _, required := range []string{ | ||
| 145 | `"measured_source_revision"`, | 146 | `"measured_source_revision"`, | ||
| 147 | + | `"version": "v0.8.4-0.20260714160309-bbd397409ebe"`, | |||
| 146 | `"tag": "v0.8.4"`, | 148 | `"tag": "v0.8.4"`, | ||
| 147 | - | `"revision": "f217ece342dea3ef2a3f98671fcd16a39ad0037d"`, | 149 | + | `"revision": "bbd397409ebed75a5979c1e4566a2ef319f6a484"`, |
| 148 | } { | 150 | } { | ||
| 149 | require.Contains(t, artifacts.String(), required) | 151 | require.Contains(t, artifacts.String(), required) | ||
| 150 | } | 152 | } | ||
| @@ -166,6 +168,135 @@ func TestFirstPresentationCollectorSanitizesMachineLocalValues(t *testing.T) { | |||||
| 166 | require.Equal(t, "integrated-gpu", metadata.Comparison.MachineGPUProfile) | 168 | require.Equal(t, "integrated-gpu", metadata.Comparison.MachineGPUProfile) | ||
| 167 | } | 169 | } | ||
| 168 | 170 | ||||
| 171 | + | func TestFirstPresentationCollectorDerivesSelectedImmutableModuleProvenance(t *testing.T) { | |||
| 172 | + | repoRoot, err := filepath.Abs(filepath.Join("..", "..")) | |||
| 173 | + | require.NoError(t, err) | |||
| 174 | + | temp := t.TempDir() | |||
| 175 | + | runtime := filepath.Join(temp, "cef-147-runtime") | |||
| 176 | + | require.NoError(t, os.Mkdir(runtime, 0o755)) | |||
| 177 | + | binary := filepath.Join(temp, "dumber") | |||
| 178 | + | require.NoError(t, os.WriteFile(binary, collectorTestBinary(validFirstPresentationLog), 0o755)) | |||
| 179 | + | ||||
| 180 | + | // This exact pseudo-version is deliberately newer than the former v0.8.4 | |||
| 181 | + | // hardcode; the collector must report what the selected module says. | |||
| 182 | + | const version = "v0.8.5-0.20300102030405-bbd397409ebe" | |||
| 183 | + | const revision = "bbd397409ebed75a5979c1e4566a2ef319f6a484" | |||
| 184 | + | goBin := collectorProvenanceGo(t, temp, version, revision, "") | |||
| 185 | + | output := filepath.Join(temp, "artifacts") | |||
| 186 | + | cmd := exec.Command(filepath.Join(repoRoot, "scripts", "collect_first_presentation.sh")) | |||
| 187 | + | cmd.Dir = repoRoot | |||
| 188 | + | cmd.Env = append(os.Environ(), | |||
| 189 | + | "DISPLAY=:test", | |||
| 190 | + | "DUMBER_CEF_DIR="+runtime, | |||
| 191 | + | "DUMBER_FIRST_PRESENTATION_BIN="+binary, | |||
| 192 | + | "DUMBER_FIRST_PRESENTATION_OUTPUT="+output, | |||
| 193 | + | "DUMBER_FIRST_PRESENTATION_TIMEOUT_SECONDS=1", | |||
| 194 | + | "PATH="+filepath.Dir(goBin)+":"+os.Getenv("PATH"), | |||
| 195 | + | ) | |||
| 196 | + | result, err := cmd.CombinedOutput() | |||
| 197 | + | require.NoErrorf(t, err, "collector failed: %s", result) | |||
| 198 | + | ||||
| 199 | + | var metadata struct { | |||
| 200 | + | Upstream struct { | |||
| 201 | + | Module string `json:"module"` | |||
| 202 | + | Version string `json:"version"` | |||
| 203 | + | Tag string `json:"tag"` | |||
| 204 | + | Revision string `json:"revision"` | |||
| 205 | + | } `json:"upstream"` | |||
| 206 | + | } | |||
| 207 | + | contents, err := os.ReadFile(filepath.Join(output, "metadata.json")) | |||
| 208 | + | require.NoError(t, err) | |||
| 209 | + | require.NoError(t, json.Unmarshal(contents, &metadata)) | |||
| 210 | + | require.Equal(t, "github.com/bnema/purego-cef2gtk", metadata.Upstream.Module) | |||
| 211 | + | require.Equal(t, version, metadata.Upstream.Version) | |||
| 212 | + | require.Equal(t, "v0.8.5", metadata.Upstream.Tag) | |||
| 213 | + | require.Equal(t, revision, metadata.Upstream.Revision) | |||
| 214 | + | ||||
| 215 | + | script, err := os.ReadFile(filepath.Join(repoRoot, "scripts", "collect_first_presentation.sh")) | |||
| 216 | + | require.NoError(t, err) | |||
| 217 | + | require.NotContains(t, string(script), "f217ece342dea3ef2a3f98671fcd16a39ad0037d") | |||
| 218 | + | } | |||
| 219 | + | ||||
| 220 | + | func TestFirstPresentationCollectorRejectsNonImmutableModuleProvenanceWithoutLeaks(t *testing.T) { | |||
| 221 | + | repoRoot, err := filepath.Abs(filepath.Join("..", "..")) | |||
| 222 | + | require.NoError(t, err) | |||
| 223 | + | ||||
| 224 | + | for _, test := range []struct { | |||
| 225 | + | name, version, revision, ref string | |||
| 226 | + | }{ | |||
| 227 | + | {name: "branch selector", version: "main", ref: "main"}, | |||
| 228 | + | {name: "missing origin", version: "v0.8.5-0.20300102030405-bbd397409ebe"}, | |||
| 229 | + | {name: "named origin ref", version: "v0.8.5-0.20300102030405-bbd397409ebe", revision: "bbd397409ebed75a5979c1e4566a2ef319f6a484", ref: "main"}, | |||
| 230 | + | } { | |||
| 231 | + | t.Run(test.name, func(t *testing.T) { | |||
| 232 | + | temp := t.TempDir() | |||
| 233 | + | runtime := filepath.Join(temp, "cef-147-runtime") | |||
| 234 | + | require.NoError(t, os.Mkdir(runtime, 0o755)) | |||
| 235 | + | binary := filepath.Join(temp, "dumber") | |||
| 236 | + | require.NoError(t, os.WriteFile(binary, collectorTestBinary(validFirstPresentationLog), 0o755)) | |||
| 237 | + | ||||
| 238 | + | goBin := collectorProvenanceGo(t, temp, test.version, test.revision, test.ref) | |||
| 239 | + | output := filepath.Join(temp, "artifacts") | |||
| 240 | + | cmd := exec.Command(filepath.Join(repoRoot, "scripts", "collect_first_presentation.sh")) | |||
| 241 | + | cmd.Dir = repoRoot | |||
| 242 | + | cmd.Env = append(os.Environ(), | |||
| 243 | + | "DISPLAY=:test", | |||
| 244 | + | "DUMBER_CEF_DIR="+runtime, | |||
| 245 | + | "DUMBER_FIRST_PRESENTATION_BIN="+binary, | |||
| 246 | + | "DUMBER_FIRST_PRESENTATION_OUTPUT="+output, | |||
| 247 | + | "PATH="+filepath.Dir(goBin)+":"+os.Getenv("PATH"), | |||
| 248 | + | ) | |||
| 249 | + | result, runErr := cmd.CombinedOutput() | |||
| 250 | + | require.Errorf(t, runErr, "collector accepted nonimmutable module provenance: %s", result) | |||
| 251 | + | require.Contains(t, string(result), "immutable module provenance is unavailable") | |||
| 252 | + | require.NotContains(t, string(result), temp) | |||
| 253 | + | require.NoFileExists(t, filepath.Join(output, "metadata.json")) | |||
| 254 | + | for _, name := range runArtifactNames() { | |||
| 255 | + | require.NoFileExists(t, filepath.Join(output, name)) | |||
| 256 | + | } | |||
| 257 | + | }) | |||
| 258 | + | } | |||
| 259 | + | } | |||
| 260 | + | ||||
| 261 | + | func collectorProvenanceGo(t *testing.T, temp, version, revision, ref string) string { | |||
| 262 | + | t.Helper() | |||
| 263 | + | infoPath := filepath.Join(temp, "module.info") | |||
| 264 | + | info := map[string]any{"Version": version} | |||
| 265 | + | if revision != "" { | |||
| 266 | + | info["Origin"] = map[string]string{ | |||
| 267 | + | "VCS": "git", "URL": "https://github.com/bnema/purego-cef2gtk", "Hash": revision, "Ref": ref, | |||
| 268 | + | } | |||
| 269 | + | } | |||
| 270 | + | infoJSON, err := json.Marshal(info) | |||
| 271 | + | require.NoError(t, err) | |||
| 272 | + | require.NoError(t, os.WriteFile(infoPath, infoJSON, 0o600)) | |||
| 273 | + | ||||
| 274 | + | selectedJSON, err := json.Marshal(map[string]string{ | |||
| 275 | + | "Path": "github.com/bnema/purego-cef2gtk", "Version": version, | |||
| 276 | + | }) | |||
| 277 | + | require.NoError(t, err) | |||
| 278 | + | downloadedJSON, err := json.Marshal(map[string]string{ | |||
| 279 | + | "Path": "github.com/bnema/purego-cef2gtk", "Version": version, "Info": infoPath, | |||
| 280 | + | }) | |||
| 281 | + | require.NoError(t, err) | |||
| 282 | + | binDir := filepath.Join(temp, "bin") | |||
| 283 | + | require.NoError(t, os.Mkdir(binDir, 0o755)) | |||
| 284 | + | goBin := filepath.Join(binDir, "go") | |||
| 285 | + | script := fmt.Sprintf(`#!/bin/sh | |||
| 286 | + | if [ "$1" = "list" ] && [ "$2" = "-m" ] && [ "$3" = "-json" ] && [ "$4" = "github.com/bnema/purego-cef2gtk" ]; then | |||
| 287 | + | printf '%%s\n' '%s' | |||
| 288 | + | exit 0 | |||
| 289 | + | fi | |||
| 290 | + | if [ "$1" = "mod" ] && [ "$2" = "download" ] && [ "$3" = "-json" ] && [ "$4" = "github.com/bnema/purego-cef2gtk@%s" ]; then | |||
| 291 | + | printf '%%s\n' '%s' | |||
| 292 | + | exit 0 | |||
| 293 | + | fi | |||
| 294 | + | exit 1 | |||
| 295 | + | `, selectedJSON, version, downloadedJSON) | |||
| 296 | + | require.NoError(t, os.WriteFile(goBin, []byte(script), 0o755)) | |||
| 297 | + | return goBin | |||
| 298 | + | } | |||
| 299 | + | ||||
| 169 | func TestFirstPresentationCollectorDefaultsToXDGStateEvidenceDirectory(t *testing.T) { | 300 | func TestFirstPresentationCollectorDefaultsToXDGStateEvidenceDirectory(t *testing.T) { | ||
| 170 | repoRoot, err := filepath.Abs(filepath.Join("..", "..")) | 301 | repoRoot, err := filepath.Abs(filepath.Join("..", "..")) | ||
| 171 | require.NoError(t, err) | 302 | require.NoError(t, err) | ||
M scripts/collect_first_presentation.sh +78 -9
| @@ -31,8 +31,78 @@ else | |||
| 31 | 31 | fi | |
| 32 | 32 | readonly output | |
| 33 | 33 | readonly upstream_module="github.com/bnema/purego-cef2gtk" | |
| 34 | - | readonly upstream_tag="v0.8.4" | |
| 35 | - | readonly upstream_revision="f217ece342dea3ef2a3f98671fcd16a39ad0037d" | |
| 34 | + | ||
| 35 | + | # Resolve the version selected by this checkout, then obtain its immutable VCS | |
| 36 | + | # origin from Go's cached module metadata. Do not infer a revision from a tag, | |
| 37 | + | # a branch, or a truncated pseudo-version suffix. | |
| 38 | + | resolve_upstream_provenance() { | |
| 39 | + | local selected_metadata selected_version downloaded_metadata | |
| 40 | + | ||
| 41 | + | selected_metadata="$(go list -m -json "$upstream_module" 2>/dev/null)" || { | |
| 42 | + | echo "first-presentation: immutable module provenance is unavailable" >&2 | |
| 43 | + | exit 2 | |
| 44 | + | } | |
| 45 | + | selected_version="$(python3 - "$upstream_module" "$selected_metadata" <<'PY' | |
| 46 | + | import json, sys | |
| 47 | + | try: | |
| 48 | + | metadata = json.loads(sys.argv[2]) | |
| 49 | + | if metadata.get("Path") != sys.argv[1] or not isinstance(metadata.get("Version"), str): | |
| 50 | + | raise ValueError | |
| 51 | + | print(metadata["Version"]) | |
| 52 | + | except (AttributeError, TypeError, ValueError, json.JSONDecodeError): | |
| 53 | + | raise SystemExit("first-presentation: immutable module provenance is unavailable") | |
| 54 | + | PY | |
| 55 | + | )" || exit $? | |
| 56 | + | downloaded_metadata="$(go mod download -json "$upstream_module@$selected_version" 2>/dev/null)" || { | |
| 57 | + | echo "first-presentation: immutable module provenance is unavailable" >&2 | |
| 58 | + | exit 2 | |
| 59 | + | } | |
| 60 | + | ||
| 61 | + | python3 - "$upstream_module" "$selected_metadata" "$downloaded_metadata" <<'PY' | |
| 62 | + | import json, re, sys | |
| 63 | + | ||
| 64 | + | module, selected_raw, downloaded_raw = sys.argv[1:] | |
| 65 | + | ||
| 66 | + | def fail(): | |
| 67 | + | # Do not expose Go cache locations or other machine-local values. | |
| 68 | + | raise SystemExit("first-presentation: immutable module provenance is unavailable") | |
| 69 | + | ||
| 70 | + | try: | |
| 71 | + | selected = json.loads(selected_raw) | |
| 72 | + | downloaded = json.loads(downloaded_raw) | |
| 73 | + | version = selected["Version"] | |
| 74 | + | if selected.get("Path") != module or downloaded.get("Path") != module: | |
| 75 | + | fail() | |
| 76 | + | if downloaded.get("Version") != version: | |
| 77 | + | fail() | |
| 78 | + | # A selected pseudo-version is an exact immutable selector, never a branch. | |
| 79 | + | match = re.fullmatch(r"(v\d+\.\d+\.\d+)-0\.\d{14}-([0-9a-f]{12})", version) | |
| 80 | + | if not match: | |
| 81 | + | fail() | |
| 82 | + | info_path = downloaded.get("Info") | |
| 83 | + | if not isinstance(info_path, str) or not info_path: | |
| 84 | + | fail() | |
| 85 | + | with open(info_path, encoding="utf-8") as info_file: | |
| 86 | + | info = json.load(info_file) | |
| 87 | + | origin = info.get("Origin") or downloaded.get("Origin") | |
| 88 | + | if info.get("Version") != version or not isinstance(origin, dict): | |
| 89 | + | fail() | |
| 90 | + | revision = origin.get("Hash") | |
| 91 | + | if origin.get("VCS") != "git" or origin.get("URL") != "https://github.com/bnema/purego-cef2gtk": | |
| 92 | + | fail() | |
| 93 | + | if not isinstance(revision, str) or not re.fullmatch(r"[0-9a-f]{40}", revision): | |
| 94 | + | fail() | |
| 95 | + | if not revision.startswith(match.group(2)): | |
| 96 | + | fail() | |
| 97 | + | # A named ref can move. Only the immutable hash itself is acceptable. | |
| 98 | + | if origin.get("Ref") not in (None, "", revision): | |
| 99 | + | fail() | |
| 100 | + | except (AttributeError, KeyError, OSError, TypeError, ValueError, json.JSONDecodeError): | |
| 101 | + | fail() | |
| 102 | + | ||
| 103 | + | print("\t".join((version, match.group(1), revision))) | |
| 104 | + | PY | |
| 105 | + | } | |
| 36 | 106 | ||
| 37 | 107 | # The artifact destination is caller-controlled. Never empty or recursively | |
| 38 | 108 | # clear it: collection only writes to a newly-created directory whose parent is | |
| @@ -66,10 +136,9 @@ prepare_output | |||
| 66 | 136 | [[ -x "$binary" ]] || { echo "first-presentation: executable not found: $binary" >&2; exit 2; } | |
| 67 | 137 | [[ -d "$runtime" ]] || { echo "first-presentation: CEF runtime not found: $runtime" >&2; exit 2; } | |
| 68 | 138 | [[ -n "${WAYLAND_DISPLAY:-}${DISPLAY:-}" ]] || { echo "first-presentation: a current Wayland/X11 display is required" >&2; exit 2; } | |
| 69 | - | [[ "$(go list -m -f '{{.Version}}' "$upstream_module")" == "$upstream_tag" ]] || { | |
| 70 | - | echo "first-presentation: expected $upstream_module@$upstream_tag" >&2 | |
| 71 | - | exit 2 | |
| 72 | - | } | |
| 139 | + | upstream_provenance="$(resolve_upstream_provenance)" || exit $? | |
| 140 | + | IFS=$'\t' read -r upstream_version upstream_tag upstream_revision <<<"$upstream_provenance" | |
| 141 | + | readonly upstream_version upstream_tag upstream_revision | |
| 73 | 142 | ||
| 74 | 143 | # Raw logs and temporary XDG homes may contain machine-local paths. Keep them | |
| 75 | 144 | # outside the committed artifact directory and always remove them. | |
| @@ -80,9 +149,9 @@ cleanup_work_root() { | |||
| 80 | 149 | rm -rf -- "$work_root" | |
| 81 | 150 | } | |
| 82 | 151 | trap cleanup_work_root EXIT | |
| 83 | - | python3 - "$output/metadata.json" "$binary" "$timeout_seconds" "$upstream_module" "$upstream_tag" "$upstream_revision" <<'PY' | |
| 152 | + | python3 - "$output/metadata.json" "$binary" "$timeout_seconds" "$upstream_module" "$upstream_version" "$upstream_tag" "$upstream_revision" <<'PY' | |
| 84 | 153 | import hashlib, json, os, platform, subprocess, sys | |
| 85 | - | path, binary, timeout, upstream_module, upstream_tag, upstream_revision = sys.argv[1:] | |
| 154 | + | path, binary, timeout, upstream_module, upstream_version, upstream_tag, upstream_revision = sys.argv[1:] | |
| 86 | 155 | with open(binary, "rb") as candidate: | |
| 87 | 156 | binary_sha256 = hashlib.file_digest(candidate, "sha256").hexdigest() | |
| 88 | 157 | ||
| @@ -102,7 +171,7 @@ json.dump({ | |||
| 102 | 171 | "binary": {"label": "dumber", "sha256": binary_sha256}, | |
| 103 | 172 | "timeout_seconds": int(timeout), | |
| 104 | 173 | "measured_source_revision": subprocess.check_output(["git", "-c", f"safe.directory={os.getcwd()}", "rev-parse", "HEAD"], text=True).strip(), | |
| 105 | - | "upstream": {"module": upstream_module, "tag": upstream_tag, "revision": upstream_revision}, | |
| 174 | + | "upstream": {"module": upstream_module, "version": upstream_version, "tag": upstream_tag, "revision": upstream_revision}, | |
| 106 | 175 | "comparison": {"os": os_label, "architecture": architecture, "display_protocol": display_protocol, "machine_gpu_profile": gpu_profile}, | |
| 107 | 176 | "render_configuration": {"backend": "gdk-dmabuf", "buffer_sharing": "dmabuf", "renderer": "vulkan"} | |
| 108 | 177 | }, open(path, "w"), indent=2, sort_keys=True) | |
| @@ -31,8 +31,78 @@ else | |||||
| 31 | fi | 31 | fi | ||
| 32 | readonly output | 32 | readonly output | ||
| 33 | readonly upstream_module="github.com/bnema/purego-cef2gtk" | 33 | readonly upstream_module="github.com/bnema/purego-cef2gtk" | ||
| 34 | - | readonly upstream_tag="v0.8.4" | 34 | + | |
| 35 | - | readonly upstream_revision="f217ece342dea3ef2a3f98671fcd16a39ad0037d" | 35 | + | # Resolve the version selected by this checkout, then obtain its immutable VCS |
| 36 | + | # origin from Go's cached module metadata. Do not infer a revision from a tag, | |||
| 37 | + | # a branch, or a truncated pseudo-version suffix. | |||
| 38 | + | resolve_upstream_provenance() { | |||
| 39 | + | local selected_metadata selected_version downloaded_metadata | |||
| 40 | + | ||||
| 41 | + | selected_metadata="$(go list -m -json "$upstream_module" 2>/dev/null)" || { | |||
| 42 | + | echo "first-presentation: immutable module provenance is unavailable" >&2 | |||
| 43 | + | exit 2 | |||
| 44 | + | } | |||
| 45 | + | selected_version="$(python3 - "$upstream_module" "$selected_metadata" <<'PY' | |||
| 46 | + | import json, sys | |||
| 47 | + | try: | |||
| 48 | + | metadata = json.loads(sys.argv[2]) | |||
| 49 | + | if metadata.get("Path") != sys.argv[1] or not isinstance(metadata.get("Version"), str): | |||
| 50 | + | raise ValueError | |||
| 51 | + | print(metadata["Version"]) | |||
| 52 | + | except (AttributeError, TypeError, ValueError, json.JSONDecodeError): | |||
| 53 | + | raise SystemExit("first-presentation: immutable module provenance is unavailable") | |||
| 54 | + | PY | |||
| 55 | + | )" || exit $? | |||
| 56 | + | downloaded_metadata="$(go mod download -json "$upstream_module@$selected_version" 2>/dev/null)" || { | |||
| 57 | + | echo "first-presentation: immutable module provenance is unavailable" >&2 | |||
| 58 | + | exit 2 | |||
| 59 | + | } | |||
| 60 | + | ||||
| 61 | + | python3 - "$upstream_module" "$selected_metadata" "$downloaded_metadata" <<'PY' | |||
| 62 | + | import json, re, sys | |||
| 63 | + | ||||
| 64 | + | module, selected_raw, downloaded_raw = sys.argv[1:] | |||
| 65 | + | ||||
| 66 | + | def fail(): | |||
| 67 | + | # Do not expose Go cache locations or other machine-local values. | |||
| 68 | + | raise SystemExit("first-presentation: immutable module provenance is unavailable") | |||
| 69 | + | ||||
| 70 | + | try: | |||
| 71 | + | selected = json.loads(selected_raw) | |||
| 72 | + | downloaded = json.loads(downloaded_raw) | |||
| 73 | + | version = selected["Version"] | |||
| 74 | + | if selected.get("Path") != module or downloaded.get("Path") != module: | |||
| 75 | + | fail() | |||
| 76 | + | if downloaded.get("Version") != version: | |||
| 77 | + | fail() | |||
| 78 | + | # A selected pseudo-version is an exact immutable selector, never a branch. | |||
| 79 | + | match = re.fullmatch(r"(v\d+\.\d+\.\d+)-0\.\d{14}-([0-9a-f]{12})", version) | |||
| 80 | + | if not match: | |||
| 81 | + | fail() | |||
| 82 | + | info_path = downloaded.get("Info") | |||
| 83 | + | if not isinstance(info_path, str) or not info_path: | |||
| 84 | + | fail() | |||
| 85 | + | with open(info_path, encoding="utf-8") as info_file: | |||
| 86 | + | info = json.load(info_file) | |||
| 87 | + | origin = info.get("Origin") or downloaded.get("Origin") | |||
| 88 | + | if info.get("Version") != version or not isinstance(origin, dict): | |||
| 89 | + | fail() | |||
| 90 | + | revision = origin.get("Hash") | |||
| 91 | + | if origin.get("VCS") != "git" or origin.get("URL") != "https://github.com/bnema/purego-cef2gtk": | |||
| 92 | + | fail() | |||
| 93 | + | if not isinstance(revision, str) or not re.fullmatch(r"[0-9a-f]{40}", revision): | |||
| 94 | + | fail() | |||
| 95 | + | if not revision.startswith(match.group(2)): | |||
| 96 | + | fail() | |||
| 97 | + | # A named ref can move. Only the immutable hash itself is acceptable. | |||
| 98 | + | if origin.get("Ref") not in (None, "", revision): | |||
| 99 | + | fail() | |||
| 100 | + | except (AttributeError, KeyError, OSError, TypeError, ValueError, json.JSONDecodeError): | |||
| 101 | + | fail() | |||
| 102 | + | ||||
| 103 | + | print("\t".join((version, match.group(1), revision))) | |||
| 104 | + | PY | |||
| 105 | + | } | |||
| 36 | 106 | ||||
| 37 | # The artifact destination is caller-controlled. Never empty or recursively | 107 | # The artifact destination is caller-controlled. Never empty or recursively | ||
| 38 | # clear it: collection only writes to a newly-created directory whose parent is | 108 | # clear it: collection only writes to a newly-created directory whose parent is | ||
| @@ -66,10 +136,9 @@ prepare_output | |||||
| 66 | [[ -x "$binary" ]] || { echo "first-presentation: executable not found: $binary" >&2; exit 2; } | 136 | [[ -x "$binary" ]] || { echo "first-presentation: executable not found: $binary" >&2; exit 2; } | ||
| 67 | [[ -d "$runtime" ]] || { echo "first-presentation: CEF runtime not found: $runtime" >&2; exit 2; } | 137 | [[ -d "$runtime" ]] || { echo "first-presentation: CEF runtime not found: $runtime" >&2; exit 2; } | ||
| 68 | [[ -n "${WAYLAND_DISPLAY:-}${DISPLAY:-}" ]] || { echo "first-presentation: a current Wayland/X11 display is required" >&2; exit 2; } | 138 | [[ -n "${WAYLAND_DISPLAY:-}${DISPLAY:-}" ]] || { echo "first-presentation: a current Wayland/X11 display is required" >&2; exit 2; } | ||
| 69 | - | [[ "$(go list -m -f '{{.Version}}' "$upstream_module")" == "$upstream_tag" ]] || { | 139 | + | upstream_provenance="$(resolve_upstream_provenance)" || exit $? |
| 70 | - | echo "first-presentation: expected $upstream_module@$upstream_tag" >&2 | 140 | + | IFS=$'\t' read -r upstream_version upstream_tag upstream_revision <<<"$upstream_provenance" |
| 71 | - | exit 2 | 141 | + | readonly upstream_version upstream_tag upstream_revision |
| 72 | - | } | |||
| 73 | 142 | ||||
| 74 | # Raw logs and temporary XDG homes may contain machine-local paths. Keep them | 143 | # Raw logs and temporary XDG homes may contain machine-local paths. Keep them | ||
| 75 | # outside the committed artifact directory and always remove them. | 144 | # outside the committed artifact directory and always remove them. | ||
| @@ -80,9 +149,9 @@ cleanup_work_root() { | |||||
| 80 | rm -rf -- "$work_root" | 149 | rm -rf -- "$work_root" | ||
| 81 | } | 150 | } | ||
| 82 | trap cleanup_work_root EXIT | 151 | trap cleanup_work_root EXIT | ||
| 83 | - | python3 - "$output/metadata.json" "$binary" "$timeout_seconds" "$upstream_module" "$upstream_tag" "$upstream_revision" <<'PY' | 152 | + | python3 - "$output/metadata.json" "$binary" "$timeout_seconds" "$upstream_module" "$upstream_version" "$upstream_tag" "$upstream_revision" <<'PY' |
| 84 | import hashlib, json, os, platform, subprocess, sys | 153 | import hashlib, json, os, platform, subprocess, sys | ||
| 85 | - | path, binary, timeout, upstream_module, upstream_tag, upstream_revision = sys.argv[1:] | 154 | + | path, binary, timeout, upstream_module, upstream_version, upstream_tag, upstream_revision = sys.argv[1:] |
| 86 | with open(binary, "rb") as candidate: | 155 | with open(binary, "rb") as candidate: | ||
| 87 | binary_sha256 = hashlib.file_digest(candidate, "sha256").hexdigest() | 156 | binary_sha256 = hashlib.file_digest(candidate, "sha256").hexdigest() | ||
| 88 | 157 | ||||
| @@ -102,7 +171,7 @@ json.dump({ | |||||
| 102 | "binary": {"label": "dumber", "sha256": binary_sha256}, | 171 | "binary": {"label": "dumber", "sha256": binary_sha256}, | ||
| 103 | "timeout_seconds": int(timeout), | 172 | "timeout_seconds": int(timeout), | ||
| 104 | "measured_source_revision": subprocess.check_output(["git", "-c", f"safe.directory={os.getcwd()}", "rev-parse", "HEAD"], text=True).strip(), | 173 | "measured_source_revision": subprocess.check_output(["git", "-c", f"safe.directory={os.getcwd()}", "rev-parse", "HEAD"], text=True).strip(), | ||
| 105 | - | "upstream": {"module": upstream_module, "tag": upstream_tag, "revision": upstream_revision}, | 174 | + | "upstream": {"module": upstream_module, "version": upstream_version, "tag": upstream_tag, "revision": upstream_revision}, |
| 106 | "comparison": {"os": os_label, "architecture": architecture, "display_protocol": display_protocol, "machine_gpu_profile": gpu_profile}, | 175 | "comparison": {"os": os_label, "architecture": architecture, "display_protocol": display_protocol, "machine_gpu_profile": gpu_profile}, | ||
| 107 | "render_configuration": {"backend": "gdk-dmabuf", "buffer_sharing": "dmabuf", "renderer": "vulkan"} | 176 | "render_configuration": {"backend": "gdk-dmabuf", "buffer_sharing": "dmabuf", "renderer": "vulkan"} | ||
| 108 | }, open(path, "w"), indent=2, sort_keys=True) | 177 | }, open(path, "w"), indent=2, sort_keys=True) | ||
M vendor/github.com/bnema/purego-cef/cef/bridge.go +8 -13 generated file: collapsed
M vendor/github.com/bnema/purego-cef2gtk/internal/cefadapter/accelerated_paint.go +34 -37 generated file: collapsed
M vendor/github.com/bnema/purego-cef2gtk/internal/dmabuf/frame.go +38 -19 generated file: collapsed
M vendor/github.com/bnema/purego-cef2gtk/internal/gtkgdk/renderer.go +89 -69 generated file: collapsed
M vendor/github.com/bnema/purego-pipewire/internal/core/player.go +5 -0 generated file: collapsed
M vendor/github.com/bnema/purego-pipewire/internal/core/player_rt.go +10 -6 generated file: collapsed
M vendor/github.com/bnema/purego-pipewire/internal/core/pwbuffer.go +66 -32 generated file: collapsed
M vendor/github.com/bnema/purego-sqlite/driver/driver.go +268 -63 generated file: collapsed
M vendor/github.com/bnema/purego-sqlite/internal/core/db.go +8 -0 generated file: collapsed
M vendor/github.com/bnema/purego-sqlite/internal/core/rows.go +13 -0 generated file: collapsed
M vendor/github.com/bnema/purego-sqlite/internal/loader/loader.go +23 -5 generated file: collapsed
M vendor/github.com/bnema/purego-sqlite/internal/ports/in/ports_gen.go +3 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/internal/core/core.go +197 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/pkg/core/core.go +10 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-dialog.go +99 -64 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-window.go +95 -62 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-accent-color.go +7 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-action-row.go +33 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-alert-dialog.go +66 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-target.go +10 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-util.go +4 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation.go +24 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application-window.go +14 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application.go +3 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-avatar.go +22 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-banner.go +23 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bin.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bottom-sheet.go +47 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint-bin.go +10 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint.go +33 -37 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-content.go +18 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-row.go +10 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-dots.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-lines.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel.go +47 -37 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-layout.go +14 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-scrollable.go +17 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp.go +17 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-combo-row.go +34 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-dialog.go +45 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-easing.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-entry-row.go +40 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-enum-list-model.go +13 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-expander-row.go +40 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-flap.go +61 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-fold-threshold-policy.go +10 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-header-bar.go +36 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-inline-view-switcher.go +18 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout-slot.go +4 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout.go +7 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-leaflet.go +69 -56 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-length-unit.go +5 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-main.go +5 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-message-dialog.go +63 -44 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-multi-layout-view.go +17 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-direction.go +10 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-split-view.go +36 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-view.go +60 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-overlay-split-view.go +48 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-password-entry-row.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-dialog.go +23 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-group.go +24 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-page.go +38 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-row.go +18 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-window.go +31 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcut-label.go +10 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-dialog.go +4 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-item.go +23 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-section.go +8 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-item.go +45 -37 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-section.go +24 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar.go +41 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spin-row.go +40 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner-paintable.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-split-button.go +39 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-animation.go +34 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-params.go +17 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-squeezer.go +49 -44 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-status-page.go +20 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-style-manager.go +25 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipe-tracker.go +33 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipeable.go +33 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-switch-row.go +6 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-bar.go +35 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-button.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-overview.go +45 -37 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-view.go +123 -87 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-timed-animation.go +30 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast-overlay.go +9 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast.go +41 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toggle-group.go +64 -51 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toolbar-view.go +40 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-version.go +7 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-stack.go +78 -62 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-bar.go +9 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-sidebar.go +15 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-title.go +19 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher.go +10 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window-title.go +10 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window.go +14 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-box.go +66 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-layout.go +57 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/cairo/main.go +36 -79 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkapplaunchcontext.go +10 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairo.go +12 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairocontext.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcicpparams.go +20 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkclipboard.go +34 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcolorstate.go +12 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentdeserializer.go +26 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentformats.go +28 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentprovider.go +23 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentserializer.go +26 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcursor.go +12 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevice.go +36 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicepad.go +27 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicetool.go +10 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplay.go +51 -43 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplaymanager.go +10 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexture.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexturebuilder.go +53 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrag.go +20 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurface.go +6 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurfacesize.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrawcontext.go +11 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrop.go +19 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkenums.go +21 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkevents.go +120 -118 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframeclock.go +22 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframetimings.go +17 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkglcontext.go +40 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexture.go +4 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexturebuilder.go +41 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkkeys.go +19 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexture.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexturebuilder.go +42 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmonitor.go +27 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpaintable.go +63 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpango.go +4 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpixbuf.go +2 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopup.go +47 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopuplayout.go +36 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkrgba.go +19 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkseat.go +11 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksnapshot.go +7 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksurface.go +46 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktexture.go +27 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevel.go +157 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevellayout.go +24 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevelsize.go +9 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktypes.go +95 -72 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkvulkancontext.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-animation.go +26 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-core.go +9 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-io.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-loader.go +13 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-simple-anim.go +8 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-transform.go +11 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf.go +102 -79 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/main.go +5 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gaction.go +59 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactiongroup.go +96 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactionmap.go +33 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gappinfo.go +244 -116 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplication.go +79 -55 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplicationcommandline.go +31 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncinitable.go +25 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncresult.go +26 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedinputstream.go +26 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedoutputstream.go +11 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbytesicon.go +4 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcancellable.go +26 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcharsetconverter.go +8 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcontenttype.go +30 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverter.go +23 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverterinputstream.go +3 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverteroutputstream.go +3 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcredentials.go +12 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatagrambased.go +45 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatainputstream.go +31 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdataoutputstream.go +14 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusactiongroup.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusaddress.go +10 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusauthobserver.go +6 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusconnection.go +77 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbuserror.go +16 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusinterface.go +26 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusinterfaceskeleton.go +25 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusintrospection.go +54 -56 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmenumodel.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmessage.go +88 -64 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmethodinvocation.go +35 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusnameowning.go +10 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusnamewatching.go +10 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobject.go +19 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanager.go +26 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerclient.go +16 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerserver.go +13 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectproxy.go +3 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectskeleton.go +12 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusproxy.go +42 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusserver.go +14 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusutils.go +24 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdebugcontroller.go +12 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdebugcontrollerdbus.go +4 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdrive.go +214 -82 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsclientconnection.go +34 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsconnection.go +207 -80 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsserverconnection.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gemblem.go +6 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gemblemedicon.go +9 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfile.go +1148 -450 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileattribute.go +13 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileenumerator.go +34 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileicon.go +3 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileinfo.go +138 -84 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileinputstream.go +17 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileiostream.go +23 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilemonitor.go +9 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilenamecompleter.go +8 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileoutputstream.go +23 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilterinputstream.go +6 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilteroutputstream.go +6 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gicon.go +32 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetaddress.go +40 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetaddressmask.go +14 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetsocketaddress.go +10 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginitable.go +11 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginputstream.go +52 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioenums.go +90 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioerror.go +6 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giomodule.go +26 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioscheduler.go +4 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giostream.go +25 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giotypes.go +70 -60 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giptosmessage.go +6 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gipv6tclassmessage.go +6 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/glistmodel.go +33 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gliststore.go +22 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gloadableicon.go +27 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemoryinputstream.go +8 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemorymonitor.go +2 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemoryoutputstream.go +13 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmenu.go +62 -50 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmenumodel.go +31 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmount.go +215 -86 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmountoperation.go +40 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnativesocketaddress.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnativevolumemonitor.go +7 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkaddress.go +11 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworking.go +3 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkmonitor.go +49 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkservice.go +12 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnotification.go +26 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/goutputstream.go +86 -72 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpermission.go +33 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableinputstream.go +30 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableoutputstream.go +41 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableutils.go +7 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpowerprofilemonitor.go +7 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpropertyaction.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxy.go +35 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyaddress.go +16 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyaddressenumerator.go +7 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyresolver.go +35 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gremoteactiongroup.go +12 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gresolver.go +75 -67 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gresource.go +19 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gseekable.go +41 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettings.go +99 -67 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettingsbackend.go +19 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettingsschema.go +48 -43 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleaction.go +9 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleactiongroup.go +9 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleasyncresult.go +46 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleiostream.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimplepermission.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleproxyresolver.go +8 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocket.go +87 -72 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketaddress.go +11 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketaddressenumerator.go +13 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketclient.go +54 -44 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketconnectable.go +19 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketconnection.go +14 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketcontrolmessage.go +10 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketlistener.go +18 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketservice.go +8 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsrvtarget.go +2 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsubprocess.go +40 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsubprocesslauncher.go +34 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtask.go +70 -52 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtcpconnection.go +5 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtcpwrapperconnection.go +3 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtestdbus.go +16 -22 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gthemedicon.go +10 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gthreadedresolver.go +7 -0 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gthreadedsocketservice.go +2 -12 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gtlsbackend.go +69 -33 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gtlscertificate.go +25 -29 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gtlsclientconnection.go +55 -29 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gtlsconnection.go +56 -46 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gtlsdatabase.go +51 -48 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gtlsfiledatabase.go +2 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gtlsinteraction.go +27 -31 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gtlspassword.go +20 -22 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gtlsserverconnection.go +2 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gunixconnection.go +11 -20 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gunixcredentialsmessage.go +6 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gunixfdlist.go +11 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gunixsocketaddress.go +14 -22 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvfs.go +18 -24 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvolume.go +143 -58 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvolumemonitor.go +11 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gzlibcompressor.go +9 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gzlibdecompressor.go +3 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/main.go +2 -11 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gallocator.go +32 -28 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/garray.go +82 -59 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gasyncqueue.go +56 -39 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gatomic.go +43 -34 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbacktrace.go +5 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbase64.go +13 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbitlock.go +23 -24 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbookmarkfile.go +69 -61 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcache.go +10 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcharset.go +13 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gchecksum.go +23 -25 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcompletion.go +14 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gconvert.go +25 -28 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdataset.go +36 -28 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdate.go +103 -65 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdatetime.go +107 -66 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdir.go +12 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/genviron.go +17 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gerror.go +30 -29 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gfileutils.go +45 -38 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ggettext.go +13 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghash.go +81 -53 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghmac.go +21 -24 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghook.go +28 -26 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghostutils.go +11 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/giochannel.go +83 -67 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gkeyfile.go +72 -62 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/glib-types.go +4 -12 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/glist.go +2 -11 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmain.go +181 -117 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmappedfile.go +15 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmarkup.go +51 -43 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmem.go +44 -31 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmessages.go +70 -45 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gnode.go +50 -35 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/goption.go +57 -43 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gpathbuf.go +26 -24 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gpattern.go +19 -23 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gpoll.go +3 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gprimes.go +3 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gprintf.go +15 -20 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gqsort.go +5 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gquark.go +13 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gqueue.go +84 -52 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grand.go +33 -30 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grcbox.go +29 -27 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grefcount.go +17 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grefstring.go +15 -20 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gregex.go +72 -57 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grel.go +20 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gscanner.go +40 -30 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gsequence.go +74 -49 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gshell.go +5 -16 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gslice.go +17 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gslist.go +2 -11 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gspawn.go +12 -23 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstdio.go +33 -27 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstrfuncs.go +115 -71 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstring.go +77 -51 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstringchunk.go +10 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstrvbuilder.go +19 -22 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtestutils.go +132 -80 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gthread.go +146 -97 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gthreadpool.go +26 -25 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtimer.go +18 -20 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtimezone.go +27 -26 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtrashstack.go +8 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtree.go +63 -45 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtypes.go +4 -12 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gunicode.go +132 -85
| @@ -2,7 +2,6 @@ | |||
| 2 | 2 | package glib | |
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | - | "github.com/bnema/purego" | |
| 6 | 5 | "github.com/bnema/puregotk/pkg/core" | |
| 7 | 6 | "github.com/bnema/puregotk/v4/gobject/types" | |
| 8 | 7 | ) | |
| @@ -25,6 +24,7 @@ type NormalizeMode int | |||
| 25 | 24 | var xNormalizeModeGLibType func() types.GType | |
| 26 | 25 | ||
| 27 | 26 | func NormalizeModeGLibType() types.GType { | |
| 27 | + | core.LazyRegister(&xNormalizeModeGLibType, "GLIB", "g_normalize_mode_get_type", false) | |
| 28 | 28 | return xNormalizeModeGLibType() | |
| 29 | 29 | } | |
| 30 | 30 | ||
| @@ -66,6 +66,7 @@ type UnicodeBreakType int | |||
| 66 | 66 | var xUnicodeBreakTypeGLibType func() types.GType | |
| 67 | 67 | ||
| 68 | 68 | func UnicodeBreakTypeGLibType() types.GType { | |
| 69 | + | core.LazyRegister(&xUnicodeBreakTypeGLibType, "GLIB", "g_unicode_break_type_get_type", false) | |
| 69 | 70 | return xUnicodeBreakTypeGLibType() | |
| 70 | 71 | } | |
| 71 | 72 | ||
| @@ -186,6 +187,7 @@ type UnicodeScript int | |||
| 186 | 187 | var xUnicodeScriptGLibType func() types.GType | |
| 187 | 188 | ||
| 188 | 189 | func UnicodeScriptGLibType() types.GType { | |
| 190 | + | core.LazyRegister(&xUnicodeScriptGLibType, "GLIB", "g_unicode_script_get_type", false) | |
| 189 | 191 | return xUnicodeScriptGLibType() | |
| 190 | 192 | } | |
| 191 | 193 | ||
| @@ -556,6 +558,7 @@ type UnicodeType int | |||
| 556 | 558 | var xUnicodeTypeGLibType func() types.GType | |
| 557 | 559 | ||
| 558 | 560 | func UnicodeTypeGLibType() types.GType { | |
| 561 | + | core.LazyRegister(&xUnicodeTypeGLibType, "GLIB", "g_unicode_type_get_type", false) | |
| 559 | 562 | return xUnicodeTypeGLibType() | |
| 560 | 563 | } | |
| 561 | 564 | ||
| @@ -629,6 +632,7 @@ var xUcs4ToUtf16 func([]uint32, int, *int, *int, **Error) uint16 | |||
| 629 | 632 | // | |
| 630 | 633 | // A nul character (U+0000) will be added to the result after the converted text. | |
| 631 | 634 | func Ucs4ToUtf16(StrVar []uint32, LenVar int, ItemsReadVar *int, ItemsWrittenVar *int) (uint16, error) { | |
| 635 | + | core.LazyRegister(&xUcs4ToUtf16, "GLIB", "g_ucs4_to_utf16", false) | |
| 632 | 636 | var cerr *Error | |
| 633 | 637 | ||
| 634 | 638 | cret := xUcs4ToUtf16(StrVar, LenVar, ItemsReadVar, ItemsWrittenVar, &cerr) | |
| @@ -645,6 +649,7 @@ var xUcs4ToUtf8 func([]uint32, int, *int, *int, **Error) string | |||
| 645 | 649 | // | |
| 646 | 650 | // The result will be terminated with a nul byte. | |
| 647 | 651 | func Ucs4ToUtf8(StrVar []uint32, LenVar int, ItemsReadVar *int, ItemsWrittenVar *int) (string, error) { | |
| 652 | + | core.LazyRegister(&xUcs4ToUtf8, "GLIB", "g_ucs4_to_utf8", false) | |
| 648 | 653 | var cerr *Error | |
| 649 | 654 | ||
| 650 | 655 | cret := xUcs4ToUtf8(StrVar, LenVar, ItemsReadVar, ItemsWrittenVar, &cerr) | |
| @@ -663,6 +668,8 @@ var xUnicharBreakType func(uint32) UnicodeBreakType | |||
| 663 | 668 | // resolution algorithms and normally you would use a function such | |
| 664 | 669 | // as pango_break() instead of caring about break types yourself. | |
| 665 | 670 | func UnicharBreakType(CVar uint32) UnicodeBreakType { | |
| 671 | + | core.LazyRegister(&xUnicharBreakType, "GLIB", "g_unichar_break_type", false) | |
| 672 | + | ||
| 666 | 673 | cret := xUnicharBreakType(CVar) | |
| 667 | 674 | return cret | |
| 668 | 675 | } | |
| @@ -671,6 +678,8 @@ var xUnicharCombiningClass func(uint32) int | |||
| 671 | 678 | ||
| 672 | 679 | // Determines the canonical combining class of a Unicode character. | |
| 673 | 680 | func UnicharCombiningClass(UcVar uint32) int { | |
| 681 | + | core.LazyRegister(&xUnicharCombiningClass, "GLIB", "g_unichar_combining_class", false) | |
| 682 | + | ||
| 674 | 683 | cret := xUnicharCombiningClass(UcVar) | |
| 675 | 684 | return cret | |
| 676 | 685 | } | |
| @@ -694,6 +703,8 @@ var xUnicharCompose func(uint32, uint32, *uint32) bool | |||
| 694 | 703 | // [UAX#15](http://unicode.org/reports/tr15/) | |
| 695 | 704 | // for details. | |
| 696 | 705 | func UnicharCompose(AVar uint32, BVar uint32, ChVar *uint32) bool { | |
| 706 | + | core.LazyRegister(&xUnicharCompose, "GLIB", "g_unichar_compose", false) | |
| 707 | + | ||
| 697 | 708 | cret := xUnicharCompose(AVar, BVar, ChVar) | |
| 698 | 709 | return cret | |
| 699 | 710 | } | |
| @@ -724,6 +735,8 @@ var xUnicharDecompose func(uint32, *uint32, *uint32) bool | |||
| 724 | 735 | // [UAX#15](http://unicode.org/reports/tr15/) | |
| 725 | 736 | // for details. | |
| 726 | 737 | func UnicharDecompose(ChVar uint32, AVar *uint32, BVar *uint32) bool { | |
| 738 | + | core.LazyRegister(&xUnicharDecompose, "GLIB", "g_unichar_decompose", false) | |
| 739 | + | ||
| 727 | 740 | cret := xUnicharDecompose(ChVar, AVar, BVar) | |
| 728 | 741 | return cret | |
| 729 | 742 | } | |
| @@ -733,6 +746,8 @@ var xUnicharDigitValue func(uint32) int | |||
| 733 | 746 | // Determines the numeric value of a character as a decimal | |
| 734 | 747 | // digit. | |
| 735 | 748 | func UnicharDigitValue(CVar uint32) int { | |
| 749 | + | core.LazyRegister(&xUnicharDigitValue, "GLIB", "g_unichar_digit_value", false) | |
| 750 | + | ||
| 736 | 751 | cret := xUnicharDigitValue(CVar) | |
| 737 | 752 | return cret | |
| 738 | 753 | } | |
| @@ -759,6 +774,8 @@ var xUnicharFullyDecompose func(uint32, bool, *uint32, uint) uint | |||
| 759 | 774 | // [UAX#15](http://unicode.org/reports/tr15/) | |
| 760 | 775 | // for details. | |
| 761 | 776 | func UnicharFullyDecompose(ChVar uint32, CompatVar bool, ResultVar *uint32, ResultLenVar uint) uint { | |
| 777 | + | core.LazyRegister(&xUnicharFullyDecompose, "GLIB", "g_unichar_fully_decompose", false) | |
| 778 | + | ||
| 762 | 779 | cret := xUnicharFullyDecompose(ChVar, CompatVar, ResultVar, ResultLenVar) | |
| 763 | 780 | return cret | |
| 764 | 781 | } | |
| @@ -775,6 +792,8 @@ var xUnicharGetMirrorChar func(uint32, *uint32) bool | |||
| 775 | 792 | // glyph and @mirrored_ch is set, it puts that character in the address | |
| 776 | 793 | // pointed to by @mirrored_ch. Otherwise the original character is put. | |
| 777 | 794 | func UnicharGetMirrorChar(ChVar uint32, MirroredChVar *uint32) bool { | |
| 795 | + | core.LazyRegister(&xUnicharGetMirrorChar, "GLIB", "g_unichar_get_mirror_char", false) | |
| 796 | + | ||
| 778 | 797 | cret := xUnicharGetMirrorChar(ChVar, MirroredChVar) | |
| 779 | 798 | return cret | |
| 780 | 799 | } | |
| @@ -789,6 +808,8 @@ var xUnicharGetScript func(uint32) UnicodeScript | |||
| 789 | 808 | // This function is equivalent to pango_script_for_unichar() and the | |
| 790 | 809 | // two are interchangeable. | |
| 791 | 810 | func UnicharGetScript(ChVar uint32) UnicodeScript { | |
| 811 | + | core.LazyRegister(&xUnicharGetScript, "GLIB", "g_unichar_get_script", false) | |
| 812 | + | ||
| 792 | 813 | cret := xUnicharGetScript(ChVar) | |
| 793 | 814 | return cret | |
| 794 | 815 | } | |
| @@ -799,6 +820,8 @@ var xUnicharIsalnum func(uint32) bool | |||
| 799 | 820 | // Given some UTF-8 text, obtain a character value | |
| 800 | 821 | // with g_utf8_get_char(). | |
| 801 | 822 | func UnicharIsalnum(CVar uint32) bool { | |
| 823 | + | core.LazyRegister(&xUnicharIsalnum, "GLIB", "g_unichar_isalnum", false) | |
| 824 | + | ||
| 802 | 825 | cret := xUnicharIsalnum(CVar) | |
| 803 | 826 | return cret | |
| 804 | 827 | } | |
| @@ -809,6 +832,8 @@ var xUnicharIsalpha func(uint32) bool | |||
| 809 | 832 | // Given some UTF-8 text, obtain a character value with | |
| 810 | 833 | // g_utf8_get_char(). | |
| 811 | 834 | func UnicharIsalpha(CVar uint32) bool { | |
| 835 | + | core.LazyRegister(&xUnicharIsalpha, "GLIB", "g_unichar_isalpha", false) | |
| 836 | + | ||
| 812 | 837 | cret := xUnicharIsalpha(CVar) | |
| 813 | 838 | return cret | |
| 814 | 839 | } | |
| @@ -819,6 +844,8 @@ var xUnicharIscntrl func(uint32) bool | |||
| 819 | 844 | // Given some UTF-8 text, obtain a character value with | |
| 820 | 845 | // g_utf8_get_char(). | |
| 821 | 846 | func UnicharIscntrl(CVar uint32) bool { | |
| 847 | + | core.LazyRegister(&xUnicharIscntrl, "GLIB", "g_unichar_iscntrl", false) | |
| 848 | + | ||
| 822 | 849 | cret := xUnicharIscntrl(CVar) | |
| 823 | 850 | return cret | |
| 824 | 851 | } | |
| @@ -828,6 +855,8 @@ var xUnicharIsdefined func(uint32) bool | |||
| 828 | 855 | // Determines if a given character is assigned in the Unicode | |
| 829 | 856 | // standard. | |
| 830 | 857 | func UnicharIsdefined(CVar uint32) bool { | |
| 858 | + | core.LazyRegister(&xUnicharIsdefined, "GLIB", "g_unichar_isdefined", false) | |
| 859 | + | ||
| 831 | 860 | cret := xUnicharIsdefined(CVar) | |
| 832 | 861 | return cret | |
| 833 | 862 | } | |
| @@ -838,6 +867,8 @@ var xUnicharIsdigit func(uint32) bool | |||
| 838 | 867 | // covers ASCII 0-9 and also digits in other languages/scripts. Given | |
| 839 | 868 | // some UTF-8 text, obtain a character value with g_utf8_get_char(). | |
| 840 | 869 | func UnicharIsdigit(CVar uint32) bool { | |
| 870 | + | core.LazyRegister(&xUnicharIsdigit, "GLIB", "g_unichar_isdigit", false) | |
| 871 | + | ||
| 841 | 872 | cret := xUnicharIsdigit(CVar) | |
| 842 | 873 | return cret | |
| 843 | 874 | } | |
| @@ -850,6 +881,8 @@ var xUnicharIsgraph func(uint32) bool | |||
| 850 | 881 | // spaces. Given some UTF-8 text, obtain a character value with | |
| 851 | 882 | // g_utf8_get_char(). | |
| 852 | 883 | func UnicharIsgraph(CVar uint32) bool { | |
| 884 | + | core.LazyRegister(&xUnicharIsgraph, "GLIB", "g_unichar_isgraph", false) | |
| 885 | + | ||
| 853 | 886 | cret := xUnicharIsgraph(CVar) | |
| 854 | 887 | return cret | |
| 855 | 888 | } | |
| @@ -860,6 +893,8 @@ var xUnicharIslower func(uint32) bool | |||
| 860 | 893 | // Given some UTF-8 text, obtain a character value with | |
| 861 | 894 | // g_utf8_get_char(). | |
| 862 | 895 | func UnicharIslower(CVar uint32) bool { | |
| 896 | + | core.LazyRegister(&xUnicharIslower, "GLIB", "g_unichar_islower", false) | |
| 897 | + | ||
| 863 | 898 | cret := xUnicharIslower(CVar) | |
| 864 | 899 | return cret | |
| 865 | 900 | } | |
| @@ -876,6 +911,8 @@ var xUnicharIsmark func(uint32) bool | |||
| 876 | 911 | // for writing most European languages as well as many non-Latin | |
| 877 | 912 | // scripts. | |
| 878 | 913 | func UnicharIsmark(CVar uint32) bool { | |
| 914 | + | core.LazyRegister(&xUnicharIsmark, "GLIB", "g_unichar_ismark", false) | |
| 915 | + | ||
| 879 | 916 | cret := xUnicharIsmark(CVar) | |
| 880 | 917 | return cret | |
| 881 | 918 | } | |
| @@ -887,6 +924,8 @@ var xUnicharIsprint func(uint32) bool | |||
| 887 | 924 | // Given some UTF-8 text, obtain a character value with | |
| 888 | 925 | // g_utf8_get_char(). | |
| 889 | 926 | func UnicharIsprint(CVar uint32) bool { | |
| 927 | + | core.LazyRegister(&xUnicharIsprint, "GLIB", "g_unichar_isprint", false) | |
| 928 | + | ||
| 890 | 929 | cret := xUnicharIsprint(CVar) | |
| 891 | 930 | return cret | |
| 892 | 931 | } | |
| @@ -897,6 +936,8 @@ var xUnicharIspunct func(uint32) bool | |||
| 897 | 936 | // Given some UTF-8 text, obtain a character value with | |
| 898 | 937 | // g_utf8_get_char(). | |
| 899 | 938 | func UnicharIspunct(CVar uint32) bool { | |
| 939 | + | core.LazyRegister(&xUnicharIspunct, "GLIB", "g_unichar_ispunct", false) | |
| 940 | + | ||
| 900 | 941 | cret := xUnicharIspunct(CVar) | |
| 901 | 942 | return cret | |
| 902 | 943 | } | |
| @@ -911,6 +952,8 @@ var xUnicharIsspace func(uint32) bool | |||
| 911 | 952 | // Pango or equivalent to get word breaking right, the algorithm | |
| 912 | 953 | // is fairly complex.) | |
| 913 | 954 | func UnicharIsspace(CVar uint32) bool { | |
| 955 | + | core.LazyRegister(&xUnicharIsspace, "GLIB", "g_unichar_isspace", false) | |
| 956 | + | ||
| 914 | 957 | cret := xUnicharIsspace(CVar) | |
| 915 | 958 | return cret | |
| 916 | 959 | } | |
| @@ -924,6 +967,8 @@ var xUnicharIstitle func(uint32) bool | |||
| 924 | 967 | // first letter is capitalized. The titlecase form of the DZ | |
| 925 | 968 | // digraph is U+01F2 LATIN CAPITAL LETTTER D WITH SMALL LETTER Z. | |
| 926 | 969 | func UnicharIstitle(CVar uint32) bool { | |
| 970 | + | core.LazyRegister(&xUnicharIstitle, "GLIB", "g_unichar_istitle", false) | |
| 971 | + | ||
| 927 | 972 | cret := xUnicharIstitle(CVar) | |
| 928 | 973 | return cret | |
| 929 | 974 | } | |
| @@ -932,6 +977,8 @@ var xUnicharIsupper func(uint32) bool | |||
| 932 | 977 | ||
| 933 | 978 | // Determines if a character is uppercase. | |
| 934 | 979 | func UnicharIsupper(CVar uint32) bool { | |
| 980 | + | core.LazyRegister(&xUnicharIsupper, "GLIB", "g_unichar_isupper", false) | |
| 981 | + | ||
| 935 | 982 | cret := xUnicharIsupper(CVar) | |
| 936 | 983 | return cret | |
| 937 | 984 | } | |
| @@ -941,6 +988,8 @@ var xUnicharIswide func(uint32) bool | |||
| 941 | 988 | // Determines if a character is typically rendered in a double-width | |
| 942 | 989 | // cell. | |
| 943 | 990 | func UnicharIswide(CVar uint32) bool { | |
| 991 | + | core.LazyRegister(&xUnicharIswide, "GLIB", "g_unichar_iswide", false) | |
| 992 | + | ||
| 944 | 993 | cret := xUnicharIswide(CVar) | |
| 945 | 994 | return cret | |
| 946 | 995 | } | |
| @@ -958,6 +1007,8 @@ var xUnicharIswideCjk func(uint32) bool | |||
| 958 | 1007 | // this test, but not the other way around. Note that some characters may | |
| 959 | 1008 | // pass both this test and g_unichar_iszerowidth(). | |
| 960 | 1009 | func UnicharIswideCjk(CVar uint32) bool { | |
| 1010 | + | core.LazyRegister(&xUnicharIswideCjk, "GLIB", "g_unichar_iswide_cjk", false) | |
| 1011 | + | ||
| 961 | 1012 | cret := xUnicharIswideCjk(CVar) | |
| 962 | 1013 | return cret | |
| 963 | 1014 | } | |
| @@ -966,6 +1017,8 @@ var xUnicharIsxdigit func(uint32) bool | |||
| 966 | 1017 | ||
| 967 | 1018 | // Determines if a character is a hexadecimal digit. | |
| 968 | 1019 | func UnicharIsxdigit(CVar uint32) bool { | |
| 1020 | + | core.LazyRegister(&xUnicharIsxdigit, "GLIB", "g_unichar_isxdigit", false) | |
| 1021 | + | ||
| 969 | 1022 | cret := xUnicharIsxdigit(CVar) | |
| 970 | 1023 | return cret | |
| 971 | 1024 | } | |
| @@ -982,6 +1035,8 @@ var xUnicharIszerowidth func(uint32) bool | |||
| 982 | 1035 | // when displayed on a grid display (terminals). However, note that not all | |
| 983 | 1036 | // terminals support zero-width rendering of zero-width marks. | |
| 984 | 1037 | func UnicharIszerowidth(CVar uint32) bool { | |
| 1038 | + | core.LazyRegister(&xUnicharIszerowidth, "GLIB", "g_unichar_iszerowidth", false) | |
| 1039 | + | ||
| 985 | 1040 | cret := xUnicharIszerowidth(CVar) | |
| 986 | 1041 | return cret | |
| 987 | 1042 | } | |
| @@ -990,6 +1045,8 @@ var xUnicharToUtf8 func(uint32, *string) int | |||
| 990 | 1045 | ||
| 991 | 1046 | // Converts a single character to UTF-8. | |
| 992 | 1047 | func UnicharToUtf8(CVar uint32, OutbufVar *string) int { | |
| 1048 | + | core.LazyRegister(&xUnicharToUtf8, "GLIB", "g_unichar_to_utf8", false) | |
| 1049 | + | ||
| 993 | 1050 | cret := xUnicharToUtf8(CVar, OutbufVar) | |
| 994 | 1051 | return cret | |
| 995 | 1052 | } | |
| @@ -998,6 +1055,8 @@ var xUnicharTolower func(uint32) uint32 | |||
| 998 | 1055 | ||
| 999 | 1056 | // Converts a character to lower case. | |
| 1000 | 1057 | func UnicharTolower(CVar uint32) uint32 { | |
| 1058 | + | core.LazyRegister(&xUnicharTolower, "GLIB", "g_unichar_tolower", false) | |
| 1059 | + | ||
| 1001 | 1060 | cret := xUnicharTolower(CVar) | |
| 1002 | 1061 | return cret | |
| 1003 | 1062 | } | |
| @@ -1006,6 +1065,8 @@ var xUnicharTotitle func(uint32) uint32 | |||
| 1006 | 1065 | ||
| 1007 | 1066 | // Converts a character to the titlecase. | |
| 1008 | 1067 | func UnicharTotitle(CVar uint32) uint32 { | |
| 1068 | + | core.LazyRegister(&xUnicharTotitle, "GLIB", "g_unichar_totitle", false) | |
| 1069 | + | ||
| 1009 | 1070 | cret := xUnicharTotitle(CVar) | |
| 1010 | 1071 | return cret | |
| 1011 | 1072 | } | |
| @@ -1014,6 +1075,8 @@ var xUnicharToupper func(uint32) uint32 | |||
| 1014 | 1075 | ||
| 1015 | 1076 | // Converts a character to uppercase. | |
| 1016 | 1077 | func UnicharToupper(CVar uint32) uint32 { | |
| 1078 | + | core.LazyRegister(&xUnicharToupper, "GLIB", "g_unichar_toupper", false) | |
| 1079 | + | ||
| 1017 | 1080 | cret := xUnicharToupper(CVar) | |
| 1018 | 1081 | return cret | |
| 1019 | 1082 | } | |
| @@ -1022,6 +1085,8 @@ var xUnicharType func(uint32) UnicodeType | |||
| 1022 | 1085 | ||
| 1023 | 1086 | // Classifies a Unicode character by type. | |
| 1024 | 1087 | func UnicharType(CVar uint32) UnicodeType { | |
| 1088 | + | core.LazyRegister(&xUnicharType, "GLIB", "g_unichar_type", false) | |
| 1089 | + | ||
| 1025 | 1090 | cret := xUnicharType(CVar) | |
| 1026 | 1091 | return cret | |
| 1027 | 1092 | } | |
| @@ -1033,6 +1098,8 @@ var xUnicharValidate func(uint32) bool | |||
| 1033 | 1098 | // Some possible integer values of @ch will not be valid. U+0000 is considered a | |
| 1034 | 1099 | // valid character, though it’s normally a string terminator. | |
| 1035 | 1100 | func UnicharValidate(ChVar uint32) bool { | |
| 1101 | + | core.LazyRegister(&xUnicharValidate, "GLIB", "g_unichar_validate", false) | |
| 1102 | + | ||
| 1036 | 1103 | cret := xUnicharValidate(ChVar) | |
| 1037 | 1104 | return cret | |
| 1038 | 1105 | } | |
| @@ -1042,6 +1109,8 @@ var xUnicharXdigitValue func(uint32) int | |||
| 1042 | 1109 | // Determines the numeric value of a character as a hexadecimal | |
| 1043 | 1110 | // digit. | |
| 1044 | 1111 | func UnicharXdigitValue(CVar uint32) int { | |
| 1112 | + | core.LazyRegister(&xUnicharXdigitValue, "GLIB", "g_unichar_xdigit_value", false) | |
| 1113 | + | ||
| 1045 | 1114 | cret := xUnicharXdigitValue(CVar) | |
| 1046 | 1115 | return cret | |
| 1047 | 1116 | } | |
| @@ -1050,6 +1119,8 @@ var xUnicodeCanonicalDecomposition func(uint32, uint) uint32 | |||
| 1050 | 1119 | ||
| 1051 | 1120 | // Computes the canonical decomposition of a Unicode character. | |
| 1052 | 1121 | func UnicodeCanonicalDecomposition(ChVar uint32, ResultLenVar uint) uint32 { | |
| 1122 | + | core.LazyRegister(&xUnicodeCanonicalDecomposition, "GLIB", "g_unicode_canonical_decomposition", false) | |
| 1123 | + | ||
| 1053 | 1124 | cret := xUnicodeCanonicalDecomposition(ChVar, ResultLenVar) | |
| 1054 | 1125 | return cret | |
| 1055 | 1126 | } | |
| @@ -1061,6 +1132,8 @@ var xUnicodeCanonicalOrdering func([]uint32, uint) | |||
| 1061 | 1132 | // according to their combining classes. See the Unicode | |
| 1062 | 1133 | // manual for more information. | |
| 1063 | 1134 | func UnicodeCanonicalOrdering(StringVar []uint32, LenVar uint) { | |
| 1135 | + | core.LazyRegister(&xUnicodeCanonicalOrdering, "GLIB", "g_unicode_canonical_ordering", false) | |
| 1136 | + | ||
| 1064 | 1137 | xUnicodeCanonicalOrdering(StringVar, LenVar) | |
| 1065 | 1138 | } | |
| 1066 | 1139 | ||
| @@ -1076,6 +1149,8 @@ var xUnicodeScriptFromIso15924 func(uint32) UnicodeScript | |||
| 1076 | 1149 | // [Codes for the representation of names of scripts](http://unicode.org/iso15924/codelists.html) | |
| 1077 | 1150 | // for details. | |
| 1078 | 1151 | func UnicodeScriptFromIso15924(Iso15924Var uint32) UnicodeScript { | |
| 1152 | + | core.LazyRegister(&xUnicodeScriptFromIso15924, "GLIB", "g_unicode_script_from_iso15924", false) | |
| 1153 | + | ||
| 1079 | 1154 | cret := xUnicodeScriptFromIso15924(Iso15924Var) | |
| 1080 | 1155 | return cret | |
| 1081 | 1156 | } | |
| @@ -1092,6 +1167,8 @@ var xUnicodeScriptToIso15924 func(UnicodeScript) uint32 | |||
| 1092 | 1167 | // [Codes for the representation of names of scripts](http://unicode.org/iso15924/codelists.html) | |
| 1093 | 1168 | // for details. | |
| 1094 | 1169 | func UnicodeScriptToIso15924(ScriptVar UnicodeScript) uint32 { | |
| 1170 | + | core.LazyRegister(&xUnicodeScriptToIso15924, "GLIB", "g_unicode_script_to_iso15924", false) | |
| 1171 | + | ||
| 1095 | 1172 | cret := xUnicodeScriptToIso15924(ScriptVar) | |
| 1096 | 1173 | return cret | |
| 1097 | 1174 | } | |
| @@ -1102,6 +1179,7 @@ var xUtf16ToUcs4 func([]uint16, int, *int, *int, **Error) uint32 | |||
| 1102 | 1179 | // | |
| 1103 | 1180 | // The result will be nul-terminated. | |
| 1104 | 1181 | func Utf16ToUcs4(StrVar []uint16, LenVar int, ItemsReadVar *int, ItemsWrittenVar *int) (uint32, error) { | |
| 1182 | + | core.LazyRegister(&xUtf16ToUcs4, "GLIB", "g_utf16_to_ucs4", false) | |
| 1105 | 1183 | var cerr *Error | |
| 1106 | 1184 | ||
| 1107 | 1185 | cret := xUtf16ToUcs4(StrVar, LenVar, ItemsReadVar, ItemsWrittenVar, &cerr) | |
| @@ -1128,6 +1206,7 @@ var xUtf16ToUtf8 func([]uint16, int, *int, *int, **Error) string | |||
| 1128 | 1206 | // be correctly interpreted as UTF-16, i.e. it doesn’t contain | |
| 1129 | 1207 | // unpaired surrogates or partial character sequences. | |
| 1130 | 1208 | func Utf16ToUtf8(StrVar []uint16, LenVar int, ItemsReadVar *int, ItemsWrittenVar *int) (string, error) { | |
| 1209 | + | core.LazyRegister(&xUtf16ToUtf8, "GLIB", "g_utf16_to_utf8", false) | |
| 1131 | 1210 | var cerr *Error | |
| 1132 | 1211 | ||
| 1133 | 1212 | cret := xUtf16ToUtf8(StrVar, LenVar, ItemsReadVar, ItemsWrittenVar, &cerr) | |
| @@ -1151,6 +1230,8 @@ var xUtf8Casefold func(string, int) string | |||
| 1151 | 1230 | // takes case sensitivity into account. GLib does not currently | |
| 1152 | 1231 | // provide such a function. | |
| 1153 | 1232 | func Utf8Casefold(StrVar string, LenVar int) string { | |
| 1233 | + | core.LazyRegister(&xUtf8Casefold, "GLIB", "g_utf8_casefold", false) | |
| 1234 | + | ||
| 1154 | 1235 | cret := xUtf8Casefold(StrVar, LenVar) | |
| 1155 | 1236 | return cret | |
| 1156 | 1237 | } | |
| @@ -1168,6 +1249,8 @@ var xUtf8Collate func(string, string) int | |||
| 1168 | 1249 | // sequences, the result is undefined. This can happen if the strings are in | |
| 1169 | 1250 | // different language scripts, for example. | |
| 1170 | 1251 | func Utf8Collate(Str1Var string, Str2Var string) int { | |
| 1252 | + | core.LazyRegister(&xUtf8Collate, "GLIB", "g_utf8_collate", false) | |
| 1253 | + | ||
| 1171 | 1254 | cret := xUtf8Collate(Str1Var, Str2Var) | |
| 1172 | 1255 | return cret | |
| 1173 | 1256 | } | |
| @@ -1188,6 +1271,8 @@ var xUtf8CollateKey func(string, int) string | |||
| 1188 | 1271 | // encoding, especially UTF-8. The returned value is meant to be | |
| 1189 | 1272 | // used only for comparisons. | |
| 1190 | 1273 | func Utf8CollateKey(StrVar string, LenVar int) string { | |
| 1274 | + | core.LazyRegister(&xUtf8CollateKey, "GLIB", "g_utf8_collate_key", false) | |
| 1275 | + | ||
| 1191 | 1276 | cret := xUtf8CollateKey(StrVar, LenVar) | |
| 1192 | 1277 | return cret | |
| 1193 | 1278 | } | |
| @@ -1210,6 +1295,8 @@ var xUtf8CollateKeyForFilename func(string, int) string | |||
| 1210 | 1295 | // encoding, especially UTF-8. The returned value is meant to be | |
| 1211 | 1296 | // used only for comparisons. | |
| 1212 | 1297 | func Utf8CollateKeyForFilename(StrVar string, LenVar int) string { | |
| 1298 | + | core.LazyRegister(&xUtf8CollateKeyForFilename, "GLIB", "g_utf8_collate_key_for_filename", false) | |
| 1299 | + | ||
| 1213 | 1300 | cret := xUtf8CollateKeyForFilename(StrVar, LenVar) | |
| 1214 | 1301 | return cret | |
| 1215 | 1302 | } | |
| @@ -1227,6 +1314,8 @@ var xUtf8FindNextChar func(string, uintptr) string | |||
| 1227 | 1314 | // @end is non-`NULL`, the return value will be `NULL` if the end of the string | |
| 1228 | 1315 | // is reached. | |
| 1229 | 1316 | func Utf8FindNextChar(PVar string, EndVar *string) string { | |
| 1317 | + | core.LazyRegister(&xUtf8FindNextChar, "GLIB", "g_utf8_find_next_char", false) | |
| 1318 | + | ||
| 1230 | 1319 | EndVarPtr := core.GStrdupNullable(EndVar) | |
| 1231 | 1320 | defer core.GFreeNullable(EndVarPtr) | |
| 1232 | 1321 | ||
| @@ -1244,6 +1333,8 @@ var xUtf8FindPrevChar func(string, string) string | |||
| 1244 | 1333 | // is made to see if the character found is actually valid other than | |
| 1245 | 1334 | // it starts with an appropriate byte. | |
| 1246 | 1335 | func Utf8FindPrevChar(StrVar string, PVar string) string { | |
| 1336 | + | core.LazyRegister(&xUtf8FindPrevChar, "GLIB", "g_utf8_find_prev_char", false) | |
| 1337 | + | ||
| 1247 | 1338 | cret := xUtf8FindPrevChar(StrVar, PVar) | |
| 1248 | 1339 | return cret | |
| 1249 | 1340 | } | |
| @@ -1257,6 +1348,8 @@ var xUtf8GetChar func(string) uint32 | |||
| 1257 | 1348 | // valid Unicode characters, you should use [func@GLib.utf8_get_char_validated] | |
| 1258 | 1349 | // instead. | |
| 1259 | 1350 | func Utf8GetChar(PVar string) uint32 { | |
| 1351 | + | core.LazyRegister(&xUtf8GetChar, "GLIB", "g_utf8_get_char", false) | |
| 1352 | + | ||
| 1260 | 1353 | cret := xUtf8GetChar(PVar) | |
| 1261 | 1354 | return cret | |
| 1262 | 1355 | } | |
| @@ -1273,6 +1366,8 @@ var xUtf8GetCharValidated func(string, int) uint32 | |||
| 1273 | 1366 | // @max_len is positive and any of the bytes in the first UTF-8 character | |
| 1274 | 1367 | // sequence are nul. | |
| 1275 | 1368 | func Utf8GetCharValidated(PVar string, MaxLenVar int) uint32 { | |
| 1369 | + | core.LazyRegister(&xUtf8GetCharValidated, "GLIB", "g_utf8_get_char_validated", false) | |
| 1370 | + | ||
| 1276 | 1371 | cret := xUtf8GetCharValidated(PVar, MaxLenVar) | |
| 1277 | 1372 | return cret | |
| 1278 | 1373 | } | |
| @@ -1289,6 +1384,8 @@ var xUtf8MakeValid func(string, int) string | |||
| 1289 | 1384 | // assumption that it is close enough to ASCII or UTF-8 to be mostly | |
| 1290 | 1385 | // readable as-is. | |
| 1291 | 1386 | func Utf8MakeValid(StrVar string, LenVar int) string { | |
| 1387 | + | core.LazyRegister(&xUtf8MakeValid, "GLIB", "g_utf8_make_valid", false) | |
| 1388 | + | ||
| 1292 | 1389 | cret := xUtf8MakeValid(StrVar, LenVar) | |
| 1293 | 1390 | return cret | |
| 1294 | 1391 | } | |
| @@ -1321,6 +1418,8 @@ var xUtf8Normalize func(string, int, NormalizeMode) string | |||
| 1321 | 1418 | // a legacy encoding or pass it to a system with | |
| 1322 | 1419 | // less capable Unicode handling. | |
| 1323 | 1420 | func Utf8Normalize(StrVar string, LenVar int, ModeVar NormalizeMode) string { | |
| 1421 | + | core.LazyRegister(&xUtf8Normalize, "GLIB", "g_utf8_normalize", false) | |
| 1422 | + | ||
| 1324 | 1423 | cret := xUtf8Normalize(StrVar, LenVar, ModeVar) | |
| 1325 | 1424 | return cret | |
| 1326 | 1425 | } | |
| @@ -1341,6 +1440,8 @@ var xUtf8OffsetToPointer func(string, int) string | |||
| 1341 | 1440 | // This limitation exists as this function is called frequently during | |
| 1342 | 1441 | // text rendering and therefore has to be as fast as possible. | |
| 1343 | 1442 | func Utf8OffsetToPointer(StrVar string, OffsetVar int) string { | |
| 1443 | + | core.LazyRegister(&xUtf8OffsetToPointer, "GLIB", "g_utf8_offset_to_pointer", false) | |
| 1444 | + | ||
| 1344 | 1445 | cret := xUtf8OffsetToPointer(StrVar, OffsetVar) | |
| 1345 | 1446 | return cret | |
| 1346 | 1447 | } | |
| @@ -1353,6 +1454,8 @@ var xUtf8PointerToOffset func(string, string) int | |||
| 1353 | 1454 | // Since 2.10, this function allows @pos to be before @str, and returns | |
| 1354 | 1455 | // a negative offset in this case. | |
| 1355 | 1456 | func Utf8PointerToOffset(StrVar string, PosVar string) int { | |
| 1457 | + | core.LazyRegister(&xUtf8PointerToOffset, "GLIB", "g_utf8_pointer_to_offset", false) | |
| 1458 | + | ||
| 1356 | 1459 | cret := xUtf8PointerToOffset(StrVar, PosVar) | |
| 1357 | 1460 | return cret | |
| 1358 | 1461 | } | |
| @@ -1367,6 +1470,8 @@ var xUtf8PrevChar func(string) string | |||
| 1367 | 1470 | // character of the string, you must use [func@GLib.utf8_find_prev_char] | |
| 1368 | 1471 | // instead. | |
| 1369 | 1472 | func Utf8PrevChar(PVar string) string { | |
| 1473 | + | core.LazyRegister(&xUtf8PrevChar, "GLIB", "g_utf8_prev_char", false) | |
| 1474 | + | ||
| 1370 | 1475 | cret := xUtf8PrevChar(PVar) | |
| 1371 | 1476 | return cret | |
| 1372 | 1477 | } | |
| @@ -1378,6 +1483,8 @@ var xUtf8Strchr func(string, int, uint32) string | |||
| 1378 | 1483 | // | |
| 1379 | 1484 | // If @len is `-1`, allow unbounded search. | |
| 1380 | 1485 | func Utf8Strchr(PVar string, LenVar int, CVar uint32) string { | |
| 1486 | + | core.LazyRegister(&xUtf8Strchr, "GLIB", "g_utf8_strchr", false) | |
| 1487 | + | ||
| 1381 | 1488 | cret := xUtf8Strchr(PVar, LenVar, CVar) | |
| 1382 | 1489 | return cret | |
| 1383 | 1490 | } | |
| @@ -1389,6 +1496,8 @@ var xUtf8Strdown func(string, int) string | |||
| 1389 | 1496 | // on the current locale, and may result in the number of | |
| 1390 | 1497 | // characters in the string changing. | |
| 1391 | 1498 | func Utf8Strdown(StrVar string, LenVar int) string { | |
| 1499 | + | core.LazyRegister(&xUtf8Strdown, "GLIB", "g_utf8_strdown", false) | |
| 1500 | + | ||
| 1392 | 1501 | cret := xUtf8Strdown(StrVar, LenVar) | |
| 1393 | 1502 | return cret | |
| 1394 | 1503 | } | |
| @@ -1399,6 +1508,8 @@ var xUtf8Strlen func(string, int) int | |||
| 1399 | 1508 | // the terminating nul character. If the @max’th byte falls in the | |
| 1400 | 1509 | // middle of a character, the last (partial) character is not counted. | |
| 1401 | 1510 | func Utf8Strlen(PVar string, MaxVar int) int { | |
| 1511 | + | core.LazyRegister(&xUtf8Strlen, "GLIB", "g_utf8_strlen", false) | |
| 1512 | + | ||
| 1402 | 1513 | cret := xUtf8Strlen(PVar, MaxVar) | |
| 1403 | 1514 | return cret | |
| 1404 | 1515 | } | |
| @@ -1415,6 +1526,8 @@ var xUtf8Strncpy func(string, string, uint) string | |||
| 1415 | 1526 | // Note you must ensure @dest is at least 4 * @n + 1 to fit the | |
| 1416 | 1527 | // largest possible UTF-8 characters | |
| 1417 | 1528 | func Utf8Strncpy(DestVar string, SrcVar string, NVar uint) string { | |
| 1529 | + | core.LazyRegister(&xUtf8Strncpy, "GLIB", "g_utf8_strncpy", false) | |
| 1530 | + | ||
| 1418 | 1531 | cret := xUtf8Strncpy(DestVar, SrcVar, NVar) | |
| 1419 | 1532 | return cret | |
| 1420 | 1533 | } | |
| @@ -1426,6 +1539,8 @@ var xUtf8Strrchr func(string, int, uint32) string | |||
| 1426 | 1539 | // | |
| 1427 | 1540 | // If @len is `-1`, allow unbounded search. | |
| 1428 | 1541 | func Utf8Strrchr(PVar string, LenVar int, CVar uint32) string { | |
| 1542 | + | core.LazyRegister(&xUtf8Strrchr, "GLIB", "g_utf8_strrchr", false) | |
| 1543 | + | ||
| 1429 | 1544 | cret := xUtf8Strrchr(PVar, LenVar, CVar) | |
| 1430 | 1545 | return cret | |
| 1431 | 1546 | } | |
| @@ -1447,6 +1562,8 @@ var xUtf8Strreverse func(string, int) string | |||
| 1447 | 1562 | // newly-allocated memory, which should be freed with [func@GLib.free] when | |
| 1448 | 1563 | // no longer needed. | |
| 1449 | 1564 | func Utf8Strreverse(StrVar string, LenVar int) string { | |
| 1565 | + | core.LazyRegister(&xUtf8Strreverse, "GLIB", "g_utf8_strreverse", false) | |
| 1566 | + | ||
| 1450 | 1567 | cret := xUtf8Strreverse(StrVar, LenVar) | |
| 1451 | 1568 | return cret | |
| 1452 | 1569 | } | |
| @@ -1459,6 +1576,8 @@ var xUtf8Strup func(string, int) string | |||
| 1459 | 1576 | // characters in the string increasing. (For instance, the | |
| 1460 | 1577 | // German ess-zet will be changed to SS.) | |
| 1461 | 1578 | func Utf8Strup(StrVar string, LenVar int) string { | |
| 1579 | + | core.LazyRegister(&xUtf8Strup, "GLIB", "g_utf8_strup", false) | |
| 1580 | + | ||
| 1462 | 1581 | cret := xUtf8Strup(StrVar, LenVar) | |
| 1463 | 1582 | return cret | |
| 1464 | 1583 | } | |
| @@ -1471,6 +1590,8 @@ var xUtf8Substring func(string, int, int) string | |||
| 1471 | 1590 | // Since GLib 2.72, `-1` can be passed to @end_pos to indicate the | |
| 1472 | 1591 | // end of the string. | |
| 1473 | 1592 | func Utf8Substring(StrVar string, StartPosVar int, EndPosVar int) string { | |
| 1593 | + | core.LazyRegister(&xUtf8Substring, "GLIB", "g_utf8_substring", false) | |
| 1594 | + | ||
| 1474 | 1595 | cret := xUtf8Substring(StrVar, StartPosVar, EndPosVar) | |
| 1475 | 1596 | return cret | |
| 1476 | 1597 | } | |
| @@ -1482,6 +1603,7 @@ var xUtf8ToUcs4 func(string, int, *int, *int, **Error) uint32 | |||
| 1482 | 1603 | // A trailing nul character (U+0000) will be added to the string after the | |
| 1483 | 1604 | // converted text. | |
| 1484 | 1605 | func Utf8ToUcs4(StrVar string, LenVar int, ItemsReadVar *int, ItemsWrittenVar *int) (uint32, error) { | |
| 1606 | + | core.LazyRegister(&xUtf8ToUcs4, "GLIB", "g_utf8_to_ucs4", false) | |
| 1485 | 1607 | var cerr *Error | |
| 1486 | 1608 | ||
| 1487 | 1609 | cret := xUtf8ToUcs4(StrVar, LenVar, ItemsReadVar, ItemsWrittenVar, &cerr) | |
| @@ -1500,6 +1622,8 @@ var xUtf8ToUcs4Fast func(string, int, *int) uint32 | |||
| 1500 | 1622 | // but does no error checking on the input. A trailing nul character (U+0000) | |
| 1501 | 1623 | // will be added to the string after the converted text. | |
| 1502 | 1624 | func Utf8ToUcs4Fast(StrVar string, LenVar int, ItemsWrittenVar *int) uint32 { | |
| 1625 | + | core.LazyRegister(&xUtf8ToUcs4Fast, "GLIB", "g_utf8_to_ucs4_fast", false) | |
| 1626 | + | ||
| 1503 | 1627 | cret := xUtf8ToUcs4Fast(StrVar, LenVar, ItemsWrittenVar) | |
| 1504 | 1628 | return cret | |
| 1505 | 1629 | } | |
| @@ -1510,6 +1634,7 @@ var xUtf8ToUtf16 func(string, int, *int, *int, **Error) uint16 | |||
| 1510 | 1634 | // | |
| 1511 | 1635 | // A nul character (U+0000) will be added to the result after the converted text. | |
| 1512 | 1636 | func Utf8ToUtf16(StrVar string, LenVar int, ItemsReadVar *int, ItemsWrittenVar *int) (uint16, error) { | |
| 1637 | + | core.LazyRegister(&xUtf8ToUtf16, "GLIB", "g_utf8_to_utf16", false) | |
| 1513 | 1638 | var cerr *Error | |
| 1514 | 1639 | ||
| 1515 | 1640 | cret := xUtf8ToUtf16(StrVar, LenVar, ItemsReadVar, ItemsWrittenVar, &cerr) | |
| @@ -1527,6 +1652,8 @@ var xUtf8TruncateMiddle func(string, uint) string | |||
| 1527 | 1652 | // If @string is already short enough, this returns a copy of @string. | |
| 1528 | 1653 | // If @truncate_length is `0`, an empty string is returned. | |
| 1529 | 1654 | func Utf8TruncateMiddle(StringVar string, TruncateLengthVar uint) string { | |
| 1655 | + | core.LazyRegister(&xUtf8TruncateMiddle, "GLIB", "g_utf8_truncate_middle", false) | |
| 1656 | + | ||
| 1530 | 1657 | cret := xUtf8TruncateMiddle(StringVar, TruncateLengthVar) | |
| 1531 | 1658 | return cret | |
| 1532 | 1659 | } | |
| @@ -1551,6 +1678,8 @@ var xUtf8Validate func([]byte, int, *[]byte) bool | |||
| 1551 | 1678 | // or the network should be checked with `g_utf8_validate()` before | |
| 1552 | 1679 | // doing anything else with it. | |
| 1553 | 1680 | func Utf8Validate(StrVar []byte, MaxLenVar int, EndVar *[]byte) bool { | |
| 1681 | + | core.LazyRegister(&xUtf8Validate, "GLIB", "g_utf8_validate", false) | |
| 1682 | + | ||
| 1554 | 1683 | cret := xUtf8Validate(StrVar, MaxLenVar, EndVar) | |
| 1555 | 1684 | return cret | |
| 1556 | 1685 | } | |
| @@ -1562,6 +1691,8 @@ var xUtf8ValidateLen func([]byte, uint, *[]byte) bool | |||
| 1562 | 1691 | // As with [func@GLib.utf8_validate], but @max_len must be set, and hence this | |
| 1563 | 1692 | // function will always return `FALSE` if any of the bytes of @str are nul. | |
| 1564 | 1693 | func Utf8ValidateLen(StrVar []byte, MaxLenVar uint, EndVar *[]byte) bool { | |
| 1694 | + | core.LazyRegister(&xUtf8ValidateLen, "GLIB", "g_utf8_validate_len", false) | |
| 1695 | + | ||
| 1565 | 1696 | cret := xUtf8ValidateLen(StrVar, MaxLenVar, EndVar) | |
| 1566 | 1697 | return cret | |
| 1567 | 1698 | } | |
| @@ -1569,88 +1700,4 @@ func Utf8ValidateLen(StrVar []byte, MaxLenVar uint, EndVar *[]byte) bool { | |||
| 1569 | 1700 | func init() { | |
| 1570 | 1701 | core.SetPackageName("GLIB", "glib-2.0") | |
| 1571 | 1702 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | |
| 1572 | - | var libs []uintptr | |
| 1573 | - | for _, libPath := range core.GetPaths("GLIB") { | |
| 1574 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 1575 | - | if err != nil { | |
| 1576 | - | panic(err) | |
| 1577 | - | } | |
| 1578 | - | libs = append(libs, lib) | |
| 1579 | - | } | |
| 1580 | - | ||
| 1581 | - | core.PuregoSafeRegister(&xNormalizeModeGLibType, libs, "g_normalize_mode_get_type") | |
| 1582 | - | ||
| 1583 | - | core.PuregoSafeRegister(&xUnicodeBreakTypeGLibType, libs, "g_unicode_break_type_get_type") | |
| 1584 | - | ||
| 1585 | - | core.PuregoSafeRegister(&xUnicodeScriptGLibType, libs, "g_unicode_script_get_type") | |
| 1586 | - | ||
| 1587 | - | core.PuregoSafeRegister(&xUnicodeTypeGLibType, libs, "g_unicode_type_get_type") | |
| 1588 | - | ||
| 1589 | - | core.PuregoSafeRegister(&xUcs4ToUtf16, libs, "g_ucs4_to_utf16") | |
| 1590 | - | core.PuregoSafeRegister(&xUcs4ToUtf8, libs, "g_ucs4_to_utf8") | |
| 1591 | - | core.PuregoSafeRegister(&xUnicharBreakType, libs, "g_unichar_break_type") | |
| 1592 | - | core.PuregoSafeRegister(&xUnicharCombiningClass, libs, "g_unichar_combining_class") | |
| 1593 | - | core.PuregoSafeRegister(&xUnicharCompose, libs, "g_unichar_compose") | |
| 1594 | - | core.PuregoSafeRegister(&xUnicharDecompose, libs, "g_unichar_decompose") | |
| 1595 | - | core.PuregoSafeRegister(&xUnicharDigitValue, libs, "g_unichar_digit_value") | |
| 1596 | - | core.PuregoSafeRegister(&xUnicharFullyDecompose, libs, "g_unichar_fully_decompose") | |
| 1597 | - | core.PuregoSafeRegister(&xUnicharGetMirrorChar, libs, "g_unichar_get_mirror_char") | |
| 1598 | - | core.PuregoSafeRegister(&xUnicharGetScript, libs, "g_unichar_get_script") | |
| 1599 | - | core.PuregoSafeRegister(&xUnicharIsalnum, libs, "g_unichar_isalnum") | |
| 1600 | - | core.PuregoSafeRegister(&xUnicharIsalpha, libs, "g_unichar_isalpha") | |
| 1601 | - | core.PuregoSafeRegister(&xUnicharIscntrl, libs, "g_unichar_iscntrl") | |
| 1602 | - | core.PuregoSafeRegister(&xUnicharIsdefined, libs, "g_unichar_isdefined") | |
| 1603 | - | core.PuregoSafeRegister(&xUnicharIsdigit, libs, "g_unichar_isdigit") | |
| 1604 | - | core.PuregoSafeRegister(&xUnicharIsgraph, libs, "g_unichar_isgraph") | |
| 1605 | - | core.PuregoSafeRegister(&xUnicharIslower, libs, "g_unichar_islower") | |
| 1606 | - | core.PuregoSafeRegister(&xUnicharIsmark, libs, "g_unichar_ismark") | |
| 1607 | - | core.PuregoSafeRegister(&xUnicharIsprint, libs, "g_unichar_isprint") | |
| 1608 | - | core.PuregoSafeRegister(&xUnicharIspunct, libs, "g_unichar_ispunct") | |
| 1609 | - | core.PuregoSafeRegister(&xUnicharIsspace, libs, "g_unichar_isspace") | |
| 1610 | - | core.PuregoSafeRegister(&xUnicharIstitle, libs, "g_unichar_istitle") | |
| 1611 | - | core.PuregoSafeRegister(&xUnicharIsupper, libs, "g_unichar_isupper") | |
| 1612 | - | core.PuregoSafeRegister(&xUnicharIswide, libs, "g_unichar_iswide") | |
| 1613 | - | core.PuregoSafeRegister(&xUnicharIswideCjk, libs, "g_unichar_iswide_cjk") | |
| 1614 | - | core.PuregoSafeRegister(&xUnicharIsxdigit, libs, "g_unichar_isxdigit") | |
| 1615 | - | core.PuregoSafeRegister(&xUnicharIszerowidth, libs, "g_unichar_iszerowidth") | |
| 1616 | - | core.PuregoSafeRegister(&xUnicharToUtf8, libs, "g_unichar_to_utf8") | |
| 1617 | - | core.PuregoSafeRegister(&xUnicharTolower, libs, "g_unichar_tolower") | |
| 1618 | - | core.PuregoSafeRegister(&xUnicharTotitle, libs, "g_unichar_totitle") | |
| 1619 | - | core.PuregoSafeRegister(&xUnicharToupper, libs, "g_unichar_toupper") | |
| 1620 | - | core.PuregoSafeRegister(&xUnicharType, libs, "g_unichar_type") | |
| 1621 | - | core.PuregoSafeRegister(&xUnicharValidate, libs, "g_unichar_validate") | |
| 1622 | - | core.PuregoSafeRegister(&xUnicharXdigitValue, libs, "g_unichar_xdigit_value") | |
| 1623 | - | core.PuregoSafeRegister(&xUnicodeCanonicalDecomposition, libs, "g_unicode_canonical_decomposition") | |
| 1624 | - | core.PuregoSafeRegister(&xUnicodeCanonicalOrdering, libs, "g_unicode_canonical_ordering") | |
| 1625 | - | core.PuregoSafeRegister(&xUnicodeScriptFromIso15924, libs, "g_unicode_script_from_iso15924") | |
| 1626 | - | core.PuregoSafeRegister(&xUnicodeScriptToIso15924, libs, "g_unicode_script_to_iso15924") | |
| 1627 | - | core.PuregoSafeRegister(&xUtf16ToUcs4, libs, "g_utf16_to_ucs4") | |
| 1628 | - | core.PuregoSafeRegister(&xUtf16ToUtf8, libs, "g_utf16_to_utf8") | |
| 1629 | - | core.PuregoSafeRegister(&xUtf8Casefold, libs, "g_utf8_casefold") | |
| 1630 | - | core.PuregoSafeRegister(&xUtf8Collate, libs, "g_utf8_collate") | |
| 1631 | - | core.PuregoSafeRegister(&xUtf8CollateKey, libs, "g_utf8_collate_key") | |
| 1632 | - | core.PuregoSafeRegister(&xUtf8CollateKeyForFilename, libs, "g_utf8_collate_key_for_filename") | |
| 1633 | - | core.PuregoSafeRegister(&xUtf8FindNextChar, libs, "g_utf8_find_next_char") | |
| 1634 | - | core.PuregoSafeRegister(&xUtf8FindPrevChar, libs, "g_utf8_find_prev_char") | |
| 1635 | - | core.PuregoSafeRegister(&xUtf8GetChar, libs, "g_utf8_get_char") | |
| 1636 | - | core.PuregoSafeRegister(&xUtf8GetCharValidated, libs, "g_utf8_get_char_validated") | |
| 1637 | - | core.PuregoSafeRegister(&xUtf8MakeValid, libs, "g_utf8_make_valid") | |
| 1638 | - | core.PuregoSafeRegister(&xUtf8Normalize, libs, "g_utf8_normalize") | |
| 1639 | - | core.PuregoSafeRegister(&xUtf8OffsetToPointer, libs, "g_utf8_offset_to_pointer") | |
| 1640 | - | core.PuregoSafeRegister(&xUtf8PointerToOffset, libs, "g_utf8_pointer_to_offset") | |
| 1641 | - | core.PuregoSafeRegister(&xUtf8PrevChar, libs, "g_utf8_prev_char") | |
| 1642 | - | core.PuregoSafeRegister(&xUtf8Strchr, libs, "g_utf8_strchr") | |
| 1643 | - | core.PuregoSafeRegister(&xUtf8Strdown, libs, "g_utf8_strdown") | |
| 1644 | - | core.PuregoSafeRegister(&xUtf8Strlen, libs, "g_utf8_strlen") | |
| 1645 | - | core.PuregoSafeRegister(&xUtf8Strncpy, libs, "g_utf8_strncpy") | |
| 1646 | - | core.PuregoSafeRegister(&xUtf8Strrchr, libs, "g_utf8_strrchr") | |
| 1647 | - | core.PuregoSafeRegister(&xUtf8Strreverse, libs, "g_utf8_strreverse") | |
| 1648 | - | core.PuregoSafeRegister(&xUtf8Strup, libs, "g_utf8_strup") | |
| 1649 | - | core.PuregoSafeRegister(&xUtf8Substring, libs, "g_utf8_substring") | |
| 1650 | - | core.PuregoSafeRegister(&xUtf8ToUcs4, libs, "g_utf8_to_ucs4") | |
| 1651 | - | core.PuregoSafeRegister(&xUtf8ToUcs4Fast, libs, "g_utf8_to_ucs4_fast") | |
| 1652 | - | core.PuregoSafeRegister(&xUtf8ToUtf16, libs, "g_utf8_to_utf16") | |
| 1653 | - | core.PuregoSafeRegister(&xUtf8TruncateMiddle, libs, "g_utf8_truncate_middle") | |
| 1654 | - | core.PuregoSafeRegister(&xUtf8Validate, libs, "g_utf8_validate") | |
| 1655 | - | core.PuregoSafeRegister(&xUtf8ValidateLen, libs, "g_utf8_validate_len") | |
| 1656 | 1703 | } | |
| @@ -2,7 +2,6 @@ | |||||
| 2 | package glib | 2 | package glib | ||
| 3 | 3 | ||||
| 4 | import ( | 4 | import ( | ||
| 5 | - | "github.com/bnema/purego" | |||
| 6 | "github.com/bnema/puregotk/pkg/core" | 5 | "github.com/bnema/puregotk/pkg/core" | ||
| 7 | "github.com/bnema/puregotk/v4/gobject/types" | 6 | "github.com/bnema/puregotk/v4/gobject/types" | ||
| 8 | ) | 7 | ) | ||
| @@ -25,6 +24,7 @@ type NormalizeMode int | |||||
| 25 | var xNormalizeModeGLibType func() types.GType | 24 | var xNormalizeModeGLibType func() types.GType | ||
| 26 | 25 | ||||
| 27 | func NormalizeModeGLibType() types.GType { | 26 | func NormalizeModeGLibType() types.GType { | ||
| 27 | + | core.LazyRegister(&xNormalizeModeGLibType, "GLIB", "g_normalize_mode_get_type", false) | |||
| 28 | return xNormalizeModeGLibType() | 28 | return xNormalizeModeGLibType() | ||
| 29 | } | 29 | } | ||
| 30 | 30 | ||||
| @@ -66,6 +66,7 @@ type UnicodeBreakType int | |||||
| 66 | var xUnicodeBreakTypeGLibType func() types.GType | 66 | var xUnicodeBreakTypeGLibType func() types.GType | ||
| 67 | 67 | ||||
| 68 | func UnicodeBreakTypeGLibType() types.GType { | 68 | func UnicodeBreakTypeGLibType() types.GType { | ||
| 69 | + | core.LazyRegister(&xUnicodeBreakTypeGLibType, "GLIB", "g_unicode_break_type_get_type", false) | |||
| 69 | return xUnicodeBreakTypeGLibType() | 70 | return xUnicodeBreakTypeGLibType() | ||
| 70 | } | 71 | } | ||
| 71 | 72 | ||||
| @@ -186,6 +187,7 @@ type UnicodeScript int | |||||
| 186 | var xUnicodeScriptGLibType func() types.GType | 187 | var xUnicodeScriptGLibType func() types.GType | ||
| 187 | 188 | ||||
| 188 | func UnicodeScriptGLibType() types.GType { | 189 | func UnicodeScriptGLibType() types.GType { | ||
| 190 | + | core.LazyRegister(&xUnicodeScriptGLibType, "GLIB", "g_unicode_script_get_type", false) | |||
| 189 | return xUnicodeScriptGLibType() | 191 | return xUnicodeScriptGLibType() | ||
| 190 | } | 192 | } | ||
| 191 | 193 | ||||
| @@ -556,6 +558,7 @@ type UnicodeType int | |||||
| 556 | var xUnicodeTypeGLibType func() types.GType | 558 | var xUnicodeTypeGLibType func() types.GType | ||
| 557 | 559 | ||||
| 558 | func UnicodeTypeGLibType() types.GType { | 560 | func UnicodeTypeGLibType() types.GType { | ||
| 561 | + | core.LazyRegister(&xUnicodeTypeGLibType, "GLIB", "g_unicode_type_get_type", false) | |||
| 559 | return xUnicodeTypeGLibType() | 562 | return xUnicodeTypeGLibType() | ||
| 560 | } | 563 | } | ||
| 561 | 564 | ||||
| @@ -629,6 +632,7 @@ var xUcs4ToUtf16 func([]uint32, int, *int, *int, **Error) uint16 | |||||
| 629 | // | 632 | // | ||
| 630 | // A nul character (U+0000) will be added to the result after the converted text. | 633 | // A nul character (U+0000) will be added to the result after the converted text. | ||
| 631 | func Ucs4ToUtf16(StrVar []uint32, LenVar int, ItemsReadVar *int, ItemsWrittenVar *int) (uint16, error) { | 634 | func Ucs4ToUtf16(StrVar []uint32, LenVar int, ItemsReadVar *int, ItemsWrittenVar *int) (uint16, error) { | ||
| 635 | + | core.LazyRegister(&xUcs4ToUtf16, "GLIB", "g_ucs4_to_utf16", false) | |||
| 632 | var cerr *Error | 636 | var cerr *Error | ||
| 633 | 637 | ||||
| 634 | cret := xUcs4ToUtf16(StrVar, LenVar, ItemsReadVar, ItemsWrittenVar, &cerr) | 638 | cret := xUcs4ToUtf16(StrVar, LenVar, ItemsReadVar, ItemsWrittenVar, &cerr) | ||
| @@ -645,6 +649,7 @@ var xUcs4ToUtf8 func([]uint32, int, *int, *int, **Error) string | |||||
| 645 | // | 649 | // | ||
| 646 | // The result will be terminated with a nul byte. | 650 | // The result will be terminated with a nul byte. | ||
| 647 | func Ucs4ToUtf8(StrVar []uint32, LenVar int, ItemsReadVar *int, ItemsWrittenVar *int) (string, error) { | 651 | func Ucs4ToUtf8(StrVar []uint32, LenVar int, ItemsReadVar *int, ItemsWrittenVar *int) (string, error) { | ||
| 652 | + | core.LazyRegister(&xUcs4ToUtf8, "GLIB", "g_ucs4_to_utf8", false) | |||
| 648 | var cerr *Error | 653 | var cerr *Error | ||
| 649 | 654 | ||||
| 650 | cret := xUcs4ToUtf8(StrVar, LenVar, ItemsReadVar, ItemsWrittenVar, &cerr) | 655 | cret := xUcs4ToUtf8(StrVar, LenVar, ItemsReadVar, ItemsWrittenVar, &cerr) | ||
| @@ -663,6 +668,8 @@ var xUnicharBreakType func(uint32) UnicodeBreakType | |||||
| 663 | // resolution algorithms and normally you would use a function such | 668 | // resolution algorithms and normally you would use a function such | ||
| 664 | // as pango_break() instead of caring about break types yourself. | 669 | // as pango_break() instead of caring about break types yourself. | ||
| 665 | func UnicharBreakType(CVar uint32) UnicodeBreakType { | 670 | func UnicharBreakType(CVar uint32) UnicodeBreakType { | ||
| 671 | + | core.LazyRegister(&xUnicharBreakType, "GLIB", "g_unichar_break_type", false) | |||
| 672 | + | ||||
| 666 | cret := xUnicharBreakType(CVar) | 673 | cret := xUnicharBreakType(CVar) | ||
| 667 | return cret | 674 | return cret | ||
| 668 | } | 675 | } | ||
| @@ -671,6 +678,8 @@ var xUnicharCombiningClass func(uint32) int | |||||
| 671 | 678 | ||||
| 672 | // Determines the canonical combining class of a Unicode character. | 679 | // Determines the canonical combining class of a Unicode character. | ||
| 673 | func UnicharCombiningClass(UcVar uint32) int { | 680 | func UnicharCombiningClass(UcVar uint32) int { | ||
| 681 | + | core.LazyRegister(&xUnicharCombiningClass, "GLIB", "g_unichar_combining_class", false) | |||
| 682 | + | ||||
| 674 | cret := xUnicharCombiningClass(UcVar) | 683 | cret := xUnicharCombiningClass(UcVar) | ||
| 675 | return cret | 684 | return cret | ||
| 676 | } | 685 | } | ||
| @@ -694,6 +703,8 @@ var xUnicharCompose func(uint32, uint32, *uint32) bool | |||||
| 694 | // [UAX#15](http://unicode.org/reports/tr15/) | 703 | // [UAX#15](http://unicode.org/reports/tr15/) | ||
| 695 | // for details. | 704 | // for details. | ||
| 696 | func UnicharCompose(AVar uint32, BVar uint32, ChVar *uint32) bool { | 705 | func UnicharCompose(AVar uint32, BVar uint32, ChVar *uint32) bool { | ||
| 706 | + | core.LazyRegister(&xUnicharCompose, "GLIB", "g_unichar_compose", false) | |||
| 707 | + | ||||
| 697 | cret := xUnicharCompose(AVar, BVar, ChVar) | 708 | cret := xUnicharCompose(AVar, BVar, ChVar) | ||
| 698 | return cret | 709 | return cret | ||
| 699 | } | 710 | } | ||
| @@ -724,6 +735,8 @@ var xUnicharDecompose func(uint32, *uint32, *uint32) bool | |||||
| 724 | // [UAX#15](http://unicode.org/reports/tr15/) | 735 | // [UAX#15](http://unicode.org/reports/tr15/) | ||
| 725 | // for details. | 736 | // for details. | ||
| 726 | func UnicharDecompose(ChVar uint32, AVar *uint32, BVar *uint32) bool { | 737 | func UnicharDecompose(ChVar uint32, AVar *uint32, BVar *uint32) bool { | ||
| 738 | + | core.LazyRegister(&xUnicharDecompose, "GLIB", "g_unichar_decompose", false) | |||
| 739 | + | ||||
| 727 | cret := xUnicharDecompose(ChVar, AVar, BVar) | 740 | cret := xUnicharDecompose(ChVar, AVar, BVar) | ||
| 728 | return cret | 741 | return cret | ||
| 729 | } | 742 | } | ||
| @@ -733,6 +746,8 @@ var xUnicharDigitValue func(uint32) int | |||||
| 733 | // Determines the numeric value of a character as a decimal | 746 | // Determines the numeric value of a character as a decimal | ||
| 734 | // digit. | 747 | // digit. | ||
| 735 | func UnicharDigitValue(CVar uint32) int { | 748 | func UnicharDigitValue(CVar uint32) int { | ||
| 749 | + | core.LazyRegister(&xUnicharDigitValue, "GLIB", "g_unichar_digit_value", false) | |||
| 750 | + | ||||
| 736 | cret := xUnicharDigitValue(CVar) | 751 | cret := xUnicharDigitValue(CVar) | ||
| 737 | return cret | 752 | return cret | ||
| 738 | } | 753 | } | ||
| @@ -759,6 +774,8 @@ var xUnicharFullyDecompose func(uint32, bool, *uint32, uint) uint | |||||
| 759 | // [UAX#15](http://unicode.org/reports/tr15/) | 774 | // [UAX#15](http://unicode.org/reports/tr15/) | ||
| 760 | // for details. | 775 | // for details. | ||
| 761 | func UnicharFullyDecompose(ChVar uint32, CompatVar bool, ResultVar *uint32, ResultLenVar uint) uint { | 776 | func UnicharFullyDecompose(ChVar uint32, CompatVar bool, ResultVar *uint32, ResultLenVar uint) uint { | ||
| 777 | + | core.LazyRegister(&xUnicharFullyDecompose, "GLIB", "g_unichar_fully_decompose", false) | |||
| 778 | + | ||||
| 762 | cret := xUnicharFullyDecompose(ChVar, CompatVar, ResultVar, ResultLenVar) | 779 | cret := xUnicharFullyDecompose(ChVar, CompatVar, ResultVar, ResultLenVar) | ||
| 763 | return cret | 780 | return cret | ||
| 764 | } | 781 | } | ||
| @@ -775,6 +792,8 @@ var xUnicharGetMirrorChar func(uint32, *uint32) bool | |||||
| 775 | // glyph and @mirrored_ch is set, it puts that character in the address | 792 | // glyph and @mirrored_ch is set, it puts that character in the address | ||
| 776 | // pointed to by @mirrored_ch. Otherwise the original character is put. | 793 | // pointed to by @mirrored_ch. Otherwise the original character is put. | ||
| 777 | func UnicharGetMirrorChar(ChVar uint32, MirroredChVar *uint32) bool { | 794 | func UnicharGetMirrorChar(ChVar uint32, MirroredChVar *uint32) bool { | ||
| 795 | + | core.LazyRegister(&xUnicharGetMirrorChar, "GLIB", "g_unichar_get_mirror_char", false) | |||
| 796 | + | ||||
| 778 | cret := xUnicharGetMirrorChar(ChVar, MirroredChVar) | 797 | cret := xUnicharGetMirrorChar(ChVar, MirroredChVar) | ||
| 779 | return cret | 798 | return cret | ||
| 780 | } | 799 | } | ||
| @@ -789,6 +808,8 @@ var xUnicharGetScript func(uint32) UnicodeScript | |||||
| 789 | // This function is equivalent to pango_script_for_unichar() and the | 808 | // This function is equivalent to pango_script_for_unichar() and the | ||
| 790 | // two are interchangeable. | 809 | // two are interchangeable. | ||
| 791 | func UnicharGetScript(ChVar uint32) UnicodeScript { | 810 | func UnicharGetScript(ChVar uint32) UnicodeScript { | ||
| 811 | + | core.LazyRegister(&xUnicharGetScript, "GLIB", "g_unichar_get_script", false) | |||
| 812 | + | ||||
| 792 | cret := xUnicharGetScript(ChVar) | 813 | cret := xUnicharGetScript(ChVar) | ||
| 793 | return cret | 814 | return cret | ||
| 794 | } | 815 | } | ||
| @@ -799,6 +820,8 @@ var xUnicharIsalnum func(uint32) bool | |||||
| 799 | // Given some UTF-8 text, obtain a character value | 820 | // Given some UTF-8 text, obtain a character value | ||
| 800 | // with g_utf8_get_char(). | 821 | // with g_utf8_get_char(). | ||
| 801 | func UnicharIsalnum(CVar uint32) bool { | 822 | func UnicharIsalnum(CVar uint32) bool { | ||
| 823 | + | core.LazyRegister(&xUnicharIsalnum, "GLIB", "g_unichar_isalnum", false) | |||
| 824 | + | ||||
| 802 | cret := xUnicharIsalnum(CVar) | 825 | cret := xUnicharIsalnum(CVar) | ||
| 803 | return cret | 826 | return cret | ||
| 804 | } | 827 | } | ||
| @@ -809,6 +832,8 @@ var xUnicharIsalpha func(uint32) bool | |||||
| 809 | // Given some UTF-8 text, obtain a character value with | 832 | // Given some UTF-8 text, obtain a character value with | ||
| 810 | // g_utf8_get_char(). | 833 | // g_utf8_get_char(). | ||
| 811 | func UnicharIsalpha(CVar uint32) bool { | 834 | func UnicharIsalpha(CVar uint32) bool { | ||
| 835 | + | core.LazyRegister(&xUnicharIsalpha, "GLIB", "g_unichar_isalpha", false) | |||
| 836 | + | ||||
| 812 | cret := xUnicharIsalpha(CVar) | 837 | cret := xUnicharIsalpha(CVar) | ||
| 813 | return cret | 838 | return cret | ||
| 814 | } | 839 | } | ||
| @@ -819,6 +844,8 @@ var xUnicharIscntrl func(uint32) bool | |||||
| 819 | // Given some UTF-8 text, obtain a character value with | 844 | // Given some UTF-8 text, obtain a character value with | ||
| 820 | // g_utf8_get_char(). | 845 | // g_utf8_get_char(). | ||
| 821 | func UnicharIscntrl(CVar uint32) bool { | 846 | func UnicharIscntrl(CVar uint32) bool { | ||
| 847 | + | core.LazyRegister(&xUnicharIscntrl, "GLIB", "g_unichar_iscntrl", false) | |||
| 848 | + | ||||
| 822 | cret := xUnicharIscntrl(CVar) | 849 | cret := xUnicharIscntrl(CVar) | ||
| 823 | return cret | 850 | return cret | ||
| 824 | } | 851 | } | ||
| @@ -828,6 +855,8 @@ var xUnicharIsdefined func(uint32) bool | |||||
| 828 | // Determines if a given character is assigned in the Unicode | 855 | // Determines if a given character is assigned in the Unicode | ||
| 829 | // standard. | 856 | // standard. | ||
| 830 | func UnicharIsdefined(CVar uint32) bool { | 857 | func UnicharIsdefined(CVar uint32) bool { | ||
| 858 | + | core.LazyRegister(&xUnicharIsdefined, "GLIB", "g_unichar_isdefined", false) | |||
| 859 | + | ||||
| 831 | cret := xUnicharIsdefined(CVar) | 860 | cret := xUnicharIsdefined(CVar) | ||
| 832 | return cret | 861 | return cret | ||
| 833 | } | 862 | } | ||
| @@ -838,6 +867,8 @@ var xUnicharIsdigit func(uint32) bool | |||||
| 838 | // covers ASCII 0-9 and also digits in other languages/scripts. Given | 867 | // covers ASCII 0-9 and also digits in other languages/scripts. Given | ||
| 839 | // some UTF-8 text, obtain a character value with g_utf8_get_char(). | 868 | // some UTF-8 text, obtain a character value with g_utf8_get_char(). | ||
| 840 | func UnicharIsdigit(CVar uint32) bool { | 869 | func UnicharIsdigit(CVar uint32) bool { | ||
| 870 | + | core.LazyRegister(&xUnicharIsdigit, "GLIB", "g_unichar_isdigit", false) | |||
| 871 | + | ||||
| 841 | cret := xUnicharIsdigit(CVar) | 872 | cret := xUnicharIsdigit(CVar) | ||
| 842 | return cret | 873 | return cret | ||
| 843 | } | 874 | } | ||
| @@ -850,6 +881,8 @@ var xUnicharIsgraph func(uint32) bool | |||||
| 850 | // spaces. Given some UTF-8 text, obtain a character value with | 881 | // spaces. Given some UTF-8 text, obtain a character value with | ||
| 851 | // g_utf8_get_char(). | 882 | // g_utf8_get_char(). | ||
| 852 | func UnicharIsgraph(CVar uint32) bool { | 883 | func UnicharIsgraph(CVar uint32) bool { | ||
| 884 | + | core.LazyRegister(&xUnicharIsgraph, "GLIB", "g_unichar_isgraph", false) | |||
| 885 | + | ||||
| 853 | cret := xUnicharIsgraph(CVar) | 886 | cret := xUnicharIsgraph(CVar) | ||
| 854 | return cret | 887 | return cret | ||
| 855 | } | 888 | } | ||
| @@ -860,6 +893,8 @@ var xUnicharIslower func(uint32) bool | |||||
| 860 | // Given some UTF-8 text, obtain a character value with | 893 | // Given some UTF-8 text, obtain a character value with | ||
| 861 | // g_utf8_get_char(). | 894 | // g_utf8_get_char(). | ||
| 862 | func UnicharIslower(CVar uint32) bool { | 895 | func UnicharIslower(CVar uint32) bool { | ||
| 896 | + | core.LazyRegister(&xUnicharIslower, "GLIB", "g_unichar_islower", false) | |||
| 897 | + | ||||
| 863 | cret := xUnicharIslower(CVar) | 898 | cret := xUnicharIslower(CVar) | ||
| 864 | return cret | 899 | return cret | ||
| 865 | } | 900 | } | ||
| @@ -876,6 +911,8 @@ var xUnicharIsmark func(uint32) bool | |||||
| 876 | // for writing most European languages as well as many non-Latin | 911 | // for writing most European languages as well as many non-Latin | ||
| 877 | // scripts. | 912 | // scripts. | ||
| 878 | func UnicharIsmark(CVar uint32) bool { | 913 | func UnicharIsmark(CVar uint32) bool { | ||
| 914 | + | core.LazyRegister(&xUnicharIsmark, "GLIB", "g_unichar_ismark", false) | |||
| 915 | + | ||||
| 879 | cret := xUnicharIsmark(CVar) | 916 | cret := xUnicharIsmark(CVar) | ||
| 880 | return cret | 917 | return cret | ||
| 881 | } | 918 | } | ||
| @@ -887,6 +924,8 @@ var xUnicharIsprint func(uint32) bool | |||||
| 887 | // Given some UTF-8 text, obtain a character value with | 924 | // Given some UTF-8 text, obtain a character value with | ||
| 888 | // g_utf8_get_char(). | 925 | // g_utf8_get_char(). | ||
| 889 | func UnicharIsprint(CVar uint32) bool { | 926 | func UnicharIsprint(CVar uint32) bool { | ||
| 927 | + | core.LazyRegister(&xUnicharIsprint, "GLIB", "g_unichar_isprint", false) | |||
| 928 | + | ||||
| 890 | cret := xUnicharIsprint(CVar) | 929 | cret := xUnicharIsprint(CVar) | ||
| 891 | return cret | 930 | return cret | ||
| 892 | } | 931 | } | ||
| @@ -897,6 +936,8 @@ var xUnicharIspunct func(uint32) bool | |||||
| 897 | // Given some UTF-8 text, obtain a character value with | 936 | // Given some UTF-8 text, obtain a character value with | ||
| 898 | // g_utf8_get_char(). | 937 | // g_utf8_get_char(). | ||
| 899 | func UnicharIspunct(CVar uint32) bool { | 938 | func UnicharIspunct(CVar uint32) bool { | ||
| 939 | + | core.LazyRegister(&xUnicharIspunct, "GLIB", "g_unichar_ispunct", false) | |||
| 940 | + | ||||
| 900 | cret := xUnicharIspunct(CVar) | 941 | cret := xUnicharIspunct(CVar) | ||
| 901 | return cret | 942 | return cret | ||
| 902 | } | 943 | } | ||
| @@ -911,6 +952,8 @@ var xUnicharIsspace func(uint32) bool | |||||
| 911 | // Pango or equivalent to get word breaking right, the algorithm | 952 | // Pango or equivalent to get word breaking right, the algorithm | ||
| 912 | // is fairly complex.) | 953 | // is fairly complex.) | ||
| 913 | func UnicharIsspace(CVar uint32) bool { | 954 | func UnicharIsspace(CVar uint32) bool { | ||
| 955 | + | core.LazyRegister(&xUnicharIsspace, "GLIB", "g_unichar_isspace", false) | |||
| 956 | + | ||||
| 914 | cret := xUnicharIsspace(CVar) | 957 | cret := xUnicharIsspace(CVar) | ||
| 915 | return cret | 958 | return cret | ||
| 916 | } | 959 | } | ||
| @@ -924,6 +967,8 @@ var xUnicharIstitle func(uint32) bool | |||||
| 924 | // first letter is capitalized. The titlecase form of the DZ | 967 | // first letter is capitalized. The titlecase form of the DZ | ||
| 925 | // digraph is U+01F2 LATIN CAPITAL LETTTER D WITH SMALL LETTER Z. | 968 | // digraph is U+01F2 LATIN CAPITAL LETTTER D WITH SMALL LETTER Z. | ||
| 926 | func UnicharIstitle(CVar uint32) bool { | 969 | func UnicharIstitle(CVar uint32) bool { | ||
| 970 | + | core.LazyRegister(&xUnicharIstitle, "GLIB", "g_unichar_istitle", false) | |||
| 971 | + | ||||
| 927 | cret := xUnicharIstitle(CVar) | 972 | cret := xUnicharIstitle(CVar) | ||
| 928 | return cret | 973 | return cret | ||
| 929 | } | 974 | } | ||
| @@ -932,6 +977,8 @@ var xUnicharIsupper func(uint32) bool | |||||
| 932 | 977 | ||||
| 933 | // Determines if a character is uppercase. | 978 | // Determines if a character is uppercase. | ||
| 934 | func UnicharIsupper(CVar uint32) bool { | 979 | func UnicharIsupper(CVar uint32) bool { | ||
| 980 | + | core.LazyRegister(&xUnicharIsupper, "GLIB", "g_unichar_isupper", false) | |||
| 981 | + | ||||
| 935 | cret := xUnicharIsupper(CVar) | 982 | cret := xUnicharIsupper(CVar) | ||
| 936 | return cret | 983 | return cret | ||
| 937 | } | 984 | } | ||
| @@ -941,6 +988,8 @@ var xUnicharIswide func(uint32) bool | |||||
| 941 | // Determines if a character is typically rendered in a double-width | 988 | // Determines if a character is typically rendered in a double-width | ||
| 942 | // cell. | 989 | // cell. | ||
| 943 | func UnicharIswide(CVar uint32) bool { | 990 | func UnicharIswide(CVar uint32) bool { | ||
| 991 | + | core.LazyRegister(&xUnicharIswide, "GLIB", "g_unichar_iswide", false) | |||
| 992 | + | ||||
| 944 | cret := xUnicharIswide(CVar) | 993 | cret := xUnicharIswide(CVar) | ||
| 945 | return cret | 994 | return cret | ||
| 946 | } | 995 | } | ||
| @@ -958,6 +1007,8 @@ var xUnicharIswideCjk func(uint32) bool | |||||
| 958 | // this test, but not the other way around. Note that some characters may | 1007 | // this test, but not the other way around. Note that some characters may | ||
| 959 | // pass both this test and g_unichar_iszerowidth(). | 1008 | // pass both this test and g_unichar_iszerowidth(). | ||
| 960 | func UnicharIswideCjk(CVar uint32) bool { | 1009 | func UnicharIswideCjk(CVar uint32) bool { | ||
| 1010 | + | core.LazyRegister(&xUnicharIswideCjk, "GLIB", "g_unichar_iswide_cjk", false) | |||
| 1011 | + | ||||
| 961 | cret := xUnicharIswideCjk(CVar) | 1012 | cret := xUnicharIswideCjk(CVar) | ||
| 962 | return cret | 1013 | return cret | ||
| 963 | } | 1014 | } | ||
| @@ -966,6 +1017,8 @@ var xUnicharIsxdigit func(uint32) bool | |||||
| 966 | 1017 | ||||
| 967 | // Determines if a character is a hexadecimal digit. | 1018 | // Determines if a character is a hexadecimal digit. | ||
| 968 | func UnicharIsxdigit(CVar uint32) bool { | 1019 | func UnicharIsxdigit(CVar uint32) bool { | ||
| 1020 | + | core.LazyRegister(&xUnicharIsxdigit, "GLIB", "g_unichar_isxdigit", false) | |||
| 1021 | + | ||||
| 969 | cret := xUnicharIsxdigit(CVar) | 1022 | cret := xUnicharIsxdigit(CVar) | ||
| 970 | return cret | 1023 | return cret | ||
| 971 | } | 1024 | } | ||
| @@ -982,6 +1035,8 @@ var xUnicharIszerowidth func(uint32) bool | |||||
| 982 | // when displayed on a grid display (terminals). However, note that not all | 1035 | // when displayed on a grid display (terminals). However, note that not all | ||
| 983 | // terminals support zero-width rendering of zero-width marks. | 1036 | // terminals support zero-width rendering of zero-width marks. | ||
| 984 | func UnicharIszerowidth(CVar uint32) bool { | 1037 | func UnicharIszerowidth(CVar uint32) bool { | ||
| 1038 | + | core.LazyRegister(&xUnicharIszerowidth, "GLIB", "g_unichar_iszerowidth", false) | |||
| 1039 | + | ||||
| 985 | cret := xUnicharIszerowidth(CVar) | 1040 | cret := xUnicharIszerowidth(CVar) | ||
| 986 | return cret | 1041 | return cret | ||
| 987 | } | 1042 | } | ||
| @@ -990,6 +1045,8 @@ var xUnicharToUtf8 func(uint32, *string) int | |||||
| 990 | 1045 | ||||
| 991 | // Converts a single character to UTF-8. | 1046 | // Converts a single character to UTF-8. | ||
| 992 | func UnicharToUtf8(CVar uint32, OutbufVar *string) int { | 1047 | func UnicharToUtf8(CVar uint32, OutbufVar *string) int { | ||
| 1048 | + | core.LazyRegister(&xUnicharToUtf8, "GLIB", "g_unichar_to_utf8", false) | |||
| 1049 | + | ||||
| 993 | cret := xUnicharToUtf8(CVar, OutbufVar) | 1050 | cret := xUnicharToUtf8(CVar, OutbufVar) | ||
| 994 | return cret | 1051 | return cret | ||
| 995 | } | 1052 | } | ||
| @@ -998,6 +1055,8 @@ var xUnicharTolower func(uint32) uint32 | |||||
| 998 | 1055 | ||||
| 999 | // Converts a character to lower case. | 1056 | // Converts a character to lower case. | ||
| 1000 | func UnicharTolower(CVar uint32) uint32 { | 1057 | func UnicharTolower(CVar uint32) uint32 { | ||
| 1058 | + | core.LazyRegister(&xUnicharTolower, "GLIB", "g_unichar_tolower", false) | |||
| 1059 | + | ||||
| 1001 | cret := xUnicharTolower(CVar) | 1060 | cret := xUnicharTolower(CVar) | ||
| 1002 | return cret | 1061 | return cret | ||
| 1003 | } | 1062 | } | ||
| @@ -1006,6 +1065,8 @@ var xUnicharTotitle func(uint32) uint32 | |||||
| 1006 | 1065 | ||||
| 1007 | // Converts a character to the titlecase. | 1066 | // Converts a character to the titlecase. | ||
| 1008 | func UnicharTotitle(CVar uint32) uint32 { | 1067 | func UnicharTotitle(CVar uint32) uint32 { | ||
| 1068 | + | core.LazyRegister(&xUnicharTotitle, "GLIB", "g_unichar_totitle", false) | |||
| 1069 | + | ||||
| 1009 | cret := xUnicharTotitle(CVar) | 1070 | cret := xUnicharTotitle(CVar) | ||
| 1010 | return cret | 1071 | return cret | ||
| 1011 | } | 1072 | } | ||
| @@ -1014,6 +1075,8 @@ var xUnicharToupper func(uint32) uint32 | |||||
| 1014 | 1075 | ||||
| 1015 | // Converts a character to uppercase. | 1076 | // Converts a character to uppercase. | ||
| 1016 | func UnicharToupper(CVar uint32) uint32 { | 1077 | func UnicharToupper(CVar uint32) uint32 { | ||
| 1078 | + | core.LazyRegister(&xUnicharToupper, "GLIB", "g_unichar_toupper", false) | |||
| 1079 | + | ||||
| 1017 | cret := xUnicharToupper(CVar) | 1080 | cret := xUnicharToupper(CVar) | ||
| 1018 | return cret | 1081 | return cret | ||
| 1019 | } | 1082 | } | ||
| @@ -1022,6 +1085,8 @@ var xUnicharType func(uint32) UnicodeType | |||||
| 1022 | 1085 | ||||
| 1023 | // Classifies a Unicode character by type. | 1086 | // Classifies a Unicode character by type. | ||
| 1024 | func UnicharType(CVar uint32) UnicodeType { | 1087 | func UnicharType(CVar uint32) UnicodeType { | ||
| 1088 | + | core.LazyRegister(&xUnicharType, "GLIB", "g_unichar_type", false) | |||
| 1089 | + | ||||
| 1025 | cret := xUnicharType(CVar) | 1090 | cret := xUnicharType(CVar) | ||
| 1026 | return cret | 1091 | return cret | ||
| 1027 | } | 1092 | } | ||
| @@ -1033,6 +1098,8 @@ var xUnicharValidate func(uint32) bool | |||||
| 1033 | // Some possible integer values of @ch will not be valid. U+0000 is considered a | 1098 | // Some possible integer values of @ch will not be valid. U+0000 is considered a | ||
| 1034 | // valid character, though it’s normally a string terminator. | 1099 | // valid character, though it’s normally a string terminator. | ||
| 1035 | func UnicharValidate(ChVar uint32) bool { | 1100 | func UnicharValidate(ChVar uint32) bool { | ||
| 1101 | + | core.LazyRegister(&xUnicharValidate, "GLIB", "g_unichar_validate", false) | |||
| 1102 | + | ||||
| 1036 | cret := xUnicharValidate(ChVar) | 1103 | cret := xUnicharValidate(ChVar) | ||
| 1037 | return cret | 1104 | return cret | ||
| 1038 | } | 1105 | } | ||
| @@ -1042,6 +1109,8 @@ var xUnicharXdigitValue func(uint32) int | |||||
| 1042 | // Determines the numeric value of a character as a hexadecimal | 1109 | // Determines the numeric value of a character as a hexadecimal | ||
| 1043 | // digit. | 1110 | // digit. | ||
| 1044 | func UnicharXdigitValue(CVar uint32) int { | 1111 | func UnicharXdigitValue(CVar uint32) int { | ||
| 1112 | + | core.LazyRegister(&xUnicharXdigitValue, "GLIB", "g_unichar_xdigit_value", false) | |||
| 1113 | + | ||||
| 1045 | cret := xUnicharXdigitValue(CVar) | 1114 | cret := xUnicharXdigitValue(CVar) | ||
| 1046 | return cret | 1115 | return cret | ||
| 1047 | } | 1116 | } | ||
| @@ -1050,6 +1119,8 @@ var xUnicodeCanonicalDecomposition func(uint32, uint) uint32 | |||||
| 1050 | 1119 | ||||
| 1051 | // Computes the canonical decomposition of a Unicode character. | 1120 | // Computes the canonical decomposition of a Unicode character. | ||
| 1052 | func UnicodeCanonicalDecomposition(ChVar uint32, ResultLenVar uint) uint32 { | 1121 | func UnicodeCanonicalDecomposition(ChVar uint32, ResultLenVar uint) uint32 { | ||
| 1122 | + | core.LazyRegister(&xUnicodeCanonicalDecomposition, "GLIB", "g_unicode_canonical_decomposition", false) | |||
| 1123 | + | ||||
| 1053 | cret := xUnicodeCanonicalDecomposition(ChVar, ResultLenVar) | 1124 | cret := xUnicodeCanonicalDecomposition(ChVar, ResultLenVar) | ||
| 1054 | return cret | 1125 | return cret | ||
| 1055 | } | 1126 | } | ||
| @@ -1061,6 +1132,8 @@ var xUnicodeCanonicalOrdering func([]uint32, uint) | |||||
| 1061 | // according to their combining classes. See the Unicode | 1132 | // according to their combining classes. See the Unicode | ||
| 1062 | // manual for more information. | 1133 | // manual for more information. | ||
| 1063 | func UnicodeCanonicalOrdering(StringVar []uint32, LenVar uint) { | 1134 | func UnicodeCanonicalOrdering(StringVar []uint32, LenVar uint) { | ||
| 1135 | + | core.LazyRegister(&xUnicodeCanonicalOrdering, "GLIB", "g_unicode_canonical_ordering", false) | |||
| 1136 | + | ||||
| 1064 | xUnicodeCanonicalOrdering(StringVar, LenVar) | 1137 | xUnicodeCanonicalOrdering(StringVar, LenVar) | ||
| 1065 | } | 1138 | } | ||
| 1066 | 1139 | ||||
| @@ -1076,6 +1149,8 @@ var xUnicodeScriptFromIso15924 func(uint32) UnicodeScript | |||||
| 1076 | // [Codes for the representation of names of scripts](http://unicode.org/iso15924/codelists.html) | 1149 | // [Codes for the representation of names of scripts](http://unicode.org/iso15924/codelists.html) | ||
| 1077 | // for details. | 1150 | // for details. | ||
| 1078 | func UnicodeScriptFromIso15924(Iso15924Var uint32) UnicodeScript { | 1151 | func UnicodeScriptFromIso15924(Iso15924Var uint32) UnicodeScript { | ||
| 1152 | + | core.LazyRegister(&xUnicodeScriptFromIso15924, "GLIB", "g_unicode_script_from_iso15924", false) | |||
| 1153 | + | ||||
| 1079 | cret := xUnicodeScriptFromIso15924(Iso15924Var) | 1154 | cret := xUnicodeScriptFromIso15924(Iso15924Var) | ||
| 1080 | return cret | 1155 | return cret | ||
| 1081 | } | 1156 | } | ||
| @@ -1092,6 +1167,8 @@ var xUnicodeScriptToIso15924 func(UnicodeScript) uint32 | |||||
| 1092 | // [Codes for the representation of names of scripts](http://unicode.org/iso15924/codelists.html) | 1167 | // [Codes for the representation of names of scripts](http://unicode.org/iso15924/codelists.html) | ||
| 1093 | // for details. | 1168 | // for details. | ||
| 1094 | func UnicodeScriptToIso15924(ScriptVar UnicodeScript) uint32 { | 1169 | func UnicodeScriptToIso15924(ScriptVar UnicodeScript) uint32 { | ||
| 1170 | + | core.LazyRegister(&xUnicodeScriptToIso15924, "GLIB", "g_unicode_script_to_iso15924", false) | |||
| 1171 | + | ||||
| 1095 | cret := xUnicodeScriptToIso15924(ScriptVar) | 1172 | cret := xUnicodeScriptToIso15924(ScriptVar) | ||
| 1096 | return cret | 1173 | return cret | ||
| 1097 | } | 1174 | } | ||
| @@ -1102,6 +1179,7 @@ var xUtf16ToUcs4 func([]uint16, int, *int, *int, **Error) uint32 | |||||
| 1102 | // | 1179 | // | ||
| 1103 | // The result will be nul-terminated. | 1180 | // The result will be nul-terminated. | ||
| 1104 | func Utf16ToUcs4(StrVar []uint16, LenVar int, ItemsReadVar *int, ItemsWrittenVar *int) (uint32, error) { | 1181 | func Utf16ToUcs4(StrVar []uint16, LenVar int, ItemsReadVar *int, ItemsWrittenVar *int) (uint32, error) { | ||
| 1182 | + | core.LazyRegister(&xUtf16ToUcs4, "GLIB", "g_utf16_to_ucs4", false) | |||
| 1105 | var cerr *Error | 1183 | var cerr *Error | ||
| 1106 | 1184 | ||||
| 1107 | cret := xUtf16ToUcs4(StrVar, LenVar, ItemsReadVar, ItemsWrittenVar, &cerr) | 1185 | cret := xUtf16ToUcs4(StrVar, LenVar, ItemsReadVar, ItemsWrittenVar, &cerr) | ||
| @@ -1128,6 +1206,7 @@ var xUtf16ToUtf8 func([]uint16, int, *int, *int, **Error) string | |||||
| 1128 | // be correctly interpreted as UTF-16, i.e. it doesn’t contain | 1206 | // be correctly interpreted as UTF-16, i.e. it doesn’t contain | ||
| 1129 | // unpaired surrogates or partial character sequences. | 1207 | // unpaired surrogates or partial character sequences. | ||
| 1130 | func Utf16ToUtf8(StrVar []uint16, LenVar int, ItemsReadVar *int, ItemsWrittenVar *int) (string, error) { | 1208 | func Utf16ToUtf8(StrVar []uint16, LenVar int, ItemsReadVar *int, ItemsWrittenVar *int) (string, error) { | ||
| 1209 | + | core.LazyRegister(&xUtf16ToUtf8, "GLIB", "g_utf16_to_utf8", false) | |||
| 1131 | var cerr *Error | 1210 | var cerr *Error | ||
| 1132 | 1211 | ||||
| 1133 | cret := xUtf16ToUtf8(StrVar, LenVar, ItemsReadVar, ItemsWrittenVar, &cerr) | 1212 | cret := xUtf16ToUtf8(StrVar, LenVar, ItemsReadVar, ItemsWrittenVar, &cerr) | ||
| @@ -1151,6 +1230,8 @@ var xUtf8Casefold func(string, int) string | |||||
| 1151 | // takes case sensitivity into account. GLib does not currently | 1230 | // takes case sensitivity into account. GLib does not currently | ||
| 1152 | // provide such a function. | 1231 | // provide such a function. | ||
| 1153 | func Utf8Casefold(StrVar string, LenVar int) string { | 1232 | func Utf8Casefold(StrVar string, LenVar int) string { | ||
| 1233 | + | core.LazyRegister(&xUtf8Casefold, "GLIB", "g_utf8_casefold", false) | |||
| 1234 | + | ||||
| 1154 | cret := xUtf8Casefold(StrVar, LenVar) | 1235 | cret := xUtf8Casefold(StrVar, LenVar) | ||
| 1155 | return cret | 1236 | return cret | ||
| 1156 | } | 1237 | } | ||
| @@ -1168,6 +1249,8 @@ var xUtf8Collate func(string, string) int | |||||
| 1168 | // sequences, the result is undefined. This can happen if the strings are in | 1249 | // sequences, the result is undefined. This can happen if the strings are in | ||
| 1169 | // different language scripts, for example. | 1250 | // different language scripts, for example. | ||
| 1170 | func Utf8Collate(Str1Var string, Str2Var string) int { | 1251 | func Utf8Collate(Str1Var string, Str2Var string) int { | ||
| 1252 | + | core.LazyRegister(&xUtf8Collate, "GLIB", "g_utf8_collate", false) | |||
| 1253 | + | ||||
| 1171 | cret := xUtf8Collate(Str1Var, Str2Var) | 1254 | cret := xUtf8Collate(Str1Var, Str2Var) | ||
| 1172 | return cret | 1255 | return cret | ||
| 1173 | } | 1256 | } | ||
| @@ -1188,6 +1271,8 @@ var xUtf8CollateKey func(string, int) string | |||||
| 1188 | // encoding, especially UTF-8. The returned value is meant to be | 1271 | // encoding, especially UTF-8. The returned value is meant to be | ||
| 1189 | // used only for comparisons. | 1272 | // used only for comparisons. | ||
| 1190 | func Utf8CollateKey(StrVar string, LenVar int) string { | 1273 | func Utf8CollateKey(StrVar string, LenVar int) string { | ||
| 1274 | + | core.LazyRegister(&xUtf8CollateKey, "GLIB", "g_utf8_collate_key", false) | |||
| 1275 | + | ||||
| 1191 | cret := xUtf8CollateKey(StrVar, LenVar) | 1276 | cret := xUtf8CollateKey(StrVar, LenVar) | ||
| 1192 | return cret | 1277 | return cret | ||
| 1193 | } | 1278 | } | ||
| @@ -1210,6 +1295,8 @@ var xUtf8CollateKeyForFilename func(string, int) string | |||||
| 1210 | // encoding, especially UTF-8. The returned value is meant to be | 1295 | // encoding, especially UTF-8. The returned value is meant to be | ||
| 1211 | // used only for comparisons. | 1296 | // used only for comparisons. | ||
| 1212 | func Utf8CollateKeyForFilename(StrVar string, LenVar int) string { | 1297 | func Utf8CollateKeyForFilename(StrVar string, LenVar int) string { | ||
| 1298 | + | core.LazyRegister(&xUtf8CollateKeyForFilename, "GLIB", "g_utf8_collate_key_for_filename", false) | |||
| 1299 | + | ||||
| 1213 | cret := xUtf8CollateKeyForFilename(StrVar, LenVar) | 1300 | cret := xUtf8CollateKeyForFilename(StrVar, LenVar) | ||
| 1214 | return cret | 1301 | return cret | ||
| 1215 | } | 1302 | } | ||
| @@ -1227,6 +1314,8 @@ var xUtf8FindNextChar func(string, uintptr) string | |||||
| 1227 | // @end is non-`NULL`, the return value will be `NULL` if the end of the string | 1314 | // @end is non-`NULL`, the return value will be `NULL` if the end of the string | ||
| 1228 | // is reached. | 1315 | // is reached. | ||
| 1229 | func Utf8FindNextChar(PVar string, EndVar *string) string { | 1316 | func Utf8FindNextChar(PVar string, EndVar *string) string { | ||
| 1317 | + | core.LazyRegister(&xUtf8FindNextChar, "GLIB", "g_utf8_find_next_char", false) | |||
| 1318 | + | ||||
| 1230 | EndVarPtr := core.GStrdupNullable(EndVar) | 1319 | EndVarPtr := core.GStrdupNullable(EndVar) | ||
| 1231 | defer core.GFreeNullable(EndVarPtr) | 1320 | defer core.GFreeNullable(EndVarPtr) | ||
| 1232 | 1321 | ||||
| @@ -1244,6 +1333,8 @@ var xUtf8FindPrevChar func(string, string) string | |||||
| 1244 | // is made to see if the character found is actually valid other than | 1333 | // is made to see if the character found is actually valid other than | ||
| 1245 | // it starts with an appropriate byte. | 1334 | // it starts with an appropriate byte. | ||
| 1246 | func Utf8FindPrevChar(StrVar string, PVar string) string { | 1335 | func Utf8FindPrevChar(StrVar string, PVar string) string { | ||
| 1336 | + | core.LazyRegister(&xUtf8FindPrevChar, "GLIB", "g_utf8_find_prev_char", false) | |||
| 1337 | + | ||||
| 1247 | cret := xUtf8FindPrevChar(StrVar, PVar) | 1338 | cret := xUtf8FindPrevChar(StrVar, PVar) | ||
| 1248 | return cret | 1339 | return cret | ||
| 1249 | } | 1340 | } | ||
| @@ -1257,6 +1348,8 @@ var xUtf8GetChar func(string) uint32 | |||||
| 1257 | // valid Unicode characters, you should use [func@GLib.utf8_get_char_validated] | 1348 | // valid Unicode characters, you should use [func@GLib.utf8_get_char_validated] | ||
| 1258 | // instead. | 1349 | // instead. | ||
| 1259 | func Utf8GetChar(PVar string) uint32 { | 1350 | func Utf8GetChar(PVar string) uint32 { | ||
| 1351 | + | core.LazyRegister(&xUtf8GetChar, "GLIB", "g_utf8_get_char", false) | |||
| 1352 | + | ||||
| 1260 | cret := xUtf8GetChar(PVar) | 1353 | cret := xUtf8GetChar(PVar) | ||
| 1261 | return cret | 1354 | return cret | ||
| 1262 | } | 1355 | } | ||
| @@ -1273,6 +1366,8 @@ var xUtf8GetCharValidated func(string, int) uint32 | |||||
| 1273 | // @max_len is positive and any of the bytes in the first UTF-8 character | 1366 | // @max_len is positive and any of the bytes in the first UTF-8 character | ||
| 1274 | // sequence are nul. | 1367 | // sequence are nul. | ||
| 1275 | func Utf8GetCharValidated(PVar string, MaxLenVar int) uint32 { | 1368 | func Utf8GetCharValidated(PVar string, MaxLenVar int) uint32 { | ||
| 1369 | + | core.LazyRegister(&xUtf8GetCharValidated, "GLIB", "g_utf8_get_char_validated", false) | |||
| 1370 | + | ||||
| 1276 | cret := xUtf8GetCharValidated(PVar, MaxLenVar) | 1371 | cret := xUtf8GetCharValidated(PVar, MaxLenVar) | ||
| 1277 | return cret | 1372 | return cret | ||
| 1278 | } | 1373 | } | ||
| @@ -1289,6 +1384,8 @@ var xUtf8MakeValid func(string, int) string | |||||
| 1289 | // assumption that it is close enough to ASCII or UTF-8 to be mostly | 1384 | // assumption that it is close enough to ASCII or UTF-8 to be mostly | ||
| 1290 | // readable as-is. | 1385 | // readable as-is. | ||
| 1291 | func Utf8MakeValid(StrVar string, LenVar int) string { | 1386 | func Utf8MakeValid(StrVar string, LenVar int) string { | ||
| 1387 | + | core.LazyRegister(&xUtf8MakeValid, "GLIB", "g_utf8_make_valid", false) | |||
| 1388 | + | ||||
| 1292 | cret := xUtf8MakeValid(StrVar, LenVar) | 1389 | cret := xUtf8MakeValid(StrVar, LenVar) | ||
| 1293 | return cret | 1390 | return cret | ||
| 1294 | } | 1391 | } | ||
| @@ -1321,6 +1418,8 @@ var xUtf8Normalize func(string, int, NormalizeMode) string | |||||
| 1321 | // a legacy encoding or pass it to a system with | 1418 | // a legacy encoding or pass it to a system with | ||
| 1322 | // less capable Unicode handling. | 1419 | // less capable Unicode handling. | ||
| 1323 | func Utf8Normalize(StrVar string, LenVar int, ModeVar NormalizeMode) string { | 1420 | func Utf8Normalize(StrVar string, LenVar int, ModeVar NormalizeMode) string { | ||
| 1421 | + | core.LazyRegister(&xUtf8Normalize, "GLIB", "g_utf8_normalize", false) | |||
| 1422 | + | ||||
| 1324 | cret := xUtf8Normalize(StrVar, LenVar, ModeVar) | 1423 | cret := xUtf8Normalize(StrVar, LenVar, ModeVar) | ||
| 1325 | return cret | 1424 | return cret | ||
| 1326 | } | 1425 | } | ||
| @@ -1341,6 +1440,8 @@ var xUtf8OffsetToPointer func(string, int) string | |||||
| 1341 | // This limitation exists as this function is called frequently during | 1440 | // This limitation exists as this function is called frequently during | ||
| 1342 | // text rendering and therefore has to be as fast as possible. | 1441 | // text rendering and therefore has to be as fast as possible. | ||
| 1343 | func Utf8OffsetToPointer(StrVar string, OffsetVar int) string { | 1442 | func Utf8OffsetToPointer(StrVar string, OffsetVar int) string { | ||
| 1443 | + | core.LazyRegister(&xUtf8OffsetToPointer, "GLIB", "g_utf8_offset_to_pointer", false) | |||
| 1444 | + | ||||
| 1344 | cret := xUtf8OffsetToPointer(StrVar, OffsetVar) | 1445 | cret := xUtf8OffsetToPointer(StrVar, OffsetVar) | ||
| 1345 | return cret | 1446 | return cret | ||
| 1346 | } | 1447 | } | ||
| @@ -1353,6 +1454,8 @@ var xUtf8PointerToOffset func(string, string) int | |||||
| 1353 | // Since 2.10, this function allows @pos to be before @str, and returns | 1454 | // Since 2.10, this function allows @pos to be before @str, and returns | ||
| 1354 | // a negative offset in this case. | 1455 | // a negative offset in this case. | ||
| 1355 | func Utf8PointerToOffset(StrVar string, PosVar string) int { | 1456 | func Utf8PointerToOffset(StrVar string, PosVar string) int { | ||
| 1457 | + | core.LazyRegister(&xUtf8PointerToOffset, "GLIB", "g_utf8_pointer_to_offset", false) | |||
| 1458 | + | ||||
| 1356 | cret := xUtf8PointerToOffset(StrVar, PosVar) | 1459 | cret := xUtf8PointerToOffset(StrVar, PosVar) | ||
| 1357 | return cret | 1460 | return cret | ||
| 1358 | } | 1461 | } | ||
| @@ -1367,6 +1470,8 @@ var xUtf8PrevChar func(string) string | |||||
| 1367 | // character of the string, you must use [func@GLib.utf8_find_prev_char] | 1470 | // character of the string, you must use [func@GLib.utf8_find_prev_char] | ||
| 1368 | // instead. | 1471 | // instead. | ||
| 1369 | func Utf8PrevChar(PVar string) string { | 1472 | func Utf8PrevChar(PVar string) string { | ||
| 1473 | + | core.LazyRegister(&xUtf8PrevChar, "GLIB", "g_utf8_prev_char", false) | |||
| 1474 | + | ||||
| 1370 | cret := xUtf8PrevChar(PVar) | 1475 | cret := xUtf8PrevChar(PVar) | ||
| 1371 | return cret | 1476 | return cret | ||
| 1372 | } | 1477 | } | ||
| @@ -1378,6 +1483,8 @@ var xUtf8Strchr func(string, int, uint32) string | |||||
| 1378 | // | 1483 | // | ||
| 1379 | // If @len is `-1`, allow unbounded search. | 1484 | // If @len is `-1`, allow unbounded search. | ||
| 1380 | func Utf8Strchr(PVar string, LenVar int, CVar uint32) string { | 1485 | func Utf8Strchr(PVar string, LenVar int, CVar uint32) string { | ||
| 1486 | + | core.LazyRegister(&xUtf8Strchr, "GLIB", "g_utf8_strchr", false) | |||
| 1487 | + | ||||
| 1381 | cret := xUtf8Strchr(PVar, LenVar, CVar) | 1488 | cret := xUtf8Strchr(PVar, LenVar, CVar) | ||
| 1382 | return cret | 1489 | return cret | ||
| 1383 | } | 1490 | } | ||
| @@ -1389,6 +1496,8 @@ var xUtf8Strdown func(string, int) string | |||||
| 1389 | // on the current locale, and may result in the number of | 1496 | // on the current locale, and may result in the number of | ||
| 1390 | // characters in the string changing. | 1497 | // characters in the string changing. | ||
| 1391 | func Utf8Strdown(StrVar string, LenVar int) string { | 1498 | func Utf8Strdown(StrVar string, LenVar int) string { | ||
| 1499 | + | core.LazyRegister(&xUtf8Strdown, "GLIB", "g_utf8_strdown", false) | |||
| 1500 | + | ||||
| 1392 | cret := xUtf8Strdown(StrVar, LenVar) | 1501 | cret := xUtf8Strdown(StrVar, LenVar) | ||
| 1393 | return cret | 1502 | return cret | ||
| 1394 | } | 1503 | } | ||
| @@ -1399,6 +1508,8 @@ var xUtf8Strlen func(string, int) int | |||||
| 1399 | // the terminating nul character. If the @max’th byte falls in the | 1508 | // the terminating nul character. If the @max’th byte falls in the | ||
| 1400 | // middle of a character, the last (partial) character is not counted. | 1509 | // middle of a character, the last (partial) character is not counted. | ||
| 1401 | func Utf8Strlen(PVar string, MaxVar int) int { | 1510 | func Utf8Strlen(PVar string, MaxVar int) int { | ||
| 1511 | + | core.LazyRegister(&xUtf8Strlen, "GLIB", "g_utf8_strlen", false) | |||
| 1512 | + | ||||
| 1402 | cret := xUtf8Strlen(PVar, MaxVar) | 1513 | cret := xUtf8Strlen(PVar, MaxVar) | ||
| 1403 | return cret | 1514 | return cret | ||
| 1404 | } | 1515 | } | ||
| @@ -1415,6 +1526,8 @@ var xUtf8Strncpy func(string, string, uint) string | |||||
| 1415 | // Note you must ensure @dest is at least 4 * @n + 1 to fit the | 1526 | // Note you must ensure @dest is at least 4 * @n + 1 to fit the | ||
| 1416 | // largest possible UTF-8 characters | 1527 | // largest possible UTF-8 characters | ||
| 1417 | func Utf8Strncpy(DestVar string, SrcVar string, NVar uint) string { | 1528 | func Utf8Strncpy(DestVar string, SrcVar string, NVar uint) string { | ||
| 1529 | + | core.LazyRegister(&xUtf8Strncpy, "GLIB", "g_utf8_strncpy", false) | |||
| 1530 | + | ||||
| 1418 | cret := xUtf8Strncpy(DestVar, SrcVar, NVar) | 1531 | cret := xUtf8Strncpy(DestVar, SrcVar, NVar) | ||
| 1419 | return cret | 1532 | return cret | ||
| 1420 | } | 1533 | } | ||
| @@ -1426,6 +1539,8 @@ var xUtf8Strrchr func(string, int, uint32) string | |||||
| 1426 | // | 1539 | // | ||
| 1427 | // If @len is `-1`, allow unbounded search. | 1540 | // If @len is `-1`, allow unbounded search. | ||
| 1428 | func Utf8Strrchr(PVar string, LenVar int, CVar uint32) string { | 1541 | func Utf8Strrchr(PVar string, LenVar int, CVar uint32) string { | ||
| 1542 | + | core.LazyRegister(&xUtf8Strrchr, "GLIB", "g_utf8_strrchr", false) | |||
| 1543 | + | ||||
| 1429 | cret := xUtf8Strrchr(PVar, LenVar, CVar) | 1544 | cret := xUtf8Strrchr(PVar, LenVar, CVar) | ||
| 1430 | return cret | 1545 | return cret | ||
| 1431 | } | 1546 | } | ||
| @@ -1447,6 +1562,8 @@ var xUtf8Strreverse func(string, int) string | |||||
| 1447 | // newly-allocated memory, which should be freed with [func@GLib.free] when | 1562 | // newly-allocated memory, which should be freed with [func@GLib.free] when | ||
| 1448 | // no longer needed. | 1563 | // no longer needed. | ||
| 1449 | func Utf8Strreverse(StrVar string, LenVar int) string { | 1564 | func Utf8Strreverse(StrVar string, LenVar int) string { | ||
| 1565 | + | core.LazyRegister(&xUtf8Strreverse, "GLIB", "g_utf8_strreverse", false) | |||
| 1566 | + | ||||
| 1450 | cret := xUtf8Strreverse(StrVar, LenVar) | 1567 | cret := xUtf8Strreverse(StrVar, LenVar) | ||
| 1451 | return cret | 1568 | return cret | ||
| 1452 | } | 1569 | } | ||
| @@ -1459,6 +1576,8 @@ var xUtf8Strup func(string, int) string | |||||
| 1459 | // characters in the string increasing. (For instance, the | 1576 | // characters in the string increasing. (For instance, the | ||
| 1460 | // German ess-zet will be changed to SS.) | 1577 | // German ess-zet will be changed to SS.) | ||
| 1461 | func Utf8Strup(StrVar string, LenVar int) string { | 1578 | func Utf8Strup(StrVar string, LenVar int) string { | ||
| 1579 | + | core.LazyRegister(&xUtf8Strup, "GLIB", "g_utf8_strup", false) | |||
| 1580 | + | ||||
| 1462 | cret := xUtf8Strup(StrVar, LenVar) | 1581 | cret := xUtf8Strup(StrVar, LenVar) | ||
| 1463 | return cret | 1582 | return cret | ||
| 1464 | } | 1583 | } | ||
| @@ -1471,6 +1590,8 @@ var xUtf8Substring func(string, int, int) string | |||||
| 1471 | // Since GLib 2.72, `-1` can be passed to @end_pos to indicate the | 1590 | // Since GLib 2.72, `-1` can be passed to @end_pos to indicate the | ||
| 1472 | // end of the string. | 1591 | // end of the string. | ||
| 1473 | func Utf8Substring(StrVar string, StartPosVar int, EndPosVar int) string { | 1592 | func Utf8Substring(StrVar string, StartPosVar int, EndPosVar int) string { | ||
| 1593 | + | core.LazyRegister(&xUtf8Substring, "GLIB", "g_utf8_substring", false) | |||
| 1594 | + | ||||
| 1474 | cret := xUtf8Substring(StrVar, StartPosVar, EndPosVar) | 1595 | cret := xUtf8Substring(StrVar, StartPosVar, EndPosVar) | ||
| 1475 | return cret | 1596 | return cret | ||
| 1476 | } | 1597 | } | ||
| @@ -1482,6 +1603,7 @@ var xUtf8ToUcs4 func(string, int, *int, *int, **Error) uint32 | |||||
| 1482 | // A trailing nul character (U+0000) will be added to the string after the | 1603 | // A trailing nul character (U+0000) will be added to the string after the | ||
| 1483 | // converted text. | 1604 | // converted text. | ||
| 1484 | func Utf8ToUcs4(StrVar string, LenVar int, ItemsReadVar *int, ItemsWrittenVar *int) (uint32, error) { | 1605 | func Utf8ToUcs4(StrVar string, LenVar int, ItemsReadVar *int, ItemsWrittenVar *int) (uint32, error) { | ||
| 1606 | + | core.LazyRegister(&xUtf8ToUcs4, "GLIB", "g_utf8_to_ucs4", false) | |||
| 1485 | var cerr *Error | 1607 | var cerr *Error | ||
| 1486 | 1608 | ||||
| 1487 | cret := xUtf8ToUcs4(StrVar, LenVar, ItemsReadVar, ItemsWrittenVar, &cerr) | 1609 | cret := xUtf8ToUcs4(StrVar, LenVar, ItemsReadVar, ItemsWrittenVar, &cerr) | ||
| @@ -1500,6 +1622,8 @@ var xUtf8ToUcs4Fast func(string, int, *int) uint32 | |||||
| 1500 | // but does no error checking on the input. A trailing nul character (U+0000) | 1622 | // but does no error checking on the input. A trailing nul character (U+0000) | ||
| 1501 | // will be added to the string after the converted text. | 1623 | // will be added to the string after the converted text. | ||
| 1502 | func Utf8ToUcs4Fast(StrVar string, LenVar int, ItemsWrittenVar *int) uint32 { | 1624 | func Utf8ToUcs4Fast(StrVar string, LenVar int, ItemsWrittenVar *int) uint32 { | ||
| 1625 | + | core.LazyRegister(&xUtf8ToUcs4Fast, "GLIB", "g_utf8_to_ucs4_fast", false) | |||
| 1626 | + | ||||
| 1503 | cret := xUtf8ToUcs4Fast(StrVar, LenVar, ItemsWrittenVar) | 1627 | cret := xUtf8ToUcs4Fast(StrVar, LenVar, ItemsWrittenVar) | ||
| 1504 | return cret | 1628 | return cret | ||
| 1505 | } | 1629 | } | ||
| @@ -1510,6 +1634,7 @@ var xUtf8ToUtf16 func(string, int, *int, *int, **Error) uint16 | |||||
| 1510 | // | 1634 | // | ||
| 1511 | // A nul character (U+0000) will be added to the result after the converted text. | 1635 | // A nul character (U+0000) will be added to the result after the converted text. | ||
| 1512 | func Utf8ToUtf16(StrVar string, LenVar int, ItemsReadVar *int, ItemsWrittenVar *int) (uint16, error) { | 1636 | func Utf8ToUtf16(StrVar string, LenVar int, ItemsReadVar *int, ItemsWrittenVar *int) (uint16, error) { | ||
| 1637 | + | core.LazyRegister(&xUtf8ToUtf16, "GLIB", "g_utf8_to_utf16", false) | |||
| 1513 | var cerr *Error | 1638 | var cerr *Error | ||
| 1514 | 1639 | ||||
| 1515 | cret := xUtf8ToUtf16(StrVar, LenVar, ItemsReadVar, ItemsWrittenVar, &cerr) | 1640 | cret := xUtf8ToUtf16(StrVar, LenVar, ItemsReadVar, ItemsWrittenVar, &cerr) | ||
| @@ -1527,6 +1652,8 @@ var xUtf8TruncateMiddle func(string, uint) string | |||||
| 1527 | // If @string is already short enough, this returns a copy of @string. | 1652 | // If @string is already short enough, this returns a copy of @string. | ||
| 1528 | // If @truncate_length is `0`, an empty string is returned. | 1653 | // If @truncate_length is `0`, an empty string is returned. | ||
| 1529 | func Utf8TruncateMiddle(StringVar string, TruncateLengthVar uint) string { | 1654 | func Utf8TruncateMiddle(StringVar string, TruncateLengthVar uint) string { | ||
| 1655 | + | core.LazyRegister(&xUtf8TruncateMiddle, "GLIB", "g_utf8_truncate_middle", false) | |||
| 1656 | + | ||||
| 1530 | cret := xUtf8TruncateMiddle(StringVar, TruncateLengthVar) | 1657 | cret := xUtf8TruncateMiddle(StringVar, TruncateLengthVar) | ||
| 1531 | return cret | 1658 | return cret | ||
| 1532 | } | 1659 | } | ||
| @@ -1551,6 +1678,8 @@ var xUtf8Validate func([]byte, int, *[]byte) bool | |||||
| 1551 | // or the network should be checked with `g_utf8_validate()` before | 1678 | // or the network should be checked with `g_utf8_validate()` before | ||
| 1552 | // doing anything else with it. | 1679 | // doing anything else with it. | ||
| 1553 | func Utf8Validate(StrVar []byte, MaxLenVar int, EndVar *[]byte) bool { | 1680 | func Utf8Validate(StrVar []byte, MaxLenVar int, EndVar *[]byte) bool { | ||
| 1681 | + | core.LazyRegister(&xUtf8Validate, "GLIB", "g_utf8_validate", false) | |||
| 1682 | + | ||||
| 1554 | cret := xUtf8Validate(StrVar, MaxLenVar, EndVar) | 1683 | cret := xUtf8Validate(StrVar, MaxLenVar, EndVar) | ||
| 1555 | return cret | 1684 | return cret | ||
| 1556 | } | 1685 | } | ||
| @@ -1562,6 +1691,8 @@ var xUtf8ValidateLen func([]byte, uint, *[]byte) bool | |||||
| 1562 | // As with [func@GLib.utf8_validate], but @max_len must be set, and hence this | 1691 | // As with [func@GLib.utf8_validate], but @max_len must be set, and hence this | ||
| 1563 | // function will always return `FALSE` if any of the bytes of @str are nul. | 1692 | // function will always return `FALSE` if any of the bytes of @str are nul. | ||
| 1564 | func Utf8ValidateLen(StrVar []byte, MaxLenVar uint, EndVar *[]byte) bool { | 1693 | func Utf8ValidateLen(StrVar []byte, MaxLenVar uint, EndVar *[]byte) bool { | ||
| 1694 | + | core.LazyRegister(&xUtf8ValidateLen, "GLIB", "g_utf8_validate_len", false) | |||
| 1695 | + | ||||
| 1565 | cret := xUtf8ValidateLen(StrVar, MaxLenVar, EndVar) | 1696 | cret := xUtf8ValidateLen(StrVar, MaxLenVar, EndVar) | ||
| 1566 | return cret | 1697 | return cret | ||
| 1567 | } | 1698 | } | ||
| @@ -1569,88 +1700,4 @@ func Utf8ValidateLen(StrVar []byte, MaxLenVar uint, EndVar *[]byte) bool { | |||||
| 1569 | func init() { | 1700 | func init() { | ||
| 1570 | core.SetPackageName("GLIB", "glib-2.0") | 1701 | core.SetPackageName("GLIB", "glib-2.0") | ||
| 1571 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | 1702 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | ||
| 1572 | - | var libs []uintptr | |||
| 1573 | - | for _, libPath := range core.GetPaths("GLIB") { | |||
| 1574 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 1575 | - | if err != nil { | |||
| 1576 | - | panic(err) | |||
| 1577 | - | } | |||
| 1578 | - | libs = append(libs, lib) | |||
| 1579 | - | } | |||
| 1580 | - | ||||
| 1581 | - | core.PuregoSafeRegister(&xNormalizeModeGLibType, libs, "g_normalize_mode_get_type") | |||
| 1582 | - | ||||
| 1583 | - | core.PuregoSafeRegister(&xUnicodeBreakTypeGLibType, libs, "g_unicode_break_type_get_type") | |||
| 1584 | - | ||||
| 1585 | - | core.PuregoSafeRegister(&xUnicodeScriptGLibType, libs, "g_unicode_script_get_type") | |||
| 1586 | - | ||||
| 1587 | - | core.PuregoSafeRegister(&xUnicodeTypeGLibType, libs, "g_unicode_type_get_type") | |||
| 1588 | - | ||||
| 1589 | - | core.PuregoSafeRegister(&xUcs4ToUtf16, libs, "g_ucs4_to_utf16") | |||
| 1590 | - | core.PuregoSafeRegister(&xUcs4ToUtf8, libs, "g_ucs4_to_utf8") | |||
| 1591 | - | core.PuregoSafeRegister(&xUnicharBreakType, libs, "g_unichar_break_type") | |||
| 1592 | - | core.PuregoSafeRegister(&xUnicharCombiningClass, libs, "g_unichar_combining_class") | |||
| 1593 | - | core.PuregoSafeRegister(&xUnicharCompose, libs, "g_unichar_compose") | |||
| 1594 | - | core.PuregoSafeRegister(&xUnicharDecompose, libs, "g_unichar_decompose") | |||
| 1595 | - | core.PuregoSafeRegister(&xUnicharDigitValue, libs, "g_unichar_digit_value") | |||
| 1596 | - | core.PuregoSafeRegister(&xUnicharFullyDecompose, libs, "g_unichar_fully_decompose") | |||
| 1597 | - | core.PuregoSafeRegister(&xUnicharGetMirrorChar, libs, "g_unichar_get_mirror_char") | |||
| 1598 | - | core.PuregoSafeRegister(&xUnicharGetScript, libs, "g_unichar_get_script") | |||
| 1599 | - | core.PuregoSafeRegister(&xUnicharIsalnum, libs, "g_unichar_isalnum") | |||
| 1600 | - | core.PuregoSafeRegister(&xUnicharIsalpha, libs, "g_unichar_isalpha") | |||
| 1601 | - | core.PuregoSafeRegister(&xUnicharIscntrl, libs, "g_unichar_iscntrl") | |||
| 1602 | - | core.PuregoSafeRegister(&xUnicharIsdefined, libs, "g_unichar_isdefined") | |||
| 1603 | - | core.PuregoSafeRegister(&xUnicharIsdigit, libs, "g_unichar_isdigit") | |||
| 1604 | - | core.PuregoSafeRegister(&xUnicharIsgraph, libs, "g_unichar_isgraph") | |||
| 1605 | - | core.PuregoSafeRegister(&xUnicharIslower, libs, "g_unichar_islower") | |||
| 1606 | - | core.PuregoSafeRegister(&xUnicharIsmark, libs, "g_unichar_ismark") | |||
| 1607 | - | core.PuregoSafeRegister(&xUnicharIsprint, libs, "g_unichar_isprint") | |||
| 1608 | - | core.PuregoSafeRegister(&xUnicharIspunct, libs, "g_unichar_ispunct") | |||
| 1609 | - | core.PuregoSafeRegister(&xUnicharIsspace, libs, "g_unichar_isspace") | |||
| 1610 | - | core.PuregoSafeRegister(&xUnicharIstitle, libs, "g_unichar_istitle") | |||
| 1611 | - | core.PuregoSafeRegister(&xUnicharIsupper, libs, "g_unichar_isupper") | |||
| 1612 | - | core.PuregoSafeRegister(&xUnicharIswide, libs, "g_unichar_iswide") | |||
| 1613 | - | core.PuregoSafeRegister(&xUnicharIswideCjk, libs, "g_unichar_iswide_cjk") | |||
| 1614 | - | core.PuregoSafeRegister(&xUnicharIsxdigit, libs, "g_unichar_isxdigit") | |||
| 1615 | - | core.PuregoSafeRegister(&xUnicharIszerowidth, libs, "g_unichar_iszerowidth") | |||
| 1616 | - | core.PuregoSafeRegister(&xUnicharToUtf8, libs, "g_unichar_to_utf8") | |||
| 1617 | - | core.PuregoSafeRegister(&xUnicharTolower, libs, "g_unichar_tolower") | |||
| 1618 | - | core.PuregoSafeRegister(&xUnicharTotitle, libs, "g_unichar_totitle") | |||
| 1619 | - | core.PuregoSafeRegister(&xUnicharToupper, libs, "g_unichar_toupper") | |||
| 1620 | - | core.PuregoSafeRegister(&xUnicharType, libs, "g_unichar_type") | |||
| 1621 | - | core.PuregoSafeRegister(&xUnicharValidate, libs, "g_unichar_validate") | |||
| 1622 | - | core.PuregoSafeRegister(&xUnicharXdigitValue, libs, "g_unichar_xdigit_value") | |||
| 1623 | - | core.PuregoSafeRegister(&xUnicodeCanonicalDecomposition, libs, "g_unicode_canonical_decomposition") | |||
| 1624 | - | core.PuregoSafeRegister(&xUnicodeCanonicalOrdering, libs, "g_unicode_canonical_ordering") | |||
| 1625 | - | core.PuregoSafeRegister(&xUnicodeScriptFromIso15924, libs, "g_unicode_script_from_iso15924") | |||
| 1626 | - | core.PuregoSafeRegister(&xUnicodeScriptToIso15924, libs, "g_unicode_script_to_iso15924") | |||
| 1627 | - | core.PuregoSafeRegister(&xUtf16ToUcs4, libs, "g_utf16_to_ucs4") | |||
| 1628 | - | core.PuregoSafeRegister(&xUtf16ToUtf8, libs, "g_utf16_to_utf8") | |||
| 1629 | - | core.PuregoSafeRegister(&xUtf8Casefold, libs, "g_utf8_casefold") | |||
| 1630 | - | core.PuregoSafeRegister(&xUtf8Collate, libs, "g_utf8_collate") | |||
| 1631 | - | core.PuregoSafeRegister(&xUtf8CollateKey, libs, "g_utf8_collate_key") | |||
| 1632 | - | core.PuregoSafeRegister(&xUtf8CollateKeyForFilename, libs, "g_utf8_collate_key_for_filename") | |||
| 1633 | - | core.PuregoSafeRegister(&xUtf8FindNextChar, libs, "g_utf8_find_next_char") | |||
| 1634 | - | core.PuregoSafeRegister(&xUtf8FindPrevChar, libs, "g_utf8_find_prev_char") | |||
| 1635 | - | core.PuregoSafeRegister(&xUtf8GetChar, libs, "g_utf8_get_char") | |||
| 1636 | - | core.PuregoSafeRegister(&xUtf8GetCharValidated, libs, "g_utf8_get_char_validated") | |||
| 1637 | - | core.PuregoSafeRegister(&xUtf8MakeValid, libs, "g_utf8_make_valid") | |||
| 1638 | - | core.PuregoSafeRegister(&xUtf8Normalize, libs, "g_utf8_normalize") | |||
| 1639 | - | core.PuregoSafeRegister(&xUtf8OffsetToPointer, libs, "g_utf8_offset_to_pointer") | |||
| 1640 | - | core.PuregoSafeRegister(&xUtf8PointerToOffset, libs, "g_utf8_pointer_to_offset") | |||
| 1641 | - | core.PuregoSafeRegister(&xUtf8PrevChar, libs, "g_utf8_prev_char") | |||
| 1642 | - | core.PuregoSafeRegister(&xUtf8Strchr, libs, "g_utf8_strchr") | |||
| 1643 | - | core.PuregoSafeRegister(&xUtf8Strdown, libs, "g_utf8_strdown") | |||
| 1644 | - | core.PuregoSafeRegister(&xUtf8Strlen, libs, "g_utf8_strlen") | |||
| 1645 | - | core.PuregoSafeRegister(&xUtf8Strncpy, libs, "g_utf8_strncpy") | |||
| 1646 | - | core.PuregoSafeRegister(&xUtf8Strrchr, libs, "g_utf8_strrchr") | |||
| 1647 | - | core.PuregoSafeRegister(&xUtf8Strreverse, libs, "g_utf8_strreverse") | |||
| 1648 | - | core.PuregoSafeRegister(&xUtf8Strup, libs, "g_utf8_strup") | |||
| 1649 | - | core.PuregoSafeRegister(&xUtf8Substring, libs, "g_utf8_substring") | |||
| 1650 | - | core.PuregoSafeRegister(&xUtf8ToUcs4, libs, "g_utf8_to_ucs4") | |||
| 1651 | - | core.PuregoSafeRegister(&xUtf8ToUcs4Fast, libs, "g_utf8_to_ucs4_fast") | |||
| 1652 | - | core.PuregoSafeRegister(&xUtf8ToUtf16, libs, "g_utf8_to_utf16") | |||
| 1653 | - | core.PuregoSafeRegister(&xUtf8TruncateMiddle, libs, "g_utf8_truncate_middle") | |||
| 1654 | - | core.PuregoSafeRegister(&xUtf8Validate, libs, "g_utf8_validate") | |||
| 1655 | - | core.PuregoSafeRegister(&xUtf8ValidateLen, libs, "g_utf8_validate_len") | |||
| 1656 | } | 1703 | } | ||