Gen: Re-run script
- commit
- 71980ef764095651fc99e701261b4651a58b6f2c
- author
- Jeroen Wijenbergh · · 2025-10-13 08:29 UTC
- parent
- cdca4b5
- signature
- SSH Unverified
SHA256:8N5EoON8reSTMm461SyWlzRhib6IymBjUHb1p62kwywThe key is unknown
661 files · +3301 -661
M v4/adw/adw-about-dialog.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -1129,6 +1129,10 @@ func (x *AboutDialog) GetBuildableId() string { | |||
| 1129 | 1129 | } | |
| 1130 | 1130 | ||
| 1131 | 1131 | func init() { | |
| 1132 | + | ||
| 1133 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 1134 | + | ||
| 1135 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 1132 | 1136 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 1133 | 1137 | if err != nil { | |
| 1134 | 1138 | panic(err) | |
M v4/adw/adw-about-window.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gdk" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| @@ -1238,6 +1238,10 @@ func (x *AboutWindow) SetFocus(FocusVar *gtk.Widget) { | |||
| 1238 | 1238 | } | |
| 1239 | 1239 | ||
| 1240 | 1240 | func init() { | |
| 1241 | + | ||
| 1242 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 1243 | + | ||
| 1244 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 1241 | 1245 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 1242 | 1246 | if err != nil { | |
| 1243 | 1247 | panic(err) | |
M v4/adw/adw-accent-color.go +5 -1
| @@ -3,7 +3,7 @@ package adw | |||
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | 5 | "github.com/jwijenbergh/purego" | |
| 6 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 6 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 7 | 7 | "github.com/jwijenbergh/puregotk/v4/gdk" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 9 | 9 | ) | |
| @@ -75,6 +75,10 @@ func RgbaToStandalone(RgbaVar *gdk.RGBA, DarkVar bool, StandaloneRgbaVar *gdk.RG | |||
| 75 | 75 | } | |
| 76 | 76 | ||
| 77 | 77 | func init() { | |
| 78 | + | ||
| 79 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 80 | + | ||
| 81 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 78 | 82 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 79 | 83 | if err != nil { | |
| 80 | 84 | panic(err) | |
M v4/adw/adw-action-row.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -540,6 +540,10 @@ func (x *ActionRow) GetBuildableId() string { | |||
| 540 | 540 | } | |
| 541 | 541 | ||
| 542 | 542 | func init() { | |
| 543 | + | ||
| 544 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 545 | + | ||
| 546 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 543 | 547 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 544 | 548 | if err != nil { | |
| 545 | 549 | panic(err) | |
M v4/adw/adw-alert-dialog.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| @@ -828,6 +828,10 @@ func (x *AlertDialog) GetBuildableId() string { | |||
| 828 | 828 | } | |
| 829 | 829 | ||
| 830 | 830 | func init() { | |
| 831 | + | ||
| 832 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 833 | + | ||
| 834 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 831 | 835 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 832 | 836 | if err != nil { | |
| 833 | 837 | panic(err) | |
M v4/adw/adw-animation-target.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -215,6 +215,10 @@ func (c *PropertyAnimationTarget) SetGoPointer(ptr uintptr) { | |||
| 215 | 215 | } | |
| 216 | 216 | ||
| 217 | 217 | func init() { | |
| 218 | + | ||
| 219 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 220 | + | ||
| 221 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 218 | 222 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 219 | 223 | if err != nil { | |
| 220 | 224 | panic(err) | |
M v4/adw/adw-animation-util.go +5 -1
| @@ -3,7 +3,7 @@ package adw | |||
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | 5 | "github.com/jwijenbergh/purego" | |
| 6 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 6 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 7 | 7 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| 8 | 8 | ) | |
| 9 | 9 | ||
| @@ -29,6 +29,10 @@ func Lerp(AVar float64, BVar float64, TVar float64) float64 { | |||
| 29 | 29 | } | |
| 30 | 30 | ||
| 31 | 31 | func init() { | |
| 32 | + | ||
| 33 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 34 | + | ||
| 35 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 32 | 36 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 33 | 37 | if err != nil { | |
| 34 | 38 | panic(err) | |
M v4/adw/adw-animation.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -324,6 +324,10 @@ func (x *Animation) ConnectDone(cb *func(Animation)) uint32 { | |||
| 324 | 324 | } | |
| 325 | 325 | ||
| 326 | 326 | func init() { | |
| 327 | + | ||
| 328 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 329 | + | ||
| 330 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 327 | 331 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 328 | 332 | if err != nil { | |
| 329 | 333 | panic(err) | |
M v4/adw/adw-application-window.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gdk" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| @@ -767,6 +767,10 @@ func (x *ApplicationWindow) SetFocus(FocusVar *gtk.Widget) { | |||
| 767 | 767 | } | |
| 768 | 768 | ||
| 769 | 769 | func init() { | |
| 770 | + | ||
| 771 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 772 | + | ||
| 773 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 770 | 774 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 771 | 775 | if err != nil { | |
| 772 | 776 | panic(err) | |
M v4/adw/adw-application.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| @@ -440,6 +440,10 @@ func (x *Application) RemoveAction(ActionNameVar string) { | |||
| 440 | 440 | } | |
| 441 | 441 | ||
| 442 | 442 | func init() { | |
| 443 | + | ||
| 444 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 445 | + | ||
| 446 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 443 | 447 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 444 | 448 | if err != nil { | |
| 445 | 449 | panic(err) | |
M v4/adw/adw-avatar.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gdk" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -361,6 +361,10 @@ func (x *Avatar) GetBuildableId() string { | |||
| 361 | 361 | } | |
| 362 | 362 | ||
| 363 | 363 | func init() { | |
| 364 | + | ||
| 365 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 366 | + | ||
| 367 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 364 | 368 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 365 | 369 | if err != nil { | |
| 366 | 370 | panic(err) | |
M v4/adw/adw-banner.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -421,6 +421,10 @@ func (x *Banner) GetBuildableId() string { | |||
| 421 | 421 | } | |
| 422 | 422 | ||
| 423 | 423 | func init() { | |
| 424 | + | ||
| 425 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 426 | + | ||
| 427 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 424 | 428 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 425 | 429 | if err != nil { | |
| 426 | 430 | panic(err) | |
M v4/adw/adw-bin.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| @@ -250,6 +250,10 @@ func (x *Bin) GetBuildableId() string { | |||
| 250 | 250 | } | |
| 251 | 251 | ||
| 252 | 252 | func init() { | |
| 253 | + | ||
| 254 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 255 | + | ||
| 256 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 253 | 257 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 254 | 258 | if err != nil { | |
| 255 | 259 | panic(err) | |
M v4/adw/adw-bottom-sheet.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gdk" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| @@ -618,6 +618,10 @@ func (x *BottomSheet) GetBuildableId() string { | |||
| 618 | 618 | } | |
| 619 | 619 | ||
| 620 | 620 | func init() { | |
| 621 | + | ||
| 622 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 623 | + | ||
| 624 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 621 | 625 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 622 | 626 | if err != nil { | |
| 623 | 627 | panic(err) | |
M v4/adw/adw-breakpoint-bin.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| @@ -390,6 +390,10 @@ func (x *BreakpointBin) GetBuildableId() string { | |||
| 390 | 390 | } | |
| 391 | 391 | ||
| 392 | 392 | func init() { | |
| 393 | + | ||
| 394 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 395 | + | ||
| 396 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 393 | 397 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 394 | 398 | if err != nil { | |
| 395 | 399 | panic(err) | |
M v4/adw/adw-breakpoint.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -486,6 +486,10 @@ func (x *Breakpoint) GetBuildableId() string { | |||
| 486 | 486 | } | |
| 487 | 487 | ||
| 488 | 488 | func init() { | |
| 489 | + | ||
| 490 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 491 | + | ||
| 492 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 489 | 493 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 490 | 494 | if err != nil { | |
| 491 | 495 | panic(err) | |
M v4/adw/adw-button-content.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| @@ -345,6 +345,10 @@ func (x *ButtonContent) GetBuildableId() string { | |||
| 345 | 345 | } | |
| 346 | 346 | ||
| 347 | 347 | func init() { | |
| 348 | + | ||
| 349 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 350 | + | ||
| 351 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 348 | 352 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 349 | 353 | if err != nil { | |
| 350 | 354 | panic(err) | |
M v4/adw/adw-button-row.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -400,6 +400,10 @@ func (x *ButtonRow) GetBuildableId() string { | |||
| 400 | 400 | } | |
| 401 | 401 | ||
| 402 | 402 | func init() { | |
| 403 | + | ||
| 404 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 405 | + | ||
| 406 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 403 | 407 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 404 | 408 | if err != nil { | |
| 405 | 409 | panic(err) | |
M v4/adw/adw-carousel-indicator-dots.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| @@ -270,6 +270,10 @@ func (x *CarouselIndicatorDots) SetOrientation(OrientationVar gtk.Orientation) { | |||
| 270 | 270 | } | |
| 271 | 271 | ||
| 272 | 272 | func init() { | |
| 273 | + | ||
| 274 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 275 | + | ||
| 276 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 273 | 277 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 274 | 278 | if err != nil { | |
| 275 | 279 | panic(err) | |
M v4/adw/adw-carousel-indicator-lines.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| @@ -269,6 +269,10 @@ func (x *CarouselIndicatorLines) SetOrientation(OrientationVar gtk.Orientation) | |||
| 269 | 269 | } | |
| 270 | 270 | ||
| 271 | 271 | func init() { | |
| 272 | + | ||
| 273 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 274 | + | ||
| 275 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 272 | 276 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 273 | 277 | if err != nil { | |
| 274 | 278 | panic(err) | |
M v4/adw/adw-carousel.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gdk" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| @@ -562,6 +562,10 @@ func (x *Carousel) SetOrientation(OrientationVar gtk.Orientation) { | |||
| 562 | 562 | } | |
| 563 | 563 | ||
| 564 | 564 | func init() { | |
| 565 | + | ||
| 566 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 567 | + | ||
| 568 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 565 | 569 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 566 | 570 | if err != nil { | |
| 567 | 571 | panic(err) | |
M v4/adw/adw-clamp-layout.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| 12 | 12 | ) | |
| @@ -177,6 +177,10 @@ func (x *ClampLayout) SetOrientation(OrientationVar gtk.Orientation) { | |||
| 177 | 177 | } | |
| 178 | 178 | ||
| 179 | 179 | func init() { | |
| 180 | + | ||
| 181 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 182 | + | ||
| 183 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 180 | 184 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 181 | 185 | if err != nil { | |
| 182 | 186 | panic(err) | |
M v4/adw/adw-clamp-scrollable.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| @@ -420,6 +420,10 @@ func (x *ClampScrollable) SetVscrollPolicy(PolicyVar gtk.ScrollablePolicy) { | |||
| 420 | 420 | } | |
| 421 | 421 | ||
| 422 | 422 | func init() { | |
| 423 | + | ||
| 424 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 425 | + | ||
| 426 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 423 | 427 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 424 | 428 | if err != nil { | |
| 425 | 429 | panic(err) | |
M v4/adw/adw-clamp.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| @@ -352,6 +352,10 @@ func (x *Clamp) SetOrientation(OrientationVar gtk.Orientation) { | |||
| 352 | 352 | } | |
| 353 | 353 | ||
| 354 | 354 | func init() { | |
| 355 | + | ||
| 356 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 357 | + | ||
| 358 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 355 | 359 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 356 | 360 | if err != nil { | |
| 357 | 361 | panic(err) | |
M v4/adw/adw-combo-row.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| @@ -596,6 +596,10 @@ func (x *ComboRow) GetBuildableId() string { | |||
| 596 | 596 | } | |
| 597 | 597 | ||
| 598 | 598 | func init() { | |
| 599 | + | ||
| 600 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 601 | + | ||
| 602 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 599 | 603 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 600 | 604 | if err != nil { | |
| 601 | 605 | panic(err) | |
M v4/adw/adw-dialog.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -630,6 +630,10 @@ func (x *Dialog) GetBuildableId() string { | |||
| 630 | 630 | } | |
| 631 | 631 | ||
| 632 | 632 | func init() { | |
| 633 | + | ||
| 634 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 635 | + | ||
| 636 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 633 | 637 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 634 | 638 | if err != nil { | |
| 635 | 639 | panic(err) | |
M v4/adw/adw-easing.go +5 -1
| @@ -3,7 +3,7 @@ package adw | |||
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | 5 | "github.com/jwijenbergh/purego" | |
| 6 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 6 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 7 | 7 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 8 | 8 | ) | |
| 9 | 9 | ||
| @@ -112,6 +112,10 @@ func EasingEase(SelfVar Easing, ValueVar float64) float64 { | |||
| 112 | 112 | } | |
| 113 | 113 | ||
| 114 | 114 | func init() { | |
| 115 | + | ||
| 116 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 117 | + | ||
| 118 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 115 | 119 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 116 | 120 | if err != nil { | |
| 117 | 121 | panic(err) | |
M v4/adw/adw-entry-row.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -807,6 +807,10 @@ func (x *EntryRow) SetWidthChars(NCharsVar int) { | |||
| 807 | 807 | } | |
| 808 | 808 | ||
| 809 | 809 | func init() { | |
| 810 | + | ||
| 811 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 812 | + | ||
| 813 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 810 | 814 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 811 | 815 | if err != nil { | |
| 812 | 816 | panic(err) | |
M v4/adw/adw-enum-list-model.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -245,6 +245,10 @@ func (x *EnumListModel) ItemsChanged(PositionVar uint, RemovedVar uint, AddedVar | |||
| 245 | 245 | } | |
| 246 | 246 | ||
| 247 | 247 | func init() { | |
| 248 | + | ||
| 249 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 250 | + | ||
| 251 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 248 | 252 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 249 | 253 | if err != nil { | |
| 250 | 254 | panic(err) | |
M v4/adw/adw-expander-row.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -519,6 +519,10 @@ func (x *ExpanderRow) GetBuildableId() string { | |||
| 519 | 519 | } | |
| 520 | 520 | ||
| 521 | 521 | func init() { | |
| 522 | + | ||
| 523 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 524 | + | ||
| 525 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 522 | 526 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 523 | 527 | if err != nil { | |
| 524 | 528 | panic(err) | |
M v4/adw/adw-flap.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gdk" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -725,6 +725,10 @@ func (x *Flap) SetOrientation(OrientationVar gtk.Orientation) { | |||
| 725 | 725 | } | |
| 726 | 726 | ||
| 727 | 727 | func init() { | |
| 728 | + | ||
| 729 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 730 | + | ||
| 731 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 728 | 732 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 729 | 733 | if err != nil { | |
| 730 | 734 | panic(err) | |
M v4/adw/adw-header-bar.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| @@ -532,6 +532,10 @@ func (x *HeaderBar) GetBuildableId() string { | |||
| 532 | 532 | } | |
| 533 | 533 | ||
| 534 | 534 | func init() { | |
| 535 | + | ||
| 536 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 537 | + | ||
| 538 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 535 | 539 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 536 | 540 | if err != nil { | |
| 537 | 541 | panic(err) | |
M v4/adw/adw-layout-slot.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| @@ -225,6 +225,10 @@ func (x *LayoutSlot) GetBuildableId() string { | |||
| 225 | 225 | } | |
| 226 | 226 | ||
| 227 | 227 | func init() { | |
| 228 | + | ||
| 229 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 230 | + | ||
| 231 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 228 | 232 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 229 | 233 | if err != nil { | |
| 230 | 234 | panic(err) | |
M v4/adw/adw-layout.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| @@ -112,6 +112,10 @@ func (x *Layout) GetBuildableId() string { | |||
| 112 | 112 | } | |
| 113 | 113 | ||
| 114 | 114 | func init() { | |
| 115 | + | ||
| 116 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 117 | + | ||
| 118 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 115 | 119 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 116 | 120 | if err != nil { | |
| 117 | 121 | panic(err) | |
M v4/adw/adw-leaflet.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gdk" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -864,6 +864,10 @@ func (c *LeafletPage) SetGoPointer(ptr uintptr) { | |||
| 864 | 864 | } | |
| 865 | 865 | ||
| 866 | 866 | func init() { | |
| 867 | + | ||
| 868 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 869 | + | ||
| 870 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 867 | 871 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 868 | 872 | if err != nil { | |
| 869 | 873 | panic(err) | |
M v4/adw/adw-length-unit.go +5 -1
| @@ -3,7 +3,7 @@ package adw | |||
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | 5 | "github.com/jwijenbergh/purego" | |
| 6 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 6 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 7 | 7 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| 9 | 9 | ) | |
| @@ -54,6 +54,10 @@ func LengthUnitToPx(UnitVar LengthUnit, ValueVar float64, SettingsVar *gtk.Setti | |||
| 54 | 54 | } | |
| 55 | 55 | ||
| 56 | 56 | func init() { | |
| 57 | + | ||
| 58 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 59 | + | ||
| 60 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 57 | 61 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 58 | 62 | if err != nil { | |
| 59 | 63 | panic(err) | |
M v4/adw/adw-main.go +5 -1
| @@ -3,7 +3,7 @@ package adw | |||
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | 5 | "github.com/jwijenbergh/purego" | |
| 6 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 6 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 7 | 7 | ) | |
| 8 | 8 | ||
| 9 | 9 | var xInit func() | |
| @@ -36,6 +36,10 @@ func IsInitialized() bool { | |||
| 36 | 36 | } | |
| 37 | 37 | ||
| 38 | 38 | func init() { | |
| 39 | + | ||
| 40 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 41 | + | ||
| 42 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 39 | 43 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 40 | 44 | if err != nil { | |
| 41 | 45 | panic(err) | |
M v4/adw/adw-message-dialog.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gdk" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| @@ -898,6 +898,10 @@ func (x *MessageDialog) SetFocus(FocusVar *gtk.Widget) { | |||
| 898 | 898 | } | |
| 899 | 899 | ||
| 900 | 900 | func init() { | |
| 901 | + | ||
| 902 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 903 | + | ||
| 904 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 901 | 905 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 902 | 906 | if err != nil { | |
| 903 | 907 | panic(err) | |
M v4/adw/adw-multi-layout-view.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| @@ -403,6 +403,10 @@ func (x *MultiLayoutView) GetBuildableId() string { | |||
| 403 | 403 | } | |
| 404 | 404 | ||
| 405 | 405 | func init() { | |
| 406 | + | ||
| 407 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 408 | + | ||
| 409 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 406 | 410 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 407 | 411 | if err != nil { | |
| 408 | 412 | panic(err) | |
M v4/adw/adw-navigation-split-view.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| @@ -548,6 +548,10 @@ func (x *NavigationSplitView) GetBuildableId() string { | |||
| 548 | 548 | } | |
| 549 | 549 | ||
| 550 | 550 | func init() { | |
| 551 | + | ||
| 552 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 553 | + | ||
| 554 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 551 | 555 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 552 | 556 | if err != nil { | |
| 553 | 557 | panic(err) | |
M v4/adw/adw-navigation-view.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gdk" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| @@ -1248,6 +1248,10 @@ func (x *NavigationView) GetBuildableId() string { | |||
| 1248 | 1248 | } | |
| 1249 | 1249 | ||
| 1250 | 1250 | func init() { | |
| 1251 | + | ||
| 1252 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 1253 | + | ||
| 1254 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 1251 | 1255 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 1252 | 1256 | if err != nil { | |
| 1253 | 1257 | panic(err) | |
M v4/adw/adw-overlay-split-view.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gdk" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -666,6 +666,10 @@ func (x *OverlaySplitView) GetBuildableId() string { | |||
| 666 | 666 | } | |
| 667 | 667 | ||
| 668 | 668 | func init() { | |
| 669 | + | ||
| 670 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 671 | + | ||
| 672 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 669 | 673 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 670 | 674 | if err != nil { | |
| 671 | 675 | panic(err) | |
M v4/adw/adw-password-entry-row.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -557,6 +557,10 @@ func (x *PasswordEntryRow) SetWidthChars(NCharsVar int) { | |||
| 557 | 557 | } | |
| 558 | 558 | ||
| 559 | 559 | func init() { | |
| 560 | + | ||
| 561 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 562 | + | ||
| 563 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 560 | 564 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 561 | 565 | if err != nil { | |
| 562 | 566 | panic(err) | |
M v4/adw/adw-preferences-dialog.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| @@ -347,6 +347,10 @@ func (x *PreferencesDialog) GetBuildableId() string { | |||
| 347 | 347 | } | |
| 348 | 348 | ||
| 349 | 349 | func init() { | |
| 350 | + | ||
| 351 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 352 | + | ||
| 353 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 350 | 354 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 351 | 355 | if err != nil { | |
| 352 | 356 | panic(err) | |
M v4/adw/adw-preferences-group.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| @@ -356,6 +356,10 @@ func (x *PreferencesGroup) GetBuildableId() string { | |||
| 356 | 356 | } | |
| 357 | 357 | ||
| 358 | 358 | func init() { | |
| 359 | + | ||
| 360 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 361 | + | ||
| 362 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 359 | 363 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 360 | 364 | if err != nil { | |
| 361 | 365 | panic(err) | |
M v4/adw/adw-preferences-page.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| @@ -368,6 +368,10 @@ func (x *PreferencesPage) GetBuildableId() string { | |||
| 368 | 368 | } | |
| 369 | 369 | ||
| 370 | 370 | func init() { | |
| 371 | + | ||
| 372 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 373 | + | ||
| 374 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 371 | 375 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 372 | 376 | if err != nil { | |
| 373 | 377 | panic(err) | |
M v4/adw/adw-preferences-row.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -386,6 +386,10 @@ func (x *PreferencesRow) GetBuildableId() string { | |||
| 386 | 386 | } | |
| 387 | 387 | ||
| 388 | 388 | func init() { | |
| 389 | + | ||
| 390 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 391 | + | ||
| 392 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 389 | 393 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 390 | 394 | if err != nil { | |
| 391 | 395 | panic(err) | |
M v4/adw/adw-preferences-window.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gdk" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -504,6 +504,10 @@ func (x *PreferencesWindow) SetFocus(FocusVar *gtk.Widget) { | |||
| 504 | 504 | } | |
| 505 | 505 | ||
| 506 | 506 | func init() { | |
| 507 | + | ||
| 508 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 509 | + | ||
| 510 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 507 | 511 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 508 | 512 | if err != nil { | |
| 509 | 513 | panic(err) | |
M v4/adw/adw-spin-row.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -861,6 +861,10 @@ func (x *SpinRow) SetWidthChars(NCharsVar int) { | |||
| 861 | 861 | } | |
| 862 | 862 | ||
| 863 | 863 | func init() { | |
| 864 | + | ||
| 865 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 866 | + | ||
| 867 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 864 | 868 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 865 | 869 | if err != nil { | |
| 866 | 870 | panic(err) | |
M v4/adw/adw-spinner-paintable.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gdk" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -280,6 +280,10 @@ func (x *SpinnerPaintable) SnapshotSymbolic(SnapshotVar *gdk.Snapshot, WidthVar | |||
| 280 | 280 | } | |
| 281 | 281 | ||
| 282 | 282 | func init() { | |
| 283 | + | ||
| 284 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 285 | + | ||
| 286 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 283 | 287 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 284 | 288 | if err != nil { | |
| 285 | 289 | panic(err) | |
M v4/adw/adw-spinner.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| @@ -246,6 +246,10 @@ func (x *Spinner) GetBuildableId() string { | |||
| 246 | 246 | } | |
| 247 | 247 | ||
| 248 | 248 | func init() { | |
| 249 | + | ||
| 250 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 251 | + | ||
| 252 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 249 | 253 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 250 | 254 | if err != nil { | |
| 251 | 255 | panic(err) | |
M v4/adw/adw-split-button.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| @@ -632,6 +632,10 @@ func (x *SplitButton) GetBuildableId() string { | |||
| 632 | 632 | } | |
| 633 | 633 | ||
| 634 | 634 | func init() { | |
| 635 | + | ||
| 636 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 637 | + | ||
| 638 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 635 | 639 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 636 | 640 | if err != nil { | |
| 637 | 641 | panic(err) | |
M v4/adw/adw-spring-animation.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| @@ -280,6 +280,10 @@ func (c *SpringAnimation) SetGoPointer(ptr uintptr) { | |||
| 280 | 280 | } | |
| 281 | 281 | ||
| 282 | 282 | func init() { | |
| 283 | + | ||
| 284 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 285 | + | ||
| 286 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 283 | 287 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 284 | 288 | if err != nil { | |
| 285 | 289 | panic(err) | |
M v4/adw/adw-spring-params.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 11 | ) | |
| 12 | 12 | ||
| @@ -146,6 +146,10 @@ func (x *SpringParams) Unref() { | |||
| 146 | 146 | } | |
| 147 | 147 | ||
| 148 | 148 | func init() { | |
| 149 | + | ||
| 150 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 151 | + | ||
| 152 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 149 | 153 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 150 | 154 | if err != nil { | |
| 151 | 155 | panic(err) | |
M v4/adw/adw-squeezer.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| @@ -619,6 +619,10 @@ func (c *SqueezerPage) SetGoPointer(ptr uintptr) { | |||
| 619 | 619 | } | |
| 620 | 620 | ||
| 621 | 621 | func init() { | |
| 622 | + | ||
| 623 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 624 | + | ||
| 625 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 622 | 626 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 623 | 627 | if err != nil { | |
| 624 | 628 | panic(err) | |
M v4/adw/adw-status-page.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gdk" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -358,6 +358,10 @@ func (x *StatusPage) GetBuildableId() string { | |||
| 358 | 358 | } | |
| 359 | 359 | ||
| 360 | 360 | func init() { | |
| 361 | + | ||
| 362 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 363 | + | ||
| 364 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 361 | 365 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 362 | 366 | if err != nil { | |
| 363 | 367 | panic(err) | |
M v4/adw/adw-style-manager.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gdk" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -275,6 +275,10 @@ func StyleManagerGetForDisplay(DisplayVar *gdk.Display) *StyleManager { | |||
| 275 | 275 | } | |
| 276 | 276 | ||
| 277 | 277 | func init() { | |
| 278 | + | ||
| 279 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 280 | + | ||
| 281 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 278 | 282 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 279 | 283 | if err != nil { | |
| 280 | 284 | panic(err) | |
M v4/adw/adw-swipe-tracker.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -347,6 +347,10 @@ func (x *SwipeTracker) SetOrientation(OrientationVar gtk.Orientation) { | |||
| 347 | 347 | } | |
| 348 | 348 | ||
| 349 | 349 | func init() { | |
| 350 | + | ||
| 351 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 352 | + | ||
| 353 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 350 | 354 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 351 | 355 | if err != nil { | |
| 352 | 356 | panic(err) | |
M v4/adw/adw-swipeable.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gdk" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | ) | |
| @@ -115,6 +115,10 @@ var XAdwSwipeableGetSnapPoints func(uintptr, int) uintptr | |||
| 115 | 115 | var XAdwSwipeableGetSwipeArea func(uintptr, NavigationDirection, bool, *gdk.Rectangle) | |
| 116 | 116 | ||
| 117 | 117 | func init() { | |
| 118 | + | ||
| 119 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 120 | + | ||
| 121 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 118 | 122 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 119 | 123 | if err != nil { | |
| 120 | 124 | panic(err) | |
M v4/adw/adw-switch-row.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -346,6 +346,10 @@ func (x *SwitchRow) GetBuildableId() string { | |||
| 346 | 346 | } | |
| 347 | 347 | ||
| 348 | 348 | func init() { | |
| 349 | + | ||
| 350 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 351 | + | ||
| 352 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 349 | 353 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 350 | 354 | if err != nil { | |
| 351 | 355 | panic(err) | |
M v4/adw/adw-tab-bar.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gdk" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| @@ -514,6 +514,10 @@ func (x *TabBar) GetBuildableId() string { | |||
| 514 | 514 | } | |
| 515 | 515 | ||
| 516 | 516 | func init() { | |
| 517 | + | ||
| 518 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 519 | + | ||
| 520 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 517 | 521 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 518 | 522 | if err != nil { | |
| 519 | 523 | panic(err) | |
M v4/adw/adw-tab-button.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -395,6 +395,10 @@ func (x *TabButton) GetBuildableId() string { | |||
| 395 | 395 | } | |
| 396 | 396 | ||
| 397 | 397 | func init() { | |
| 398 | + | ||
| 399 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 400 | + | ||
| 401 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 398 | 402 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 399 | 403 | if err != nil { | |
| 400 | 404 | panic(err) | |
M v4/adw/adw-tab-overview.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gdk" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| @@ -619,6 +619,10 @@ func (x *TabOverview) GetBuildableId() string { | |||
| 619 | 619 | } | |
| 620 | 620 | ||
| 621 | 621 | func init() { | |
| 622 | + | ||
| 623 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 624 | + | ||
| 625 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 622 | 626 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 623 | 627 | if err != nil { | |
| 624 | 628 | panic(err) | |
M v4/adw/adw-tab-view.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| @@ -1642,6 +1642,10 @@ func (x *TabView) GetBuildableId() string { | |||
| 1642 | 1642 | } | |
| 1643 | 1643 | ||
| 1644 | 1644 | func init() { | |
| 1645 | + | ||
| 1646 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 1647 | + | ||
| 1648 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 1645 | 1649 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 1646 | 1650 | if err != nil { | |
| 1647 | 1651 | panic(err) | |
M v4/adw/adw-timed-animation.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| @@ -226,6 +226,10 @@ func (c *TimedAnimation) SetGoPointer(ptr uintptr) { | |||
| 226 | 226 | } | |
| 227 | 227 | ||
| 228 | 228 | func init() { | |
| 229 | + | ||
| 230 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 231 | + | ||
| 232 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 229 | 233 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 230 | 234 | if err != nil { | |
| 231 | 235 | panic(err) | |
M v4/adw/adw-toast-overlay.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| @@ -297,6 +297,10 @@ func (x *ToastOverlay) GetBuildableId() string { | |||
| 297 | 297 | } | |
| 298 | 298 | ||
| 299 | 299 | func init() { | |
| 300 | + | ||
| 301 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 302 | + | ||
| 303 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 300 | 304 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 301 | 305 | if err != nil { | |
| 302 | 306 | panic(err) | |
M v4/adw/adw-toast.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -522,6 +522,10 @@ func (x *Toast) ConnectDismissed(cb *func(Toast)) uint32 { | |||
| 522 | 522 | } | |
| 523 | 523 | ||
| 524 | 524 | func init() { | |
| 525 | + | ||
| 526 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 527 | + | ||
| 528 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 525 | 529 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 526 | 530 | if err != nil { | |
| 527 | 531 | panic(err) | |
M v4/adw/adw-toolbar-view.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| @@ -649,6 +649,10 @@ func (x *ToolbarView) GetBuildableId() string { | |||
| 649 | 649 | } | |
| 650 | 650 | ||
| 651 | 651 | func init() { | |
| 652 | + | ||
| 653 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 654 | + | ||
| 655 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 652 | 656 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 653 | 657 | if err != nil { | |
| 654 | 658 | panic(err) | |
M v4/adw/adw-version.go +5 -1
| @@ -3,7 +3,7 @@ package adw | |||
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | 5 | "github.com/jwijenbergh/purego" | |
| 6 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 6 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 7 | 7 | ) | |
| 8 | 8 | ||
| 9 | 9 | const ( | |
| @@ -67,6 +67,10 @@ func GetMinorVersion() uint { | |||
| 67 | 67 | } | |
| 68 | 68 | ||
| 69 | 69 | func init() { | |
| 70 | + | ||
| 71 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 72 | + | ||
| 73 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 70 | 74 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 71 | 75 | if err != nil { | |
| 72 | 76 | panic(err) | |
M v4/adw/adw-view-stack.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -1115,6 +1115,10 @@ func (x *ViewStackPages) UnselectRange(PositionVar uint, NItemsVar uint) bool { | |||
| 1115 | 1115 | } | |
| 1116 | 1116 | ||
| 1117 | 1117 | func init() { | |
| 1118 | + | ||
| 1119 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 1120 | + | ||
| 1121 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 1118 | 1122 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 1119 | 1123 | if err != nil { | |
| 1120 | 1124 | panic(err) | |
M v4/adw/adw-view-switcher-bar.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| @@ -317,6 +317,10 @@ func (x *ViewSwitcherBar) GetBuildableId() string { | |||
| 317 | 317 | } | |
| 318 | 318 | ||
| 319 | 319 | func init() { | |
| 320 | + | ||
| 321 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 322 | + | ||
| 323 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 320 | 324 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 321 | 325 | if err != nil { | |
| 322 | 326 | panic(err) | |
M v4/adw/adw-view-switcher-title.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| @@ -377,6 +377,10 @@ func (x *ViewSwitcherTitle) GetBuildableId() string { | |||
| 377 | 377 | } | |
| 378 | 378 | ||
| 379 | 379 | func init() { | |
| 380 | + | ||
| 381 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 382 | + | ||
| 383 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 380 | 384 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 381 | 385 | if err != nil { | |
| 382 | 386 | panic(err) | |
M v4/adw/adw-view-switcher.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| @@ -343,6 +343,10 @@ func (x *ViewSwitcher) GetBuildableId() string { | |||
| 343 | 343 | } | |
| 344 | 344 | ||
| 345 | 345 | func init() { | |
| 346 | + | ||
| 347 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 348 | + | ||
| 349 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 346 | 350 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 347 | 351 | if err != nil { | |
| 348 | 352 | panic(err) | |
M v4/adw/adw-window-title.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| @@ -266,6 +266,10 @@ func (x *WindowTitle) GetBuildableId() string { | |||
| 266 | 266 | } | |
| 267 | 267 | ||
| 268 | 268 | func init() { | |
| 269 | + | ||
| 270 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 271 | + | ||
| 272 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 269 | 273 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 270 | 274 | if err != nil { | |
| 271 | 275 | panic(err) | |
M v4/adw/adw-window.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gdk" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| @@ -492,6 +492,10 @@ func (x *Window) SetFocus(FocusVar *gtk.Widget) { | |||
| 492 | 492 | } | |
| 493 | 493 | ||
| 494 | 494 | func init() { | |
| 495 | + | ||
| 496 | + | core.SetPackageName("ADW", "libadwaita-1") | |
| 497 | + | ||
| 498 | + | core.SetSharedLibrary("ADW", "libadwaita-1.so.0") | |
| 495 | 499 | lib, err := purego.Dlopen(core.GetPath("ADW"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 496 | 500 | if err != nil { | |
| 497 | 501 | panic(err) | |
M v4/cairo/main.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 11 | ) | |
| 12 | 12 | ||
| @@ -759,6 +759,10 @@ func ImageSurfaceCreate() { | |||
| 759 | 759 | } | |
| 760 | 760 | ||
| 761 | 761 | func init() { | |
| 762 | + | ||
| 763 | + | core.SetPackageName("CAIRO", "cairo-gobject") | |
| 764 | + | ||
| 765 | + | core.SetSharedLibrary("CAIRO", "libcairo-gobject.so.2") | |
| 762 | 766 | lib, err := purego.Dlopen(core.GetPath("CAIRO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 763 | 767 | if err != nil { | |
| 764 | 768 | panic(err) | |
M v4/gdk/gdkapplaunchcontext.go +5 -1
| @@ -3,7 +3,7 @@ package gdk | |||
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | 5 | "github.com/jwijenbergh/purego" | |
| 6 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 6 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 7 | 7 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -144,6 +144,10 @@ func (c *AppLaunchContext) SetGoPointer(ptr uintptr) { | |||
| 144 | 144 | } | |
| 145 | 145 | ||
| 146 | 146 | func init() { | |
| 147 | + | ||
| 148 | + | core.SetPackageName("GDK", "gtk4") | |
| 149 | + | ||
| 150 | + | core.SetSharedLibrary("GDK", "libgtk-4.so.1") | |
| 147 | 151 | lib, err := purego.Dlopen(core.GetPath("GDK"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 148 | 152 | if err != nil { | |
| 149 | 153 | panic(err) | |
M v4/gdk/gdkcairo.go +5 -1
| @@ -3,7 +3,7 @@ package gdk | |||
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | 5 | "github.com/jwijenbergh/purego" | |
| 6 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 6 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 7 | 7 | "github.com/jwijenbergh/puregotk/v4/cairo" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/v4/gdkpixbuf" | |
| 9 | 9 | ) | |
| @@ -87,6 +87,10 @@ func CairoSetSourceRgba(CrVar *cairo.Context, RgbaVar *RGBA) { | |||
| 87 | 87 | } | |
| 88 | 88 | ||
| 89 | 89 | func init() { | |
| 90 | + | ||
| 91 | + | core.SetPackageName("GDK", "gtk4") | |
| 92 | + | ||
| 93 | + | core.SetSharedLibrary("GDK", "libgtk-4.so.1") | |
| 90 | 94 | lib, err := purego.Dlopen(core.GetPath("GDK"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 91 | 95 | if err != nil { | |
| 92 | 96 | panic(err) | |
M v4/gdk/gdkcairocontext.go +5 -1
| @@ -3,7 +3,7 @@ package gdk | |||
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | 5 | "github.com/jwijenbergh/purego" | |
| 6 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 6 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 7 | 7 | "github.com/jwijenbergh/puregotk/v4/cairo" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 9 | 9 | ) | |
| @@ -58,6 +58,10 @@ func (c *CairoContext) SetGoPointer(ptr uintptr) { | |||
| 58 | 58 | } | |
| 59 | 59 | ||
| 60 | 60 | func init() { | |
| 61 | + | ||
| 62 | + | core.SetPackageName("GDK", "gtk4") | |
| 63 | + | ||
| 64 | + | core.SetSharedLibrary("GDK", "libgtk-4.so.1") | |
| 61 | 65 | lib, err := purego.Dlopen(core.GetPath("GDK"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 62 | 66 | if err != nil { | |
| 63 | 67 | panic(err) | |
M v4/gdk/gdkclipboard.go +5 -1
| @@ -5,7 +5,7 @@ import ( | |||
| 5 | 5 | "unsafe" | |
| 6 | 6 | ||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 8 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| @@ -393,6 +393,10 @@ func (x *Clipboard) ConnectChanged(cb *func(Clipboard)) uint32 { | |||
| 393 | 393 | } | |
| 394 | 394 | ||
| 395 | 395 | func init() { | |
| 396 | + | ||
| 397 | + | core.SetPackageName("GDK", "gtk4") | |
| 398 | + | ||
| 399 | + | core.SetSharedLibrary("GDK", "libgtk-4.so.1") | |
| 396 | 400 | lib, err := purego.Dlopen(core.GetPath("GDK"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 397 | 401 | if err != nil { | |
| 398 | 402 | panic(err) | |
M v4/gdk/gdkcontentdeserializer.go +5 -1
| @@ -3,7 +3,7 @@ package gdk | |||
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | 5 | "github.com/jwijenbergh/purego" | |
| 6 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 6 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 7 | 7 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| @@ -262,6 +262,10 @@ func (x *ContentDeserializer) LegacyPropagateError() (bool, error) { | |||
| 262 | 262 | } | |
| 263 | 263 | ||
| 264 | 264 | func init() { | |
| 265 | + | ||
| 266 | + | core.SetPackageName("GDK", "gtk4") | |
| 267 | + | ||
| 268 | + | core.SetSharedLibrary("GDK", "libgtk-4.so.1") | |
| 265 | 269 | lib, err := purego.Dlopen(core.GetPath("GDK"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 266 | 270 | if err != nil { | |
| 267 | 271 | panic(err) | |
M v4/gdk/gdkcontentformats.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | ) | |
| @@ -191,6 +191,10 @@ func InternMimeType(StringVar string) string { | |||
| 191 | 191 | } | |
| 192 | 192 | ||
| 193 | 193 | func init() { | |
| 194 | + | ||
| 195 | + | core.SetPackageName("GDK", "gtk4") | |
| 196 | + | ||
| 197 | + | core.SetSharedLibrary("GDK", "libgtk-4.so.1") | |
| 194 | 198 | lib, err := purego.Dlopen(core.GetPath("GDK"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 195 | 199 | if err != nil { | |
| 196 | 200 | panic(err) | |
M v4/gdk/gdkcontentprovider.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| @@ -256,6 +256,10 @@ func (x *ContentProvider) ConnectContentChanged(cb *func(ContentProvider)) uint3 | |||
| 256 | 256 | } | |
| 257 | 257 | ||
| 258 | 258 | func init() { | |
| 259 | + | ||
| 260 | + | core.SetPackageName("GDK", "gtk4") | |
| 261 | + | ||
| 262 | + | core.SetSharedLibrary("GDK", "libgtk-4.so.1") | |
| 259 | 263 | lib, err := purego.Dlopen(core.GetPath("GDK"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 260 | 264 | if err != nil { | |
| 261 | 265 | panic(err) | |
M v4/gdk/gdkcontentserializer.go +5 -1
| @@ -3,7 +3,7 @@ package gdk | |||
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | 5 | "github.com/jwijenbergh/purego" | |
| 6 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 6 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 7 | 7 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| @@ -263,6 +263,10 @@ func (x *ContentSerializer) LegacyPropagateError() (bool, error) { | |||
| 263 | 263 | } | |
| 264 | 264 | ||
| 265 | 265 | func init() { | |
| 266 | + | ||
| 267 | + | core.SetPackageName("GDK", "gtk4") | |
| 268 | + | ||
| 269 | + | core.SetSharedLibrary("GDK", "libgtk-4.so.1") | |
| 266 | 270 | lib, err := purego.Dlopen(core.GetPath("GDK"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 267 | 271 | if err != nil { | |
| 268 | 272 | panic(err) | |
M v4/gdk/gdkcursor.go +5 -1
| @@ -3,7 +3,7 @@ package gdk | |||
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | 5 | "github.com/jwijenbergh/purego" | |
| 6 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 6 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 7 | 7 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 9 | 9 | ) | |
| @@ -200,6 +200,10 @@ func (c *Cursor) SetGoPointer(ptr uintptr) { | |||
| 200 | 200 | } | |
| 201 | 201 | ||
| 202 | 202 | func init() { | |
| 203 | + | ||
| 204 | + | core.SetPackageName("GDK", "gtk4") | |
| 205 | + | ||
| 206 | + | core.SetSharedLibrary("GDK", "libgtk-4.so.1") | |
| 203 | 207 | lib, err := purego.Dlopen(core.GetPath("GDK"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 204 | 208 | if err != nil { | |
| 205 | 209 | panic(err) | |
M v4/gdk/gdkdevice.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -387,6 +387,10 @@ func (x *Device) ConnectToolChanged(cb *func(Device, uintptr)) uint32 { | |||
| 387 | 387 | } | |
| 388 | 388 | ||
| 389 | 389 | func init() { | |
| 390 | + | ||
| 391 | + | core.SetPackageName("GDK", "gtk4") | |
| 392 | + | ||
| 393 | + | core.SetSharedLibrary("GDK", "libgtk-4.so.1") | |
| 390 | 394 | lib, err := purego.Dlopen(core.GetPath("GDK"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 391 | 395 | if err != nil { | |
| 392 | 396 | panic(err) | |
M v4/gdk/gdkdevicepad.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 11 | ) | |
| 12 | 12 | ||
| @@ -124,6 +124,10 @@ const ( | |||
| 124 | 124 | ) | |
| 125 | 125 | ||
| 126 | 126 | func init() { | |
| 127 | + | ||
| 128 | + | core.SetPackageName("GDK", "gtk4") | |
| 129 | + | ||
| 130 | + | core.SetSharedLibrary("GDK", "libgtk-4.so.1") | |
| 127 | 131 | lib, err := purego.Dlopen(core.GetPath("GDK"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 128 | 132 | if err != nil { | |
| 129 | 133 | panic(err) | |
M v4/gdk/gdkdevicetool.go +5 -1
| @@ -3,7 +3,7 @@ package gdk | |||
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | 5 | "github.com/jwijenbergh/purego" | |
| 6 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 6 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 7 | 7 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 9 | 9 | ) | |
| @@ -116,6 +116,10 @@ func (c *DeviceTool) SetGoPointer(ptr uintptr) { | |||
| 116 | 116 | } | |
| 117 | 117 | ||
| 118 | 118 | func init() { | |
| 119 | + | ||
| 120 | + | core.SetPackageName("GDK", "gtk4") | |
| 121 | + | ||
| 122 | + | core.SetSharedLibrary("GDK", "libgtk-4.so.1") | |
| 119 | 123 | lib, err := purego.Dlopen(core.GetPath("GDK"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 120 | 124 | if err != nil { | |
| 121 | 125 | panic(err) | |
M v4/gdk/gdkdisplay.go +5 -1
| @@ -5,7 +5,7 @@ import ( | |||
| 5 | 5 | "unsafe" | |
| 6 | 6 | ||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 8 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| @@ -626,6 +626,10 @@ func DisplayOpen(DisplayNameVar string) *Display { | |||
| 626 | 626 | } | |
| 627 | 627 | ||
| 628 | 628 | func init() { | |
| 629 | + | ||
| 630 | + | core.SetPackageName("GDK", "gtk4") | |
| 631 | + | ||
| 632 | + | core.SetSharedLibrary("GDK", "libgtk-4.so.1") | |
| 629 | 633 | lib, err := purego.Dlopen(core.GetPath("GDK"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 630 | 634 | if err != nil { | |
| 631 | 635 | panic(err) | |
M v4/gdk/gdkdisplaymanager.go +5 -1
| @@ -5,7 +5,7 @@ import ( | |||
| 5 | 5 | "unsafe" | |
| 6 | 6 | ||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 8 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -225,6 +225,10 @@ func DisplayManagerGet() *DisplayManager { | |||
| 225 | 225 | } | |
| 226 | 226 | ||
| 227 | 227 | func init() { | |
| 228 | + | ||
| 229 | + | core.SetPackageName("GDK", "gtk4") | |
| 230 | + | ||
| 231 | + | core.SetSharedLibrary("GDK", "libgtk-4.so.1") | |
| 228 | 232 | lib, err := purego.Dlopen(core.GetPath("GDK"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 229 | 233 | if err != nil { | |
| 230 | 234 | panic(err) | |
M v4/gdk/gdkdrag.go +5 -1
| @@ -5,7 +5,7 @@ import ( | |||
| 5 | 5 | "unsafe" | |
| 6 | 6 | ||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 8 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -321,6 +321,10 @@ func DragBegin(SurfaceVar *Surface, DeviceVar *Device, ContentVar *ContentProvid | |||
| 321 | 321 | } | |
| 322 | 322 | ||
| 323 | 323 | func init() { | |
| 324 | + | ||
| 325 | + | core.SetPackageName("GDK", "gtk4") | |
| 326 | + | ||
| 327 | + | core.SetSharedLibrary("GDK", "libgtk-4.so.1") | |
| 324 | 328 | lib, err := purego.Dlopen(core.GetPath("GDK"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 325 | 329 | if err != nil { | |
| 326 | 330 | panic(err) | |
M v4/gdk/gdkdragsurface.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 11 | ) | |
| 12 | 12 | ||
| @@ -57,6 +57,10 @@ func (x *DragSurfaceBase) Present(WidthVar int, HeightVar int) bool { | |||
| 57 | 57 | var XGdkDragSurfacePresent func(uintptr, int, int) bool | |
| 58 | 58 | ||
| 59 | 59 | func init() { | |
| 60 | + | ||
| 61 | + | core.SetPackageName("GDK", "gtk4") | |
| 62 | + | ||
| 63 | + | core.SetSharedLibrary("GDK", "libgtk-4.so.1") | |
| 60 | 64 | lib, err := purego.Dlopen(core.GetPath("GDK"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 61 | 65 | if err != nil { | |
| 62 | 66 | panic(err) | |
M v4/gdk/gdkdrawcontext.go +5 -1
| @@ -3,7 +3,7 @@ package gdk | |||
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | 5 | "github.com/jwijenbergh/purego" | |
| 6 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 6 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 7 | 7 | "github.com/jwijenbergh/puregotk/v4/cairo" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -157,6 +157,10 @@ func (c *DrawContext) SetGoPointer(ptr uintptr) { | |||
| 157 | 157 | } | |
| 158 | 158 | ||
| 159 | 159 | func init() { | |
| 160 | + | ||
| 161 | + | core.SetPackageName("GDK", "gtk4") | |
| 162 | + | ||
| 163 | + | core.SetSharedLibrary("GDK", "libgtk-4.so.1") | |
| 160 | 164 | lib, err := purego.Dlopen(core.GetPath("GDK"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 161 | 165 | if err != nil { | |
| 162 | 166 | panic(err) | |
M v4/gdk/gdkdrop.go +5 -1
| @@ -3,7 +3,7 @@ package gdk | |||
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | 5 | "github.com/jwijenbergh/purego" | |
| 6 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 6 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 7 | 7 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| @@ -260,6 +260,10 @@ func (c *Drop) SetGoPointer(ptr uintptr) { | |||
| 260 | 260 | } | |
| 261 | 261 | ||
| 262 | 262 | func init() { | |
| 263 | + | ||
| 264 | + | core.SetPackageName("GDK", "gtk4") | |
| 265 | + | ||
| 266 | + | core.SetSharedLibrary("GDK", "libgtk-4.so.1") | |
| 263 | 267 | lib, err := purego.Dlopen(core.GetPath("GDK"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 264 | 268 | if err != nil { | |
| 265 | 269 | panic(err) | |
M v4/gdk/gdkevents.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | ) | |
| @@ -1347,6 +1347,10 @@ func (c *TouchpadEvent) SetGoPointer(ptr uintptr) { | |||
| 1347 | 1347 | } | |
| 1348 | 1348 | ||
| 1349 | 1349 | func init() { | |
| 1350 | + | ||
| 1351 | + | core.SetPackageName("GDK", "gtk4") | |
| 1352 | + | ||
| 1353 | + | core.SetSharedLibrary("GDK", "libgtk-4.so.1") | |
| 1350 | 1354 | lib, err := purego.Dlopen(core.GetPath("GDK"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 1351 | 1355 | if err != nil { | |
| 1352 | 1356 | panic(err) | |
M v4/gdk/gdkframeclock.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -418,6 +418,10 @@ func (x *FrameClock) ConnectUpdate(cb *func(FrameClock)) uint32 { | |||
| 418 | 418 | } | |
| 419 | 419 | ||
| 420 | 420 | func init() { | |
| 421 | + | ||
| 422 | + | core.SetPackageName("GDK", "gtk4") | |
| 423 | + | ||
| 424 | + | core.SetSharedLibrary("GDK", "libgtk-4.so.1") | |
| 421 | 425 | lib, err := purego.Dlopen(core.GetPath("GDK"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 422 | 426 | if err != nil { | |
| 423 | 427 | panic(err) | |
M v4/gdk/gdkframetimings.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 11 | ) | |
| 12 | 12 | ||
| @@ -140,6 +140,10 @@ func (x *FrameTimings) Unref() { | |||
| 140 | 140 | } | |
| 141 | 141 | ||
| 142 | 142 | func init() { | |
| 143 | + | ||
| 144 | + | core.SetPackageName("GDK", "gtk4") | |
| 145 | + | ||
| 146 | + | core.SetSharedLibrary("GDK", "libgtk-4.so.1") | |
| 143 | 147 | lib, err := purego.Dlopen(core.GetPath("GDK"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 144 | 148 | if err != nil { | |
| 145 | 149 | panic(err) | |
M v4/gdk/gdkglcontext.go +5 -1
| @@ -3,7 +3,7 @@ package gdk | |||
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | 5 | "github.com/jwijenbergh/purego" | |
| 6 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 6 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 7 | 7 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -419,6 +419,10 @@ func GLContextGetCurrent() *GLContext { | |||
| 419 | 419 | } | |
| 420 | 420 | ||
| 421 | 421 | func init() { | |
| 422 | + | ||
| 423 | + | core.SetPackageName("GDK", "gtk4") | |
| 424 | + | ||
| 425 | + | core.SetSharedLibrary("GDK", "libgtk-4.so.1") | |
| 422 | 426 | lib, err := purego.Dlopen(core.GetPath("GDK"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 423 | 427 | if err != nil { | |
| 424 | 428 | panic(err) | |
M v4/gdk/gdkgltexture.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -314,6 +314,10 @@ func (x *GLTexture) LoadFinish(ResVar gio.AsyncResult, TypeVar string) (*gio.Inp | |||
| 314 | 314 | } | |
| 315 | 315 | ||
| 316 | 316 | func init() { | |
| 317 | + | ||
| 318 | + | core.SetPackageName("GDK", "gtk4") | |
| 319 | + | ||
| 320 | + | core.SetSharedLibrary("GDK", "libgtk-4.so.1") | |
| 317 | 321 | lib, err := purego.Dlopen(core.GetPath("GDK"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 318 | 322 | if err != nil { | |
| 319 | 323 | panic(err) | |
M v4/gdk/gdkkeys.go +5 -1
| @@ -3,7 +3,7 @@ package gdk | |||
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | 5 | "github.com/jwijenbergh/purego" | |
| 6 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 6 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 7 | 7 | ) | |
| 8 | 8 | ||
| 9 | 9 | var xKeyvalConvertCase func(uint, uint, uint) | |
| @@ -103,6 +103,10 @@ func UnicodeToKeyval(WcVar uint32) uint { | |||
| 103 | 103 | } | |
| 104 | 104 | ||
| 105 | 105 | func init() { | |
| 106 | + | ||
| 107 | + | core.SetPackageName("GDK", "gtk4") | |
| 108 | + | ||
| 109 | + | core.SetSharedLibrary("GDK", "libgtk-4.so.1") | |
| 106 | 110 | lib, err := purego.Dlopen(core.GetPath("GDK"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 107 | 111 | if err != nil { | |
| 108 | 112 | panic(err) | |
M v4/gdk/gdkmemorytexture.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -300,6 +300,10 @@ func (x *MemoryTexture) LoadFinish(ResVar gio.AsyncResult, TypeVar string) (*gio | |||
| 300 | 300 | } | |
| 301 | 301 | ||
| 302 | 302 | func init() { | |
| 303 | + | ||
| 304 | + | core.SetPackageName("GDK", "gtk4") | |
| 305 | + | ||
| 306 | + | core.SetSharedLibrary("GDK", "libgtk-4.so.1") | |
| 303 | 307 | lib, err := purego.Dlopen(core.GetPath("GDK"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 304 | 308 | if err != nil { | |
| 305 | 309 | panic(err) | |
M v4/gdk/gdkmonitor.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -234,6 +234,10 @@ func (x *Monitor) ConnectInvalidate(cb *func(Monitor)) uint32 { | |||
| 234 | 234 | } | |
| 235 | 235 | ||
| 236 | 236 | func init() { | |
| 237 | + | ||
| 238 | + | core.SetPackageName("GDK", "gtk4") | |
| 239 | + | ||
| 240 | + | core.SetSharedLibrary("GDK", "libgtk-4.so.1") | |
| 237 | 241 | lib, err := purego.Dlopen(core.GetPath("GDK"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 238 | 242 | if err != nil { | |
| 239 | 243 | panic(err) | |
M v4/gdk/gdkpaintable.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 11 | ) | |
| 12 | 12 | ||
| @@ -308,6 +308,10 @@ func PaintableNewEmpty(IntrinsicWidthVar int, IntrinsicHeightVar int) *Paintable | |||
| 308 | 308 | } | |
| 309 | 309 | ||
| 310 | 310 | func init() { | |
| 311 | + | ||
| 312 | + | core.SetPackageName("GDK", "gtk4") | |
| 313 | + | ||
| 314 | + | core.SetSharedLibrary("GDK", "libgtk-4.so.1") | |
| 311 | 315 | lib, err := purego.Dlopen(core.GetPath("GDK"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 312 | 316 | if err != nil { | |
| 313 | 317 | panic(err) | |
M v4/gdk/gdkpango.go +5 -1
| @@ -3,7 +3,7 @@ package gdk | |||
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | 5 | "github.com/jwijenbergh/purego" | |
| 6 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 6 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 7 | 7 | "github.com/jwijenbergh/puregotk/v4/cairo" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/v4/pango" | |
| 9 | 9 | ) | |
| @@ -50,6 +50,10 @@ func PangoLayoutLineGetClipRegion(LineVar *pango.LayoutLine, XOriginVar int, YOr | |||
| 50 | 50 | } | |
| 51 | 51 | ||
| 52 | 52 | func init() { | |
| 53 | + | ||
| 54 | + | core.SetPackageName("GDK", "gtk4") | |
| 55 | + | ||
| 56 | + | core.SetSharedLibrary("GDK", "libgtk-4.so.1") | |
| 53 | 57 | lib, err := purego.Dlopen(core.GetPath("GDK"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 54 | 58 | if err != nil { | |
| 55 | 59 | panic(err) | |
M v4/gdk/gdkpixbuf.go +5 -1
| @@ -3,7 +3,7 @@ package gdk | |||
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | 5 | "github.com/jwijenbergh/purego" | |
| 6 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 6 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 7 | 7 | "github.com/jwijenbergh/puregotk/v4/cairo" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/v4/gdkpixbuf" | |
| 9 | 9 | ) | |
| @@ -51,6 +51,10 @@ func PixbufGetFromTexture(TextureVar *Texture) *gdkpixbuf.Pixbuf { | |||
| 51 | 51 | } | |
| 52 | 52 | ||
| 53 | 53 | func init() { | |
| 54 | + | ||
| 55 | + | core.SetPackageName("GDK", "gtk4") | |
| 56 | + | ||
| 57 | + | core.SetSharedLibrary("GDK", "libgtk-4.so.1") | |
| 54 | 58 | lib, err := purego.Dlopen(core.GetPath("GDK"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 55 | 59 | if err != nil { | |
| 56 | 60 | panic(err) | |
M v4/gdk/gdkpopup.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | ) | |
| @@ -145,6 +145,10 @@ var XGdkPopupGetSurfaceAnchor func(uintptr) Gravity | |||
| 145 | 145 | var XGdkPopupPresent func(uintptr, int, int, *PopupLayout) bool | |
| 146 | 146 | ||
| 147 | 147 | func init() { | |
| 148 | + | ||
| 149 | + | core.SetPackageName("GDK", "gtk4") | |
| 150 | + | ||
| 151 | + | core.SetSharedLibrary("GDK", "libgtk-4.so.1") | |
| 148 | 152 | lib, err := purego.Dlopen(core.GetPath("GDK"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 149 | 153 | if err != nil { | |
| 150 | 154 | panic(err) | |
M v4/gdk/gdkpopuplayout.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 11 | ) | |
| 12 | 12 | ||
| @@ -277,6 +277,10 @@ const ( | |||
| 277 | 277 | ) | |
| 278 | 278 | ||
| 279 | 279 | func init() { | |
| 280 | + | ||
| 281 | + | core.SetPackageName("GDK", "gtk4") | |
| 282 | + | ||
| 283 | + | core.SetSharedLibrary("GDK", "libgtk-4.so.1") | |
| 280 | 284 | lib, err := purego.Dlopen(core.GetPath("GDK"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 281 | 285 | if err != nil { | |
| 282 | 286 | panic(err) | |
M v4/gdk/gdkrgba.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 11 | ) | |
| 12 | 12 | ||
| @@ -151,6 +151,10 @@ func (x *RGBA) ToString() string { | |||
| 151 | 151 | } | |
| 152 | 152 | ||
| 153 | 153 | func init() { | |
| 154 | + | ||
| 155 | + | core.SetPackageName("GDK", "gtk4") | |
| 156 | + | ||
| 157 | + | core.SetSharedLibrary("GDK", "libgtk-4.so.1") | |
| 154 | 158 | lib, err := purego.Dlopen(core.GetPath("GDK"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 155 | 159 | if err != nil { | |
| 156 | 160 | panic(err) | |
M v4/gdk/gdkseat.go +5 -1
| @@ -5,7 +5,7 @@ import ( | |||
| 5 | 5 | "unsafe" | |
| 6 | 6 | ||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 8 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -234,6 +234,10 @@ func (x *Seat) ConnectToolRemoved(cb *func(Seat, uintptr)) uint32 { | |||
| 234 | 234 | } | |
| 235 | 235 | ||
| 236 | 236 | func init() { | |
| 237 | + | ||
| 238 | + | core.SetPackageName("GDK", "gtk4") | |
| 239 | + | ||
| 240 | + | core.SetSharedLibrary("GDK", "libgtk-4.so.1") | |
| 237 | 241 | lib, err := purego.Dlopen(core.GetPath("GDK"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 238 | 242 | if err != nil { | |
| 239 | 243 | panic(err) | |
M v4/gdk/gdksurface.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/cairo" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| @@ -599,6 +599,10 @@ func (x *Surface) ConnectRender(cb *func(Surface, uintptr) bool) uint32 { | |||
| 599 | 599 | } | |
| 600 | 600 | ||
| 601 | 601 | func init() { | |
| 602 | + | ||
| 603 | + | core.SetPackageName("GDK", "gtk4") | |
| 604 | + | ||
| 605 | + | core.SetSharedLibrary("GDK", "libgtk-4.so.1") | |
| 602 | 606 | lib, err := purego.Dlopen(core.GetPath("GDK"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 603 | 607 | if err != nil { | |
| 604 | 608 | panic(err) | |
M v4/gdk/gdktexture.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gdkpixbuf" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| @@ -573,6 +573,10 @@ func (x *Texture) LoadFinish(ResVar gio.AsyncResult, TypeVar string) (*gio.Input | |||
| 573 | 573 | } | |
| 574 | 574 | ||
| 575 | 575 | func init() { | |
| 576 | + | ||
| 577 | + | core.SetPackageName("GDK", "gtk4") | |
| 578 | + | ||
| 579 | + | core.SetSharedLibrary("GDK", "libgtk-4.so.1") | |
| 576 | 580 | lib, err := purego.Dlopen(core.GetPath("GDK"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 577 | 581 | if err != nil { | |
| 578 | 582 | panic(err) | |
M v4/gdk/gdktoplevel.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | ) | |
| @@ -408,6 +408,10 @@ const ( | |||
| 408 | 408 | ) | |
| 409 | 409 | ||
| 410 | 410 | func init() { | |
| 411 | + | ||
| 412 | + | core.SetPackageName("GDK", "gtk4") | |
| 413 | + | ||
| 414 | + | core.SetSharedLibrary("GDK", "libgtk-4.so.1") | |
| 411 | 415 | lib, err := purego.Dlopen(core.GetPath("GDK"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 412 | 416 | if err != nil { | |
| 413 | 417 | panic(err) | |
M v4/gdk/gdktoplevellayout.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | ) | |
| @@ -166,6 +166,10 @@ func (x *ToplevelLayout) Unref() { | |||
| 166 | 166 | } | |
| 167 | 167 | ||
| 168 | 168 | func init() { | |
| 169 | + | ||
| 170 | + | core.SetPackageName("GDK", "gtk4") | |
| 171 | + | ||
| 172 | + | core.SetSharedLibrary("GDK", "libgtk-4.so.1") | |
| 169 | 173 | lib, err := purego.Dlopen(core.GetPath("GDK"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 170 | 174 | if err != nil { | |
| 171 | 175 | panic(err) | |
M v4/gdk/gdktoplevelsize.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 11 | ) | |
| 12 | 12 | ||
| @@ -88,6 +88,10 @@ func ToplevelSizeGetType() types.GType { | |||
| 88 | 88 | } | |
| 89 | 89 | ||
| 90 | 90 | func init() { | |
| 91 | + | ||
| 92 | + | core.SetPackageName("GDK", "gtk4") | |
| 93 | + | ||
| 94 | + | core.SetSharedLibrary("GDK", "libgtk-4.so.1") | |
| 91 | 95 | lib, err := purego.Dlopen(core.GetPath("GDK"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 92 | 96 | if err != nil { | |
| 93 | 97 | panic(err) | |
M v4/gdk/gdktypes.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | ) | |
| @@ -357,6 +357,10 @@ const ( | |||
| 357 | 357 | ) | |
| 358 | 358 | ||
| 359 | 359 | func init() { | |
| 360 | + | ||
| 361 | + | core.SetPackageName("GDK", "gtk4") | |
| 362 | + | ||
| 363 | + | core.SetSharedLibrary("GDK", "libgtk-4.so.1") | |
| 360 | 364 | lib, err := purego.Dlopen(core.GetPath("GDK"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 361 | 365 | if err != nil { | |
| 362 | 366 | panic(err) | |
M v4/gdk/main.go +5 -1
| @@ -3,7 +3,7 @@ package gdk | |||
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | 5 | "github.com/jwijenbergh/purego" | |
| 6 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 6 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 7 | 7 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 9 | 9 | ) | |
| @@ -49,6 +49,10 @@ func VulkanErrorQuark() glib.Quark { | |||
| 49 | 49 | } | |
| 50 | 50 | ||
| 51 | 51 | func init() { | |
| 52 | + | ||
| 53 | + | core.SetPackageName("GDK", "gtk4") | |
| 54 | + | ||
| 55 | + | core.SetSharedLibrary("GDK", "libgtk-4.so.1") | |
| 52 | 56 | lib, err := purego.Dlopen(core.GetPath("GDK"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 53 | 57 | if err != nil { | |
| 54 | 58 | panic(err) | |
M v4/gdkpixbuf/gdk-pixbuf-animation.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| @@ -455,6 +455,10 @@ func (c *PixbufAnimationIter) SetGoPointer(ptr uintptr) { | |||
| 455 | 455 | } | |
| 456 | 456 | ||
| 457 | 457 | func init() { | |
| 458 | + | ||
| 459 | + | core.SetPackageName("GDKPIXBUF", "gdk-pixbuf-2.0") | |
| 460 | + | ||
| 461 | + | core.SetSharedLibrary("GDKPIXBUF", "libgdk_pixbuf-2.0.so.0") | |
| 458 | 462 | lib, err := purego.Dlopen(core.GetPath("GDKPIXBUF"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 459 | 463 | if err != nil { | |
| 460 | 464 | panic(err) | |
M v4/gdkpixbuf/gdk-pixbuf-io.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gmodule" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -406,6 +406,10 @@ const ( | |||
| 406 | 406 | ) | |
| 407 | 407 | ||
| 408 | 408 | func init() { | |
| 409 | + | ||
| 410 | + | core.SetPackageName("GDKPIXBUF", "gdk-pixbuf-2.0") | |
| 411 | + | ||
| 412 | + | core.SetSharedLibrary("GDKPIXBUF", "libgdk_pixbuf-2.0.so.0") | |
| 409 | 413 | lib, err := purego.Dlopen(core.GetPath("GDKPIXBUF"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 410 | 414 | if err != nil { | |
| 411 | 415 | panic(err) | |
M v4/gdkpixbuf/gdk-pixbuf-loader.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -419,6 +419,10 @@ func (x *PixbufLoader) ConnectSizePrepared(cb *func(PixbufLoader, int, int)) uin | |||
| 419 | 419 | } | |
| 420 | 420 | ||
| 421 | 421 | func init() { | |
| 422 | + | ||
| 423 | + | core.SetPackageName("GDKPIXBUF", "gdk-pixbuf-2.0") | |
| 424 | + | ||
| 425 | + | core.SetSharedLibrary("GDKPIXBUF", "libgdk_pixbuf-2.0.so.0") | |
| 422 | 426 | lib, err := purego.Dlopen(core.GetPath("GDKPIXBUF"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 423 | 427 | if err != nil { | |
| 424 | 428 | panic(err) | |
M v4/gdkpixbuf/gdk-pixbuf-simple-anim.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 11 | ) | |
| 12 | 12 | ||
| @@ -92,6 +92,10 @@ func (c *PixbufSimpleAnim) SetGoPointer(ptr uintptr) { | |||
| 92 | 92 | } | |
| 93 | 93 | ||
| 94 | 94 | func init() { | |
| 95 | + | ||
| 96 | + | core.SetPackageName("GDKPIXBUF", "gdk-pixbuf-2.0") | |
| 97 | + | ||
| 98 | + | core.SetSharedLibrary("GDKPIXBUF", "libgdk_pixbuf-2.0.so.0") | |
| 95 | 99 | lib, err := purego.Dlopen(core.GetPath("GDKPIXBUF"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 96 | 100 | if err != nil { | |
| 97 | 101 | panic(err) | |
M v4/gdkpixbuf/gdk-pixbuf.go +5 -1
| @@ -3,7 +3,7 @@ package gdkpixbuf | |||
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | 5 | "github.com/jwijenbergh/purego" | |
| 6 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 6 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 7 | 7 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| @@ -1575,6 +1575,10 @@ func PixbufSaveToStreamFinish(AsyncResultVar gio.AsyncResult) (bool, error) { | |||
| 1575 | 1575 | } | |
| 1576 | 1576 | ||
| 1577 | 1577 | func init() { | |
| 1578 | + | ||
| 1579 | + | core.SetPackageName("GDKPIXBUF", "gdk-pixbuf-2.0") | |
| 1580 | + | ||
| 1581 | + | core.SetSharedLibrary("GDKPIXBUF", "libgdk_pixbuf-2.0.so.0") | |
| 1578 | 1582 | lib, err := purego.Dlopen(core.GetPath("GDKPIXBUF"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 1579 | 1583 | if err != nil { | |
| 1580 | 1584 | panic(err) | |
M v4/gdkpixbuf/main.go +5 -1
| @@ -3,7 +3,7 @@ package gdkpixbuf | |||
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | 5 | "github.com/jwijenbergh/purego" | |
| 6 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 6 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 7 | 7 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 9 | 9 | ) | |
| @@ -86,6 +86,10 @@ func (c *PixbufSimpleAnimIter) SetGoPointer(ptr uintptr) { | |||
| 86 | 86 | } | |
| 87 | 87 | ||
| 88 | 88 | func init() { | |
| 89 | + | ||
| 90 | + | core.SetPackageName("GDKPIXBUF", "gdk-pixbuf-2.0") | |
| 91 | + | ||
| 92 | + | core.SetSharedLibrary("GDKPIXBUF", "libgdk_pixbuf-2.0.so.0") | |
| 89 | 93 | lib, err := purego.Dlopen(core.GetPath("GDKPIXBUF"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 90 | 94 | if err != nil { | |
| 91 | 95 | panic(err) | |
M v4/gio/gaction.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | ) | |
| @@ -281,6 +281,10 @@ func ActionPrintDetailedName(ActionNameVar string, TargetValueVar *glib.Variant) | |||
| 281 | 281 | } | |
| 282 | 282 | ||
| 283 | 283 | func init() { | |
| 284 | + | ||
| 285 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 286 | + | ||
| 287 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 284 | 288 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 285 | 289 | if err != nil { | |
| 286 | 290 | panic(err) | |
M v4/gio/gactiongroup.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | ) | |
| @@ -354,6 +354,10 @@ var XGActionGroupListActions func(uintptr) []string | |||
| 354 | 354 | var XGActionGroupQueryAction func(uintptr, string, bool, **glib.VariantType, **glib.VariantType, **glib.Variant, **glib.Variant) bool | |
| 355 | 355 | ||
| 356 | 356 | func init() { | |
| 357 | + | ||
| 358 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 359 | + | ||
| 360 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 357 | 361 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 358 | 362 | if err != nil { | |
| 359 | 363 | panic(err) | |
M v4/gio/gactionmap.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | ) | |
| @@ -180,6 +180,10 @@ var XGActionMapLookupAction func(uintptr, string) uintptr | |||
| 180 | 180 | var XGActionMapRemoveAction func(uintptr, string) | |
| 181 | 181 | ||
| 182 | 182 | func init() { | |
| 183 | + | ||
| 184 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 185 | + | ||
| 186 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 183 | 187 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 184 | 188 | if err != nil { | |
| 185 | 189 | panic(err) | |
M v4/gio/gappinfo.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -843,6 +843,10 @@ func (x *AppLaunchContext) ConnectLaunched(cb *func(AppLaunchContext, uintptr, u | |||
| 843 | 843 | } | |
| 844 | 844 | ||
| 845 | 845 | func init() { | |
| 846 | + | ||
| 847 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 848 | + | ||
| 849 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 846 | 850 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 847 | 851 | if err != nil { | |
| 848 | 852 | panic(err) | |
M v4/gio/gapplication.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -1504,6 +1504,10 @@ func ApplicationIdIsValid(ApplicationIdVar string) bool { | |||
| 1504 | 1504 | } | |
| 1505 | 1505 | ||
| 1506 | 1506 | func init() { | |
| 1507 | + | ||
| 1508 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 1509 | + | ||
| 1510 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 1507 | 1511 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 1508 | 1512 | if err != nil { | |
| 1509 | 1513 | panic(err) | |
M v4/gio/gapplicationcommandline.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -465,6 +465,10 @@ func (c *ApplicationCommandLine) SetGoPointer(ptr uintptr) { | |||
| 465 | 465 | } | |
| 466 | 466 | ||
| 467 | 467 | func init() { | |
| 468 | + | ||
| 469 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 470 | + | ||
| 471 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 468 | 472 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 469 | 473 | if err != nil { | |
| 470 | 474 | panic(err) | |
M v4/gio/gasyncinitable.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -255,6 +255,10 @@ func AsyncInitableNewvAsync(ObjectTypeVar types.GType, NParametersVar uint, Para | |||
| 255 | 255 | } | |
| 256 | 256 | ||
| 257 | 257 | func init() { | |
| 258 | + | ||
| 259 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 260 | + | ||
| 261 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 258 | 262 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 259 | 263 | if err != nil { | |
| 260 | 264 | panic(err) | |
M v4/gio/gasyncresult.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -199,6 +199,10 @@ var XGAsyncResultIsTagged func(uintptr, uintptr) bool | |||
| 199 | 199 | var XGAsyncResultLegacyPropagateError func(uintptr) bool | |
| 200 | 200 | ||
| 201 | 201 | func init() { | |
| 202 | + | ||
| 203 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 204 | + | ||
| 205 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 202 | 206 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 203 | 207 | if err != nil { | |
| 204 | 208 | panic(err) | |
M v4/gio/gbufferedinputstream.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | ) | |
| @@ -313,6 +313,10 @@ func (x *BufferedInputStream) Truncate(OffsetVar int64, CancellableVar *Cancella | |||
| 313 | 313 | } | |
| 314 | 314 | ||
| 315 | 315 | func init() { | |
| 316 | + | ||
| 317 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 318 | + | ||
| 319 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 316 | 320 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 317 | 321 | if err != nil { | |
| 318 | 322 | panic(err) | |
M v4/gio/gbufferedoutputstream.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | ) | |
| @@ -209,6 +209,10 @@ func (x *BufferedOutputStream) Truncate(OffsetVar int64, CancellableVar *Cancell | |||
| 209 | 209 | } | |
| 210 | 210 | ||
| 211 | 211 | func init() { | |
| 212 | + | ||
| 213 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 214 | + | ||
| 215 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 212 | 216 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 213 | 217 | if err != nil { | |
| 214 | 218 | panic(err) | |
M v4/gio/gcancellable.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -395,6 +395,10 @@ func CancellableGetCurrent() *Cancellable { | |||
| 395 | 395 | } | |
| 396 | 396 | ||
| 397 | 397 | func init() { | |
| 398 | + | ||
| 399 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 400 | + | ||
| 401 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 398 | 402 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 399 | 403 | if err != nil { | |
| 400 | 404 | panic(err) | |
M v4/gio/gcharsetconverter.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -251,6 +251,10 @@ func (x *CharsetConverter) Init(CancellableVar *Cancellable) (bool, error) { | |||
| 251 | 251 | } | |
| 252 | 252 | ||
| 253 | 253 | func init() { | |
| 254 | + | ||
| 255 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 256 | + | ||
| 257 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 254 | 258 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 255 | 259 | if err != nil { | |
| 256 | 260 | panic(err) | |
M v4/gio/gcontenttype.go +5 -1
| @@ -3,7 +3,7 @@ package gio | |||
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | 5 | "github.com/jwijenbergh/purego" | |
| 6 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 6 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 7 | 7 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 8 | 8 | ) | |
| 9 | 9 | ||
| @@ -216,6 +216,10 @@ func ContentTypesGetRegistered() *glib.List { | |||
| 216 | 216 | } | |
| 217 | 217 | ||
| 218 | 218 | func init() { | |
| 219 | + | ||
| 220 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 221 | + | ||
| 222 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 219 | 223 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 220 | 224 | if err != nil { | |
| 221 | 225 | panic(err) | |
M v4/gio/gconverter.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | ) | |
| @@ -165,6 +165,10 @@ var XGConverterConvert func(uintptr, []byte, uint, []byte, uint, ConverterFlags, | |||
| 165 | 165 | var XGConverterReset func(uintptr) | |
| 166 | 166 | ||
| 167 | 167 | func init() { | |
| 168 | + | ||
| 169 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 170 | + | ||
| 171 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 168 | 172 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 169 | 173 | if err != nil { | |
| 170 | 174 | panic(err) | |
M v4/gio/gconverterinputstream.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -159,6 +159,10 @@ func (x *ConverterInputStream) ReadNonblocking(BufferVar []byte, CountVar uint, | |||
| 159 | 159 | } | |
| 160 | 160 | ||
| 161 | 161 | func init() { | |
| 162 | + | ||
| 163 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 164 | + | ||
| 165 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 162 | 166 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 163 | 167 | if err != nil { | |
| 164 | 168 | panic(err) | |
M v4/gio/gconverteroutputstream.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -190,6 +190,10 @@ func (x *ConverterOutputStream) WritevNonblocking(VectorsVar []OutputVector, NVe | |||
| 190 | 190 | } | |
| 191 | 191 | ||
| 192 | 192 | func init() { | |
| 193 | + | ||
| 194 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 195 | + | ||
| 196 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 193 | 197 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 194 | 198 | if err != nil { | |
| 195 | 199 | panic(err) | |
M v4/gio/gcredentials.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -217,6 +217,10 @@ func (c *Credentials) SetGoPointer(ptr uintptr) { | |||
| 217 | 217 | } | |
| 218 | 218 | ||
| 219 | 219 | func init() { | |
| 220 | + | ||
| 221 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 222 | + | ||
| 223 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 220 | 224 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 221 | 225 | if err != nil { | |
| 222 | 226 | panic(err) | |
M v4/gio/gdatagrambased.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | ) | |
| @@ -303,6 +303,10 @@ var XGDatagramBasedReceiveMessages func(uintptr, []InputMessage, uint, int, int6 | |||
| 303 | 303 | var XGDatagramBasedSendMessages func(uintptr, []OutputMessage, uint, int, int64, uintptr, **glib.Error) int | |
| 304 | 304 | ||
| 305 | 305 | func init() { | |
| 306 | + | ||
| 307 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 308 | + | ||
| 309 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 306 | 310 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 307 | 311 | if err != nil { | |
| 308 | 312 | panic(err) | |
M v4/gio/gdatainputstream.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | ) | |
| @@ -529,6 +529,10 @@ func (x *DataInputStream) Truncate(OffsetVar int64, CancellableVar *Cancellable) | |||
| 529 | 529 | } | |
| 530 | 530 | ||
| 531 | 531 | func init() { | |
| 532 | + | ||
| 533 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 534 | + | ||
| 535 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 532 | 536 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 533 | 537 | if err != nil { | |
| 534 | 538 | panic(err) | |
M v4/gio/gdataoutputstream.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | ) | |
| @@ -272,6 +272,10 @@ func (x *DataOutputStream) Truncate(OffsetVar int64, CancellableVar *Cancellable | |||
| 272 | 272 | } | |
| 273 | 273 | ||
| 274 | 274 | func init() { | |
| 275 | + | ||
| 276 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 277 | + | ||
| 278 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 275 | 279 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 276 | 280 | if err != nil { | |
| 277 | 281 | panic(err) | |
M v4/gio/gdbusaddress.go +5 -1
| @@ -3,7 +3,7 @@ package gio | |||
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | 5 | "github.com/jwijenbergh/purego" | |
| 6 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 6 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 7 | 7 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 8 | 8 | ) | |
| 9 | 9 | ||
| @@ -146,6 +146,10 @@ func DbusIsSupportedAddress(StringVar string) (bool, error) { | |||
| 146 | 146 | } | |
| 147 | 147 | ||
| 148 | 148 | func init() { | |
| 149 | + | ||
| 150 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 151 | + | ||
| 152 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 149 | 153 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 150 | 154 | if err != nil { | |
| 151 | 155 | panic(err) | |
M v4/gio/gdbusconnection.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | ) | |
| 12 | 12 | ||
| @@ -291,6 +291,10 @@ func BusGetSync(BusTypeVar BusType, CancellableVar *Cancellable) (*DBusConnectio | |||
| 291 | 291 | } | |
| 292 | 292 | ||
| 293 | 293 | func init() { | |
| 294 | + | ||
| 295 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 296 | + | ||
| 297 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 294 | 298 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 295 | 299 | if err != nil { | |
| 296 | 300 | panic(err) | |
M v4/gio/gdbuserror.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | ) | |
| 12 | 12 | ||
| @@ -149,6 +149,10 @@ func DbusErrorUnregisterError(ErrorDomainVar glib.Quark, ErrorCodeVar int, DbusE | |||
| 149 | 149 | } | |
| 150 | 150 | ||
| 151 | 151 | func init() { | |
| 152 | + | ||
| 153 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 154 | + | ||
| 155 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 152 | 156 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 153 | 157 | if err != nil { | |
| 154 | 158 | panic(err) | |
M v4/gio/gdbusinterface.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | ) | |
| @@ -111,6 +111,10 @@ var XGDbusInterfaceGetObject func(uintptr) uintptr | |||
| 111 | 111 | var XGDbusInterfaceSetObject func(uintptr, uintptr) | |
| 112 | 112 | ||
| 113 | 113 | func init() { | |
| 114 | + | ||
| 115 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 116 | + | ||
| 117 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 114 | 118 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 115 | 119 | if err != nil { | |
| 116 | 120 | panic(err) | |
M v4/gio/gdbusinterfaceskeleton.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -311,6 +311,10 @@ func (x *DBusInterfaceSkeleton) SetObject(ObjectVar DBusObject) { | |||
| 311 | 311 | } | |
| 312 | 312 | ||
| 313 | 313 | func init() { | |
| 314 | + | ||
| 315 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 316 | + | ||
| 317 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 314 | 318 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 315 | 319 | if err != nil { | |
| 316 | 320 | panic(err) | |
M v4/gio/gdbusintrospection.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | ) | |
| @@ -464,6 +464,10 @@ func DbusAnnotationInfoLookup(AnnotationsVar uintptr, NameVar string) string { | |||
| 464 | 464 | } | |
| 465 | 465 | ||
| 466 | 466 | func init() { | |
| 467 | + | ||
| 468 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 469 | + | ||
| 470 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 467 | 471 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 468 | 472 | if err != nil { | |
| 469 | 473 | panic(err) | |
M v4/gio/gdbusnameowning.go +5 -1
| @@ -3,7 +3,7 @@ package gio | |||
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | 5 | "github.com/jwijenbergh/purego" | |
| 6 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 6 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 7 | 7 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 9 | 9 | ) | |
| @@ -121,6 +121,10 @@ func BusUnownName(OwnerIdVar uint) { | |||
| 121 | 121 | } | |
| 122 | 122 | ||
| 123 | 123 | func init() { | |
| 124 | + | ||
| 125 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 126 | + | ||
| 127 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 124 | 128 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 125 | 129 | if err != nil { | |
| 126 | 130 | panic(err) | |
M v4/gio/gdbusnamewatching.go +5 -1
| @@ -3,7 +3,7 @@ package gio | |||
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | 5 | "github.com/jwijenbergh/purego" | |
| 6 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 6 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 7 | 7 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 9 | 9 | ) | |
| @@ -102,6 +102,10 @@ func BusWatchNameWithClosures(BusTypeVar BusType, NameVar string, FlagsVar BusNa | |||
| 102 | 102 | } | |
| 103 | 103 | ||
| 104 | 104 | func init() { | |
| 105 | + | ||
| 106 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 107 | + | ||
| 108 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 105 | 109 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 106 | 110 | if err != nil { | |
| 107 | 111 | panic(err) | |
M v4/gio/gdbusobject.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | ) | |
| @@ -89,6 +89,10 @@ var XGDbusObjectGetInterfaces func(uintptr) *glib.List | |||
| 89 | 89 | var XGDbusObjectGetObjectPath func(uintptr) string | |
| 90 | 90 | ||
| 91 | 91 | func init() { | |
| 92 | + | ||
| 93 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 94 | + | ||
| 95 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 92 | 96 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 93 | 97 | if err != nil { | |
| 94 | 98 | panic(err) | |
M v4/gio/gdbusobjectmanager.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | ) | |
| @@ -108,6 +108,10 @@ var XGDbusObjectManagerGetObjectPath func(uintptr) string | |||
| 108 | 108 | var XGDbusObjectManagerGetObjects func(uintptr) *glib.List | |
| 109 | 109 | ||
| 110 | 110 | func init() { | |
| 111 | + | ||
| 112 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 113 | + | ||
| 114 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 111 | 115 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 112 | 116 | if err != nil { | |
| 113 | 117 | panic(err) | |
M v4/gio/gdbusobjectmanagerclient.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -534,6 +534,10 @@ func DBusObjectManagerClientNewForBus(BusTypeVar BusType, FlagsVar DBusObjectMan | |||
| 534 | 534 | } | |
| 535 | 535 | ||
| 536 | 536 | func init() { | |
| 537 | + | ||
| 538 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 539 | + | ||
| 540 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 537 | 541 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 538 | 542 | if err != nil { | |
| 539 | 543 | panic(err) | |
M v4/gio/gdbusobjectmanagerserver.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -226,6 +226,10 @@ func (x *DBusObjectManagerServer) GetObjects() *glib.List { | |||
| 226 | 226 | } | |
| 227 | 227 | ||
| 228 | 228 | func init() { | |
| 229 | + | ||
| 230 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 231 | + | ||
| 232 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 229 | 233 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 230 | 234 | if err != nil { | |
| 231 | 235 | panic(err) | |
M v4/gio/gdbusobjectproxy.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -128,6 +128,10 @@ func (x *DBusObjectProxy) GetObjectPath() string { | |||
| 128 | 128 | } | |
| 129 | 129 | ||
| 130 | 130 | func init() { | |
| 131 | + | ||
| 132 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 133 | + | ||
| 134 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 131 | 135 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 132 | 136 | if err != nil { | |
| 133 | 137 | panic(err) | |
M v4/gio/gdbusobjectskeleton.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -194,6 +194,10 @@ func (x *DBusObjectSkeleton) GetObjectPath() string { | |||
| 194 | 194 | } | |
| 195 | 195 | ||
| 196 | 196 | func init() { | |
| 197 | + | ||
| 198 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 199 | + | ||
| 200 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 197 | 201 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 198 | 202 | if err != nil { | |
| 199 | 203 | panic(err) | |
M v4/gio/gdbusproxy.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -826,6 +826,10 @@ func DBusProxyNewForBus(BusTypeVar BusType, FlagsVar DBusProxyFlags, InfoVar *DB | |||
| 826 | 826 | } | |
| 827 | 827 | ||
| 828 | 828 | func init() { | |
| 829 | + | ||
| 830 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 831 | + | ||
| 832 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 829 | 833 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 830 | 834 | if err != nil { | |
| 831 | 835 | panic(err) | |
M v4/gio/gdbusutils.go +5 -1
| @@ -3,7 +3,7 @@ package gio | |||
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | 5 | "github.com/jwijenbergh/purego" | |
| 6 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 6 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 7 | 7 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 9 | 9 | ) | |
| @@ -193,6 +193,10 @@ func DbusUnescapeObjectPath(SVar string) uintptr { | |||
| 193 | 193 | } | |
| 194 | 194 | ||
| 195 | 195 | func init() { | |
| 196 | + | ||
| 197 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 198 | + | ||
| 199 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 196 | 200 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 197 | 201 | if err != nil { | |
| 198 | 202 | panic(err) | |
M v4/gio/gdebugcontroller.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 11 | ) | |
| 12 | 12 | ||
| @@ -88,6 +88,10 @@ const ( | |||
| 88 | 88 | ) | |
| 89 | 89 | ||
| 90 | 90 | func init() { | |
| 91 | + | ||
| 92 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 93 | + | ||
| 94 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 91 | 95 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 92 | 96 | if err != nil { | |
| 93 | 97 | panic(err) | |
M v4/gio/gdebugcontrollerdbus.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -315,6 +315,10 @@ func (x *DebugControllerDBus) Init(CancellableVar *Cancellable) (bool, error) { | |||
| 315 | 315 | } | |
| 316 | 316 | ||
| 317 | 317 | func init() { | |
| 318 | + | ||
| 319 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 320 | + | ||
| 321 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 318 | 322 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 319 | 323 | if err != nil { | |
| 320 | 324 | panic(err) | |
M v4/gio/gdesktopappinfo.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -776,6 +776,10 @@ func DesktopAppInfoSetDesktopEnv(DesktopEnvVar string) { | |||
| 776 | 776 | } | |
| 777 | 777 | ||
| 778 | 778 | func init() { | |
| 779 | + | ||
| 780 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 781 | + | ||
| 782 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 779 | 783 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 780 | 784 | if err != nil { | |
| 781 | 785 | panic(err) | |
M v4/gio/gdrive.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | ) | |
| @@ -401,6 +401,10 @@ const ( | |||
| 401 | 401 | ) | |
| 402 | 402 | ||
| 403 | 403 | func init() { | |
| 404 | + | ||
| 405 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 406 | + | ||
| 407 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 404 | 408 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 405 | 409 | if err != nil { | |
| 406 | 410 | panic(err) | |
M v4/gio/gdtlsclientconnection.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -139,6 +139,10 @@ func DtlsClientConnectionNew(BaseSocketVar DatagramBased, ServerIdentityVar Sock | |||
| 139 | 139 | } | |
| 140 | 140 | ||
| 141 | 141 | func init() { | |
| 142 | + | ||
| 143 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 144 | + | ||
| 145 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 142 | 146 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 143 | 147 | if err != nil { | |
| 144 | 148 | panic(err) | |
M v4/gio/gdtlsconnection.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -552,6 +552,10 @@ var XGDtlsConnectionShutdownAsync func(uintptr, bool, bool, int, uintptr, uintpt | |||
| 552 | 552 | var XGDtlsConnectionShutdownFinish func(uintptr, uintptr, **glib.Error) bool | |
| 553 | 553 | ||
| 554 | 554 | func init() { | |
| 555 | + | ||
| 556 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 557 | + | ||
| 558 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 555 | 559 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 556 | 560 | if err != nil { | |
| 557 | 561 | panic(err) | |
M v4/gio/gdtlsserverconnection.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | ) | |
| @@ -72,6 +72,10 @@ func DtlsServerConnectionNew(BaseSocketVar DatagramBased, CertificateVar *TlsCer | |||
| 72 | 72 | } | |
| 73 | 73 | ||
| 74 | 74 | func init() { | |
| 75 | + | ||
| 76 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 77 | + | ||
| 78 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 75 | 79 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 76 | 80 | if err != nil { | |
| 77 | 81 | panic(err) | |
M v4/gio/gemblem.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -152,6 +152,10 @@ func (x *Emblem) ToString() string { | |||
| 152 | 152 | } | |
| 153 | 153 | ||
| 154 | 154 | func init() { | |
| 155 | + | ||
| 156 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 157 | + | ||
| 158 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 155 | 159 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 156 | 160 | if err != nil { | |
| 157 | 161 | panic(err) | |
M v4/gio/gemblemedicon.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -164,6 +164,10 @@ func (x *EmblemedIcon) ToString() string { | |||
| 164 | 164 | } | |
| 165 | 165 | ||
| 166 | 166 | func init() { | |
| 167 | + | ||
| 168 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 169 | + | ||
| 170 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 167 | 171 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 168 | 172 | if err != nil { | |
| 169 | 173 | panic(err) | |
M v4/gio/gfile.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -3006,6 +3006,10 @@ func FileParseName(ParseNameVar string) *FileBase { | |||
| 3006 | 3006 | } | |
| 3007 | 3007 | ||
| 3008 | 3008 | func init() { | |
| 3009 | + | ||
| 3010 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 3011 | + | ||
| 3012 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 3009 | 3013 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 3010 | 3014 | if err != nil { | |
| 3011 | 3015 | panic(err) | |
M v4/gio/gfileattribute.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 11 | ) | |
| 12 | 12 | ||
| @@ -102,6 +102,10 @@ func (x *FileAttributeInfoList) Unref() { | |||
| 102 | 102 | } | |
| 103 | 103 | ||
| 104 | 104 | func init() { | |
| 105 | + | ||
| 106 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 107 | + | ||
| 108 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 105 | 109 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 106 | 110 | if err != nil { | |
| 107 | 111 | panic(err) | |
M v4/gio/gfiledescriptorbased.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 11 | ) | |
| 12 | 12 | ||
| @@ -64,6 +64,10 @@ func (x *FileDescriptorBasedBase) GetFd() int { | |||
| 64 | 64 | var XGFileDescriptorBasedGetFd func(uintptr) int | |
| 65 | 65 | ||
| 66 | 66 | func init() { | |
| 67 | + | ||
| 68 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 69 | + | ||
| 70 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 67 | 71 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 68 | 72 | if err != nil { | |
| 69 | 73 | panic(err) | |
M v4/gio/gfileenumerator.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -340,6 +340,10 @@ func (c *FileEnumerator) SetGoPointer(ptr uintptr) { | |||
| 340 | 340 | } | |
| 341 | 341 | ||
| 342 | 342 | func init() { | |
| 343 | + | ||
| 344 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 345 | + | ||
| 346 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 343 | 347 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 344 | 348 | if err != nil { | |
| 345 | 349 | panic(err) | |
M v4/gio/gfileicon.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -171,6 +171,10 @@ func (x *FileIcon) LoadFinish(ResVar AsyncResult, TypeVar string) (*InputStream, | |||
| 171 | 171 | } | |
| 172 | 172 | ||
| 173 | 173 | func init() { | |
| 174 | + | ||
| 175 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 176 | + | ||
| 177 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 174 | 178 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 175 | 179 | if err != nil { | |
| 176 | 180 | panic(err) | |
M v4/gio/gfileinfo.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -1362,6 +1362,10 @@ func (c *FileInfo) SetGoPointer(ptr uintptr) { | |||
| 1362 | 1362 | } | |
| 1363 | 1363 | ||
| 1364 | 1364 | func init() { | |
| 1365 | + | ||
| 1366 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 1367 | + | ||
| 1368 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 1365 | 1369 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 1366 | 1370 | if err != nil { | |
| 1367 | 1371 | panic(err) | |
M v4/gio/gfileinputstream.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | ) | |
| @@ -198,6 +198,10 @@ func (x *FileInputStream) Truncate(OffsetVar int64, CancellableVar *Cancellable) | |||
| 198 | 198 | } | |
| 199 | 199 | ||
| 200 | 200 | func init() { | |
| 201 | + | ||
| 202 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 203 | + | ||
| 204 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 201 | 205 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 202 | 206 | if err != nil { | |
| 203 | 207 | panic(err) | |
M v4/gio/gfileiostream.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | ) | |
| @@ -228,6 +228,10 @@ func (x *FileIOStream) Truncate(OffsetVar int64, CancellableVar *Cancellable) (b | |||
| 228 | 228 | } | |
| 229 | 229 | ||
| 230 | 230 | func init() { | |
| 231 | + | ||
| 232 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 233 | + | ||
| 234 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 231 | 235 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 232 | 236 | if err != nil { | |
| 233 | 237 | panic(err) | |
M v4/gio/gfilemonitor.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -162,6 +162,10 @@ func (x *FileMonitor) ConnectChanged(cb *func(FileMonitor, uintptr, uintptr, Fil | |||
| 162 | 162 | } | |
| 163 | 163 | ||
| 164 | 164 | func init() { | |
| 165 | + | ||
| 166 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 167 | + | ||
| 168 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 165 | 169 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 166 | 170 | if err != nil { | |
| 167 | 171 | panic(err) | |
M v4/gio/gfilenamecompleter.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -117,6 +117,10 @@ func (x *FilenameCompleter) ConnectGotCompletionData(cb *func(FilenameCompleter) | |||
| 117 | 117 | } | |
| 118 | 118 | ||
| 119 | 119 | func init() { | |
| 120 | + | ||
| 121 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 122 | + | ||
| 123 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 120 | 124 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 121 | 125 | if err != nil { | |
| 122 | 126 | panic(err) | |
M v4/gio/gfileoutputstream.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | ) | |
| @@ -222,6 +222,10 @@ func (x *FileOutputStream) Truncate(OffsetVar int64, CancellableVar *Cancellable | |||
| 222 | 222 | } | |
| 223 | 223 | ||
| 224 | 224 | func init() { | |
| 225 | + | ||
| 226 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 227 | + | ||
| 228 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 225 | 229 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 226 | 230 | if err != nil { | |
| 227 | 231 | panic(err) | |
M v4/gio/gfilterinputstream.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | ) | |
| @@ -89,6 +89,10 @@ func (c *FilterInputStream) SetGoPointer(ptr uintptr) { | |||
| 89 | 89 | } | |
| 90 | 90 | ||
| 91 | 91 | func init() { | |
| 92 | + | ||
| 93 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 94 | + | ||
| 95 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 92 | 96 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 93 | 97 | if err != nil { | |
| 94 | 98 | panic(err) | |
M v4/gio/gfilteroutputstream.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | ) | |
| @@ -89,6 +89,10 @@ func (c *FilterOutputStream) SetGoPointer(ptr uintptr) { | |||
| 89 | 89 | } | |
| 90 | 90 | ||
| 91 | 91 | func init() { | |
| 92 | + | ||
| 93 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 94 | + | ||
| 95 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 92 | 96 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 93 | 97 | if err != nil { | |
| 94 | 98 | panic(err) | |
M v4/gio/gicon.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | ) | |
| @@ -177,6 +177,10 @@ func IconNewForString(StrVar string) (*IconBase, error) { | |||
| 177 | 177 | } | |
| 178 | 178 | ||
| 179 | 179 | func init() { | |
| 180 | + | ||
| 181 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 182 | + | ||
| 183 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 180 | 184 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 181 | 185 | if err != nil { | |
| 182 | 186 | panic(err) | |
M v4/gio/ginetaddress.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | ) | |
| @@ -275,6 +275,10 @@ func (c *InetAddress) SetGoPointer(ptr uintptr) { | |||
| 275 | 275 | } | |
| 276 | 276 | ||
| 277 | 277 | func init() { | |
| 278 | + | ||
| 279 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 280 | + | ||
| 281 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 278 | 282 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 279 | 283 | if err != nil { | |
| 280 | 284 | panic(err) | |
M v4/gio/ginetaddressmask.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -219,6 +219,10 @@ func (x *InetAddressMask) Init(CancellableVar *Cancellable) (bool, error) { | |||
| 219 | 219 | } | |
| 220 | 220 | ||
| 221 | 221 | func init() { | |
| 222 | + | ||
| 223 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 224 | + | ||
| 225 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 222 | 226 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 223 | 227 | if err != nil { | |
| 224 | 228 | panic(err) | |
M v4/gio/ginetsocketaddress.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | ) | |
| @@ -187,6 +187,10 @@ func (x *InetSocketAddress) ToString() string { | |||
| 187 | 187 | } | |
| 188 | 188 | ||
| 189 | 189 | func init() { | |
| 190 | + | ||
| 191 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 192 | + | ||
| 193 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 190 | 194 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 191 | 195 | if err != nil { | |
| 192 | 196 | panic(err) | |
M v4/gio/ginitable.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -150,6 +150,10 @@ func InitableNewv(ObjectTypeVar types.GType, NParametersVar uint, ParametersVar | |||
| 150 | 150 | } | |
| 151 | 151 | ||
| 152 | 152 | func init() { | |
| 153 | + | ||
| 154 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 155 | + | ||
| 156 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 153 | 157 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 154 | 158 | if err != nil { | |
| 155 | 159 | panic(err) | |
M v4/gio/ginputstream.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -481,6 +481,10 @@ func (c *InputStream) SetGoPointer(ptr uintptr) { | |||
| 481 | 481 | } | |
| 482 | 482 | ||
| 483 | 483 | func init() { | |
| 484 | + | ||
| 485 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 486 | + | ||
| 487 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 484 | 488 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 485 | 489 | if err != nil { | |
| 486 | 490 | panic(err) | |
M v4/gio/gio-2.0.go +5 -1
| @@ -5,7 +5,7 @@ import ( | |||
| 5 | 5 | "unsafe" | |
| 6 | 6 | ||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 8 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -6166,6 +6166,10 @@ func TestDBusUnset() { | |||
| 6166 | 6166 | } | |
| 6167 | 6167 | ||
| 6168 | 6168 | func init() { | |
| 6169 | + | ||
| 6170 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 6171 | + | ||
| 6172 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 6169 | 6173 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 6170 | 6174 | if err != nil { | |
| 6171 | 6175 | panic(err) | |
M v4/gio/gioerror.go +5 -1
| @@ -3,7 +3,7 @@ package gio | |||
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | 5 | "github.com/jwijenbergh/purego" | |
| 6 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 6 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 7 | 7 | ) | |
| 8 | 8 | ||
| 9 | 9 | var xIoErrorFromErrno func(int) IOErrorEnum | |
| @@ -22,6 +22,10 @@ func IoErrorFromErrno(ErrNoVar int) IOErrorEnum { | |||
| 22 | 22 | } | |
| 23 | 23 | ||
| 24 | 24 | func init() { | |
| 25 | + | ||
| 26 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 27 | + | ||
| 28 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 25 | 29 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 26 | 30 | if err != nil { | |
| 27 | 31 | panic(err) | |
M v4/gio/giomodule.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -312,6 +312,10 @@ func IOModuleQuery() []string { | |||
| 312 | 312 | } | |
| 313 | 313 | ||
| 314 | 314 | func init() { | |
| 315 | + | ||
| 316 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 317 | + | ||
| 318 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 315 | 319 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 316 | 320 | if err != nil { | |
| 317 | 321 | panic(err) | |
M v4/gio/gioscheduler.go +5 -1
| @@ -3,7 +3,7 @@ package gio | |||
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | 5 | "github.com/jwijenbergh/purego" | |
| 6 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 6 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 7 | 7 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 8 | 8 | ) | |
| 9 | 9 | ||
| @@ -36,6 +36,10 @@ func IoSchedulerPushJob(JobFuncVar *IOSchedulerJobFunc, UserDataVar uintptr, Not | |||
| 36 | 36 | } | |
| 37 | 37 | ||
| 38 | 38 | func init() { | |
| 39 | + | ||
| 40 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 41 | + | ||
| 42 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 39 | 43 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 40 | 44 | if err != nil { | |
| 41 | 45 | panic(err) | |
M v4/gio/giostream.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -290,6 +290,10 @@ func IOStreamSpliceFinish(ResultVar AsyncResult) (bool, error) { | |||
| 290 | 290 | } | |
| 291 | 291 | ||
| 292 | 292 | func init() { | |
| 293 | + | ||
| 294 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 295 | + | ||
| 296 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 293 | 297 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 294 | 298 | if err != nil { | |
| 295 | 299 | panic(err) | |
M v4/gio/giotypes.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -890,6 +890,10 @@ func (x *SrvTarget) GetWeight() uint16 { | |||
| 890 | 890 | } | |
| 891 | 891 | ||
| 892 | 892 | func init() { | |
| 893 | + | ||
| 894 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 895 | + | ||
| 896 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 893 | 897 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 894 | 898 | if err != nil { | |
| 895 | 899 | panic(err) | |
M v4/gio/glistmodel.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | ) | |
| @@ -198,6 +198,10 @@ var XGListModelGetObject func(uintptr, uint) uintptr | |||
| 198 | 198 | var XGListModelItemsChanged func(uintptr, uint, uint, uint) | |
| 199 | 199 | ||
| 200 | 200 | func init() { | |
| 201 | + | ||
| 202 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 203 | + | ||
| 204 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 201 | 205 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 202 | 206 | if err != nil { | |
| 203 | 207 | panic(err) | |
M v4/gio/gliststore.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -287,6 +287,10 @@ func (x *ListStore) ItemsChanged(PositionVar uint, RemovedVar uint, AddedVar uin | |||
| 287 | 287 | } | |
| 288 | 288 | ||
| 289 | 289 | func init() { | |
| 290 | + | ||
| 291 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 292 | + | ||
| 293 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 290 | 294 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 291 | 295 | if err != nil { | |
| 292 | 296 | panic(err) | |
M v4/gio/gloadableicon.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | ) | |
| @@ -106,6 +106,10 @@ var XGLoadableIconLoadAsync func(uintptr, int, uintptr, uintptr, uintptr) | |||
| 106 | 106 | var XGLoadableIconLoadFinish func(uintptr, uintptr, string, **glib.Error) uintptr | |
| 107 | 107 | ||
| 108 | 108 | func init() { | |
| 109 | + | ||
| 110 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 111 | + | ||
| 112 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 109 | 113 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 110 | 114 | if err != nil { | |
| 111 | 115 | panic(err) | |
M v4/gio/gmemoryinputstream.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | ) | |
| @@ -258,6 +258,10 @@ func (x *MemoryInputStream) Truncate(OffsetVar int64, CancellableVar *Cancellabl | |||
| 258 | 258 | } | |
| 259 | 259 | ||
| 260 | 260 | func init() { | |
| 261 | + | ||
| 262 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 263 | + | ||
| 264 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 261 | 265 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 262 | 266 | if err != nil { | |
| 263 | 267 | panic(err) | |
M v4/gio/gmemorymonitor.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 11 | ) | |
| 12 | 12 | ||
| @@ -119,6 +119,10 @@ func MemoryMonitorDupDefault() *MemoryMonitorBase { | |||
| 119 | 119 | } | |
| 120 | 120 | ||
| 121 | 121 | func init() { | |
| 122 | + | ||
| 123 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 124 | + | ||
| 125 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 122 | 126 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 123 | 127 | if err != nil { | |
| 124 | 128 | panic(err) | |
M v4/gio/gmemoryoutputstream.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | ) | |
| @@ -371,6 +371,10 @@ func (x *MemoryOutputStream) Truncate(OffsetVar int64, CancellableVar *Cancellab | |||
| 371 | 371 | } | |
| 372 | 372 | ||
| 373 | 373 | func init() { | |
| 374 | + | ||
| 375 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 376 | + | ||
| 377 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 374 | 378 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 375 | 379 | if err != nil { | |
| 376 | 380 | panic(err) | |
M v4/gio/gmenumodel.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -617,6 +617,10 @@ func (x *MenuModel) ConnectItemsChanged(cb *func(MenuModel, int, int, int)) uint | |||
| 617 | 617 | } | |
| 618 | 618 | ||
| 619 | 619 | func init() { | |
| 620 | + | ||
| 621 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 622 | + | ||
| 623 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 620 | 624 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 621 | 625 | if err != nil { | |
| 622 | 626 | panic(err) | |
M v4/gio/gmount.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | ) | |
| @@ -468,6 +468,10 @@ var XGMountUnmountWithOperationFinish func(uintptr, uintptr, **glib.Error) bool | |||
| 468 | 468 | var XGMountUnshadow func(uintptr) | |
| 469 | 469 | ||
| 470 | 470 | func init() { | |
| 471 | + | ||
| 472 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 473 | + | ||
| 474 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 471 | 475 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 472 | 476 | if err != nil { | |
| 473 | 477 | panic(err) | |
M v4/gio/gmountoperation.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -428,6 +428,10 @@ func (x *MountOperation) ConnectShowUnmountProgress(cb *func(MountOperation, str | |||
| 428 | 428 | } | |
| 429 | 429 | ||
| 430 | 430 | func init() { | |
| 431 | + | ||
| 432 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 433 | + | ||
| 434 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 431 | 435 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 432 | 436 | if err != nil { | |
| 433 | 437 | panic(err) | |
M v4/gio/gnativesocketaddress.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 11 | ) | |
| 12 | 12 | ||
| @@ -120,6 +120,10 @@ func (x *NativeSocketAddress) ToString() string { | |||
| 120 | 120 | } | |
| 121 | 121 | ||
| 122 | 122 | func init() { | |
| 123 | + | ||
| 124 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 125 | + | ||
| 126 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 123 | 127 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 124 | 128 | if err != nil { | |
| 125 | 129 | panic(err) | |
M v4/gio/gnetworkaddress.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -260,6 +260,10 @@ func NetworkAddressParseUri(UriVar string, DefaultPortVar uint16) (*NetworkAddre | |||
| 260 | 260 | } | |
| 261 | 261 | ||
| 262 | 262 | func init() { | |
| 263 | + | ||
| 264 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 265 | + | ||
| 266 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 263 | 267 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 264 | 268 | if err != nil { | |
| 265 | 269 | panic(err) | |
M v4/gio/gnetworking.go +5 -1
| @@ -3,7 +3,7 @@ package gio | |||
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | 5 | "github.com/jwijenbergh/purego" | |
| 6 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 6 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 7 | 7 | ) | |
| 8 | 8 | ||
| 9 | 9 | var xNetworkingInit func() | |
| @@ -19,6 +19,10 @@ func NetworkingInit() { | |||
| 19 | 19 | } | |
| 20 | 20 | ||
| 21 | 21 | func init() { | |
| 22 | + | ||
| 23 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 24 | + | ||
| 25 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 22 | 26 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 23 | 27 | if err != nil { | |
| 24 | 28 | panic(err) | |
M v4/gio/gnetworkmonitor.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -191,6 +191,10 @@ func NetworkMonitorGetDefault() *NetworkMonitorBase { | |||
| 191 | 191 | } | |
| 192 | 192 | ||
| 193 | 193 | func init() { | |
| 194 | + | ||
| 195 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 196 | + | ||
| 197 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 194 | 198 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 195 | 199 | if err != nil { | |
| 196 | 200 | panic(err) | |
M v4/gio/gnetworkservice.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | ) | |
| @@ -179,6 +179,10 @@ func (x *NetworkService) ToString() string { | |||
| 179 | 179 | } | |
| 180 | 180 | ||
| 181 | 181 | func init() { | |
| 182 | + | ||
| 183 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 184 | + | ||
| 185 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 182 | 186 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 183 | 187 | if err != nil { | |
| 184 | 188 | panic(err) | |
M v4/gio/goutputstream.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -729,6 +729,10 @@ func (c *OutputStream) SetGoPointer(ptr uintptr) { | |||
| 729 | 729 | } | |
| 730 | 730 | ||
| 731 | 731 | func init() { | |
| 732 | + | ||
| 733 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 734 | + | ||
| 735 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 732 | 736 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 733 | 737 | if err != nil { | |
| 734 | 738 | panic(err) | |
M v4/gio/gpermission.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -237,6 +237,10 @@ func (c *Permission) SetGoPointer(ptr uintptr) { | |||
| 237 | 237 | } | |
| 238 | 238 | ||
| 239 | 239 | func init() { | |
| 240 | + | ||
| 241 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 242 | + | ||
| 243 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 240 | 244 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 241 | 245 | if err != nil { | |
| 242 | 246 | panic(err) | |
M v4/gio/gpollableinputstream.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | ) | |
| @@ -134,6 +134,10 @@ var XGPollableInputStreamIsReadable func(uintptr) bool | |||
| 134 | 134 | var XGPollableInputStreamReadNonblocking func(uintptr, []byte, uint, uintptr, **glib.Error) int | |
| 135 | 135 | ||
| 136 | 136 | func init() { | |
| 137 | + | ||
| 138 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 139 | + | ||
| 140 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 137 | 141 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 138 | 142 | if err != nil { | |
| 139 | 143 | panic(err) | |
M v4/gio/gpollableoutputstream.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | ) | |
| @@ -173,6 +173,10 @@ var XGPollableOutputStreamWriteNonblocking func(uintptr, []byte, uint, uintptr, | |||
| 173 | 173 | var XGPollableOutputStreamWritevNonblocking func(uintptr, []OutputVector, uint, uint, uintptr, **glib.Error) PollableReturn | |
| 174 | 174 | ||
| 175 | 175 | func init() { | |
| 176 | + | ||
| 177 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 178 | + | ||
| 179 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 176 | 180 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 177 | 181 | if err != nil { | |
| 178 | 182 | panic(err) | |
M v4/gio/gpollableutils.go +5 -1
| @@ -3,7 +3,7 @@ package gio | |||
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | 5 | "github.com/jwijenbergh/purego" | |
| 6 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 6 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 7 | 7 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 9 | 9 | ) | |
| @@ -110,6 +110,10 @@ func PollableStreamWriteAll(StreamVar *OutputStream, BufferVar []byte, CountVar | |||
| 110 | 110 | } | |
| 111 | 111 | ||
| 112 | 112 | func init() { | |
| 113 | + | ||
| 114 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 115 | + | ||
| 116 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 113 | 117 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 114 | 118 | if err != nil { | |
| 115 | 119 | panic(err) | |
M v4/gio/gpowerprofilemonitor.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 11 | ) | |
| 12 | 12 | ||
| @@ -106,6 +106,10 @@ func PowerProfileMonitorDupDefault() *PowerProfileMonitorBase { | |||
| 106 | 106 | } | |
| 107 | 107 | ||
| 108 | 108 | func init() { | |
| 109 | + | ||
| 110 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 111 | + | ||
| 112 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 109 | 113 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 110 | 114 | if err != nil { | |
| 111 | 115 | panic(err) | |
M v4/gio/gproxy.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | ) | |
| @@ -148,6 +148,10 @@ func ProxyGetDefaultForProtocol(ProtocolVar string) *ProxyBase { | |||
| 148 | 148 | } | |
| 149 | 149 | ||
| 150 | 150 | func init() { | |
| 151 | + | ||
| 152 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 153 | + | ||
| 154 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 151 | 155 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 152 | 156 | if err != nil { | |
| 153 | 157 | panic(err) | |
M v4/gio/gproxyaddress.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 11 | ) | |
| 12 | 12 | ||
| @@ -194,6 +194,10 @@ func (x *ProxyAddress) ToString() string { | |||
| 194 | 194 | } | |
| 195 | 195 | ||
| 196 | 196 | func init() { | |
| 197 | + | ||
| 198 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 199 | + | ||
| 200 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 197 | 201 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 198 | 202 | if err != nil { | |
| 199 | 203 | panic(err) | |
M v4/gio/gproxyresolver.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -146,6 +146,10 @@ func ProxyResolverGetDefault() *ProxyResolverBase { | |||
| 146 | 146 | } | |
| 147 | 147 | ||
| 148 | 148 | func init() { | |
| 149 | + | ||
| 150 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 151 | + | ||
| 152 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 149 | 153 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 150 | 154 | if err != nil { | |
| 151 | 155 | panic(err) | |
M v4/gio/gremoteactiongroup.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | ) | |
| @@ -105,6 +105,10 @@ var XGRemoteActionGroupActivateActionFull func(uintptr, string, *glib.Variant, * | |||
| 105 | 105 | var XGRemoteActionGroupChangeActionStateFull func(uintptr, string, *glib.Variant, *glib.Variant) | |
| 106 | 106 | ||
| 107 | 107 | func init() { | |
| 108 | + | ||
| 109 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 110 | + | ||
| 111 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 108 | 112 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 109 | 113 | if err != nil { | |
| 110 | 114 | panic(err) | |
M v4/gio/gresolver.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -453,6 +453,10 @@ func ResolverGetDefault() *Resolver { | |||
| 453 | 453 | } | |
| 454 | 454 | ||
| 455 | 455 | func init() { | |
| 456 | + | ||
| 457 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 458 | + | ||
| 459 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 456 | 460 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 457 | 461 | if err != nil { | |
| 458 | 462 | panic(err) | |
M v4/gio/gresource.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | ) | |
| 12 | 12 | ||
| @@ -202,6 +202,10 @@ func ResourcesUnregister(ResourceVar *Resource) { | |||
| 202 | 202 | } | |
| 203 | 203 | ||
| 204 | 204 | func init() { | |
| 205 | + | ||
| 206 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 207 | + | ||
| 208 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 205 | 209 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 206 | 210 | if err != nil { | |
| 207 | 211 | panic(err) | |
M v4/gio/gseekable.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | ) | |
| @@ -141,6 +141,10 @@ var XGSeekableTell func(uintptr) int64 | |||
| 141 | 141 | var XGSeekableTruncate func(uintptr, int64, uintptr, **glib.Error) bool | |
| 142 | 142 | ||
| 143 | 143 | func init() { | |
| 144 | + | ||
| 145 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 146 | + | ||
| 147 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 144 | 148 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 145 | 149 | if err != nil { | |
| 146 | 150 | panic(err) | |
M v4/gio/gsettings.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -1421,6 +1421,10 @@ func SettingsUnbind(ObjectVar *gobject.Object, PropertyVar string) { | |||
| 1421 | 1421 | } | |
| 1422 | 1422 | ||
| 1423 | 1423 | func init() { | |
| 1424 | + | ||
| 1425 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 1426 | + | ||
| 1427 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 1424 | 1428 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 1425 | 1429 | if err != nil { | |
| 1426 | 1430 | panic(err) | |
M v4/gio/gsettingsbackend.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -356,6 +356,10 @@ func SettingsBackendGetDefault() *SettingsBackend { | |||
| 356 | 356 | } | |
| 357 | 357 | ||
| 358 | 358 | func init() { | |
| 359 | + | ||
| 360 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 361 | + | ||
| 362 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 359 | 363 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 360 | 364 | if err != nil { | |
| 361 | 365 | panic(err) | |
M v4/gio/gsettingsschema.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | ) | |
| @@ -513,6 +513,10 @@ func SettingsSchemaSourceGetDefault() *SettingsSchemaSource { | |||
| 513 | 513 | } | |
| 514 | 514 | ||
| 515 | 515 | func init() { | |
| 516 | + | ||
| 517 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 518 | + | ||
| 519 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 516 | 520 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 517 | 521 | if err != nil { | |
| 518 | 522 | panic(err) | |
M v4/gio/gsimpleactiongroup.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -450,6 +450,10 @@ func (x *SimpleActionGroup) RemoveAction(ActionNameVar string) { | |||
| 450 | 450 | } | |
| 451 | 451 | ||
| 452 | 452 | func init() { | |
| 453 | + | ||
| 454 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 455 | + | ||
| 456 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 453 | 457 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 454 | 458 | if err != nil { | |
| 455 | 459 | panic(err) | |
M v4/gio/gsimpleasyncresult.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -598,6 +598,10 @@ func SimpleAsyncResultIsValid(ResultVar AsyncResult, SourceVar *gobject.Object, | |||
| 598 | 598 | } | |
| 599 | 599 | ||
| 600 | 600 | func init() { | |
| 601 | + | ||
| 602 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 603 | + | ||
| 604 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 601 | 605 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 602 | 606 | if err != nil { | |
| 603 | 607 | panic(err) | |
M v4/gio/gsimpleproxyresolver.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -185,6 +185,10 @@ func SimpleProxyResolverNew(DefaultProxyVar string, IgnoreHostsVar []string) *Pr | |||
| 185 | 185 | } | |
| 186 | 186 | ||
| 187 | 187 | func init() { | |
| 188 | + | ||
| 189 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 190 | + | ||
| 191 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 188 | 192 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 189 | 193 | if err != nil { | |
| 190 | 194 | panic(err) | |
M v4/gio/gsocket.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -1473,6 +1473,10 @@ func (x *Socket) Init(CancellableVar *Cancellable) (bool, error) { | |||
| 1473 | 1473 | } | |
| 1474 | 1474 | ||
| 1475 | 1475 | func init() { | |
| 1476 | + | ||
| 1477 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 1478 | + | ||
| 1479 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 1476 | 1480 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 1477 | 1481 | if err != nil { | |
| 1478 | 1482 | panic(err) | |
M v4/gio/gsocketaddress.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -156,6 +156,10 @@ func (x *SocketAddress) ToString() string { | |||
| 156 | 156 | } | |
| 157 | 157 | ||
| 158 | 158 | func init() { | |
| 159 | + | ||
| 160 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 161 | + | ||
| 162 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 159 | 163 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 160 | 164 | if err != nil { | |
| 161 | 165 | panic(err) | |
M v4/gio/gsocketaddressenumerator.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -135,6 +135,10 @@ func (c *SocketAddressEnumerator) SetGoPointer(ptr uintptr) { | |||
| 135 | 135 | } | |
| 136 | 136 | ||
| 137 | 137 | func init() { | |
| 138 | + | ||
| 139 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 140 | + | ||
| 141 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 138 | 142 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 139 | 143 | if err != nil { | |
| 140 | 144 | panic(err) | |
M v4/gio/gsocketclient.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -744,6 +744,10 @@ func (x *SocketClient) ConnectEvent(cb *func(SocketClient, SocketClientEvent, ui | |||
| 744 | 744 | } | |
| 745 | 745 | ||
| 746 | 746 | func init() { | |
| 747 | + | ||
| 748 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 749 | + | ||
| 750 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 747 | 751 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 748 | 752 | if err != nil { | |
| 749 | 753 | panic(err) | |
M v4/gio/gsocketconnectable.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 11 | ) | |
| 12 | 12 | ||
| @@ -163,6 +163,10 @@ var XGSocketConnectableProxyEnumerate func(uintptr) uintptr | |||
| 163 | 163 | var XGSocketConnectableToString func(uintptr) string | |
| 164 | 164 | ||
| 165 | 165 | func init() { | |
| 166 | + | ||
| 167 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 168 | + | ||
| 169 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 166 | 170 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 167 | 171 | if err != nil { | |
| 168 | 172 | panic(err) | |
M v4/gio/gsocketconnection.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -218,6 +218,10 @@ func SocketConnectionFactoryRegisterType(GTypeVar types.GType, FamilyVar SocketF | |||
| 218 | 218 | } | |
| 219 | 219 | ||
| 220 | 220 | func init() { | |
| 221 | + | ||
| 222 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 223 | + | ||
| 224 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 221 | 225 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 222 | 226 | if err != nil { | |
| 223 | 227 | panic(err) | |
M v4/gio/gsocketcontrolmessage.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | ) | |
| @@ -144,6 +144,10 @@ func SocketControlMessageDeserialize(LevelVar int, TypeVar int, SizeVar uint, Da | |||
| 144 | 144 | } | |
| 145 | 145 | ||
| 146 | 146 | func init() { | |
| 147 | + | ||
| 148 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 149 | + | ||
| 150 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 147 | 151 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 148 | 152 | if err != nil { | |
| 149 | 153 | panic(err) | |
M v4/gio/gsocketlistener.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -379,6 +379,10 @@ func (x *SocketListener) ConnectEvent(cb *func(SocketListener, SocketListenerEve | |||
| 379 | 379 | } | |
| 380 | 380 | ||
| 381 | 381 | func init() { | |
| 382 | + | ||
| 383 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 384 | + | ||
| 385 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 382 | 386 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 383 | 387 | if err != nil { | |
| 384 | 388 | panic(err) | |
M v4/gio/gsocketservice.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -183,6 +183,10 @@ func (x *SocketService) ConnectIncoming(cb *func(SocketService, uintptr, uintptr | |||
| 183 | 183 | } | |
| 184 | 184 | ||
| 185 | 185 | func init() { | |
| 186 | + | ||
| 187 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 188 | + | ||
| 189 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 186 | 190 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 187 | 191 | if err != nil { | |
| 188 | 192 | panic(err) | |
M v4/gio/gsrvtarget.go +5 -1
| @@ -3,7 +3,7 @@ package gio | |||
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | 5 | "github.com/jwijenbergh/purego" | |
| 6 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 6 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 7 | 7 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 8 | 8 | ) | |
| 9 | 9 | ||
| @@ -17,6 +17,10 @@ func SrvTargetListSort(TargetsVar *glib.List) *glib.List { | |||
| 17 | 17 | } | |
| 18 | 18 | ||
| 19 | 19 | func init() { | |
| 20 | + | ||
| 21 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 22 | + | ||
| 23 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 20 | 24 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 21 | 25 | if err != nil { | |
| 22 | 26 | panic(err) | |
M v4/gio/gtask.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -1183,6 +1183,10 @@ func TaskReportNewError(SourceObjectVar *gobject.Object, CallbackVar *AsyncReady | |||
| 1183 | 1183 | } | |
| 1184 | 1184 | ||
| 1185 | 1185 | func init() { | |
| 1186 | + | ||
| 1187 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 1188 | + | ||
| 1189 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 1186 | 1190 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 1187 | 1191 | if err != nil { | |
| 1188 | 1192 | panic(err) | |
M v4/gio/gtcpconnection.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 11 | ) | |
| 12 | 12 | ||
| @@ -85,6 +85,10 @@ func (c *TcpConnection) SetGoPointer(ptr uintptr) { | |||
| 85 | 85 | } | |
| 86 | 86 | ||
| 87 | 87 | func init() { | |
| 88 | + | ||
| 89 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 90 | + | ||
| 91 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 88 | 92 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 89 | 93 | if err != nil { | |
| 90 | 94 | panic(err) | |
M v4/gio/gtcpwrapperconnection.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | ) | |
| @@ -95,6 +95,10 @@ func (c *TcpWrapperConnection) SetGoPointer(ptr uintptr) { | |||
| 95 | 95 | } | |
| 96 | 96 | ||
| 97 | 97 | func init() { | |
| 98 | + | ||
| 99 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 100 | + | ||
| 101 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 98 | 102 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 99 | 103 | if err != nil { | |
| 100 | 104 | panic(err) | |
M v4/gio/gthemedicon.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -191,6 +191,10 @@ func (x *ThemedIcon) ToString() string { | |||
| 191 | 191 | } | |
| 192 | 192 | ||
| 193 | 193 | func init() { | |
| 194 | + | ||
| 195 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 196 | + | ||
| 197 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 194 | 198 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 195 | 199 | if err != nil { | |
| 196 | 200 | panic(err) | |
M v4/gio/gthreadedsocketservice.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -113,6 +113,10 @@ func (x *ThreadedSocketService) ConnectRun(cb *func(ThreadedSocketService, uintp | |||
| 113 | 113 | } | |
| 114 | 114 | ||
| 115 | 115 | func init() { | |
| 116 | + | ||
| 117 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 118 | + | ||
| 119 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 116 | 120 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 117 | 121 | if err != nil { | |
| 118 | 122 | panic(err) | |
M v4/gio/gtlsbackend.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | ) | |
| @@ -180,6 +180,10 @@ func TlsBackendGetDefault() *TlsBackendBase { | |||
| 180 | 180 | } | |
| 181 | 181 | ||
| 182 | 182 | func init() { | |
| 183 | + | ||
| 184 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 185 | + | ||
| 186 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 183 | 187 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 184 | 188 | if err != nil { | |
| 185 | 189 | panic(err) | |
M v4/gio/gtlscertificate.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -415,6 +415,10 @@ func TlsCertificateListNewFromFile(FileVar string) (*glib.List, error) { | |||
| 415 | 415 | } | |
| 416 | 416 | ||
| 417 | 417 | func init() { | |
| 418 | + | ||
| 419 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 420 | + | ||
| 421 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 418 | 422 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 419 | 423 | if err != nil { | |
| 420 | 424 | panic(err) | |
M v4/gio/gtlsclientconnection.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -216,6 +216,10 @@ func TlsClientConnectionNew(BaseIoStreamVar *IOStream, ServerIdentityVar SocketC | |||
| 216 | 216 | } | |
| 217 | 217 | ||
| 218 | 218 | func init() { | |
| 219 | + | ||
| 220 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 221 | + | ||
| 222 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 219 | 223 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 220 | 224 | if err != nil { | |
| 221 | 225 | panic(err) | |
M v4/gio/gtlsconnection.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -533,6 +533,10 @@ func (x *TlsConnection) ConnectAcceptCertificate(cb *func(TlsConnection, uintptr | |||
| 533 | 533 | } | |
| 534 | 534 | ||
| 535 | 535 | func init() { | |
| 536 | + | ||
| 537 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 538 | + | ||
| 539 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 536 | 540 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 537 | 541 | if err != nil { | |
| 538 | 542 | panic(err) | |
M v4/gio/gtlsdatabase.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -390,6 +390,10 @@ func (c *TlsDatabase) SetGoPointer(ptr uintptr) { | |||
| 390 | 390 | } | |
| 391 | 391 | ||
| 392 | 392 | func init() { | |
| 393 | + | ||
| 394 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 395 | + | ||
| 396 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 393 | 397 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 394 | 398 | if err != nil { | |
| 395 | 399 | panic(err) | |
M v4/gio/gtlsfiledatabase.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | ) | |
| @@ -78,6 +78,10 @@ func TlsFileDatabaseNew(AnchorsVar string) (*TlsFileDatabaseBase, error) { | |||
| 78 | 78 | } | |
| 79 | 79 | ||
| 80 | 80 | func init() { | |
| 81 | + | ||
| 82 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 83 | + | ||
| 84 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 81 | 85 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 82 | 86 | if err != nil { | |
| 83 | 87 | panic(err) | |
M v4/gio/gtlsinteraction.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -298,6 +298,10 @@ func (c *TlsInteraction) SetGoPointer(ptr uintptr) { | |||
| 298 | 298 | } | |
| 299 | 299 | ||
| 300 | 300 | func init() { | |
| 301 | + | ||
| 302 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 303 | + | ||
| 304 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 301 | 305 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 302 | 306 | if err != nil { | |
| 303 | 307 | panic(err) | |
M v4/gio/gtlspassword.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -181,6 +181,10 @@ func (c *TlsPassword) SetGoPointer(ptr uintptr) { | |||
| 181 | 181 | } | |
| 182 | 182 | ||
| 183 | 183 | func init() { | |
| 184 | + | ||
| 185 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 186 | + | ||
| 187 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 184 | 188 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 185 | 189 | if err != nil { | |
| 186 | 190 | panic(err) | |
M v4/gio/gtlsserverconnection.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | ) | |
| @@ -77,6 +77,10 @@ func TlsServerConnectionNew(BaseIoStreamVar *IOStream, CertificateVar *TlsCertif | |||
| 77 | 77 | } | |
| 78 | 78 | ||
| 79 | 79 | func init() { | |
| 80 | + | ||
| 81 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 82 | + | ||
| 83 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 80 | 84 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 81 | 85 | if err != nil { | |
| 82 | 86 | panic(err) | |
M v4/gio/gunixconnection.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | ) | |
| @@ -246,6 +246,10 @@ func (c *UnixConnection) SetGoPointer(ptr uintptr) { | |||
| 246 | 246 | } | |
| 247 | 247 | ||
| 248 | 248 | func init() { | |
| 249 | + | ||
| 250 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 251 | + | ||
| 252 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 249 | 253 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 250 | 254 | if err != nil { | |
| 251 | 255 | panic(err) | |
M v4/gio/gunixcredentialsmessage.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | ) | |
| @@ -135,6 +135,10 @@ func UnixCredentialsMessageIsSupported() bool { | |||
| 135 | 135 | } | |
| 136 | 136 | ||
| 137 | 137 | func init() { | |
| 138 | + | ||
| 139 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 140 | + | ||
| 141 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 138 | 142 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 139 | 143 | if err != nil { | |
| 140 | 144 | panic(err) | |
M v4/gio/gunixfdlist.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -214,6 +214,10 @@ func (c *UnixFDList) SetGoPointer(ptr uintptr) { | |||
| 214 | 214 | } | |
| 215 | 215 | ||
| 216 | 216 | func init() { | |
| 217 | + | ||
| 218 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 219 | + | ||
| 220 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 217 | 221 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 218 | 222 | if err != nil { | |
| 219 | 223 | panic(err) | |
M v4/gio/gunixfdmessage.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -169,6 +169,10 @@ func (c *UnixFDMessage) SetGoPointer(ptr uintptr) { | |||
| 169 | 169 | } | |
| 170 | 170 | ||
| 171 | 171 | func init() { | |
| 172 | + | ||
| 173 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 174 | + | ||
| 175 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 172 | 176 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 173 | 177 | if err != nil { | |
| 174 | 178 | panic(err) | |
M v4/gio/gunixinputstream.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | ) | |
| @@ -177,6 +177,10 @@ func (x *UnixInputStream) ReadNonblocking(BufferVar []byte, CountVar uint, Cance | |||
| 177 | 177 | } | |
| 178 | 178 | ||
| 179 | 179 | func init() { | |
| 180 | + | ||
| 181 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 182 | + | ||
| 183 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 180 | 184 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 181 | 185 | if err != nil { | |
| 182 | 186 | panic(err) | |
M v4/gio/gunixmounts.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -615,6 +615,10 @@ func UnixMountMonitorGet() *UnixMountMonitor { | |||
| 615 | 615 | } | |
| 616 | 616 | ||
| 617 | 617 | func init() { | |
| 618 | + | ||
| 619 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 620 | + | ||
| 621 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 618 | 622 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 619 | 623 | if err != nil { | |
| 620 | 624 | panic(err) | |
M v4/gio/gunixoutputstream.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | ) | |
| @@ -208,6 +208,10 @@ func (x *UnixOutputStream) WritevNonblocking(VectorsVar []OutputVector, NVectors | |||
| 208 | 208 | } | |
| 209 | 209 | ||
| 210 | 210 | func init() { | |
| 211 | + | ||
| 212 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 213 | + | ||
| 214 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 211 | 215 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 212 | 216 | if err != nil { | |
| 213 | 217 | panic(err) | |
M v4/gio/gunixsocketaddress.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 11 | ) | |
| 12 | 12 | ||
| @@ -255,6 +255,10 @@ func UnixSocketAddressAbstractNamesSupported() bool { | |||
| 255 | 255 | } | |
| 256 | 256 | ||
| 257 | 257 | func init() { | |
| 258 | + | ||
| 259 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 260 | + | ||
| 261 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 258 | 262 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 259 | 263 | if err != nil { | |
| 260 | 264 | panic(err) | |
M v4/gio/gvfs.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -209,6 +209,10 @@ func VfsGetLocal() *Vfs { | |||
| 209 | 209 | } | |
| 210 | 210 | ||
| 211 | 211 | func init() { | |
| 212 | + | ||
| 213 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 214 | + | ||
| 215 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 212 | 216 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 213 | 217 | if err != nil { | |
| 214 | 218 | panic(err) | |
M v4/gio/gvolume.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | ) | |
| @@ -383,6 +383,10 @@ const ( | |||
| 383 | 383 | ) | |
| 384 | 384 | ||
| 385 | 385 | func init() { | |
| 386 | + | ||
| 387 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 388 | + | ||
| 389 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 386 | 390 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 387 | 391 | if err != nil { | |
| 388 | 392 | panic(err) | |
M v4/gio/gvolumemonitor.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -437,6 +437,10 @@ func VolumeMonitorGet() *VolumeMonitor { | |||
| 437 | 437 | } | |
| 438 | 438 | ||
| 439 | 439 | func init() { | |
| 440 | + | ||
| 441 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 442 | + | ||
| 443 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 440 | 444 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 441 | 445 | if err != nil { | |
| 442 | 446 | panic(err) | |
M v4/gio/gzlibcompressor.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -203,6 +203,10 @@ func (x *ZlibCompressor) Reset() { | |||
| 203 | 203 | } | |
| 204 | 204 | ||
| 205 | 205 | func init() { | |
| 206 | + | ||
| 207 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 208 | + | ||
| 209 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 206 | 210 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 207 | 211 | if err != nil { | |
| 208 | 212 | panic(err) | |
M v4/gio/gzlibdecompressor.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| @@ -191,6 +191,10 @@ func (x *ZlibDecompressor) Reset() { | |||
| 191 | 191 | } | |
| 192 | 192 | ||
| 193 | 193 | func init() { | |
| 194 | + | ||
| 195 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 196 | + | ||
| 197 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 194 | 198 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 195 | 199 | if err != nil { | |
| 196 | 200 | panic(err) | |
M v4/gio/main.go +5 -1
| @@ -3,7 +3,7 @@ package gio | |||
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | 5 | "github.com/jwijenbergh/purego" | |
| 6 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 6 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 7 | 7 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 8 | 8 | ) | |
| 9 | 9 | ||
| @@ -16,6 +16,10 @@ func DbusErrorQuark() glib.Quark { | |||
| 16 | 16 | } | |
| 17 | 17 | ||
| 18 | 18 | func init() { | |
| 19 | + | ||
| 20 | + | core.SetPackageName("GIO", "gio-2.0") | |
| 21 | + | ||
| 22 | + | core.SetSharedLibrary("GIO", "libgio-2.0.so.0") | |
| 19 | 23 | lib, err := purego.Dlopen(core.GetPath("GIO"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 20 | 24 | if err != nil { | |
| 21 | 25 | panic(err) | |
M v4/glib/garray.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 11 | ) | |
| 12 | 12 | ||
| @@ -440,6 +440,10 @@ func PtrArrayFindWithEqualFunc(HaystackVar []uintptr, NeedleVar uintptr, EqualFu | |||
| 440 | 440 | } | |
| 441 | 441 | ||
| 442 | 442 | func init() { | |
| 443 | + | ||
| 444 | + | core.SetPackageName("GLIB", "glib-2.0") | |
| 445 | + | ||
| 446 | + | core.SetSharedLibrary("GLIB", "libglib-2.0.so.0") | |
| 443 | 447 | lib, err := purego.Dlopen(core.GetPath("GLIB"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 444 | 448 | if err != nil { | |
| 445 | 449 | panic(err) | |
M v4/glib/gasyncqueue.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | ) | |
| 11 | 11 | ||
| 12 | 12 | // An opaque data structure which represents an asynchronous queue. | |
| @@ -388,6 +388,10 @@ func (x *AsyncQueue) UnrefAndUnlock() { | |||
| 388 | 388 | } | |
| 389 | 389 | ||
| 390 | 390 | func init() { | |
| 391 | + | ||
| 392 | + | core.SetPackageName("GLIB", "glib-2.0") | |
| 393 | + | ||
| 394 | + | core.SetSharedLibrary("GLIB", "libglib-2.0.so.0") | |
| 391 | 395 | lib, err := purego.Dlopen(core.GetPath("GLIB"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 392 | 396 | if err != nil { | |
| 393 | 397 | panic(err) | |
M v4/glib/gatomic.go +5 -1
| @@ -3,7 +3,7 @@ package glib | |||
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | 5 | "github.com/jwijenbergh/purego" | |
| 6 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 6 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 7 | 7 | ) | |
| 8 | 8 | ||
| 9 | 9 | var xAtomicIntAdd func(int, int) int | |
| @@ -296,6 +296,10 @@ func AtomicPointerXor(AtomicVar uintptr, ValVar uint) uint { | |||
| 296 | 296 | } | |
| 297 | 297 | ||
| 298 | 298 | func init() { | |
| 299 | + | ||
| 300 | + | core.SetPackageName("GLIB", "glib-2.0") | |
| 301 | + | ||
| 302 | + | core.SetSharedLibrary("GLIB", "libglib-2.0.so.0") | |
| 299 | 303 | lib, err := purego.Dlopen(core.GetPath("GLIB"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 300 | 304 | if err != nil { | |
| 301 | 305 | panic(err) | |
M v4/glib/gbacktrace.go +5 -1
| @@ -3,7 +3,7 @@ package glib | |||
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | 5 | "github.com/jwijenbergh/purego" | |
| 6 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 6 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 7 | 7 | ) | |
| 8 | 8 | ||
| 9 | 9 | var xOnErrorQuery func(string) | |
| @@ -86,6 +86,10 @@ func OnErrorStackTrace(PrgNameVar string) { | |||
| 86 | 86 | } | |
| 87 | 87 | ||
| 88 | 88 | func init() { | |
| 89 | + | ||
| 90 | + | core.SetPackageName("GLIB", "glib-2.0") | |
| 91 | + | ||
| 92 | + | core.SetSharedLibrary("GLIB", "libglib-2.0.so.0") | |
| 89 | 93 | lib, err := purego.Dlopen(core.GetPath("GLIB"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 90 | 94 | if err != nil { | |
| 91 | 95 | panic(err) | |
M v4/glib/gbase64.go +5 -1
| @@ -3,7 +3,7 @@ package glib | |||
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | 5 | "github.com/jwijenbergh/purego" | |
| 6 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 6 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 7 | 7 | ) | |
| 8 | 8 | ||
| 9 | 9 | var xBase64Decode func(string, uint) uintptr | |
| @@ -96,6 +96,10 @@ func Base64EncodeStep(InVar []byte, LenVar uint, BreakLinesVar bool, OutVar []by | |||
| 96 | 96 | } | |
| 97 | 97 | ||
| 98 | 98 | func init() { | |
| 99 | + | ||
| 100 | + | core.SetPackageName("GLIB", "glib-2.0") | |
| 101 | + | ||
| 102 | + | core.SetSharedLibrary("GLIB", "libglib-2.0.so.0") | |
| 99 | 103 | lib, err := purego.Dlopen(core.GetPath("GLIB"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 100 | 104 | if err != nil { | |
| 101 | 105 | panic(err) | |
M v4/glib/gbitlock.go +5 -1
| @@ -3,7 +3,7 @@ package glib | |||
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | 5 | "github.com/jwijenbergh/purego" | |
| 6 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 6 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 7 | 7 | ) | |
| 8 | 8 | ||
| 9 | 9 | var xBitLock func(int, int) | |
| @@ -114,6 +114,10 @@ func PointerBitUnlock(AddressVar uintptr, LockBitVar int) { | |||
| 114 | 114 | } | |
| 115 | 115 | ||
| 116 | 116 | func init() { | |
| 117 | + | ||
| 118 | + | core.SetPackageName("GLIB", "glib-2.0") | |
| 119 | + | ||
| 120 | + | core.SetSharedLibrary("GLIB", "libglib-2.0.so.0") | |
| 117 | 121 | lib, err := purego.Dlopen(core.GetPath("GLIB"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 118 | 122 | if err != nil { | |
| 119 | 123 | panic(err) | |
M v4/glib/gbookmarkfile.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | ) | |
| 11 | 11 | ||
| 12 | 12 | // An opaque data structure representing a set of bookmarks. | |
| @@ -839,6 +839,10 @@ const ( | |||
| 839 | 839 | ) | |
| 840 | 840 | ||
| 841 | 841 | func init() { | |
| 842 | + | ||
| 843 | + | core.SetPackageName("GLIB", "glib-2.0") | |
| 844 | + | ||
| 845 | + | core.SetSharedLibrary("GLIB", "libglib-2.0.so.0") | |
| 842 | 846 | lib, err := purego.Dlopen(core.GetPath("GLIB"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 843 | 847 | if err != nil { | |
| 844 | 848 | panic(err) | |
M v4/glib/gcharset.go +5 -1
| @@ -3,7 +3,7 @@ package glib | |||
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | 5 | "github.com/jwijenbergh/purego" | |
| 6 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 6 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 7 | 7 | ) | |
| 8 | 8 | ||
| 9 | 9 | var xGetCharset func(string) bool | |
| @@ -129,6 +129,10 @@ func GetLocaleVariants(LocaleVar string) []string { | |||
| 129 | 129 | } | |
| 130 | 130 | ||
| 131 | 131 | func init() { | |
| 132 | + | ||
| 133 | + | core.SetPackageName("GLIB", "glib-2.0") | |
| 134 | + | ||
| 135 | + | core.SetSharedLibrary("GLIB", "libglib-2.0.so.0") | |
| 132 | 136 | lib, err := purego.Dlopen(core.GetPath("GLIB"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 133 | 137 | if err != nil { | |
| 134 | 138 | panic(err) | |
M v4/glib/gchecksum.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 11 | ) | |
| 12 | 12 | ||
| @@ -184,6 +184,10 @@ func ComputeChecksumForString(ChecksumTypeVar ChecksumType, StrVar string, Lengt | |||
| 184 | 184 | } | |
| 185 | 185 | ||
| 186 | 186 | func init() { | |
| 187 | + | ||
| 188 | + | core.SetPackageName("GLIB", "glib-2.0") | |
| 189 | + | ||
| 190 | + | core.SetSharedLibrary("GLIB", "libglib-2.0.so.0") | |
| 187 | 191 | lib, err := purego.Dlopen(core.GetPath("GLIB"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 188 | 192 | if err != nil { | |
| 189 | 193 | panic(err) | |
M v4/glib/gconvert.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | ) | |
| 11 | 11 | ||
| 12 | 12 | // The GIConv struct wraps an iconv() conversion descriptor. It contains | |
| @@ -423,6 +423,10 @@ func UriListExtractUris(UriListVar string) []string { | |||
| 423 | 423 | } | |
| 424 | 424 | ||
| 425 | 425 | func init() { | |
| 426 | + | ||
| 427 | + | core.SetPackageName("GLIB", "glib-2.0") | |
| 428 | + | ||
| 429 | + | core.SetSharedLibrary("GLIB", "libglib-2.0.so.0") | |
| 426 | 430 | lib, err := purego.Dlopen(core.GetPath("GLIB"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 427 | 431 | if err != nil { | |
| 428 | 432 | panic(err) | |
M v4/glib/gdataset.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | ) | |
| 11 | 11 | ||
| 12 | 12 | // Specifies the type of function passed to g_dataset_foreach(). It is | |
| @@ -251,6 +251,10 @@ func DatasetIdSetDataFull(DatasetLocationVar uintptr, KeyIdVar Quark, DataVar ui | |||
| 251 | 251 | } | |
| 252 | 252 | ||
| 253 | 253 | func init() { | |
| 254 | + | ||
| 255 | + | core.SetPackageName("GLIB", "glib-2.0") | |
| 256 | + | ||
| 257 | + | core.SetSharedLibrary("GLIB", "libglib-2.0.so.0") | |
| 254 | 258 | lib, err := purego.Dlopen(core.GetPath("GLIB"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 255 | 259 | if err != nil { | |
| 256 | 260 | panic(err) | |
M v4/glib/gdate.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 11 | ) | |
| 12 | 12 | ||
| @@ -733,6 +733,10 @@ func DateValidYear(YearVar DateYear) bool { | |||
| 733 | 733 | } | |
| 734 | 734 | ||
| 735 | 735 | func init() { | |
| 736 | + | ||
| 737 | + | core.SetPackageName("GLIB", "glib-2.0") | |
| 738 | + | ||
| 739 | + | core.SetSharedLibrary("GLIB", "libglib-2.0.so.0") | |
| 736 | 740 | lib, err := purego.Dlopen(core.GetPath("GLIB"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 737 | 741 | if err != nil { | |
| 738 | 742 | panic(err) | |
M v4/glib/gdatetime.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 11 | ) | |
| 12 | 12 | ||
| @@ -841,6 +841,10 @@ const ( | |||
| 841 | 841 | ) | |
| 842 | 842 | ||
| 843 | 843 | func init() { | |
| 844 | + | ||
| 845 | + | core.SetPackageName("GLIB", "glib-2.0") | |
| 846 | + | ||
| 847 | + | core.SetSharedLibrary("GLIB", "libglib-2.0.so.0") | |
| 844 | 848 | lib, err := purego.Dlopen(core.GetPath("GLIB"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 845 | 849 | if err != nil { | |
| 846 | 850 | panic(err) | |
M v4/glib/gdir.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | ) | |
| 11 | 11 | ||
| 12 | 12 | // An opaque structure representing an opened directory. | |
| @@ -59,6 +59,10 @@ func (x *Dir) Rewind() { | |||
| 59 | 59 | } | |
| 60 | 60 | ||
| 61 | 61 | func init() { | |
| 62 | + | ||
| 63 | + | core.SetPackageName("GLIB", "glib-2.0") | |
| 64 | + | ||
| 65 | + | core.SetSharedLibrary("GLIB", "libglib-2.0.so.0") | |
| 62 | 66 | lib, err := purego.Dlopen(core.GetPath("GLIB"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 63 | 67 | if err != nil { | |
| 64 | 68 | panic(err) | |
M v4/glib/genviron.go +5 -1
| @@ -3,7 +3,7 @@ package glib | |||
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | 5 | "github.com/jwijenbergh/purego" | |
| 6 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 6 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 7 | 7 | ) | |
| 8 | 8 | ||
| 9 | 9 | var xEnvironGetenv func([]string, string) string | |
| @@ -138,6 +138,10 @@ func Unsetenv(VariableVar string) { | |||
| 138 | 138 | } | |
| 139 | 139 | ||
| 140 | 140 | func init() { | |
| 141 | + | ||
| 142 | + | core.SetPackageName("GLIB", "glib-2.0") | |
| 143 | + | ||
| 144 | + | core.SetSharedLibrary("GLIB", "libglib-2.0.so.0") | |
| 141 | 145 | lib, err := purego.Dlopen(core.GetPath("GLIB"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 142 | 146 | if err != nil { | |
| 143 | 147 | panic(err) | |
M v4/glib/gerror.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 11 | ) | |
| 12 | 12 | ||
| @@ -217,6 +217,10 @@ func SetErrorLiteral(ErrVar **Error, DomainVar Quark, CodeVar int, MessageVar st | |||
| 217 | 217 | } | |
| 218 | 218 | ||
| 219 | 219 | func init() { | |
| 220 | + | ||
| 221 | + | core.SetPackageName("GLIB", "glib-2.0") | |
| 222 | + | ||
| 223 | + | core.SetSharedLibrary("GLIB", "libglib-2.0.so.0") | |
| 220 | 224 | lib, err := purego.Dlopen(core.GetPath("GLIB"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 221 | 225 | if err != nil { | |
| 222 | 226 | panic(err) | |
M v4/glib/gfileutils.go +5 -1
| @@ -3,7 +3,7 @@ package glib | |||
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | 5 | "github.com/jwijenbergh/purego" | |
| 6 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 6 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 7 | 7 | ) | |
| 8 | 8 | ||
| 9 | 9 | // Flags to pass to g_file_set_contents_full() to affect its safety and | |
| @@ -713,6 +713,10 @@ func PathSkipRoot(FileNameVar string) string { | |||
| 713 | 713 | } | |
| 714 | 714 | ||
| 715 | 715 | func init() { | |
| 716 | + | ||
| 717 | + | core.SetPackageName("GLIB", "glib-2.0") | |
| 718 | + | ||
| 719 | + | core.SetSharedLibrary("GLIB", "libglib-2.0.so.0") | |
| 716 | 720 | lib, err := purego.Dlopen(core.GetPath("GLIB"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 717 | 721 | if err != nil { | |
| 718 | 722 | panic(err) | |
M v4/glib/ggettext.go +5 -1
| @@ -3,7 +3,7 @@ package glib | |||
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | 5 | "github.com/jwijenbergh/purego" | |
| 6 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 6 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 7 | 7 | ) | |
| 8 | 8 | ||
| 9 | 9 | var xDcgettext func(string, string, int) string | |
| @@ -121,6 +121,10 @@ func StripContext(MsgidVar string, MsgvalVar string) string { | |||
| 121 | 121 | } | |
| 122 | 122 | ||
| 123 | 123 | func init() { | |
| 124 | + | ||
| 125 | + | core.SetPackageName("GLIB", "glib-2.0") | |
| 126 | + | ||
| 127 | + | core.SetSharedLibrary("GLIB", "libglib-2.0.so.0") | |
| 124 | 128 | lib, err := purego.Dlopen(core.GetPath("GLIB"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 125 | 129 | if err != nil { | |
| 126 | 130 | panic(err) | |
M v4/glib/ghash.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 11 | ) | |
| 12 | 12 | ||
| @@ -531,6 +531,10 @@ func StrHash(VVar uintptr) uint { | |||
| 531 | 531 | } | |
| 532 | 532 | ||
| 533 | 533 | func init() { | |
| 534 | + | ||
| 535 | + | core.SetPackageName("GLIB", "glib-2.0") | |
| 536 | + | ||
| 537 | + | core.SetSharedLibrary("GLIB", "libglib-2.0.so.0") | |
| 534 | 538 | lib, err := purego.Dlopen(core.GetPath("GLIB"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 535 | 539 | if err != nil { | |
| 536 | 540 | panic(err) | |
M v4/glib/ghmac.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | ) | |
| 11 | 11 | ||
| 12 | 12 | // An opaque structure representing a HMAC operation. | |
| @@ -133,6 +133,10 @@ func ComputeHmacForString(DigestTypeVar ChecksumType, KeyVar []byte, KeyLenVar u | |||
| 133 | 133 | } | |
| 134 | 134 | ||
| 135 | 135 | func init() { | |
| 136 | + | ||
| 137 | + | core.SetPackageName("GLIB", "glib-2.0") | |
| 138 | + | ||
| 139 | + | core.SetSharedLibrary("GLIB", "libglib-2.0.so.0") | |
| 136 | 140 | lib, err := purego.Dlopen(core.GetPath("GLIB"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 137 | 141 | if err != nil { | |
| 138 | 142 | panic(err) | |
M v4/glib/ghook.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | ) | |
| 11 | 11 | ||
| 12 | 12 | // Defines the type of a hook function that can be invoked | |
| @@ -230,6 +230,10 @@ func HookUnref(HookListVar *HookList, HookVar *Hook) { | |||
| 230 | 230 | } | |
| 231 | 231 | ||
| 232 | 232 | func init() { | |
| 233 | + | ||
| 234 | + | core.SetPackageName("GLIB", "glib-2.0") | |
| 235 | + | ||
| 236 | + | core.SetSharedLibrary("GLIB", "libglib-2.0.so.0") | |
| 233 | 237 | lib, err := purego.Dlopen(core.GetPath("GLIB"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 234 | 238 | if err != nil { | |
| 235 | 239 | panic(err) | |
M v4/glib/ghostutils.go +5 -1
| @@ -3,7 +3,7 @@ package glib | |||
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | 5 | "github.com/jwijenbergh/purego" | |
| 6 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 6 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 7 | 7 | ) | |
| 8 | 8 | ||
| 9 | 9 | var xHostnameIsAsciiEncoded func(string) bool | |
| @@ -76,6 +76,10 @@ func HostnameToUnicode(HostnameVar string) string { | |||
| 76 | 76 | } | |
| 77 | 77 | ||
| 78 | 78 | func init() { | |
| 79 | + | ||
| 80 | + | core.SetPackageName("GLIB", "glib-2.0") | |
| 81 | + | ||
| 82 | + | core.SetSharedLibrary("GLIB", "libglib-2.0.so.0") | |
| 79 | 83 | lib, err := purego.Dlopen(core.GetPath("GLIB"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 80 | 84 | if err != nil { | |
| 81 | 85 | panic(err) | |
M v4/glib/giochannel.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 11 | ) | |
| 12 | 12 | ||
| @@ -733,6 +733,10 @@ func IoCreateWatch(ChannelVar *IOChannel, ConditionVar IOCondition) *Source { | |||
| 733 | 733 | } | |
| 734 | 734 | ||
| 735 | 735 | func init() { | |
| 736 | + | ||
| 737 | + | core.SetPackageName("GLIB", "glib-2.0") | |
| 738 | + | ||
| 739 | + | core.SetSharedLibrary("GLIB", "libglib-2.0.so.0") | |
| 736 | 740 | lib, err := purego.Dlopen(core.GetPath("GLIB"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 737 | 741 | if err != nil { | |
| 738 | 742 | panic(err) | |
M v4/glib/gkeyfile.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 11 | ) | |
| 12 | 12 | ||
| @@ -927,6 +927,10 @@ const ( | |||
| 927 | 927 | ) | |
| 928 | 928 | ||
| 929 | 929 | func init() { | |
| 930 | + | ||
| 931 | + | core.SetPackageName("GLIB", "glib-2.0") | |
| 932 | + | ||
| 933 | + | core.SetSharedLibrary("GLIB", "libglib-2.0.so.0") | |
| 930 | 934 | lib, err := purego.Dlopen(core.GetPath("GLIB"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 931 | 935 | if err != nil { | |
| 932 | 936 | panic(err) | |
M v4/glib/glib-2.0.go +5 -1
| @@ -3,7 +3,7 @@ package glib | |||
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | 5 | "github.com/jwijenbergh/purego" | |
| 6 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 6 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 7 | 7 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 8 | 8 | ) | |
| 9 | 9 | ||
| @@ -44,6 +44,10 @@ func VariantParserGetErrorQuark() Quark { | |||
| 44 | 44 | } | |
| 45 | 45 | ||
| 46 | 46 | func init() { | |
| 47 | + | ||
| 48 | + | core.SetPackageName("GLIB", "glib-2.0") | |
| 49 | + | ||
| 50 | + | core.SetSharedLibrary("GLIB", "libglib-2.0.so.0") | |
| 47 | 51 | lib, err := purego.Dlopen(core.GetPath("GLIB"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 48 | 52 | if err != nil { | |
| 49 | 53 | panic(err) | |
M v4/glib/glib-types.go +5 -1
| @@ -3,7 +3,7 @@ package glib | |||
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | 5 | "github.com/jwijenbergh/purego" | |
| 6 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 6 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 7 | 7 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 8 | 8 | ) | |
| 9 | 9 | ||
| @@ -26,6 +26,10 @@ func VariantGetGtype() types.GType { | |||
| 26 | 26 | } | |
| 27 | 27 | ||
| 28 | 28 | func init() { | |
| 29 | + | ||
| 30 | + | core.SetPackageName("GLIB", "glib-2.0") | |
| 31 | + | ||
| 32 | + | core.SetSharedLibrary("GLIB", "libglib-2.0.so.0") | |
| 29 | 33 | lib, err := purego.Dlopen(core.GetPath("GLIB"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 30 | 34 | if err != nil { | |
| 31 | 35 | panic(err) | |
M v4/glib/glib-unix.go +5 -1
| @@ -3,7 +3,7 @@ package glib | |||
| 3 | 3 | ||
| 4 | 4 | import ( | |
| 5 | 5 | "github.com/jwijenbergh/purego" | |
| 6 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 6 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 7 | 7 | ) | |
| 8 | 8 | ||
| 9 | 9 | // The type of functions to be called when a UNIX fd watch source | |
| @@ -172,6 +172,10 @@ func UnixSignalSourceNew(SignumVar int) *Source { | |||
| 172 | 172 | } | |
| 173 | 173 | ||
| 174 | 174 | func init() { | |
| 175 | + | ||
| 176 | + | core.SetPackageName("GLIB", "glib-2.0") | |
| 177 | + | ||
| 178 | + | core.SetSharedLibrary("GLIB", "libglib-2.0.so.0") | |
| 175 | 179 | lib, err := purego.Dlopen(core.GetPath("GLIB"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 176 | 180 | if err != nil { | |
| 177 | 181 | panic(err) | |
M v4/glib/glist.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | ) | |
| 11 | 11 | ||
| 12 | 12 | // The #GList struct is used for each element in a doubly-linked list. | |
| @@ -36,6 +36,10 @@ func ClearList(ListPtrVar **List, DestroyVar *DestroyNotify) { | |||
| 36 | 36 | } | |
| 37 | 37 | ||
| 38 | 38 | func init() { | |
| 39 | + | ||
| 40 | + | core.SetPackageName("GLIB", "glib-2.0") | |
| 41 | + | ||
| 42 | + | core.SetSharedLibrary("GLIB", "libglib-2.0.so.0") | |
| 39 | 43 | lib, err := purego.Dlopen(core.GetPath("GLIB"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 40 | 44 | if err != nil { | |
| 41 | 45 | panic(err) | |
M v4/glib/gmain.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 11 | ) | |
| 12 | 12 | ||
| @@ -1942,6 +1942,10 @@ func TimeoutSourceNewSeconds(IntervalVar uint) *Source { | |||
| 1942 | 1942 | } | |
| 1943 | 1943 | ||
| 1944 | 1944 | func init() { | |
| 1945 | + | ||
| 1946 | + | core.SetPackageName("GLIB", "glib-2.0") | |
| 1947 | + | ||
| 1948 | + | core.SetSharedLibrary("GLIB", "libglib-2.0.so.0") | |
| 1945 | 1949 | lib, err := purego.Dlopen(core.GetPath("GLIB"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 1946 | 1950 | if err != nil { | |
| 1947 | 1951 | panic(err) | |
M v4/glib/gmappedfile.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 11 | ) | |
| 12 | 12 | ||
| @@ -149,6 +149,10 @@ func (x *MappedFile) Unref() { | |||
| 149 | 149 | } | |
| 150 | 150 | ||
| 151 | 151 | func init() { | |
| 152 | + | ||
| 153 | + | core.SetPackageName("GLIB", "glib-2.0") | |
| 154 | + | ||
| 155 | + | core.SetSharedLibrary("GLIB", "libglib-2.0.so.0") | |
| 152 | 156 | lib, err := purego.Dlopen(core.GetPath("GLIB"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 153 | 157 | if err != nil { | |
| 154 | 158 | panic(err) | |
M v4/glib/gmarkup.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 11 | ) | |
| 12 | 12 | ||
| @@ -534,6 +534,10 @@ func MarkupVprintfEscaped(FormatVar string, ArgsVar []interface{}) string { | |||
| 534 | 534 | } | |
| 535 | 535 | ||
| 536 | 536 | func init() { | |
| 537 | + | ||
| 538 | + | core.SetPackageName("GLIB", "glib-2.0") | |
| 539 | + | ||
| 540 | + | core.SetSharedLibrary("GLIB", "libglib-2.0.so.0") | |
| 537 | 541 | lib, err := purego.Dlopen(core.GetPath("GLIB"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 538 | 542 | if err != nil { | |
| 539 | 543 | panic(err) | |
M v4/glib/gmem.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | ) | |
| 11 | 11 | ||
| 12 | 12 | // A set of functions used to perform memory allocation. The same #GMemVTable must | |
| @@ -253,6 +253,10 @@ func TryReallocN(MemVar uintptr, NBlocksVar uint, NBlockBytesVar uint) uintptr { | |||
| 253 | 253 | } | |
| 254 | 254 | ||
| 255 | 255 | func init() { | |
| 256 | + | ||
| 257 | + | core.SetPackageName("GLIB", "glib-2.0") | |
| 258 | + | ||
| 259 | + | core.SetSharedLibrary("GLIB", "libglib-2.0.so.0") | |
| 256 | 260 | lib, err := purego.Dlopen(core.GetPath("GLIB"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 257 | 261 | if err != nil { | |
| 258 | 262 | panic(err) | |
M v4/glib/gmessages.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | ) | |
| 11 | 11 | ||
| 12 | 12 | // Specifies the prototype of log handler functions. | |
| @@ -819,6 +819,10 @@ func WarnMessage(DomainVar string, FileVar string, LineVar int, FuncVar string, | |||
| 819 | 819 | } | |
| 820 | 820 | ||
| 821 | 821 | func init() { | |
| 822 | + | ||
| 823 | + | core.SetPackageName("GLIB", "glib-2.0") | |
| 824 | + | ||
| 825 | + | core.SetSharedLibrary("GLIB", "libglib-2.0.so.0") | |
| 822 | 826 | lib, err := purego.Dlopen(core.GetPath("GLIB"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 823 | 827 | if err != nil { | |
| 824 | 828 | panic(err) | |
M v4/glib/gnode.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | ) | |
| 11 | 11 | ||
| 12 | 12 | // Specifies the type of function passed to g_node_children_foreach(). | |
| @@ -346,6 +346,10 @@ const ( | |||
| 346 | 346 | ) | |
| 347 | 347 | ||
| 348 | 348 | func init() { | |
| 349 | + | ||
| 350 | + | core.SetPackageName("GLIB", "glib-2.0") | |
| 351 | + | ||
| 352 | + | core.SetSharedLibrary("GLIB", "libglib-2.0.so.0") | |
| 349 | 353 | lib, err := purego.Dlopen(core.GetPath("GLIB"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 350 | 354 | if err != nil { | |
| 351 | 355 | panic(err) | |
M v4/glib/goption.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 11 | ) | |
| 12 | 12 | ||
| @@ -578,6 +578,10 @@ const ( | |||
| 578 | 578 | ) | |
| 579 | 579 | ||
| 580 | 580 | func init() { | |
| 581 | + | ||
| 582 | + | core.SetPackageName("GLIB", "glib-2.0") | |
| 583 | + | ||
| 584 | + | core.SetSharedLibrary("GLIB", "libglib-2.0.so.0") | |
| 581 | 585 | lib, err := purego.Dlopen(core.GetPath("GLIB"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 582 | 586 | if err != nil { | |
| 583 | 587 | panic(err) | |
M v4/glib/gpattern.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 11 | ) | |
| 12 | 12 | ||
| @@ -148,6 +148,10 @@ func PatternMatchString(PspecVar *PatternSpec, StringVar string) bool { | |||
| 148 | 148 | } | |
| 149 | 149 | ||
| 150 | 150 | func init() { | |
| 151 | + | ||
| 152 | + | core.SetPackageName("GLIB", "glib-2.0") | |
| 153 | + | ||
| 154 | + | core.SetSharedLibrary("GLIB", "libglib-2.0.so.0") | |
| 151 | 155 | lib, err := purego.Dlopen(core.GetPath("GLIB"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 152 | 156 | if err != nil { | |
| 153 | 157 | panic(err) | |
M v4/glib/gpoll.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 11 | ) | |
| 12 | 12 | ||
| @@ -62,6 +62,10 @@ func Poll(FdsVar *PollFD, NfdsVar uint, TimeoutVar int) int { | |||
| 62 | 62 | } | |
| 63 | 63 | ||
| 64 | 64 | func init() { | |
| 65 | + | ||
| 66 | + | core.SetPackageName("GLIB", "glib-2.0") | |
| 67 | + | ||
| 68 | + | core.SetSharedLibrary("GLIB", "libglib-2.0.so.0") | |
| 65 | 69 | lib, err := purego.Dlopen(core.GetPath("GLIB"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 66 | 70 | if err != nil { | |
| 67 | 71 | panic(err) | |
M v4/glib/gprimes.go +5 -1 collapsed to keep the page light
M v4/glib/gprintf.go +5 -1 collapsed to keep the page light
M v4/glib/gqsort.go +5 -1 collapsed to keep the page light
M v4/glib/gquark.go +5 -1 collapsed to keep the page light
M v4/glib/gqueue.go +5 -1 collapsed to keep the page light
M v4/glib/grand.go +5 -1 collapsed to keep the page light
M v4/glib/grcbox.go +5 -1 collapsed to keep the page light
M v4/glib/grefcount.go +5 -1 collapsed to keep the page light
M v4/glib/grefstring.go +5 -1 collapsed to keep the page light
M v4/glib/gregex.go +5 -1 collapsed to keep the page light
M v4/glib/gscanner.go +5 -1 collapsed to keep the page light
M v4/glib/gsequence.go +5 -1 collapsed to keep the page light
M v4/glib/gshell.go +5 -1 collapsed to keep the page light
M v4/glib/gslice.go +5 -1 collapsed to keep the page light
M v4/glib/gslist.go +5 -1 collapsed to keep the page light
M v4/glib/gspawn.go +5 -1 collapsed to keep the page light
M v4/glib/gstdio.go +5 -1 collapsed to keep the page light
M v4/glib/gstrfuncs.go +5 -1 collapsed to keep the page light
M v4/glib/gstring.go +5 -1 collapsed to keep the page light
M v4/glib/gstringchunk.go +5 -1 collapsed to keep the page light
M v4/glib/gstrvbuilder.go +5 -1 collapsed to keep the page light
M v4/glib/gtestutils.go +5 -1 collapsed to keep the page light
M v4/glib/gthread.go +5 -1 collapsed to keep the page light
M v4/glib/gthreadpool.go +5 -1 collapsed to keep the page light
M v4/glib/gtimer.go +5 -1 collapsed to keep the page light
M v4/glib/gtimezone.go +5 -1 collapsed to keep the page light
M v4/glib/gtrashstack.go +5 -1 collapsed to keep the page light
M v4/glib/gtree.go +5 -1 collapsed to keep the page light
M v4/glib/gtypes.go +5 -1 collapsed to keep the page light
M v4/glib/gunicode.go +5 -1 collapsed to keep the page light
M v4/glib/guri.go +5 -1 collapsed to keep the page light
M v4/glib/gutils.go +5 -1 collapsed to keep the page light
M v4/glib/guuid.go +5 -1 collapsed to keep the page light
M v4/glib/gvariant.go +5 -1 collapsed to keep the page light
M v4/glib/gvarianttype.go +5 -1 collapsed to keep the page light
M v4/glib/gversion.go +5 -1 collapsed to keep the page light
M v4/glib/main.go +5 -1 collapsed to keep the page light
M v4/glib/more.go +1 -1 collapsed to keep the page light
M v4/gmodule/gmodule.go +5 -1 collapsed to keep the page light
M v4/gmodule/main.go +5 -1 collapsed to keep the page light
M v4/gobject/gboxed.go +5 -1 collapsed to keep the page light
M v4/gobject/gclosure.go +5 -1 collapsed to keep the page light
M v4/gobject/genums.go +5 -1 collapsed to keep the page light
M v4/gobject/gmarshal.go +5 -1 collapsed to keep the page light
M v4/gobject/gobject-2.0.go +5 -1 collapsed to keep the page light
M v4/gobject/gobject.go +5 -1 collapsed to keep the page light
M v4/gobject/gparam.go +5 -1 collapsed to keep the page light
M v4/gobject/gparamspecs.go +5 -1 collapsed to keep the page light
M v4/gobject/gsignal.go +5 -1 collapsed to keep the page light
M v4/gobject/gsourceclosure.go +5 -1 collapsed to keep the page light
M v4/gobject/gtype.go +5 -1 collapsed to keep the page light
M v4/gobject/gtypemodule.go +5 -1 collapsed to keep the page light
M v4/gobject/gvalue.go +5 -1 collapsed to keep the page light
M v4/gobject/gvaluearray.go +5 -1 collapsed to keep the page light
M v4/gobject/gvaluetypes.go +5 -1 collapsed to keep the page light
M v4/graphene/graphene-box.go +5 -1 collapsed to keep the page light
M v4/graphene/graphene-euler.go +5 -1 collapsed to keep the page light
M v4/graphene/graphene-frustum.go +5 -1 collapsed to keep the page light
M v4/graphene/graphene-matrix.go +5 -1 collapsed to keep the page light
M v4/graphene/graphene-plane.go +5 -1 collapsed to keep the page light
M v4/graphene/graphene-point.go +5 -1 collapsed to keep the page light
M v4/graphene/graphene-point3d.go +5 -1 collapsed to keep the page light
M v4/graphene/graphene-quad.go +5 -1 collapsed to keep the page light
M v4/graphene/graphene-quaternion.go +5 -1 collapsed to keep the page light
M v4/graphene/graphene-ray.go +5 -1 collapsed to keep the page light
M v4/graphene/graphene-rect.go +5 -1 collapsed to keep the page light
M v4/graphene/graphene-size.go +5 -1 collapsed to keep the page light
M v4/graphene/graphene-sphere.go +5 -1 collapsed to keep the page light
M v4/graphene/graphene-triangle.go +5 -1 collapsed to keep the page light
M v4/graphene/graphene-vec2.go +5 -1 collapsed to keep the page light
M v4/graphene/graphene-vec3.go +5 -1 collapsed to keep the page light
M v4/graphene/graphene-vec4.go +5 -1 collapsed to keep the page light
M v4/gsk/gskbroadwayrenderer.go +5 -1 collapsed to keep the page light
M v4/gsk/gskcairorenderer.go +5 -1 collapsed to keep the page light
M v4/gsk/gskglrenderer.go +5 -1 collapsed to keep the page light
M v4/gsk/gskglshader.go +5 -1 collapsed to keep the page light
M v4/gsk/gskrenderer.go +5 -1 collapsed to keep the page light
M v4/gsk/gskrendernode.go +5 -1 collapsed to keep the page light
M v4/gsk/gskrendernodeimpl.go +5 -1 collapsed to keep the page light
M v4/gsk/gskroundedrect.go +5 -1 collapsed to keep the page light
M v4/gsk/gsktransform.go +5 -1 collapsed to keep the page light
M v4/gsk/gsktypes.go +5 -1 collapsed to keep the page light
M v4/gsk/main.go +5 -1 collapsed to keep the page light
M v4/gtk/gtkaboutdialog.go +5 -1 collapsed to keep the page light
M v4/gtk/gtkaccelgroup.go +5 -1 collapsed to keep the page light
M v4/gtk/gtkaccessible.go +5 -1 collapsed to keep the page light
M v4/gtk/gtkactionable.go +5 -1 collapsed to keep the page light
M v4/gtk/gtkactionbar.go +5 -1 collapsed to keep the page light
M v4/gtk/gtkadjustment.go +5 -1 collapsed to keep the page light
M v4/gtk/gtkappchooser.go +5 -1 collapsed to keep the page light
M v4/gtk/gtkappchooserbutton.go +5 -1 collapsed to keep the page light
M v4/gtk/gtkappchooserdialog.go +5 -1 collapsed to keep the page light
M v4/gtk/gtkappchooserwidget.go +5 -1 collapsed to keep the page light
M v4/gtk/gtkapplication.go +5 -1 collapsed to keep the page light
M v4/gtk/gtkapplicationwindow.go +5 -1 collapsed to keep the page light
M v4/gtk/gtkaspectframe.go +5 -1 collapsed to keep the page light
M v4/gtk/gtkassistant.go +5 -1 collapsed to keep the page light
M v4/gtk/gtkatcontext.go +5 -1 collapsed to keep the page light
M v4/gtk/gtkbinlayout.go +5 -1 collapsed to keep the page light
M v4/gtk/gtkbitset.go +5 -1 collapsed to keep the page light
M v4/gtk/gtkbookmarklist.go +5 -1 collapsed to keep the page light
M v4/gtk/gtkboolfilter.go +5 -1 collapsed to keep the page light
M v4/gtk/gtkborder.go +5 -1 collapsed to keep the page light
M v4/gtk/gtkbox.go +5 -1
| @@ -6,7 +6,7 @@ import ( | |||
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | 8 | "github.com/jwijenbergh/purego" | |
| 9 | - | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/pkg/core" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 12 | ) | |
| @@ -374,6 +374,10 @@ func (x *Box) SetOrientation(OrientationVar Orientation) { | |||
| 374 | 374 | } | |
| 375 | 375 | ||
| 376 | 376 | func init() { | |
| 377 | + | ||
| 378 | + | core.SetPackageName("GTK", "gtk4") | |
| 379 | + | ||
| 380 | + | core.SetSharedLibrary("GTK", "libgtk-4.so.1") | |
| 377 | 381 | lib, err := purego.Dlopen(core.GetPath("GTK"), purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 378 | 382 | if err != nil { | |
| 379 | 383 | panic(err) | |